Token
Overview ERC-1155
Total Supply:
0 N/A
Holders:
2 addresses
Transfers:
-
Profile Summary
Contract:
[ Download CSV Export ]
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TicketERC1155
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); function getRoundData(uint80 _roundId) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface VRFCoordinatorV2Interface { /** * @notice Get configuration relevant for making requests * @return minimumRequestConfirmations global min for request confirmations * @return maxGasLimit global max for request gas limit * @return s_provingKeyHashes list of registered key hashes */ function getRequestConfig() external view returns ( uint16, uint32, bytes32[] memory ); /** * @notice Request a set of random words. * @param keyHash - Corresponds to a particular oracle job which uses * that key for generating the VRF proof. Different keyHash's have different gas price * ceilings, so you can select a specific one to bound your maximum per request cost. * @param subId - The ID of the VRF subscription. Must be funded * with the minimum subscription balance required for the selected keyHash. * @param minimumRequestConfirmations - How many blocks you'd like the * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS * for why you may want to request more. The acceptable range is * [minimumRequestBlockConfirmations, 200]. * @param callbackGasLimit - How much gas you'd like to receive in your * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords * may be slightly less than this amount because of gas used calling the function * (argument decoding etc.), so you may need to request slightly more than you expect * to have inside fulfillRandomWords. The acceptable range is * [0, maxGasLimit] * @param numWords - The number of uint256 random values you'd like to receive * in your fulfillRandomWords callback. Note these numbers are expanded in a * secure way by the VRFCoordinator from a single random value supplied by the oracle. * @return requestId - A unique identifier of the request. Can be used to match * a request to a response in fulfillRandomWords. */ function requestRandomWords( bytes32 keyHash, uint64 subId, uint16 minimumRequestConfirmations, uint32 callbackGasLimit, uint32 numWords ) external returns (uint256 requestId); /** * @notice Create a VRF subscription. * @return subId - A unique subscription id. * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer. * @dev Note to fund the subscription, use transferAndCall. For example * @dev LINKTOKEN.transferAndCall( * @dev address(COORDINATOR), * @dev amount, * @dev abi.encode(subId)); */ function createSubscription() external returns (uint64 subId); /** * @notice Get a VRF subscription. * @param subId - ID of the subscription * @return balance - LINK balance of the subscription in juels. * @return reqCount - number of requests for this subscription, determines fee tier. * @return owner - owner of the subscription. * @return consumers - list of consumer address which are able to use this subscription. */ function getSubscription(uint64 subId) external view returns ( uint96 balance, uint64 reqCount, address owner, address[] memory consumers ); /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @param newOwner - proposed new owner of the subscription */ function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external; /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @dev will revert if original owner of subId has * not requested that msg.sender become the new owner. */ function acceptSubscriptionOwnerTransfer(uint64 subId) external; /** * @notice Add a consumer to a VRF subscription. * @param subId - ID of the subscription * @param consumer - New consumer which can use the subscription */ function addConsumer(uint64 subId, address consumer) external; /** * @notice Remove a consumer from a VRF subscription. * @param subId - ID of the subscription * @param consumer - Consumer to remove from the subscription */ function removeConsumer(uint64 subId, address consumer) external; /** * @notice Cancel a subscription * @param subId - ID of the subscription * @param to - Where to send the remaining LINK to */ function cancelSubscription(uint64 subId, address to) external; /* * @notice Check to see if there exists a request commitment consumers * for all consumers and keyhashes for a given sub. * @param subId - ID of the subscription * @return true if there exists at least one unfulfilled request for the subscription, false * otherwise. */ function pendingRequestExists(uint64 subId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. It ensures 2 things: * @dev 1. The fulfillment came from the VRFCoordinator * @dev 2. The consumer contract implements fulfillRandomWords. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constructor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash). Create subscription, fund it * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface * @dev subscription management functions). * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations, * @dev callbackGasLimit, numWords), * @dev see (VRFCoordinatorInterface for a description of the arguments). * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomWords method. * * @dev The randomness argument to fulfillRandomWords is a set of random words * @dev generated from your requestId and the blockHash of the request. * * @dev If your contract could have concurrent requests open, you can use the * @dev requestId returned from requestRandomWords to track which response is associated * @dev with which randomness request. * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously. * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. It is for this reason that * @dev that you can signal to an oracle you'd like them to wait longer before * @dev responding to the request (however this is not enforced in the contract * @dev and so remains effective only in the case of unmodified oracle software). */ abstract contract VRFConsumerBaseV2 { error OnlyCoordinatorCanFulfill(address have, address want); address private immutable vrfCoordinator; /** * @param _vrfCoordinator address of VRFCoordinator contract */ constructor(address _vrfCoordinator) { vrfCoordinator = _vrfCoordinator; } /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomWords the VRF output expanded to the requested number of words */ function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual; // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external { if (msg.sender != vrfCoordinator) { revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator); } fulfillRandomWords(requestId, randomWords); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. The distribution of shares is set at the * time of contract deployment and can't be updated thereafter. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Getter for the amount of payee's releasable Ether. */ function releasable(address account) public view returns (uint256) { uint256 totalReceived = address(this).balance + totalReleased(); return _pendingPayment(account, totalReceived, released(account)); } /** * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an * IERC20 contract. */ function releasable(IERC20 token, address account) public view returns (uint256) { uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); return _pendingPayment(account, totalReceived, released(token, account)); } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(account); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 payment = releasable(token, account); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.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: address zero is not a valid owner"); 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 token 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: caller is not token 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(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, 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); _afterTokenTransfer(operator, from, to, ids, amounts, data); _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); _afterTokenTransfer(operator, from, to, ids, amounts, data); _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(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * 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 _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); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * 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(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); 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); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * 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); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {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 `ids` and `amounts` 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 {} /** * @dev Hook that is called after 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 _afterTokenTransfer( 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; 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 // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/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. * * NOTE: 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. * * NOTE: 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 // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol"; import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol"; interface INftV1 { /** * Mint token by ticket */ function mintUseTicket(address ticketOwner, uint256 conditionId) external payable; } contract TicketERC1155 is ERC1155, Ownable, PaymentSplitter, VRFConsumerBaseV2 { AggregatorV3Interface internal priceFeed; VRFCoordinatorV2Interface COORDINATOR; uint256[] public randomChanceToIndex; address public nftContract; uint256 public maxSupply = 100; uint256 public maxReward = 30; uint64 s_subscriptionId; bytes32 s_keyHash; uint32 callbackGasLimit; uint16 requestConfirmations; uint32 numWords; uint256 private totalMinted; struct RandomStatus{ uint256 randomNumber; address sender; } mapping(uint256 => RandomStatus) public _requestIdToRandomStatus; event TicketOwned(address owner, uint256 amount); event RequestNumbers(uint256 indexed requestId, address indexed sender); event RequestRandomnessFulfilled(uint256 indexed requestId, uint256 indexed conditionId ); constructor( address _vrfCoordinator, bytes32 _s_keyHash, uint32 _callbackGasLimit, uint64 _s_subscriptionId, uint32 _numWords, uint16 _requestConfirmations, uint256[] memory _randomChanceToIndex, address[] memory payees, uint256[] memory shares, address aggregatorInterface, string memory _uri) PaymentSplitter(payees, shares) ERC1155(_uri) VRFConsumerBaseV2(_vrfCoordinator){ priceFeed = AggregatorV3Interface(aggregatorInterface); randomChanceToIndex = _randomChanceToIndex; s_subscriptionId = _s_subscriptionId; s_keyHash = _s_keyHash; callbackGasLimit = _callbackGasLimit; requestConfirmations = _requestConfirmations; numWords = _numWords; COORDINATOR = VRFCoordinatorV2Interface(_vrfCoordinator); } function buyTickets(uint256 amount) public payable { require(maxSupply >= totalMinted + amount, "There are not enough tickets"); //uint256 price = this.getLatestPrice(); //require(msg.value >= price * amount, "Not enough money"); require(msg.value >= 0.00000001 ether * amount, "Not enough money"); _mint(msg.sender, 1, amount, ""); totalMinted += amount; emit TicketOwned(msg.sender, amount); } function sendReward(address to, uint256 amount) public onlyOwner { require(maxSupply >= totalMinted + amount, "There are not enough tickets"); require(maxSupply >= totalMinted + amount, "There are not enough rewards"); _mint(to,1,amount,""); totalMinted += amount; emit TicketOwned(msg.sender, amount); } function getLatestPrice() public view returns (uint256 pricePerTicket) { ( uint80 roundID, int256 price, uint256 startedAt, uint256 timeStamp, uint80 answeredInRound ) = priceFeed.latestRoundData(); pricePerTicket = uint256((3 * 10**26) / price); return pricePerTicket; } function requestNft() public returns (uint256 requestId) { require(balanceOf(msg.sender, 1) > 0, "You are not an owner"); requestId = COORDINATOR.requestRandomWords( s_keyHash, s_subscriptionId, requestConfirmations, callbackGasLimit, numWords ); _requestIdToRandomStatus[requestId].sender = msg.sender; emit RequestNumbers(requestId, msg.sender); } function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal override { uint256 randomResult = (randomWords[0] % 10000) + 1; _requestIdToRandomStatus[requestId].randomNumber = randomResult; uint256 conditionId = getRandomId(randomResult); INftV1 c = INftV1(nftContract); // mapping to erc721 address c.mintUseTicket(_requestIdToRandomStatus[requestId].sender, conditionId); _burn(_requestIdToRandomStatus[requestId].sender, 1, 1); emit RequestRandomnessFulfilled(requestId, conditionId); } function getRandomId(uint256 randomNumber) private view returns (uint256 res) { uint256 dropId = 1; for (uint256 i = 1; i <= randomChanceToIndex.length; i++) { if (randomNumber <= randomChanceToIndex[i]) { res = dropId; return res; } dropId += 11; } } function setNftCollectionAddress(address nftContractAddress) public { nftContract = nftContractAddress; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"bytes32","name":"_s_keyHash","type":"bytes32"},{"internalType":"uint32","name":"_callbackGasLimit","type":"uint32"},{"internalType":"uint64","name":"_s_subscriptionId","type":"uint64"},{"internalType":"uint32","name":"_numWords","type":"uint32"},{"internalType":"uint16","name":"_requestConfirmations","type":"uint16"},{"internalType":"uint256[]","name":"_randomChanceToIndex","type":"uint256[]"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"address","name":"aggregatorInterface","type":"address"},{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"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":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","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"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"requestId","type":"uint256"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RequestNumbers","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"requestId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"conditionId","type":"uint256"}],"name":"RequestRandomnessFulfilled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TicketOwned","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"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_requestIdToRandomStatus","outputs":[{"internalType":"uint256","name":"randomNumber","type":"uint256"},{"internalType":"address","name":"sender","type":"address"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyTickets","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getLatestPrice","outputs":[{"internalType":"uint256","name":"pricePerTicket","type":"uint256"}],"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":"maxReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"randomChanceToIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestNft","outputs":[{"internalType":"uint256","name":"requestId","type":"uint256"}],"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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sendReward","outputs":[],"stateMutability":"nonpayable","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":"nftContractAddress","type":"address"}],"name":"setNftCollectionAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a06040526064600f55601e6010553480156200001b57600080fd5b50604051620066a0380380620066a0833981810160405281019062000041919062000974565b8a8484836200005681620002ea60201b60201c565b50620000776200006b6200030660201b60201c565b6200030e60201b60201c565b8051825114620000be576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000b59062000c31565b60405180910390fd5b600082511162000105576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000fc9062000c75565b60405180910390fd5b60005b825181101562000174576200015e8382815181106200012c576200012b62000fac565b5b60200260200101518383815181106200014a576200014962000fac565b5b6020026020010151620003d460201b60201c565b80806200016b9062000f00565b91505062000108565b5050508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600d9080519060200190620002089291906200060e565b5087601160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508960128190555088601360006101000a81548163ffffffff021916908363ffffffff16021790555085601360046101000a81548161ffff021916908361ffff16021790555086601360066101000a81548163ffffffff021916908363ffffffff1602179055508a600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050505050505050506200120f565b80600290805190602001906200030292919062000660565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000447576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200043e9062000c0f565b60405180910390fd5b600081116200048d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004849062000c97565b60405180910390fd5b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541462000512576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005099062000c53565b60405180910390fd5b6008829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600454620005c9919062000d87565b6004819055507f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac82826040516200060292919062000be2565b60405180910390a15050565b8280548282559060005260206000209081019282156200064d579160200282015b828111156200064c5782518255916020019190600101906200062f565b5b5090506200065c9190620006f1565b5090565b8280546200066e9062000e94565b90600052602060002090601f016020900481019282620006925760008555620006de565b82601f10620006ad57805160ff1916838001178555620006de565b82800160010185558215620006de579182015b82811115620006dd578251825591602001919060010190620006c0565b5b509050620006ed9190620006f1565b5090565b5b808211156200070c576000816000905550600101620006f2565b5090565b600062000727620007218462000ce2565b62000cb9565b905080838252602082019050828560208602820111156200074d576200074c6200100f565b5b60005b8581101562000781578162000766888262000851565b84526020840193506020830192505060018101905062000750565b5050509392505050565b6000620007a26200079c8462000d11565b62000cb9565b90508083825260208201905082856020860282011115620007c857620007c76200100f565b5b60005b85811015620007fc5781620007e188826200092f565b845260208401935060208301925050600181019050620007cb565b5050509392505050565b60006200081d620008178462000d40565b62000cb9565b9050828152602081018484840111156200083c576200083b62001014565b5b6200084984828562000e5e565b509392505050565b600081519050620008628162001173565b92915050565b600082601f83011262000880576200087f6200100a565b5b81516200089284826020860162000710565b91505092915050565b600082601f830112620008b357620008b26200100a565b5b8151620008c58482602086016200078b565b91505092915050565b600081519050620008df816200118d565b92915050565b600082601f830112620008fd57620008fc6200100a565b5b81516200090f84826020860162000806565b91505092915050565b6000815190506200092981620011a7565b92915050565b6000815190506200094081620011c1565b92915050565b6000815190506200095781620011db565b92915050565b6000815190506200096e81620011f5565b92915050565b60008060008060008060008060008060006101608c8e0312156200099d576200099c6200101e565b5b6000620009ad8e828f0162000851565b9b50506020620009c08e828f01620008ce565b9a50506040620009d38e828f0162000946565b9950506060620009e68e828f016200095d565b9850506080620009f98e828f0162000946565b97505060a062000a0c8e828f0162000918565b96505060c08c015167ffffffffffffffff81111562000a305762000a2f62001019565b5b62000a3e8e828f016200089b565b95505060e08c015167ffffffffffffffff81111562000a625762000a6162001019565b5b62000a708e828f0162000868565b9450506101008c015167ffffffffffffffff81111562000a955762000a9462001019565b5b62000aa38e828f016200089b565b93505061012062000ab78e828f0162000851565b9250506101408c015167ffffffffffffffff81111562000adc5762000adb62001019565b5b62000aea8e828f01620008e5565b9150509295989b509295989b9093969950565b62000b088162000de4565b82525050565b600062000b1d602c8362000d76565b915062000b2a8262001034565b604082019050919050565b600062000b4460328362000d76565b915062000b518262001083565b604082019050919050565b600062000b6b602b8362000d76565b915062000b7882620010d2565b604082019050919050565b600062000b92601a8362000d76565b915062000b9f8262001121565b602082019050919050565b600062000bb9601d8362000d76565b915062000bc6826200114a565b602082019050919050565b62000bdc8162000e30565b82525050565b600060408201905062000bf9600083018562000afd565b62000c08602083018462000bd1565b9392505050565b6000602082019050818103600083015262000c2a8162000b0e565b9050919050565b6000602082019050818103600083015262000c4c8162000b35565b9050919050565b6000602082019050818103600083015262000c6e8162000b5c565b9050919050565b6000602082019050818103600083015262000c908162000b83565b9050919050565b6000602082019050818103600083015262000cb28162000baa565b9050919050565b600062000cc562000cd8565b905062000cd3828262000eca565b919050565b6000604051905090565b600067ffffffffffffffff82111562000d005762000cff62000fdb565b5b602082029050602081019050919050565b600067ffffffffffffffff82111562000d2f5762000d2e62000fdb565b5b602082029050602081019050919050565b600067ffffffffffffffff82111562000d5e5762000d5d62000fdb565b5b62000d698262001023565b9050602081019050919050565b600082825260208201905092915050565b600062000d948262000e30565b915062000da18362000e30565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000dd95762000dd862000f4e565b5b828201905092915050565b600062000df18262000e10565b9050919050565b6000819050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b60005b8381101562000e7e57808201518184015260208101905062000e61565b8381111562000e8e576000848401525b50505050565b6000600282049050600182168062000ead57607f821691505b6020821081141562000ec45762000ec362000f7d565b5b50919050565b62000ed58262001023565b810181811067ffffffffffffffff8211171562000ef75762000ef662000fdb565b5b80604052505050565b600062000f0d8262000e30565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141562000f435762000f4262000f4e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973207468652060008201527f7a65726f20616464726573730000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a2070617965657320616e64207368617260008201527f6573206c656e677468206d69736d617463680000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960008201527f2068617320736861726573000000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206e6f20706179656573000000000000600082015250565b7f5061796d656e7453706c69747465723a20736861726573206172652030000000600082015250565b6200117e8162000de4565b81146200118a57600080fd5b50565b620011988162000df8565b8114620011a457600080fd5b50565b620011b28162000e02565b8114620011be57600080fd5b50565b620011cc8162000e30565b8114620011d857600080fd5b50565b620011e68162000e3a565b8114620011f257600080fd5b50565b620012008162000e4a565b81146200120c57600080fd5b50565b60805160601c61546b6200123560003960008181610d800152610dd4015261546b6000f3fe6080604052600436106101f15760003560e01c80638b83209b1161010d578063ce7c2ac2116100a0578063d79779b21161006f578063d79779b214610799578063e33b7de3146107d6578063e985e9c514610801578063f242432a1461083e578063f2fde38b1461086757610238565b8063ce7c2ac2146106c8578063d0e1fe9e14610705578063d56d229d14610743578063d5abeb011461076e57610238565b8063a22cb465116100dc578063a22cb465146105fa578063a3f8eace14610623578063aa15249114610660578063c45ac0501461068b57610238565b80638b83209b1461052a5780638da5cb5b146105675780638e15f473146105925780639852595c146105bd57610238565b80633a98ef3911610185578063501f5eb811610154578063501f5eb814610482578063530fc064146104ab57806366a78e6c146104e8578063715018a61461051357610238565b80633a98ef39146103b4578063406072a9146103df57806348b750441461041c5780634e1273f41461044557610238565b806319165587116101c1578063191655871461031d5780631fe543e3146103465780632eb2c2d61461036f5780632f3666371461039857610238565b8062fdd58e1461023d57806301ffc9a71461027a57806307420a41146102b75780630e89341c146102e057610238565b36610238577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77061021f610890565b3460405161022e929190614162565b60405180910390a1005b600080fd5b34801561024957600080fd5b50610264600480360381019061025f91906137fc565b610898565b6040516102719190614594565b60405180910390f35b34801561028657600080fd5b506102a1600480360381019061029c91906138e1565b610961565b6040516102ae91906141e4565b60405180910390f35b3480156102c357600080fd5b506102de60048036038101906102d991906137fc565b610a43565b005b3480156102ec57600080fd5b50610307600480360381019061030291906139a8565b610b61565b6040516103149190614252565b60405180910390f35b34801561032957600080fd5b50610344600480360381019061033f91906135e9565b610bf5565b005b34801561035257600080fd5b5061036d60048036038101906103689190613a02565b610d7e565b005b34801561037b57600080fd5b5061039660048036038101906103919190613656565b610e3e565b005b6103b260048036038101906103ad91906139a8565b610edf565b005b3480156103c057600080fd5b506103c9610ff5565b6040516103d69190614594565b60405180910390f35b3480156103eb57600080fd5b5061040660048036038101906104019190613968565b610fff565b6040516104139190614594565b60405180910390f35b34801561042857600080fd5b50610443600480360381019061043e9190613968565b611086565b005b34801561045157600080fd5b5061046c6004803603810190610467919061383c565b6112a3565b604051610479919061418b565b60405180910390f35b34801561048e57600080fd5b506104a960048036038101906104a491906135bc565b6113bc565b005b3480156104b757600080fd5b506104d260048036038101906104cd91906139a8565b611400565b6040516104df9190614594565b60405180910390f35b3480156104f457600080fd5b506104fd611424565b60405161050a9190614594565b60405180910390f35b34801561051f57600080fd5b5061052861142a565b005b34801561053657600080fd5b50610551600480360381019061054c91906139a8565b61143e565b60405161055e9190614033565b60405180910390f35b34801561057357600080fd5b5061057c611486565b6040516105899190614033565b60405180910390f35b34801561059e57600080fd5b506105a76114b0565b6040516105b49190614594565b60405180910390f35b3480156105c957600080fd5b506105e460048036038101906105df91906135bc565b611584565b6040516105f19190614594565b60405180910390f35b34801561060657600080fd5b50610621600480360381019061061c91906137bc565b6115cd565b005b34801561062f57600080fd5b5061064a600480360381019061064591906135bc565b6115e3565b6040516106579190614594565b60405180910390f35b34801561066c57600080fd5b50610675611616565b6040516106829190614594565b60405180910390f35b34801561069757600080fd5b506106b260048036038101906106ad9190613968565b611803565b6040516106bf9190614594565b60405180910390f35b3480156106d457600080fd5b506106ef60048036038101906106ea91906135bc565b6118c1565b6040516106fc9190614594565b60405180910390f35b34801561071157600080fd5b5061072c600480360381019061072791906139a8565b61190a565b60405161073a9291906145af565b60405180910390f35b34801561074f57600080fd5b5061075861194e565b6040516107659190614033565b60405180910390f35b34801561077a57600080fd5b50610783611974565b6040516107909190614594565b60405180910390f35b3480156107a557600080fd5b506107c060048036038101906107bb919061393b565b61197a565b6040516107cd9190614594565b60405180910390f35b3480156107e257600080fd5b506107eb6119c3565b6040516107f89190614594565b60405180910390f35b34801561080d57600080fd5b5061082860048036038101906108239190613616565b6119cd565b60405161083591906141e4565b60405180910390f35b34801561084a57600080fd5b5061086560048036038101906108609190613725565b611a61565b005b34801561087357600080fd5b5061088e600480360381019061088991906135bc565b611b02565b005b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610909576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090090614334565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a2c57507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a3c5750610a3b82611b86565b5b9050919050565b610a4b611bf0565b80601454610a59919061472b565b600f541015610a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a94906144d4565b60405180910390fd5b80601454610aab919061472b565b600f541015610aef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae6906144b4565b60405180910390fd5b610b0b8260018360405180602001604052806000815250611c6e565b8060146000828254610b1d919061472b565b925050819055507fb21f5a076eb7c2a94472b9de877a87e385c679f381c3d2f4d8b231a60e91415f3382604051610b55929190614162565b60405180910390a15050565b606060028054610b7090614a16565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9c90614a16565b8015610be95780601f10610bbe57610100808354040283529160200191610be9565b820191906000526020600020905b815481529060010190602001808311610bcc57829003601f168201915b50505050509050919050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610c77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6e90614354565b60405180910390fd5b6000610c82826115e3565b90506000811415610cc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbf906143d4565b60405180910390fd5b80600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610d17919061472b565b925050819055508060056000828254610d30919061472b565b92505081905550610d418282611e1f565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568282604051610d7292919061404e565b60405180910390a15050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e3057337f00000000000000000000000000000000000000000000000000000000000000006040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610e27929190614077565b60405180910390fd5b610e3a8282611f13565b5050565b610e46610890565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610e8c5750610e8b85610e86610890565b6119cd565b5b610ecb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec290614294565b60405180910390fd5b610ed885858585856120b5565b5050505050565b80601454610eed919061472b565b600f541015610f31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f28906144d4565b60405180910390fd5b806402540be400610f42919061481c565b341015610f84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7b906142d4565b60405180910390fd5b610fa03360018360405180602001604052806000815250611c6e565b8060146000828254610fb2919061472b565b925050819055507fb21f5a076eb7c2a94472b9de877a87e385c679f381c3d2f4d8b231a60e91415f3382604051610fea929190614162565b60405180910390a150565b6000600454905090565b6000600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411611108576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ff90614354565b60405180910390fd5b60006111148383611803565b9050600081141561115a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611151906143d4565b60405180910390fd5b80600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546111e6919061472b565b9250508190555080600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461123c919061472b565b9250508190555061124e8383836123d7565b8273ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8383604051611296929190614162565b60405180910390a2505050565b606081518351146112e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e090614534565b60405180910390fd5b6000835167ffffffffffffffff81111561130657611305614baf565b5b6040519080825280602002602001820160405280156113345781602001602082028036833780820191505090505b50905060005b84518110156113b15761138185828151811061135957611358614b80565b5b602002602001015185838151811061137457611373614b80565b5b6020026020010151610898565b82828151811061139457611393614b80565b5b602002602001018181525050806113aa90614a79565b905061133a565b508091505092915050565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d818154811061141057600080fd5b906000526020600020016000915090505481565b60105481565b611432611bf0565b61143c600061245d565b565b60006008828154811061145457611453614b80565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080600080600080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561152157600080fd5b505afa158015611535573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115599190613a5e565b94509450945094509450836af8277896582678ac00000061157a9190614781565b9550505050505090565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115df6115d8610890565b8383612523565b5050565b6000806115ee6119c3565b476115f9919061472b565b905061160e838261160986611584565b612690565b915050919050565b600080611624336001610898565b11611664576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165b90614474565b60405180910390fd5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30601254601160009054906101000a900467ffffffffffffffff16601360049054906101000a900461ffff16601360009054906101000a900463ffffffff16601360069054906101000a900463ffffffff166040518663ffffffff1660e01b81526004016117139594939291906141ff565b602060405180830381600087803b15801561172d57600080fd5b505af1158015611741573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176591906139d5565b9050336015600083815260200190815260200160002060010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff16817fc1203cbd4c3f312795e72df6bffbca8c59ef9573fc13f54c6d5256910993b55060405160405180910390a390565b60008061180f8461197a565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118489190614033565b60206040518083038186803b15801561186057600080fd5b505afa158015611874573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189891906139d5565b6118a2919061472b565b90506118b883826118b38787610fff565b612690565b91505092915050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60156020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f5481565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600554905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a69610890565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611aaf5750611aae85611aa9610890565b6119cd565b5b611aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae590614294565b60405180910390fd5b611afb85858585856126fe565b5050505050565b611b0a611bf0565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b71906142f4565b60405180910390fd5b611b838161245d565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611bf8610890565b73ffffffffffffffffffffffffffffffffffffffff16611c16611486565b73ffffffffffffffffffffffffffffffffffffffff1614611c6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6390614454565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611cde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd590614574565b60405180910390fd5b6000611ce8610890565b90506000611cf58561299a565b90506000611d028561299a565b9050611d1383600089858589612a14565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d72919061472b565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611df09291906145d8565b60405180910390a4611e0783600089858589612a1c565b611e1683600089898989612a24565b50505050505050565b80471015611e62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5990614394565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051611e889061401e565b60006040518083038185875af1925050503d8060008114611ec5576040519150601f19603f3d011682016040523d82523d6000602084013e611eca565b606091505b5050905080611f0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0590614374565b60405180910390fd5b505050565b6000600161271083600081518110611f2e57611f2d614b80565b5b6020026020010151611f409190614ac2565b611f4a919061472b565b90508060156000858152602001908152602001600020600001819055506000611f7282612c0b565b90506000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff1663dbc57c0f6015600088815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b815260040161200c929190614162565b600060405180830381600087803b15801561202657600080fd5b505af115801561203a573d6000803e3d6000fd5b505050506120806015600087815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600180612c7e565b81857f0e31984dc0775b6950bad391831e75cff10bf671b2f27e09b49f0beead823feb60405160405180910390a35050505050565b81518351146120f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f090614554565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612169576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612160906143f4565b60405180910390fd5b6000612173610890565b9050612183818787878787612a14565b60005b84518110156123345760008582815181106121a4576121a3614b80565b5b6020026020010151905060008583815181106121c3576121c2614b80565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612264576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225b90614434565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612319919061472b565b925050819055505050508061232d90614a79565b9050612186565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516123ab9291906141ad565b60405180910390a46123c1818787878787612a1c565b6123cf818787878787612ec5565b505050505050565b6124588363a9059cbb60e01b84846040516024016123f6929190614162565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506130ac565b505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612592576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612589906144f4565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161268391906141e4565b60405180910390a3505050565b600081600454600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054856126e1919061481c565b6126eb91906147eb565b6126f59190614876565b90509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561276e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612765906143f4565b60405180910390fd5b6000612778610890565b905060006127858561299a565b905060006127928561299a565b90506127a2838989858589612a14565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612839576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283090614434565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128ee919061472b565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a60405161296b9291906145d8565b60405180910390a4612981848a8a86868a612a1c565b61298f848a8a8a8a8a612a24565b505050505050505050565b60606000600167ffffffffffffffff8111156129b9576129b8614baf565b5b6040519080825280602002602001820160405280156129e75781602001602082028036833780820191505090505b50905082816000815181106129ff576129fe614b80565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b612a438473ffffffffffffffffffffffffffffffffffffffff16613173565b15612c03578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612a89959493929190614108565b602060405180830381600087803b158015612aa357600080fd5b505af1925050508015612ad457506040513d601f19601f82011682018060405250810190612ad1919061390e565b60015b612b7a57612ae0614bde565b806308c379a01415612b3d5750612af56152e7565b80612b005750612b3f565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b349190614252565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7190614274565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612c01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf8906142b4565b60405180910390fd5b505b505050505050565b600080600190506000600190505b600d805490508111612c7657600d8181548110612c3957612c38614b80565b5b90600052602060002001548411612c54578192505050612c79565b600b82612c61919061472b565b91508080612c6e90614a79565b915050612c19565b50505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce590614414565b60405180910390fd5b6000612cf8610890565b90506000612d058461299a565b90506000612d128461299a565b9050612d3283876000858560405180602001604052806000815250612a14565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015612dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dc090614314565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612e969291906145d8565b60405180910390a4612ebc84886000868660405180602001604052806000815250612a1c565b50505050505050565b612ee48473ffffffffffffffffffffffffffffffffffffffff16613173565b156130a4578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612f2a9594939291906140a0565b602060405180830381600087803b158015612f4457600080fd5b505af1925050508015612f7557506040513d601f19601f82011682018060405250810190612f72919061390e565b60015b61301b57612f81614bde565b806308c379a01415612fde5750612f966152e7565b80612fa15750612fe0565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fd59190614252565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301290614274565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146130a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613099906142b4565b60405180910390fd5b505b505050505050565b600061310e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166131969092919063ffffffff16565b905060008151111561316e578080602001905181019061312e91906138b4565b61316d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316490614514565b60405180910390fd5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60606131a584846000856131ae565b90509392505050565b6060824710156131f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ea906143b4565b60405180910390fd5b6131fc85613173565b61323b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161323290614494565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516132649190614007565b60006040518083038185875af1925050503d80600081146132a1576040519150601f19603f3d011682016040523d82523d6000602084013e6132a6565b606091505b50915091506132b68282866132c2565b92505050949350505050565b606083156132d257829050613322565b6000835111156132e55782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133199190614252565b60405180910390fd5b9392505050565b600061333c61333784614626565b614601565b9050808382526020820190508285602086028201111561335f5761335e614c05565b5b60005b8581101561338f5781613375888261344b565b845260208401935060208301925050600181019050613362565b5050509392505050565b60006133ac6133a784614652565b614601565b905080838252602082019050828560208602820111156133cf576133ce614c05565b5b60005b858110156133ff57816133e5888261357d565b8452602084019350602083019250506001810190506133d2565b5050509392505050565b600061341c6134178461467e565b614601565b90508281526020810184848401111561343857613437614c0a565b5b6134438482856149d4565b509392505050565b60008135905061345a8161537d565b92915050565b60008135905061346f81615394565b92915050565b600082601f83011261348a57613489614c00565b5b813561349a848260208601613329565b91505092915050565b600082601f8301126134b8576134b7614c00565b5b81356134c8848260208601613399565b91505092915050565b6000813590506134e0816153ab565b92915050565b6000815190506134f5816153ab565b92915050565b60008135905061350a816153c2565b92915050565b60008151905061351f816153c2565b92915050565b600082601f83011261353a57613539614c00565b5b813561354a848260208601613409565b91505092915050565b600081359050613562816153d9565b92915050565b600081519050613577816153f0565b92915050565b60008135905061358c81615407565b92915050565b6000815190506135a181615407565b92915050565b6000815190506135b68161541e565b92915050565b6000602082840312156135d2576135d1614c14565b5b60006135e08482850161344b565b91505092915050565b6000602082840312156135ff576135fe614c14565b5b600061360d84828501613460565b91505092915050565b6000806040838503121561362d5761362c614c14565b5b600061363b8582860161344b565b925050602061364c8582860161344b565b9150509250929050565b600080600080600060a0868803121561367257613671614c14565b5b60006136808882890161344b565b95505060206136918882890161344b565b945050604086013567ffffffffffffffff8111156136b2576136b1614c0f565b5b6136be888289016134a3565b935050606086013567ffffffffffffffff8111156136df576136de614c0f565b5b6136eb888289016134a3565b925050608086013567ffffffffffffffff81111561370c5761370b614c0f565b5b61371888828901613525565b9150509295509295909350565b600080600080600060a0868803121561374157613740614c14565b5b600061374f8882890161344b565b95505060206137608882890161344b565b94505060406137718882890161357d565b93505060606137828882890161357d565b925050608086013567ffffffffffffffff8111156137a3576137a2614c0f565b5b6137af88828901613525565b9150509295509295909350565b600080604083850312156137d3576137d2614c14565b5b60006137e18582860161344b565b92505060206137f2858286016134d1565b9150509250929050565b6000806040838503121561381357613812614c14565b5b60006138218582860161344b565b92505060206138328582860161357d565b9150509250929050565b6000806040838503121561385357613852614c14565b5b600083013567ffffffffffffffff81111561387157613870614c0f565b5b61387d85828601613475565b925050602083013567ffffffffffffffff81111561389e5761389d614c0f565b5b6138aa858286016134a3565b9150509250929050565b6000602082840312156138ca576138c9614c14565b5b60006138d8848285016134e6565b91505092915050565b6000602082840312156138f7576138f6614c14565b5b6000613905848285016134fb565b91505092915050565b60006020828403121561392457613923614c14565b5b600061393284828501613510565b91505092915050565b60006020828403121561395157613950614c14565b5b600061395f84828501613553565b91505092915050565b6000806040838503121561397f5761397e614c14565b5b600061398d85828601613553565b925050602061399e8582860161344b565b9150509250929050565b6000602082840312156139be576139bd614c14565b5b60006139cc8482850161357d565b91505092915050565b6000602082840312156139eb576139ea614c14565b5b60006139f984828501613592565b91505092915050565b60008060408385031215613a1957613a18614c14565b5b6000613a278582860161357d565b925050602083013567ffffffffffffffff811115613a4857613a47614c0f565b5b613a54858286016134a3565b9150509250929050565b600080600080600060a08688031215613a7a57613a79614c14565b5b6000613a88888289016135a7565b9550506020613a9988828901613568565b9450506040613aaa88828901613592565b9350506060613abb88828901613592565b9250506080613acc888289016135a7565b9150509295509295909350565b6000613ae58383613fcb565b60208301905092915050565b613afa8161499e565b82525050565b613b09816148aa565b82525050565b6000613b1a826146bf565b613b2481856146ed565b9350613b2f836146af565b8060005b83811015613b60578151613b478882613ad9565b9750613b52836146e0565b925050600181019050613b33565b5085935050505092915050565b613b76816148ce565b82525050565b613b85816148da565b82525050565b6000613b96826146ca565b613ba081856146fe565b9350613bb08185602086016149e3565b613bb981614c19565b840191505092915050565b6000613bcf826146ca565b613bd9818561470f565b9350613be98185602086016149e3565b80840191505092915050565b6000613c00826146d5565b613c0a818561471a565b9350613c1a8185602086016149e3565b613c2381614c19565b840191505092915050565b6000613c3b60348361471a565b9150613c4682614c37565b604082019050919050565b6000613c5e602f8361471a565b9150613c6982614c86565b604082019050919050565b6000613c8160288361471a565b9150613c8c82614cd5565b604082019050919050565b6000613ca460108361471a565b9150613caf82614d24565b602082019050919050565b6000613cc760268361471a565b9150613cd282614d4d565b604082019050919050565b6000613cea60248361471a565b9150613cf582614d9c565b604082019050919050565b6000613d0d602a8361471a565b9150613d1882614deb565b604082019050919050565b6000613d3060268361471a565b9150613d3b82614e3a565b604082019050919050565b6000613d53603a8361471a565b9150613d5e82614e89565b604082019050919050565b6000613d76601d8361471a565b9150613d8182614ed8565b602082019050919050565b6000613d9960268361471a565b9150613da482614f01565b604082019050919050565b6000613dbc602b8361471a565b9150613dc782614f50565b604082019050919050565b6000613ddf60258361471a565b9150613dea82614f9f565b604082019050919050565b6000613e0260238361471a565b9150613e0d82614fee565b604082019050919050565b6000613e25602a8361471a565b9150613e308261503d565b604082019050919050565b6000613e4860208361471a565b9150613e538261508c565b602082019050919050565b6000613e6b60148361471a565b9150613e76826150b5565b602082019050919050565b6000613e8e60008361470f565b9150613e99826150de565b600082019050919050565b6000613eb1601d8361471a565b9150613ebc826150e1565b602082019050919050565b6000613ed4601c8361471a565b9150613edf8261510a565b602082019050919050565b6000613ef7601c8361471a565b9150613f0282615133565b602082019050919050565b6000613f1a60298361471a565b9150613f258261515c565b604082019050919050565b6000613f3d602a8361471a565b9150613f48826151ab565b604082019050919050565b6000613f6060298361471a565b9150613f6b826151fa565b604082019050919050565b6000613f8360288361471a565b9150613f8e82615249565b604082019050919050565b6000613fa660218361471a565b9150613fb182615298565b604082019050919050565b613fc58161492c565b82525050565b613fd48161495a565b82525050565b613fe38161495a565b82525050565b613ff281614964565b82525050565b61400181614974565b82525050565b60006140138284613bc4565b915081905092915050565b600061402982613e81565b9150819050919050565b60006020820190506140486000830184613b00565b92915050565b60006040820190506140636000830185613af1565b6140706020830184613fda565b9392505050565b600060408201905061408c6000830185613b00565b6140996020830184613b00565b9392505050565b600060a0820190506140b56000830188613b00565b6140c26020830187613b00565b81810360408301526140d48186613b0f565b905081810360608301526140e88185613b0f565b905081810360808301526140fc8184613b8b565b90509695505050505050565b600060a08201905061411d6000830188613b00565b61412a6020830187613b00565b6141376040830186613fda565b6141446060830185613fda565b81810360808301526141568184613b8b565b90509695505050505050565b60006040820190506141776000830185613b00565b6141846020830184613fda565b9392505050565b600060208201905081810360008301526141a58184613b0f565b905092915050565b600060408201905081810360008301526141c78185613b0f565b905081810360208301526141db8184613b0f565b90509392505050565b60006020820190506141f96000830184613b6d565b92915050565b600060a0820190506142146000830188613b7c565b6142216020830187613ff8565b61422e6040830186613fbc565b61423b6060830185613fe9565b6142486080830184613fe9565b9695505050505050565b6000602082019050818103600083015261426c8184613bf5565b905092915050565b6000602082019050818103600083015261428d81613c2e565b9050919050565b600060208201905081810360008301526142ad81613c51565b9050919050565b600060208201905081810360008301526142cd81613c74565b9050919050565b600060208201905081810360008301526142ed81613c97565b9050919050565b6000602082019050818103600083015261430d81613cba565b9050919050565b6000602082019050818103600083015261432d81613cdd565b9050919050565b6000602082019050818103600083015261434d81613d00565b9050919050565b6000602082019050818103600083015261436d81613d23565b9050919050565b6000602082019050818103600083015261438d81613d46565b9050919050565b600060208201905081810360008301526143ad81613d69565b9050919050565b600060208201905081810360008301526143cd81613d8c565b9050919050565b600060208201905081810360008301526143ed81613daf565b9050919050565b6000602082019050818103600083015261440d81613dd2565b9050919050565b6000602082019050818103600083015261442d81613df5565b9050919050565b6000602082019050818103600083015261444d81613e18565b9050919050565b6000602082019050818103600083015261446d81613e3b565b9050919050565b6000602082019050818103600083015261448d81613e5e565b9050919050565b600060208201905081810360008301526144ad81613ea4565b9050919050565b600060208201905081810360008301526144cd81613ec7565b9050919050565b600060208201905081810360008301526144ed81613eea565b9050919050565b6000602082019050818103600083015261450d81613f0d565b9050919050565b6000602082019050818103600083015261452d81613f30565b9050919050565b6000602082019050818103600083015261454d81613f53565b9050919050565b6000602082019050818103600083015261456d81613f76565b9050919050565b6000602082019050818103600083015261458d81613f99565b9050919050565b60006020820190506145a96000830184613fda565b92915050565b60006040820190506145c46000830185613fda565b6145d16020830184613b00565b9392505050565b60006040820190506145ed6000830185613fda565b6145fa6020830184613fda565b9392505050565b600061460b61461c565b90506146178282614a48565b919050565b6000604051905090565b600067ffffffffffffffff82111561464157614640614baf565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561466d5761466c614baf565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561469957614698614baf565b5b6146a282614c19565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b60006147368261495a565b91506147418361495a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561477657614775614af3565b5b828201905092915050565b600061478c82614922565b915061479783614922565b9250826147a7576147a6614b22565b5b600160000383147f8000000000000000000000000000000000000000000000000000000000000000831416156147e0576147df614af3565b5b828205905092915050565b60006147f68261495a565b91506148018361495a565b92508261481157614810614b22565b5b828204905092915050565b60006148278261495a565b91506148328361495a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561486b5761486a614af3565b5b828202905092915050565b60006148818261495a565b915061488c8361495a565b92508282101561489f5761489e614af3565b5b828203905092915050565b60006148b58261493a565b9050919050565b60006148c78261493a565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061491b826148aa565b9050919050565b6000819050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b600069ffffffffffffffffffff82169050919050565b60006149a9826149b0565b9050919050565b60006149bb826149c2565b9050919050565b60006149cd8261493a565b9050919050565b82818337600083830152505050565b60005b83811015614a015780820151818401526020810190506149e6565b83811115614a10576000848401525b50505050565b60006002820490506001821680614a2e57607f821691505b60208210811415614a4257614a41614b51565b5b50919050565b614a5182614c19565b810181811067ffffffffffffffff82111715614a7057614a6f614baf565b5b80604052505050565b6000614a848261495a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ab757614ab6614af3565b5b600182019050919050565b6000614acd8261495a565b9150614ad88361495a565b925082614ae857614ae7614b22565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d1115614bfd5760046000803e614bfa600051614c2a565b90505b90565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f4e6f7420656e6f756768206d6f6e657900000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f596f7520617265206e6f7420616e206f776e6572000000000000000000000000600082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f546865726520617265206e6f7420656e6f756768207265776172647300000000600082015250565b7f546865726520617265206e6f7420656e6f756768207469636b65747300000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600060443d10156152f75761537a565b6152ff61461c565b60043d036004823e80513d602482011167ffffffffffffffff8211171561532757505061537a565b808201805167ffffffffffffffff811115615345575050505061537a565b80602083010160043d03850181111561536257505050505061537a565b61537182602001850186614a48565b82955050505050505b90565b615386816148aa565b811461539157600080fd5b50565b61539d816148bc565b81146153a857600080fd5b50565b6153b4816148ce565b81146153bf57600080fd5b50565b6153cb816148e4565b81146153d657600080fd5b50565b6153e281614910565b81146153ed57600080fd5b50565b6153f981614922565b811461540457600080fd5b50565b6154108161495a565b811461541b57600080fd5b50565b61542781614988565b811461543257600080fd5b5056fea2646970667358221220f38e6d4f7d235f71a0bec3a63ee78916e9e87f21d9e06fe514b8264ee3e9559064736f6c634300080700330000000000000000000000007a1bac17ccc5b313516c5e16fb24f7659aa5ebed4b09e658ed251bcafeebbc69400383d49f344ace09b9576fe248bb02c003fe9f000000000000000000000000000000000000000000000000000000000007a1200000000000000000000000000000000000000000000000000000000000000579000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000056000000000000000000000000000000000000000000000000000000000000005a0000000000000000000000000d0d5e3db44de05e9f294bb0a3beeaf030de24ada00000000000000000000000000000000000000000000000000000000000005e0000000000000000000000000000000000000000000000000000000000000001f00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000004b000000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000000d90000000000000000000000000000000000000000000000000000000000000134000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000002d100000000000000000000000000000000000000000000000000000000000004110000000000000000000000000000000000000000000000000000000000000551000000000000000000000000000000000000000000000000000000000000069100000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000009760000000000000000000000000000000000000000000000000000000000000b1b0000000000000000000000000000000000000000000000000000000000000cc00000000000000000000000000000000000000000000000000000000000000e65000000000000000000000000000000000000000000000000000000000000100a00000000000000000000000000000000000000000000000000000000000011af000000000000000000000000000000000000000000000000000000000000135400000000000000000000000000000000000000000000000000000000000014f9000000000000000000000000000000000000000000000000000000000000169e000000000000000000000000000000000000000000000000000000000000184300000000000000000000000000000000000000000000000000000000000019e80000000000000000000000000000000000000000000000000000000000001d320000000000000000000000000000000000000000000000000000000000001ed70000000000000000000000000000000000000000000000000000000000001b8d000000000000000000000000000000000000000000000000000000000000207c000000000000000000000000000000000000000000000000000000000000222100000000000000000000000000000000000000000000000000000000000023c6000000000000000000000000000000000000000000000000000000000000256b00000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a03460452d31efb7d37d54e2a768cc464a499e260000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000038697066732e696f3a2f2f516d50785058374d65784d667363597875594c597965725a36744e6561395875416d57744e6f41416365446252730000000000000000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a1bac17ccc5b313516c5e16fb24f7659aa5ebed4b09e658ed251bcafeebbc69400383d49f344ace09b9576fe248bb02c003fe9f000000000000000000000000000000000000000000000000000000000007a1200000000000000000000000000000000000000000000000000000000000000579000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000056000000000000000000000000000000000000000000000000000000000000005a0000000000000000000000000d0d5e3db44de05e9f294bb0a3beeaf030de24ada00000000000000000000000000000000000000000000000000000000000005e0000000000000000000000000000000000000000000000000000000000000001f00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000004b000000000000000000000000000000000000000000000000000000000000007d00000000000000000000000000000000000000000000000000000000000000d90000000000000000000000000000000000000000000000000000000000000134000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000002d100000000000000000000000000000000000000000000000000000000000004110000000000000000000000000000000000000000000000000000000000000551000000000000000000000000000000000000000000000000000000000000069100000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000009760000000000000000000000000000000000000000000000000000000000000b1b0000000000000000000000000000000000000000000000000000000000000cc00000000000000000000000000000000000000000000000000000000000000e65000000000000000000000000000000000000000000000000000000000000100a00000000000000000000000000000000000000000000000000000000000011af000000000000000000000000000000000000000000000000000000000000135400000000000000000000000000000000000000000000000000000000000014f9000000000000000000000000000000000000000000000000000000000000169e000000000000000000000000000000000000000000000000000000000000184300000000000000000000000000000000000000000000000000000000000019e80000000000000000000000000000000000000000000000000000000000001d320000000000000000000000000000000000000000000000000000000000001ed70000000000000000000000000000000000000000000000000000000000001b8d000000000000000000000000000000000000000000000000000000000000207c000000000000000000000000000000000000000000000000000000000000222100000000000000000000000000000000000000000000000000000000000023c6000000000000000000000000000000000000000000000000000000000000256b00000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a03460452d31efb7d37d54e2a768cc464a499e260000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000038697066732e696f3a2f2f516d50785058374d65784d667363597875594c597965725a36744e6561395875416d57744e6f41416365446252730000000000000000
-----Decoded View---------------
Arg [0] : _vrfCoordinator (address): 0x7a1bac17ccc5b313516c5e16fb24f7659aa5ebed
Arg [1] : _s_keyHash (bytes32): 0x4b09e658ed251bcafeebbc69400383d49f344ace09b9576fe248bb02c003fe9f
Arg [2] : _callbackGasLimit (uint32): 500000
Arg [3] : _s_subscriptionId (uint64): 1401
Arg [4] : _numWords (uint32): 1
Arg [5] : _requestConfirmations (uint16): 3
Arg [6] : _randomChanceToIndex (uint256[]): 1,25,75,125,217,308,400,721,1041,1361,1681,2000,2422,2843,3264,3685,4106,4527,4948,5369,5790,6211,6632,7474,7895,7053,8316,8737,9158,9579,10000
Arg [7] : payees (address[]): 0xa03460452d31efb7d37d54e2a768cc464a499e26
Arg [8] : shares (uint256[]): 30
Arg [9] : aggregatorInterface (address): 0xd0d5e3db44de05e9f294bb0a3beeaf030de24ada
Arg [10] : _uri (string): ipfs.io://QmPxPX7MexMfscYxuYLYyerZ6tNea9XuAmWtNoAAceDbRs
-----Encoded View---------------
50 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a1bac17ccc5b313516c5e16fb24f7659aa5ebed
Arg [1] : 4b09e658ed251bcafeebbc69400383d49f344ace09b9576fe248bb02c003fe9f
Arg [2] : 000000000000000000000000000000000000000000000000000000000007a120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000579
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000560
Arg [8] : 00000000000000000000000000000000000000000000000000000000000005a0
Arg [9] : 000000000000000000000000d0d5e3db44de05e9f294bb0a3beeaf030de24ada
Arg [10] : 00000000000000000000000000000000000000000000000000000000000005e0
Arg [11] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [14] : 000000000000000000000000000000000000000000000000000000000000004b
Arg [15] : 000000000000000000000000000000000000000000000000000000000000007d
Arg [16] : 00000000000000000000000000000000000000000000000000000000000000d9
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000134
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000190
Arg [19] : 00000000000000000000000000000000000000000000000000000000000002d1
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000411
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000551
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000691
Arg [23] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000976
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000b1b
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000cc0
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000e65
Arg [28] : 000000000000000000000000000000000000000000000000000000000000100a
Arg [29] : 00000000000000000000000000000000000000000000000000000000000011af
Arg [30] : 0000000000000000000000000000000000000000000000000000000000001354
Arg [31] : 00000000000000000000000000000000000000000000000000000000000014f9
Arg [32] : 000000000000000000000000000000000000000000000000000000000000169e
Arg [33] : 0000000000000000000000000000000000000000000000000000000000001843
Arg [34] : 00000000000000000000000000000000000000000000000000000000000019e8
Arg [35] : 0000000000000000000000000000000000000000000000000000000000001d32
Arg [36] : 0000000000000000000000000000000000000000000000000000000000001ed7
Arg [37] : 0000000000000000000000000000000000000000000000000000000000001b8d
Arg [38] : 000000000000000000000000000000000000000000000000000000000000207c
Arg [39] : 0000000000000000000000000000000000000000000000000000000000002221
Arg [40] : 00000000000000000000000000000000000000000000000000000000000023c6
Arg [41] : 000000000000000000000000000000000000000000000000000000000000256b
Arg [42] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [43] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [44] : 000000000000000000000000a03460452d31efb7d37d54e2a768cc464a499e26
Arg [45] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [46] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [47] : 0000000000000000000000000000000000000000000000000000000000000038
Arg [48] : 697066732e696f3a2f2f516d50785058374d65784d667363597875594c597965
Arg [49] : 725a36744e6561395875416d57744e6f41416365446252730000000000000000