Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 19603972 | 123 days ago | IN | 0 ETH | 0.06731379 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
SLERC721AMinterUpgradeable
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol"; import "./interfaces/ISLERC721AUpgradeable.sol"; /** * @title SLERC721AMinterUpgradeable * @notice Minter contract for any ERC721A contract. */ contract SLERC721AMinterUpgradeable is OwnableUpgradeable { ISLERC721AUpgradeable public slerc721aContract; using ECDSAUpgradeable for bytes32; /// @notice Mint steps /// CLOSED sale closed or sold out /// GIVEAWAY Free mint opened /// ALLOWLIST Allow list sale /// WAITLIST Wait list list sale /// PUBLIC Public sale enum MintStep { CLOSED, GIVEAWAY, ALLOWLIST, WAITLIST, PUBLIC } event MintStepUpdated(MintStep step); /// @notice Revenues recipient address public beneficiary; uint256 public limitPerPublicMint; uint256 public presalePrice; uint256 public publicPrice; uint256 public giveaway; uint256 public maxSupply; address public crossmint; /// @notice used nonces mapping(uint256 => bool) internal _nonces; MintStep public step; /// @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); } function initialize( ISLERC721AUpgradeable slerc721aContract_, uint256 maxSupply_, uint256 giveaway_, uint256 presalePrice_, uint256 publicPrice_, uint256 limitPerPublicMint_, address crossmint_ ) public initializer onlyInitializing { __Ownable_init(); slerc721aContract = slerc721aContract_; beneficiary = owner(); maxSupply = maxSupply_; giveaway = giveaway_; presalePrice = presalePrice_; publicPrice = publicPrice_; limitPerPublicMint = limitPerPublicMint_; crossmint = crossmint_; } modifier rightPresalePrice(uint256 quantity) { require(presalePrice * quantity == msg.value, "incorrect price"); _; } modifier rightPublicPrice(uint256 quantity) { require(publicPrice * quantity == msg.value, "incorrect price"); _; } modifier whenMintIsPublic() { require(step == MintStep.PUBLIC, "public sale is not live"); _; } modifier whenMintIsPresale() { MintStep step_ = step; require( step_ == MintStep.ALLOWLIST || step_ == MintStep.WAITLIST, "presale is not live" ); _; } modifier whenMintIsNotClosed() { require(step != MintStep.CLOSED, "mint is closed"); _; } modifier belowMaxAllowed(uint256 quantity, uint256 max) { require(quantity <= max, "quantity above max"); _; } modifier belowTotalSupply(uint256 quantity) { require( slerc721aContract.totalSupply() + quantity <= maxSupply - giveaway, "not enough tokens left" ); _; } modifier belowPublicLimit(uint256 quantity) { require(quantity <= limitPerPublicMint, "limitPerPublicMint exceeded"); _; } /// @notice Mint your NFT(s) (public sale) /// @param quantity number of NFT to mint /// no gift allowed nor minting from other smartcontracts function mint(uint256 quantity) external payable whenMintIsPublic { _validatePublic(quantity); slerc721aContract.mintTo(msg.sender, quantity); } /// @notice Mint NFT(s) by Credit Card with Crossmint (public sale) /// @param to NFT recipient /// @param quantity number of NFT to mint function mintTo( address to, uint256 quantity ) external payable whenMintIsPublic { require(msg.sender == crossmint, "for crossmint only"); _validatePublic(quantity); slerc721aContract.mintTo(to, quantity); } /// @notice Mint NFT(s) during allowlist/waitlist sale /// Can only be done once. /// @param quantity number of NFT to mint /// @param max Max number of token allowed to mint /// @param nonce Random number providing a mint spot /// @param sig ECDSA signature allowing the mint function mintPresale( uint256 quantity, uint256 max, uint256 nonce, bytes memory sig ) external payable whenMintIsPresale { _validatePresale(quantity, max, nonce, sig); slerc721aContract.mintTo(msg.sender, quantity); } /// @notice Mint NFT(s) during allowlist/waitlist sale /// along with giveaway to save gas. /// Can only be done once. /// @param quantityGiveaway number of giveaway NFT to mint /// @param nonceGiveaway Random number providing a mint spot /// @param quantityPresale number of presale NFT to mint /// @param maxPresale Max number of token allowed to mint /// @param noncePresale Random number providing a mint spot /// @param sigGiveaway ECDSA signature allowing the mint /// @param sigPresale ECDSA signature allowing the mint function mintPresaleWithGiveaway( uint256 quantityGiveaway, uint256 nonceGiveaway, uint256 quantityPresale, uint256 maxPresale, uint256 noncePresale, bytes memory sigGiveaway, bytes memory sigPresale ) external payable whenMintIsPresale { if (quantityPresale > 0) { _validatePresale(quantityPresale, maxPresale, noncePresale, sigPresale); } if (quantityGiveaway > 0) { _validateGiveaway(quantityGiveaway, nonceGiveaway, sigGiveaway); } slerc721aContract.mintTo(msg.sender, quantityGiveaway + quantityPresale); } /// @notice Mint NFT(s) during public sale /// along with giveaway to save gas. /// Can only be done once. /// @param quantityPublic number of public NFT to mint /// @param quantityGiveaway number of giveaway NFT to mint /// @param nonceGiveaway Random number providing a mint spot /// @param sigGiveaway ECDSA signature allowing the mint function mintWithGiveaway( uint256 quantityPublic, uint256 quantityGiveaway, uint256 nonceGiveaway, bytes memory sigGiveaway ) external payable whenMintIsPublic { _validatePublic(quantityPublic); if (quantityGiveaway > 0) { _validateGiveaway(quantityGiveaway, nonceGiveaway, sigGiveaway); } slerc721aContract.mintTo(msg.sender, quantityGiveaway + quantityPublic); } /// @notice Mint giveaway NFT(s) during any sale phase /// Can only be done once. /// @param quantity number of giveaway NFT to mint /// @param nonce Random number providing a mint spot /// @param sig ECDSA signature allowing the mint function mintGiveaway( uint256 quantity, uint256 nonce, bytes memory sig ) external whenMintIsNotClosed { _validateGiveaway(quantity, nonce, sig); slerc721aContract.mintTo(msg.sender, quantity); } /// @dev Validates conditions for a presale mint function _validatePresale( uint256 quantity, uint256 max, uint256 nonce, bytes memory sig ) internal rightPresalePrice(quantity) belowTotalSupply(quantity) belowMaxAllowed(quantity, max) { string memory phase = step == MintStep.ALLOWLIST ? "allowlist" : "waitlist"; require(!_nonces[nonce], "presale nonce already used"); _nonces[nonce] = true; _validateSig(phase, msg.sender, max, nonce, sig); } /// @dev Validates conditions for a giveaway mint function _validateGiveaway( uint256 quantity, uint256 nonce, bytes memory sig ) internal { require(!_nonces[nonce], "giveaway nonce already used"); uint256 giveaway_ = giveaway; require(quantity <= giveaway_, "cannot exceed max giveaway"); _nonces[nonce] = true; giveaway = giveaway_ - quantity; _validateSig("giveaway", msg.sender, quantity, nonce, sig); } /// @dev Validates conditions for a public mint function _validatePublic( uint256 quantity ) internal rightPublicPrice(quantity) belowPublicLimit(quantity) belowTotalSupply(quantity) {} /// @dev Validating ECDSA signatures function _validateSig( string memory phase, address sender, uint256 amount, uint256 nonce, bytes memory sig ) internal view { bytes32 hash = keccak256( abi.encode(phase, sender, amount, nonce, address(this)) ); address signer = hash.toEthSignedMessageHash().recover(sig); require(signer == owner(), "invalid signature"); } /// @notice Check whether nonce was used /// @param nonce value to be checked function validNonce(uint256 nonce) external view returns (bool) { return !_nonces[nonce]; } /// @notice Gift a NFT to someone i.e. a team member, only done by owner /// @param to recipient address /// @param quantity number of NFT to mint and gift function gift(address to, uint256 quantity) external onlyOwner { uint256 giveaway_ = giveaway; require(quantity <= giveaway_, "cannot exceed max giveaway"); giveaway = giveaway_ - quantity; slerc721aContract.mintTo(to, quantity); } /// @notice Mint additional tokens after initial supply was minted, owner only /// @param to recipient address /// @param quantity number of NFT to mint function mintAdditional(address to, uint256 quantity) external onlyOwner { slerc721aContract.mintTo(to, quantity); } /// @notice Allow owner to change nft contract to mint /// @param newContract New ISLERC721AUpgradeable contract to mint function setSLERC721AAddress( ISLERC721AUpgradeable newContract ) external onlyOwner { slerc721aContract = newContract; } /// @notice Allow owner to change minting step /// @param newStep the new step function setStep(MintStep newStep) external onlyOwner { step = newStep; slerc721aContract.setStartingIndex(maxSupply); emit MintStepUpdated(newStep); } /// @notice Allow owner to set the revenues recipient /// @param newBeneficiary the new recipient function setBeneficiary(address newBeneficiary) external onlyOwner { require( newBeneficiary != address(0), "cannot set null address as beneficiary." ); beneficiary = newBeneficiary; } /// @notice Allow owner to set the crossmint minting address /// @param newCrossmint the new minting address function setCrossmint(address newCrossmint) external onlyOwner { require( newCrossmint != address(0), "cannot set null address as crossmint minting address." ); crossmint = newCrossmint; } /// @notice Allow owner to update the limit per wallet for public mint /// @param newLimit the new limit e.g. 7 for public mint per wallet function setLimitPerPublicMint(uint256 newLimit) external onlyOwner { limitPerPublicMint = newLimit; } /// @notice Allow owner to update price for public mint /// @param newPrice the new price for public mint function setPublicPrice(uint256 newPrice) external onlyOwner { publicPrice = newPrice; } /// @notice Allow owner to update price for presale mint /// @param newPrice the new price for presale mint function setPresalePrice(uint256 newPrice) external onlyOwner { presalePrice = newPrice; } /// @notice Allow everyone to withdraw contract balance and send it to owner function withdraw() external { AddressUpgradeable.sendValue(payable(beneficiary), address(this).balance); } /// @notice Allow everyone to withdraw contract ERC20 balance and send it to owner function withdrawERC20(IERC20Upgradeable token) external { SafeERC20Upgradeable.safeTransfer( token, beneficiary, token.balanceOf(address(this)) ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20PermitUpgradeable { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20Upgradeable.sol"; import "../extensions/draft-IERC20PermitUpgradeable.sol"; import "../../../utils/AddressUpgradeable.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20Upgradeable { using AddressUpgradeable for address; function safeTransfer( IERC20Upgradeable token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20Upgradeable token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20Upgradeable token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20PermitUpgradeable token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../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; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../StringsUpgradeable.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSAUpgradeable { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", StringsUpgradeable.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUpgradeable { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/MathUpgradeable.sol"; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = MathUpgradeable.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, MathUpgradeable.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "erc721a-upgradeable/contracts/IERC721AUpgradeable.sol"; interface ISLERC721AUpgradeable is IERC721AUpgradeable { /// @notice Mint NFT(s). No restriction, but must be minter. /// @param to NFT recipient /// @param quantity number of NFT to mint function mintTo(address to, uint256 quantity) external payable; /// @notice Setting starting index only once function setStartingIndex(uint256 maxSupply) external; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721AUpgradeable { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum SLERC721AMinterUpgradeable.MintStep","name":"step","type":"uint8"}],"name":"MintStepUpdated","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"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crossmint","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"giveaway","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract ISLERC721AUpgradeable","name":"slerc721aContract_","type":"address"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"uint256","name":"giveaway_","type":"uint256"},{"internalType":"uint256","name":"presalePrice_","type":"uint256"},{"internalType":"uint256","name":"publicPrice_","type":"uint256"},{"internalType":"uint256","name":"limitPerPublicMint_","type":"uint256"},{"internalType":"address","name":"crossmint_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"limitPerPublicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintAdditional","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"mintGiveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantityGiveaway","type":"uint256"},{"internalType":"uint256","name":"nonceGiveaway","type":"uint256"},{"internalType":"uint256","name":"quantityPresale","type":"uint256"},{"internalType":"uint256","name":"maxPresale","type":"uint256"},{"internalType":"uint256","name":"noncePresale","type":"uint256"},{"internalType":"bytes","name":"sigGiveaway","type":"bytes"},{"internalType":"bytes","name":"sigPresale","type":"bytes"}],"name":"mintPresaleWithGiveaway","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantityPublic","type":"uint256"},{"internalType":"uint256","name":"quantityGiveaway","type":"uint256"},{"internalType":"uint256","name":"nonceGiveaway","type":"uint256"},{"internalType":"bytes","name":"sigGiveaway","type":"bytes"}],"name":"mintWithGiveaway","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newBeneficiary","type":"address"}],"name":"setBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newCrossmint","type":"address"}],"name":"setCrossmint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"setLimitPerPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ISLERC721AUpgradeable","name":"newContract","type":"address"}],"name":"setSLERC721AAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum SLERC721AMinterUpgradeable.MintStep","name":"newStep","type":"uint8"}],"name":"setStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"slerc721aContract","outputs":[{"internalType":"contract ISLERC721AUpgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"step","outputs":[{"internalType":"enum SLERC721AMinterUpgradeable.MintStep","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"validNonce","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20Upgradeable","name":"token","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50620000226200002860201b60201c565b620001d3565b600060019054906101000a900460ff16156200007b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000729062000176565b60405180910390fd5b60ff801660008054906101000a900460ff1660ff161015620000ed5760ff6000806101000a81548160ff021916908360ff1602179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860ff604051620000e49190620001b6565b60405180910390a15b565b600082825260208201905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320696e69746960008201527f616c697a696e6700000000000000000000000000000000000000000000000000602082015250565b60006200015e602783620000ef565b91506200016b8262000100565b604082019050919050565b6000602082019050818103600083015262000191816200014f565b9050919050565b600060ff82169050919050565b620001b08162000198565b82525050565b6000602082019050620001cd6000830184620001a5565b92915050565b61400080620001e36000396000f3fe6080604052600436106101d75760003560e01c806376f2c49011610102578063cbce4c9711610095578063f2fde38b11610064578063f2fde38b146105f0578063f4f3b20014610619578063f8b89dfb14610642578063f9850b721461066b576101d7565b8063cbce4c9714610546578063d073c5731461056f578063d5abeb011461059a578063e25fe175146105c5576101d7565b8063a0712d68116100d1578063a0712d6814610499578063a945bf80146104b5578063b4a1e8eb146104e0578063c62752551461051d576101d7565b806376f2c490146103fe5780637f5cfbb6146104275780638da5cb5b14610443578063978e8bd81461046e576101d7565b806338af3eed1161017a57806348530b551161014957806348530b55146103775780635abc5632146103a25780636091f4f2146103be578063715018a6146103e7576101d7565b806338af3eed146102f057806339b6e72c1461031b5780633ccfd60b14610344578063449a52f81461035b576101d7565b80632c5f4ab4116101b65780632c5f4ab4146102595780632e8ac183146102825780633549345e146102ab5780633895444f146102d4576101d7565b80620e7fa8146101dc5780631c31f7101461020757806325667d1314610230575b600080fd5b3480156101e857600080fd5b506101f1610696565b6040516101fe9190612742565b60405180910390f35b34801561021357600080fd5b5061022e600480360381019061022991906127cf565b61069c565b005b34801561023c57600080fd5b5061025760048036038101906102529190612828565b610757565b005b34801561026557600080fd5b50610280600480360381019061027b91906129ae565b6107f2565b005b34801561028e57600080fd5b506102a960048036038101906102a49190612a5b565b610907565b005b3480156102b757600080fd5b506102d260048036038101906102cd9190612a88565b610953565b005b6102ee60048036038101906102e99190612ab5565b610965565b005b3480156102fc57600080fd5b50610305610a98565b6040516103129190612b47565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d9190612b62565b610abe565b005b34801561035057600080fd5b50610359610d3f565b005b61037560048036038101906103709190612828565b610d6d565b005b34801561038357600080fd5b5061038c610f0e565b6040516103999190612b47565b60405180910390f35b6103bc60048036038101906103b79190612ab5565b610f34565b005b3480156103ca57600080fd5b506103e560048036038101906103e091906127cf565b611080565b005b3480156103f357600080fd5b506103fc61113b565b005b34801561040a57600080fd5b5061042560048036038101906104209190612a88565b61114f565b005b610441600480360381019061043c9190612c04565b611161565b005b34801561044f57600080fd5b506104586112da565b6040516104659190612b47565b60405180910390f35b34801561047a57600080fd5b50610483611304565b6040516104909190612742565b60405180910390f35b6104b360048036038101906104ae9190612a88565b61130a565b005b3480156104c157600080fd5b506104ca61141a565b6040516104d79190612742565b60405180910390f35b3480156104ec57600080fd5b5061050760048036038101906105029190612a88565b611420565b6040516105149190612cf9565b60405180910390f35b34801561052957600080fd5b50610544600480360381019061053f9190612a88565b61144b565b005b34801561055257600080fd5b5061056d60048036038101906105689190612828565b61145d565b005b34801561057b57600080fd5b50610584611555565b6040516105919190612d73565b60405180910390f35b3480156105a657600080fd5b506105af61157b565b6040516105bc9190612742565b60405180910390f35b3480156105d157600080fd5b506105da611581565b6040516105e79190612e05565b60405180910390f35b3480156105fc57600080fd5b50610617600480360381019061061291906127cf565b611594565b005b34801561062557600080fd5b50610640600480360381019061063b9190612e5e565b611617565b005b34801561064e57600080fd5b5061066960048036038101906106649190612eb0565b6116c0565b005b34801561067757600080fd5b506106806117bb565b60405161068d9190612742565b60405180910390f35b60685481565b6106a46117c1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070a90612f60565b60405180910390fd5b80606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61075f6117c1565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f883836040518363ffffffff1660e01b81526004016107bc929190612f80565b600060405180830381600087803b1580156107d657600080fd5b505af11580156107ea573d6000803e3d6000fd5b505050505050565b6000600481111561080657610805612d8e565b5b606e60009054906101000a900460ff16600481111561082857610827612d8e565b5b03610868576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085f90612ff5565b60405180910390fd5b61087383838361183f565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f833856040518363ffffffff1660e01b81526004016108d0929190612f80565b600060405180830381600087803b1580156108ea57600080fd5b505af11580156108fe573d6000803e3d6000fd5b50505050505050565b61090f6117c1565b80606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61095b6117c1565b8060688190555050565b60048081111561097857610977612d8e565b5b606e60009054906101000a900460ff16600481111561099a57610999612d8e565b5b146109da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d190613061565b60405180910390fd5b6109e384611970565b60008311156109f8576109f783838361183f565b5b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f8338686610a4391906130b0565b6040518363ffffffff1660e01b8152600401610a60929190612f80565b600060405180830381600087803b158015610a7a57600080fd5b505af1158015610a8e573d6000803e3d6000fd5b5050505050505050565b606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060019054906101000a900460ff16159050808015610aef5750600160008054906101000a900460ff1660ff16105b80610b1c5750610afe30611afa565b158015610b1b5750600160008054906101000a900460ff1660ff16145b5b610b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5290613156565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015610b98576001600060016101000a81548160ff0219169083151502179055505b600060019054906101000a900460ff16610be7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bde906131e8565b60405180910390fd5b610bef611b1d565b87606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610c386112da565b606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086606b8190555085606a8190555084606881905550836069819055508260678190555081606c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508015610d355760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051610d2c9190613250565b60405180910390a15b5050505050505050565b610d6b606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1647611b76565b565b600480811115610d8057610d7f612d8e565b5b606e60009054906101000a900460ff166004811115610da257610da1612d8e565b5b14610de2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd990613061565b60405180910390fd5b606c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e69906132b7565b60405180910390fd5b610e7b81611970565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f883836040518363ffffffff1660e01b8152600401610ed8929190612f80565b600060405180830381600087803b158015610ef257600080fd5b505af1158015610f06573d6000803e3d6000fd5b505050505050565b606c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000606e60009054906101000a900460ff16905060026004811115610f5c57610f5b612d8e565b5b816004811115610f6f57610f6e612d8e565b5b1480610f9f575060036004811115610f8a57610f89612d8e565b5b816004811115610f9d57610f9c612d8e565b5b145b610fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd590613323565b60405180910390fd5b610fea85858585611c6a565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f833876040518363ffffffff1660e01b8152600401611047929190612f80565b600060405180830381600087803b15801561106157600080fd5b505af1158015611075573d6000803e3d6000fd5b505050505050505050565b6110886117c1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036110f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ee906133b5565b60405180910390fd5b80606c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6111436117c1565b61114d6000611f43565b565b6111576117c1565b8060678190555050565b6000606e60009054906101000a900460ff1690506002600481111561118957611188612d8e565b5b81600481111561119c5761119b612d8e565b5b14806111cc5750600360048111156111b7576111b6612d8e565b5b8160048111156111ca576111c9612d8e565b5b145b61120b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120290613323565b60405180910390fd5b60008611156112215761122086868685611c6a565b5b60008811156112365761123588888561183f565b5b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f833888b61128191906130b0565b6040518363ffffffff1660e01b815260040161129e929190612f80565b600060405180830381600087803b1580156112b857600080fd5b505af11580156112cc573d6000803e3d6000fd5b505050505050505050505050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60675481565b60048081111561131d5761131c612d8e565b5b606e60009054906101000a900460ff16600481111561133f5761133e612d8e565b5b1461137f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137690613061565b60405180910390fd5b61138881611970565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f833836040518363ffffffff1660e01b81526004016113e5929190612f80565b600060405180830381600087803b1580156113ff57600080fd5b505af1158015611413573d6000803e3d6000fd5b5050505050565b60695481565b6000606d600083815260200190815260200160002060009054906101000a900460ff16159050919050565b6114536117c1565b8060698190555050565b6114656117c1565b6000606a549050808211156114af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a690613421565b60405180910390fd5b81816114bb9190613441565b606a81905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f884846040518363ffffffff1660e01b815260040161151e929190612f80565b600060405180830381600087803b15801561153857600080fd5b505af115801561154c573d6000803e3d6000fd5b50505050505050565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606b5481565b606e60009054906101000a900460ff1681565b61159c6117c1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361160b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611602906134e7565b60405180910390fd5b61161481611f43565b50565b6116bd81606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016116779190612b47565b602060405180830381865afa158015611694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b8919061351c565b612009565b50565b6116c86117c1565b80606e60006101000a81548160ff021916908360048111156116ed576116ec612d8e565b5b0217905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166388f2ebcb606b546040518263ffffffff1660e01b815260040161174f9190612742565b600060405180830381600087803b15801561176957600080fd5b505af115801561177d573d6000803e3d6000fd5b505050507f87b8f17998ed00253352d147f387ebd1b05aa70ac64bc8f54972b3a58af18105816040516117b09190612e05565b60405180910390a150565b606a5481565b6117c961208f565b73ffffffffffffffffffffffffffffffffffffffff166117e76112da565b73ffffffffffffffffffffffffffffffffffffffff161461183d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183490613595565b60405180910390fd5b565b606d600083815260200190815260200160002060009054906101000a900460ff16156118a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189790613601565b60405180910390fd5b6000606a549050808411156118ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e190613421565b60405180910390fd5b6001606d600085815260200190815260200160002060006101000a81548160ff02191690831515021790555083816119229190613441565b606a8190555061196a6040518060400160405280600881526020017f676976656177617900000000000000000000000000000000000000000000000081525033868686612097565b50505050565b8034816069546119809190613621565b146119c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b7906136af565b60405180910390fd5b81606754811115611a06576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119fd9061371b565b60405180910390fd5b82606a54606b54611a179190613441565b81606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa9919061351c565b611ab391906130b0565b1115611af4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aeb90613787565b60405180910390fd5b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16611b6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b63906131e8565b60405180910390fd5b611b74612167565b565b80471015611bb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb0906137f3565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051611bdf90613844565b60006040518083038185875af1925050503d8060008114611c1c576040519150601f19603f3d011682016040523d82523d6000602084013e611c21565b606091505b5050905080611c65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5c906138cb565b60405180910390fd5b505050565b833481606854611c7a9190613621565b14611cba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb1906136af565b60405180910390fd5b84606a54606b54611ccb9190613441565b81606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5d919061351c565b611d6791906130b0565b1115611da8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9f90613787565b60405180910390fd5b858580821115611ded576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de490613937565b60405180910390fd5b600060026004811115611e0357611e02612d8e565b5b606e60009054906101000a900460ff166004811115611e2557611e24612d8e565b5b14611e65576040518060400160405280600881526020017f776169746c697374000000000000000000000000000000000000000000000000815250611e9c565b6040518060400160405280600981526020017f616c6c6f776c69737400000000000000000000000000000000000000000000008152505b9050606d600088815260200190815260200160002060009054906101000a900460ff1615611eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef6906139a3565b60405180910390fd5b6001606d600089815260200190815260200160002060006101000a81548160ff021916908315150217905550611f3881338a8a8a612097565b505050505050505050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61208a8363a9059cbb60e01b8484604051602401612028929190612f80565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506121c8565b505050565b600033905090565b600085858585306040516020016120b2959493929190613a31565b60405160208183030381529060405280519060200120905060006120e7836120d98461228f565b6122bf90919063ffffffff16565b90506120f16112da565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461215e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215590613ad7565b60405180910390fd5b50505050505050565b600060019054906101000a900460ff166121b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ad906131e8565b60405180910390fd5b6121c66121c161208f565b611f43565b565b600061222a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166122e69092919063ffffffff16565b905060008151111561228a578080602001905181019061224a9190613b23565b612289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228090613bc2565b60405180910390fd5b5b505050565b6000816040516020016122a29190613c64565b604051602081830303815290604052805190602001209050919050565b60008060006122ce85856122fe565b915091506122db8161234f565b819250505092915050565b60606122f584846000856124b5565b90509392505050565b600080604183510361233f5760008060006020860151925060408601519150606086015160001a905061233387828585612582565b94509450505050612348565b60006002915091505b9250929050565b6000600481111561236357612362612d8e565b5b81600481111561237657612375612d8e565b5b03156124b257600160048111156123905761238f612d8e565b5b8160048111156123a3576123a2612d8e565b5b036123e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123da90613cd6565b60405180910390fd5b600260048111156123f7576123f6612d8e565b5b81600481111561240a57612409612d8e565b5b0361244a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244190613d42565b60405180910390fd5b6003600481111561245e5761245d612d8e565b5b81600481111561247157612470612d8e565b5b036124b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a890613dd4565b60405180910390fd5b5b50565b6060824710156124fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f190613e66565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516125239190613ec2565b60006040518083038185875af1925050503d8060008114612560576040519150601f19603f3d011682016040523d82523d6000602084013e612565565b606091505b509150915061257687838387612664565b92505050949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156125bd57600060039150915061265b565b6000600187878787604051600081526020016040526040516125e29493929190613ef7565b6020604051602081039080840390855afa158015612604573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036126525760006001925092505061265b565b80600092509250505b94509492505050565b606083156126c65760008351036126be5761267e85611afa565b6126bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b490613f88565b60405180910390fd5b5b8290506126d1565b6126d083836126d9565b5b949350505050565b6000825111156126ec5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127209190613fa8565b60405180910390fd5b6000819050919050565b61273c81612729565b82525050565b60006020820190506127576000830184612733565b92915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061279c82612771565b9050919050565b6127ac81612791565b81146127b757600080fd5b50565b6000813590506127c9816127a3565b92915050565b6000602082840312156127e5576127e4612767565b5b60006127f3848285016127ba565b91505092915050565b61280581612729565b811461281057600080fd5b50565b600081359050612822816127fc565b92915050565b6000806040838503121561283f5761283e612767565b5b600061284d858286016127ba565b925050602061285e85828601612813565b9150509250929050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128bb82612872565b810181811067ffffffffffffffff821117156128da576128d9612883565b5b80604052505050565b60006128ed61275d565b90506128f982826128b2565b919050565b600067ffffffffffffffff82111561291957612918612883565b5b61292282612872565b9050602081019050919050565b82818337600083830152505050565b600061295161294c846128fe565b6128e3565b90508281526020810184848401111561296d5761296c61286d565b5b61297884828561292f565b509392505050565b600082601f83011261299557612994612868565b5b81356129a584826020860161293e565b91505092915050565b6000806000606084860312156129c7576129c6612767565b5b60006129d586828701612813565b93505060206129e686828701612813565b925050604084013567ffffffffffffffff811115612a0757612a0661276c565b5b612a1386828701612980565b9150509250925092565b6000612a2882612791565b9050919050565b612a3881612a1d565b8114612a4357600080fd5b50565b600081359050612a5581612a2f565b92915050565b600060208284031215612a7157612a70612767565b5b6000612a7f84828501612a46565b91505092915050565b600060208284031215612a9e57612a9d612767565b5b6000612aac84828501612813565b91505092915050565b60008060008060808587031215612acf57612ace612767565b5b6000612add87828801612813565b9450506020612aee87828801612813565b9350506040612aff87828801612813565b925050606085013567ffffffffffffffff811115612b2057612b1f61276c565b5b612b2c87828801612980565b91505092959194509250565b612b4181612791565b82525050565b6000602082019050612b5c6000830184612b38565b92915050565b600080600080600080600060e0888a031215612b8157612b80612767565b5b6000612b8f8a828b01612a46565b9750506020612ba08a828b01612813565b9650506040612bb18a828b01612813565b9550506060612bc28a828b01612813565b9450506080612bd38a828b01612813565b93505060a0612be48a828b01612813565b92505060c0612bf58a828b016127ba565b91505092959891949750929550565b600080600080600080600060e0888a031215612c2357612c22612767565b5b6000612c318a828b01612813565b9750506020612c428a828b01612813565b9650506040612c538a828b01612813565b9550506060612c648a828b01612813565b9450506080612c758a828b01612813565b93505060a088013567ffffffffffffffff811115612c9657612c9561276c565b5b612ca28a828b01612980565b92505060c088013567ffffffffffffffff811115612cc357612cc261276c565b5b612ccf8a828b01612980565b91505092959891949750929550565b60008115159050919050565b612cf381612cde565b82525050565b6000602082019050612d0e6000830184612cea565b92915050565b6000819050919050565b6000612d39612d34612d2f84612771565b612d14565b612771565b9050919050565b6000612d4b82612d1e565b9050919050565b6000612d5d82612d40565b9050919050565b612d6d81612d52565b82525050565b6000602082019050612d886000830184612d64565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60058110612dce57612dcd612d8e565b5b50565b6000819050612ddf82612dbd565b919050565b6000612def82612dd1565b9050919050565b612dff81612de4565b82525050565b6000602082019050612e1a6000830184612df6565b92915050565b6000612e2b82612791565b9050919050565b612e3b81612e20565b8114612e4657600080fd5b50565b600081359050612e5881612e32565b92915050565b600060208284031215612e7457612e73612767565b5b6000612e8284828501612e49565b91505092915050565b60058110612e9857600080fd5b50565b600081359050612eaa81612e8b565b92915050565b600060208284031215612ec657612ec5612767565b5b6000612ed484828501612e9b565b91505092915050565b600082825260208201905092915050565b7f63616e6e6f7420736574206e756c6c20616464726573732061732062656e656660008201527f6963696172792e00000000000000000000000000000000000000000000000000602082015250565b6000612f4a602783612edd565b9150612f5582612eee565b604082019050919050565b60006020820190508181036000830152612f7981612f3d565b9050919050565b6000604082019050612f956000830185612b38565b612fa26020830184612733565b9392505050565b7f6d696e7420697320636c6f736564000000000000000000000000000000000000600082015250565b6000612fdf600e83612edd565b9150612fea82612fa9565b602082019050919050565b6000602082019050818103600083015261300e81612fd2565b9050919050565b7f7075626c69632073616c65206973206e6f74206c697665000000000000000000600082015250565b600061304b601783612edd565b915061305682613015565b602082019050919050565b6000602082019050818103600083015261307a8161303e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006130bb82612729565b91506130c683612729565b92508282019050808211156130de576130dd613081565b5b92915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000613140602e83612edd565b915061314b826130e4565b604082019050919050565b6000602082019050818103600083015261316f81613133565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b60006131d2602b83612edd565b91506131dd82613176565b604082019050919050565b60006020820190508181036000830152613201816131c5565b9050919050565b6000819050919050565b600060ff82169050919050565b600061323a61323561323084613208565b612d14565b613212565b9050919050565b61324a8161321f565b82525050565b60006020820190506132656000830184613241565b92915050565b7f666f722063726f73736d696e74206f6e6c790000000000000000000000000000600082015250565b60006132a1601283612edd565b91506132ac8261326b565b602082019050919050565b600060208201905081810360008301526132d081613294565b9050919050565b7f70726573616c65206973206e6f74206c69766500000000000000000000000000600082015250565b600061330d601383612edd565b9150613318826132d7565b602082019050919050565b6000602082019050818103600083015261333c81613300565b9050919050565b7f63616e6e6f7420736574206e756c6c20616464726573732061732063726f737360008201527f6d696e74206d696e74696e6720616464726573732e0000000000000000000000602082015250565b600061339f603583612edd565b91506133aa82613343565b604082019050919050565b600060208201905081810360008301526133ce81613392565b9050919050565b7f63616e6e6f7420657863656564206d6178206769766561776179000000000000600082015250565b600061340b601a83612edd565b9150613416826133d5565b602082019050919050565b6000602082019050818103600083015261343a816133fe565b9050919050565b600061344c82612729565b915061345783612729565b925082820390508181111561346f5761346e613081565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006134d1602683612edd565b91506134dc82613475565b604082019050919050565b60006020820190508181036000830152613500816134c4565b9050919050565b600081519050613516816127fc565b92915050565b60006020828403121561353257613531612767565b5b600061354084828501613507565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061357f602083612edd565b915061358a82613549565b602082019050919050565b600060208201905081810360008301526135ae81613572565b9050919050565b7f6769766561776179206e6f6e636520616c726561647920757365640000000000600082015250565b60006135eb601b83612edd565b91506135f6826135b5565b602082019050919050565b6000602082019050818103600083015261361a816135de565b9050919050565b600061362c82612729565b915061363783612729565b925082820261364581612729565b9150828204841483151761365c5761365b613081565b5b5092915050565b7f696e636f72726563742070726963650000000000000000000000000000000000600082015250565b6000613699600f83612edd565b91506136a482613663565b602082019050919050565b600060208201905081810360008301526136c88161368c565b9050919050565b7f6c696d69745065725075626c69634d696e742065786365656465640000000000600082015250565b6000613705601b83612edd565b9150613710826136cf565b602082019050919050565b60006020820190508181036000830152613734816136f8565b9050919050565b7f6e6f7420656e6f75676820746f6b656e73206c65667400000000000000000000600082015250565b6000613771601683612edd565b915061377c8261373b565b602082019050919050565b600060208201905081810360008301526137a081613764565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006137dd601d83612edd565b91506137e8826137a7565b602082019050919050565b6000602082019050818103600083015261380c816137d0565b9050919050565b600081905092915050565b50565b600061382e600083613813565b91506138398261381e565b600082019050919050565b600061384f82613821565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b60006138b5603a83612edd565b91506138c082613859565b604082019050919050565b600060208201905081810360008301526138e4816138a8565b9050919050565b7f7175616e746974792061626f7665206d61780000000000000000000000000000600082015250565b6000613921601283612edd565b915061392c826138eb565b602082019050919050565b6000602082019050818103600083015261395081613914565b9050919050565b7f70726573616c65206e6f6e636520616c72656164792075736564000000000000600082015250565b600061398d601a83612edd565b915061399882613957565b602082019050919050565b600060208201905081810360008301526139bc81613980565b9050919050565b600081519050919050565b60005b838110156139ec5780820151818401526020810190506139d1565b60008484015250505050565b6000613a03826139c3565b613a0d8185612edd565b9350613a1d8185602086016139ce565b613a2681612872565b840191505092915050565b600060a0820190508181036000830152613a4b81886139f8565b9050613a5a6020830187612b38565b613a676040830186612733565b613a746060830185612733565b613a816080830184612b38565b9695505050505050565b7f696e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b6000613ac1601183612edd565b9150613acc82613a8b565b602082019050919050565b60006020820190508181036000830152613af081613ab4565b9050919050565b613b0081612cde565b8114613b0b57600080fd5b50565b600081519050613b1d81613af7565b92915050565b600060208284031215613b3957613b38612767565b5b6000613b4784828501613b0e565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613bac602a83612edd565b9150613bb782613b50565b604082019050919050565b60006020820190508181036000830152613bdb81613b9f565b9050919050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000613c23601c83613be2565b9150613c2e82613bed565b601c82019050919050565b6000819050919050565b6000819050919050565b613c5e613c5982613c39565b613c43565b82525050565b6000613c6f82613c16565b9150613c7b8284613c4d565b60208201915081905092915050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000613cc0601883612edd565b9150613ccb82613c8a565b602082019050919050565b60006020820190508181036000830152613cef81613cb3565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000613d2c601f83612edd565b9150613d3782613cf6565b602082019050919050565b60006020820190508181036000830152613d5b81613d1f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000613dbe602283612edd565b9150613dc982613d62565b604082019050919050565b60006020820190508181036000830152613ded81613db1565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613e50602683612edd565b9150613e5b82613df4565b604082019050919050565b60006020820190508181036000830152613e7f81613e43565b9050919050565b600081519050919050565b6000613e9c82613e86565b613ea68185613813565b9350613eb68185602086016139ce565b80840191505092915050565b6000613ece8284613e91565b915081905092915050565b613ee281613c39565b82525050565b613ef181613212565b82525050565b6000608082019050613f0c6000830187613ed9565b613f196020830186613ee8565b613f266040830185613ed9565b613f336060830184613ed9565b95945050505050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613f72601d83612edd565b9150613f7d82613f3c565b602082019050919050565b60006020820190508181036000830152613fa181613f65565b9050919050565b60006020820190508181036000830152613fc281846139f8565b90509291505056fea2646970667358221220e2b5b10d72da76a7314ebe2be3f7c1473a7af065711fd86df95a90acb7d8011164736f6c63430008180033
Deployed Bytecode
0x6080604052600436106101d75760003560e01c806376f2c49011610102578063cbce4c9711610095578063f2fde38b11610064578063f2fde38b146105f0578063f4f3b20014610619578063f8b89dfb14610642578063f9850b721461066b576101d7565b8063cbce4c9714610546578063d073c5731461056f578063d5abeb011461059a578063e25fe175146105c5576101d7565b8063a0712d68116100d1578063a0712d6814610499578063a945bf80146104b5578063b4a1e8eb146104e0578063c62752551461051d576101d7565b806376f2c490146103fe5780637f5cfbb6146104275780638da5cb5b14610443578063978e8bd81461046e576101d7565b806338af3eed1161017a57806348530b551161014957806348530b55146103775780635abc5632146103a25780636091f4f2146103be578063715018a6146103e7576101d7565b806338af3eed146102f057806339b6e72c1461031b5780633ccfd60b14610344578063449a52f81461035b576101d7565b80632c5f4ab4116101b65780632c5f4ab4146102595780632e8ac183146102825780633549345e146102ab5780633895444f146102d4576101d7565b80620e7fa8146101dc5780631c31f7101461020757806325667d1314610230575b600080fd5b3480156101e857600080fd5b506101f1610696565b6040516101fe9190612742565b60405180910390f35b34801561021357600080fd5b5061022e600480360381019061022991906127cf565b61069c565b005b34801561023c57600080fd5b5061025760048036038101906102529190612828565b610757565b005b34801561026557600080fd5b50610280600480360381019061027b91906129ae565b6107f2565b005b34801561028e57600080fd5b506102a960048036038101906102a49190612a5b565b610907565b005b3480156102b757600080fd5b506102d260048036038101906102cd9190612a88565b610953565b005b6102ee60048036038101906102e99190612ab5565b610965565b005b3480156102fc57600080fd5b50610305610a98565b6040516103129190612b47565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d9190612b62565b610abe565b005b34801561035057600080fd5b50610359610d3f565b005b61037560048036038101906103709190612828565b610d6d565b005b34801561038357600080fd5b5061038c610f0e565b6040516103999190612b47565b60405180910390f35b6103bc60048036038101906103b79190612ab5565b610f34565b005b3480156103ca57600080fd5b506103e560048036038101906103e091906127cf565b611080565b005b3480156103f357600080fd5b506103fc61113b565b005b34801561040a57600080fd5b5061042560048036038101906104209190612a88565b61114f565b005b610441600480360381019061043c9190612c04565b611161565b005b34801561044f57600080fd5b506104586112da565b6040516104659190612b47565b60405180910390f35b34801561047a57600080fd5b50610483611304565b6040516104909190612742565b60405180910390f35b6104b360048036038101906104ae9190612a88565b61130a565b005b3480156104c157600080fd5b506104ca61141a565b6040516104d79190612742565b60405180910390f35b3480156104ec57600080fd5b5061050760048036038101906105029190612a88565b611420565b6040516105149190612cf9565b60405180910390f35b34801561052957600080fd5b50610544600480360381019061053f9190612a88565b61144b565b005b34801561055257600080fd5b5061056d60048036038101906105689190612828565b61145d565b005b34801561057b57600080fd5b50610584611555565b6040516105919190612d73565b60405180910390f35b3480156105a657600080fd5b506105af61157b565b6040516105bc9190612742565b60405180910390f35b3480156105d157600080fd5b506105da611581565b6040516105e79190612e05565b60405180910390f35b3480156105fc57600080fd5b50610617600480360381019061061291906127cf565b611594565b005b34801561062557600080fd5b50610640600480360381019061063b9190612e5e565b611617565b005b34801561064e57600080fd5b5061066960048036038101906106649190612eb0565b6116c0565b005b34801561067757600080fd5b506106806117bb565b60405161068d9190612742565b60405180910390f35b60685481565b6106a46117c1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070a90612f60565b60405180910390fd5b80606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61075f6117c1565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f883836040518363ffffffff1660e01b81526004016107bc929190612f80565b600060405180830381600087803b1580156107d657600080fd5b505af11580156107ea573d6000803e3d6000fd5b505050505050565b6000600481111561080657610805612d8e565b5b606e60009054906101000a900460ff16600481111561082857610827612d8e565b5b03610868576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085f90612ff5565b60405180910390fd5b61087383838361183f565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f833856040518363ffffffff1660e01b81526004016108d0929190612f80565b600060405180830381600087803b1580156108ea57600080fd5b505af11580156108fe573d6000803e3d6000fd5b50505050505050565b61090f6117c1565b80606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61095b6117c1565b8060688190555050565b60048081111561097857610977612d8e565b5b606e60009054906101000a900460ff16600481111561099a57610999612d8e565b5b146109da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d190613061565b60405180910390fd5b6109e384611970565b60008311156109f8576109f783838361183f565b5b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f8338686610a4391906130b0565b6040518363ffffffff1660e01b8152600401610a60929190612f80565b600060405180830381600087803b158015610a7a57600080fd5b505af1158015610a8e573d6000803e3d6000fd5b5050505050505050565b606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060019054906101000a900460ff16159050808015610aef5750600160008054906101000a900460ff1660ff16105b80610b1c5750610afe30611afa565b158015610b1b5750600160008054906101000a900460ff1660ff16145b5b610b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5290613156565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015610b98576001600060016101000a81548160ff0219169083151502179055505b600060019054906101000a900460ff16610be7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bde906131e8565b60405180910390fd5b610bef611b1d565b87606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610c386112da565b606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086606b8190555085606a8190555084606881905550836069819055508260678190555081606c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508015610d355760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051610d2c9190613250565b60405180910390a15b5050505050505050565b610d6b606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1647611b76565b565b600480811115610d8057610d7f612d8e565b5b606e60009054906101000a900460ff166004811115610da257610da1612d8e565b5b14610de2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd990613061565b60405180910390fd5b606c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e69906132b7565b60405180910390fd5b610e7b81611970565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f883836040518363ffffffff1660e01b8152600401610ed8929190612f80565b600060405180830381600087803b158015610ef257600080fd5b505af1158015610f06573d6000803e3d6000fd5b505050505050565b606c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000606e60009054906101000a900460ff16905060026004811115610f5c57610f5b612d8e565b5b816004811115610f6f57610f6e612d8e565b5b1480610f9f575060036004811115610f8a57610f89612d8e565b5b816004811115610f9d57610f9c612d8e565b5b145b610fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd590613323565b60405180910390fd5b610fea85858585611c6a565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f833876040518363ffffffff1660e01b8152600401611047929190612f80565b600060405180830381600087803b15801561106157600080fd5b505af1158015611075573d6000803e3d6000fd5b505050505050505050565b6110886117c1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036110f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ee906133b5565b60405180910390fd5b80606c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6111436117c1565b61114d6000611f43565b565b6111576117c1565b8060678190555050565b6000606e60009054906101000a900460ff1690506002600481111561118957611188612d8e565b5b81600481111561119c5761119b612d8e565b5b14806111cc5750600360048111156111b7576111b6612d8e565b5b8160048111156111ca576111c9612d8e565b5b145b61120b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120290613323565b60405180910390fd5b60008611156112215761122086868685611c6a565b5b60008811156112365761123588888561183f565b5b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f833888b61128191906130b0565b6040518363ffffffff1660e01b815260040161129e929190612f80565b600060405180830381600087803b1580156112b857600080fd5b505af11580156112cc573d6000803e3d6000fd5b505050505050505050505050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60675481565b60048081111561131d5761131c612d8e565b5b606e60009054906101000a900460ff16600481111561133f5761133e612d8e565b5b1461137f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137690613061565b60405180910390fd5b61138881611970565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f833836040518363ffffffff1660e01b81526004016113e5929190612f80565b600060405180830381600087803b1580156113ff57600080fd5b505af1158015611413573d6000803e3d6000fd5b5050505050565b60695481565b6000606d600083815260200190815260200160002060009054906101000a900460ff16159050919050565b6114536117c1565b8060698190555050565b6114656117c1565b6000606a549050808211156114af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a690613421565b60405180910390fd5b81816114bb9190613441565b606a81905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663449a52f884846040518363ffffffff1660e01b815260040161151e929190612f80565b600060405180830381600087803b15801561153857600080fd5b505af115801561154c573d6000803e3d6000fd5b50505050505050565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606b5481565b606e60009054906101000a900460ff1681565b61159c6117c1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361160b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611602906134e7565b60405180910390fd5b61161481611f43565b50565b6116bd81606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016116779190612b47565b602060405180830381865afa158015611694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b8919061351c565b612009565b50565b6116c86117c1565b80606e60006101000a81548160ff021916908360048111156116ed576116ec612d8e565b5b0217905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166388f2ebcb606b546040518263ffffffff1660e01b815260040161174f9190612742565b600060405180830381600087803b15801561176957600080fd5b505af115801561177d573d6000803e3d6000fd5b505050507f87b8f17998ed00253352d147f387ebd1b05aa70ac64bc8f54972b3a58af18105816040516117b09190612e05565b60405180910390a150565b606a5481565b6117c961208f565b73ffffffffffffffffffffffffffffffffffffffff166117e76112da565b73ffffffffffffffffffffffffffffffffffffffff161461183d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183490613595565b60405180910390fd5b565b606d600083815260200190815260200160002060009054906101000a900460ff16156118a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189790613601565b60405180910390fd5b6000606a549050808411156118ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e190613421565b60405180910390fd5b6001606d600085815260200190815260200160002060006101000a81548160ff02191690831515021790555083816119229190613441565b606a8190555061196a6040518060400160405280600881526020017f676976656177617900000000000000000000000000000000000000000000000081525033868686612097565b50505050565b8034816069546119809190613621565b146119c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b7906136af565b60405180910390fd5b81606754811115611a06576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119fd9061371b565b60405180910390fd5b82606a54606b54611a179190613441565b81606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa9919061351c565b611ab391906130b0565b1115611af4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aeb90613787565b60405180910390fd5b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16611b6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b63906131e8565b60405180910390fd5b611b74612167565b565b80471015611bb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb0906137f3565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051611bdf90613844565b60006040518083038185875af1925050503d8060008114611c1c576040519150601f19603f3d011682016040523d82523d6000602084013e611c21565b606091505b5050905080611c65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5c906138cb565b60405180910390fd5b505050565b833481606854611c7a9190613621565b14611cba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb1906136af565b60405180910390fd5b84606a54606b54611ccb9190613441565b81606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5d919061351c565b611d6791906130b0565b1115611da8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9f90613787565b60405180910390fd5b858580821115611ded576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de490613937565b60405180910390fd5b600060026004811115611e0357611e02612d8e565b5b606e60009054906101000a900460ff166004811115611e2557611e24612d8e565b5b14611e65576040518060400160405280600881526020017f776169746c697374000000000000000000000000000000000000000000000000815250611e9c565b6040518060400160405280600981526020017f616c6c6f776c69737400000000000000000000000000000000000000000000008152505b9050606d600088815260200190815260200160002060009054906101000a900460ff1615611eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef6906139a3565b60405180910390fd5b6001606d600089815260200190815260200160002060006101000a81548160ff021916908315150217905550611f3881338a8a8a612097565b505050505050505050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61208a8363a9059cbb60e01b8484604051602401612028929190612f80565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506121c8565b505050565b600033905090565b600085858585306040516020016120b2959493929190613a31565b60405160208183030381529060405280519060200120905060006120e7836120d98461228f565b6122bf90919063ffffffff16565b90506120f16112da565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461215e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215590613ad7565b60405180910390fd5b50505050505050565b600060019054906101000a900460ff166121b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ad906131e8565b60405180910390fd5b6121c66121c161208f565b611f43565b565b600061222a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166122e69092919063ffffffff16565b905060008151111561228a578080602001905181019061224a9190613b23565b612289576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228090613bc2565b60405180910390fd5b5b505050565b6000816040516020016122a29190613c64565b604051602081830303815290604052805190602001209050919050565b60008060006122ce85856122fe565b915091506122db8161234f565b819250505092915050565b60606122f584846000856124b5565b90509392505050565b600080604183510361233f5760008060006020860151925060408601519150606086015160001a905061233387828585612582565b94509450505050612348565b60006002915091505b9250929050565b6000600481111561236357612362612d8e565b5b81600481111561237657612375612d8e565b5b03156124b257600160048111156123905761238f612d8e565b5b8160048111156123a3576123a2612d8e565b5b036123e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123da90613cd6565b60405180910390fd5b600260048111156123f7576123f6612d8e565b5b81600481111561240a57612409612d8e565b5b0361244a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244190613d42565b60405180910390fd5b6003600481111561245e5761245d612d8e565b5b81600481111561247157612470612d8e565b5b036124b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a890613dd4565b60405180910390fd5b5b50565b6060824710156124fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f190613e66565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516125239190613ec2565b60006040518083038185875af1925050503d8060008114612560576040519150601f19603f3d011682016040523d82523d6000602084013e612565565b606091505b509150915061257687838387612664565b92505050949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156125bd57600060039150915061265b565b6000600187878787604051600081526020016040526040516125e29493929190613ef7565b6020604051602081039080840390855afa158015612604573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036126525760006001925092505061265b565b80600092509250505b94509492505050565b606083156126c65760008351036126be5761267e85611afa565b6126bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b490613f88565b60405180910390fd5b5b8290506126d1565b6126d083836126d9565b5b949350505050565b6000825111156126ec5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127209190613fa8565b60405180910390fd5b6000819050919050565b61273c81612729565b82525050565b60006020820190506127576000830184612733565b92915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061279c82612771565b9050919050565b6127ac81612791565b81146127b757600080fd5b50565b6000813590506127c9816127a3565b92915050565b6000602082840312156127e5576127e4612767565b5b60006127f3848285016127ba565b91505092915050565b61280581612729565b811461281057600080fd5b50565b600081359050612822816127fc565b92915050565b6000806040838503121561283f5761283e612767565b5b600061284d858286016127ba565b925050602061285e85828601612813565b9150509250929050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128bb82612872565b810181811067ffffffffffffffff821117156128da576128d9612883565b5b80604052505050565b60006128ed61275d565b90506128f982826128b2565b919050565b600067ffffffffffffffff82111561291957612918612883565b5b61292282612872565b9050602081019050919050565b82818337600083830152505050565b600061295161294c846128fe565b6128e3565b90508281526020810184848401111561296d5761296c61286d565b5b61297884828561292f565b509392505050565b600082601f83011261299557612994612868565b5b81356129a584826020860161293e565b91505092915050565b6000806000606084860312156129c7576129c6612767565b5b60006129d586828701612813565b93505060206129e686828701612813565b925050604084013567ffffffffffffffff811115612a0757612a0661276c565b5b612a1386828701612980565b9150509250925092565b6000612a2882612791565b9050919050565b612a3881612a1d565b8114612a4357600080fd5b50565b600081359050612a5581612a2f565b92915050565b600060208284031215612a7157612a70612767565b5b6000612a7f84828501612a46565b91505092915050565b600060208284031215612a9e57612a9d612767565b5b6000612aac84828501612813565b91505092915050565b60008060008060808587031215612acf57612ace612767565b5b6000612add87828801612813565b9450506020612aee87828801612813565b9350506040612aff87828801612813565b925050606085013567ffffffffffffffff811115612b2057612b1f61276c565b5b612b2c87828801612980565b91505092959194509250565b612b4181612791565b82525050565b6000602082019050612b5c6000830184612b38565b92915050565b600080600080600080600060e0888a031215612b8157612b80612767565b5b6000612b8f8a828b01612a46565b9750506020612ba08a828b01612813565b9650506040612bb18a828b01612813565b9550506060612bc28a828b01612813565b9450506080612bd38a828b01612813565b93505060a0612be48a828b01612813565b92505060c0612bf58a828b016127ba565b91505092959891949750929550565b600080600080600080600060e0888a031215612c2357612c22612767565b5b6000612c318a828b01612813565b9750506020612c428a828b01612813565b9650506040612c538a828b01612813565b9550506060612c648a828b01612813565b9450506080612c758a828b01612813565b93505060a088013567ffffffffffffffff811115612c9657612c9561276c565b5b612ca28a828b01612980565b92505060c088013567ffffffffffffffff811115612cc357612cc261276c565b5b612ccf8a828b01612980565b91505092959891949750929550565b60008115159050919050565b612cf381612cde565b82525050565b6000602082019050612d0e6000830184612cea565b92915050565b6000819050919050565b6000612d39612d34612d2f84612771565b612d14565b612771565b9050919050565b6000612d4b82612d1e565b9050919050565b6000612d5d82612d40565b9050919050565b612d6d81612d52565b82525050565b6000602082019050612d886000830184612d64565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60058110612dce57612dcd612d8e565b5b50565b6000819050612ddf82612dbd565b919050565b6000612def82612dd1565b9050919050565b612dff81612de4565b82525050565b6000602082019050612e1a6000830184612df6565b92915050565b6000612e2b82612791565b9050919050565b612e3b81612e20565b8114612e4657600080fd5b50565b600081359050612e5881612e32565b92915050565b600060208284031215612e7457612e73612767565b5b6000612e8284828501612e49565b91505092915050565b60058110612e9857600080fd5b50565b600081359050612eaa81612e8b565b92915050565b600060208284031215612ec657612ec5612767565b5b6000612ed484828501612e9b565b91505092915050565b600082825260208201905092915050565b7f63616e6e6f7420736574206e756c6c20616464726573732061732062656e656660008201527f6963696172792e00000000000000000000000000000000000000000000000000602082015250565b6000612f4a602783612edd565b9150612f5582612eee565b604082019050919050565b60006020820190508181036000830152612f7981612f3d565b9050919050565b6000604082019050612f956000830185612b38565b612fa26020830184612733565b9392505050565b7f6d696e7420697320636c6f736564000000000000000000000000000000000000600082015250565b6000612fdf600e83612edd565b9150612fea82612fa9565b602082019050919050565b6000602082019050818103600083015261300e81612fd2565b9050919050565b7f7075626c69632073616c65206973206e6f74206c697665000000000000000000600082015250565b600061304b601783612edd565b915061305682613015565b602082019050919050565b6000602082019050818103600083015261307a8161303e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006130bb82612729565b91506130c683612729565b92508282019050808211156130de576130dd613081565b5b92915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000613140602e83612edd565b915061314b826130e4565b604082019050919050565b6000602082019050818103600083015261316f81613133565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b60006131d2602b83612edd565b91506131dd82613176565b604082019050919050565b60006020820190508181036000830152613201816131c5565b9050919050565b6000819050919050565b600060ff82169050919050565b600061323a61323561323084613208565b612d14565b613212565b9050919050565b61324a8161321f565b82525050565b60006020820190506132656000830184613241565b92915050565b7f666f722063726f73736d696e74206f6e6c790000000000000000000000000000600082015250565b60006132a1601283612edd565b91506132ac8261326b565b602082019050919050565b600060208201905081810360008301526132d081613294565b9050919050565b7f70726573616c65206973206e6f74206c69766500000000000000000000000000600082015250565b600061330d601383612edd565b9150613318826132d7565b602082019050919050565b6000602082019050818103600083015261333c81613300565b9050919050565b7f63616e6e6f7420736574206e756c6c20616464726573732061732063726f737360008201527f6d696e74206d696e74696e6720616464726573732e0000000000000000000000602082015250565b600061339f603583612edd565b91506133aa82613343565b604082019050919050565b600060208201905081810360008301526133ce81613392565b9050919050565b7f63616e6e6f7420657863656564206d6178206769766561776179000000000000600082015250565b600061340b601a83612edd565b9150613416826133d5565b602082019050919050565b6000602082019050818103600083015261343a816133fe565b9050919050565b600061344c82612729565b915061345783612729565b925082820390508181111561346f5761346e613081565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006134d1602683612edd565b91506134dc82613475565b604082019050919050565b60006020820190508181036000830152613500816134c4565b9050919050565b600081519050613516816127fc565b92915050565b60006020828403121561353257613531612767565b5b600061354084828501613507565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061357f602083612edd565b915061358a82613549565b602082019050919050565b600060208201905081810360008301526135ae81613572565b9050919050565b7f6769766561776179206e6f6e636520616c726561647920757365640000000000600082015250565b60006135eb601b83612edd565b91506135f6826135b5565b602082019050919050565b6000602082019050818103600083015261361a816135de565b9050919050565b600061362c82612729565b915061363783612729565b925082820261364581612729565b9150828204841483151761365c5761365b613081565b5b5092915050565b7f696e636f72726563742070726963650000000000000000000000000000000000600082015250565b6000613699600f83612edd565b91506136a482613663565b602082019050919050565b600060208201905081810360008301526136c88161368c565b9050919050565b7f6c696d69745065725075626c69634d696e742065786365656465640000000000600082015250565b6000613705601b83612edd565b9150613710826136cf565b602082019050919050565b60006020820190508181036000830152613734816136f8565b9050919050565b7f6e6f7420656e6f75676820746f6b656e73206c65667400000000000000000000600082015250565b6000613771601683612edd565b915061377c8261373b565b602082019050919050565b600060208201905081810360008301526137a081613764565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006137dd601d83612edd565b91506137e8826137a7565b602082019050919050565b6000602082019050818103600083015261380c816137d0565b9050919050565b600081905092915050565b50565b600061382e600083613813565b91506138398261381e565b600082019050919050565b600061384f82613821565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b60006138b5603a83612edd565b91506138c082613859565b604082019050919050565b600060208201905081810360008301526138e4816138a8565b9050919050565b7f7175616e746974792061626f7665206d61780000000000000000000000000000600082015250565b6000613921601283612edd565b915061392c826138eb565b602082019050919050565b6000602082019050818103600083015261395081613914565b9050919050565b7f70726573616c65206e6f6e636520616c72656164792075736564000000000000600082015250565b600061398d601a83612edd565b915061399882613957565b602082019050919050565b600060208201905081810360008301526139bc81613980565b9050919050565b600081519050919050565b60005b838110156139ec5780820151818401526020810190506139d1565b60008484015250505050565b6000613a03826139c3565b613a0d8185612edd565b9350613a1d8185602086016139ce565b613a2681612872565b840191505092915050565b600060a0820190508181036000830152613a4b81886139f8565b9050613a5a6020830187612b38565b613a676040830186612733565b613a746060830185612733565b613a816080830184612b38565b9695505050505050565b7f696e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b6000613ac1601183612edd565b9150613acc82613a8b565b602082019050919050565b60006020820190508181036000830152613af081613ab4565b9050919050565b613b0081612cde565b8114613b0b57600080fd5b50565b600081519050613b1d81613af7565b92915050565b600060208284031215613b3957613b38612767565b5b6000613b4784828501613b0e565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613bac602a83612edd565b9150613bb782613b50565b604082019050919050565b60006020820190508181036000830152613bdb81613b9f565b9050919050565b600081905092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000613c23601c83613be2565b9150613c2e82613bed565b601c82019050919050565b6000819050919050565b6000819050919050565b613c5e613c5982613c39565b613c43565b82525050565b6000613c6f82613c16565b9150613c7b8284613c4d565b60208201915081905092915050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000613cc0601883612edd565b9150613ccb82613c8a565b602082019050919050565b60006020820190508181036000830152613cef81613cb3565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000613d2c601f83612edd565b9150613d3782613cf6565b602082019050919050565b60006020820190508181036000830152613d5b81613d1f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000613dbe602283612edd565b9150613dc982613d62565b604082019050919050565b60006020820190508181036000830152613ded81613db1565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000613e50602683612edd565b9150613e5b82613df4565b604082019050919050565b60006020820190508181036000830152613e7f81613e43565b9050919050565b600081519050919050565b6000613e9c82613e86565b613ea68185613813565b9350613eb68185602086016139ce565b80840191505092915050565b6000613ece8284613e91565b915081905092915050565b613ee281613c39565b82525050565b613ef181613212565b82525050565b6000608082019050613f0c6000830187613ed9565b613f196020830186613ee8565b613f266040830185613ed9565b613f336060830184613ed9565b95945050505050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613f72601d83612edd565b9150613f7d82613f3c565b602082019050919050565b60006020820190508181036000830152613fa181613f65565b9050919050565b60006020820190508181036000830152613fc281846139f8565b90509291505056fea2646970667358221220e2b5b10d72da76a7314ebe2be3f7c1473a7af065711fd86df95a90acb7d8011164736f6c63430008180033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.