Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multi Chain
Multichain Addresses
0 address found via
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x384F4c...c8bd5fD2 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
AdvancedWhiteList
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // ENVELOP(NIFTSY) protocol V1 for NFT. WhitList Storage pragma solidity 0.8.19; import "Ownable.sol"; import "IAdvancedWhiteList.sol"; import "LibEnvelopTypes.sol"; /// @title White & Black List contract in Envelop PrtocolV1 /// @author Envelop Team /// @notice You can use this contract for for operate assets enabled for wrap and collateral /// @dev Need be activated with `setWhiteList` in main wraper contract /// @custom:please see Envelop Docs Portal contract AdvancedWhiteList is Ownable, IAdvancedWhiteList { mapping(address => ETypes.WhiteListItem) internal whiteList; mapping(address => bool) internal blackList; mapping(address => ETypes.Rules) internal rulesChecker; ETypes.Asset[] public whiteListedArray; ETypes.Asset[] public blackListedArray; ///////////////////////////////////////////////////////////////////// // Admin functions // ///////////////////////////////////////////////////////////////////// function setWLItem(ETypes.Asset calldata _asset, ETypes.WhiteListItem calldata _assetItem) external onlyOwner { require(_assetItem.transferFeeModel != address(0), 'Cant be zero, use default instead'); whiteList[_asset.contractAddress] = _assetItem; bool alreadyExist; for (uint256 i = 0; i < whiteListedArray.length; i ++) { if (whiteListedArray[i].contractAddress == _asset.contractAddress){ alreadyExist = true; break; } } if (!alreadyExist) { whiteListedArray.push(_asset); } emit WhiteListItemChanged( _asset.contractAddress, _assetItem.enabledForFee, _assetItem.enabledForCollateral, _assetItem.enabledRemoveFromCollateral, _assetItem.transferFeeModel ); } function removeWLItem(ETypes.Asset calldata _asset) external onlyOwner { for (uint256 i = 0; i < whiteListedArray.length; i ++) { if (whiteListedArray[i].contractAddress == _asset.contractAddress){ // Check that deleting item is not last array member // because in solidity we can remove only last item from array if (i != whiteListedArray.length - 1) { // just replace deleted item with last item whiteListedArray[i] = whiteListedArray[whiteListedArray.length - 1]; } whiteListedArray.pop(); delete whiteList[_asset.contractAddress]; emit WhiteListItemChanged( _asset.contractAddress, false, false, false, address(0) ); break; } } } function setBLItem(ETypes.Asset calldata _asset, bool _isBlackListed) external onlyOwner { blackList[_asset.contractAddress] = _isBlackListed; if (_isBlackListed) { for (uint256 i = 0; i < blackListedArray.length; i ++){ if (blackListedArray[i].contractAddress == _asset.contractAddress) { return; } } // There is no this address in array so just add it blackListedArray.push(_asset); } else { for (uint256 i = 0; i < blackListedArray.length; i ++){ if (blackListedArray[i].contractAddress == _asset.contractAddress) { // Check that deleting item is not last array member // because in solidity we can remove only last item from array if (i != blackListedArray.length - 1) { // just replace deleted item with last item blackListedArray[i] = blackListedArray[blackListedArray.length - 1]; } blackListedArray.pop(); delete blackList[_asset.contractAddress]; break; } } } emit BlackListItemChanged(_asset.contractAddress, _isBlackListed); } function setRules(address _asset, bytes2 _only, bytes2 _disabled) public onlyOwner { rulesChecker[_asset].onlythis = _only; rulesChecker[_asset].disabled = _disabled; } ///////////////////////////////////////////////////////////////////////////////////////////// function getWLItem(address _asset) external view returns (ETypes.WhiteListItem memory) { return whiteList[_asset]; } function getWLItemCount() external view returns (uint256) { return whiteListedArray.length; } function getWLAddressByIndex(uint256 _index) external view returns (ETypes.Asset memory) { return whiteListedArray[_index]; } function getWLAddresses() external view returns (ETypes.Asset[] memory) { return whiteListedArray; } function getBLItem(address _asset) external view returns (bool) { return blackList[_asset]; } function getBLItemCount() external view returns (uint256) { return blackListedArray.length; } function getBLAddressByIndex(uint256 _index) external view returns (ETypes.Asset memory) { return blackListedArray[_index]; } function getBLAddresses() external view returns (ETypes.Asset[] memory) { return blackListedArray; } function enabledForCollateral(address _asset) external view returns (bool) { return whiteList[_asset].enabledForCollateral; } function enabledForFee(address _asset) external view returns (bool) { return whiteList[_asset].enabledForFee; } function enabledRemoveFromCollateral(address _asset) external view returns (bool) { return whiteList[_asset].enabledRemoveFromCollateral; } function rulesEnabled(address _asset, bytes2 _rules) external view returns (bool) { if (rulesChecker[_asset].onlythis != 0x0000) { return rulesChecker[_asset].onlythis == _rules; } if (rulesChecker[_asset].disabled != 0x0000) { return (rulesChecker[_asset].disabled & _rules) == 0x0000; } return true; } function validateRules(address _asset, bytes2 _rules) external view returns (bytes2) { if (rulesChecker[_asset].onlythis != 0x0000) { return rulesChecker[_asset].onlythis; } if (rulesChecker[_asset].disabled != 0x0000) { return (~rulesChecker[_asset].disabled) & _rules; } return _rules; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; //import "IERC721Enumerable.sol"; import "LibEnvelopTypes.sol"; interface IAdvancedWhiteList { event WhiteListItemChanged( address indexed asset, bool enabledForFee, bool enabledForCollateral, bool enabledRemoveFromCollateral, address transferFeeModel ); event BlackListItemChanged( address indexed asset, bool isBlackListed ); function getWLItem(address _asset) external view returns (ETypes.WhiteListItem memory); function getWLItemCount() external view returns (uint256); function getBLItem(address _asset) external view returns (bool); function getBLItemCount() external view returns (uint256); function enabledForCollateral(address _asset) external view returns (bool); function enabledForFee(address _asset) external view returns (bool); function enabledRemoveFromCollateral(address _asset) external view returns (bool); function rulesEnabled(address _asset, bytes2 _rules) external view returns (bool); function validateRules(address _asset, bytes2 _rules) external view returns (bytes2); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @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 (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // ENVELOP(NIFTSY) protocol V1 for NFT. pragma solidity 0.8.19; /// @title Flibrary ETypes in Envelop PrtocolV1 /// @author Envelop Team /// @notice This contract implement main protocol's data types library ETypes { enum AssetType {EMPTY, NATIVE, ERC20, ERC721, ERC1155, FUTURE1, FUTURE2, FUTURE3} struct Asset { AssetType assetType; address contractAddress; } struct AssetItem { Asset asset; uint256 tokenId; uint256 amount; } struct NFTItem { address contractAddress; uint256 tokenId; } struct Fee { bytes1 feeType; uint256 param; address token; } struct Lock { bytes1 lockType; uint256 param; } struct Royalty { address beneficiary; uint16 percent; } struct WNFT { AssetItem inAsset; AssetItem[] collateral; address unWrapDestination; Fee[] fees; Lock[] locks; Royalty[] royalties; bytes2 rules; } struct INData { AssetItem inAsset; address unWrapDestination; Fee[] fees; Lock[] locks; Royalty[] royalties; AssetType outType; uint256 outBalance; //0- for 721 and any amount for 1155 bytes2 rules; } struct WhiteListItem { bool enabledForFee; bool enabledForCollateral; bool enabledRemoveFromCollateral; address transferFeeModel; } struct Rules { bytes2 onlythis; bytes2 disabled; } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "AdvancedWhiteList.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"bool","name":"isBlackListed","type":"bool"}],"name":"BlackListItemChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"bool","name":"enabledForFee","type":"bool"},{"indexed":false,"internalType":"bool","name":"enabledForCollateral","type":"bool"},{"indexed":false,"internalType":"bool","name":"enabledRemoveFromCollateral","type":"bool"},{"indexed":false,"internalType":"address","name":"transferFeeModel","type":"address"}],"name":"WhiteListItemChanged","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"blackListedArray","outputs":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"enabledForCollateral","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"enabledForFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"enabledRemoveFromCollateral","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getBLAddressByIndex","outputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBLAddresses","outputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"getBLItem","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBLItemCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getWLAddressByIndex","outputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWLAddresses","outputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"getWLItem","outputs":[{"components":[{"internalType":"bool","name":"enabledForFee","type":"bool"},{"internalType":"bool","name":"enabledForCollateral","type":"bool"},{"internalType":"bool","name":"enabledRemoveFromCollateral","type":"bool"},{"internalType":"address","name":"transferFeeModel","type":"address"}],"internalType":"struct ETypes.WhiteListItem","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWLItemCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset","name":"_asset","type":"tuple"}],"name":"removeWLItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"bytes2","name":"_rules","type":"bytes2"}],"name":"rulesEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset","name":"_asset","type":"tuple"},{"internalType":"bool","name":"_isBlackListed","type":"bool"}],"name":"setBLItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"bytes2","name":"_only","type":"bytes2"},{"internalType":"bytes2","name":"_disabled","type":"bytes2"}],"name":"setRules","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"internalType":"struct ETypes.Asset","name":"_asset","type":"tuple"},{"components":[{"internalType":"bool","name":"enabledForFee","type":"bool"},{"internalType":"bool","name":"enabledForCollateral","type":"bool"},{"internalType":"bool","name":"enabledRemoveFromCollateral","type":"bool"},{"internalType":"address","name":"transferFeeModel","type":"address"}],"internalType":"struct ETypes.WhiteListItem","name":"_assetItem","type":"tuple"}],"name":"setWLItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"bytes2","name":"_rules","type":"bytes2"}],"name":"validateRules","outputs":[{"internalType":"bytes2","name":"","type":"bytes2"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whiteListedArray","outputs":[{"internalType":"enum ETypes.AssetType","name":"assetType","type":"uint8"},{"internalType":"address","name":"contractAddress","type":"address"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c80638f8b138e116100b8578063c31934e11161007c578063c31934e114610393578063d294900e146103c5578063d9546321146103d8578063dcff984d146103f8578063eb9ae17c1461040b578063f2fde38b1461043c57600080fd5b80638f8b138e146102ff5780639a567e321461032b578063aa628fc614610333578063b6e306ac14610354578063b9a283381461038057600080fd5b806356bcec971161010a57806356bcec97146101dc578063715018a6146101ee5780637181dc9d146101f65780637279c6ed1461020957806373cf00f6146102115780638da5cb5b146102e457600080fd5b806320ca943a1461014757806337a0b0d2146101655780634d975ba21461019157806352cdc6a6146101a657806354676f4f146101c9575b600080fd5b61014f61044f565b60405161015c91906110b8565b60405180910390f35b610178610173366004611137565b6104eb565b6040516001600160f01b0319909116815260200161015c565b6101a461019f36600461117e565b61059d565b005b6101b96101b4366004611137565b6107be565b604051901515815260200161015c565b6101a46101d73660046111be565b61088a565b6005545b60405190815260200161015c565b6101a46108ce565b6101a4610204366004611211565b6108e2565b61014f610bc5565b6102a261021f366004611249565b60408051608080820183526000808352602080840182905283850182905260609384018290526001600160a01b0395861682526001815290849020845192830185525460ff808216151584526101008204811615159284019290925262010000810490911615159382019390935263010000009092049092169181019190915290565b60405161015c91908151151581526020808301511515908201526040808301511515908201526060918201516001600160a01b03169181019190915260800190565b6000546040516001600160a01b03909116815260200161015c565b6101b961030d366004611249565b6001600160a01b031660009081526002602052604090205460ff1690565b6004546101e0565b61034661034136600461126d565b610c58565b60405161015c929190611286565b6101b9610362366004611249565b6001600160a01b031660009081526001602052604090205460ff1690565b61034661038e36600461126d565b610c8b565b6101b96103a1366004611249565b6001600160a01b031660009081526001602052604090205462010000900460ff1690565b6101a46103d33660046112ac565b610c9b565b6103eb6103e636600461126d565b610e93565b60405161015c91906112c8565b6103eb61040636600461126d565b610f17565b6101b9610419366004611249565b6001600160a01b0316600090815260016020526040902054610100900460ff1690565b6101a461044a366004611249565b610f3e565b60606004805480602002602001604051908101604052809291908181526020016000905b828210156104e257600084815260209020604080518082019091529083018054829060ff1660078111156104a9576104a9611061565b60078111156104ba576104ba611061565b8152905461010090046001600160a01b03166020918201529082526001929092019101610473565b50505050905090565b6001600160a01b03821660009081526003602052604081205460f01b6001600160f01b0319161561053857506001600160a01b03821660009081526003602052604090205460f01b610597565b6001600160a01b03831660009081526003602052604090205462010000900460f01b6001600160f01b0319161561059457506001600160a01b03821660009081526003602052604090205462010000900460f01b198116610597565b50805b92915050565b6105a5610fb7565b60006105b76080830160608401611249565b6001600160a01b03160361061c5760405162461bcd60e51b815260206004820152602160248201527f43616e74206265207a65726f2c207573652064656661756c7420696e737465616044820152601960fa1b60648201526084015b60405180910390fd5b80600160006106316040860160208701611249565b6001600160a01b03168152602081019190915260400160002061065482826112e3565b5060009050805b6004548110156106cb576106756040850160208601611249565b6001600160a01b03166004828154811061069157610691611388565b60009182526020909120015461010090046001600160a01b0316036106b957600191506106cb565b806106c3816113b4565b91505061065b565b5080610712576004805460018101825560009190915283907f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0161070f82826113cd565b50505b6107226040840160208501611249565b6001600160a01b03167f68752e399b0ebafcb887afbbb8962f48e85608db11b51dc8815ca005c83b8ff26107596020850185611421565b6107696040860160208701611421565b6107796060870160408801611421565b6107896080880160608901611249565b6040805194151585529215156020850152901515838301526001600160a01b03166060830152519081900360800190a2505050565b6001600160a01b03821660009081526003602052604081205460f01b6001600160f01b0319161561081b57506001600160a01b03821660009081526003602052604090205460f01b6001600160f01b031990811690821614610597565b6001600160a01b03831660009081526003602052604090205462010000900460f01b6001600160f01b0319161561088157506001600160a01b03821660009081526003602052604090205462010000900460f01b81166001600160f01b03191615610597565b50600192915050565b610892610fb7565b6001600160a01b03929092166000908152600360205260409020805460f092831c63ffffffff1990911617620100009390921c92909202179055565b6108d6610fb7565b6108e06000611011565b565b6108ea610fb7565b80600260006108ff6040860160208701611249565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580156109e25760005b60055481101561099c5761094a6040840160208501611249565b6001600160a01b03166005828154811061096657610966611388565b60009182526020909120015461010090046001600160a01b03160361098a57505050565b80610994816113b4565b915050610930565b506005805460018101825560009190915282907f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0016109db82826113cd565b5050610b6c565b60005b600554811015610b6a576109ff6040840160208501611249565b6001600160a01b031660058281548110610a1b57610a1b611388565b60009182526020909120015461010090046001600160a01b031603610b5857600554610a499060019061143e565b8114610ae75760058054610a5f9060019061143e565b81548110610a6f57610a6f611388565b9060005260206000200160058281548110610a8c57610a8c611388565b60009182526020909120825491018054909160ff1690829060ff19166001836007811115610abc57610abc611061565b021790555090548154610100600160a81b031916610100918290046001600160a01b03169091021790555b6005805480610af857610af8611451565b60008281526020808220830160001990810180546001600160a81b031916905590920190925560029190610b329060408701908701611249565b6001600160a01b031681526020810191909152604001600020805460ff19169055610b6a565b80610b62816113b4565b9150506109e5565b505b610b7c6040830160208401611249565b6001600160a01b03167fad86a7fad4fca4785e76e250dfc050962483258bc01904e846d4f52b23bc841282604051610bb8911515815260200190565b60405180910390a25b5050565b60606005805480602002602001604051908101604052809291908181526020016000905b828210156104e257600084815260209020604080518082019091529083018054829060ff166007811115610c1f57610c1f611061565b6007811115610c3057610c30611061565b8152905461010090046001600160a01b03166020918201529082526001929092019101610be9565b60048181548110610c6857600080fd5b60009182526020909120015460ff8116915061010090046001600160a01b031682565b60058181548110610c6857600080fd5b610ca3610fb7565b60005b600454811015610bc157610cc06040830160208401611249565b6001600160a01b031660048281548110610cdc57610cdc611388565b60009182526020909120015461010090046001600160a01b031603610e8157600454610d0a9060019061143e565b8114610da85760048054610d209060019061143e565b81548110610d3057610d30611388565b9060005260206000200160048281548110610d4d57610d4d611388565b60009182526020909120825491018054909160ff1690829060ff19166001836007811115610d7d57610d7d611061565b021790555090548154610100600160a81b031916610100918290046001600160a01b03169091021790555b6004805480610db957610db9611451565b60008281526020808220830160001990810180546001600160a81b031916905590920190925560019190610df39060408601908601611249565b6001600160a01b03168152602080820192909252604090810160002080546001600160b81b0319169055610e2c91908401908401611249565b6040805160008082526020820181905291810182905260608101919091526001600160a01b0391909116907f68752e399b0ebafcb887afbbb8962f48e85608db11b51dc8815ca005c83b8ff290608001610bb8565b80610e8b816113b4565b915050610ca6565b604080518082019091526000808252602082015260048281548110610eba57610eba611388565b600091825260209091206040805180820190915291018054829060ff166007811115610ee857610ee8611061565b6007811115610ef957610ef9611061565b8152905461010090046001600160a01b031660209091015292915050565b604080518082019091526000808252602082015260058281548110610eba57610eba611388565b610f46610fb7565b6001600160a01b038116610fab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610613565b610fb481611011565b50565b6000546001600160a01b031633146108e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610613565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052602160045260246000fd5b6008811061109557634e487b7160e01b600052602160045260246000fd5b9052565b6110a4828251611077565b6020908101516001600160a01b0316910152565b602080825282518282018190526000919060409081850190868401855b828110156110f8576110e8848351611099565b92840192908501906001016110d5565b5091979650505050505050565b6001600160a01b0381168114610fb457600080fd5b80356001600160f01b03198116811461113257600080fd5b919050565b6000806040838503121561114a57600080fd5b823561115581611105565b91506111636020840161111a565b90509250929050565b60006040828403121561059457600080fd5b60008082840360c081121561119257600080fd5b61119c858561116c565b92506080603f19820112156111b057600080fd5b506040830190509250929050565b6000806000606084860312156111d357600080fd5b83356111de81611105565b92506111ec6020850161111a565b91506111fa6040850161111a565b90509250925092565b8015158114610fb457600080fd5b6000806060838503121561122457600080fd5b61122e848461116c565b9150604083013561123e81611203565b809150509250929050565b60006020828403121561125b57600080fd5b813561126681611105565b9392505050565b60006020828403121561127f57600080fd5b5035919050565b604081016112948285611077565b6001600160a01b039290921660209190910152919050565b6000604082840312156112be57600080fd5b611266838361116c565b604081016105978284611099565b6000813561059781611105565b81356112ee81611203565b815460ff19811691151560ff169182178355602084013561130e81611203565b61ff0090151560081b1661ffff198216831781178455604085013561133281611203565b62ff000081151560101b168462ffffff19851617831717855550505050610bc161135e606084016112d6565b8280546301000000600160b81b03191660189290921b6301000000600160b81b0316919091179055565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016113c6576113c661139e565b5060010190565b8135600881106113dc57600080fd5b815460ff821691508160ff19821617835560208401356113fb81611105565b6001600160a81b03199190911690911760089190911b610100600160a81b031617905550565b60006020828403121561143357600080fd5b813561126681611203565b818103818111156105975761059761139e565b634e487b7160e01b600052603160045260246000fdfea264697066735822122082c86ca704185ba4854a824dcb268c0eb02890c8c4b01b5f5d89975f33620ca164736f6c63430008130033
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.