Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
WaltsVaultMintController
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.18; ////.................................................................................... ////.................................................................................... ////.............................▒██▓.....................................[K0K0'23]..... ////........▓█████▒.............▓██▓.................................................... ////.......▓██▓▒▓██▓...▒██▓....▓██▓..................................................... ////.......███▒..███▒..▒███....███...▓███.....▓███....▓███████████.▓██..▓██████▓........ ////........▓▓▒...███..▓███...▓██▒...████▓.....███....▒▓...███...▓.▓▓..███▒..▓█▓........ ////..............▓██▒.████▒.▒███...▒█████.....███.........███.........███▒............. ////..............▒███▒█████.███▒...███▒██▓....███.........███..........▓███▓▒.......... ////...............█████████▓███....██▓.███....███.........███.........▓▒.▒▓███▓........ ////...............▒████▓▒█████▒...▓███████▒...███.........███........▓██▓...▒███....... ////................████▒.█████....███▓▓▓███...███.........███........███▒....███....... ////................▓███..▓███▒...▓██▒...▓██▒..████████▓...███.........████▓████▒....... ////................▒███..▒███...▒▓▓▓▒...▓▓▓▓.▒▓▓▓▓▓▓▓▓▓..▒▓▓▓▒.........▒▓▓▓▓▓▒......... ////................▓███..▓███.......................................................... ////.................................................................................... ////...........▒▒▒▒..........▒███▒...................................................... ////.........▒██████▓.......▒██▓........................................................ ////.........███..▒██▓......███......................................................... ////.........▓██▒..▓██▒....▓██▒...████....▓██▒....███..▓██▒.....█▓▓▓███▓▓█▓............. ////................███...▒██▓...▒████▒...▓██▒....▓██..▓██▒.........██▓................. ////................▓██▒..▓██▒...▓█████...▓██▒....▓██..▓██▒.........██▓................. ////.................███.▒██▓...▒██▒▒██▒..▓██▒....▓██..▓██▒.........██▓................. ////.................▓██▒███....▓██▒.██▓..▓██▒....▓██..▓██▒.........██▓................. ////.................▒█████▓....████████▒.▒██▓....███..▓██▒.........██▓................. ////..................█████....▓██▒..▒██▓..███▒..▓██▒..▓██▒.........██▓................. ////..................▓███▓...▒███....███▒..▓██████▒...▓████████▒...███................. ////..................▒███▒...▒▒▒▒....▒▒▒▒....▒▒▒......▒▒▒▒▒▒▒▒▒....▒▒▒................. ////..................▓▓▓▓▒............................................................. ////.................................................................................... ////.................................................................................... ////..........▓▒▒ Once you open the Vault ~ imagination is the only limit ▒▒▓........... ////.................................................................................... ////....................................dream.a.little.................................. ////.................................................................................... import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import {PausableUpgradeable} from "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import {IWaltsVaultNFT} from "./Interfaces/IWaltsVaultNFT.sol"; import {Signer} from "./utils/Signer.sol"; contract WaltsVaultMintController is OwnableUpgradeable, Signer, PausableUpgradeable { IWaltsVaultNFT public ravendale; IWaltsVaultNFT public waltsVault; address public TREASURY; address public AUTHORISED_SIGNER; uint8 public MAX_MINTS_PER_TOKEN_RD; uint8 public MAX_MINTS_PER_SPOT_VL; uint16 public MAX_MINTS_PER_ADDR_PUBLIC; uint16 public MAX_AMOUNT_FOR_SALE; uint16 public AVAILABLE_AMOUNT_FOR_VL; uint16 public SIGNATURE_VALIDITY; uint32 public START_TIME_RD; uint32 public END_TIME_RD; uint32 public START_TIME_VL; uint32 public END_TIME_VL; uint32 public START_TIME_PUBLIC; uint32 public END_TIME_PUBLIC; uint256 public PRICE; uint16 public amountSold; mapping(address => uint256) public rdMintsBy; mapping(address => uint256) public vlMintsBy; mapping(address => uint256) public publicMintsBy; mapping(address => uint256[]) private tokensLockedBy; mapping(uint256 => address) public lockerOf; mapping(bytes => bool) private isSignatureUsed; event RavendaleClaim(address indexed _claimer, uint256 indexed _tokenId); event RavendaleMint(address _minter, uint256 indexed _amount); event VaultListMint(address _minter, uint256 indexed _amount); event PublicMint(address _minter, uint256 indexed _amount); event ReleaseRavendale(address indexed _receiver, uint256 indexed _tokenId); function initialize() external initializer { __Ownable_init(); __Signer_init(); __Pausable_init(); ravendale = IWaltsVaultNFT(0xf83A99E084C1D575AF8e12FF492F5E6C7b768b48); waltsVault = IWaltsVaultNFT(0x9980b3aA61114B07A7604FfDC7C7D04bb6D8d735); TREASURY = 0x2F86b325E8FfeE20703C93A8F28Ab7a5Dd711b7E; AUTHORISED_SIGNER = 0xA4CC419dB3F709B2E2f3f9Eb06B6cEC14DeDdDC6; SIGNATURE_VALIDITY = uint16(5 minutes); PRICE = 0.0628 ether; MAX_MINTS_PER_TOKEN_RD = uint8(1); MAX_MINTS_PER_SPOT_VL = uint8(1); MAX_MINTS_PER_ADDR_PUBLIC = uint16(2); MAX_AMOUNT_FOR_SALE = uint16(5960); AVAILABLE_AMOUNT_FOR_VL = MAX_AMOUNT_FOR_SALE - uint16(928); START_TIME_RD = uint32(1683118800); END_TIME_RD = START_TIME_RD + uint32(8 hours); START_TIME_VL = START_TIME_RD; END_TIME_VL = END_TIME_RD; START_TIME_PUBLIC = END_TIME_VL; END_TIME_PUBLIC = START_TIME_PUBLIC + uint32(100 days); } function mint( uint16 amountRD, uint16 amountVL, uint16 amountPUBLIC, uint256[] calldata tokensToLockRD, signedData memory spotsDataVL ) external payable whenNotPaused { uint256 amountTOTAL = amountRD + amountVL + amountPUBLIC; require(PRICE * amountTOTAL == msg.value, "mint: unacceptable payment"); require(MAX_AMOUNT_FOR_SALE >= amountSold + amountTOTAL, "mint: unacceptable amount"); if(tokensToLockRD.length > 0){ _ravendaleMint(amountRD, tokensToLockRD); } if(amountVL > 0){ _vaultListMint(amountVL, spotsDataVL); } if(amountPUBLIC > 0){ _publicMint(amountPUBLIC); } amountSold += uint16(amountTOTAL); } // ======== INTERNAL FUNCTIONS ======== // function _ravendaleMint( uint16 amountRD, uint256[] calldata tokensToLockRD ) internal { require(START_TIME_VL <= block.timestamp, "ravendale: sale not started"); for(uint256 i=0; i<tokensToLockRD.length; i++){ tokensLockedBy[msg.sender].push(tokensToLockRD[i]); lockerOf[tokensToLockRD[i]] = msg.sender; ravendale.safeTransferFrom(msg.sender, address(this), tokensToLockRD[i]); waltsVault.safeTransferFrom(address(this), msg.sender, tokensToLockRD[i]); emit RavendaleClaim(msg.sender, tokensToLockRD[i]); } if(amountRD > 0){ require(END_TIME_VL >= block.timestamp, "ravendale: sale over"); require(MAX_MINTS_PER_TOKEN_RD * tokensToLockRD.length >= amountRD, "ravendale: unacceptable amount"); rdMintsBy[msg.sender] += amountRD; (address[] memory receiver, uint256[] memory AmountRD) = _getArray(msg.sender, amountRD); waltsVault.airdrop(receiver, AmountRD); emit RavendaleMint(msg.sender, amountRD); } AVAILABLE_AMOUNT_FOR_VL += uint16(tokensToLockRD.length) - amountRD; } function _vaultListMint( uint16 amountVL, signedData memory spotsDataVL ) internal { require(START_TIME_VL <= block.timestamp, "vault list: sale not started"); require(block.timestamp <= END_TIME_VL, "vault list: sale over"); require(amountVL <= AVAILABLE_AMOUNT_FOR_VL, "vault list: unavailable amount"); require(block.timestamp < spotsDataVL.nonce + SIGNATURE_VALIDITY, "vault list: expired nonce"); require(getSigner(spotsDataVL) == AUTHORISED_SIGNER, "vault list: unauthorised signer"); require(!isSignatureUsed[spotsDataVL.signature], "vault list: used signature"); require(spotsDataVL.userAddress == msg.sender, "vault list: unauthorised address"); require(MAX_MINTS_PER_SPOT_VL * spotsDataVL.allocatedSpots >= vlMintsBy[msg.sender] + amountVL, "vault list: unacceptable amount"); isSignatureUsed[spotsDataVL.signature] = true; vlMintsBy[msg.sender] += amountVL; AVAILABLE_AMOUNT_FOR_VL -= amountVL; (address[] memory receiver, uint256[] memory AmountVL) = _getArray(spotsDataVL.userAddress, amountVL); waltsVault.airdrop(receiver, AmountVL); emit VaultListMint(msg.sender, amountVL); } function _publicMint( uint16 amountPUBLIC ) internal { require(START_TIME_PUBLIC <= block.timestamp, "public: sale not started"); require(END_TIME_PUBLIC >= block.timestamp, "public: sale over"); require(MAX_MINTS_PER_ADDR_PUBLIC >= publicMintsBy[msg.sender] + amountPUBLIC, "public: unacceptable amount"); publicMintsBy[msg.sender] += amountPUBLIC; (address[] memory receiver, uint256[] memory amount) = _getArray(msg.sender, amountPUBLIC); waltsVault.airdrop(receiver, amount); emit PublicMint(msg.sender, amountPUBLIC); } function _getArray(address userAddress, uint256 totalTokens) internal pure returns (address[] memory addressArray, uint256[] memory tokenArray) { addressArray = new address[](1); tokenArray = new uint256[](1); addressArray[0] = userAddress; tokenArray[0] = totalTokens; } // ======== OWNER FUNCTIONS ======== // /** * @notice The function is used to pause/ unpause mint functions */ function togglePause() external onlyOwner { if (paused()) { _unpause(); } else { _pause(); } } function releaseRavendale( address[] calldata lockers ) external onlyOwner { for(uint256 j=0; j<lockers.length; j++){ uint256[] memory tokensToRelease = tokensLockedBy[lockers[j]]; delete tokensLockedBy[lockers[j]]; for(uint256 i=0; i<tokensToRelease.length; i++){ lockerOf[tokensToRelease[i]] = address(0); ravendale.safeTransferFrom(address(this), lockers[j], tokensToRelease[i]); emit ReleaseRavendale(lockers[j], tokensToRelease[i]); } } } function withdraw() external onlyOwner { payable(TREASURY).transfer(address(this).balance); } function setRavendaleAddr(address _ravendale) external onlyOwner { ravendale = IWaltsVaultNFT(_ravendale); } function setWaltsVaultAddr(address _waltsVault) external onlyOwner { waltsVault = IWaltsVaultNFT(_waltsVault); } function setTreasury(address _treasury) external onlyOwner { TREASURY = _treasury; } function setAuthorisedSigner(address _signer) external onlyOwner { AUTHORISED_SIGNER = _signer; } function setSignatureValidityTime(uint16 validityTime) external onlyOwner { SIGNATURE_VALIDITY = validityTime; } function setPrice(uint256 _price) external onlyOwner { PRICE = _price; } function setMaxAmtForSale(uint16 _amount) external onlyOwner { MAX_AMOUNT_FOR_SALE = _amount; } function setMaxMintsPerTokenRD(uint8 _amount) external onlyOwner { MAX_MINTS_PER_TOKEN_RD = _amount; } function setMaxMintsPerSpotVL(uint8 _amount) external onlyOwner { MAX_MINTS_PER_SPOT_VL = _amount; } function setMaxMintsPerAddrPublic(uint16 _amount) external onlyOwner { MAX_MINTS_PER_ADDR_PUBLIC = _amount; } function setStartEndTime( uint32 _startVL, uint32 _endVL, uint32 _startPB, uint32 _endPB, uint32 _startRD, uint32 _endRD ) external onlyOwner { START_TIME_VL = _startVL; END_TIME_VL = _endVL; START_TIME_PUBLIC = _startPB; END_TIME_PUBLIC = _endPB; START_TIME_RD = _startRD; END_TIME_RD = _endRD; } // ======== READ FUNCTIONS ======== // function getTokensLockedByAddr(address addr) external view returns(uint256[] memory){ return tokensLockedBy[addr]; } function getTotalTokensLocked(address addr) external view returns(uint256){ return tokensLockedBy[addr].length; } function getTokenLockedByIndex(address addr, uint256 index) external view returns(uint256){ return tokensLockedBy[addr][index]; } // ======== AUXILIARY FUNCTIONS ======== // function onERC721Received( address, address, uint256, bytes memory ) public pure virtual returns (bytes4) { return this.onERC721Received.selector; } }
// 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 (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @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.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the 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 have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the 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); }
// 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/draft-EIP712.sol) pragma solidity ^0.8.0; // EIP-712 is Final as of 2022-08-11. This file is deprecated. import "./EIP712Upgradeable.sol";
// 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/cryptography/EIP712.sol) pragma solidity ^0.8.0; import "./ECDSAUpgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ * * @custom:storage-size 52 */ abstract contract EIP712Upgradeable is Initializable { /* solhint-disable var-name-mixedcase */ bytes32 private _HASHED_NAME; bytes32 private _HASHED_VERSION; bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ function __EIP712_init(string memory name, string memory version) internal onlyInitializing { __EIP712_init_unchained(name, version); } function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { return _buildDomainSeparator(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash()); } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSAUpgradeable.toTypedDataHash(_domainSeparatorV4(), structHash); } /** * @dev The hash of the name parameter for the EIP712 domain. * * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs * are a concern. */ function _EIP712NameHash() internal virtual view returns (bytes32) { return _HASHED_NAME; } /** * @dev The hash of the version parameter for the EIP712 domain. * * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs * are a concern. */ function _EIP712VersionHash() internal virtual view returns (bytes32) { return _HASHED_VERSION; } /** * @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 v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// 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: UNLICENSED pragma solidity ^0.8.0; import {IERC721Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol"; interface IWaltsVaultNFT is IERC721Upgradeable { function totalSupply() external view returns (uint256); function airdrop( address[] calldata to, uint256[] calldata amount ) external; }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.7; import "@openzeppelin/contracts-upgradeable/utils/cryptography/draft-EIP712Upgradeable.sol"; contract Signer is EIP712Upgradeable { string private constant SIGNING_DOMAIN = "Walts_Vault"; string private constant SIGNATURE_VERSION = "1"; struct signedData { uint256 nonce; uint256 allocatedSpots; address userAddress; bytes signature; } /** @notice This is initializer function is used to initialize values of contracts */ function __Signer_init() internal initializer { __EIP712_init(SIGNING_DOMAIN, SIGNATURE_VERSION); } /** @dev This function is used to get signer address of signature @param _signedData signedData object */ function getSigner(signedData memory _signedData) public view returns (address) { return _verifyOrder(_signedData); } /** @dev This function is used to generate hash message @param _signedData signedData object to create hash */ function _signedDataHash(signedData memory _signedData) internal view returns (bytes32) { return _hashTypedDataV4( keccak256( abi.encode( keccak256("signedData(uint256 nonce,uint256 allocatedSpots,address userAddress)"), _signedData.nonce, _signedData.allocatedSpots, _signedData.userAddress ) ) ); } /** @dev This function is used to verify signature @param _signedData signedData object to verify */ function _verifyOrder(signedData memory _signedData) internal view returns (address) { bytes32 digest = _signedDataHash(_signedData); return ECDSAUpgradeable.recover(digest, _signedData.signature); } }
{ "optimizer": { "enabled": true, "runs": 500 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_minter","type":"address"},{"indexed":true,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"PublicMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_claimer","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"RavendaleClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_minter","type":"address"},{"indexed":true,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"RavendaleMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_receiver","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"ReleaseRavendale","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_minter","type":"address"},{"indexed":true,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"VaultListMint","type":"event"},{"inputs":[],"name":"AUTHORISED_SIGNER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AVAILABLE_AMOUNT_FOR_VL","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"END_TIME_PUBLIC","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"END_TIME_RD","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"END_TIME_VL","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_AMOUNT_FOR_SALE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTS_PER_ADDR_PUBLIC","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTS_PER_SPOT_VL","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTS_PER_TOKEN_RD","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNATURE_VALIDITY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_TIME_PUBLIC","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_TIME_RD","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_TIME_VL","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountSold","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"allocatedSpots","type":"uint256"},{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct Signer.signedData","name":"_signedData","type":"tuple"}],"name":"getSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getTokenLockedByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getTokensLockedByAddr","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getTotalTokensLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"amountRD","type":"uint16"},{"internalType":"uint16","name":"amountVL","type":"uint16"},{"internalType":"uint16","name":"amountPUBLIC","type":"uint16"},{"internalType":"uint256[]","name":"tokensToLockRD","type":"uint256[]"},{"components":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"allocatedSpots","type":"uint256"},{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct Signer.signedData","name":"spotsDataVL","type":"tuple"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMintsBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ravendale","outputs":[{"internalType":"contract IWaltsVaultNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rdMintsBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"lockers","type":"address[]"}],"name":"releaseRavendale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setAuthorisedSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setMaxAmtForSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setMaxMintsPerAddrPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_amount","type":"uint8"}],"name":"setMaxMintsPerSpotVL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_amount","type":"uint8"}],"name":"setMaxMintsPerTokenRD","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ravendale","type":"address"}],"name":"setRavendaleAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"validityTime","type":"uint16"}],"name":"setSignatureValidityTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_startVL","type":"uint32"},{"internalType":"uint32","name":"_endVL","type":"uint32"},{"internalType":"uint32","name":"_startPB","type":"uint32"},{"internalType":"uint32","name":"_endPB","type":"uint32"},{"internalType":"uint32","name":"_startRD","type":"uint32"},{"internalType":"uint32","name":"_endRD","type":"uint32"}],"name":"setStartEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_waltsVault","type":"address"}],"name":"setWaltsVaultAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vlMintsBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"waltsVault","outputs":[{"internalType":"contract IWaltsVaultNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50612f90806100206000396000f3fe6080604052600436106102f75760003560e01c806384aa05971161019a578063c4ae3168116100e1578063e59b3df01161008a578063f2fde38b11610064578063f2fde38b14610947578063f4e0e87814610967578063f7f152ae1461098957600080fd5b8063e59b3df0146108e6578063f0f4426014610907578063f0fd6e351461092757600080fd5b8063d2b949ed116100bb578063d2b949ed14610886578063d983177b146108a6578063de6e8657146108c657600080fd5b8063c4ae316814610822578063c4dca22214610837578063cdd2658a1461086457600080fd5b80639c4dd6b211610143578063b115b96e1161011d578063b115b96e146107b5578063bcf6160f146107d5578063c229a848146107f557600080fd5b80639c4dd6b2146107485780639f1992ec14610768578063a885644e1461078857600080fd5b806391b7f5ed1161017457806391b7f5ed146106d5578063927e4ef4146106f55780639aa611041461071557600080fd5b806384aa05971461067d5780638d859f3e146106a15780638da5cb5b146106b757600080fd5b8063344ba0761161025e5780635c975abb1161020757806374678216116101e1578063746782161461062657806381265560146106465780638129fc1c1461066857600080fd5b80635c975abb146105c95780636bda4fbc146105ec578063715018a61461061157600080fd5b80633ccfd60b116102385780633ccfd60b1461057957806352a16bb01461058e57806356ac69dd146105a957600080fd5b8063344ba076146104ff5780633519fe3a146105355780633b14b8fa1461055557600080fd5b806317135d9b116102c05780632a73dead1161029a5780632a73dead1461046f5780632b6f2033146104a45780632d2c5565146104df57600080fd5b806317135d9b146104095780631c06ea771461042b5780631fa66c6c1461044f57600080fd5b8062b08c36146102fc5780630773ec001461033357806311fd64d514610357578063121cba191461038f578063150b7a02146103c5575b600080fd5b34801561030857600080fd5b5060cf546103199063ffffffff1681565b60405163ffffffff90911681526020015b60405180910390f35b34801561033f57600080fd5b5060cf5461031990600160a01b900463ffffffff1681565b34801561036357600080fd5b5060cc54610377906001600160a01b031681565b6040516001600160a01b03909116815260200161032a565b34801561039b57600080fd5b506103776103aa36600461290e565b60d6602052600090815260409020546001600160a01b031681565b3480156103d157600080fd5b506103f06103e03660046129e6565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200161032a565b34801561041557600080fd5b50610429610424366004612a4e565b61099c565b005b34801561043757600080fd5b5060cf5461031990600160401b900463ffffffff1681565b34801561045b57600080fd5b5061042961046a366004612a7b565b6109c6565b34801561047b57600080fd5b5060ce5461049190600160e01b900461ffff1681565b60405161ffff909116815260200161032a565b3480156104b057600080fd5b506104d16104bf366004612a4e565b60d46020526000908152604090205481565b60405190815260200161032a565b3480156104eb57600080fd5b5060cd54610377906001600160a01b031681565b34801561050b57600080fd5b506104d161051a366004612a4e565b6001600160a01b0316600090815260d5602052604090205490565b34801561054157600080fd5b50610429610550366004612a4e565b6109f0565b34801561056157600080fd5b5060cf5461031990600160801b900463ffffffff1681565b34801561058557600080fd5b50610429610a1a565b34801561059a57600080fd5b5060d1546104919061ffff1681565b3480156105b557600080fd5b506103776105c4366004612b20565b610a5e565b3480156105d557600080fd5b5060995460ff16604051901515815260200161032a565b3480156105f857600080fd5b5060cf5461031990640100000000900463ffffffff1681565b34801561061d57600080fd5b50610429610a6f565b34801561063257600080fd5b50610429610641366004612b5d565b610a83565b34801561065257600080fd5b5060ce5461049190600160c01b900461ffff1681565b34801561067457600080fd5b50610429610aab565b34801561068957600080fd5b5060cf5461031990600160601b900463ffffffff1681565b3480156106ad57600080fd5b506104d160d05481565b3480156106c357600080fd5b506033546001600160a01b0316610377565b3480156106e157600080fd5b506104296106f036600461290e565b610dcf565b34801561070157600080fd5b50610429610710366004612b94565b610ddc565b34801561072157600080fd5b5060ce5461073690600160a01b900460ff1681565b60405160ff909116815260200161032a565b34801561075457600080fd5b50610429610763366004612a7b565b610e98565b34801561077457600080fd5b50610429610783366004612c4d565b610ec2565b34801561079457600080fd5b506104d16107a3366004612a4e565b60d36020526000908152604090205481565b3480156107c157600080fd5b506104296107d0366004612a4e565b611179565b3480156107e157600080fd5b506104296107f0366004612a7b565b6111a3565b34801561080157600080fd5b50610815610810366004612a4e565b6111cd565b60405161032a9190612cca565b34801561082e57600080fd5b50610429611239565b34801561084357600080fd5b506104d1610852366004612a4e565b60d26020526000908152604090205481565b34801561087057600080fd5b5060ce5461049190600160b01b900461ffff1681565b34801561089257600080fd5b506104296108a1366004612b5d565b61125c565b3480156108b257600080fd5b506104d16108c1366004612cdd565b611284565b3480156108d257600080fd5b5060ce54610377906001600160a01b031681565b3480156108f257600080fd5b5060ce5461073690600160a81b900460ff1681565b34801561091357600080fd5b50610429610922366004612a4e565b6112c1565b34801561093357600080fd5b5060cb54610377906001600160a01b031681565b34801561095357600080fd5b50610429610962366004612a4e565b6112eb565b34801561097357600080fd5b5060ce5461049190600160d01b900461ffff1681565b610429610997366004612d07565b611361565b6109a46114c4565b60cb80546001600160a01b0319166001600160a01b0392909216919091179055565b6109ce6114c4565b60ce805461ffff909216600160b01b0261ffff60b01b19909216919091179055565b6109f86114c4565b60ce80546001600160a01b0319166001600160a01b0392909216919091179055565b610a226114c4565b60cd546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610a5b573d6000803e3d6000fd5b50565b6000610a698261151e565b92915050565b610a776114c4565b610a816000611541565b565b610a8b6114c4565b60ce805460ff909216600160a81b0260ff60a81b19909216919091179055565b600054610100900460ff1615808015610acb5750600054600160ff909116105b80610ae55750303b158015610ae5575060005460ff166001145b610b4d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805460ff191660011790558015610b70576000805461ff0019166101001790555b610b78611593565b610b806115c2565b610b8861170a565b60cb80546001600160a01b031990811673f83a99e084c1d575af8e12ff492f5e6c7b768b481790915560cc80548216739980b3aa61114b07a7604ffdc7c7d04bb6d8d73517905560cd8054909116732f86b325e8ffee20703c93a8f28ab7a5dd711b7e17905560ce805466df1c446be5000060d0557d012c0000174800020101a4cc419db3f709b2e2f3f9eb06b6cec14dedddc67fffff0000ffff00000000000000000000000000000000000000000000000000009091161790819055610c5d906103a090600160c01b900461ffff16612db7565b60ce805461ffff92909216600160d01b0261ffff60d01b1990921691909117905560cf805463ffffffff19166364525ad0908117909155610ca19061708090612dd9565b60cf8054600160801b600160601b640100000000600160401b63ffffffff968716820280881688871617919091026bffffffff0000000000000000199091166bffffffffffffffff000000001990951694909417939093179283048516810263ffffffff60601b1984168117919091048516820273ffffffff000000000000000000000000000000001990911673ffffffffffffffff00000000000000000000000019909316929092179190911791829055610d66926283d600929190910416612dd9565b60cf60146101000a81548163ffffffff021916908363ffffffff1602179055508015610a5b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498906020015b60405180910390a150565b610dd76114c4565b60d055565b610de46114c4565b60cf805463ffffffff9283166401000000000267ffffffffffffffff19958416600160a01b0263ffffffff60a01b19978516600160801b02979097167fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff988516600160601b0263ffffffff60601b199a8616600160401b029a909a166fffffffffffffffff000000000000000019909316929092179890981796909616959095179390931791909116911617919091179055565b610ea06114c4565b60ce805461ffff909216600160c01b0261ffff60c01b19909216919091179055565b610eca6114c4565b60005b8181101561117457600060d56000858585818110610eed57610eed612df6565b9050602002016020810190610f029190612a4e565b6001600160a01b03166001600160a01b03168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610f6c57602002820191906000526020600020905b815481526020019060010190808311610f58575b5050505050905060d56000858585818110610f8957610f89612df6565b9050602002016020810190610f9e9190612a4e565b6001600160a01b03166001600160a01b031681526020019081526020016000206000610fca91906128dc565b60005b815181101561115f57600060d66000848481518110610fee57610fee612df6565b602090810291909101810151825281019190915260400160002080546001600160a01b0319166001600160a01b0392831617905560cb54166342842e0e3087878781811061103e5761103e612df6565b90506020020160208101906110539190612a4e565b85858151811061106557611065612df6565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156110bf57600080fd5b505af11580156110d3573d6000803e3d6000fd5b505050508181815181106110e9576110e9612df6565b602002602001015185858581811061110357611103612df6565b90506020020160208101906111189190612a4e565b6001600160a01b03167fc94a955540e6096005c6aadd9eed52aa2e28e4938c3f392017911e86b2f52ad460405160405180910390a38061115781612e0c565b915050610fcd565b5050808061116c90612e0c565b915050610ecd565b505050565b6111816114c4565b60cc80546001600160a01b0319166001600160a01b0392909216919091179055565b6111ab6114c4565b60ce805461ffff909216600160e01b0261ffff60e01b19909216919091179055565b6001600160a01b038116600090815260d5602090815260409182902080548351818402810184019094528084526060939283018282801561122d57602002820191906000526020600020905b815481526020019060010190808311611219575b50505050509050919050565b6112416114c4565b60995460ff161561125457610a81611739565b610a8161178b565b6112646114c4565b60ce805460ff909216600160a01b0260ff60a01b19909216919091179055565b6001600160a01b038216600090815260d5602052604081208054839081106112ae576112ae612df6565b9060005260206000200154905092915050565b6112c96114c4565b60cd80546001600160a01b0319166001600160a01b0392909216919091179055565b6112f36114c4565b6001600160a01b0381166113585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b44565b610a5b81611541565b6113696117c8565b6000846113768789612e25565b6113809190612e25565b61ffff169050348160d0546113959190612e40565b146113e25760405162461bcd60e51b815260206004820152601a60248201527f6d696e743a20756e61636365707461626c65207061796d656e740000000000006044820152606401610b44565b60d1546113f490829061ffff16612e57565b60ce54600160c01b900461ffff1610156114505760405162461bcd60e51b815260206004820152601960248201527f6d696e743a20756e61636365707461626c6520616d6f756e74000000000000006044820152606401610b44565b82156114615761146187858561181b565b61ffff861615611475576114758683611c8f565b61ffff851615611488576114888561212f565b60d180548291906000906114a190849061ffff16612e25565b92506101000a81548161ffff021916908361ffff16021790555050505050505050565b6033546001600160a01b03163314610a815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b44565b60008061152a8361234a565b905061153a8184606001516123cc565b9392505050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166115ba5760405162461bcd60e51b8152600401610b4490612e6a565b610a816123f0565b600054610100900460ff16158080156115e25750600054600160ff909116105b806115fc5750303b1580156115fc575060005460ff166001145b61165f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610b44565b6000805460ff191660011790558015611682576000805461ff0019166101001790555b6116c86040518060400160405280600b81526020016a15d85b1d1cd7d5985d5b1d60aa1b815250604051806040016040528060018152602001603160f81b815250612420565b8015610a5b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001610dc4565b600054610100900460ff166117315760405162461bcd60e51b8152600401610b4490612e6a565b610a81612455565b611741612488565b6099805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6117936117c8565b6099805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861176e3390565b60995460ff1615610a815760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b44565b60cf5442600160401b90910463ffffffff16111561187b5760405162461bcd60e51b815260206004820152601b60248201527f726176656e64616c653a2073616c65206e6f74207374617274656400000000006044820152606401610b44565b60005b81811015611a945733600090815260d5602052604090208383838181106118a7576118a7612df6565b8354600181018555600094855260208086209202939093013592019190915550339060d6908585858181106118de576118de612df6565b6020908102929092013583525081019190915260400160002080546001600160a01b0319166001600160a01b0392831617905560cb54166342842e0e333086868681811061192e5761192e612df6565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561198557600080fd5b505af1158015611999573d6000803e3d6000fd5b505060cc546001600160a01b031691506342842e0e905030338686868181106119c4576119c4612df6565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015611a1b57600080fd5b505af1158015611a2f573d6000803e3d6000fd5b50505050828282818110611a4557611a45612df6565b90506020020135336001600160a01b03167f43c0a388b909895c64a4e0cfc1f6f8c346cb384c4e57c0445981c84ad76b3da060405160405180910390a380611a8c81612e0c565b91505061187e565b5061ffff831615611c495760cf5442600160601b90910463ffffffff161015611aff5760405162461bcd60e51b815260206004820152601460248201527f726176656e64616c653a2073616c65206f7665720000000000000000000000006044820152606401610b44565b60ce5461ffff841690611b1d908390600160a01b900460ff16612e40565b1015611b6b5760405162461bcd60e51b815260206004820152601e60248201527f726176656e64616c653a20756e61636365707461626c6520616d6f756e7400006044820152606401610b44565b33600090815260d260205260408120805461ffff86169290611b8e908490612e57565b909155506000905080611ba53361ffff87166124da565b60cc546040516333921a4160e11b81529294509092506001600160a01b031690636724348290611bdb9085908590600401612eb5565b600060405180830381600087803b158015611bf557600080fd5b505af1158015611c09573d6000803e3d6000fd5b505060405133815261ffff881692507ff8d3e342590b309a9c8198b4b19bd89738ad0bbc10477c9f05eaba58ed22227f915060200160405180910390a250505b611c538382612db7565b60ce8054601a90611c70908490600160d01b900461ffff16612e25565b92506101000a81548161ffff021916908361ffff160217905550505050565b60cf5442600160401b90910463ffffffff161115611cef5760405162461bcd60e51b815260206004820152601c60248201527f7661756c74206c6973743a2073616c65206e6f742073746172746564000000006044820152606401610b44565b60cf54600160601b900463ffffffff16421115611d4e5760405162461bcd60e51b815260206004820152601560248201527f7661756c74206c6973743a2073616c65206f76657200000000000000000000006044820152606401610b44565b60ce5461ffff600160d01b90910481169083161115611daf5760405162461bcd60e51b815260206004820152601e60248201527f7661756c74206c6973743a20756e617661696c61626c6520616d6f756e7400006044820152606401610b44565b60ce548151611dc991600160e01b900461ffff1690612e57565b4210611e175760405162461bcd60e51b815260206004820152601960248201527f7661756c74206c6973743a2065787069726564206e6f6e6365000000000000006044820152606401610b44565b60ce546001600160a01b0316611e2c82610a5e565b6001600160a01b031614611e825760405162461bcd60e51b815260206004820152601f60248201527f7661756c74206c6973743a20756e617574686f7269736564207369676e6572006044820152606401610b44565b60d78160600151604051611e969190612f15565b9081526040519081900360200190205460ff1615611ef65760405162461bcd60e51b815260206004820152601a60248201527f7661756c74206c6973743a2075736564207369676e61747572650000000000006044820152606401610b44565b60408101516001600160a01b03163314611f525760405162461bcd60e51b815260206004820181905260248201527f7661756c74206c6973743a20756e617574686f726973656420616464726573736044820152606401610b44565b33600090815260d36020526040902054611f719061ffff841690612e57565b602082015160ce54611f8d9190600160a81b900460ff16612e40565b1015611fdb5760405162461bcd60e51b815260206004820152601f60248201527f7661756c74206c6973743a20756e61636365707461626c6520616d6f756e74006044820152606401610b44565b600160d78260600151604051611ff19190612f15565b9081526040805160209281900383019020805460ff19169315159390931790925533600090815260d3909152908120805461ffff85169290612034908490612e57565b909155505060ce8054839190601a90612059908490600160d01b900461ffff16612db7565b92506101000a81548161ffff021916908361ffff16021790555060008061208883604001518561ffff166124da565b60cc546040516333921a4160e11b81529294509092506001600160a01b0316906367243482906120be9085908590600401612eb5565b600060405180830381600087803b1580156120d857600080fd5b505af11580156120ec573d6000803e3d6000fd5b505060405133815261ffff871692507f2c47df045e68e550f2ffb5cc46df96889cbd23d98f4141f19133a7bcc82dafe4915060200160405180910390a250505050565b60cf5442600160801b90910463ffffffff16111561218f5760405162461bcd60e51b815260206004820152601860248201527f7075626c69633a2073616c65206e6f74207374617274656400000000000000006044820152606401610b44565b60cf5442600160a01b90910463ffffffff1610156121ef5760405162461bcd60e51b815260206004820152601160248201527f7075626c69633a2073616c65206f7665720000000000000000000000000000006044820152606401610b44565b33600090815260d4602052604090205461220e9061ffff831690612e57565b60ce54600160b01b900461ffff16101561226a5760405162461bcd60e51b815260206004820152601b60248201527f7075626c69633a20756e61636365707461626c6520616d6f756e7400000000006044820152606401610b44565b33600090815260d460205260408120805461ffff8416929061228d908490612e57565b9091555060009050806122a43361ffff85166124da565b60cc546040516333921a4160e11b81529294509092506001600160a01b0316906367243482906122da9085908590600401612eb5565b600060405180830381600087803b1580156122f457600080fd5b505af1158015612308573d6000803e3d6000fd5b505060405133815261ffff861692507f748a2986091c2034d6e93b6f44f771a79f0e1d6acd8a60c68c17d4e1e2feaed2915060200160405180910390a2505050565b6000610a697f5fccd9b996b53bbab46cc9346c8ebf7b23c7e8692decb0a007cebb8cf7b51b078360000151846020015185604001516040516020016123b19493929190938452602084019290925260408301526001600160a01b0316606082015260800190565b6040516020818303038152906040528051906020012061257a565b60008060006123db85856125c8565b915091506123e88161260d565b509392505050565b600054610100900460ff166124175760405162461bcd60e51b8152600401610b4490612e6a565b610a8133611541565b600054610100900460ff166124475760405162461bcd60e51b8152600401610b4490612e6a565b6124518282612757565b5050565b600054610100900460ff1661247c5760405162461bcd60e51b8152600401610b4490612e6a565b6099805460ff19169055565b60995460ff16610a815760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b44565b604080516001808252818301909252606091829190602080830190803683375050604080516001808252818301909252929450905060208083019080368337019050509050838260008151811061253357612533612df6565b60200260200101906001600160a01b031690816001600160a01b031681525050828160008151811061256757612567612df6565b6020026020010181815250509250929050565b6000610a69612587612798565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008082516041036125fe5760208301516040840151606085015160001a6125f287828585612818565b94509450505050612606565b506000905060025b9250929050565b600081600481111561262157612621612f44565b036126295750565b600181600481111561263d5761263d612f44565b0361268a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b44565b600281600481111561269e5761269e612f44565b036126eb5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b44565b60038160048111156126ff576126ff612f44565b03610a5b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b44565b600054610100900460ff1661277e5760405162461bcd60e51b8152600401610b4490612e6a565b815160209283012081519190920120606591909155606655565b60006128137f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6127c760655490565b6066546040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b905090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561284f57506000905060036128d3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128cc576000600192509250506128d3565b9150600090505b94509492505050565b5080546000825590600052602060002090810190610a5b91905b8082111561290a57600081556001016128f6565b5090565b60006020828403121561292057600080fd5b5035919050565b80356001600160a01b038116811461293e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261296a57600080fd5b813567ffffffffffffffff8082111561298557612985612943565b604051601f8301601f19908116603f011681019082821181831017156129ad576129ad612943565b816040528381528660208588010111156129c657600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080608085870312156129fc57600080fd5b612a0585612927565b9350612a1360208601612927565b925060408501359150606085013567ffffffffffffffff811115612a3657600080fd5b612a4287828801612959565b91505092959194509250565b600060208284031215612a6057600080fd5b61153a82612927565b803561ffff8116811461293e57600080fd5b600060208284031215612a8d57600080fd5b61153a82612a69565b600060808284031215612aa857600080fd5b6040516080810167ffffffffffffffff8282108183111715612acc57612acc612943565b816040528293508435835260208501356020840152612aed60408601612927565b60408401526060850135915080821115612b0657600080fd5b50612b1385828601612959565b6060830152505092915050565b600060208284031215612b3257600080fd5b813567ffffffffffffffff811115612b4957600080fd5b612b5584828501612a96565b949350505050565b600060208284031215612b6f57600080fd5b813560ff8116811461153a57600080fd5b803563ffffffff8116811461293e57600080fd5b60008060008060008060c08789031215612bad57600080fd5b612bb687612b80565b9550612bc460208801612b80565b9450612bd260408801612b80565b9350612be060608801612b80565b9250612bee60808801612b80565b9150612bfc60a08801612b80565b90509295509295509295565b60008083601f840112612c1a57600080fd5b50813567ffffffffffffffff811115612c3257600080fd5b6020830191508360208260051b850101111561260657600080fd5b60008060208385031215612c6057600080fd5b823567ffffffffffffffff811115612c7757600080fd5b612c8385828601612c08565b90969095509350505050565b600081518084526020808501945080840160005b83811015612cbf57815187529582019590820190600101612ca3565b509495945050505050565b60208152600061153a6020830184612c8f565b60008060408385031215612cf057600080fd5b612cf983612927565b946020939093013593505050565b60008060008060008060a08789031215612d2057600080fd5b612d2987612a69565b9550612d3760208801612a69565b9450612d4560408801612a69565b9350606087013567ffffffffffffffff80821115612d6257600080fd5b612d6e8a838b01612c08565b90955093506080890135915080821115612d8757600080fd5b50612d9489828a01612a96565b9150509295509295509295565b634e487b7160e01b600052601160045260246000fd5b61ffff828116828216039080821115612dd257612dd2612da1565b5092915050565b63ffffffff818116838216019080821115612dd257612dd2612da1565b634e487b7160e01b600052603260045260246000fd5b600060018201612e1e57612e1e612da1565b5060010190565b61ffff818116838216019080821115612dd257612dd2612da1565b8082028115828204841417610a6957610a69612da1565b80820180821115610a6957610a69612da1565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b604080825283519082018190526000906020906060840190828701845b82811015612ef75781516001600160a01b031684529284019290840190600101612ed2565b50505083810382850152612f0b8186612c8f565b9695505050505050565b6000825160005b81811015612f365760208186018101518583015201612f1c565b506000920191825250919050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220e01b288db5658f3b2eb12622115b993742dab86ea18e09bf0342f80aadda8c5864736f6c63430008120033
Deployed Bytecode
0x6080604052600436106102f75760003560e01c806384aa05971161019a578063c4ae3168116100e1578063e59b3df01161008a578063f2fde38b11610064578063f2fde38b14610947578063f4e0e87814610967578063f7f152ae1461098957600080fd5b8063e59b3df0146108e6578063f0f4426014610907578063f0fd6e351461092757600080fd5b8063d2b949ed116100bb578063d2b949ed14610886578063d983177b146108a6578063de6e8657146108c657600080fd5b8063c4ae316814610822578063c4dca22214610837578063cdd2658a1461086457600080fd5b80639c4dd6b211610143578063b115b96e1161011d578063b115b96e146107b5578063bcf6160f146107d5578063c229a848146107f557600080fd5b80639c4dd6b2146107485780639f1992ec14610768578063a885644e1461078857600080fd5b806391b7f5ed1161017457806391b7f5ed146106d5578063927e4ef4146106f55780639aa611041461071557600080fd5b806384aa05971461067d5780638d859f3e146106a15780638da5cb5b146106b757600080fd5b8063344ba0761161025e5780635c975abb1161020757806374678216116101e1578063746782161461062657806381265560146106465780638129fc1c1461066857600080fd5b80635c975abb146105c95780636bda4fbc146105ec578063715018a61461061157600080fd5b80633ccfd60b116102385780633ccfd60b1461057957806352a16bb01461058e57806356ac69dd146105a957600080fd5b8063344ba076146104ff5780633519fe3a146105355780633b14b8fa1461055557600080fd5b806317135d9b116102c05780632a73dead1161029a5780632a73dead1461046f5780632b6f2033146104a45780632d2c5565146104df57600080fd5b806317135d9b146104095780631c06ea771461042b5780631fa66c6c1461044f57600080fd5b8062b08c36146102fc5780630773ec001461033357806311fd64d514610357578063121cba191461038f578063150b7a02146103c5575b600080fd5b34801561030857600080fd5b5060cf546103199063ffffffff1681565b60405163ffffffff90911681526020015b60405180910390f35b34801561033f57600080fd5b5060cf5461031990600160a01b900463ffffffff1681565b34801561036357600080fd5b5060cc54610377906001600160a01b031681565b6040516001600160a01b03909116815260200161032a565b34801561039b57600080fd5b506103776103aa36600461290e565b60d6602052600090815260409020546001600160a01b031681565b3480156103d157600080fd5b506103f06103e03660046129e6565b630a85bd0160e11b949350505050565b6040516001600160e01b0319909116815260200161032a565b34801561041557600080fd5b50610429610424366004612a4e565b61099c565b005b34801561043757600080fd5b5060cf5461031990600160401b900463ffffffff1681565b34801561045b57600080fd5b5061042961046a366004612a7b565b6109c6565b34801561047b57600080fd5b5060ce5461049190600160e01b900461ffff1681565b60405161ffff909116815260200161032a565b3480156104b057600080fd5b506104d16104bf366004612a4e565b60d46020526000908152604090205481565b60405190815260200161032a565b3480156104eb57600080fd5b5060cd54610377906001600160a01b031681565b34801561050b57600080fd5b506104d161051a366004612a4e565b6001600160a01b0316600090815260d5602052604090205490565b34801561054157600080fd5b50610429610550366004612a4e565b6109f0565b34801561056157600080fd5b5060cf5461031990600160801b900463ffffffff1681565b34801561058557600080fd5b50610429610a1a565b34801561059a57600080fd5b5060d1546104919061ffff1681565b3480156105b557600080fd5b506103776105c4366004612b20565b610a5e565b3480156105d557600080fd5b5060995460ff16604051901515815260200161032a565b3480156105f857600080fd5b5060cf5461031990640100000000900463ffffffff1681565b34801561061d57600080fd5b50610429610a6f565b34801561063257600080fd5b50610429610641366004612b5d565b610a83565b34801561065257600080fd5b5060ce5461049190600160c01b900461ffff1681565b34801561067457600080fd5b50610429610aab565b34801561068957600080fd5b5060cf5461031990600160601b900463ffffffff1681565b3480156106ad57600080fd5b506104d160d05481565b3480156106c357600080fd5b506033546001600160a01b0316610377565b3480156106e157600080fd5b506104296106f036600461290e565b610dcf565b34801561070157600080fd5b50610429610710366004612b94565b610ddc565b34801561072157600080fd5b5060ce5461073690600160a01b900460ff1681565b60405160ff909116815260200161032a565b34801561075457600080fd5b50610429610763366004612a7b565b610e98565b34801561077457600080fd5b50610429610783366004612c4d565b610ec2565b34801561079457600080fd5b506104d16107a3366004612a4e565b60d36020526000908152604090205481565b3480156107c157600080fd5b506104296107d0366004612a4e565b611179565b3480156107e157600080fd5b506104296107f0366004612a7b565b6111a3565b34801561080157600080fd5b50610815610810366004612a4e565b6111cd565b60405161032a9190612cca565b34801561082e57600080fd5b50610429611239565b34801561084357600080fd5b506104d1610852366004612a4e565b60d26020526000908152604090205481565b34801561087057600080fd5b5060ce5461049190600160b01b900461ffff1681565b34801561089257600080fd5b506104296108a1366004612b5d565b61125c565b3480156108b257600080fd5b506104d16108c1366004612cdd565b611284565b3480156108d257600080fd5b5060ce54610377906001600160a01b031681565b3480156108f257600080fd5b5060ce5461073690600160a81b900460ff1681565b34801561091357600080fd5b50610429610922366004612a4e565b6112c1565b34801561093357600080fd5b5060cb54610377906001600160a01b031681565b34801561095357600080fd5b50610429610962366004612a4e565b6112eb565b34801561097357600080fd5b5060ce5461049190600160d01b900461ffff1681565b610429610997366004612d07565b611361565b6109a46114c4565b60cb80546001600160a01b0319166001600160a01b0392909216919091179055565b6109ce6114c4565b60ce805461ffff909216600160b01b0261ffff60b01b19909216919091179055565b6109f86114c4565b60ce80546001600160a01b0319166001600160a01b0392909216919091179055565b610a226114c4565b60cd546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610a5b573d6000803e3d6000fd5b50565b6000610a698261151e565b92915050565b610a776114c4565b610a816000611541565b565b610a8b6114c4565b60ce805460ff909216600160a81b0260ff60a81b19909216919091179055565b600054610100900460ff1615808015610acb5750600054600160ff909116105b80610ae55750303b158015610ae5575060005460ff166001145b610b4d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805460ff191660011790558015610b70576000805461ff0019166101001790555b610b78611593565b610b806115c2565b610b8861170a565b60cb80546001600160a01b031990811673f83a99e084c1d575af8e12ff492f5e6c7b768b481790915560cc80548216739980b3aa61114b07a7604ffdc7c7d04bb6d8d73517905560cd8054909116732f86b325e8ffee20703c93a8f28ab7a5dd711b7e17905560ce805466df1c446be5000060d0557d012c0000174800020101a4cc419db3f709b2e2f3f9eb06b6cec14dedddc67fffff0000ffff00000000000000000000000000000000000000000000000000009091161790819055610c5d906103a090600160c01b900461ffff16612db7565b60ce805461ffff92909216600160d01b0261ffff60d01b1990921691909117905560cf805463ffffffff19166364525ad0908117909155610ca19061708090612dd9565b60cf8054600160801b600160601b640100000000600160401b63ffffffff968716820280881688871617919091026bffffffff0000000000000000199091166bffffffffffffffff000000001990951694909417939093179283048516810263ffffffff60601b1984168117919091048516820273ffffffff000000000000000000000000000000001990911673ffffffffffffffff00000000000000000000000019909316929092179190911791829055610d66926283d600929190910416612dd9565b60cf60146101000a81548163ffffffff021916908363ffffffff1602179055508015610a5b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498906020015b60405180910390a150565b610dd76114c4565b60d055565b610de46114c4565b60cf805463ffffffff9283166401000000000267ffffffffffffffff19958416600160a01b0263ffffffff60a01b19978516600160801b02979097167fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff988516600160601b0263ffffffff60601b199a8616600160401b029a909a166fffffffffffffffff000000000000000019909316929092179890981796909616959095179390931791909116911617919091179055565b610ea06114c4565b60ce805461ffff909216600160c01b0261ffff60c01b19909216919091179055565b610eca6114c4565b60005b8181101561117457600060d56000858585818110610eed57610eed612df6565b9050602002016020810190610f029190612a4e565b6001600160a01b03166001600160a01b03168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610f6c57602002820191906000526020600020905b815481526020019060010190808311610f58575b5050505050905060d56000858585818110610f8957610f89612df6565b9050602002016020810190610f9e9190612a4e565b6001600160a01b03166001600160a01b031681526020019081526020016000206000610fca91906128dc565b60005b815181101561115f57600060d66000848481518110610fee57610fee612df6565b602090810291909101810151825281019190915260400160002080546001600160a01b0319166001600160a01b0392831617905560cb54166342842e0e3087878781811061103e5761103e612df6565b90506020020160208101906110539190612a4e565b85858151811061106557611065612df6565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156110bf57600080fd5b505af11580156110d3573d6000803e3d6000fd5b505050508181815181106110e9576110e9612df6565b602002602001015185858581811061110357611103612df6565b90506020020160208101906111189190612a4e565b6001600160a01b03167fc94a955540e6096005c6aadd9eed52aa2e28e4938c3f392017911e86b2f52ad460405160405180910390a38061115781612e0c565b915050610fcd565b5050808061116c90612e0c565b915050610ecd565b505050565b6111816114c4565b60cc80546001600160a01b0319166001600160a01b0392909216919091179055565b6111ab6114c4565b60ce805461ffff909216600160e01b0261ffff60e01b19909216919091179055565b6001600160a01b038116600090815260d5602090815260409182902080548351818402810184019094528084526060939283018282801561122d57602002820191906000526020600020905b815481526020019060010190808311611219575b50505050509050919050565b6112416114c4565b60995460ff161561125457610a81611739565b610a8161178b565b6112646114c4565b60ce805460ff909216600160a01b0260ff60a01b19909216919091179055565b6001600160a01b038216600090815260d5602052604081208054839081106112ae576112ae612df6565b9060005260206000200154905092915050565b6112c96114c4565b60cd80546001600160a01b0319166001600160a01b0392909216919091179055565b6112f36114c4565b6001600160a01b0381166113585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b44565b610a5b81611541565b6113696117c8565b6000846113768789612e25565b6113809190612e25565b61ffff169050348160d0546113959190612e40565b146113e25760405162461bcd60e51b815260206004820152601a60248201527f6d696e743a20756e61636365707461626c65207061796d656e740000000000006044820152606401610b44565b60d1546113f490829061ffff16612e57565b60ce54600160c01b900461ffff1610156114505760405162461bcd60e51b815260206004820152601960248201527f6d696e743a20756e61636365707461626c6520616d6f756e74000000000000006044820152606401610b44565b82156114615761146187858561181b565b61ffff861615611475576114758683611c8f565b61ffff851615611488576114888561212f565b60d180548291906000906114a190849061ffff16612e25565b92506101000a81548161ffff021916908361ffff16021790555050505050505050565b6033546001600160a01b03163314610a815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b44565b60008061152a8361234a565b905061153a8184606001516123cc565b9392505050565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff166115ba5760405162461bcd60e51b8152600401610b4490612e6a565b610a816123f0565b600054610100900460ff16158080156115e25750600054600160ff909116105b806115fc5750303b1580156115fc575060005460ff166001145b61165f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610b44565b6000805460ff191660011790558015611682576000805461ff0019166101001790555b6116c86040518060400160405280600b81526020016a15d85b1d1cd7d5985d5b1d60aa1b815250604051806040016040528060018152602001603160f81b815250612420565b8015610a5b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001610dc4565b600054610100900460ff166117315760405162461bcd60e51b8152600401610b4490612e6a565b610a81612455565b611741612488565b6099805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6117936117c8565b6099805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861176e3390565b60995460ff1615610a815760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b44565b60cf5442600160401b90910463ffffffff16111561187b5760405162461bcd60e51b815260206004820152601b60248201527f726176656e64616c653a2073616c65206e6f74207374617274656400000000006044820152606401610b44565b60005b81811015611a945733600090815260d5602052604090208383838181106118a7576118a7612df6565b8354600181018555600094855260208086209202939093013592019190915550339060d6908585858181106118de576118de612df6565b6020908102929092013583525081019190915260400160002080546001600160a01b0319166001600160a01b0392831617905560cb54166342842e0e333086868681811061192e5761192e612df6565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561198557600080fd5b505af1158015611999573d6000803e3d6000fd5b505060cc546001600160a01b031691506342842e0e905030338686868181106119c4576119c4612df6565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b158015611a1b57600080fd5b505af1158015611a2f573d6000803e3d6000fd5b50505050828282818110611a4557611a45612df6565b90506020020135336001600160a01b03167f43c0a388b909895c64a4e0cfc1f6f8c346cb384c4e57c0445981c84ad76b3da060405160405180910390a380611a8c81612e0c565b91505061187e565b5061ffff831615611c495760cf5442600160601b90910463ffffffff161015611aff5760405162461bcd60e51b815260206004820152601460248201527f726176656e64616c653a2073616c65206f7665720000000000000000000000006044820152606401610b44565b60ce5461ffff841690611b1d908390600160a01b900460ff16612e40565b1015611b6b5760405162461bcd60e51b815260206004820152601e60248201527f726176656e64616c653a20756e61636365707461626c6520616d6f756e7400006044820152606401610b44565b33600090815260d260205260408120805461ffff86169290611b8e908490612e57565b909155506000905080611ba53361ffff87166124da565b60cc546040516333921a4160e11b81529294509092506001600160a01b031690636724348290611bdb9085908590600401612eb5565b600060405180830381600087803b158015611bf557600080fd5b505af1158015611c09573d6000803e3d6000fd5b505060405133815261ffff881692507ff8d3e342590b309a9c8198b4b19bd89738ad0bbc10477c9f05eaba58ed22227f915060200160405180910390a250505b611c538382612db7565b60ce8054601a90611c70908490600160d01b900461ffff16612e25565b92506101000a81548161ffff021916908361ffff160217905550505050565b60cf5442600160401b90910463ffffffff161115611cef5760405162461bcd60e51b815260206004820152601c60248201527f7661756c74206c6973743a2073616c65206e6f742073746172746564000000006044820152606401610b44565b60cf54600160601b900463ffffffff16421115611d4e5760405162461bcd60e51b815260206004820152601560248201527f7661756c74206c6973743a2073616c65206f76657200000000000000000000006044820152606401610b44565b60ce5461ffff600160d01b90910481169083161115611daf5760405162461bcd60e51b815260206004820152601e60248201527f7661756c74206c6973743a20756e617661696c61626c6520616d6f756e7400006044820152606401610b44565b60ce548151611dc991600160e01b900461ffff1690612e57565b4210611e175760405162461bcd60e51b815260206004820152601960248201527f7661756c74206c6973743a2065787069726564206e6f6e6365000000000000006044820152606401610b44565b60ce546001600160a01b0316611e2c82610a5e565b6001600160a01b031614611e825760405162461bcd60e51b815260206004820152601f60248201527f7661756c74206c6973743a20756e617574686f7269736564207369676e6572006044820152606401610b44565b60d78160600151604051611e969190612f15565b9081526040519081900360200190205460ff1615611ef65760405162461bcd60e51b815260206004820152601a60248201527f7661756c74206c6973743a2075736564207369676e61747572650000000000006044820152606401610b44565b60408101516001600160a01b03163314611f525760405162461bcd60e51b815260206004820181905260248201527f7661756c74206c6973743a20756e617574686f726973656420616464726573736044820152606401610b44565b33600090815260d36020526040902054611f719061ffff841690612e57565b602082015160ce54611f8d9190600160a81b900460ff16612e40565b1015611fdb5760405162461bcd60e51b815260206004820152601f60248201527f7661756c74206c6973743a20756e61636365707461626c6520616d6f756e74006044820152606401610b44565b600160d78260600151604051611ff19190612f15565b9081526040805160209281900383019020805460ff19169315159390931790925533600090815260d3909152908120805461ffff85169290612034908490612e57565b909155505060ce8054839190601a90612059908490600160d01b900461ffff16612db7565b92506101000a81548161ffff021916908361ffff16021790555060008061208883604001518561ffff166124da565b60cc546040516333921a4160e11b81529294509092506001600160a01b0316906367243482906120be9085908590600401612eb5565b600060405180830381600087803b1580156120d857600080fd5b505af11580156120ec573d6000803e3d6000fd5b505060405133815261ffff871692507f2c47df045e68e550f2ffb5cc46df96889cbd23d98f4141f19133a7bcc82dafe4915060200160405180910390a250505050565b60cf5442600160801b90910463ffffffff16111561218f5760405162461bcd60e51b815260206004820152601860248201527f7075626c69633a2073616c65206e6f74207374617274656400000000000000006044820152606401610b44565b60cf5442600160a01b90910463ffffffff1610156121ef5760405162461bcd60e51b815260206004820152601160248201527f7075626c69633a2073616c65206f7665720000000000000000000000000000006044820152606401610b44565b33600090815260d4602052604090205461220e9061ffff831690612e57565b60ce54600160b01b900461ffff16101561226a5760405162461bcd60e51b815260206004820152601b60248201527f7075626c69633a20756e61636365707461626c6520616d6f756e7400000000006044820152606401610b44565b33600090815260d460205260408120805461ffff8416929061228d908490612e57565b9091555060009050806122a43361ffff85166124da565b60cc546040516333921a4160e11b81529294509092506001600160a01b0316906367243482906122da9085908590600401612eb5565b600060405180830381600087803b1580156122f457600080fd5b505af1158015612308573d6000803e3d6000fd5b505060405133815261ffff861692507f748a2986091c2034d6e93b6f44f771a79f0e1d6acd8a60c68c17d4e1e2feaed2915060200160405180910390a2505050565b6000610a697f5fccd9b996b53bbab46cc9346c8ebf7b23c7e8692decb0a007cebb8cf7b51b078360000151846020015185604001516040516020016123b19493929190938452602084019290925260408301526001600160a01b0316606082015260800190565b6040516020818303038152906040528051906020012061257a565b60008060006123db85856125c8565b915091506123e88161260d565b509392505050565b600054610100900460ff166124175760405162461bcd60e51b8152600401610b4490612e6a565b610a8133611541565b600054610100900460ff166124475760405162461bcd60e51b8152600401610b4490612e6a565b6124518282612757565b5050565b600054610100900460ff1661247c5760405162461bcd60e51b8152600401610b4490612e6a565b6099805460ff19169055565b60995460ff16610a815760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b44565b604080516001808252818301909252606091829190602080830190803683375050604080516001808252818301909252929450905060208083019080368337019050509050838260008151811061253357612533612df6565b60200260200101906001600160a01b031690816001600160a01b031681525050828160008151811061256757612567612df6565b6020026020010181815250509250929050565b6000610a69612587612798565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008082516041036125fe5760208301516040840151606085015160001a6125f287828585612818565b94509450505050612606565b506000905060025b9250929050565b600081600481111561262157612621612f44565b036126295750565b600181600481111561263d5761263d612f44565b0361268a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b44565b600281600481111561269e5761269e612f44565b036126eb5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b44565b60038160048111156126ff576126ff612f44565b03610a5b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b44565b600054610100900460ff1661277e5760405162461bcd60e51b8152600401610b4490612e6a565b815160209283012081519190920120606591909155606655565b60006128137f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6127c760655490565b6066546040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b905090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561284f57506000905060036128d3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156128a3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166128cc576000600192509250506128d3565b9150600090505b94509492505050565b5080546000825590600052602060002090810190610a5b91905b8082111561290a57600081556001016128f6565b5090565b60006020828403121561292057600080fd5b5035919050565b80356001600160a01b038116811461293e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261296a57600080fd5b813567ffffffffffffffff8082111561298557612985612943565b604051601f8301601f19908116603f011681019082821181831017156129ad576129ad612943565b816040528381528660208588010111156129c657600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080608085870312156129fc57600080fd5b612a0585612927565b9350612a1360208601612927565b925060408501359150606085013567ffffffffffffffff811115612a3657600080fd5b612a4287828801612959565b91505092959194509250565b600060208284031215612a6057600080fd5b61153a82612927565b803561ffff8116811461293e57600080fd5b600060208284031215612a8d57600080fd5b61153a82612a69565b600060808284031215612aa857600080fd5b6040516080810167ffffffffffffffff8282108183111715612acc57612acc612943565b816040528293508435835260208501356020840152612aed60408601612927565b60408401526060850135915080821115612b0657600080fd5b50612b1385828601612959565b6060830152505092915050565b600060208284031215612b3257600080fd5b813567ffffffffffffffff811115612b4957600080fd5b612b5584828501612a96565b949350505050565b600060208284031215612b6f57600080fd5b813560ff8116811461153a57600080fd5b803563ffffffff8116811461293e57600080fd5b60008060008060008060c08789031215612bad57600080fd5b612bb687612b80565b9550612bc460208801612b80565b9450612bd260408801612b80565b9350612be060608801612b80565b9250612bee60808801612b80565b9150612bfc60a08801612b80565b90509295509295509295565b60008083601f840112612c1a57600080fd5b50813567ffffffffffffffff811115612c3257600080fd5b6020830191508360208260051b850101111561260657600080fd5b60008060208385031215612c6057600080fd5b823567ffffffffffffffff811115612c7757600080fd5b612c8385828601612c08565b90969095509350505050565b600081518084526020808501945080840160005b83811015612cbf57815187529582019590820190600101612ca3565b509495945050505050565b60208152600061153a6020830184612c8f565b60008060408385031215612cf057600080fd5b612cf983612927565b946020939093013593505050565b60008060008060008060a08789031215612d2057600080fd5b612d2987612a69565b9550612d3760208801612a69565b9450612d4560408801612a69565b9350606087013567ffffffffffffffff80821115612d6257600080fd5b612d6e8a838b01612c08565b90955093506080890135915080821115612d8757600080fd5b50612d9489828a01612a96565b9150509295509295509295565b634e487b7160e01b600052601160045260246000fd5b61ffff828116828216039080821115612dd257612dd2612da1565b5092915050565b63ffffffff818116838216019080821115612dd257612dd2612da1565b634e487b7160e01b600052603260045260246000fd5b600060018201612e1e57612e1e612da1565b5060010190565b61ffff818116838216019080821115612dd257612dd2612da1565b8082028115828204841417610a6957610a69612da1565b80820180821115610a6957610a69612da1565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b604080825283519082018190526000906020906060840190828701845b82811015612ef75781516001600160a01b031684529284019290840190600101612ed2565b50505083810382850152612f0b8186612c8f565b9695505050505050565b6000825160005b81811015612f365760208186018101518583015201612f1c565b506000920191825250919050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220e01b288db5658f3b2eb12622115b993742dab86ea18e09bf0342f80aadda8c5864736f6c63430008120033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.