Feature Tip: Add private address tag to any address under My Name Tag !
ERC-1155
Overview
Max Total Supply
72 BAPIRL
Holders
38
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BAPIRL
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./abstract/AbstractERC1155Factory.sol"; import "./library/Strings.sol"; import "./interface/BAPGenesisInterface.sol"; import "./interface/BAPOrchestratorInterfaceV3.sol"; /* * @title ERC1155 token for BAP Tickets Selling */ contract BAPIRL is AbstractERC1155Factory { using Strings for uint256; struct Event { // Max amount of tickets of the event uint256 maxSupply; // Max amount of tickets allowed to buy in a tx uint8 maxPerTx; // Max amount of tickets allowed to own in a wallet uint8 maxPerWallet; // Ticket price uint256 price; // Status to sell tickets or not // 0 - sale close - no one can buy // 1 - public sale - everybody can buy, no checks // 2 - only gods owner - only god owners can buy (you're currently checking) // 3 - only signature - only users with a valid signature uint8 status; } mapping(uint256 => Event) public events; mapping(address => mapping(uint256 => uint256)) public ticketsBought; uint256 public currentEventId = 0; // The last event id BAPGenesisInterface public bapGenesis; BAPOrchestratorInterfaceV3 public bapOrchestratorV3; // Verify Signature address public secret; event CreatedEvent( uint256 indexed eventId, uint256 maxSupply, uint8 maxPerTx, uint8 maxPerWallet, uint256 ticketPrice, uint8 status ); event Purchased( uint256 indexed index, address indexed account, uint256 amount ); constructor( string memory _name, string memory _symbol, string memory _uri, address _bapGenesis, address _bapOrchestratorV3 ) ERC1155(_uri) { name_ = _name; symbol_ = _symbol; bapGenesis = BAPGenesisInterface(_bapGenesis); bapOrchestratorV3 = BAPOrchestratorInterfaceV3(_bapOrchestratorV3); } modifier noZeroAddress(address _address) { require(_address != address(0), "200:ZERO_ADDRESS"); _; } modifier availableEvent(uint256 _id) { require(_id > 0 && _id <= currentEventId, "No exist event"); _; } /** * @notice set event id that can be minted * * @param _maxSupply the max amount of tickets in the event * @param _maxPerTx the new max amount of tickets allowed to buy in a tx * @param _maxPerWallet the new max amount of tickets allowed to own in a wallet * @param _ticketPrice the price of ticket * @param _status status of the event */ function createEvent( uint256 _maxSupply, uint8 _maxPerTx, uint8 _maxPerWallet, uint256 _ticketPrice, uint8 _status // 0: sale close, 1: public sale - everybody can buy, no checks, 2: only gods owner - only god owners can buy (you're currently checking), 3: only signature - only users with a valid signature ) external onlyOwner { require(_status < 4, "Wrong status value"); currentEventId++; events[currentEventId] = Event({ maxSupply: _maxSupply, maxPerTx: _maxPerTx, maxPerWallet: _maxPerWallet, price: _ticketPrice, status: _status }); emit CreatedEvent( currentEventId, _maxSupply, _maxPerTx, _maxPerWallet, _ticketPrice, _status ); } /** * @notice get event data */ function getEvent(uint256 eventId) public view availableEvent(eventId) returns (Event memory) { return events[eventId]; } /** * @notice edit the mint price * * @param _ticketPrice the new price in wei */ function setPrice(uint256 _eventId, uint256 _ticketPrice) external availableEvent(_eventId) onlyOwner { events[currentEventId].price = _ticketPrice; } /** * @notice edit sale restrictions * * @param _maxPerTx the new max amount of tokens allowed to buy in one tx * @param _maxPerWallet the new max amount of tokens allowed to own in a wallet */ function updateSaleRestrictions( uint256 _eventId, uint8 _maxPerTx, uint8 _maxPerWallet, uint8 _status ) external availableEvent(_eventId) onlyOwner { require(_status < 4, "Wrong status value"); events[_eventId].maxPerTx = _maxPerTx; events[_eventId].maxPerWallet = _maxPerWallet; events[_eventId].maxPerWallet = _status; } /** * @notice update Genesis Contract * * @param _newAddress the new Genesis contract address */ function setGenesisContract(address _newAddress) external onlyOwner noZeroAddress(_newAddress) { bapGenesis = BAPGenesisInterface(_newAddress); } /** * @notice update OrchestratorV3 Contract * * @param _newAddress the new OrchestratorV3 contract address */ function setOrchestratorV3Contract(address _newAddress) external onlyOwner noZeroAddress(_newAddress) { bapOrchestratorV3 = BAPOrchestratorInterfaceV3(_newAddress); } /** * @notice set new secret address to verify signature * * @param _secret the new secret address */ function setSecretAddress(address _secret) external onlyOwner noZeroAddress(_secret) { secret = _secret; } /** * @notice airdrop tickets * * @param account address to airdrop * @param amount the amount of cards to purchase */ function airdrop( uint256 eventId, address account, uint256 amount ) external availableEvent(eventId) whenNotPaused noZeroAddress(account) onlyOwner { require( totalSupply(eventId) + amount <= events[eventId].maxSupply, "Airdrop: Max supply reached" ); _mint(account, eventId, amount, ""); } /** * @notice purchase tickets * * @param godTokenId the genesis god token id * @param amount the amount of tokens to purchase */ function purchase( uint256 eventId, uint256 amount, uint256 godTokenId, bytes memory signature ) external payable availableEvent(eventId) whenNotPaused { require(events[eventId].status != 0, "Sale is close."); if (events[eventId].status == 2) { // 2: only gods owner - only god owners can buy (you're currently checking) // Verify token owner require( bapGenesis.ownerOf(godTokenId) == msg.sender, "Only token owner can purchase" ); // Verify god require( bapOrchestratorV3.godBulls(godTokenId), "Only god owner can purchase" // 3: only signature - only users with a valid signature ); } else if (events[eventId].status == 3) { require( _verifyHashSignature( keccak256(abi.encode(eventId, amount, msg.sender)), signature ), "Signature is invalid" ); } _purchase(eventId, amount); } /** * @notice global purchase function used in early access and public sale * * @param amount the amount of tokens to purchase */ function _purchase(uint256 eventId, uint256 amount) private { require( amount > 0 && amount <= events[eventId].maxPerTx, "Purchase: amount prohibited" ); require( ticketsBought[msg.sender][eventId] + amount <= events[eventId].maxPerWallet, "Purchase: balance is over." ); require( totalSupply(eventId) + amount <= events[eventId].maxSupply, "Purchase: Max supply reached" ); require( msg.value == amount * events[eventId].price, "Purchase: Incorrect payment" ); ticketsBought[msg.sender][eventId] += amount; _mint(msg.sender, eventId, amount, ""); emit Purchased(eventId, msg.sender, amount); } /** * @notice returns the metadata uri for a given id * * @param _id the card id to return metadata for */ function uri(uint256 _id) public view override returns (string memory) { require(exists(_id), "URI: nonexistent token"); return string(abi.encodePacked(super.uri(_id), _id.toString())); } function withdrawETH(address _address, uint256 amount) public nonReentrant noZeroAddress(_address) onlyOwner { require(amount <= address(this).balance, "Insufficient funds"); (bool success, ) = _address.call{value: amount}(""); require(success, "Unable to send eth"); } function _verifyHashSignature(bytes32 freshHash, bytes memory signature) internal view returns (bool) { bytes32 hash = keccak256( abi.encodePacked("\x19Ethereum Signed Message:\n32", freshHash) ); bytes32 r; bytes32 s; uint8 v; if (signature.length != 65) { return false; } assembly { r := mload(add(signature, 32)) s := mload(add(signature, 64)) v := byte(0, mload(add(signature, 96))) } if (v < 27) { v += 27; } address signer = address(0); if (v == 27 || v == 28) { // solium-disable-next-line arg-overflow signer = ecrecover(hash, v, r, s); } return secret == signer; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require( address(this).balance >= amount, "Address: insufficient balance" ); (bool success, ) = recipient.call{value: amount}(""); require( success, "Address: unable to send value, recipient may have reverted" ); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, "Address: low-level call with value failed" ); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require( address(this).balance >= value, "Address: insufficient balance for call" ); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}( data ); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall( target, data, "Address: low-level static call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall( target, data, "Address: low-level delegate call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /** * @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.9; import "./IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./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.9; interface BAPOrchestratorInterfaceV3 { function godBulls(uint256) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface BAPGenesisInterface { function minted() external view returns (uint256); function mintingDatetime(uint256) external view returns (uint256); function updateBullBreedings(uint256) external; function ownerOf(uint256) external view returns (address); function breedings(uint256) external view returns (uint256); function maxBreedings() external view returns (uint256); function generateGodBull() external; function refund(address, uint256) external payable; function safeTransferFrom( address, address, uint256 ) external; function genesisTimestamp() external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 pragma solidity ^0.8.9; import "../interface/IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "../ERC1155.sol"; /** * @dev Extension of ERC1155 that adds tracking of total supply per id. * * Useful for scenarios where Fungible and Non-fungible tokens have to be * clearly identified. Note: While a totalSupply of 1 might mean the * corresponding is an NFT, there is no guarantees that no other token with the * same id are not going to be minted. */ abstract contract ERC1155Supply is ERC1155 { mapping(uint256 => uint256) private _totalSupply; /** * @dev Total amount of tokens in with a given id. */ function totalSupply(uint256 id) public view virtual returns (uint256) { return _totalSupply[id]; } /** * @dev Indicates whether any token exist with a given id, or not. */ function exists(uint256 id) public view virtual returns (bool) { return ERC1155Supply.totalSupply(id) > 0; } /** * @dev See {ERC1155-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if (to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./Pausable.sol"; import "./ReentrancyGuard.sol"; import "./ERC1155Supply.sol"; import "./Ownable.sol"; abstract contract AbstractERC1155Factory is Pausable, ReentrancyGuard, ERC1155Supply, Ownable { string name_; string symbol_; function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function setURI(string memory baseURI) external onlyOwner { _setURI(baseURI); } function name() public view returns (string memory) { return name_; } function symbol() public view returns (string memory) { return symbol_; } function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./abstract/Context.sol"; import "./abstract/ERC165.sol"; import "./interface/IERC1155.sol"; import "./interface/IERC1155MetadataURI.sol"; import "./interface/IERC1155Receiver.sol"; import "./library/Address.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require( account != address(0), "ERC1155: balance query for the zero address" ); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require( accounts.length == ids.length, "ERC1155: accounts and ids length mismatch" ); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `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 memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer( operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data ); uint256 fromBalance = _balances[id][from]; require( fromBalance >= amount, "ERC1155: insufficient balance for transfer" ); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - 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[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require( ids.length == amounts.length, "ERC1155: ids and amounts length mismatch" ); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require( fromBalance >= amount, "ERC1155: insufficient balance for transfer" ); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck( operator, from, to, ids, amounts, data ); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer( operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data ); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck( operator, address(0), to, id, amount, data ); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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 _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require( ids.length == amounts.length, "ERC1155: ids and amounts length mismatch" ); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck( operator, address(0), to, ids, amounts, data ); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer( operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "" ); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require( ids.length == amounts.length, "ERC1155: ids and amounts length mismatch" ); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require( fromBalance >= amount, "ERC1155: burn amount exceeds balance" ); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received( operator, from, id, amount, data ) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived( operator, from, ids, amounts, data ) returns (bytes4 response) { if ( response != IERC1155Receiver.onERC1155BatchReceived.selector ) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"address","name":"_bapGenesis","type":"address"},{"internalType":"address","name":"_bapOrchestratorV3","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"eventId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxSupply","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"maxPerTx","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"maxPerWallet","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"ticketPrice","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"status","type":"uint8"}],"name":"CreatedEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Purchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"eventId","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bapGenesis","outputs":[{"internalType":"contract BAPGenesisInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bapOrchestratorV3","outputs":[{"internalType":"contract BAPOrchestratorInterfaceV3","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint8","name":"_maxPerTx","type":"uint8"},{"internalType":"uint8","name":"_maxPerWallet","type":"uint8"},{"internalType":"uint256","name":"_ticketPrice","type":"uint256"},{"internalType":"uint8","name":"_status","type":"uint8"}],"name":"createEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentEventId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"events","outputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint8","name":"maxPerTx","type":"uint8"},{"internalType":"uint8","name":"maxPerWallet","type":"uint8"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint8","name":"status","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"eventId","type":"uint256"}],"name":"getEvent","outputs":[{"components":[{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint8","name":"maxPerTx","type":"uint8"},{"internalType":"uint8","name":"maxPerWallet","type":"uint8"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint8","name":"status","type":"uint8"}],"internalType":"struct BAPIRL.Event","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"eventId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"godTokenId","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"secret","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"setGenesisContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"setOrchestratorV3Contract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_eventId","type":"uint256"},{"internalType":"uint256","name":"_ticketPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_secret","type":"address"}],"name":"setSecretAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"ticketsBought","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_eventId","type":"uint256"},{"internalType":"uint8","name":"_maxPerTx","type":"uint8"},{"internalType":"uint8","name":"_maxPerWallet","type":"uint8"},{"internalType":"uint8","name":"_status","type":"uint8"}],"name":"updateSaleRestrictions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600b553480156200001657600080fd5b50604051620036cb380380620036cb8339810160408190526200003991620002bc565b6000805460ff1916905560018055826200005381620000c1565b506200005f33620000da565b8451620000749060079060208801906200012c565b5083516200008a9060089060208701906200012c565b50600c80546001600160a01b039384166001600160a01b031991821617909155600d805492909316911617905550620003b0915050565b8051620000d69060049060208401906200012c565b5050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200013a9062000373565b90600052602060002090601f0160209004810192826200015e5760008555620001a9565b82601f106200017957805160ff1916838001178555620001a9565b82800160010185558215620001a9579182015b82811115620001a95782518255916020019190600101906200018c565b50620001b7929150620001bb565b5090565b5b80821115620001b75760008155600101620001bc565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001fa57600080fd5b81516001600160401b0380821115620002175762000217620001d2565b604051601f8301601f19908116603f01168101908282118183101715620002425762000242620001d2565b816040528381526020925086838588010111156200025f57600080fd5b600091505b8382101562000283578582018301518183018401529082019062000264565b83821115620002955760008385830101525b9695505050505050565b80516001600160a01b0381168114620002b757600080fd5b919050565b600080600080600060a08688031215620002d557600080fd5b85516001600160401b0380821115620002ed57600080fd5b620002fb89838a01620001e8565b965060208801519150808211156200031257600080fd5b6200032089838a01620001e8565b955060408801519150808211156200033757600080fd5b506200034688828901620001e8565b93505062000357606087016200029f565b915062000367608087016200029f565b90509295509295909350565b600181811c908216806200038857607f821691505b60208210811415620003aa57634e487b7160e01b600052602260045260246000fd5b50919050565b61330b80620003c06000396000f3fe6080604052600436106102035760003560e01c80636c07e3e611610118578063d1efd30d116100a0578063ef13c7a41161006f578063ef13c7a4146106cd578063f242432a146106ed578063f2f0ce741461070d578063f2fde38b1461072d578063f7d975771461074d57600080fd5b8063d1efd30d14610624578063dec7d65414610644578063e985e9c514610664578063ed1f312a146106ad57600080fd5b80638456cb59116100e75780638456cb591461058f5780638da5cb5b146105a457806395d89b41146105c2578063a22cb465146105d7578063bd85b039146105f757600080fd5b80636c07e3e6146104b75780636d1884e0146104ef578063715018a61461055a57806371faf9351461056f57600080fd5b80632eb2c2d61161019b5780634782f7791161016a5780634782f779146104105780634c474434146104305780634e1273f4146104435780634f558e79146104705780635c975abb1461049f57600080fd5b80632eb2c2d61461039b57806336dd252a146103bb57806338783d73146103db5780633f4ba83a146103fb57600080fd5b8063091dbbd7116101d7578063091dbbd7146102af5780630b791430146102c55780630e89341c146103435780631c4b772e1461036357600080fd5b8062fdd58e1461020857806301ffc9a71461023b57806302fe53051461026b57806306fdde031461028d575b600080fd5b34801561021457600080fd5b50610228610223366004612764565b61076d565b6040519081526020015b60405180910390f35b34801561024757600080fd5b5061025b6102563660046127a6565b610809565b6040519015158152602001610232565b34801561027757600080fd5b5061028b61028636600461286b565b610859565b005b34801561029957600080fd5b506102a261088f565b6040516102329190612910565b3480156102bb57600080fd5b50610228600b5481565b3480156102d157600080fd5b506103156102e0366004612923565b6009602052600090815260409020805460018201546002830154600390930154919260ff808316936101009093048116921685565b6040805195865260ff948516602087015292841692850192909252606084015216608082015260a001610232565b34801561034f57600080fd5b506102a261035e366004612923565b610921565b34801561036f57600080fd5b50600d54610383906001600160a01b031681565b6040516001600160a01b039091168152602001610232565b3480156103a757600080fd5b5061028b6103b63660046129f1565b6109b1565b3480156103c757600080fd5b5061028b6103d6366004612ab5565b610a48565b3480156103e757600080fd5b50600c54610383906001600160a01b031681565b34801561040757600080fd5b5061028b610bb1565b34801561041c57600080fd5b5061028b61042b366004612764565b610be5565b61028b61043e366004612b0c565b610d75565b34801561044f57600080fd5b5061046361045e366004612b66565b61105b565b6040516102329190612c6e565b34801561047c57600080fd5b5061025b61048b366004612923565b600090815260056020526040902054151590565b3480156104ab57600080fd5b5060005460ff1661025b565b3480156104c357600080fd5b506102286104d2366004612764565b600a60209081526000928352604080842090915290825290205481565b3480156104fb57600080fd5b5061050f61050a366004612923565b611185565b6040516102329190600060a0820190508251825260ff602084015116602083015260ff60408401511660408301526060830151606083015260ff608084015116608083015292915050565b34801561056657600080fd5b5061028b611239565b34801561057b57600080fd5b5061028b61058a366004612c81565b61126d565b34801561059b57600080fd5b5061028b6112e1565b3480156105b057600080fd5b506006546001600160a01b0316610383565b3480156105ce57600080fd5b506102a2611313565b3480156105e357600080fd5b5061028b6105f2366004612cac565b611322565b34801561060357600080fd5b50610228610612366004612923565b60009081526005602052604090205490565b34801561063057600080fd5b50600e54610383906001600160a01b031681565b34801561065057600080fd5b5061028b61065f366004612c81565b611331565b34801561067057600080fd5b5061025b61067f366004612ce5565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b3480156106b957600080fd5b5061028b6106c8366004612d13565b6113a5565b3480156106d957600080fd5b5061028b6106e8366004612d60565b611487565b3480156106f957600080fd5b5061028b610708366004612d98565b6115b9565b34801561071957600080fd5b5061028b610728366004612c81565b611640565b34801561073957600080fd5b5061028b610748366004612c81565b6116b4565b34801561075957600080fd5b5061028b610768366004612e01565b61174c565b60006001600160a01b0383166107de5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061083a57506001600160e01b031982166303a24d0760e21b145b8061080357506301ffc9a760e01b6001600160e01b0319831614610803565b6006546001600160a01b031633146108835760405162461bcd60e51b81526004016107d590612e23565b61088c816117be565b50565b60606007805461089e90612e58565b80601f01602080910402602001604051908101604052809291908181526020018280546108ca90612e58565b80156109175780601f106108ec57610100808354040283529160200191610917565b820191906000526020600020905b8154815290600101906020018083116108fa57829003601f168201915b5050505050905090565b6000818152600560205260409020546060906109785760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b60448201526064016107d5565b610981826117d1565b61098a83611865565b60405160200161099b929190612e8d565b6040516020818303038152906040529050919050565b6001600160a01b0385163314806109cd57506109cd853361067f565b610a345760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107d5565b610a41858585858561196b565b5050505050565b6006546001600160a01b03163314610a725760405162461bcd60e51b81526004016107d590612e23565b60048160ff1610610aba5760405162461bcd60e51b815260206004820152601260248201527157726f6e67207374617475732076616c756560701b60448201526064016107d5565b600b8054906000610aca83612ed2565b90915550506040805160a0808201835287825260ff878116602080850182815289841686880181815260608089018c81528b88166080808c01828152600b8054600090815260098b528f90209d518e55975160018e0180549751918d1661ffff1990981697909717610100918d169190910217909555915160028c015592516003909a01805460ff19169a90981699909917909655915488518e815293840194909452828801529281018890529384019190915292517f20e4cdfe46e2b1be9e0bcca2dba8d9ad9e6c81f8f59c6d0ef364641303bc99e49281900390910190a25050505050565b6006546001600160a01b03163314610bdb5760405162461bcd60e51b81526004016107d590612e23565b610be3611b59565b565b60026001541415610c385760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107d5565b6002600155816001600160a01b038116610c645760405162461bcd60e51b81526004016107d590612eed565b6006546001600160a01b03163314610c8e5760405162461bcd60e51b81526004016107d590612e23565b47821115610cd35760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016107d5565b6000836001600160a01b03168360405160006040518083038185875af1925050503d8060008114610d20576040519150601f19603f3d011682016040523d82523d6000602084013e610d25565b606091505b5050905080610d6b5760405162461bcd60e51b81526020600482015260126024820152710aadcc2c4d8ca40e8de40e6cadcc840cae8d60731b60448201526064016107d5565b5050600180555050565b83600081118015610d885750600b548111155b610da45760405162461bcd60e51b81526004016107d590612f17565b60005460ff1615610dc75760405162461bcd60e51b81526004016107d590612f3f565b60008581526009602052604090206003015460ff16610e195760405162461bcd60e51b815260206004820152600e60248201526d29b0b6329034b99031b637b9b29760911b60448201526064016107d5565b60008581526009602052604090206003015460ff1660021415610fb757600c546040516331a9108f60e11b81526004810185905233916001600160a01b031690636352211e90602401602060405180830381865afa158015610e7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea39190612f69565b6001600160a01b031614610ef95760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c7920746f6b656e206f776e65722063616e20707572636861736500000060448201526064016107d5565b600d546040516361bd5b2360e11b8152600481018590526001600160a01b039091169063c37ab64690602401602060405180830381865afa158015610f42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f669190612f86565b610fb25760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c7920676f64206f776e65722063616e207075726368617365000000000060448201526064016107d5565b611051565b600085815260096020526040902060039081015460ff16141561105157604080516020810187905290810185905233606082015261100e906080016040516020818303038152906040528051906020012083611bec565b6110515760405162461bcd60e51b815260206004820152601460248201527314da59db985d1d5c99481a5cc81a5b9d985b1a5960621b60448201526064016107d5565b610a418585611d1b565b606081518351146110c05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107d5565b6000835167ffffffffffffffff8111156110dc576110dc6127ca565b604051908082528060200260200182016040528015611105578160200160208202803683370190505b50905060005b845181101561117d5761115085828151811061112957611129612fa3565b602002602001015185838151811061114357611143612fa3565b602002602001015161076d565b82828151811061116257611162612fa3565b602090810291909101015261117681612ed2565b905061110b565b509392505050565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152816000811180156111c35750600b548111155b6111df5760405162461bcd60e51b81526004016107d590612f17565b600083815260096020908152604091829020825160a08101845281548152600182015460ff808216948301949094526101009004831693810193909352600281015460608401526003015416608082015291505b50919050565b6006546001600160a01b031633146112635760405162461bcd60e51b81526004016107d590612e23565b610be36000611f7c565b6006546001600160a01b031633146112975760405162461bcd60e51b81526004016107d590612e23565b806001600160a01b0381166112be5760405162461bcd60e51b81526004016107d590612eed565b50600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b0316331461130b5760405162461bcd60e51b81526004016107d590612e23565b610be3611fce565b60606008805461089e90612e58565b61132d338383612026565b5050565b6006546001600160a01b0316331461135b5760405162461bcd60e51b81526004016107d590612e23565b806001600160a01b0381166113825760405162461bcd60e51b81526004016107d590612eed565b50600e80546001600160a01b0319166001600160a01b0392909216919091179055565b836000811180156113b85750600b548111155b6113d45760405162461bcd60e51b81526004016107d590612f17565b6006546001600160a01b031633146113fe5760405162461bcd60e51b81526004016107d590612e23565b60048260ff16106114465760405162461bcd60e51b815260206004820152601260248201527157726f6e67207374617475732076616c756560701b60448201526064016107d5565b50600093845260096020526040909320600101805460ff9485166101009081029386160261ffff1990911694909316939093179190911761ff001916179055565b8260008111801561149a5750600b548111155b6114b65760405162461bcd60e51b81526004016107d590612f17565b60005460ff16156114d95760405162461bcd60e51b81526004016107d590612f3f565b826001600160a01b0381166115005760405162461bcd60e51b81526004016107d590612eed565b6006546001600160a01b0316331461152a5760405162461bcd60e51b81526004016107d590612e23565b600085815260096020908152604080832054600590925290912054611550908590612fb9565b111561159e5760405162461bcd60e51b815260206004820152601b60248201527f41697264726f703a204d617820737570706c792072656163686564000000000060448201526064016107d5565b610a4184868560405180602001604052806000815250612107565b6001600160a01b0385163314806115d557506115d5853361067f565b6116335760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107d5565b610a418585858585612219565b6006546001600160a01b0316331461166a5760405162461bcd60e51b81526004016107d590612e23565b806001600160a01b0381166116915760405162461bcd60e51b81526004016107d590612eed565b50600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146116de5760405162461bcd60e51b81526004016107d590612e23565b6001600160a01b0381166117435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107d5565b61088c81611f7c565b8160008111801561175f5750600b548111155b61177b5760405162461bcd60e51b81526004016107d590612f17565b6006546001600160a01b031633146117a55760405162461bcd60e51b81526004016107d590612e23565b50600b5460009081526009602052604090206002015550565b805161132d9060049060208401906126b6565b6060600480546117e090612e58565b80601f016020809104026020016040519081016040528092919081815260200182805461180c90612e58565b80156118595780601f1061182e57610100808354040283529160200191611859565b820191906000526020600020905b81548152906001019060200180831161183c57829003601f168201915b50505050509050919050565b6060816118895750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118b3578061189d81612ed2565b91506118ac9050600a83612fe7565b915061188d565b60008167ffffffffffffffff8111156118ce576118ce6127ca565b6040519080825280601f01601f1916602001820160405280156118f8576020820181803683370190505b5090505b84156119635761190d600183612ffb565b915061191a600a86613012565b611925906030612fb9565b60f81b81838151811061193a5761193a612fa3565b60200101906001600160f81b031916908160001a90535061195c600a86612fe7565b94506118fc565b949350505050565b81518351146119cd5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016107d5565b6001600160a01b0384166119f35760405162461bcd60e51b81526004016107d590613026565b33611a0281878787878761233a565b60005b8451811015611aeb576000858281518110611a2257611a22612fa3565b602002602001015190506000858381518110611a4057611a40612fa3565b60209081029190910181015160008481526002835260408082206001600160a01b038e168352909352919091205490915081811015611a915760405162461bcd60e51b81526004016107d59061306b565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611ad0908490612fb9565b9250508190555050505080611ae490612ed2565b9050611a05565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b3b9291906130b5565b60405180910390a4611b51818787878787612348565b505050505050565b60005460ff16611ba25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107d5565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c0160405160208183030381529060405280519060200120905060008060008551604114611c57576000945050505050610803565b50505060208301516040840151606085015160001a601b811015611c8357611c80601b826130e3565b90505b60008160ff16601b1480611c9a57508160ff16601c145b15611cff5760408051600081526020810180835287905260ff841691810191909152606081018590526080810184905260019060a0016020604051602081039080840390855afa158015611cf2573d6000803e3d6000fd5b5050506020604051035190505b600e546001600160a01b03918216911614979650505050505050565b600081118015611d3f575060008281526009602052604090206001015460ff168111155b611d8b5760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20616d6f756e742070726f68696269746564000000000060448201526064016107d5565b600082815260096020908152604080832060010154338452600a83528184208685529092529091205461010090910460ff1690611dc9908390612fb9565b1115611e175760405162461bcd60e51b815260206004820152601a60248201527f50757263686173653a2062616c616e6365206973206f7665722e00000000000060448201526064016107d5565b600082815260096020908152604080832054600590925290912054611e3d908390612fb9565b1115611e8b5760405162461bcd60e51b815260206004820152601c60248201527f50757263686173653a204d617820737570706c7920726561636865640000000060448201526064016107d5565b600082815260096020526040902060020154611ea79082613108565b3414611ef55760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20496e636f7272656374207061796d656e74000000000060448201526064016107d5565b336000908152600a6020908152604080832085845290915281208054839290611f1f908490612fb9565b92505081905550611f4133838360405180602001604052806000815250612107565b604051818152339083907ffd51b2c9f55c42d2b72ac683526519563be02fc0107f034ff430c05185ff1b669060200160405180910390a35050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005460ff1615611ff15760405162461bcd60e51b81526004016107d590612f3f565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bcf3390565b816001600160a01b0316836001600160a01b0316141561209a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107d5565b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166121675760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016107d5565b3361218781600087612178886124a4565b612181886124a4565b8761233a565b60008481526002602090815260408083206001600160a01b0389168452909152812080548592906121b9908490612fb9565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a41816000878787876124ef565b6001600160a01b03841661223f5760405162461bcd60e51b81526004016107d590613026565b3361224f818787612178886124a4565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156122925760405162461bcd60e51b81526004016107d59061306b565b60008581526002602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906122d1908490612fb9565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46123318288888888886124ef565b50505050505050565b611b518686868686866125aa565b6001600160a01b0384163b15611b515760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061238c9089908990889088908890600401613127565b6020604051808303816000875af19250505080156123c7575060408051601f3d908101601f191682019092526123c491810190613185565b60015b612474576123d36131a2565b806308c379a0141561240d57506123e86131be565b806123f3575061240f565b8060405162461bcd60e51b81526004016107d59190612910565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107d5565b6001600160e01b0319811663bc197c8160e01b146123315760405162461bcd60e51b81526004016107d590613248565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106124de576124de612fa3565b602090810291909101015292915050565b6001600160a01b0384163b15611b515760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906125339089908990889088908890600401613290565b6020604051808303816000875af192505050801561256e575060408051601f3d908101601f1916820190925261256b91810190613185565b60015b61257a576123d36131a2565b6001600160e01b0319811663f23a6e6160e01b146123315760405162461bcd60e51b81526004016107d590613248565b6001600160a01b0385166126315760005b835181101561262f578281815181106125d6576125d6612fa3565b6020026020010151600560008684815181106125f4576125f4612fa3565b6020026020010151815260200190815260200160002060008282546126199190612fb9565b90915550612628905081612ed2565b90506125bb565b505b6001600160a01b038416611b515760005b83518110156123315782818151811061265d5761265d612fa3565b60200260200101516005600086848151811061267b5761267b612fa3565b6020026020010151815260200190815260200160002060008282546126a09190612ffb565b909155506126af905081612ed2565b9050612642565b8280546126c290612e58565b90600052602060002090601f0160209004810192826126e4576000855561272a565b82601f106126fd57805160ff191683800117855561272a565b8280016001018555821561272a579182015b8281111561272a57825182559160200191906001019061270f565b5061273692915061273a565b5090565b5b80821115612736576000815560010161273b565b6001600160a01b038116811461088c57600080fd5b6000806040838503121561277757600080fd5b82356127828161274f565b946020939093013593505050565b6001600160e01b03198116811461088c57600080fd5b6000602082840312156127b857600080fd5b81356127c381612790565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612806576128066127ca565b6040525050565b600067ffffffffffffffff831115612827576128276127ca565b60405161283e601f8501601f1916602001826127e0565b80915083815284848401111561285357600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561287d57600080fd5b813567ffffffffffffffff81111561289457600080fd5b8201601f810184136128a557600080fd5b6119638482356020840161280d565b60005b838110156128cf5781810151838201526020016128b7565b838111156128de576000848401525b50505050565b600081518084526128fc8160208601602086016128b4565b601f01601f19169290920160200192915050565b6020815260006127c360208301846128e4565b60006020828403121561293557600080fd5b5035919050565b600067ffffffffffffffff821115612956576129566127ca565b5060051b60200190565b600082601f83011261297157600080fd5b8135602061297e8261293c565b60405161298b82826127e0565b83815260059390931b85018201928281019150868411156129ab57600080fd5b8286015b848110156129c657803583529183019183016129af565b509695505050505050565b600082601f8301126129e257600080fd5b6127c38383356020850161280d565b600080600080600060a08688031215612a0957600080fd5b8535612a148161274f565b94506020860135612a248161274f565b9350604086013567ffffffffffffffff80821115612a4157600080fd5b612a4d89838a01612960565b94506060880135915080821115612a6357600080fd5b612a6f89838a01612960565b93506080880135915080821115612a8557600080fd5b50612a92888289016129d1565b9150509295509295909350565b803560ff81168114612ab057600080fd5b919050565b600080600080600060a08688031215612acd57600080fd5b85359450612add60208701612a9f565b9350612aeb60408701612a9f565b925060608601359150612b0060808701612a9f565b90509295509295909350565b60008060008060808587031215612b2257600080fd5b843593506020850135925060408501359150606085013567ffffffffffffffff811115612b4e57600080fd5b612b5a878288016129d1565b91505092959194509250565b60008060408385031215612b7957600080fd5b823567ffffffffffffffff80821115612b9157600080fd5b818501915085601f830112612ba557600080fd5b81356020612bb28261293c565b604051612bbf82826127e0565b83815260059390931b8501820192828101915089841115612bdf57600080fd5b948201945b83861015612c06578535612bf78161274f565b82529482019490820190612be4565b96505086013592505080821115612c1c57600080fd5b50612c2985828601612960565b9150509250929050565b600081518084526020808501945080840160005b83811015612c6357815187529582019590820190600101612c47565b509495945050505050565b6020815260006127c36020830184612c33565b600060208284031215612c9357600080fd5b81356127c38161274f565b801515811461088c57600080fd5b60008060408385031215612cbf57600080fd5b8235612cca8161274f565b91506020830135612cda81612c9e565b809150509250929050565b60008060408385031215612cf857600080fd5b8235612d038161274f565b91506020830135612cda8161274f565b60008060008060808587031215612d2957600080fd5b84359350612d3960208601612a9f565b9250612d4760408601612a9f565b9150612d5560608601612a9f565b905092959194509250565b600080600060608486031215612d7557600080fd5b833592506020840135612d878161274f565b929592945050506040919091013590565b600080600080600060a08688031215612db057600080fd5b8535612dbb8161274f565b94506020860135612dcb8161274f565b93506040860135925060608601359150608086013567ffffffffffffffff811115612df557600080fd5b612a92888289016129d1565b60008060408385031215612e1457600080fd5b50508035926020909101359150565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612e6c57607f821691505b6020821081141561123357634e487b7160e01b600052602260045260246000fd5b60008351612e9f8184602088016128b4565b835190830190612eb38183602088016128b4565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612ee657612ee6612ebc565b5060010190565b60208082526010908201526f3230303a5a45524f5f4144445245535360801b604082015260600190565b6020808252600e908201526d139bc8195e1a5cdd08195d995b9d60921b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b600060208284031215612f7b57600080fd5b81516127c38161274f565b600060208284031215612f9857600080fd5b81516127c381612c9e565b634e487b7160e01b600052603260045260246000fd5b60008219821115612fcc57612fcc612ebc565b500190565b634e487b7160e01b600052601260045260246000fd5b600082612ff657612ff6612fd1565b500490565b60008282101561300d5761300d612ebc565b500390565b60008261302157613021612fd1565b500690565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006130c86040830185612c33565b82810360208401526130da8185612c33565b95945050505050565b600060ff821660ff84168060ff0382111561310057613100612ebc565b019392505050565b600081600019048311821515161561312257613122612ebc565b500290565b6001600160a01b0386811682528516602082015260a06040820181905260009061315390830186612c33565b82810360608401526131658186612c33565b9050828103608084015261317981856128e4565b98975050505050505050565b60006020828403121561319757600080fd5b81516127c381612790565b600060033d11156131bb5760046000803e5060005160e01c5b90565b600060443d10156131cc5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156131fc57505050505090565b82850191508151818111156132145750505050505090565b843d870101602082850101111561322e5750505050505090565b61323d602082860101876127e0565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906132ca908301846128e4565b97965050505050505056fea2646970667358221220d2e8fc25d0694e61d43c5a1a186266e4b2ee6d56f203367aa359b944faa15d7064736f6c634300080c003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000002cf6be9aac1c7630d5a23af88c28275c70eb88190000000000000000000000004afd163f281ed126cb07eaf99f52d8a083e135e3000000000000000000000000000000000000000000000000000000000000000642415049524c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000642415049524c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003468747470733a2f2f73746f726167652e6d696e742e62756c6c73616e646170657370726f6a6563742e636f6d2f6576656e74732f000000000000000000000000
Deployed Bytecode
0x6080604052600436106102035760003560e01c80636c07e3e611610118578063d1efd30d116100a0578063ef13c7a41161006f578063ef13c7a4146106cd578063f242432a146106ed578063f2f0ce741461070d578063f2fde38b1461072d578063f7d975771461074d57600080fd5b8063d1efd30d14610624578063dec7d65414610644578063e985e9c514610664578063ed1f312a146106ad57600080fd5b80638456cb59116100e75780638456cb591461058f5780638da5cb5b146105a457806395d89b41146105c2578063a22cb465146105d7578063bd85b039146105f757600080fd5b80636c07e3e6146104b75780636d1884e0146104ef578063715018a61461055a57806371faf9351461056f57600080fd5b80632eb2c2d61161019b5780634782f7791161016a5780634782f779146104105780634c474434146104305780634e1273f4146104435780634f558e79146104705780635c975abb1461049f57600080fd5b80632eb2c2d61461039b57806336dd252a146103bb57806338783d73146103db5780633f4ba83a146103fb57600080fd5b8063091dbbd7116101d7578063091dbbd7146102af5780630b791430146102c55780630e89341c146103435780631c4b772e1461036357600080fd5b8062fdd58e1461020857806301ffc9a71461023b57806302fe53051461026b57806306fdde031461028d575b600080fd5b34801561021457600080fd5b50610228610223366004612764565b61076d565b6040519081526020015b60405180910390f35b34801561024757600080fd5b5061025b6102563660046127a6565b610809565b6040519015158152602001610232565b34801561027757600080fd5b5061028b61028636600461286b565b610859565b005b34801561029957600080fd5b506102a261088f565b6040516102329190612910565b3480156102bb57600080fd5b50610228600b5481565b3480156102d157600080fd5b506103156102e0366004612923565b6009602052600090815260409020805460018201546002830154600390930154919260ff808316936101009093048116921685565b6040805195865260ff948516602087015292841692850192909252606084015216608082015260a001610232565b34801561034f57600080fd5b506102a261035e366004612923565b610921565b34801561036f57600080fd5b50600d54610383906001600160a01b031681565b6040516001600160a01b039091168152602001610232565b3480156103a757600080fd5b5061028b6103b63660046129f1565b6109b1565b3480156103c757600080fd5b5061028b6103d6366004612ab5565b610a48565b3480156103e757600080fd5b50600c54610383906001600160a01b031681565b34801561040757600080fd5b5061028b610bb1565b34801561041c57600080fd5b5061028b61042b366004612764565b610be5565b61028b61043e366004612b0c565b610d75565b34801561044f57600080fd5b5061046361045e366004612b66565b61105b565b6040516102329190612c6e565b34801561047c57600080fd5b5061025b61048b366004612923565b600090815260056020526040902054151590565b3480156104ab57600080fd5b5060005460ff1661025b565b3480156104c357600080fd5b506102286104d2366004612764565b600a60209081526000928352604080842090915290825290205481565b3480156104fb57600080fd5b5061050f61050a366004612923565b611185565b6040516102329190600060a0820190508251825260ff602084015116602083015260ff60408401511660408301526060830151606083015260ff608084015116608083015292915050565b34801561056657600080fd5b5061028b611239565b34801561057b57600080fd5b5061028b61058a366004612c81565b61126d565b34801561059b57600080fd5b5061028b6112e1565b3480156105b057600080fd5b506006546001600160a01b0316610383565b3480156105ce57600080fd5b506102a2611313565b3480156105e357600080fd5b5061028b6105f2366004612cac565b611322565b34801561060357600080fd5b50610228610612366004612923565b60009081526005602052604090205490565b34801561063057600080fd5b50600e54610383906001600160a01b031681565b34801561065057600080fd5b5061028b61065f366004612c81565b611331565b34801561067057600080fd5b5061025b61067f366004612ce5565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205460ff1690565b3480156106b957600080fd5b5061028b6106c8366004612d13565b6113a5565b3480156106d957600080fd5b5061028b6106e8366004612d60565b611487565b3480156106f957600080fd5b5061028b610708366004612d98565b6115b9565b34801561071957600080fd5b5061028b610728366004612c81565b611640565b34801561073957600080fd5b5061028b610748366004612c81565b6116b4565b34801561075957600080fd5b5061028b610768366004612e01565b61174c565b60006001600160a01b0383166107de5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526002602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061083a57506001600160e01b031982166303a24d0760e21b145b8061080357506301ffc9a760e01b6001600160e01b0319831614610803565b6006546001600160a01b031633146108835760405162461bcd60e51b81526004016107d590612e23565b61088c816117be565b50565b60606007805461089e90612e58565b80601f01602080910402602001604051908101604052809291908181526020018280546108ca90612e58565b80156109175780601f106108ec57610100808354040283529160200191610917565b820191906000526020600020905b8154815290600101906020018083116108fa57829003601f168201915b5050505050905090565b6000818152600560205260409020546060906109785760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b60448201526064016107d5565b610981826117d1565b61098a83611865565b60405160200161099b929190612e8d565b6040516020818303038152906040529050919050565b6001600160a01b0385163314806109cd57506109cd853361067f565b610a345760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107d5565b610a41858585858561196b565b5050505050565b6006546001600160a01b03163314610a725760405162461bcd60e51b81526004016107d590612e23565b60048160ff1610610aba5760405162461bcd60e51b815260206004820152601260248201527157726f6e67207374617475732076616c756560701b60448201526064016107d5565b600b8054906000610aca83612ed2565b90915550506040805160a0808201835287825260ff878116602080850182815289841686880181815260608089018c81528b88166080808c01828152600b8054600090815260098b528f90209d518e55975160018e0180549751918d1661ffff1990981697909717610100918d169190910217909555915160028c015592516003909a01805460ff19169a90981699909917909655915488518e815293840194909452828801529281018890529384019190915292517f20e4cdfe46e2b1be9e0bcca2dba8d9ad9e6c81f8f59c6d0ef364641303bc99e49281900390910190a25050505050565b6006546001600160a01b03163314610bdb5760405162461bcd60e51b81526004016107d590612e23565b610be3611b59565b565b60026001541415610c385760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107d5565b6002600155816001600160a01b038116610c645760405162461bcd60e51b81526004016107d590612eed565b6006546001600160a01b03163314610c8e5760405162461bcd60e51b81526004016107d590612e23565b47821115610cd35760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016107d5565b6000836001600160a01b03168360405160006040518083038185875af1925050503d8060008114610d20576040519150601f19603f3d011682016040523d82523d6000602084013e610d25565b606091505b5050905080610d6b5760405162461bcd60e51b81526020600482015260126024820152710aadcc2c4d8ca40e8de40e6cadcc840cae8d60731b60448201526064016107d5565b5050600180555050565b83600081118015610d885750600b548111155b610da45760405162461bcd60e51b81526004016107d590612f17565b60005460ff1615610dc75760405162461bcd60e51b81526004016107d590612f3f565b60008581526009602052604090206003015460ff16610e195760405162461bcd60e51b815260206004820152600e60248201526d29b0b6329034b99031b637b9b29760911b60448201526064016107d5565b60008581526009602052604090206003015460ff1660021415610fb757600c546040516331a9108f60e11b81526004810185905233916001600160a01b031690636352211e90602401602060405180830381865afa158015610e7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea39190612f69565b6001600160a01b031614610ef95760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c7920746f6b656e206f776e65722063616e20707572636861736500000060448201526064016107d5565b600d546040516361bd5b2360e11b8152600481018590526001600160a01b039091169063c37ab64690602401602060405180830381865afa158015610f42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f669190612f86565b610fb25760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c7920676f64206f776e65722063616e207075726368617365000000000060448201526064016107d5565b611051565b600085815260096020526040902060039081015460ff16141561105157604080516020810187905290810185905233606082015261100e906080016040516020818303038152906040528051906020012083611bec565b6110515760405162461bcd60e51b815260206004820152601460248201527314da59db985d1d5c99481a5cc81a5b9d985b1a5960621b60448201526064016107d5565b610a418585611d1b565b606081518351146110c05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107d5565b6000835167ffffffffffffffff8111156110dc576110dc6127ca565b604051908082528060200260200182016040528015611105578160200160208202803683370190505b50905060005b845181101561117d5761115085828151811061112957611129612fa3565b602002602001015185838151811061114357611143612fa3565b602002602001015161076d565b82828151811061116257611162612fa3565b602090810291909101015261117681612ed2565b905061110b565b509392505050565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152816000811180156111c35750600b548111155b6111df5760405162461bcd60e51b81526004016107d590612f17565b600083815260096020908152604091829020825160a08101845281548152600182015460ff808216948301949094526101009004831693810193909352600281015460608401526003015416608082015291505b50919050565b6006546001600160a01b031633146112635760405162461bcd60e51b81526004016107d590612e23565b610be36000611f7c565b6006546001600160a01b031633146112975760405162461bcd60e51b81526004016107d590612e23565b806001600160a01b0381166112be5760405162461bcd60e51b81526004016107d590612eed565b50600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b0316331461130b5760405162461bcd60e51b81526004016107d590612e23565b610be3611fce565b60606008805461089e90612e58565b61132d338383612026565b5050565b6006546001600160a01b0316331461135b5760405162461bcd60e51b81526004016107d590612e23565b806001600160a01b0381166113825760405162461bcd60e51b81526004016107d590612eed565b50600e80546001600160a01b0319166001600160a01b0392909216919091179055565b836000811180156113b85750600b548111155b6113d45760405162461bcd60e51b81526004016107d590612f17565b6006546001600160a01b031633146113fe5760405162461bcd60e51b81526004016107d590612e23565b60048260ff16106114465760405162461bcd60e51b815260206004820152601260248201527157726f6e67207374617475732076616c756560701b60448201526064016107d5565b50600093845260096020526040909320600101805460ff9485166101009081029386160261ffff1990911694909316939093179190911761ff001916179055565b8260008111801561149a5750600b548111155b6114b65760405162461bcd60e51b81526004016107d590612f17565b60005460ff16156114d95760405162461bcd60e51b81526004016107d590612f3f565b826001600160a01b0381166115005760405162461bcd60e51b81526004016107d590612eed565b6006546001600160a01b0316331461152a5760405162461bcd60e51b81526004016107d590612e23565b600085815260096020908152604080832054600590925290912054611550908590612fb9565b111561159e5760405162461bcd60e51b815260206004820152601b60248201527f41697264726f703a204d617820737570706c792072656163686564000000000060448201526064016107d5565b610a4184868560405180602001604052806000815250612107565b6001600160a01b0385163314806115d557506115d5853361067f565b6116335760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107d5565b610a418585858585612219565b6006546001600160a01b0316331461166a5760405162461bcd60e51b81526004016107d590612e23565b806001600160a01b0381166116915760405162461bcd60e51b81526004016107d590612eed565b50600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146116de5760405162461bcd60e51b81526004016107d590612e23565b6001600160a01b0381166117435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107d5565b61088c81611f7c565b8160008111801561175f5750600b548111155b61177b5760405162461bcd60e51b81526004016107d590612f17565b6006546001600160a01b031633146117a55760405162461bcd60e51b81526004016107d590612e23565b50600b5460009081526009602052604090206002015550565b805161132d9060049060208401906126b6565b6060600480546117e090612e58565b80601f016020809104026020016040519081016040528092919081815260200182805461180c90612e58565b80156118595780601f1061182e57610100808354040283529160200191611859565b820191906000526020600020905b81548152906001019060200180831161183c57829003601f168201915b50505050509050919050565b6060816118895750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118b3578061189d81612ed2565b91506118ac9050600a83612fe7565b915061188d565b60008167ffffffffffffffff8111156118ce576118ce6127ca565b6040519080825280601f01601f1916602001820160405280156118f8576020820181803683370190505b5090505b84156119635761190d600183612ffb565b915061191a600a86613012565b611925906030612fb9565b60f81b81838151811061193a5761193a612fa3565b60200101906001600160f81b031916908160001a90535061195c600a86612fe7565b94506118fc565b949350505050565b81518351146119cd5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016107d5565b6001600160a01b0384166119f35760405162461bcd60e51b81526004016107d590613026565b33611a0281878787878761233a565b60005b8451811015611aeb576000858281518110611a2257611a22612fa3565b602002602001015190506000858381518110611a4057611a40612fa3565b60209081029190910181015160008481526002835260408082206001600160a01b038e168352909352919091205490915081811015611a915760405162461bcd60e51b81526004016107d59061306b565b60008381526002602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611ad0908490612fb9565b9250508190555050505080611ae490612ed2565b9050611a05565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b3b9291906130b5565b60405180910390a4611b51818787878787612348565b505050505050565b60005460ff16611ba25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107d5565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c0160405160208183030381529060405280519060200120905060008060008551604114611c57576000945050505050610803565b50505060208301516040840151606085015160001a601b811015611c8357611c80601b826130e3565b90505b60008160ff16601b1480611c9a57508160ff16601c145b15611cff5760408051600081526020810180835287905260ff841691810191909152606081018590526080810184905260019060a0016020604051602081039080840390855afa158015611cf2573d6000803e3d6000fd5b5050506020604051035190505b600e546001600160a01b03918216911614979650505050505050565b600081118015611d3f575060008281526009602052604090206001015460ff168111155b611d8b5760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20616d6f756e742070726f68696269746564000000000060448201526064016107d5565b600082815260096020908152604080832060010154338452600a83528184208685529092529091205461010090910460ff1690611dc9908390612fb9565b1115611e175760405162461bcd60e51b815260206004820152601a60248201527f50757263686173653a2062616c616e6365206973206f7665722e00000000000060448201526064016107d5565b600082815260096020908152604080832054600590925290912054611e3d908390612fb9565b1115611e8b5760405162461bcd60e51b815260206004820152601c60248201527f50757263686173653a204d617820737570706c7920726561636865640000000060448201526064016107d5565b600082815260096020526040902060020154611ea79082613108565b3414611ef55760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20496e636f7272656374207061796d656e74000000000060448201526064016107d5565b336000908152600a6020908152604080832085845290915281208054839290611f1f908490612fb9565b92505081905550611f4133838360405180602001604052806000815250612107565b604051818152339083907ffd51b2c9f55c42d2b72ac683526519563be02fc0107f034ff430c05185ff1b669060200160405180910390a35050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005460ff1615611ff15760405162461bcd60e51b81526004016107d590612f3f565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bcf3390565b816001600160a01b0316836001600160a01b0316141561209a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107d5565b6001600160a01b03838116600081815260036020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166121675760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016107d5565b3361218781600087612178886124a4565b612181886124a4565b8761233a565b60008481526002602090815260408083206001600160a01b0389168452909152812080548592906121b9908490612fb9565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a41816000878787876124ef565b6001600160a01b03841661223f5760405162461bcd60e51b81526004016107d590613026565b3361224f818787612178886124a4565b60008481526002602090815260408083206001600160a01b038a168452909152902054838110156122925760405162461bcd60e51b81526004016107d59061306b565b60008581526002602090815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906122d1908490612fb9565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46123318288888888886124ef565b50505050505050565b611b518686868686866125aa565b6001600160a01b0384163b15611b515760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061238c9089908990889088908890600401613127565b6020604051808303816000875af19250505080156123c7575060408051601f3d908101601f191682019092526123c491810190613185565b60015b612474576123d36131a2565b806308c379a0141561240d57506123e86131be565b806123f3575061240f565b8060405162461bcd60e51b81526004016107d59190612910565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107d5565b6001600160e01b0319811663bc197c8160e01b146123315760405162461bcd60e51b81526004016107d590613248565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106124de576124de612fa3565b602090810291909101015292915050565b6001600160a01b0384163b15611b515760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906125339089908990889088908890600401613290565b6020604051808303816000875af192505050801561256e575060408051601f3d908101601f1916820190925261256b91810190613185565b60015b61257a576123d36131a2565b6001600160e01b0319811663f23a6e6160e01b146123315760405162461bcd60e51b81526004016107d590613248565b6001600160a01b0385166126315760005b835181101561262f578281815181106125d6576125d6612fa3565b6020026020010151600560008684815181106125f4576125f4612fa3565b6020026020010151815260200190815260200160002060008282546126199190612fb9565b90915550612628905081612ed2565b90506125bb565b505b6001600160a01b038416611b515760005b83518110156123315782818151811061265d5761265d612fa3565b60200260200101516005600086848151811061267b5761267b612fa3565b6020026020010151815260200190815260200160002060008282546126a09190612ffb565b909155506126af905081612ed2565b9050612642565b8280546126c290612e58565b90600052602060002090601f0160209004810192826126e4576000855561272a565b82601f106126fd57805160ff191683800117855561272a565b8280016001018555821561272a579182015b8281111561272a57825182559160200191906001019061270f565b5061273692915061273a565b5090565b5b80821115612736576000815560010161273b565b6001600160a01b038116811461088c57600080fd5b6000806040838503121561277757600080fd5b82356127828161274f565b946020939093013593505050565b6001600160e01b03198116811461088c57600080fd5b6000602082840312156127b857600080fd5b81356127c381612790565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612806576128066127ca565b6040525050565b600067ffffffffffffffff831115612827576128276127ca565b60405161283e601f8501601f1916602001826127e0565b80915083815284848401111561285357600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561287d57600080fd5b813567ffffffffffffffff81111561289457600080fd5b8201601f810184136128a557600080fd5b6119638482356020840161280d565b60005b838110156128cf5781810151838201526020016128b7565b838111156128de576000848401525b50505050565b600081518084526128fc8160208601602086016128b4565b601f01601f19169290920160200192915050565b6020815260006127c360208301846128e4565b60006020828403121561293557600080fd5b5035919050565b600067ffffffffffffffff821115612956576129566127ca565b5060051b60200190565b600082601f83011261297157600080fd5b8135602061297e8261293c565b60405161298b82826127e0565b83815260059390931b85018201928281019150868411156129ab57600080fd5b8286015b848110156129c657803583529183019183016129af565b509695505050505050565b600082601f8301126129e257600080fd5b6127c38383356020850161280d565b600080600080600060a08688031215612a0957600080fd5b8535612a148161274f565b94506020860135612a248161274f565b9350604086013567ffffffffffffffff80821115612a4157600080fd5b612a4d89838a01612960565b94506060880135915080821115612a6357600080fd5b612a6f89838a01612960565b93506080880135915080821115612a8557600080fd5b50612a92888289016129d1565b9150509295509295909350565b803560ff81168114612ab057600080fd5b919050565b600080600080600060a08688031215612acd57600080fd5b85359450612add60208701612a9f565b9350612aeb60408701612a9f565b925060608601359150612b0060808701612a9f565b90509295509295909350565b60008060008060808587031215612b2257600080fd5b843593506020850135925060408501359150606085013567ffffffffffffffff811115612b4e57600080fd5b612b5a878288016129d1565b91505092959194509250565b60008060408385031215612b7957600080fd5b823567ffffffffffffffff80821115612b9157600080fd5b818501915085601f830112612ba557600080fd5b81356020612bb28261293c565b604051612bbf82826127e0565b83815260059390931b8501820192828101915089841115612bdf57600080fd5b948201945b83861015612c06578535612bf78161274f565b82529482019490820190612be4565b96505086013592505080821115612c1c57600080fd5b50612c2985828601612960565b9150509250929050565b600081518084526020808501945080840160005b83811015612c6357815187529582019590820190600101612c47565b509495945050505050565b6020815260006127c36020830184612c33565b600060208284031215612c9357600080fd5b81356127c38161274f565b801515811461088c57600080fd5b60008060408385031215612cbf57600080fd5b8235612cca8161274f565b91506020830135612cda81612c9e565b809150509250929050565b60008060408385031215612cf857600080fd5b8235612d038161274f565b91506020830135612cda8161274f565b60008060008060808587031215612d2957600080fd5b84359350612d3960208601612a9f565b9250612d4760408601612a9f565b9150612d5560608601612a9f565b905092959194509250565b600080600060608486031215612d7557600080fd5b833592506020840135612d878161274f565b929592945050506040919091013590565b600080600080600060a08688031215612db057600080fd5b8535612dbb8161274f565b94506020860135612dcb8161274f565b93506040860135925060608601359150608086013567ffffffffffffffff811115612df557600080fd5b612a92888289016129d1565b60008060408385031215612e1457600080fd5b50508035926020909101359150565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612e6c57607f821691505b6020821081141561123357634e487b7160e01b600052602260045260246000fd5b60008351612e9f8184602088016128b4565b835190830190612eb38183602088016128b4565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612ee657612ee6612ebc565b5060010190565b60208082526010908201526f3230303a5a45524f5f4144445245535360801b604082015260600190565b6020808252600e908201526d139bc8195e1a5cdd08195d995b9d60921b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b600060208284031215612f7b57600080fd5b81516127c38161274f565b600060208284031215612f9857600080fd5b81516127c381612c9e565b634e487b7160e01b600052603260045260246000fd5b60008219821115612fcc57612fcc612ebc565b500190565b634e487b7160e01b600052601260045260246000fd5b600082612ff657612ff6612fd1565b500490565b60008282101561300d5761300d612ebc565b500390565b60008261302157613021612fd1565b500690565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006130c86040830185612c33565b82810360208401526130da8185612c33565b95945050505050565b600060ff821660ff84168060ff0382111561310057613100612ebc565b019392505050565b600081600019048311821515161561312257613122612ebc565b500290565b6001600160a01b0386811682528516602082015260a06040820181905260009061315390830186612c33565b82810360608401526131658186612c33565b9050828103608084015261317981856128e4565b98975050505050505050565b60006020828403121561319757600080fd5b81516127c381612790565b600060033d11156131bb5760046000803e5060005160e01c5b90565b600060443d10156131cc5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156131fc57505050505090565b82850191508151818111156132145750505050505090565b843d870101602082850101111561322e5750505050505090565b61323d602082860101876127e0565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906132ca908301846128e4565b97965050505050505056fea2646970667358221220d2e8fc25d0694e61d43c5a1a186266e4b2ee6d56f203367aa359b944faa15d7064736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000002cf6be9aac1c7630d5a23af88c28275c70eb88190000000000000000000000004afd163f281ed126cb07eaf99f52d8a083e135e3000000000000000000000000000000000000000000000000000000000000000642415049524c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000642415049524c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003468747470733a2f2f73746f726167652e6d696e742e62756c6c73616e646170657370726f6a6563742e636f6d2f6576656e74732f000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): BAPIRL
Arg [1] : _symbol (string): BAPIRL
Arg [2] : _uri (string): https://storage.mint.bullsandapesproject.com/events/
Arg [3] : _bapGenesis (address): 0x2Cf6BE9AaC1c7630d5A23af88c28275C70eb8819
Arg [4] : _bapOrchestratorV3 (address): 0x4AfD163F281ed126cB07EaF99F52D8A083e135e3
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000002cf6be9aac1c7630d5a23af88c28275c70eb8819
Arg [4] : 0000000000000000000000004afd163f281ed126cb07eaf99f52d8a083e135e3
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 42415049524c0000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [8] : 42415049524c0000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000034
Arg [10] : 68747470733a2f2f73746f726167652e6d696e742e62756c6c73616e64617065
Arg [11] : 7370726f6a6563742e636f6d2f6576656e74732f000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.