Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Babylon Core | 16447862 | 708 days ago | IN | 0 ETH | 0.00076363 |
Latest 25 internal transactions (View All)
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
TokensController
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: agpl-3.0 pragma solidity ^0.8.0; pragma abicoder v2; import "./interfaces/IBabylonCore.sol"; import "./interfaces/IBabylonMintPass.sol"; import "./interfaces/ITokensController.sol"; import "@openzeppelin/contracts/proxy/Clones.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; contract TokensController is ITokensController, Ownable { address internal _core; address internal _mintPassImpl; constructor( address mintPassImpl_ ) { _mintPassImpl = mintPassImpl_; } function createMintPass( uint256 listingId ) external returns (address) { address proxy = Clones.clone(_mintPassImpl); IBabylonMintPass(proxy).initialize(listingId, _core); return proxy; } function sendItem(IBabylonCore.ListingItem calldata item, address from, address to) external { require(msg.sender == _core, "TokensController: Only BabylonCore can send"); if (item.itemType == IBabylonCore.ItemType.ERC1155) { IERC1155(item.token).safeTransferFrom(from, to, item.identifier, item.amount, ""); } else if (item.itemType == IBabylonCore.ItemType.ERC721) { IERC721(item.token).safeTransferFrom(from, to, item.identifier, ""); } } function setBabylonCore(address core) external onlyOwner { require(core != address(0), "TokensController: Zero address"); _core = core; } function checkApproval( address creator, IBabylonCore.ListingItem calldata item ) external view returns (bool) { if (item.itemType == IBabylonCore.ItemType.ERC721) { address owner = IERC721(item.token).ownerOf(item.identifier); address operator = IERC721(item.token).getApproved(item.identifier); return ((owner == creator) && (address(this) == operator)); } else if (item.itemType == IBabylonCore.ItemType.ERC1155) { bool approved = IERC1155(item.token).isApprovedForAll(creator, address(this)); uint256 amount = IERC1155(item.token).balanceOf(creator, item.identifier); return (approved && (amount >= item.amount)); } return false; } function getBabylonCore() external view returns (address) { return _core; } }
// 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) (proxy/Clones.sol) pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies * > a minimal bytecode implementation that delegates all calls to a known, fixed address. * * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the * deterministic method. * * _Available since v3.4._ */ library Clones { /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create opcode, which should never revert. */ function clone(address implementation) internal returns (address instance) { /// @solidity memory-safe-assembly assembly { // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes // of the `implementation` address with the bytecode before the address. mstore(0x00, or(shr(0xe8, shl(0x60, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000)) // Packs the remaining 17 bytes of `implementation` with the bytecode after the address. mstore(0x20, or(shl(0x78, implementation), 0x5af43d82803e903d91602b57fd5bf3)) instance := create(0, 0x09, 0x37) } require(instance != address(0), "ERC1167: create failed"); } /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create2 opcode and a `salt` to deterministically deploy * the clone. Using the same `implementation` and `salt` multiple time will revert, since * the clones cannot be deployed twice at the same address. */ function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) { /// @solidity memory-safe-assembly assembly { // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes // of the `implementation` address with the bytecode before the address. mstore(0x00, or(shr(0xe8, shl(0x60, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000)) // Packs the remaining 17 bytes of `implementation` with the bytecode after the address. mstore(0x20, or(shl(0x78, implementation), 0x5af43d82803e903d91602b57fd5bf3)) instance := create2(0, 0x09, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress( address implementation, bytes32 salt, address deployer ) internal pure returns (address predicted) { /// @solidity memory-safe-assembly assembly { let ptr := mload(0x40) mstore(add(ptr, 0x38), deployer) mstore(add(ptr, 0x24), 0x5af43d82803e903d91602b57fd5bf3ff) mstore(add(ptr, 0x14), implementation) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73) mstore(add(ptr, 0x58), salt) mstore(add(ptr, 0x78), keccak256(add(ptr, 0x0c), 0x37)) predicted := keccak256(add(ptr, 0x43), 0x55) } } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address implementation, bytes32 salt) internal view returns (address predicted) { return predictDeterministicAddress(implementation, salt, address(this)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/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: agpl-3.0 pragma solidity ^0.8.0; interface IBabylonCore { enum ItemType { ERC721, ERC1155 } struct ListingItem { ItemType itemType; address token; uint256 identifier; uint256 amount; } /** * @dev Indicates state of a listing. */ enum ListingState { Active, Resolving, Successful, Finalized, Canceled } /** * @dev Contains all information for a specific listing. */ struct ListingInfo { ListingItem item; ListingState state; address creator; address claimer; address mintPass; uint256 price; uint256 timeStart; uint256 totalTickets; uint256 currentTickets; uint256 donationBps; uint256 randomRequestId; uint256 creationTimestamp; } function resolveClaimer( uint256 id, uint256 random ) external; function getListingInfo(uint256 id) external view returns (ListingInfo memory); }
// SPDX-License-Identifier: agpl-3.0 pragma solidity ^0.8.0; interface IBabylonMintPass { function initialize( uint256 listingId_, address core_ ) external; function mint(address to, uint256 amount) external; function burn(address from) external returns (uint256); function ownerOf(uint256 tokenId) external view returns (address owner); }
// SPDX-License-Identifier: agpl-3.0 pragma solidity ^0.8.0; import "./IBabylonCore.sol"; interface ITokensController { function createMintPass( uint256 listingId ) external returns (address); function checkApproval( address creator, IBabylonCore.ListingItem calldata item ) external view returns (bool); function sendItem(IBabylonCore.ListingItem calldata item, address from, address to) external; }
{ "optimizer": { "enabled": true, "runs": 200 }, "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":"mintPassImpl_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"creator","type":"address"},{"components":[{"internalType":"enum IBabylonCore.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifier","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct IBabylonCore.ListingItem","name":"item","type":"tuple"}],"name":"checkApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"listingId","type":"uint256"}],"name":"createMintPass","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBabylonCore","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"enum IBabylonCore.ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifier","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct IBabylonCore.ListingItem","name":"item","type":"tuple"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"sendItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"core","type":"address"}],"name":"setBabylonCore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610b3d380380610b3d83398101604081905261002f916100ad565b6100383361005d565b600280546001600160a01b0319166001600160a01b03929092169190911790556100dd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100bf57600080fd5b81516001600160a01b03811681146100d657600080fd5b9392505050565b610a51806100ec6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063a5c1799f1161005b578063a5c1799f146100e5578063a5f8906a146100f8578063b2cc44d51461011b578063f2fde38b1461012e57600080fd5b80633509def91461008d578063715018a6146100a25780638da5cb5b146100aa5780639c32a39b146100d4575b600080fd5b6100a061009b3660046108cf565b610141565b005b6100a0610310565b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6001546001600160a01b03166100b7565b6100b76100f3366004610919565b610324565b61010b610106366004610932565b6103ad565b60405190151581526020016100cb565b6100a0610129366004610968565b610665565b6100a061013c366004610968565b6106e5565b6001546001600160a01b031633146101b45760405162461bcd60e51b815260206004820152602b60248201527f546f6b656e73436f6e74726f6c6c65723a204f6e6c7920426162796c6f6e436f60448201526a1c994818d85b881cd95b9960aa1b60648201526084015b60405180910390fd5b60016101c360208501856109a2565b60018111156101d4576101d461098c565b03610273576101e96040840160208501610968565b60408051637921219560e11b81526001600160a01b03858116600483015284811660248301529186013560448201526060860135606482015260a06084820152600060a482015291169063f242432a9060c401600060405180830381600087803b15801561025657600080fd5b505af115801561026a573d6000803e3d6000fd5b50505050505050565b600061028260208501856109a2565b60018111156102935761029361098c565b0361030b576102a86040840160208501610968565b60408051635c46a7ef60e11b81526001600160a01b0385811660048301528481166024830152918601356044820152608060648201526000608482015291169063b88d4fde9060a401600060405180830381600087803b15801561025657600080fd5b505050565b61031861075e565b61032260006107b8565b565b600254600090819061033e906001600160a01b0316610808565b60015460405163da35a26f60e01b8152600481018690526001600160a01b03918216602482015291925082169063da35a26f90604401600060405180830381600087803b15801561038e57600080fd5b505af11580156103a2573d6000803e3d6000fd5b509295945050505050565b6000806103bd60208401846109a2565b60018111156103ce576103ce61098c565b036105115760006103e56040840160208501610968565b6001600160a01b0316636352211e84604001356040518263ffffffff1660e01b815260040161041691815260200190565b602060405180830381865afa158015610433573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045791906109c3565b9050600061046b6040850160208601610968565b6001600160a01b031663081812fc85604001356040518263ffffffff1660e01b815260040161049c91815260200190565b602060405180830381865afa1580156104b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104dd91906109c3565b9050846001600160a01b0316826001600160a01b03161480156105085750306001600160a01b038216145b9250505061065f565b600161052060208401846109a2565b60018111156105315761053161098c565b0361065b5760006105486040840160208501610968565b60405163e985e9c560e01b81526001600160a01b038681166004830152306024830152919091169063e985e9c590604401602060405180830381865afa158015610596573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ba91906109e0565b905060006105ce6040850160208601610968565b60408051627eeac760e11b81526001600160a01b03888116600483015291870135602482015291169062fdd58e90604401602060405180830381865afa15801561061c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106409190610a02565b9050818015610508575083606001358110159250505061065f565b5060005b92915050565b61066d61075e565b6001600160a01b0381166106c35760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e73436f6e74726f6c6c65723a205a65726f2061646472657373000060448201526064016101ab565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6106ed61075e565b6001600160a01b0381166107525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101ab565b61075b816107b8565b50565b6000546001600160a01b031633146103225760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101ab565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f090506001600160a01b03811661089d5760405162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b60448201526064016101ab565b919050565b6000608082840312156108b457600080fd5b50919050565b6001600160a01b038116811461075b57600080fd5b600080600060c084860312156108e457600080fd5b6108ee85856108a2565b925060808401356108fe816108ba565b915060a084013561090e816108ba565b809150509250925092565b60006020828403121561092b57600080fd5b5035919050565b60008060a0838503121561094557600080fd5b8235610950816108ba565b915061095f84602085016108a2565b90509250929050565b60006020828403121561097a57600080fd5b8135610985816108ba565b9392505050565b634e487b7160e01b600052602160045260246000fd5b6000602082840312156109b457600080fd5b81356002811061098557600080fd5b6000602082840312156109d557600080fd5b8151610985816108ba565b6000602082840312156109f257600080fd5b8151801515811461098557600080fd5b600060208284031215610a1457600080fd5b505191905056fea2646970667358221220e72ede8cc54ba8333a4b1142935146f3ddd81d704c42d7244b00efcfa082af6964736f6c63430008110033000000000000000000000000a4a55ac7db913a44b0ee6a729f328dbd1c1458ec
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063a5c1799f1161005b578063a5c1799f146100e5578063a5f8906a146100f8578063b2cc44d51461011b578063f2fde38b1461012e57600080fd5b80633509def91461008d578063715018a6146100a25780638da5cb5b146100aa5780639c32a39b146100d4575b600080fd5b6100a061009b3660046108cf565b610141565b005b6100a0610310565b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6001546001600160a01b03166100b7565b6100b76100f3366004610919565b610324565b61010b610106366004610932565b6103ad565b60405190151581526020016100cb565b6100a0610129366004610968565b610665565b6100a061013c366004610968565b6106e5565b6001546001600160a01b031633146101b45760405162461bcd60e51b815260206004820152602b60248201527f546f6b656e73436f6e74726f6c6c65723a204f6e6c7920426162796c6f6e436f60448201526a1c994818d85b881cd95b9960aa1b60648201526084015b60405180910390fd5b60016101c360208501856109a2565b60018111156101d4576101d461098c565b03610273576101e96040840160208501610968565b60408051637921219560e11b81526001600160a01b03858116600483015284811660248301529186013560448201526060860135606482015260a06084820152600060a482015291169063f242432a9060c401600060405180830381600087803b15801561025657600080fd5b505af115801561026a573d6000803e3d6000fd5b50505050505050565b600061028260208501856109a2565b60018111156102935761029361098c565b0361030b576102a86040840160208501610968565b60408051635c46a7ef60e11b81526001600160a01b0385811660048301528481166024830152918601356044820152608060648201526000608482015291169063b88d4fde9060a401600060405180830381600087803b15801561025657600080fd5b505050565b61031861075e565b61032260006107b8565b565b600254600090819061033e906001600160a01b0316610808565b60015460405163da35a26f60e01b8152600481018690526001600160a01b03918216602482015291925082169063da35a26f90604401600060405180830381600087803b15801561038e57600080fd5b505af11580156103a2573d6000803e3d6000fd5b509295945050505050565b6000806103bd60208401846109a2565b60018111156103ce576103ce61098c565b036105115760006103e56040840160208501610968565b6001600160a01b0316636352211e84604001356040518263ffffffff1660e01b815260040161041691815260200190565b602060405180830381865afa158015610433573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045791906109c3565b9050600061046b6040850160208601610968565b6001600160a01b031663081812fc85604001356040518263ffffffff1660e01b815260040161049c91815260200190565b602060405180830381865afa1580156104b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104dd91906109c3565b9050846001600160a01b0316826001600160a01b03161480156105085750306001600160a01b038216145b9250505061065f565b600161052060208401846109a2565b60018111156105315761053161098c565b0361065b5760006105486040840160208501610968565b60405163e985e9c560e01b81526001600160a01b038681166004830152306024830152919091169063e985e9c590604401602060405180830381865afa158015610596573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ba91906109e0565b905060006105ce6040850160208601610968565b60408051627eeac760e11b81526001600160a01b03888116600483015291870135602482015291169062fdd58e90604401602060405180830381865afa15801561061c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106409190610a02565b9050818015610508575083606001358110159250505061065f565b5060005b92915050565b61066d61075e565b6001600160a01b0381166106c35760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e73436f6e74726f6c6c65723a205a65726f2061646472657373000060448201526064016101ab565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6106ed61075e565b6001600160a01b0381166107525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101ab565b61075b816107b8565b50565b6000546001600160a01b031633146103225760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101ab565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f090506001600160a01b03811661089d5760405162461bcd60e51b8152602060048201526016602482015275115490cc4c4d8dce8818dc99585d194819985a5b195960521b60448201526064016101ab565b919050565b6000608082840312156108b457600080fd5b50919050565b6001600160a01b038116811461075b57600080fd5b600080600060c084860312156108e457600080fd5b6108ee85856108a2565b925060808401356108fe816108ba565b915060a084013561090e816108ba565b809150509250925092565b60006020828403121561092b57600080fd5b5035919050565b60008060a0838503121561094557600080fd5b8235610950816108ba565b915061095f84602085016108a2565b90509250929050565b60006020828403121561097a57600080fd5b8135610985816108ba565b9392505050565b634e487b7160e01b600052602160045260246000fd5b6000602082840312156109b457600080fd5b81356002811061098557600080fd5b6000602082840312156109d557600080fd5b8151610985816108ba565b6000602082840312156109f257600080fd5b8151801515811461098557600080fd5b600060208284031215610a1457600080fd5b505191905056fea2646970667358221220e72ede8cc54ba8333a4b1142935146f3ddd81d704c42d7244b00efcfa082af6964736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a4a55ac7db913a44b0ee6a729f328dbd1c1458ec
-----Decoded View---------------
Arg [0] : mintPassImpl_ (address): 0xa4A55ac7dB913A44b0eE6a729f328DbD1c1458eC
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a4a55ac7db913a44b0ee6a729f328dbd1c1458ec
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.