Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
TransferSelectorNFT
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 888888 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import {ITransferSelectorNFT} from "./interfaces/ITransferSelectorNFT.sol"; /** * @title TransferSelectorNFT * @notice It selects the NFT transfer manager based on a collection address. */ contract TransferSelectorNFT is ITransferSelectorNFT, Ownable { // ERC721 interfaceID bytes4 public constant INTERFACE_ID_ERC721 = 0x80ac58cd; // ERC1155 interfaceID bytes4 public constant INTERFACE_ID_ERC1155 = 0xd9b67a26; // Address of the transfer manager contract for ERC721 tokens address public immutable TRANSFER_MANAGER_ERC721; // Address of the transfer manager contract for ERC1155 tokens address public immutable TRANSFER_MANAGER_ERC1155; // Map collection address to transfer manager address mapping(address => address) public transferManagerSelectorForCollection; event CollectionTransferManagerAdded(address indexed collection, address indexed transferManager); event CollectionTransferManagerRemoved(address indexed collection); /** * @notice Constructor * @param _transferManagerERC721 address of the ERC721 transfer manager * @param _transferManagerERC1155 address of the ERC1155 transfer manager */ constructor(address _transferManagerERC721, address _transferManagerERC1155) { TRANSFER_MANAGER_ERC721 = _transferManagerERC721; TRANSFER_MANAGER_ERC1155 = _transferManagerERC1155; } /** * @notice Add a transfer manager for a collection * @param collection collection address to add specific transfer rule * @dev It is meant to be used for exceptions only (e.g., CryptoKitties) */ function addCollectionTransferManager(address collection, address transferManager) external onlyOwner { require(collection != address(0), "Owner: Collection cannot be null address"); require(transferManager != address(0), "Owner: TransferManager cannot be null address"); transferManagerSelectorForCollection[collection] = transferManager; emit CollectionTransferManagerAdded(collection, transferManager); } /** * @notice Remove a transfer manager for a collection * @param collection collection address to remove exception */ function removeCollectionTransferManager(address collection) external onlyOwner { require( transferManagerSelectorForCollection[collection] != address(0), "Owner: Collection has no transfer manager" ); // Set it to the address(0) transferManagerSelectorForCollection[collection] = address(0); emit CollectionTransferManagerRemoved(collection); } /** * @notice Check the transfer manager for a token * @param collection collection address * @dev Support for ERC165 interface is checked AFTER custom implementation */ function checkTransferManagerForToken(address collection) external view override returns (address transferManager) { // Assign transfer manager (if any) transferManager = transferManagerSelectorForCollection[collection]; if (transferManager == address(0)) { if (IERC165(collection).supportsInterface(INTERFACE_ID_ERC721)) { transferManager = TRANSFER_MANAGER_ERC721; } else if (IERC165(collection).supportsInterface(INTERFACE_ID_ERC1155)) { transferManager = TRANSFER_MANAGER_ERC1155; } } return transferManager; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 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); } }
// 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 pragma solidity ^0.8.0; interface ITransferSelectorNFT { function checkTransferManagerForToken(address collection) external view returns (address); }
// 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; } }
{ "optimizer": { "enabled": true, "runs": 888888 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_transferManagerERC721","type":"address"},{"internalType":"address","name":"_transferManagerERC1155","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":true,"internalType":"address","name":"transferManager","type":"address"}],"name":"CollectionTransferManagerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"}],"name":"CollectionTransferManagerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"INTERFACE_ID_ERC1155","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INTERFACE_ID_ERC721","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRANSFER_MANAGER_ERC1155","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRANSFER_MANAGER_ERC721","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"address","name":"transferManager","type":"address"}],"name":"addCollectionTransferManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"}],"name":"checkTransferManagerForToken","outputs":[{"internalType":"address","name":"transferManager","type":"address"}],"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":"removeCollectionTransferManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"transferManagerSelectorForCollection","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c060405234801561001057600080fd5b50604051610c91380380610c9183398101604081905261002f916100c2565b61003833610056565b6001600160601b0319606092831b8116608052911b1660a0526100f5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100bd57600080fd5b919050565b600080604083850312156100d557600080fd5b6100de836100a6565b91506100ec602084016100a6565b90509250929050565b60805160601c60a05160601c610b6361012e6000396000818161014501526108c801526000818161020001526107df0152610b636000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c8063715018a611610081578063bc6bc0cd1161005b578063bc6bc0cd14610222578063cc15949314610249578063f2fde38b1461025c57600080fd5b8063715018a6146101d55780638da5cb5b146101dd578063b1357ddd146101fb57600080fd5b806338928956116100b257806338928956146101405780634216a7531461018c5780637053fb79146101c257600080fd5b806325c6a895146100ce57806333bf6156146100e3575b600080fd5b6100e16100dc366004610ad8565b61026f565b005b61010a7fd9b67a260000000000000000000000000000000000000000000000000000000081565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b6101677f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610137565b61016761019a366004610ab6565b60016020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6100e16101d0366004610ab6565b6104b7565b6100e1610660565b60005473ffffffffffffffffffffffffffffffffffffffff16610167565b6101677f000000000000000000000000000000000000000000000000000000000000000081565b61010a7f80ac58cd0000000000000000000000000000000000000000000000000000000081565b610167610257366004610ab6565b6106ed565b6100e161026a366004610ab6565b6108ed565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216610398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f4f776e65723a20436f6c6c656374696f6e2063616e6e6f74206265206e756c6c60448201527f206164647265737300000000000000000000000000000000000000000000000060648201526084016102ec565b73ffffffffffffffffffffffffffffffffffffffff811661043b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4f776e65723a205472616e736665724d616e616765722063616e6e6f7420626560448201527f206e756c6c20616464726573730000000000000000000000000000000000000060648201526084016102ec565b73ffffffffffffffffffffffffffffffffffffffff82811660008181526001602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169486169485179055517fda166be6ba0ebb71be3f83e7d669765de552ea08978bfe3e3e42d54174111b629190a35050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ec565b73ffffffffffffffffffffffffffffffffffffffff818116600090815260016020526040902054166105ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e65723a20436f6c6c656374696f6e20686173206e6f207472616e73666560448201527f72206d616e61676572000000000000000000000000000000000000000000000060648201526084016102ec565b73ffffffffffffffffffffffffffffffffffffffff811660008181526001602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055517f8c3bf4babc197f3db0e7ec65aaf23fc0efb0e689436aeea8514c3f01fd97841f9190a250565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ec565b6106eb6000610a1d565b565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526001602052604090205416806108e8576040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f80ac58cd00000000000000000000000000000000000000000000000000000000600482015273ffffffffffffffffffffffffffffffffffffffff8316906301ffc9a79060240160206040518083038186803b15801561079f57600080fd5b505afa1580156107b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d79190610b0b565b1561080357507f0000000000000000000000000000000000000000000000000000000000000000919050565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527fd9b67a2600000000000000000000000000000000000000000000000000000000600482015273ffffffffffffffffffffffffffffffffffffffff8316906301ffc9a79060240160206040518083038186803b15801561088857600080fd5b505afa15801561089c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c09190610b0b565b156108e857507f00000000000000000000000000000000000000000000000000000000000000005b919050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461096e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ec565b73ffffffffffffffffffffffffffffffffffffffff8116610a11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102ec565b610a1a81610a1d565b50565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803573ffffffffffffffffffffffffffffffffffffffff811681146108e857600080fd5b600060208284031215610ac857600080fd5b610ad182610a92565b9392505050565b60008060408385031215610aeb57600080fd5b610af483610a92565b9150610b0260208401610a92565b90509250929050565b600060208284031215610b1d57600080fd5b81518015158114610ad157600080fdfea2646970667358221220148f7cac53f9b0f1690f128442e50cd9da162837999c481f647857f47482519264736f6c63430008070033000000000000000000000000f42aa99f011a1fa7cda90e5e98b277e306bca83e000000000000000000000000fed24ec7e22f573c2e08aef55aa6797ca2b3a051
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100c95760003560e01c8063715018a611610081578063bc6bc0cd1161005b578063bc6bc0cd14610222578063cc15949314610249578063f2fde38b1461025c57600080fd5b8063715018a6146101d55780638da5cb5b146101dd578063b1357ddd146101fb57600080fd5b806338928956116100b257806338928956146101405780634216a7531461018c5780637053fb79146101c257600080fd5b806325c6a895146100ce57806333bf6156146100e3575b600080fd5b6100e16100dc366004610ad8565b61026f565b005b61010a7fd9b67a260000000000000000000000000000000000000000000000000000000081565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b6101677f000000000000000000000000fed24ec7e22f573c2e08aef55aa6797ca2b3a05181565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610137565b61016761019a366004610ab6565b60016020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6100e16101d0366004610ab6565b6104b7565b6100e1610660565b60005473ffffffffffffffffffffffffffffffffffffffff16610167565b6101677f000000000000000000000000f42aa99f011a1fa7cda90e5e98b277e306bca83e81565b61010a7f80ac58cd0000000000000000000000000000000000000000000000000000000081565b610167610257366004610ab6565b6106ed565b6100e161026a366004610ab6565b6108ed565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8216610398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f4f776e65723a20436f6c6c656374696f6e2063616e6e6f74206265206e756c6c60448201527f206164647265737300000000000000000000000000000000000000000000000060648201526084016102ec565b73ffffffffffffffffffffffffffffffffffffffff811661043b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4f776e65723a205472616e736665724d616e616765722063616e6e6f7420626560448201527f206e756c6c20616464726573730000000000000000000000000000000000000060648201526084016102ec565b73ffffffffffffffffffffffffffffffffffffffff82811660008181526001602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169486169485179055517fda166be6ba0ebb71be3f83e7d669765de552ea08978bfe3e3e42d54174111b629190a35050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ec565b73ffffffffffffffffffffffffffffffffffffffff818116600090815260016020526040902054166105ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e65723a20436f6c6c656374696f6e20686173206e6f207472616e73666560448201527f72206d616e61676572000000000000000000000000000000000000000000000060648201526084016102ec565b73ffffffffffffffffffffffffffffffffffffffff811660008181526001602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055517f8c3bf4babc197f3db0e7ec65aaf23fc0efb0e689436aeea8514c3f01fd97841f9190a250565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ec565b6106eb6000610a1d565b565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526001602052604090205416806108e8576040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f80ac58cd00000000000000000000000000000000000000000000000000000000600482015273ffffffffffffffffffffffffffffffffffffffff8316906301ffc9a79060240160206040518083038186803b15801561079f57600080fd5b505afa1580156107b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d79190610b0b565b1561080357507f000000000000000000000000f42aa99f011a1fa7cda90e5e98b277e306bca83e919050565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527fd9b67a2600000000000000000000000000000000000000000000000000000000600482015273ffffffffffffffffffffffffffffffffffffffff8316906301ffc9a79060240160206040518083038186803b15801561088857600080fd5b505afa15801561089c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c09190610b0b565b156108e857507f000000000000000000000000fed24ec7e22f573c2e08aef55aa6797ca2b3a0515b919050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461096e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ec565b73ffffffffffffffffffffffffffffffffffffffff8116610a11576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102ec565b610a1a81610a1d565b50565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803573ffffffffffffffffffffffffffffffffffffffff811681146108e857600080fd5b600060208284031215610ac857600080fd5b610ad182610a92565b9392505050565b60008060408385031215610aeb57600080fd5b610af483610a92565b9150610b0260208401610a92565b90509250929050565b600060208284031215610b1d57600080fd5b81518015158114610ad157600080fdfea2646970667358221220148f7cac53f9b0f1690f128442e50cd9da162837999c481f647857f47482519264736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f42aa99f011a1fa7cda90e5e98b277e306bca83e000000000000000000000000fed24ec7e22f573c2e08aef55aa6797ca2b3a051
-----Decoded View---------------
Arg [0] : _transferManagerERC721 (address): 0xf42aa99F011A1fA7CDA90E5E98b277E306BcA83e
Arg [1] : _transferManagerERC1155 (address): 0xFED24eC7E22f573c2e08AEF55aA6797Ca2b3A051
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000f42aa99f011a1fa7cda90e5e98b277e306bca83e
Arg [1] : 000000000000000000000000fed24ec7e22f573c2e08aef55aa6797ca2b3a051
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.