Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,169 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Fan Faucet Claim | 16268294 | 580 days ago | IN | 0 ETH | 0.00032483 | ||||
Fan Faucet Claim | 16237307 | 584 days ago | IN | 0 ETH | 0.00038956 | ||||
Fan Faucet Claim | 16237307 | 584 days ago | IN | 0 ETH | 0.00038956 | ||||
Fan Faucet Claim | 16237307 | 584 days ago | IN | 0 ETH | 0.00038956 | ||||
Fan Faucet Claim | 16237307 | 584 days ago | IN | 0 ETH | 0.00038956 | ||||
Fan Faucet Claim | 16237307 | 584 days ago | IN | 0 ETH | 0.00038956 | ||||
Fan Faucet Claim | 16237307 | 584 days ago | IN | 0 ETH | 0.00038956 | ||||
Withdraw Eth | 16236763 | 585 days ago | IN | 0 ETH | 0.00044075 | ||||
Withdraw Single ... | 16236720 | 585 days ago | IN | 0 ETH | 0.00055401 | ||||
Withdraw Single ... | 16236715 | 585 days ago | IN | 0 ETH | 0.00052676 | ||||
Withdraw Single ... | 16236708 | 585 days ago | IN | 0 ETH | 0.00066227 | ||||
Withdraw Single ... | 16236706 | 585 days ago | IN | 0 ETH | 0.00063874 | ||||
Withdraw Single ... | 16236696 | 585 days ago | IN | 0 ETH | 0.0006714 | ||||
Withdraw Single ... | 16236686 | 585 days ago | IN | 0 ETH | 0.0008334 | ||||
Disable Faucet | 16236668 | 585 days ago | IN | 0 ETH | 0.00036217 | ||||
Fan Faucet Claim | 16236653 | 585 days ago | IN | 0 ETH | 0.00117588 | ||||
Fan Faucet Claim | 16236646 | 585 days ago | IN | 0 ETH | 0.00121347 | ||||
Withdraw Single ... | 16236644 | 585 days ago | IN | 0 ETH | 0.00045639 | ||||
Fan Faucet Claim | 16236638 | 585 days ago | IN | 0 ETH | 0.00130426 | ||||
Fan Faucet Claim | 16236634 | 585 days ago | IN | 0 ETH | 0.0012039 | ||||
Fan Faucet Claim | 16236633 | 585 days ago | IN | 0.0063 ETH | 0.00088716 | ||||
Fan Faucet Claim | 16236632 | 585 days ago | IN | 0 ETH | 0.00135416 | ||||
Fan Faucet Claim | 16236631 | 585 days ago | IN | 0.0063 ETH | 0.00115394 | ||||
Withdraw Single ... | 16236627 | 585 days ago | IN | 0 ETH | 0.00058697 | ||||
Fan Faucet Claim | 16236627 | 585 days ago | IN | 0.0063 ETH | 0.00115081 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
16236763 | 585 days ago | 1.701 ETH |
Loading...
Loading
Contract Name:
ARBOBCTFaucet
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.11; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract ARBOBCTFaucet is ERC1155Holder, Ownable, ReentrancyGuard { // Address of the Artifacts (ERC1155) Contract IERC1155 public artifactsContract; // The fee to access the FanFaucet (FAF) uint256 public ethPrice; // The array of token ids that are in the inventory uint256[] public tokenIdsInventory; // The iteration of the FanFaucet campaign, allowing for reuse while restricting free withdrawals to numOfFreeRequestsAllowed uint256 public campaignId; // Number of free requests without FAF per wallet uint256 public numOfFreeRequestsAllowed; // Number of total requests allowed from the FanFaucet with and without FAF uint256 public numOfTotalRequestsAllowed; // List of whitelisted ERC token addresses for FanFaucet collabs address[] public whitelistedTokenAddressList; // Indicates if the FanFaucet is online or offlne bool public isOnline = false; // Map of whitelisted ERC token address and their details struct WhitelistToken { string standard; uint256[] tokenIdsArray; uint256[] amountsArray; // in decimal units as defined by the contract bool active; } mapping(address => WhitelistToken) public whitelistedTokens; // Map of wallet addresses and total FanFaucet requests per campaignId mapping(address => mapping(uint256 => uint256)) public withdrawn; // Events event FanFaucetWithdraw(address userAddress, uint256 tokenId); // Errors // Already used allotted free requests error AlreadyWithdrawnFree(); // Already used allotted total requests error TooManyWithdrawn(uint256 withdrawnAmount); // FanFaucet is offline error FaucetOffline(); // Nothing to claim error ContractBalanceEmpty(); // Incorrect FanFaucet Access Fee error WrongEthAmountSent(uint256 ethAmount); // External seed not provided error EmptySeed(); // Unsupported standard error WrongStandard(); // Details on the collab tokens doesn't exist error TokenStructDoesNotExist(); // Not whitelisted error NotEnoughWhitelistedTokens(); // Constructoooor constructor(address _artifactsContract, uint256 _campaignId) { artifactsContract = IERC1155(_artifactsContract); campaignId = _campaignId; } function fanFaucetClaim(string calldata _randomSeed) external payable nonReentrant { if (isOnline == false) revert FaucetOffline(); if (bytes(_randomSeed).length == 0) revert EmptySeed(); // Check if the caller has already withdrawn more than the total allowed amount if (withdrawn[msg.sender][campaignId] >= numOfTotalRequestsAllowed) revert TooManyWithdrawn(withdrawn[msg.sender][campaignId]); // Check if we need to collect payment, by checking if total withdrawn is >= numOfFreeRequestsAllowed if (withdrawn[msg.sender][campaignId] >= numOfFreeRequestsAllowed && msg.value != ethPrice) revert WrongEthAmountSent(msg.value); // Check if tokens are required to access the Faucet if (whitelistedTokenAddressList.length > 0) { bool accessGranted = false; if (whitelistedTokenAddressList.length == 1) { accessGranted = checkWhitelistedTokens(0); } else { for (uint256 i = 0; i < whitelistedTokenAddressList.length; i++) { accessGranted = checkWhitelistedTokens(i); if (accessGranted) break; } } if (!accessGranted) revert NotEnoughWhitelistedTokens(); } // Generate a random number using keccak256 uint256 randomNumber = uint256( keccak256( abi.encodePacked( block.timestamp, block.difficulty, msg.sender, _randomSeed, withdrawn[msg.sender][campaignId] ) ) ); // Generate a random number within the range of the token ids array length uint256 randomIndex = randomNumber % (tokenIdsInventory.length); uint256 availableTokenId = findTokenWithBalance(randomIndex); // Withdraw 1 ERC1155 token from the contract withdrawn[msg.sender][campaignId] = withdrawn[msg.sender][campaignId] + 1; artifactsContract.safeTransferFrom(address(this), msg.sender, availableTokenId, 1, ""); emit FanFaucetWithdraw(msg.sender, availableTokenId); } function checkWhitelistedTokens(uint256 _index) private view returns (bool access) { address tokenAddress = whitelistedTokenAddressList[_index]; WhitelistToken memory tokenStruct = whitelistedTokens[tokenAddress]; if (keccak256(abi.encodePacked(tokenStruct.standard)) == keccak256(abi.encodePacked("erc20"))) { if (IERC20(tokenAddress).balanceOf(msg.sender) >= tokenStruct.amountsArray[0]) return true; } if (keccak256(abi.encodePacked(tokenStruct.standard)) == keccak256(abi.encodePacked("erc721"))) { for (uint256 i = 0; i < tokenStruct.tokenIdsArray.length; i++) { if (IERC721(tokenAddress).ownerOf(tokenStruct.tokenIdsArray[i]) == msg.sender) return true; } } if (keccak256(abi.encodePacked(tokenStruct.standard)) == keccak256(abi.encodePacked("erc1155"))) { for (uint256 i = 0; i < tokenStruct.tokenIdsArray.length; i++) { if ( IERC1155(tokenAddress).balanceOf(msg.sender, tokenStruct.tokenIdsArray[i]) >= tokenStruct.amountsArray[i] ) return true; } } return false; } function findTokenWithBalance(uint256 _randomIndex) private view returns (uint256 availableTokenId) { if (artifactsContract.balanceOf(address(this), tokenIdsInventory[_randomIndex]) > 0) { return tokenIdsInventory[_randomIndex]; } uint256 newIndex = _randomIndex + 1; for (uint256 i = 0; i < tokenIdsInventory.length; i++) { if (newIndex > tokenIdsInventory.length) { newIndex = 0; } if (newIndex == _randomIndex) revert ContractBalanceEmpty(); if (artifactsContract.balanceOf(address(this), tokenIdsInventory[newIndex]) > 0) { return tokenIdsInventory[newIndex]; } newIndex = newIndex + 1; } } // External views function getTokenIdsInventory() external view returns (uint256[] memory) { return tokenIdsInventory; } function getTotalClaims(address _userAddress, uint256 _campaignId) external view returns (uint256) { return withdrawn[_userAddress][_campaignId]; } function getWhitelistedTokenAddressList() external view returns (address[] memory) { return whitelistedTokenAddressList; } function getWhitelistedTokenDetails(address _contractAddress) external view returns (WhitelistToken memory) { return whitelistedTokens[_contractAddress]; } // Owner controls function enableFaucet() external onlyOwner { isOnline = true; } function disableFaucet() external onlyOwner { isOnline = false; } function setTokenIdsInventory(uint256[] calldata _tokenIds) external onlyOwner { tokenIdsInventory = _tokenIds; } function setNumOfTotalRequestsAllowed(uint256 _totalAllowed) external onlyOwner { numOfTotalRequestsAllowed = _totalAllowed; } function setNumOfFreeRequestsAllowed(uint256 _freeAllowed) external onlyOwner { numOfFreeRequestsAllowed = _freeAllowed; } // Start a new campaign and fresh wallet claim record function setCampaignId(uint256 _campaignId) external onlyOwner { campaignId = _campaignId; } // FanFaucetAccessFee in wei function setFanFaucetAccessFee(uint256 _ethPrice) external onlyOwner { ethPrice = _ethPrice; } // Set WhitelistToken struct for every whitelist contract before adding to this array // This ensures the address list will always have corresponding structs in storage and one can be removed easily function setWhitelistedTokenAddressList(address[] calldata _whitelistedTokenAddressList) external onlyOwner { for (uint256 i = 0; i < _whitelistedTokenAddressList.length; i++) { address tokenAddress = _whitelistedTokenAddressList[i]; WhitelistToken memory tokenStruct = whitelistedTokens[tokenAddress]; if (!tokenStruct.active) revert TokenStructDoesNotExist(); } whitelistedTokenAddressList = _whitelistedTokenAddressList; } function setWhitelistedTokenDetails( string calldata _tokenStandard, address _contractAddress, uint256[] calldata _tokenIds, uint256[] calldata _amounts ) external onlyOwner { if ( keccak256(abi.encodePacked(_tokenStandard)) == keccak256(abi.encodePacked("erc20")) || keccak256(abi.encodePacked(_tokenStandard)) == keccak256(abi.encodePacked("erc721")) || keccak256(abi.encodePacked(_tokenStandard)) == keccak256(abi.encodePacked("erc1155")) ) { whitelistedTokens[_contractAddress].standard = _tokenStandard; whitelistedTokens[_contractAddress].tokenIdsArray = _tokenIds; whitelistedTokens[_contractAddress].amountsArray = _amounts; whitelistedTokens[_contractAddress].active = true; } else { revert WrongStandard(); } } function removeWhitelistedToken(address[] calldata _contractAddresses) external onlyOwner { for (uint256 i = 0; i < _contractAddresses.length; i++) { delete whitelistedTokens[_contractAddresses[i]]; } } function withdrawAll() external onlyOwner { uint256[] memory amountsArray = new uint256[](tokenIdsInventory.length); // Loop through all of the ERC-1155s owned by the contract for (uint256 i = 0; i < tokenIdsInventory.length; i++) { uint256 balance = artifactsContract.balanceOf(address(this), tokenIdsInventory[i]); amountsArray[i] = balance; } artifactsContract.safeBatchTransferFrom(address(this), owner(), tokenIdsInventory, amountsArray, ""); } function withdrawSingleId(uint256 _tokenId) external onlyOwner { uint256 balance = artifactsContract.balanceOf(address(this), _tokenId); artifactsContract.safeTransferFrom(address(this), owner(), _tokenId, balance, ""); } function withdrawEth() external onlyOwner { address payable to = payable(owner()); to.transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.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 Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol) pragma solidity ^0.8.0; import "./ERC1155Receiver.sol"; /** * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens. * * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be * stuck. * * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; import "../IERC1155Receiver.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @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 Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// 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 IERC165 { /** * @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); }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_artifactsContract","type":"address"},{"internalType":"uint256","name":"_campaignId","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyWithdrawnFree","type":"error"},{"inputs":[],"name":"ContractBalanceEmpty","type":"error"},{"inputs":[],"name":"EmptySeed","type":"error"},{"inputs":[],"name":"FaucetOffline","type":"error"},{"inputs":[],"name":"NotEnoughWhitelistedTokens","type":"error"},{"inputs":[],"name":"TokenStructDoesNotExist","type":"error"},{"inputs":[{"internalType":"uint256","name":"withdrawnAmount","type":"uint256"}],"name":"TooManyWithdrawn","type":"error"},{"inputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"WrongEthAmountSent","type":"error"},{"inputs":[],"name":"WrongStandard","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"FanFaucetWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"artifactsContract","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"campaignId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableFaucet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableFaucet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_randomSeed","type":"string"}],"name":"fanFaucetClaim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getTokenIdsInventory","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"uint256","name":"_campaignId","type":"uint256"}],"name":"getTotalClaims","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistedTokenAddressList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"getWhitelistedTokenDetails","outputs":[{"components":[{"internalType":"string","name":"standard","type":"string"},{"internalType":"uint256[]","name":"tokenIdsArray","type":"uint256[]"},{"internalType":"uint256[]","name":"amountsArray","type":"uint256[]"},{"internalType":"bool","name":"active","type":"bool"}],"internalType":"struct ARBOBCTFaucet.WhitelistToken","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOnline","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numOfFreeRequestsAllowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numOfTotalRequestsAllowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_contractAddresses","type":"address[]"}],"name":"removeWhitelistedToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_campaignId","type":"uint256"}],"name":"setCampaignId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ethPrice","type":"uint256"}],"name":"setFanFaucetAccessFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_freeAllowed","type":"uint256"}],"name":"setNumOfFreeRequestsAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalAllowed","type":"uint256"}],"name":"setNumOfTotalRequestsAllowed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"setTokenIdsInventory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_whitelistedTokenAddressList","type":"address[]"}],"name":"setWhitelistedTokenAddressList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenStandard","type":"string"},{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"setWhitelistedTokenDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdsInventory","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelistedTokenAddressList","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedTokens","outputs":[{"internalType":"string","name":"standard","type":"string"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"withdrawSingleId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526009805460ff191690553480156200001b57600080fd5b50604051620028f2380380620028f28339810160408190526200003e91620000c7565b620000493362000077565b60018055600280546001600160a01b0319166001600160a01b03939093169290921790915560055562000103565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060408385031215620000db57600080fd5b82516001600160a01b0381168114620000f357600080fd5b6020939093015192949293505050565b6127df80620001136000396000f3fe6080604052600436106102195760003560e01c80639303418a1161011d578063bc197c81116100b0578063e2ac32a61161007f578063f23a6e6111610064578063f23a6e6114610650578063f2fde38b1461067c578063ff186b2e1461069c57600080fd5b8063e2ac32a61461061d578063ec79a2291461063057600080fd5b8063bc197c8114610575578063bd268929146105ba578063c7c7dee5146105da578063daf9c210146105ef57600080fd5b8063a1ed6b3b116100ec578063a1ed6b3b146104dc578063a6725e54146104fc578063b29c759814610512578063b74f16ad1461055557600080fd5b80639303418a1461047257806394095c2d14610492578063944d3c2a146104b2578063a0ef91df146104c757600080fd5b8063664ab18e116101b0578063853828b61161017f5780638da5cb5b116101645780638da5cb5b1461041e5780638e83e2491461043c5780638ed5b0fc1461045c57600080fd5b8063853828b6146103e957806389441bf6146103fe57600080fd5b8063664ab18e146103555780636fb24f3a1461036f57806371376c30146103a7578063715018a6146103d457600080fd5b80633cc7c7fa116101ec5780633cc7c7fa146102cf5780634f01c715146102f157806355ab4b8314610315578063592c253f1461033557600080fd5b806301ffc9a71461021e57806312bd4bfd146102535780632b7f81a9146102755780632d1892fb146102ad575b600080fd5b34801561022a57600080fd5b5061023e610239366004611fb6565b6106b2565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b5061027361026e366004612033565b6106e9565b005b34801561028157600080fd5b50600254610295906001600160a01b031681565b6040516001600160a01b03909116815260200161024a565b3480156102b957600080fd5b506102c26108f8565b60405161024a9190612075565b3480156102db57600080fd5b506102e461095a565b60405161024a91906120fd565b3480156102fd57600080fd5b5061030760065481565b60405190815260200161024a565b34801561032157600080fd5b50610273610330366004612110565b6109b1565b34801561034157600080fd5b50610295610350366004612110565b610ad2565b34801561036157600080fd5b5060095461023e9060ff1681565b34801561037b57600080fd5b5061030761038a36600461213e565b600b60209081526000928352604080842090915290825290205481565b3480156103b357600080fd5b506103c76103c236600461216a565b610afc565b60405161024a91906121e3565b3480156103e057600080fd5b50610273610ca4565b3480156103f557600080fd5b50610273610cb8565b34801561040a57600080fd5b50610273610419366004612110565b610e6b565b34801561042a57600080fd5b506000546001600160a01b0316610295565b34801561044857600080fd5b50610273610457366004612296565b610e78565b34801561046857600080fd5b5061030760055481565b34801561047e57600080fd5b5061027361048d366004612033565b611051565b34801561049e57600080fd5b506102736104ad366004612110565b611065565b3480156104be57600080fd5b50610273611072565b3480156104d357600080fd5b50610273611086565b3480156104e857600080fd5b506103076104f7366004612110565b6110d7565b34801561050857600080fd5b5061030760075481565b34801561051e57600080fd5b5061030761052d36600461213e565b6001600160a01b03919091166000908152600b60209081526040808320938352929052205490565b34801561056157600080fd5b50610273610570366004612110565b6110f8565b34801561058157600080fd5b506105a161059036600461247c565b63bc197c8160e01b95945050505050565b6040516001600160e01b0319909116815260200161024a565b3480156105c657600080fd5b506102736105d5366004612110565b611105565b3480156105e657600080fd5b50610273611112565b3480156105fb57600080fd5b5061060f61060a36600461216a565b611129565b60405161024a92919061252a565b61027361062b36600461254e565b6111d0565b34801561063c57600080fd5b5061027361064b366004612033565b6114c7565b34801561065c57600080fd5b506105a161066b366004612584565b63f23a6e6160e01b95945050505050565b34801561068857600080fd5b5061027361069736600461216a565b611565565b3480156106a857600080fd5b5061030760035481565b60006001600160e01b03198216630271189760e51b14806106e357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6106f16115f5565b60005b818110156108e6576000838383818110610710576107106125ed565b9050602002016020810190610725919061216a565b90506000600a6000836001600160a01b03166001600160a01b0316815260200190815260200160002060405180608001604052908160008201805461076990612603565b80601f016020809104026020016040519081016040528092919081815260200182805461079590612603565b80156107e25780601f106107b7576101008083540402835291602001916107e2565b820191906000526020600020905b8154815290600101906020018083116107c557829003601f168201915b505050505081526020016001820180548060200260200160405190810160405280929190818152602001828054801561083a57602002820191906000526020600020905b815481526020019060010190808311610826575b505050505081526020016002820180548060200260200160405190810160405280929190818152602001828054801561089257602002820191906000526020600020905b81548152602001906001019080831161087e575b50505091835250506003919091015460ff16151560209091015260608101519091506108d15760405163cc5ae55f60e01b815260040160405180910390fd5b505080806108de90612654565b9150506106f4565b506108f360088383611e2f565b505050565b6060600880548060200260200160405190810160405280929190818152602001828054801561095057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610932575b5050505050905090565b6060600480548060200260200160405190810160405280929190818152602001828054801561095057602002820191906000526020600020905b815481526020019060010190808311610994575050505050905090565b6109b96115f5565b600254604051627eeac760e11b8152306004820152602481018390526000916001600160a01b03169062fdd58e90604401602060405180830381865afa158015610a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2b919061266f565b6002549091506001600160a01b031663f242432a30610a526000546001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018590526064810184905260a06084820152600060a482015260c401600060405180830381600087803b158015610ab657600080fd5b505af1158015610aca573d6000803e3d6000fd5b505050505050565b60088181548110610ae257600080fd5b6000918252602090912001546001600160a01b0316905081565b610b2960405180608001604052806060815260200160608152602001606081526020016000151581525090565b6001600160a01b0382166000908152600a602052604090819020815160808101909252805482908290610b5b90612603565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8790612603565b8015610bd45780601f10610ba957610100808354040283529160200191610bd4565b820191906000526020600020905b815481529060010190602001808311610bb757829003601f168201915b5050505050815260200160018201805480602002602001604051908101604052809291908181526020018280548015610c2c57602002820191906000526020600020905b815481526020019060010190808311610c18575b5050505050815260200160028201805480602002602001604051908101604052809291908181526020018280548015610c8457602002820191906000526020600020905b815481526020019060010190808311610c70575b50505091835250506003919091015460ff16151560209091015292915050565b610cac6115f5565b610cb6600061164f565b565b610cc06115f5565b60045460009067ffffffffffffffff811115610cde57610cde612345565b604051908082528060200260200182016040528015610d07578160200160208202803683370190505b50905060005b600454811015610def57600254600480546000926001600160a01b03169162fdd58e9130919086908110610d4357610d436125ed565b6000918252602090912001546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381865afa158015610d98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbc919061266f565b905080838381518110610dd157610dd16125ed565b60209081029190910101525080610de781612654565b915050610d0d565b506002546001600160a01b0316632eb2c2d630610e146000546001600160a01b031690565b6004856040518563ffffffff1660e01b8152600401610e369493929190612688565b600060405180830381600087803b158015610e5057600080fd5b505af1158015610e64573d6000803e3d6000fd5b5050505050565b610e736115f5565b600655565b610e806115f5565b60405164065726332360dc1b6020820152602501604051602081830303815290604052805190602001208787604051602001610ebd929190612714565b604051602081830303815290604052805190602001201480610f3057506040516565726337323160d01b6020820152602601604051602081830303815290604052805190602001208787604051602001610f18929190612714565b60405160208183030381529060405280519060200120145b80610f8d5750604051666572633131353560c81b6020820152602701604051602081830303815290604052805190602001208787604051602001610f75929190612714565b60405160208183030381529060405280519060200120145b1561102f576001600160a01b0385166000908152600a60205260409020610fb5908888611e9f565b506001600160a01b0385166000908152600a60205260409020610fdc906001018585611f13565b506001600160a01b0385166000908152600a60205260409020611003906002018383611f13565b506001600160a01b0385166000908152600a60205260409020600301805460ff19166001179055611048565b6040516324fa649360e11b815260040160405180910390fd5b50505050505050565b6110596115f5565b6108f360048383611f13565b61106d6115f5565b600555565b61107a6115f5565b6009805460ff19169055565b61108e6115f5565b600080546001600160a01b03166040519091506001600160a01b038216904780156108fc02916000818181858888f193505050501580156110d3573d6000803e3d6000fd5b5050565b600481815481106110e757600080fd5b600091825260209091200154905081565b6111006115f5565b600355565b61110d6115f5565b600755565b61111a6115f5565b6009805460ff19166001179055565b600a6020526000908152604090208054819061114490612603565b80601f016020809104026020016040519081016040528092919081815260200182805461117090612603565b80156111bd5780601f10611192576101008083540402835291602001916111bd565b820191906000526020600020905b8154815290600101906020018083116111a057829003601f168201915b5050506003909301549192505060ff1682565b6111d86116ac565b60095460ff166111fb57604051635dcd5a0560e11b815260040160405180910390fd5b8061121957604051632ca2001360e11b815260040160405180910390fd5b600754336000908152600b6020908152604080832060055484529091529020541061127e57336000908152600b60209081526040808320600554845290915290819020549051636022d84560e11b815260048101919091526024015b60405180910390fd5b600654336000908152600b602090815260408083206005548452909152902054108015906112ae57506003543414155b156112ce5760405163075120b560e11b8152346004820152602401611275565b6008541561134c57600854600090600114156112f5576112ee6000611706565b905061132c565b60005b60085481101561132a5761130b81611706565b915081156113185761132a565b8061132281612654565b9150506112f8565b505b8061134a57604051632a4cc83760e11b815260040160405180910390fd5b505b336000818152600b6020908152604080832060055484528252808320549051929361137f93429344938992899201612724565b60408051601f1981840301815291905280516020909101206004549091506000906113aa908361275f565b905060006113b782611c18565b336000908152600b6020908152604080832060055484529091529020549091506113e2906001612781565b336000818152600b602090815260408083206005548452909152808220939093556002549251637921219560e11b81523060048201526024810192909252604482018490526001606483015260a0608483015260a48201526001600160a01b039091169063f242432a9060c401600060405180830381600087803b15801561146957600080fd5b505af115801561147d573d6000803e3d6000fd5b505060408051338152602081018590527f121b694a4fb1937b20c2d628a6eaf98ccc544d659d81e5ce7974a2f2dbaf6bcf935001905060405180910390a15050506110d360018055565b6114cf6115f5565b60005b818110156108f357600a60008484848181106114f0576114f06125ed565b9050602002016020810190611505919061216a565b6001600160a01b03168152602081019190915260400160009081209061152b8282611f4d565b611539600183016000611f87565b611547600283016000611f87565b50600301805460ff191690558061155d81612654565b9150506114d2565b61156d6115f5565b6001600160a01b0381166115e95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401611275565b6115f28161164f565b50565b6000546001600160a01b03163314610cb65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611275565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015414156116ff5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611275565b6002600155565b6000806008838154811061171c5761171c6125ed565b60009182526020808320909101546001600160a01b0316808352600a9091526040808320815160808101909252805492945090918290829061175d90612603565b80601f016020809104026020016040519081016040528092919081815260200182805461178990612603565b80156117d65780601f106117ab576101008083540402835291602001916117d6565b820191906000526020600020905b8154815290600101906020018083116117b957829003601f168201915b505050505081526020016001820180548060200260200160405190810160405280929190818152602001828054801561182e57602002820191906000526020600020905b81548152602001906001019080831161181a575b505050505081526020016002820180548060200260200160405190810160405280929190818152602001828054801561188657602002820191906000526020600020905b815481526020019060010190808311611872575b50505091835250506003919091015460ff1615156020918201526040519192506118bc910164065726332360dc1b815260050190565b60408051601f19818403018152908290528051602091820120835190926118e39201612799565b604051602081830303815290604052805190602001201415611998578060400151600081518110611916576119166125ed565b60209081029190910101516040516370a0823160e01b81523360048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015611965573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611989919061266f565b10611998575060019392505050565b6040516565726337323160d01b602082015260260160408051601f19818403018152908290528051602091820120835190926119d49201612799565b604051602081830303815290604052805190602001201415611ac45760005b816020015151811015611ac257336001600160a01b0316836001600160a01b0316636352211e84602001518481518110611a2f57611a2f6125ed565b60200260200101516040518263ffffffff1660e01b8152600401611a5591815260200190565b602060405180830381865afa158015611a72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9691906127b5565b6001600160a01b03161415611ab057506001949350505050565b80611aba81612654565b9150506119f3565b505b604051666572633131353560c81b602082015260270160408051601f1981840301815290829052805160209182012083519092611b019201612799565b604051602081830303815290604052805190602001201415611c0e5760005b816020015151811015611c0c5781604001518181518110611b4357611b436125ed565b6020026020010151836001600160a01b031662fdd58e3385602001518581518110611b7057611b706125ed565b60200260200101516040518363ffffffff1660e01b8152600401611ba99291906001600160a01b03929092168252602082015260400190565b602060405180830381865afa158015611bc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bea919061266f565b10611bfa57506001949350505050565b80611c0481612654565b915050611b20565b505b5060009392505050565b6002546004805460009283926001600160a01b039091169162fdd58e91309187908110611c4757611c476125ed565b6000918252602090912001546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381865afa158015611c9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cc0919061266f565b1115611ceb5760048281548110611cd957611cd96125ed565b90600052602060002001549050919050565b6000611cf8836001612781565b905060005b600454811015611e2857600454821115611d1657600091505b83821415611d3757604051636835f42b60e01b815260040160405180910390fd5b600254600480546000926001600160a01b03169162fdd58e9130919087908110611d6357611d636125ed565b6000918252602090912001546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381865afa158015611db8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddc919061266f565b1115611e095760048281548110611df557611df56125ed565b906000526020600020015492505050919050565b611e14826001612781565b915080611e2081612654565b915050611cfd565b5050919050565b828054828255906000526020600020908101928215611e8f579160200282015b82811115611e8f57815473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03843516178255602090920191600190910190611e4f565b50611e9b929150611fa1565b5090565b828054611eab90612603565b90600052602060002090601f016020900481019282611ecd5760008555611e8f565b82601f10611ee65782800160ff19823516178555611e8f565b82800160010185558215611e8f579182015b82811115611e8f578235825591602001919060010190611ef8565b828054828255906000526020600020908101928215611e8f5791602002820182811115611e8f578235825591602001919060010190611ef8565b508054611f5990612603565b6000825580601f10611f69575050565b601f0160209004906000526020600020908101906115f29190611fa1565b50805460008255906000526020600020908101906115f291905b5b80821115611e9b5760008155600101611fa2565b600060208284031215611fc857600080fd5b81356001600160e01b031981168114611fe057600080fd5b9392505050565b60008083601f840112611ff957600080fd5b50813567ffffffffffffffff81111561201157600080fd5b6020830191508360208260051b850101111561202c57600080fd5b9250929050565b6000806020838503121561204657600080fd5b823567ffffffffffffffff81111561205d57600080fd5b61206985828601611fe7565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b818110156120b65783516001600160a01b031683529284019291840191600101612091565b50909695505050505050565b600081518084526020808501945080840160005b838110156120f2578151875295820195908201906001016120d6565b509495945050505050565b602081526000611fe060208301846120c2565b60006020828403121561212257600080fd5b5035919050565b6001600160a01b03811681146115f257600080fd5b6000806040838503121561215157600080fd5b823561215c81612129565b946020939093013593505050565b60006020828403121561217c57600080fd5b8135611fe081612129565b60005b838110156121a257818101518382015260200161218a565b838111156121b1576000848401525b50505050565b600081518084526121cf816020860160208601612187565b601f01601f19169290920160200192915050565b6020815260008251608060208401526121ff60a08401826121b7565b90506020840151601f198085840301604086015261221d83836120c2565b925060408601519150808584030160608601525061223b82826120c2565b9150506060840151151560808401528091505092915050565b60008083601f84011261226657600080fd5b50813567ffffffffffffffff81111561227e57600080fd5b60208301915083602082850101111561202c57600080fd5b60008060008060008060006080888a0312156122b157600080fd5b873567ffffffffffffffff808211156122c957600080fd5b6122d58b838c01612254565b909950975060208a013591506122ea82612129565b9095506040890135908082111561230057600080fd5b61230c8b838c01611fe7565b909650945060608a013591508082111561232557600080fd5b506123328a828b01611fe7565b989b979a50959850939692959293505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561238457612384612345565b604052919050565b600082601f83011261239d57600080fd5b8135602067ffffffffffffffff8211156123b9576123b9612345565b8160051b6123c882820161235b565b92835284810182019282810190878511156123e257600080fd5b83870192505b84831015612401578235825291830191908301906123e8565b979650505050505050565b600082601f83011261241d57600080fd5b813567ffffffffffffffff81111561243757612437612345565b61244a601f8201601f191660200161235b565b81815284602083860101111561245f57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561249457600080fd5b853561249f81612129565b945060208601356124af81612129565b9350604086013567ffffffffffffffff808211156124cc57600080fd5b6124d889838a0161238c565b945060608801359150808211156124ee57600080fd5b6124fa89838a0161238c565b9350608088013591508082111561251057600080fd5b5061251d8882890161240c565b9150509295509295909350565b60408152600061253d60408301856121b7565b905082151560208301529392505050565b6000806020838503121561256157600080fd5b823567ffffffffffffffff81111561257857600080fd5b61206985828601612254565b600080600080600060a0868803121561259c57600080fd5b85356125a781612129565b945060208601356125b781612129565b93506040860135925060608601359150608086013567ffffffffffffffff8111156125e157600080fd5b61251d8882890161240c565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061261757607f821691505b6020821081141561263857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006000198214156126685761266861263e565b5060010190565b60006020828403121561268157600080fd5b5051919050565b600060a082016001600160a01b03808816845260208188168186015260a06040860152829150865480845260c0860192508760005281600020935060005b818110156126e2578454845260019485019493830193016126c6565b505084820360608601526126f682876120c2565b85810360809096019590955260008552909301979650505050505050565b8183823760009101908152919050565b8681528560208201526bffffffffffffffffffffffff198560601b166040820152828460548301376054920191820152607401949350505050565b60008261277c57634e487b7160e01b600052601260045260246000fd5b500690565b600082198211156127945761279461263e565b500190565b600082516127ab818460208701612187565b9190910192915050565b6000602082840312156127c757600080fd5b8151611fe08161212956fea164736f6c634300080b000a000000000000000000000000085c091b71b9d77b8f52f073d738ce805dec369b0000000000000000000000000000000000000000000000000000000000000001
Deployed Bytecode
0x6080604052600436106102195760003560e01c80639303418a1161011d578063bc197c81116100b0578063e2ac32a61161007f578063f23a6e6111610064578063f23a6e6114610650578063f2fde38b1461067c578063ff186b2e1461069c57600080fd5b8063e2ac32a61461061d578063ec79a2291461063057600080fd5b8063bc197c8114610575578063bd268929146105ba578063c7c7dee5146105da578063daf9c210146105ef57600080fd5b8063a1ed6b3b116100ec578063a1ed6b3b146104dc578063a6725e54146104fc578063b29c759814610512578063b74f16ad1461055557600080fd5b80639303418a1461047257806394095c2d14610492578063944d3c2a146104b2578063a0ef91df146104c757600080fd5b8063664ab18e116101b0578063853828b61161017f5780638da5cb5b116101645780638da5cb5b1461041e5780638e83e2491461043c5780638ed5b0fc1461045c57600080fd5b8063853828b6146103e957806389441bf6146103fe57600080fd5b8063664ab18e146103555780636fb24f3a1461036f57806371376c30146103a7578063715018a6146103d457600080fd5b80633cc7c7fa116101ec5780633cc7c7fa146102cf5780634f01c715146102f157806355ab4b8314610315578063592c253f1461033557600080fd5b806301ffc9a71461021e57806312bd4bfd146102535780632b7f81a9146102755780632d1892fb146102ad575b600080fd5b34801561022a57600080fd5b5061023e610239366004611fb6565b6106b2565b60405190151581526020015b60405180910390f35b34801561025f57600080fd5b5061027361026e366004612033565b6106e9565b005b34801561028157600080fd5b50600254610295906001600160a01b031681565b6040516001600160a01b03909116815260200161024a565b3480156102b957600080fd5b506102c26108f8565b60405161024a9190612075565b3480156102db57600080fd5b506102e461095a565b60405161024a91906120fd565b3480156102fd57600080fd5b5061030760065481565b60405190815260200161024a565b34801561032157600080fd5b50610273610330366004612110565b6109b1565b34801561034157600080fd5b50610295610350366004612110565b610ad2565b34801561036157600080fd5b5060095461023e9060ff1681565b34801561037b57600080fd5b5061030761038a36600461213e565b600b60209081526000928352604080842090915290825290205481565b3480156103b357600080fd5b506103c76103c236600461216a565b610afc565b60405161024a91906121e3565b3480156103e057600080fd5b50610273610ca4565b3480156103f557600080fd5b50610273610cb8565b34801561040a57600080fd5b50610273610419366004612110565b610e6b565b34801561042a57600080fd5b506000546001600160a01b0316610295565b34801561044857600080fd5b50610273610457366004612296565b610e78565b34801561046857600080fd5b5061030760055481565b34801561047e57600080fd5b5061027361048d366004612033565b611051565b34801561049e57600080fd5b506102736104ad366004612110565b611065565b3480156104be57600080fd5b50610273611072565b3480156104d357600080fd5b50610273611086565b3480156104e857600080fd5b506103076104f7366004612110565b6110d7565b34801561050857600080fd5b5061030760075481565b34801561051e57600080fd5b5061030761052d36600461213e565b6001600160a01b03919091166000908152600b60209081526040808320938352929052205490565b34801561056157600080fd5b50610273610570366004612110565b6110f8565b34801561058157600080fd5b506105a161059036600461247c565b63bc197c8160e01b95945050505050565b6040516001600160e01b0319909116815260200161024a565b3480156105c657600080fd5b506102736105d5366004612110565b611105565b3480156105e657600080fd5b50610273611112565b3480156105fb57600080fd5b5061060f61060a36600461216a565b611129565b60405161024a92919061252a565b61027361062b36600461254e565b6111d0565b34801561063c57600080fd5b5061027361064b366004612033565b6114c7565b34801561065c57600080fd5b506105a161066b366004612584565b63f23a6e6160e01b95945050505050565b34801561068857600080fd5b5061027361069736600461216a565b611565565b3480156106a857600080fd5b5061030760035481565b60006001600160e01b03198216630271189760e51b14806106e357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6106f16115f5565b60005b818110156108e6576000838383818110610710576107106125ed565b9050602002016020810190610725919061216a565b90506000600a6000836001600160a01b03166001600160a01b0316815260200190815260200160002060405180608001604052908160008201805461076990612603565b80601f016020809104026020016040519081016040528092919081815260200182805461079590612603565b80156107e25780601f106107b7576101008083540402835291602001916107e2565b820191906000526020600020905b8154815290600101906020018083116107c557829003601f168201915b505050505081526020016001820180548060200260200160405190810160405280929190818152602001828054801561083a57602002820191906000526020600020905b815481526020019060010190808311610826575b505050505081526020016002820180548060200260200160405190810160405280929190818152602001828054801561089257602002820191906000526020600020905b81548152602001906001019080831161087e575b50505091835250506003919091015460ff16151560209091015260608101519091506108d15760405163cc5ae55f60e01b815260040160405180910390fd5b505080806108de90612654565b9150506106f4565b506108f360088383611e2f565b505050565b6060600880548060200260200160405190810160405280929190818152602001828054801561095057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610932575b5050505050905090565b6060600480548060200260200160405190810160405280929190818152602001828054801561095057602002820191906000526020600020905b815481526020019060010190808311610994575050505050905090565b6109b96115f5565b600254604051627eeac760e11b8152306004820152602481018390526000916001600160a01b03169062fdd58e90604401602060405180830381865afa158015610a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2b919061266f565b6002549091506001600160a01b031663f242432a30610a526000546001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018590526064810184905260a06084820152600060a482015260c401600060405180830381600087803b158015610ab657600080fd5b505af1158015610aca573d6000803e3d6000fd5b505050505050565b60088181548110610ae257600080fd5b6000918252602090912001546001600160a01b0316905081565b610b2960405180608001604052806060815260200160608152602001606081526020016000151581525090565b6001600160a01b0382166000908152600a602052604090819020815160808101909252805482908290610b5b90612603565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8790612603565b8015610bd45780601f10610ba957610100808354040283529160200191610bd4565b820191906000526020600020905b815481529060010190602001808311610bb757829003601f168201915b5050505050815260200160018201805480602002602001604051908101604052809291908181526020018280548015610c2c57602002820191906000526020600020905b815481526020019060010190808311610c18575b5050505050815260200160028201805480602002602001604051908101604052809291908181526020018280548015610c8457602002820191906000526020600020905b815481526020019060010190808311610c70575b50505091835250506003919091015460ff16151560209091015292915050565b610cac6115f5565b610cb6600061164f565b565b610cc06115f5565b60045460009067ffffffffffffffff811115610cde57610cde612345565b604051908082528060200260200182016040528015610d07578160200160208202803683370190505b50905060005b600454811015610def57600254600480546000926001600160a01b03169162fdd58e9130919086908110610d4357610d436125ed565b6000918252602090912001546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381865afa158015610d98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbc919061266f565b905080838381518110610dd157610dd16125ed565b60209081029190910101525080610de781612654565b915050610d0d565b506002546001600160a01b0316632eb2c2d630610e146000546001600160a01b031690565b6004856040518563ffffffff1660e01b8152600401610e369493929190612688565b600060405180830381600087803b158015610e5057600080fd5b505af1158015610e64573d6000803e3d6000fd5b5050505050565b610e736115f5565b600655565b610e806115f5565b60405164065726332360dc1b6020820152602501604051602081830303815290604052805190602001208787604051602001610ebd929190612714565b604051602081830303815290604052805190602001201480610f3057506040516565726337323160d01b6020820152602601604051602081830303815290604052805190602001208787604051602001610f18929190612714565b60405160208183030381529060405280519060200120145b80610f8d5750604051666572633131353560c81b6020820152602701604051602081830303815290604052805190602001208787604051602001610f75929190612714565b60405160208183030381529060405280519060200120145b1561102f576001600160a01b0385166000908152600a60205260409020610fb5908888611e9f565b506001600160a01b0385166000908152600a60205260409020610fdc906001018585611f13565b506001600160a01b0385166000908152600a60205260409020611003906002018383611f13565b506001600160a01b0385166000908152600a60205260409020600301805460ff19166001179055611048565b6040516324fa649360e11b815260040160405180910390fd5b50505050505050565b6110596115f5565b6108f360048383611f13565b61106d6115f5565b600555565b61107a6115f5565b6009805460ff19169055565b61108e6115f5565b600080546001600160a01b03166040519091506001600160a01b038216904780156108fc02916000818181858888f193505050501580156110d3573d6000803e3d6000fd5b5050565b600481815481106110e757600080fd5b600091825260209091200154905081565b6111006115f5565b600355565b61110d6115f5565b600755565b61111a6115f5565b6009805460ff19166001179055565b600a6020526000908152604090208054819061114490612603565b80601f016020809104026020016040519081016040528092919081815260200182805461117090612603565b80156111bd5780601f10611192576101008083540402835291602001916111bd565b820191906000526020600020905b8154815290600101906020018083116111a057829003601f168201915b5050506003909301549192505060ff1682565b6111d86116ac565b60095460ff166111fb57604051635dcd5a0560e11b815260040160405180910390fd5b8061121957604051632ca2001360e11b815260040160405180910390fd5b600754336000908152600b6020908152604080832060055484529091529020541061127e57336000908152600b60209081526040808320600554845290915290819020549051636022d84560e11b815260048101919091526024015b60405180910390fd5b600654336000908152600b602090815260408083206005548452909152902054108015906112ae57506003543414155b156112ce5760405163075120b560e11b8152346004820152602401611275565b6008541561134c57600854600090600114156112f5576112ee6000611706565b905061132c565b60005b60085481101561132a5761130b81611706565b915081156113185761132a565b8061132281612654565b9150506112f8565b505b8061134a57604051632a4cc83760e11b815260040160405180910390fd5b505b336000818152600b6020908152604080832060055484528252808320549051929361137f93429344938992899201612724565b60408051601f1981840301815291905280516020909101206004549091506000906113aa908361275f565b905060006113b782611c18565b336000908152600b6020908152604080832060055484529091529020549091506113e2906001612781565b336000818152600b602090815260408083206005548452909152808220939093556002549251637921219560e11b81523060048201526024810192909252604482018490526001606483015260a0608483015260a48201526001600160a01b039091169063f242432a9060c401600060405180830381600087803b15801561146957600080fd5b505af115801561147d573d6000803e3d6000fd5b505060408051338152602081018590527f121b694a4fb1937b20c2d628a6eaf98ccc544d659d81e5ce7974a2f2dbaf6bcf935001905060405180910390a15050506110d360018055565b6114cf6115f5565b60005b818110156108f357600a60008484848181106114f0576114f06125ed565b9050602002016020810190611505919061216a565b6001600160a01b03168152602081019190915260400160009081209061152b8282611f4d565b611539600183016000611f87565b611547600283016000611f87565b50600301805460ff191690558061155d81612654565b9150506114d2565b61156d6115f5565b6001600160a01b0381166115e95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401611275565b6115f28161164f565b50565b6000546001600160a01b03163314610cb65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611275565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015414156116ff5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611275565b6002600155565b6000806008838154811061171c5761171c6125ed565b60009182526020808320909101546001600160a01b0316808352600a9091526040808320815160808101909252805492945090918290829061175d90612603565b80601f016020809104026020016040519081016040528092919081815260200182805461178990612603565b80156117d65780601f106117ab576101008083540402835291602001916117d6565b820191906000526020600020905b8154815290600101906020018083116117b957829003601f168201915b505050505081526020016001820180548060200260200160405190810160405280929190818152602001828054801561182e57602002820191906000526020600020905b81548152602001906001019080831161181a575b505050505081526020016002820180548060200260200160405190810160405280929190818152602001828054801561188657602002820191906000526020600020905b815481526020019060010190808311611872575b50505091835250506003919091015460ff1615156020918201526040519192506118bc910164065726332360dc1b815260050190565b60408051601f19818403018152908290528051602091820120835190926118e39201612799565b604051602081830303815290604052805190602001201415611998578060400151600081518110611916576119166125ed565b60209081029190910101516040516370a0823160e01b81523360048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015611965573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611989919061266f565b10611998575060019392505050565b6040516565726337323160d01b602082015260260160408051601f19818403018152908290528051602091820120835190926119d49201612799565b604051602081830303815290604052805190602001201415611ac45760005b816020015151811015611ac257336001600160a01b0316836001600160a01b0316636352211e84602001518481518110611a2f57611a2f6125ed565b60200260200101516040518263ffffffff1660e01b8152600401611a5591815260200190565b602060405180830381865afa158015611a72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9691906127b5565b6001600160a01b03161415611ab057506001949350505050565b80611aba81612654565b9150506119f3565b505b604051666572633131353560c81b602082015260270160408051601f1981840301815290829052805160209182012083519092611b019201612799565b604051602081830303815290604052805190602001201415611c0e5760005b816020015151811015611c0c5781604001518181518110611b4357611b436125ed565b6020026020010151836001600160a01b031662fdd58e3385602001518581518110611b7057611b706125ed565b60200260200101516040518363ffffffff1660e01b8152600401611ba99291906001600160a01b03929092168252602082015260400190565b602060405180830381865afa158015611bc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bea919061266f565b10611bfa57506001949350505050565b80611c0481612654565b915050611b20565b505b5060009392505050565b6002546004805460009283926001600160a01b039091169162fdd58e91309187908110611c4757611c476125ed565b6000918252602090912001546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381865afa158015611c9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cc0919061266f565b1115611ceb5760048281548110611cd957611cd96125ed565b90600052602060002001549050919050565b6000611cf8836001612781565b905060005b600454811015611e2857600454821115611d1657600091505b83821415611d3757604051636835f42b60e01b815260040160405180910390fd5b600254600480546000926001600160a01b03169162fdd58e9130919087908110611d6357611d636125ed565b6000918252602090912001546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381865afa158015611db8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ddc919061266f565b1115611e095760048281548110611df557611df56125ed565b906000526020600020015492505050919050565b611e14826001612781565b915080611e2081612654565b915050611cfd565b5050919050565b828054828255906000526020600020908101928215611e8f579160200282015b82811115611e8f57815473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03843516178255602090920191600190910190611e4f565b50611e9b929150611fa1565b5090565b828054611eab90612603565b90600052602060002090601f016020900481019282611ecd5760008555611e8f565b82601f10611ee65782800160ff19823516178555611e8f565b82800160010185558215611e8f579182015b82811115611e8f578235825591602001919060010190611ef8565b828054828255906000526020600020908101928215611e8f5791602002820182811115611e8f578235825591602001919060010190611ef8565b508054611f5990612603565b6000825580601f10611f69575050565b601f0160209004906000526020600020908101906115f29190611fa1565b50805460008255906000526020600020908101906115f291905b5b80821115611e9b5760008155600101611fa2565b600060208284031215611fc857600080fd5b81356001600160e01b031981168114611fe057600080fd5b9392505050565b60008083601f840112611ff957600080fd5b50813567ffffffffffffffff81111561201157600080fd5b6020830191508360208260051b850101111561202c57600080fd5b9250929050565b6000806020838503121561204657600080fd5b823567ffffffffffffffff81111561205d57600080fd5b61206985828601611fe7565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b818110156120b65783516001600160a01b031683529284019291840191600101612091565b50909695505050505050565b600081518084526020808501945080840160005b838110156120f2578151875295820195908201906001016120d6565b509495945050505050565b602081526000611fe060208301846120c2565b60006020828403121561212257600080fd5b5035919050565b6001600160a01b03811681146115f257600080fd5b6000806040838503121561215157600080fd5b823561215c81612129565b946020939093013593505050565b60006020828403121561217c57600080fd5b8135611fe081612129565b60005b838110156121a257818101518382015260200161218a565b838111156121b1576000848401525b50505050565b600081518084526121cf816020860160208601612187565b601f01601f19169290920160200192915050565b6020815260008251608060208401526121ff60a08401826121b7565b90506020840151601f198085840301604086015261221d83836120c2565b925060408601519150808584030160608601525061223b82826120c2565b9150506060840151151560808401528091505092915050565b60008083601f84011261226657600080fd5b50813567ffffffffffffffff81111561227e57600080fd5b60208301915083602082850101111561202c57600080fd5b60008060008060008060006080888a0312156122b157600080fd5b873567ffffffffffffffff808211156122c957600080fd5b6122d58b838c01612254565b909950975060208a013591506122ea82612129565b9095506040890135908082111561230057600080fd5b61230c8b838c01611fe7565b909650945060608a013591508082111561232557600080fd5b506123328a828b01611fe7565b989b979a50959850939692959293505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561238457612384612345565b604052919050565b600082601f83011261239d57600080fd5b8135602067ffffffffffffffff8211156123b9576123b9612345565b8160051b6123c882820161235b565b92835284810182019282810190878511156123e257600080fd5b83870192505b84831015612401578235825291830191908301906123e8565b979650505050505050565b600082601f83011261241d57600080fd5b813567ffffffffffffffff81111561243757612437612345565b61244a601f8201601f191660200161235b565b81815284602083860101111561245f57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561249457600080fd5b853561249f81612129565b945060208601356124af81612129565b9350604086013567ffffffffffffffff808211156124cc57600080fd5b6124d889838a0161238c565b945060608801359150808211156124ee57600080fd5b6124fa89838a0161238c565b9350608088013591508082111561251057600080fd5b5061251d8882890161240c565b9150509295509295909350565b60408152600061253d60408301856121b7565b905082151560208301529392505050565b6000806020838503121561256157600080fd5b823567ffffffffffffffff81111561257857600080fd5b61206985828601612254565b600080600080600060a0868803121561259c57600080fd5b85356125a781612129565b945060208601356125b781612129565b93506040860135925060608601359150608086013567ffffffffffffffff8111156125e157600080fd5b61251d8882890161240c565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061261757607f821691505b6020821081141561263857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006000198214156126685761266861263e565b5060010190565b60006020828403121561268157600080fd5b5051919050565b600060a082016001600160a01b03808816845260208188168186015260a06040860152829150865480845260c0860192508760005281600020935060005b818110156126e2578454845260019485019493830193016126c6565b505084820360608601526126f682876120c2565b85810360809096019590955260008552909301979650505050505050565b8183823760009101908152919050565b8681528560208201526bffffffffffffffffffffffff198560601b166040820152828460548301376054920191820152607401949350505050565b60008261277c57634e487b7160e01b600052601260045260246000fd5b500690565b600082198211156127945761279461263e565b500190565b600082516127ab818460208701612187565b9190910192915050565b6000602082840312156127c757600080fd5b8151611fe08161212956fea164736f6c634300080b000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000085c091b71b9d77b8f52f073d738ce805dec369b0000000000000000000000000000000000000000000000000000000000000001
-----Decoded View---------------
Arg [0] : _artifactsContract (address): 0x085c091B71b9d77B8F52F073D738Ce805dEc369B
Arg [1] : _campaignId (uint256): 1
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000085c091b71b9d77b8f52f073d738ce805dec369b
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000001
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.