Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 8,921 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy Token | 20452766 | 153 days ago | IN | 0.006 ETH | 0.00004427 | ||||
Buy Token | 20409075 | 159 days ago | IN | 0.006 ETH | 0.00004427 | ||||
Buy Token Batch | 20409065 | 159 days ago | IN | 0.03 ETH | 0.00007292 | ||||
Buy Token Batch | 20409026 | 159 days ago | IN | 0.024 ETH | 0.00006661 | ||||
Buy Token Batch | 20408671 | 159 days ago | IN | 0.03 ETH | 0.00007293 | ||||
Buy Token | 20408547 | 159 days ago | IN | 0.006 ETH | 0.00004427 | ||||
Buy Token | 20408432 | 159 days ago | IN | 0.006 ETH | 0.00004427 | ||||
Buy Token Batch | 20408400 | 159 days ago | IN | 0.018 ETH | 0.00006027 | ||||
Buy Token | 20408316 | 159 days ago | IN | 0.006 ETH | 0.00004427 | ||||
Buy Token | 20408219 | 159 days ago | IN | 0.015 ETH | 0.00004427 | ||||
Buy Token | 20395670 | 161 days ago | IN | 0.006 ETH | 0.00004427 | ||||
Buy Token | 20393889 | 161 days ago | IN | 0.006 ETH | 0.00808424 | ||||
Buy Token | 20393888 | 161 days ago | IN | 0.006 ETH | 0.00754854 | ||||
Buy Token | 20393888 | 161 days ago | IN | 0.006 ETH | 0.00847385 | ||||
Buy Token | 20393888 | 161 days ago | IN | 0.006 ETH | 0.00004427 | ||||
Buy Token | 20145254 | 196 days ago | IN | 0.006 ETH | 0.00008854 | ||||
Buy Token | 17891280 | 512 days ago | IN | 0.015 ETH | 0.00077438 | ||||
Buy Token | 17891280 | 512 days ago | IN | 0.015 ETH | 0.00077438 | ||||
Buy Token | 17891280 | 512 days ago | IN | 0.015 ETH | 0.00077438 | ||||
Transfer | 16636625 | 688 days ago | IN | 0.05 ETH | 0.00149289 | ||||
Buy Token | 16570864 | 698 days ago | IN | 0.006 ETH | 0.00186858 | ||||
Buy Token | 16570864 | 698 days ago | IN | 0.006 ETH | 0.00186858 | ||||
Buy Token | 16563020 | 699 days ago | IN | 0.006 ETH | 0.00101011 | ||||
Buy Token | 15390955 | 866 days ago | IN | 0.006 ETH | 0.00686231 | ||||
Buy Token | 15386863 | 866 days ago | IN | 0.012 ETH | 0.00495857 |
Loading...
Loading
Contract Name:
B2OERC1155Buyer
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* $$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$$$\ $$\ $$\ $$ __$$\ $$ __$$\ $$ __$$\\__$$ __|$$$\ $$ | $$ | $$ |\__/ $$ |$$ / $$ | $$ | $$$$\ $$ | $$$$$$$\ | $$$$$$ |$$ | $$ | $$ | $$ $$\$$ | $$ __$$\ $$ ____/ $$ | $$ | $$ | $$ \$$$$ | $$ | $$ |$$ | $$ | $$ | $$ | $$ |\$$$ | $$$$$$$ |$$$$$$$$\ $$$$$$ | $$ | $$ | \$$ | \_______/ \________| \______/ \__| \__| \__| */ import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract B2OERC1155Buyer is Ownable { //ERC1155 contract interface IERC1155 private _erc1155Contract; //Mapping from token ID to price mapping(uint256 => uint256) private _prices; //Withdrawals balance for owner uint256 private _pendingWithdrawals; //Construct with ERC1155 contract address constructor(address erc1155Addr) { _erc1155Contract = IERC1155(erc1155Addr); } //Set prices of tokens function setPrice(uint256 tokenId, uint256 price) public onlyOwner { require(price > 0, 'B2OERC1155Buyer: price must be > 0'); _prices[tokenId] = price; } function setPriceBatch(uint256[] memory tokenIds, uint256[] memory prices) public onlyOwner { require(tokenIds.length == prices.length, 'B2OERC1155Buyer: tokensIds and prices length do not match'); for (uint256 i = 0; i < tokenIds.length; i++) { require(prices[i] > 0, 'B2OERC1155Buyer: price must be > 0'); _prices[tokenIds[i]] = prices[i]; } } function getPrice(uint256 tokenId) public view returns(uint256) { return _prices[tokenId]; } //Buy function function buyToken(address to, uint256 tokenId, uint256 amount, bytes memory data) public payable { require(_prices[tokenId] > 0, 'B2OERC1155Buyer: wrong token id'); require(amount <= 5, "B2OERC1155Buyer: can't buy more than 5 tokens"); require(msg.value >= _prices[tokenId] * amount, "B2OERC1155Buyer: not enough ETH sent"); //Transfer tokens _erc1155Contract.safeTransferFrom( owner(), to, tokenId, amount, data ); //Record payment to signer's withdrawal balance _pendingWithdrawals += msg.value; } //BuyBatch function function buyTokenBatch(address to, uint256[] memory tokenIds, uint256[] memory amounts, bytes memory data) public payable { require(tokenIds.length == amounts.length, 'B2OERC1155Buyer: tokensIds and amounts length do not match'); uint256 totalAmount = 0; for (uint256 i = 0; i < tokenIds.length; i++) { require(_prices[tokenIds[i]] > 0, 'B2OERC1155Buyer: wrong token id'); require(amounts[i] <= 5, "B2OERC1155Buyer: can't buy more than 5 tokens"); totalAmount += _prices[tokenIds[i]] * amounts[i]; } require(msg.value >= totalAmount, "B2OERC1155Buyer: not enough ETH sent"); //Transfer tokens _erc1155Contract.safeBatchTransferFrom( owner(), to, tokenIds, amounts, data ); //Record payment to signer's withdrawal balance _pendingWithdrawals += msg.value; } //Transfers all pending withdrawal balance to the owner function withdraw() public onlyOwner { //Owner must be a payable address. address payable receiver = payable(msg.sender); uint amount = _pendingWithdrawals; //Set zero before transfer to prevent re-entrancy attack _pendingWithdrawals = 0; receiver.transfer(amount); } //Retuns the amount of Ether available to withdraw. function availableToWithdraw() public view onlyOwner returns (uint256) { return _pendingWithdrawals; } }
// SPDX-License-Identifier: MIT 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 be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT 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; /** * @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": 1000 }, "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":"erc1155Addr","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":[],"name":"availableToWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"buyToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"buyTokenBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"name":"setPriceBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516111bc3803806111bc83398101604081905261002f916100ad565b6100383361005d565b600180546001600160a01b0319166001600160a01b03929092169190911790556100db565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100be578081fd5b81516001600160a01b03811681146100d4578182fd5b9392505050565b6110d2806100ea6000396000f3fe6080604052600436106100b15760003560e01c8063d2c1a6b411610069578063e75722301161004e578063e757223014610178578063f2fde38b146101a5578063f7d97577146101c557600080fd5b8063d2c1a6b414610142578063e322ad2b1461015557600080fd5b8063715018a61161009a578063715018a6146100e057806386f05f1d146100f55780638da5cb5b1461011557600080fd5b80633ccfd60b146100b65780634128ce11146100cd575b600080fd5b3480156100c257600080fd5b506100cb6101e5565b005b6100cb6100db366004610d45565b610281565b3480156100ec57600080fd5b506100cb61059c565b34801561010157600080fd5b506100cb610110366004610e2d565b610602565b34801561012157600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b6100cb610150366004610dda565b6107da565b34801561016157600080fd5b5061016a6109a7565b604051908152602001610139565b34801561018457600080fd5b5061016a610193366004610e8e565b60009081526002602052604090205490565b3480156101b157600080fd5b506100cb6101c0366004610d24565b610a09565b3480156101d157600080fd5b506100cb6101e0366004610ea6565b610aeb565b6000546001600160a01b031633146102445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600380546000918290556040513392839183156108fc0291849190818181858888f1935050505015801561027c573d6000803e3d6000fd5b505050565b81518351146102f85760405162461bcd60e51b815260206004820152603a60248201527f42324f4552433131353542757965723a20746f6b656e7349647320616e64206160448201527f6d6f756e7473206c656e67746820646f206e6f74206d61746368000000000000606482015260840161023b565b6000805b84518110156104a85760006002600087848151811061032b57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020541161038f5760405162461bcd60e51b815260206004820152601f60248201527f42324f4552433131353542757965723a2077726f6e6720746f6b656e20696400604482015260640161023b565b60058482815181106103b157634e487b7160e01b600052603260045260246000fd5b6020026020010151111561041d5760405162461bcd60e51b815260206004820152602d60248201527f42324f4552433131353542757965723a2063616e277420627579206d6f72652060448201526c7468616e203520746f6b656e7360981b606482015260840161023b565b83818151811061043d57634e487b7160e01b600052603260045260246000fd5b60200260200101516002600087848151811061046957634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205461048a9190611036565b610494908361101e565b9150806104a081611055565b9150506102fc565b50803410156105055760405162461bcd60e51b8152602060048201526024808201527f42324f4552433131353542757965723a206e6f7420656e6f75676820455448206044820152631cd95b9d60e21b606482015260840161023b565b6001546001600160a01b0316632eb2c2d66105286000546001600160a01b031690565b878787876040518663ffffffff1660e01b815260040161054c959493929190610f4c565b600060405180830381600087803b15801561056657600080fd5b505af115801561057a573d6000803e3d6000fd5b505050503460036000828254610590919061101e565b90915550505050505050565b6000546001600160a01b031633146105f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161023b565b6106006000610bb2565b565b6000546001600160a01b0316331461065c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161023b565b80518251146106d35760405162461bcd60e51b815260206004820152603960248201527f42324f4552433131353542757965723a20746f6b656e7349647320616e64207060448201527f7269636573206c656e67746820646f206e6f74206d6174636800000000000000606482015260840161023b565b60005b825181101561027c57600082828151811061070157634e487b7160e01b600052603260045260246000fd5b6020026020010151116107615760405162461bcd60e51b815260206004820152602260248201527f42324f4552433131353542757965723a207072696365206d757374206265203e604482015261020360f41b606482015260840161023b565b81818151811061078157634e487b7160e01b600052603260045260246000fd5b6020026020010151600260008584815181106107ad57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555080806107d290611055565b9150506106d6565b6000838152600260205260409020546108355760405162461bcd60e51b815260206004820152601f60248201527f42324f4552433131353542757965723a2077726f6e6720746f6b656e20696400604482015260640161023b565b600582111561089c5760405162461bcd60e51b815260206004820152602d60248201527f42324f4552433131353542757965723a2063616e277420627579206d6f72652060448201526c7468616e203520746f6b656e7360981b606482015260840161023b565b6000838152600260205260409020546108b6908390611036565b3410156109115760405162461bcd60e51b8152602060048201526024808201527f42324f4552433131353542757965723a206e6f7420656e6f75676820455448206044820152631cd95b9d60e21b606482015260840161023b565b6001546001600160a01b031663f242432a6109346000546001600160a01b031690565b868686866040518663ffffffff1660e01b8152600401610958959493929190610faa565b600060405180830381600087803b15801561097257600080fd5b505af1158015610986573d6000803e3d6000fd5b50505050346003600082825461099c919061101e565b909155505050505050565b600080546001600160a01b03163314610a025760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161023b565b5060035490565b6000546001600160a01b03163314610a635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161023b565b6001600160a01b038116610adf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161023b565b610ae881610bb2565b50565b6000546001600160a01b03163314610b455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161023b565b60008111610ba05760405162461bcd60e51b815260206004820152602260248201527f42324f4552433131353542757965723a207072696365206d757374206265203e604482015261020360f41b606482015260840161023b565b60009182526002602052604090912055565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610c3157600080fd5b919050565b600082601f830112610c46578081fd5b8135602067ffffffffffffffff821115610c6257610c62611086565b8160051b610c71828201610fed565b838152828101908684018388018501891015610c8b578687fd5b8693505b85841015610cad578035835260019390930192918401918401610c8f565b50979650505050505050565b600082601f830112610cc9578081fd5b813567ffffffffffffffff811115610ce357610ce3611086565b610cf6601f8201601f1916602001610fed565b818152846020838601011115610d0a578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215610d35578081fd5b610d3e82610c1a565b9392505050565b60008060008060808587031215610d5a578283fd5b610d6385610c1a565b9350602085013567ffffffffffffffff80821115610d7f578485fd5b610d8b88838901610c36565b94506040870135915080821115610da0578384fd5b610dac88838901610c36565b93506060870135915080821115610dc1578283fd5b50610dce87828801610cb9565b91505092959194509250565b60008060008060808587031215610def578384fd5b610df885610c1a565b93506020850135925060408501359150606085013567ffffffffffffffff811115610e21578182fd5b610dce87828801610cb9565b60008060408385031215610e3f578182fd5b823567ffffffffffffffff80821115610e56578384fd5b610e6286838701610c36565b93506020850135915080821115610e77578283fd5b50610e8485828601610c36565b9150509250929050565b600060208284031215610e9f578081fd5b5035919050565b60008060408385031215610eb8578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b83811015610ef657815187529582019590820190600101610eda565b509495945050505050565b60008151808452815b81811015610f2657602081850181015186830182015201610f0a565b81811115610f375782602083870101525b50601f01601f19169290920160200192915050565b60006001600160a01b03808816835280871660208401525060a06040830152610f7860a0830186610ec7565b8281036060840152610f8a8186610ec7565b90508281036080840152610f9e8185610f01565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152610fe260a0830184610f01565b979650505050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561101657611016611086565b604052919050565b6000821982111561103157611031611070565b500190565b600081600019048311821515161561105057611050611070565b500290565b600060001982141561106957611069611070565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212205ea6fa048525bc6e80926ba623e6a5705e11d6ffe94f5797b53d20d9a49a71be64736f6c634300080400330000000000000000000000003b7335f3f1771122cd0107416b1da1b2fb7e94dd
Deployed Bytecode
0x6080604052600436106100b15760003560e01c8063d2c1a6b411610069578063e75722301161004e578063e757223014610178578063f2fde38b146101a5578063f7d97577146101c557600080fd5b8063d2c1a6b414610142578063e322ad2b1461015557600080fd5b8063715018a61161009a578063715018a6146100e057806386f05f1d146100f55780638da5cb5b1461011557600080fd5b80633ccfd60b146100b65780634128ce11146100cd575b600080fd5b3480156100c257600080fd5b506100cb6101e5565b005b6100cb6100db366004610d45565b610281565b3480156100ec57600080fd5b506100cb61059c565b34801561010157600080fd5b506100cb610110366004610e2d565b610602565b34801561012157600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b6100cb610150366004610dda565b6107da565b34801561016157600080fd5b5061016a6109a7565b604051908152602001610139565b34801561018457600080fd5b5061016a610193366004610e8e565b60009081526002602052604090205490565b3480156101b157600080fd5b506100cb6101c0366004610d24565b610a09565b3480156101d157600080fd5b506100cb6101e0366004610ea6565b610aeb565b6000546001600160a01b031633146102445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600380546000918290556040513392839183156108fc0291849190818181858888f1935050505015801561027c573d6000803e3d6000fd5b505050565b81518351146102f85760405162461bcd60e51b815260206004820152603a60248201527f42324f4552433131353542757965723a20746f6b656e7349647320616e64206160448201527f6d6f756e7473206c656e67746820646f206e6f74206d61746368000000000000606482015260840161023b565b6000805b84518110156104a85760006002600087848151811061032b57634e487b7160e01b600052603260045260246000fd5b60200260200101518152602001908152602001600020541161038f5760405162461bcd60e51b815260206004820152601f60248201527f42324f4552433131353542757965723a2077726f6e6720746f6b656e20696400604482015260640161023b565b60058482815181106103b157634e487b7160e01b600052603260045260246000fd5b6020026020010151111561041d5760405162461bcd60e51b815260206004820152602d60248201527f42324f4552433131353542757965723a2063616e277420627579206d6f72652060448201526c7468616e203520746f6b656e7360981b606482015260840161023b565b83818151811061043d57634e487b7160e01b600052603260045260246000fd5b60200260200101516002600087848151811061046957634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000205461048a9190611036565b610494908361101e565b9150806104a081611055565b9150506102fc565b50803410156105055760405162461bcd60e51b8152602060048201526024808201527f42324f4552433131353542757965723a206e6f7420656e6f75676820455448206044820152631cd95b9d60e21b606482015260840161023b565b6001546001600160a01b0316632eb2c2d66105286000546001600160a01b031690565b878787876040518663ffffffff1660e01b815260040161054c959493929190610f4c565b600060405180830381600087803b15801561056657600080fd5b505af115801561057a573d6000803e3d6000fd5b505050503460036000828254610590919061101e565b90915550505050505050565b6000546001600160a01b031633146105f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161023b565b6106006000610bb2565b565b6000546001600160a01b0316331461065c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161023b565b80518251146106d35760405162461bcd60e51b815260206004820152603960248201527f42324f4552433131353542757965723a20746f6b656e7349647320616e64207060448201527f7269636573206c656e67746820646f206e6f74206d6174636800000000000000606482015260840161023b565b60005b825181101561027c57600082828151811061070157634e487b7160e01b600052603260045260246000fd5b6020026020010151116107615760405162461bcd60e51b815260206004820152602260248201527f42324f4552433131353542757965723a207072696365206d757374206265203e604482015261020360f41b606482015260840161023b565b81818151811061078157634e487b7160e01b600052603260045260246000fd5b6020026020010151600260008584815181106107ad57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555080806107d290611055565b9150506106d6565b6000838152600260205260409020546108355760405162461bcd60e51b815260206004820152601f60248201527f42324f4552433131353542757965723a2077726f6e6720746f6b656e20696400604482015260640161023b565b600582111561089c5760405162461bcd60e51b815260206004820152602d60248201527f42324f4552433131353542757965723a2063616e277420627579206d6f72652060448201526c7468616e203520746f6b656e7360981b606482015260840161023b565b6000838152600260205260409020546108b6908390611036565b3410156109115760405162461bcd60e51b8152602060048201526024808201527f42324f4552433131353542757965723a206e6f7420656e6f75676820455448206044820152631cd95b9d60e21b606482015260840161023b565b6001546001600160a01b031663f242432a6109346000546001600160a01b031690565b868686866040518663ffffffff1660e01b8152600401610958959493929190610faa565b600060405180830381600087803b15801561097257600080fd5b505af1158015610986573d6000803e3d6000fd5b50505050346003600082825461099c919061101e565b909155505050505050565b600080546001600160a01b03163314610a025760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161023b565b5060035490565b6000546001600160a01b03163314610a635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161023b565b6001600160a01b038116610adf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161023b565b610ae881610bb2565b50565b6000546001600160a01b03163314610b455760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161023b565b60008111610ba05760405162461bcd60e51b815260206004820152602260248201527f42324f4552433131353542757965723a207072696365206d757374206265203e604482015261020360f41b606482015260840161023b565b60009182526002602052604090912055565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610c3157600080fd5b919050565b600082601f830112610c46578081fd5b8135602067ffffffffffffffff821115610c6257610c62611086565b8160051b610c71828201610fed565b838152828101908684018388018501891015610c8b578687fd5b8693505b85841015610cad578035835260019390930192918401918401610c8f565b50979650505050505050565b600082601f830112610cc9578081fd5b813567ffffffffffffffff811115610ce357610ce3611086565b610cf6601f8201601f1916602001610fed565b818152846020838601011115610d0a578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215610d35578081fd5b610d3e82610c1a565b9392505050565b60008060008060808587031215610d5a578283fd5b610d6385610c1a565b9350602085013567ffffffffffffffff80821115610d7f578485fd5b610d8b88838901610c36565b94506040870135915080821115610da0578384fd5b610dac88838901610c36565b93506060870135915080821115610dc1578283fd5b50610dce87828801610cb9565b91505092959194509250565b60008060008060808587031215610def578384fd5b610df885610c1a565b93506020850135925060408501359150606085013567ffffffffffffffff811115610e21578182fd5b610dce87828801610cb9565b60008060408385031215610e3f578182fd5b823567ffffffffffffffff80821115610e56578384fd5b610e6286838701610c36565b93506020850135915080821115610e77578283fd5b50610e8485828601610c36565b9150509250929050565b600060208284031215610e9f578081fd5b5035919050565b60008060408385031215610eb8578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b83811015610ef657815187529582019590820190600101610eda565b509495945050505050565b60008151808452815b81811015610f2657602081850181015186830182015201610f0a565b81811115610f375782602083870101525b50601f01601f19169290920160200192915050565b60006001600160a01b03808816835280871660208401525060a06040830152610f7860a0830186610ec7565b8281036060840152610f8a8186610ec7565b90508281036080840152610f9e8185610f01565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152610fe260a0830184610f01565b979650505050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561101657611016611086565b604052919050565b6000821982111561103157611031611070565b500190565b600081600019048311821515161561105057611050611070565b500290565b600060001982141561106957611069611070565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212205ea6fa048525bc6e80926ba623e6a5705e11d6ffe94f5797b53d20d9a49a71be64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003b7335f3f1771122cd0107416b1da1b2fb7e94dd
-----Decoded View---------------
Arg [0] : erc1155Addr (address): 0x3B7335f3F1771122cd0107416b1DA1b2FB7E94dD
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003b7335f3f1771122cd0107416b1da1b2fb7e94dd
Loading...
Loading
Loading...
Loading
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.