Overview
APE Balance
APE Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Whitelist Collec... | 11009898 | 19 hrs ago | IN | 0 APE | 0.00415745 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
CollectionRegistry
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "./interfaces/ICollectionRegistry.sol"; /// @title CollectionRegistry /// @notice Manages whitelisted NFT collections and their base stats contract CollectionRegistry is ICollectionRegistry, Ownable { // Mapping from collection address to its stats mapping(address => CollectionStats) private collectionStats; // Array to keep track of all whitelisted collections address[] private whitelistedCollections; // Minimum and maximum stat values uint256 private constant MIN_STAT_VALUE = 50; uint256 private constant MAX_STAT_VALUE = 200; constructor() Ownable() {} /// @notice Whitelist a new NFT collection with base stats /// @param collection Address of the NFT collection /// @param baseHp Initial HP for NFTs from this collection /// @param baseAttack Initial Attack for NFTs from this collection /// @param baseSpeed Initial Speed for NFTs from this collection function whitelistCollection( address collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed ) external onlyOwner { // Verify collection is a valid ERC721 contract require(collection != address(0), "Invalid collection address"); require(!collectionStats[collection].isWhitelisted, "Collection already whitelisted"); _validateERC721(collection); // Validate stat values require(_isValidStatValue(baseHp), "Invalid HP value"); require(_isValidStatValue(baseAttack), "Invalid Attack value"); require(_isValidStatValue(baseSpeed), "Invalid Speed value"); // Store collection stats collectionStats[collection] = CollectionStats({ baseHp: baseHp, baseAttack: baseAttack, baseSpeed: baseSpeed, isWhitelisted: true }); whitelistedCollections.push(collection); emit CollectionWhitelisted(collection, baseHp, baseAttack, baseSpeed); } /// @notice Update base stats for a whitelisted collection /// @param collection Address of the NFT collection /// @param baseHp New base HP /// @param baseAttack New base Attack /// @param baseSpeed New base Speed function updateCollectionStats( address collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed ) external onlyOwner { require(collectionStats[collection].isWhitelisted, "Collection not whitelisted"); // Validate stat values require(_isValidStatValue(baseHp), "Invalid HP value"); require(_isValidStatValue(baseAttack), "Invalid Attack value"); require(_isValidStatValue(baseSpeed), "Invalid Speed value"); collectionStats[collection].baseHp = baseHp; collectionStats[collection].baseAttack = baseAttack; collectionStats[collection].baseSpeed = baseSpeed; emit CollectionStatsUpdated(collection, baseHp, baseAttack, baseSpeed); } /// @notice Remove a collection from the whitelist /// @param collection Address of the NFT collection to remove function removeCollection(address collection) external onlyOwner { require(collectionStats[collection].isWhitelisted, "Collection not whitelisted"); // Remove from whitelist collectionStats[collection].isWhitelisted = false; // Remove from whitelisted collections array for (uint256 i = 0; i < whitelistedCollections.length; i++) { if (whitelistedCollections[i] == collection) { whitelistedCollections[i] = whitelistedCollections[whitelistedCollections.length - 1]; whitelistedCollections.pop(); break; } } emit CollectionRemoved(collection); } /// @notice Check if a collection is whitelisted /// @param collection Address of the NFT collection to check /// @return bool True if collection is whitelisted function isWhitelisted(address collection) external view returns (bool) { return collectionStats[collection].isWhitelisted; } /// @notice Get base stats for a collection /// @param collection Address of the NFT collection /// @return CollectionStats struct containing base stats function getCollectionStats(address collection) external view returns (CollectionStats memory) { return collectionStats[collection]; } /// @notice Get all whitelisted collections /// @return address[] Array of whitelisted collection addresses function getWhitelistedCollections() external view returns (address[] memory) { return whitelistedCollections; } /// @notice Validate that an address is an ERC721 contract /// @param collection Address to validate function _validateERC721(address collection) internal view { require(collection.code.length > 0, "Collection must be a contract"); try IERC721(collection).supportsInterface(0x80ac58cd) returns (bool isERC721) { require(isERC721, "Collection must support ERC721 interface"); } catch { revert("Collection must support ERC721 interface"); } } /// @notice Check if a stat value is within valid range /// @param value Stat value to check /// @return bool True if value is valid function _isValidStatValue(uint256 value) internal pure returns (bool) { return value >= MIN_STAT_VALUE && value <= MAX_STAT_VALUE; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /// @title ICollectionRegistry /// @notice Interface for managing whitelisted NFT collections and their base stats interface ICollectionRegistry { /// @notice Stats structure for NFT collections struct CollectionStats { uint256 baseHp; uint256 baseAttack; uint256 baseSpeed; bool isWhitelisted; } /// @notice Event emitted when a collection is whitelisted event CollectionWhitelisted(address indexed collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed); /// @notice Event emitted when a collection's stats are updated event CollectionStatsUpdated(address indexed collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed); /// @notice Event emitted when a collection is removed from whitelist event CollectionRemoved(address indexed collection); /// @notice Whitelist a new NFT collection with base stats /// @param collection Address of the NFT collection /// @param baseHp Initial HP for NFTs from this collection /// @param baseAttack Initial Attack for NFTs from this collection /// @param baseSpeed Initial Speed for NFTs from this collection function whitelistCollection( address collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed ) external; /// @notice Update base stats for a whitelisted collection /// @param collection Address of the NFT collection /// @param baseHp New base HP /// @param baseAttack New base Attack /// @param baseSpeed New base Speed function updateCollectionStats( address collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed ) external; /// @notice Remove a collection from the whitelist /// @param collection Address of the NFT collection to remove function removeCollection(address collection) external; /// @notice Check if a collection is whitelisted /// @param collection Address of the NFT collection to check /// @return bool True if collection is whitelisted function isWhitelisted(address collection) external view returns (bool); /// @notice Get base stats for a collection /// @param collection Address of the NFT collection /// @return CollectionStats struct containing base stats function getCollectionStats(address collection) external view returns (CollectionStats memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/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); }
{ "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "forge-std/=lib/forge-std/src/", "@pythnetwork/=lib/@pythnetwork/", "pyth-sdk-solidity/=lib/pyth-sdk-solidity/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"}],"name":"CollectionRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"uint256","name":"baseHp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"baseAttack","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"baseSpeed","type":"uint256"}],"name":"CollectionStatsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":false,"internalType":"uint256","name":"baseHp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"baseAttack","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"baseSpeed","type":"uint256"}],"name":"CollectionWhitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"getCollectionStats","outputs":[{"components":[{"internalType":"uint256","name":"baseHp","type":"uint256"},{"internalType":"uint256","name":"baseAttack","type":"uint256"},{"internalType":"uint256","name":"baseSpeed","type":"uint256"},{"internalType":"bool","name":"isWhitelisted","type":"bool"}],"internalType":"struct ICollectionRegistry.CollectionStats","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistedCollections","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"removeCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"baseHp","type":"uint256"},{"internalType":"uint256","name":"baseAttack","type":"uint256"},{"internalType":"uint256","name":"baseSpeed","type":"uint256"}],"name":"updateCollectionStats","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"baseHp","type":"uint256"},{"internalType":"uint256","name":"baseAttack","type":"uint256"},{"internalType":"uint256","name":"baseSpeed","type":"uint256"}],"name":"whitelistCollection","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cae8061007e6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80638b0279d2116100665780638b0279d21461010c5780638da5cb5b14610121578063b094ae2c1461013c578063e63794181461014f578063f2fde38b1461019757600080fd5b80633af32abf146100985780635028d05a146100dc57806360159688146100f1578063715018a614610104575b600080fd5b6100c76100a6366004610b19565b6001600160a01b031660009081526001602052604090206003015460ff1690565b60405190151581526020015b60405180910390f35b6100ef6100ea366004610b19565b6101aa565b005b6100ef6100ff366004610b3b565b610379565b6100ef61053d565b610114610551565b6040516100d39190610b74565b6000546040516001600160a01b0390911681526020016100d3565b6100ef61014a366004610b3b565b6105b3565b61016261015d366004610b19565b610843565b6040516100d3919081518152602080830151908201526040808301519082015260609182015115159181019190915260800190565b6100ef6101a5366004610b19565b6108c2565b6101b261093b565b6001600160a01b03811660009081526001602052604090206003015460ff166102225760405162461bcd60e51b815260206004820152601a60248201527f436f6c6c656374696f6e206e6f742077686974656c697374656400000000000060448201526064015b60405180910390fd5b6001600160a01b0381166000908152600160205260408120600301805460ff191690555b60025481101561034157816001600160a01b03166002828154811061026d5761026d610bc1565b6000918252602090912001546001600160a01b031603610339576002805461029790600190610bd7565b815481106102a7576102a7610bc1565b600091825260209091200154600280546001600160a01b0390921691839081106102d3576102d3610bc1565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600280548061031257610312610bf8565b600082815260209020810160001990810180546001600160a01b0319169055019055610341565b600101610246565b506040516001600160a01b038216907fa0691bd707b2f65c33c8343d61c274df72c6b5007937dcfbc31aa5a0d0f6fe3c90600090a250565b61038161093b565b6001600160a01b03841660009081526001602052604090206003015460ff166103ec5760405162461bcd60e51b815260206004820152601a60248201527f436f6c6c656374696f6e206e6f742077686974656c69737465640000000000006044820152606401610219565b6103f583610995565b6104345760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642048502076616c756560801b6044820152606401610219565b61043d82610995565b6104805760405162461bcd60e51b8152602060048201526014602482015273496e76616c69642041747461636b2076616c756560601b6044820152606401610219565b61048981610995565b6104cb5760405162461bcd60e51b8152602060048201526013602482015272496e76616c69642053706565642076616c756560681b6044820152606401610219565b6001600160a01b038416600081815260016020818152604092839020878155918201869055600290910184905581518681529081018590529081018390527f6ddb3cd71b6efe93c0d904aeb4c74aa59b472dfd7a7f4027370d954d6690c113906060015b60405180910390a250505050565b61054561093b565b61054f60006109af565b565b606060028054806020026020016040519081016040528092919081815260200182805480156105a957602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161058b575b5050505050905090565b6105bb61093b565b6001600160a01b0384166106115760405162461bcd60e51b815260206004820152601a60248201527f496e76616c696420636f6c6c656374696f6e20616464726573730000000000006044820152606401610219565b6001600160a01b03841660009081526001602052604090206003015460ff161561067d5760405162461bcd60e51b815260206004820152601e60248201527f436f6c6c656374696f6e20616c72656164792077686974656c697374656400006044820152606401610219565b610686846109ff565b61068f83610995565b6106ce5760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642048502076616c756560801b6044820152606401610219565b6106d782610995565b61071a5760405162461bcd60e51b8152602060048201526014602482015273496e76616c69642041747461636b2076616c756560601b6044820152606401610219565b61072381610995565b6107655760405162461bcd60e51b8152602060048201526013602482015272496e76616c69642053706565642076616c756560681b6044820152606401610219565b604080516080810182528481526020808201858152828401858152600160608086018281526001600160a01b038c16600081815284885289812098518955955188850155935160028089019190915590516003909701805460ff19169715159790971790965585549182018655949092527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180546001600160a01b0319168217905583518781529182018690529281018490527f5711bcdc868b08d678b35a54d6367cac882eccdb5fbfdf4c0a6d48155bf8fc13910161052f565b61087060405180608001604052806000815260200160008152602001600081526020016000151581525090565b506001600160a01b0316600090815260016020818152604092839020835160808101855281548152928101549183019190915260028101549282019290925260039091015460ff161515606082015290565b6108ca61093b565b6001600160a01b03811661092f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610219565b610938816109af565b50565b6000546001600160a01b0316331461054f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610219565b6000603282101580156109a9575060c88211155b92915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000816001600160a01b03163b11610a595760405162461bcd60e51b815260206004820152601d60248201527f436f6c6c656374696f6e206d757374206265206120636f6e74726163740000006044820152606401610219565b6040516301ffc9a760e01b81526380ac58cd60e01b60048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa925050508015610ac0575060408051601f3d908101601f19168201909252610abd91810190610c0e565b60015b610adc5760405162461bcd60e51b815260040161021990610c30565b80610af95760405162461bcd60e51b815260040161021990610c30565b5050565b80356001600160a01b0381168114610b1457600080fd5b919050565b600060208284031215610b2b57600080fd5b610b3482610afd565b9392505050565b60008060008060808587031215610b5157600080fd5b610b5a85610afd565b966020860135965060408601359560600135945092505050565b6020808252825182820181905260009190848201906040850190845b81811015610bb55783516001600160a01b031683529284019291840191600101610b90565b50909695505050505050565b634e487b7160e01b600052603260045260246000fd5b818103818111156109a957634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600060208284031215610c2057600080fd5b81518015158114610b3457600080fd5b60208082526028908201527f436f6c6c656374696f6e206d75737420737570706f72742045524337323120696040820152676e7465726661636560c01b60608201526080019056fea264697066735822122027fb3f76f13925f3ff276d2093c09c67686f770de4a3a1c34e1c672040c1386464736f6c63430008170033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c80638b0279d2116100665780638b0279d21461010c5780638da5cb5b14610121578063b094ae2c1461013c578063e63794181461014f578063f2fde38b1461019757600080fd5b80633af32abf146100985780635028d05a146100dc57806360159688146100f1578063715018a614610104575b600080fd5b6100c76100a6366004610b19565b6001600160a01b031660009081526001602052604090206003015460ff1690565b60405190151581526020015b60405180910390f35b6100ef6100ea366004610b19565b6101aa565b005b6100ef6100ff366004610b3b565b610379565b6100ef61053d565b610114610551565b6040516100d39190610b74565b6000546040516001600160a01b0390911681526020016100d3565b6100ef61014a366004610b3b565b6105b3565b61016261015d366004610b19565b610843565b6040516100d3919081518152602080830151908201526040808301519082015260609182015115159181019190915260800190565b6100ef6101a5366004610b19565b6108c2565b6101b261093b565b6001600160a01b03811660009081526001602052604090206003015460ff166102225760405162461bcd60e51b815260206004820152601a60248201527f436f6c6c656374696f6e206e6f742077686974656c697374656400000000000060448201526064015b60405180910390fd5b6001600160a01b0381166000908152600160205260408120600301805460ff191690555b60025481101561034157816001600160a01b03166002828154811061026d5761026d610bc1565b6000918252602090912001546001600160a01b031603610339576002805461029790600190610bd7565b815481106102a7576102a7610bc1565b600091825260209091200154600280546001600160a01b0390921691839081106102d3576102d3610bc1565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600280548061031257610312610bf8565b600082815260209020810160001990810180546001600160a01b0319169055019055610341565b600101610246565b506040516001600160a01b038216907fa0691bd707b2f65c33c8343d61c274df72c6b5007937dcfbc31aa5a0d0f6fe3c90600090a250565b61038161093b565b6001600160a01b03841660009081526001602052604090206003015460ff166103ec5760405162461bcd60e51b815260206004820152601a60248201527f436f6c6c656374696f6e206e6f742077686974656c69737465640000000000006044820152606401610219565b6103f583610995565b6104345760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642048502076616c756560801b6044820152606401610219565b61043d82610995565b6104805760405162461bcd60e51b8152602060048201526014602482015273496e76616c69642041747461636b2076616c756560601b6044820152606401610219565b61048981610995565b6104cb5760405162461bcd60e51b8152602060048201526013602482015272496e76616c69642053706565642076616c756560681b6044820152606401610219565b6001600160a01b038416600081815260016020818152604092839020878155918201869055600290910184905581518681529081018590529081018390527f6ddb3cd71b6efe93c0d904aeb4c74aa59b472dfd7a7f4027370d954d6690c113906060015b60405180910390a250505050565b61054561093b565b61054f60006109af565b565b606060028054806020026020016040519081016040528092919081815260200182805480156105a957602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161058b575b5050505050905090565b6105bb61093b565b6001600160a01b0384166106115760405162461bcd60e51b815260206004820152601a60248201527f496e76616c696420636f6c6c656374696f6e20616464726573730000000000006044820152606401610219565b6001600160a01b03841660009081526001602052604090206003015460ff161561067d5760405162461bcd60e51b815260206004820152601e60248201527f436f6c6c656374696f6e20616c72656164792077686974656c697374656400006044820152606401610219565b610686846109ff565b61068f83610995565b6106ce5760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642048502076616c756560801b6044820152606401610219565b6106d782610995565b61071a5760405162461bcd60e51b8152602060048201526014602482015273496e76616c69642041747461636b2076616c756560601b6044820152606401610219565b61072381610995565b6107655760405162461bcd60e51b8152602060048201526013602482015272496e76616c69642053706565642076616c756560681b6044820152606401610219565b604080516080810182528481526020808201858152828401858152600160608086018281526001600160a01b038c16600081815284885289812098518955955188850155935160028089019190915590516003909701805460ff19169715159790971790965585549182018655949092527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180546001600160a01b0319168217905583518781529182018690529281018490527f5711bcdc868b08d678b35a54d6367cac882eccdb5fbfdf4c0a6d48155bf8fc13910161052f565b61087060405180608001604052806000815260200160008152602001600081526020016000151581525090565b506001600160a01b0316600090815260016020818152604092839020835160808101855281548152928101549183019190915260028101549282019290925260039091015460ff161515606082015290565b6108ca61093b565b6001600160a01b03811661092f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610219565b610938816109af565b50565b6000546001600160a01b0316331461054f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610219565b6000603282101580156109a9575060c88211155b92915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000816001600160a01b03163b11610a595760405162461bcd60e51b815260206004820152601d60248201527f436f6c6c656374696f6e206d757374206265206120636f6e74726163740000006044820152606401610219565b6040516301ffc9a760e01b81526380ac58cd60e01b60048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa925050508015610ac0575060408051601f3d908101601f19168201909252610abd91810190610c0e565b60015b610adc5760405162461bcd60e51b815260040161021990610c30565b80610af95760405162461bcd60e51b815260040161021990610c30565b5050565b80356001600160a01b0381168114610b1457600080fd5b919050565b600060208284031215610b2b57600080fd5b610b3482610afd565b9392505050565b60008060008060808587031215610b5157600080fd5b610b5a85610afd565b966020860135965060408601359560600135945092505050565b6020808252825182820181905260009190848201906040850190845b81811015610bb55783516001600160a01b031683529284019291840191600101610b90565b50909695505050505050565b634e487b7160e01b600052603260045260246000fd5b818103818111156109a957634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600060208284031215610c2057600080fd5b81518015158114610b3457600080fd5b60208082526028908201527f436f6c6c656374696f6e206d75737420737570706f72742045524337323120696040820152676e7465726661636560c01b60608201526080019056fea264697066735822122027fb3f76f13925f3ff276d2093c09c67686f770de4a3a1c34e1c672040c1386464736f6c63430008170033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.