Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Initialize | 15127928 | 928 days ago | IN | 0 ETH | 0.00406779 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
15127864 | 928 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
AirdropFlashLoanReceiverV2
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.8.4; import "../interfaces/IFlashLoanReceiver.sol"; import "../interfaces/IBNFT.sol"; import "../interfaces/IBNFTRegistry.sol"; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721EnumerableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/utils/ERC721HolderUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC1155/utils/ERC1155HolderUpgradeable.sol"; contract AirdropFlashLoanReceiverV2 is IFlashLoanReceiver, ReentrancyGuardUpgradeable, OwnableUpgradeable, ERC721HolderUpgradeable, ERC1155HolderUpgradeable { address public bnftRegistry; mapping(bytes32 => bool) public airdropClaimRecords; uint256 public deployType; function initialize( address owner_, address bnftRegistry_, uint256 deployType_ ) public initializer { __ReentrancyGuard_init(); __Ownable_init(); __ERC721Holder_init(); __ERC1155Holder_init(); require(owner_ != address(0), "zero owner address"); require(bnftRegistry_ != address(0), "zero registry address"); bnftRegistry = bnftRegistry_; deployType = deployType_; _transferOwnership(owner_); } struct ExecuteOperationLocalVars { uint256[] airdropTokenTypes; address[] airdropTokenAddresses; uint256[] airdropTokenIds; address airdropContract; bytes airdropParams; uint256 airdropBalance; uint256 airdropTokenId; bytes32 airdropKeyHash; } function executeOperation( address nftAsset, uint256[] calldata nftTokenIds, address initiator, address operator, bytes calldata params ) external override returns (bool) { ExecuteOperationLocalVars memory vars; // check caller and owner (address bnftProxy, ) = IBNFTRegistry(bnftRegistry).getBNFTAddresses(nftAsset); require(bnftProxy == msg.sender, "caller not bnft"); if (deployType != 0) { require(initiator == owner(), "initiator not owner"); } require(nftTokenIds.length > 0, "empty token list"); // decode parameters ( vars.airdropTokenTypes, vars.airdropTokenAddresses, vars.airdropTokenIds, vars.airdropContract, vars.airdropParams ) = abi.decode(params, (uint256[], address[], uint256[], address, bytes)); require(vars.airdropTokenTypes.length > 0, "invalid airdrop token type"); require(vars.airdropTokenAddresses.length == vars.airdropTokenTypes.length, "invalid airdrop token address length"); require(vars.airdropTokenIds.length == vars.airdropTokenTypes.length, "invalid airdrop token id length"); require(vars.airdropContract != address(0), "invalid airdrop contract address"); require(vars.airdropParams.length >= 4, "invalid airdrop parameters"); // allow operator transfer borrowed nfts back to bnft IERC721Upgradeable(nftAsset).setApprovalForAll(operator, true); // call project aidrop contract AddressUpgradeable.functionCall(vars.airdropContract, vars.airdropParams, "call airdrop method failed"); vars.airdropKeyHash = getClaimKeyHash(initiator, nftAsset, nftTokenIds, params); airdropClaimRecords[vars.airdropKeyHash] = true; // transfer airdrop tokens to borrower for (uint256 typeIndex = 0; typeIndex < vars.airdropTokenTypes.length; typeIndex++) { require(vars.airdropTokenAddresses[typeIndex] != address(0), "invalid airdrop token address"); if (vars.airdropTokenTypes[typeIndex] == 1) { // ERC20 vars.airdropBalance = IERC20Upgradeable(vars.airdropTokenAddresses[typeIndex]).balanceOf(address(this)); if (vars.airdropBalance > 0) { IERC20Upgradeable(vars.airdropTokenAddresses[typeIndex]).transfer(initiator, vars.airdropBalance); } } else if (vars.airdropTokenTypes[typeIndex] == 2) { // ERC721 with Enumerate vars.airdropBalance = IERC721Upgradeable(vars.airdropTokenAddresses[typeIndex]).balanceOf(address(this)); for (uint256 i = 0; i < vars.airdropBalance; i++) { vars.airdropTokenId = IERC721EnumerableUpgradeable(vars.airdropTokenAddresses[typeIndex]).tokenOfOwnerByIndex( address(this), 0 ); IERC721EnumerableUpgradeable(vars.airdropTokenAddresses[typeIndex]).safeTransferFrom( address(this), initiator, vars.airdropTokenId ); } } else if (vars.airdropTokenTypes[typeIndex] == 3) { // ERC1155 vars.airdropBalance = IERC1155Upgradeable(vars.airdropTokenAddresses[typeIndex]).balanceOf( address(this), vars.airdropTokenIds[typeIndex] ); IERC1155Upgradeable(vars.airdropTokenAddresses[typeIndex]).safeTransferFrom( address(this), initiator, vars.airdropTokenIds[typeIndex], vars.airdropBalance, new bytes(0) ); } else if (vars.airdropTokenTypes[typeIndex] == 4) { // ERC721 without Enumerate IERC721EnumerableUpgradeable(vars.airdropTokenAddresses[typeIndex]).safeTransferFrom( address(this), initiator, vars.airdropTokenIds[typeIndex] ); } } return true; } function transferERC20( address token, address to, uint256 amount ) external nonReentrant onlyOwner { IERC20Upgradeable(token).transfer(to, amount); } function transferERC721( address token, address to, uint256 id ) external nonReentrant onlyOwner { IERC721Upgradeable(token).safeTransferFrom(address(this), to, id); } function transferERC1155( address token, address to, uint256 id, uint256 amount ) external nonReentrant onlyOwner { IERC1155Upgradeable(token).safeTransferFrom(address(this), to, id, amount, new bytes(0)); } function transferEther(address to, uint256 amount) external nonReentrant onlyOwner { (bool success, ) = to.call{value: amount}(new bytes(0)); require(success, "ETH_TRANSFER_FAILED"); } function getAirdropClaimRecord( address initiator, address nftAsset, uint256[] calldata nftTokenIds, bytes calldata params ) public view returns (bool) { bytes32 airdropKeyHash = getClaimKeyHash(initiator, nftAsset, nftTokenIds, params); return airdropClaimRecords[airdropKeyHash]; } function encodeFlashLoanParams( uint256[] calldata airdropTokenTypes, address[] calldata airdropTokenAddresses, uint256[] calldata airdropTokenIds, address airdropContract, bytes calldata airdropParams ) public pure returns (bytes memory) { return abi.encode(airdropTokenTypes, airdropTokenAddresses, airdropTokenIds, airdropContract, airdropParams); } function getClaimKeyHash( address initiator, address nftAsset, uint256[] calldata nftTokenIds, bytes calldata params ) public pure returns (bytes32) { return keccak256(abi.encodePacked(initiator, nftAsset, nftTokenIds, params)); } }
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.8.4; /** * @title IFlashLoanReceiver interface * @notice Interface for the IFlashLoanReceiver. * @author BEND * @dev implement this interface to develop a flashloan-compatible flashLoanReceiver contract **/ interface IFlashLoanReceiver { function executeOperation( address asset, uint256[] calldata tokenIds, address initiator, address operator, bytes calldata params ) external returns (bool); }
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.8.4; interface IBNFT { /** * @dev Emitted when an bNFT is initialized * @param underlyingAsset_ The address of the underlying asset **/ event Initialized(address indexed underlyingAsset_); /** * @dev Emitted when the ownership is transferred * @param oldOwner The address of the old owner * @param newOwner The address of the new owner **/ event OwnershipTransferred(address oldOwner, address newOwner); /** * @dev Emitted when the claim admin is updated * @param oldAdmin The address of the old admin * @param newAdmin The address of the new admin **/ event ClaimAdminUpdated(address oldAdmin, address newAdmin); /** * @dev Emitted on mint * @param user The address initiating the burn * @param nftAsset address of the underlying asset of NFT * @param nftTokenId token id of the underlying asset of NFT * @param owner The owner address receive the bNFT token **/ event Mint(address indexed user, address indexed nftAsset, uint256 nftTokenId, address indexed owner); /** * @dev Emitted on burn * @param user The address initiating the burn * @param nftAsset address of the underlying asset of NFT * @param nftTokenId token id of the underlying asset of NFT * @param owner The owner address of the burned bNFT token **/ event Burn(address indexed user, address indexed nftAsset, uint256 nftTokenId, address indexed owner); /** * @dev Emitted on flashLoan * @param target The address of the flash loan receiver contract * @param initiator The address initiating the flash loan * @param nftAsset address of the underlying asset of NFT * @param tokenId The token id of the asset being flash borrowed **/ event FlashLoan(address indexed target, address indexed initiator, address indexed nftAsset, uint256 tokenId); event ClaimERC20Airdrop(address indexed token, address indexed to, uint256 amount); event ClaimERC721Airdrop(address indexed token, address indexed to, uint256[] ids); event ClaimERC1155Airdrop(address indexed token, address indexed to, uint256[] ids, uint256[] amounts, bytes data); event ExecuteAirdrop(address indexed airdropContract); /** * @dev Initializes the bNFT * @param underlyingAsset_ The address of the underlying asset of this bNFT (E.g. PUNK for bPUNK) */ function initialize( address underlyingAsset_, string calldata bNftName, string calldata bNftSymbol, address owner_, address claimAdmin_ ) external; /** * @dev Mints bNFT token to the user address * * Requirements: * - The caller can be contract address and EOA. * - `nftTokenId` must not exist. * * @param to The owner address receive the bNFT token * @param tokenId token id of the underlying asset of NFT **/ function mint(address to, uint256 tokenId) external; /** * @dev Burns user bNFT token * * Requirements: * - The caller can be contract address and EOA. * - `tokenId` must exist. * * @param tokenId token id of the underlying asset of NFT **/ function burn(uint256 tokenId) external; /** * @dev Allows smartcontracts to access the tokens within one transaction, as long as the tokens taken is returned. * * Requirements: * - `nftTokenIds` must exist. * * @param receiverAddress The address of the contract receiving the tokens, implementing the IFlashLoanReceiver interface * @param nftTokenIds token ids of the underlying asset * @param params Variadic packed params to pass to the receiver as extra information */ function flashLoan( address receiverAddress, uint256[] calldata nftTokenIds, bytes calldata params ) external; function claimERC20Airdrop( address token, address to, uint256 amount ) external; function claimERC721Airdrop( address token, address to, uint256[] calldata ids ) external; function claimERC1155Airdrop( address token, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; function executeAirdrop(address airdropContract, bytes calldata airdropParams) external; /** * @dev Returns the owner of the `nftTokenId` token. * * Requirements: * - `tokenId` must exist. * * @param tokenId token id of the underlying asset of NFT */ function minterOf(uint256 tokenId) external view returns (address); /** * @dev Returns the address of the underlying asset. */ function underlyingAsset() external view returns (address); /** * @dev Returns the contract-level metadata. */ function contractURI() external view returns (string memory); }
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.8.4; interface IBNFTRegistry { event Initialized(address genericImpl, string namePrefix, string symbolPrefix); event GenericImplementationUpdated(address genericImpl); event BNFTCreated(address indexed nftAsset, address bNftImpl, address bNftProxy, uint256 totals); event BNFTUpgraded(address indexed nftAsset, address bNftImpl, address bNftProxy, uint256 totals); event CustomeSymbolsAdded(address[] nftAssets, string[] symbols); event ClaimAdminUpdated(address oldAdmin, address newAdmin); function getBNFTAddresses(address nftAsset) external view returns (address bNftProxy, address bNftImpl); function getBNFTAddressesByIndex(uint16 index) external view returns (address bNftProxy, address bNftImpl); function getBNFTAssetList() external view returns (address[] memory); function allBNFTAssetLength() external view returns (uint256); function initialize( address genericImpl, string memory namePrefix_, string memory symbolPrefix_ ) external; function setBNFTGenericImpl(address genericImpl) external; /** * @dev Create bNFT proxy and implement, then initialize it * @param nftAsset The address of the underlying asset of the BNFT **/ function createBNFT(address nftAsset) external returns (address bNftProxy); /** * @dev Create bNFT proxy with already deployed implement, then initialize it * @param nftAsset The address of the underlying asset of the BNFT * @param bNftImpl The address of the deployed implement of the BNFT **/ function createBNFTWithImpl(address nftAsset, address bNftImpl) external returns (address bNftProxy); /** * @dev Update bNFT proxy to an new deployed implement, then initialize it * @param nftAsset The address of the underlying asset of the BNFT * @param bNftImpl The address of the deployed implement of the BNFT * @param encodedCallData The encoded function call. **/ function upgradeBNFTWithImpl( address nftAsset, address bNftImpl, bytes memory encodedCallData ) external; function batchUpgradeBNFT(address[] calldata nftAssets) external; function batchUpgradeAllBNFT() external; /** * @dev Adding custom symbol for some special NFTs like CryptoPunks * @param nftAssets_ The addresses of the NFTs * @param symbols_ The custom symbols of the NFTs **/ function addCustomeSymbols(address[] memory nftAssets_, string[] memory symbols_) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.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 functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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 v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @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.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @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); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721EnumerableUpgradeable is IERC721Upgradeable { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol) pragma solidity ^0.8.0; import "../IERC721ReceiverUpgradeable.sol"; import "../../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721HolderUpgradeable is Initializable, IERC721ReceiverUpgradeable { function __ERC721Holder_init() internal onlyInitializing { } function __ERC721Holder_init_unchained() internal onlyInitializing { } /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } /** * @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 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.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 IERC1155Upgradeable is IERC165Upgradeable { /** * @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 be 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/utils/ERC1155Holder.sol) pragma solidity ^0.8.0; import "./ERC1155ReceiverUpgradeable.sol"; import "../../../proxy/utils/Initializable.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 ERC1155HolderUpgradeable is Initializable, ERC1155ReceiverUpgradeable { function __ERC1155Holder_init() internal onlyInitializing { } function __ERC1155Holder_init_unchained() internal onlyInitializing { } 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; } /** * @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/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.5.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; 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. * * 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 initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
// 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 v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; import "../IERC1155ReceiverUpgradeable.sol"; import "../../../utils/introspection/ERC165Upgradeable.sol"; import "../../../proxy/utils/Initializable.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155ReceiverUpgradeable is Initializable, ERC165Upgradeable, IERC1155ReceiverUpgradeable { function __ERC1155Receiver_init() internal onlyInitializing { } function __ERC1155Receiver_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC1155ReceiverUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @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.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155ReceiverUpgradeable is IERC165Upgradeable { /** * @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 v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @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; }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"airdropClaimRecords","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bnftRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deployType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"airdropTokenTypes","type":"uint256[]"},{"internalType":"address[]","name":"airdropTokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"airdropTokenIds","type":"uint256[]"},{"internalType":"address","name":"airdropContract","type":"address"},{"internalType":"bytes","name":"airdropParams","type":"bytes"}],"name":"encodeFlashLoanParams","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"nftAsset","type":"address"},{"internalType":"uint256[]","name":"nftTokenIds","type":"uint256[]"},{"internalType":"address","name":"initiator","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"executeOperation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"initiator","type":"address"},{"internalType":"address","name":"nftAsset","type":"address"},{"internalType":"uint256[]","name":"nftTokenIds","type":"uint256[]"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"getAirdropClaimRecord","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"initiator","type":"address"},{"internalType":"address","name":"nftAsset","type":"address"},{"internalType":"uint256[]","name":"nftTokenIds","type":"uint256[]"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"getClaimKeyHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"bnftRegistry_","type":"address"},{"internalType":"uint256","name":"deployType_","type":"uint256"}],"name":"initialize","outputs":[],"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":"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":[{"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":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506123ff806100206000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c8063715018a6116100ad578063b67dbc5711610071578063b67dbc5714610295578063b8e851a3146102a8578063bc197c81146102bc578063f23a6e61146102db578063f2fde38b146102fa57600080fd5b8063715018a61461021e5780638da5cb5b1461022657806392605dec1461024b5780639db5dbe41461026f578063b209af0e1461028257600080fd5b80631749bea9116100f45780631749bea9146101ad5780631794bb3c146101c55780631aca6376146101d857806346178da2146101eb57806347048c991461020b57600080fd5b806301ffc9a71461012657806305b1137b1461014e5780630a7e880c14610163578063150b7a0214610176575b600080fd5b610139610134366004612023565b61030d565b60405190151581526020015b60405180910390f35b61016161015c366004611e01565b610344565b005b610161610171366004611cae565b61045b565b610194610184366004611c45565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610145565b6101b76101615481565b604051908152602001610145565b6101616101d3366004611c05565b61052a565b6101616101e6366004611c05565b6106ca565b6101fe6101f9366004611e2c565b61078d565b604051610145919061222e565b610139610219366004611d59565b6107ce565b610161611430565b6065546001600160a01b03165b6040516001600160a01b039091168152602001610145565b61013961025936600461200b565b6101606020526000908152604090205460ff1681565b61016161027d366004611c05565b611466565b6101b7610290366004611acb565b611544565b6101396102a3366004611acb565b611583565b61015f54610233906001600160a01b031681565b6101946102ca366004611b5c565b63bc197c8160e01b95945050505050565b6101946102e9366004611cf3565b63f23a6e6160e01b95945050505050565b610161610308366004611a76565b6115b3565b60006001600160e01b03198216630271189760e51b148061033e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b600260015414156103705760405162461bcd60e51b8152600401610367906122c1565b60405180910390fd5b60026001556065546001600160a01b0316331461039f5760405162461bcd60e51b815260040161036790612241565b604080516000808252602082019092526001600160a01b0384169083906040516103c99190612124565b60006040518083038185875af1925050503d8060008114610406576040519150601f19603f3d011682016040523d82523d6000602084013e61040b565b606091505b50509050806104525760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610367565b50506001805550565b6002600154141561047e5760405162461bcd60e51b8152600401610367906122c1565b60026001556065546001600160a01b031633146104ad5760405162461bcd60e51b815260040161036790612241565b60408051600081526020810191829052637921219560e11b9091526001600160a01b0385169063f242432a906104ee90309087908790879060248101612140565b600060405180830381600087803b15801561050857600080fd5b505af115801561051c573d6000803e3d6000fd5b505060018055505050505050565b600054610100900460ff166105455760005460ff1615610549565b303b155b6105ac5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610367565b600054610100900460ff161580156105ce576000805461ffff19166101011790555b6105d661164e565b6105de61167d565b6105e66116ac565b6105ee6116ac565b6001600160a01b0384166106395760405162461bcd60e51b81526020600482015260126024820152717a65726f206f776e6572206164647265737360701b6044820152606401610367565b6001600160a01b0383166106875760405162461bcd60e51b81526020600482015260156024820152747a65726f207265676973747279206164647265737360581b6044820152606401610367565b61015f80546001600160a01b0319166001600160a01b0385161790556101618290556106b2846116d3565b80156106c4576000805461ff00191690555b50505050565b600260015414156106ed5760405162461bcd60e51b8152600401610367906122c1565b60026001556065546001600160a01b0316331461071c5760405162461bcd60e51b815260040161036790612241565b604051632142170760e11b81523060048201526001600160a01b038381166024830152604482018390528416906342842e0e90606401600060405180830381600087803b15801561076c57600080fd5b505af1158015610780573d6000803e3d6000fd5b5050600180555050505050565b60608989898989898989896040516020016107b09998979695949392919061217a565b60405160208183030381529060405290509998505050505050505050565b600061082460405180610100016040528060608152602001606081526020016060815260200160006001600160a01b03168152602001606081526020016000815260200160008152602001600080191681525090565b61015f54604051632cf98ebd60e11b81526001600160a01b038b8116600483015260009216906359f31d7a90602401604080518083038186803b15801561086a57600080fd5b505afa15801561087e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a29190611a92565b5090506001600160a01b03811633146108ef5760405162461bcd60e51b815260206004820152600f60248201526e18d85b1b195c881b9bdd08189b999d608a1b6044820152606401610367565b610161541561094b576065546001600160a01b0388811691161461094b5760405162461bcd60e51b815260206004820152601360248201527234b734ba34b0ba37b9103737ba1037bbb732b960691b6044820152606401610367565b8761098b5760405162461bcd60e51b815260206004820152601060248201526f195b5c1d1e481d1bdad95b881b1a5cdd60821b6044820152606401610367565b61099784860186611f01565b60808701526001600160a01b031660608601526040850152602084015280835251610a045760405162461bcd60e51b815260206004820152601a60248201527f696e76616c69642061697264726f7020746f6b656e20747970650000000000006044820152606401610367565b81515160208301515114610a665760405162461bcd60e51b8152602060048201526024808201527f696e76616c69642061697264726f7020746f6b656e2061646472657373206c656044820152630dccee8d60e31b6064820152608401610367565b81515160408301515114610abc5760405162461bcd60e51b815260206004820152601f60248201527f696e76616c69642061697264726f7020746f6b656e206964206c656e677468006044820152606401610367565b60608201516001600160a01b0316610b165760405162461bcd60e51b815260206004820181905260248201527f696e76616c69642061697264726f7020636f6e747261637420616464726573736044820152606401610367565b60048260800151511015610b6c5760405162461bcd60e51b815260206004820152601a60248201527f696e76616c69642061697264726f7020706172616d65746572730000000000006044820152606401610367565b60405163a22cb46560e01b81526001600160a01b038781166004830152600160248301528b169063a22cb46590604401600060405180830381600087803b158015610bb657600080fd5b505af1158015610bca573d6000803e3d6000fd5b50505050610c16826060015183608001516040518060400160405280601a81526020017f63616c6c2061697264726f70206d6574686f64206661696c6564000000000000815250611725565b50610c25878b8b8b8989611544565b60e08301819052600090815261016060205260408120805460ff191660011790555b82515181101561141f5760006001600160a01b031683602001518281518110610c8057634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415610cdf5760405162461bcd60e51b815260206004820152601d60248201527f696e76616c69642061697264726f7020746f6b656e20616464726573730000006044820152606401610367565b8251805182908110610d0157634e487b7160e01b600052603260045260246000fd5b602002602001015160011415610e825782602001518181518110610d3557634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610d8057600080fd5b505afa158015610d94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db8919061204b565b60a0840181905215610e7d5782602001518181518110610de857634e487b7160e01b600052603260045260246000fd5b602090810291909101015160a084015160405163a9059cbb60e01b81526001600160a01b038b81166004830152602482019290925291169063a9059cbb90604401602060405180830381600087803b158015610e4357600080fd5b505af1158015610e57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7b9190611feb565b505b61140d565b8251805182908110610ea457634e487b7160e01b600052603260045260246000fd5b6020026020010151600214156110d35782602001518181518110610ed857634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610f2357600080fd5b505afa158015610f37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5b919061204b565b60a084015260005b8360a00151811015610e7b5783602001518281518110610f9357634e487b7160e01b600052603260045260246000fd5b6020908102919091010151604051632f745c5960e01b8152306004820152600060248201526001600160a01b0390911690632f745c599060440160206040518083038186803b158015610fe557600080fd5b505afa158015610ff9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101d919061204b565b60c0850152602084015180518390811061104757634e487b7160e01b600052603260045260246000fd5b602090810291909101015160c0850151604051632142170760e11b81523060048201526001600160a01b038c8116602483015260448201929092529116906342842e0e90606401600060405180830381600087803b1580156110a857600080fd5b505af11580156110bc573d6000803e3d6000fd5b5050505080806110cb90612377565b915050610f63565b82518051829081106110f557634e487b7160e01b600052603260045260246000fd5b602002602001015160031415611308578260200151818151811061112957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031662fdd58e308560400151848151811061116357634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b815260040161119c9291906001600160a01b03929092168252602082015260400190565b60206040518083038186803b1580156111b457600080fd5b505afa1580156111c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ec919061204b565b60a0840152602083015180518290811061121657634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031663f242432a308a8660400151858151811061125257634e487b7160e01b600052603260045260246000fd5b60200260200101518760a0015160006001600160401b0381111561128657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156112b0576020820181803683370190505b506040518663ffffffff1660e01b81526004016112d1959493929190612140565b600060405180830381600087803b1580156112eb57600080fd5b505af11580156112ff573d6000803e3d6000fd5b5050505061140d565b825180518290811061132a57634e487b7160e01b600052603260045260246000fd5b60200260200101516004141561140d578260200151818151811061135e57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166342842e0e308a8660400151858151811061139a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156113f457600080fd5b505af1158015611408573d6000803e3d6000fd5b505050505b8061141781612377565b915050610c47565b5060019a9950505050505050505050565b6065546001600160a01b0316331461145a5760405162461bcd60e51b815260040161036790612241565b61146460006116d3565b565b600260015414156114895760405162461bcd60e51b8152600401610367906122c1565b60026001556065546001600160a01b031633146114b85760405162461bcd60e51b815260040161036790612241565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b15801561150257600080fd5b505af1158015611516573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153a9190611feb565b5050600180555050565b6000868686868686604051602001611561969594939291906120c3565b6040516020818303038152906040528051906020012090509695505050505050565b600080611594888888888888611544565b6000908152610160602052604090205460ff1698975050505050505050565b6065546001600160a01b031633146115dd5760405162461bcd60e51b815260040161036790612241565b6001600160a01b0381166116425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610367565b61164b816116d3565b50565b600054610100900460ff166116755760405162461bcd60e51b815260040161036790612276565b61146461173e565b600054610100900460ff166116a45760405162461bcd60e51b815260040161036790612276565b61146461176b565b600054610100900460ff166114645760405162461bcd60e51b815260040161036790612276565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6060611734848460008561179b565b90505b9392505050565b600054610100900460ff166117655760405162461bcd60e51b815260040161036790612276565b60018055565b600054610100900460ff166117925760405162461bcd60e51b815260040161036790612276565b611464336116d3565b6060824710156117fc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610367565b6001600160a01b0385163b6118535760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610367565b600080866001600160a01b0316858760405161186f9190612124565b60006040518083038185875af1925050503d80600081146118ac576040519150601f19603f3d011682016040523d82523d6000602084013e6118b1565b606091505b50915091506118c18282866118cc565b979650505050505050565b606083156118db575081611737565b8251156118eb5782518084602001fd5b8160405162461bcd60e51b8152600401610367919061222e565b8035611910816123b4565b919050565b60008083601f840112611926578182fd5b5081356001600160401b0381111561193c578182fd5b6020830191508360208260051b850101111561195757600080fd5b9250929050565b600082601f83011261196e578081fd5b8135602061198361197e83612328565b6122f8565b80838252828201915082860187848660051b89010111156119a2578586fd5b855b858110156119c0578135845292840192908401906001016119a4565b5090979650505050505050565b60008083601f8401126119de578182fd5b5081356001600160401b038111156119f4578182fd5b60208301915083602082850101111561195757600080fd5b600082601f830112611a1c578081fd5b81356001600160401b03811115611a3557611a3561239e565b611a48601f8201601f19166020016122f8565b818152846020838601011115611a5c578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611a87578081fd5b8135611737816123b4565b60008060408385031215611aa4578081fd5b8251611aaf816123b4565b6020840151909250611ac0816123b4565b809150509250929050565b60008060008060008060808789031215611ae3578182fd5b8635611aee816123b4565b95506020870135611afe816123b4565b945060408701356001600160401b0380821115611b19578384fd5b611b258a838b01611915565b90965094506060890135915080821115611b3d578384fd5b50611b4a89828a016119cd565b979a9699509497509295939492505050565b600080600080600060a08688031215611b73578081fd5b8535611b7e816123b4565b94506020860135611b8e816123b4565b935060408601356001600160401b0380821115611ba9578283fd5b611bb589838a0161195e565b94506060880135915080821115611bca578283fd5b611bd689838a0161195e565b93506080880135915080821115611beb578283fd5b50611bf888828901611a0c565b9150509295509295909350565b600080600060608486031215611c19578283fd5b8335611c24816123b4565b92506020840135611c34816123b4565b929592945050506040919091013590565b60008060008060808587031215611c5a578384fd5b8435611c65816123b4565b93506020850135611c75816123b4565b92506040850135915060608501356001600160401b03811115611c96578182fd5b611ca287828801611a0c565b91505092959194509250565b60008060008060808587031215611cc3578182fd5b8435611cce816123b4565b93506020850135611cde816123b4565b93969395505050506040820135916060013590565b600080600080600060a08688031215611d0a578283fd5b8535611d15816123b4565b94506020860135611d25816123b4565b9350604086013592506060860135915060808601356001600160401b03811115611d4d578182fd5b611bf888828901611a0c565b600080600080600080600060a0888a031215611d73578485fd5b8735611d7e816123b4565b965060208801356001600160401b0380821115611d99578687fd5b611da58b838c01611915565b909850965060408a01359150611dba826123b4565b909450606089013590611dcc826123b4565b90935060808901359080821115611de1578283fd5b50611dee8a828b016119cd565b989b979a50959850939692959293505050565b60008060408385031215611e13578182fd5b8235611e1e816123b4565b946020939093013593505050565b600080600080600080600080600060a08a8c031215611e49578283fd5b89356001600160401b0380821115611e5f578485fd5b611e6b8d838e01611915565b909b50995060208c0135915080821115611e83578485fd5b611e8f8d838e01611915565b909950975060408c0135915080821115611ea7578485fd5b611eb38d838e01611915565b909750955060608c01359150611ec8826123b4565b90935060808b01359080821115611edd578384fd5b50611eea8c828d016119cd565b915080935050809150509295985092959850929598565b600080600080600060a08688031215611f18578283fd5b85356001600160401b0380821115611f2e578485fd5b611f3a89838a0161195e565b9650602091508188013581811115611f50578586fd5b8801601f81018a13611f60578586fd5b8035611f6e61197e82612328565b8082825285820191508584018d878560051b8701011115611f8d57898afd5b8994505b83851015611fb8578035611fa4816123b4565b835260019490940193918601918601611f91565b5098505050506040880135915080821115611fd1578485fd5b611fdd89838a0161195e565b9450611bd660608901611905565b600060208284031215611ffc578081fd5b81518015158114611737578182fd5b60006020828403121561201c578081fd5b5035919050565b600060208284031215612034578081fd5b81356001600160e01b031981168114611737578182fd5b60006020828403121561205c578081fd5b5051919050565b81835260006001600160fb1b0383111561207b578081fd5b8260051b80836020870137939093016020019283525090919050565b600081518084526120af81602086016020860161234b565b601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff19606088811b8216835287901b16601482015260006001600160fb1b038511156120f8578081fd5b8460051b8087602885013782016028810182815284868237509092016028019182525095945050505050565b6000825161213681846020870161234b565b9190910192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906118c190830184612097565b60a08152600061218e60a083018b8d612063565b8281036020848101919091528982528a918101835b8b8110156121d15783356121b6816123b4565b6001600160a01b0316825292820192908201906001016121a3565b5084810360408601526121e5818a8c612063565b6001600160a01b0389166060870152858103608087015286815292508590508682840137818501810192909252601f909301601f19169092019091019998505050505050505050565b6020815260006117376020830184612097565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156123205761232061239e565b604052919050565b60006001600160401b038211156123415761234161239e565b5060051b60200190565b60005b8381101561236657818101518382015260200161234e565b838111156106c45750506000910152565b600060001982141561239757634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461164b57600080fdfea2646970667358221220b1e12c821cf68647a170e37aebb94ed5706d42d763da30c36098aa7fd9d6d24c64736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101215760003560e01c8063715018a6116100ad578063b67dbc5711610071578063b67dbc5714610295578063b8e851a3146102a8578063bc197c81146102bc578063f23a6e61146102db578063f2fde38b146102fa57600080fd5b8063715018a61461021e5780638da5cb5b1461022657806392605dec1461024b5780639db5dbe41461026f578063b209af0e1461028257600080fd5b80631749bea9116100f45780631749bea9146101ad5780631794bb3c146101c55780631aca6376146101d857806346178da2146101eb57806347048c991461020b57600080fd5b806301ffc9a71461012657806305b1137b1461014e5780630a7e880c14610163578063150b7a0214610176575b600080fd5b610139610134366004612023565b61030d565b60405190151581526020015b60405180910390f35b61016161015c366004611e01565b610344565b005b610161610171366004611cae565b61045b565b610194610184366004611c45565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610145565b6101b76101615481565b604051908152602001610145565b6101616101d3366004611c05565b61052a565b6101616101e6366004611c05565b6106ca565b6101fe6101f9366004611e2c565b61078d565b604051610145919061222e565b610139610219366004611d59565b6107ce565b610161611430565b6065546001600160a01b03165b6040516001600160a01b039091168152602001610145565b61013961025936600461200b565b6101606020526000908152604090205460ff1681565b61016161027d366004611c05565b611466565b6101b7610290366004611acb565b611544565b6101396102a3366004611acb565b611583565b61015f54610233906001600160a01b031681565b6101946102ca366004611b5c565b63bc197c8160e01b95945050505050565b6101946102e9366004611cf3565b63f23a6e6160e01b95945050505050565b610161610308366004611a76565b6115b3565b60006001600160e01b03198216630271189760e51b148061033e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b600260015414156103705760405162461bcd60e51b8152600401610367906122c1565b60405180910390fd5b60026001556065546001600160a01b0316331461039f5760405162461bcd60e51b815260040161036790612241565b604080516000808252602082019092526001600160a01b0384169083906040516103c99190612124565b60006040518083038185875af1925050503d8060008114610406576040519150601f19603f3d011682016040523d82523d6000602084013e61040b565b606091505b50509050806104525760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610367565b50506001805550565b6002600154141561047e5760405162461bcd60e51b8152600401610367906122c1565b60026001556065546001600160a01b031633146104ad5760405162461bcd60e51b815260040161036790612241565b60408051600081526020810191829052637921219560e11b9091526001600160a01b0385169063f242432a906104ee90309087908790879060248101612140565b600060405180830381600087803b15801561050857600080fd5b505af115801561051c573d6000803e3d6000fd5b505060018055505050505050565b600054610100900460ff166105455760005460ff1615610549565b303b155b6105ac5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610367565b600054610100900460ff161580156105ce576000805461ffff19166101011790555b6105d661164e565b6105de61167d565b6105e66116ac565b6105ee6116ac565b6001600160a01b0384166106395760405162461bcd60e51b81526020600482015260126024820152717a65726f206f776e6572206164647265737360701b6044820152606401610367565b6001600160a01b0383166106875760405162461bcd60e51b81526020600482015260156024820152747a65726f207265676973747279206164647265737360581b6044820152606401610367565b61015f80546001600160a01b0319166001600160a01b0385161790556101618290556106b2846116d3565b80156106c4576000805461ff00191690555b50505050565b600260015414156106ed5760405162461bcd60e51b8152600401610367906122c1565b60026001556065546001600160a01b0316331461071c5760405162461bcd60e51b815260040161036790612241565b604051632142170760e11b81523060048201526001600160a01b038381166024830152604482018390528416906342842e0e90606401600060405180830381600087803b15801561076c57600080fd5b505af1158015610780573d6000803e3d6000fd5b5050600180555050505050565b60608989898989898989896040516020016107b09998979695949392919061217a565b60405160208183030381529060405290509998505050505050505050565b600061082460405180610100016040528060608152602001606081526020016060815260200160006001600160a01b03168152602001606081526020016000815260200160008152602001600080191681525090565b61015f54604051632cf98ebd60e11b81526001600160a01b038b8116600483015260009216906359f31d7a90602401604080518083038186803b15801561086a57600080fd5b505afa15801561087e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a29190611a92565b5090506001600160a01b03811633146108ef5760405162461bcd60e51b815260206004820152600f60248201526e18d85b1b195c881b9bdd08189b999d608a1b6044820152606401610367565b610161541561094b576065546001600160a01b0388811691161461094b5760405162461bcd60e51b815260206004820152601360248201527234b734ba34b0ba37b9103737ba1037bbb732b960691b6044820152606401610367565b8761098b5760405162461bcd60e51b815260206004820152601060248201526f195b5c1d1e481d1bdad95b881b1a5cdd60821b6044820152606401610367565b61099784860186611f01565b60808701526001600160a01b031660608601526040850152602084015280835251610a045760405162461bcd60e51b815260206004820152601a60248201527f696e76616c69642061697264726f7020746f6b656e20747970650000000000006044820152606401610367565b81515160208301515114610a665760405162461bcd60e51b8152602060048201526024808201527f696e76616c69642061697264726f7020746f6b656e2061646472657373206c656044820152630dccee8d60e31b6064820152608401610367565b81515160408301515114610abc5760405162461bcd60e51b815260206004820152601f60248201527f696e76616c69642061697264726f7020746f6b656e206964206c656e677468006044820152606401610367565b60608201516001600160a01b0316610b165760405162461bcd60e51b815260206004820181905260248201527f696e76616c69642061697264726f7020636f6e747261637420616464726573736044820152606401610367565b60048260800151511015610b6c5760405162461bcd60e51b815260206004820152601a60248201527f696e76616c69642061697264726f7020706172616d65746572730000000000006044820152606401610367565b60405163a22cb46560e01b81526001600160a01b038781166004830152600160248301528b169063a22cb46590604401600060405180830381600087803b158015610bb657600080fd5b505af1158015610bca573d6000803e3d6000fd5b50505050610c16826060015183608001516040518060400160405280601a81526020017f63616c6c2061697264726f70206d6574686f64206661696c6564000000000000815250611725565b50610c25878b8b8b8989611544565b60e08301819052600090815261016060205260408120805460ff191660011790555b82515181101561141f5760006001600160a01b031683602001518281518110610c8057634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415610cdf5760405162461bcd60e51b815260206004820152601d60248201527f696e76616c69642061697264726f7020746f6b656e20616464726573730000006044820152606401610367565b8251805182908110610d0157634e487b7160e01b600052603260045260246000fd5b602002602001015160011415610e825782602001518181518110610d3557634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610d8057600080fd5b505afa158015610d94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db8919061204b565b60a0840181905215610e7d5782602001518181518110610de857634e487b7160e01b600052603260045260246000fd5b602090810291909101015160a084015160405163a9059cbb60e01b81526001600160a01b038b81166004830152602482019290925291169063a9059cbb90604401602060405180830381600087803b158015610e4357600080fd5b505af1158015610e57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7b9190611feb565b505b61140d565b8251805182908110610ea457634e487b7160e01b600052603260045260246000fd5b6020026020010151600214156110d35782602001518181518110610ed857634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610f2357600080fd5b505afa158015610f37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5b919061204b565b60a084015260005b8360a00151811015610e7b5783602001518281518110610f9357634e487b7160e01b600052603260045260246000fd5b6020908102919091010151604051632f745c5960e01b8152306004820152600060248201526001600160a01b0390911690632f745c599060440160206040518083038186803b158015610fe557600080fd5b505afa158015610ff9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101d919061204b565b60c0850152602084015180518390811061104757634e487b7160e01b600052603260045260246000fd5b602090810291909101015160c0850151604051632142170760e11b81523060048201526001600160a01b038c8116602483015260448201929092529116906342842e0e90606401600060405180830381600087803b1580156110a857600080fd5b505af11580156110bc573d6000803e3d6000fd5b5050505080806110cb90612377565b915050610f63565b82518051829081106110f557634e487b7160e01b600052603260045260246000fd5b602002602001015160031415611308578260200151818151811061112957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031662fdd58e308560400151848151811061116357634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b815260040161119c9291906001600160a01b03929092168252602082015260400190565b60206040518083038186803b1580156111b457600080fd5b505afa1580156111c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ec919061204b565b60a0840152602083015180518290811061121657634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031663f242432a308a8660400151858151811061125257634e487b7160e01b600052603260045260246000fd5b60200260200101518760a0015160006001600160401b0381111561128657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156112b0576020820181803683370190505b506040518663ffffffff1660e01b81526004016112d1959493929190612140565b600060405180830381600087803b1580156112eb57600080fd5b505af11580156112ff573d6000803e3d6000fd5b5050505061140d565b825180518290811061132a57634e487b7160e01b600052603260045260246000fd5b60200260200101516004141561140d578260200151818151811061135e57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166342842e0e308a8660400151858151811061139a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156113f457600080fd5b505af1158015611408573d6000803e3d6000fd5b505050505b8061141781612377565b915050610c47565b5060019a9950505050505050505050565b6065546001600160a01b0316331461145a5760405162461bcd60e51b815260040161036790612241565b61146460006116d3565b565b600260015414156114895760405162461bcd60e51b8152600401610367906122c1565b60026001556065546001600160a01b031633146114b85760405162461bcd60e51b815260040161036790612241565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b15801561150257600080fd5b505af1158015611516573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153a9190611feb565b5050600180555050565b6000868686868686604051602001611561969594939291906120c3565b6040516020818303038152906040528051906020012090509695505050505050565b600080611594888888888888611544565b6000908152610160602052604090205460ff1698975050505050505050565b6065546001600160a01b031633146115dd5760405162461bcd60e51b815260040161036790612241565b6001600160a01b0381166116425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610367565b61164b816116d3565b50565b600054610100900460ff166116755760405162461bcd60e51b815260040161036790612276565b61146461173e565b600054610100900460ff166116a45760405162461bcd60e51b815260040161036790612276565b61146461176b565b600054610100900460ff166114645760405162461bcd60e51b815260040161036790612276565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6060611734848460008561179b565b90505b9392505050565b600054610100900460ff166117655760405162461bcd60e51b815260040161036790612276565b60018055565b600054610100900460ff166117925760405162461bcd60e51b815260040161036790612276565b611464336116d3565b6060824710156117fc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610367565b6001600160a01b0385163b6118535760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610367565b600080866001600160a01b0316858760405161186f9190612124565b60006040518083038185875af1925050503d80600081146118ac576040519150601f19603f3d011682016040523d82523d6000602084013e6118b1565b606091505b50915091506118c18282866118cc565b979650505050505050565b606083156118db575081611737565b8251156118eb5782518084602001fd5b8160405162461bcd60e51b8152600401610367919061222e565b8035611910816123b4565b919050565b60008083601f840112611926578182fd5b5081356001600160401b0381111561193c578182fd5b6020830191508360208260051b850101111561195757600080fd5b9250929050565b600082601f83011261196e578081fd5b8135602061198361197e83612328565b6122f8565b80838252828201915082860187848660051b89010111156119a2578586fd5b855b858110156119c0578135845292840192908401906001016119a4565b5090979650505050505050565b60008083601f8401126119de578182fd5b5081356001600160401b038111156119f4578182fd5b60208301915083602082850101111561195757600080fd5b600082601f830112611a1c578081fd5b81356001600160401b03811115611a3557611a3561239e565b611a48601f8201601f19166020016122f8565b818152846020838601011115611a5c578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611a87578081fd5b8135611737816123b4565b60008060408385031215611aa4578081fd5b8251611aaf816123b4565b6020840151909250611ac0816123b4565b809150509250929050565b60008060008060008060808789031215611ae3578182fd5b8635611aee816123b4565b95506020870135611afe816123b4565b945060408701356001600160401b0380821115611b19578384fd5b611b258a838b01611915565b90965094506060890135915080821115611b3d578384fd5b50611b4a89828a016119cd565b979a9699509497509295939492505050565b600080600080600060a08688031215611b73578081fd5b8535611b7e816123b4565b94506020860135611b8e816123b4565b935060408601356001600160401b0380821115611ba9578283fd5b611bb589838a0161195e565b94506060880135915080821115611bca578283fd5b611bd689838a0161195e565b93506080880135915080821115611beb578283fd5b50611bf888828901611a0c565b9150509295509295909350565b600080600060608486031215611c19578283fd5b8335611c24816123b4565b92506020840135611c34816123b4565b929592945050506040919091013590565b60008060008060808587031215611c5a578384fd5b8435611c65816123b4565b93506020850135611c75816123b4565b92506040850135915060608501356001600160401b03811115611c96578182fd5b611ca287828801611a0c565b91505092959194509250565b60008060008060808587031215611cc3578182fd5b8435611cce816123b4565b93506020850135611cde816123b4565b93969395505050506040820135916060013590565b600080600080600060a08688031215611d0a578283fd5b8535611d15816123b4565b94506020860135611d25816123b4565b9350604086013592506060860135915060808601356001600160401b03811115611d4d578182fd5b611bf888828901611a0c565b600080600080600080600060a0888a031215611d73578485fd5b8735611d7e816123b4565b965060208801356001600160401b0380821115611d99578687fd5b611da58b838c01611915565b909850965060408a01359150611dba826123b4565b909450606089013590611dcc826123b4565b90935060808901359080821115611de1578283fd5b50611dee8a828b016119cd565b989b979a50959850939692959293505050565b60008060408385031215611e13578182fd5b8235611e1e816123b4565b946020939093013593505050565b600080600080600080600080600060a08a8c031215611e49578283fd5b89356001600160401b0380821115611e5f578485fd5b611e6b8d838e01611915565b909b50995060208c0135915080821115611e83578485fd5b611e8f8d838e01611915565b909950975060408c0135915080821115611ea7578485fd5b611eb38d838e01611915565b909750955060608c01359150611ec8826123b4565b90935060808b01359080821115611edd578384fd5b50611eea8c828d016119cd565b915080935050809150509295985092959850929598565b600080600080600060a08688031215611f18578283fd5b85356001600160401b0380821115611f2e578485fd5b611f3a89838a0161195e565b9650602091508188013581811115611f50578586fd5b8801601f81018a13611f60578586fd5b8035611f6e61197e82612328565b8082825285820191508584018d878560051b8701011115611f8d57898afd5b8994505b83851015611fb8578035611fa4816123b4565b835260019490940193918601918601611f91565b5098505050506040880135915080821115611fd1578485fd5b611fdd89838a0161195e565b9450611bd660608901611905565b600060208284031215611ffc578081fd5b81518015158114611737578182fd5b60006020828403121561201c578081fd5b5035919050565b600060208284031215612034578081fd5b81356001600160e01b031981168114611737578182fd5b60006020828403121561205c578081fd5b5051919050565b81835260006001600160fb1b0383111561207b578081fd5b8260051b80836020870137939093016020019283525090919050565b600081518084526120af81602086016020860161234b565b601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff19606088811b8216835287901b16601482015260006001600160fb1b038511156120f8578081fd5b8460051b8087602885013782016028810182815284868237509092016028019182525095945050505050565b6000825161213681846020870161234b565b9190910192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906118c190830184612097565b60a08152600061218e60a083018b8d612063565b8281036020848101919091528982528a918101835b8b8110156121d15783356121b6816123b4565b6001600160a01b0316825292820192908201906001016121a3565b5084810360408601526121e5818a8c612063565b6001600160a01b0389166060870152858103608087015286815292508590508682840137818501810192909252601f909301601f19169092019091019998505050505050505050565b6020815260006117376020830184612097565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156123205761232061239e565b604052919050565b60006001600160401b038211156123415761234161239e565b5060051b60200190565b60005b8381101561236657818101518382015260200161234e565b838111156106c45750506000910152565b600060001982141561239757634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461164b57600080fdfea2646970667358221220b1e12c821cf68647a170e37aebb94ed5706d42d763da30c36098aa7fd9d6d24c64736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.