More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,140 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Prize | 11642837 | 1329 days ago | IN | 0 ETH | 0.00407642 | ||||
Claim Prize | 11581196 | 1339 days ago | IN | 0 ETH | 0.00996355 | ||||
Enter Tickets | 11577552 | 1339 days ago | IN | 0 ETH | 0.00119102 | ||||
Claim Prize | 11535417 | 1346 days ago | IN | 0 ETH | 0.00387663 | ||||
Claim Prize | 11463703 | 1357 days ago | IN | 0 ETH | 0.01531638 | ||||
Claim Prize | 11437876 | 1360 days ago | IN | 0 ETH | 0.01437094 | ||||
Claim Prize | 11437500 | 1361 days ago | IN | 0 ETH | 0.00169996 | ||||
Claim Prize | 11436641 | 1361 days ago | IN | 0 ETH | 0.00202778 | ||||
Claim Prize | 11431546 | 1361 days ago | IN | 0 ETH | 0.00188907 | ||||
Claim Prize | 11429603 | 1362 days ago | IN | 0 ETH | 0.00208716 | ||||
Claim Prize | 11426536 | 1362 days ago | IN | 0 ETH | 0.00432982 | ||||
Claim Prize | 11420130 | 1363 days ago | IN | 0 ETH | 0.0096177 | ||||
Claim Prize | 11419401 | 1363 days ago | IN | 0 ETH | 0.00487006 | ||||
Claim Prize | 11418919 | 1363 days ago | IN | 0 ETH | 0.00417534 | ||||
Claim Prize | 11416721 | 1364 days ago | IN | 0 ETH | 0.00428144 | ||||
Claim Prize | 11409719 | 1365 days ago | IN | 0 ETH | 0.00790029 | ||||
Claim Prize | 11402152 | 1366 days ago | IN | 0 ETH | 0.00243339 | ||||
Claim Prize | 11393018 | 1367 days ago | IN | 0 ETH | 0.00231803 | ||||
Claim Prize | 11374739 | 1370 days ago | IN | 0 ETH | 0.00433362 | ||||
Claim Prize | 11370590 | 1371 days ago | IN | 0 ETH | 0.00965612 | ||||
Claim Prize | 11363157 | 1372 days ago | IN | 0 ETH | 0.00632402 | ||||
Claim Prize | 11358394 | 1373 days ago | IN | 0 ETH | 0.01107018 | ||||
Claim Prize | 11346581 | 1375 days ago | IN | 0 ETH | 0.00247321 | ||||
Claim Prize | 11345857 | 1375 days ago | IN | 0 ETH | 0.00503054 | ||||
Claim Prize | 11344046 | 1375 days ago | IN | 0 ETH | 0.00816349 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
RafflesContract
Compiler Version
v0.7.4+commit.3f05b770
Optimization Enabled:
Yes with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity 0.7.4; pragma experimental ABIEncoderV2; import "hardhat/console.sol"; import "./interfaces/IERC1155.sol"; import "./chainlink/LinkTokenInterface.sol"; import "./interfaces/IERC173.sol"; import "./interfaces/IERC165.sol"; // All state variables are accessed through this struct // To avoid name clashes and make clear a variable is a state variable // state variable access starts with "s." which accesses variables in this struct struct AppStorage { // IERC165 mapping(bytes4 => bool) supportedInterfaces; Raffle[] raffles; // Nonces for VRF keyHash from which randomness has been requested. // Must stay in sync with VRFCoordinator[_keyHash][this] // keyHash => nonce mapping(bytes32 => uint256) nonces; mapping(bytes32 => uint256) requestIdToRaffleId; bytes32 keyHash; uint96 fee; address contractOwner; } struct Raffle { // associates ticket address and ticketId to raffleItems // if raffleItemIndexes == 0, then raffle item does not exist // This means all raffleItemIndexes have been incremented by 1 // ticketAddress => (ticketId => index + 1) mapping(address => mapping(uint256 => uint256)) raffleItemIndexes; RaffleItem[] raffleItems; // maps what tickets entrants have entered into the raffle // entrant => tickets mapping(address => UserEntry[]) userEntries; // used to prevent users from claiming prizes more than once mapping(address => bool) prizeClaimed; // the addresses of people who have entered tickets into the raffle address[] entrants; // vrf randomness uint256 randomNumber; // requested vrf random number bool randomNumberPending; // date in timestamp seconds when a raffle ends uint256 raffleEnd; } // The minimum rangeStart is 0 // The maximum rangeEnd is raffleItem.totalEntered // rangeEnd - rangeStart == number of ticket entered for raffle item by a user entry struct UserEntry { uint32 raffleItemIndex; // Which raffle item is entered into the raffle uint112 rangeStart; // Raffle number. Value is between 0 and raffleItem.totalEntered - 1 uint112 rangeEnd; // Raffle number. Value is between 1 and raffleItem.totalEntered } struct RaffleItemPrize { address prizeAddress; // ERC1155 token contract uint96 prizeQuantity; // Number of ERC1155 tokens uint256 prizeId; // ERC1155 token type } // Ticket numbers are numbers between 0 and raffleItem.totalEntered - 1 inclusive. struct RaffleItem { address ticketAddress; // ERC1155 token contract uint256 ticketId; // ERC1155 token type uint256 totalEntered; // Total number of ERC1155 tokens entered into raffle for this raffle item RaffleItemPrize[] raffleItemPrizes; // Prizes that can be won for this raffle item } contract RafflesContract is IERC173, IERC165 { // State variables are prefixed with s. AppStorage internal s; // Immutable values are prefixed with im_ to easily identify them in code LinkTokenInterface internal immutable im_link; address internal immutable im_vrfCoordinator; bytes4 internal constant ERC1155_ACCEPTED = 0xf23a6e61; // Return value from `onERC1155Received` call if a contract accepts receipt (i.e `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`). event RaffleStarted(uint256 indexed raffleId, uint256 raffleEnd, RaffleItemIO[] raffleItems); event RaffleTicketsEntered(uint256 indexed raffleId, address entrant, TicketItemIO[] ticketItems); event RaffleRandomNumber(uint256 indexed raffleId, uint256 randomNumber); event RaffleClaimPrize(uint256 indexed raffleId, address entrant, address prizeAddress, uint256 prizeId, uint256 prizeQuantity); constructor( address _contractOwner, address _vrfCoordinator, address _link, bytes32 _keyHash, uint256 _fee ) { s.contractOwner = _contractOwner; im_vrfCoordinator = _vrfCoordinator; im_link = LinkTokenInterface(_link); s.keyHash = _keyHash; //0x6c3699283bda56ad74f6b855546325b68d482e983852a7a82979cc4807b641f4; s.fee = uint96(_fee); // adding ERC165 data s.supportedInterfaces[type(IERC165).interfaceId] = true; s.supportedInterfaces[type(IERC173).interfaceId] = true; } function supportsInterface(bytes4 _interfaceId) external view override returns (bool) { return s.supportedInterfaces[_interfaceId]; } // VRF Functionality //////////////////////////////////////////////////////////////// function nonces(bytes32 _keyHash) external view returns (uint256 nonce_) { nonce_ = s.nonces[_keyHash]; } /** * @notice requestRandomness initiates a request for VRF output given _seed * * @dev See "SECURITY CONSIDERATIONS" above for more information on _seed. * * @dev The fulfillRandomness method receives the output, once it's provided * @dev by the Oracle, and verified by the vrfCoordinator. * * @dev The _keyHash must already be registered with the VRFCoordinator, and * @dev the _fee must exceed the fee specified during registration of the * @dev _keyHash. * * @param _keyHash ID of public key against which randomness is generated * @param _fee The amount of LINK to send with the request * @param _seed seed mixed into the input of the VRF * * @return requestId unique ID for this request * * @dev The returned requestId can be used to distinguish responses to * * @dev concurrent requests. It is passed as the first argument to * @dev fulfillRandomness. */ function requestRandomness( bytes32 _keyHash, uint256 _fee, uint256 _seed ) internal returns (bytes32 requestId) { im_link.transferAndCall(im_vrfCoordinator, _fee, abi.encode(_keyHash, _seed)); // This is the seed passed to VRFCoordinator. The oracle will mix this with // the hash of the block containing this request to obtain the seed/input // which is finally passed to the VRF cryptographic machinery. // So the seed doesn't actually do anything and is left over from an old API. uint256 vRFSeed = makeVRFInputSeed(_keyHash, _seed, address(this), s.nonces[_keyHash]); // nonces[_keyHash] must stay in sync with // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above // successful Link.transferAndCall (in VRFCoordinator.randomnessRequest). // This provides protection against the user repeating their input // seed, which would result in a predictable/duplicate output. s.nonces[_keyHash]++; return makeRequestId(_keyHash, vRFSeed); } /** * @notice returns the seed which is actually input to the VRF coordinator * * @dev To prevent repetition of VRF output due to repetition of the * @dev user-supplied seed, that seed is combined in a hash with the * @dev user-specific nonce, and the address of the consuming contract. The * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in * @dev the final seed, but the nonce does protect against repetition in * @dev requests which are included in a single block. * * @param _userSeed VRF seed input provided by user * @param _requester Address of the requesting contract * @param _nonce User-specific nonce at the time of the request */ function makeVRFInputSeed( bytes32 _keyHash, uint256 _userSeed, address _requester, uint256 _nonce ) internal pure returns (uint256) { return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce))); } /** * @notice Returns the id for this request * @param _keyHash The serviceAgreement ID to be used for this request * @param _vRFInputSeed The seed to be passed directly to the VRF * @return The id for this request * * @dev Note that _vRFInputSeed is not the seed passed by the consuming * @dev contract, but the one generated by makeVRFInputSeed */ function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) { return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed)); } function drawRandomNumber(uint256 _raffleId) external { require(_raffleId < s.raffles.length, "Raffle: Raffle does not exist"); Raffle storage raffle = s.raffles[_raffleId]; require(raffle.raffleEnd < block.timestamp, "Raffle: Raffle time has not expired"); require(raffle.randomNumber == 0, "Raffle: Random number already generated"); require(raffle.randomNumberPending == false || msg.sender == s.contractOwner, "Raffle: Random number is pending"); raffle.randomNumberPending = true; // Use Chainlink VRF to generate random number require(im_link.balanceOf(address(this)) >= s.fee, "Not enough LINK"); bytes32 requestId = requestRandomness(s.keyHash, s.fee, uint256(keccak256(abi.encodePacked(block.number, msg.sender)))); s.requestIdToRaffleId[requestId] = _raffleId; } // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRFproof. /** * @notice Callback function used by VRF Coordinator * @dev This is where you do something with randomness! * @dev The VRF Coordinator will only send this function verified responses. * @dev The VRF Coordinator will not pass randomness that could not be verified. */ function rawFulfillRandomness(bytes32 _requestId, uint256 _randomness) external { require(msg.sender == im_vrfCoordinator, "Only VRFCoordinator can fulfill"); uint256 raffleId = s.requestIdToRaffleId[_requestId]; require(raffleId < s.raffles.length, "Raffle: Raffle does not exist"); Raffle storage raffle = s.raffles[raffleId]; require(raffle.raffleEnd < block.timestamp, "Raffle: Raffle time has not expired"); require(raffle.randomNumber == 0, "Raffle: Random number already generated"); s.raffles[raffleId].randomNumber = _randomness; raffle.randomNumberPending = false; emit RaffleRandomNumber(raffleId, _randomness); } // Change the fee amount that is paid for VRF random numbers function changeVRFFee(uint256 _newFee, bytes32 _keyHash) external { require(msg.sender == s.contractOwner, "Raffle: Must be contract owner"); s.fee = uint96(_newFee); s.keyHash = _keyHash; } // Remove the LINK tokens from this contract that are used to pay for VRF random number fees function removeLinkTokens(address _to, uint256 _value) external { require(msg.sender == s.contractOwner, "Raffle: Must be contract owner"); im_link.transfer(_to, _value); } function linkBalance() external view returns (uint256 linkBalance_) { linkBalance_ = im_link.balanceOf(address(this)); } ///////////////////////////////////////////////////////////////////////////////////// function owner() external view override returns (address) { return s.contractOwner; } function transferOwnership(address _newContractOwner) external override { address previousOwner = s.contractOwner; require(msg.sender == previousOwner, "Raffle: Must be contract owner"); s.contractOwner = _newContractOwner; emit OwnershipTransferred(previousOwner, _newContractOwner); } // structs with IO at the end of their name mean they are only used for // arguments and/or return values of functions struct RaffleItemIO { address ticketAddress; uint256 ticketId; RaffleItemPrizeIO[] raffleItemPrizes; } struct RaffleItemPrizeIO { address prizeAddress; uint256 prizeId; uint256 prizeQuantity; } /** * @notice Starts a raffle * @dev The _raffleItems argument tells what ERC1155 tickets can be entered for what ERC1155 prizes. * The _raffleItems get stored in the raffleItems state variable * The raffle prizes that can be won are transferred into this contract. * @param _raffleDuration How long a raffle goes for, in seconds * @param _raffleItems What tickets to enter for what prizes */ function startRaffle(uint256 _raffleDuration, RaffleItemIO[] calldata _raffleItems) external { require(msg.sender == s.contractOwner, "Raffle: Must be contract owner"); require(_raffleDuration >= 3600, "Raffle: _raffleDuration must be greater than 1 hour"); uint256 raffleEnd = block.timestamp + _raffleDuration; require(_raffleItems.length > 0, "Raffle: No raffle items"); uint256 raffleId = s.raffles.length; emit RaffleStarted(raffleId, raffleEnd, _raffleItems); Raffle storage raffle = s.raffles.push(); raffle.raffleEnd = raffleEnd; for (uint256 i; i < _raffleItems.length; i++) { RaffleItemIO calldata raffleItemIO = _raffleItems[i]; require(raffleItemIO.raffleItemPrizes.length > 0, "Raffle: No prizes"); // ticketAddress is ERC1155 contract address of tickets // ticketId is the ERC1155 type id, which type is it require( // The index is one greater than actual index. If index is 0 it means the value does not exist yet. raffle.raffleItemIndexes[raffleItemIO.ticketAddress][raffleItemIO.ticketId] == 0, "Raffle: Raffle item already using ticketAddress and ticketId" ); // A raffle item is a ticketAddress, ticketId and what prizes can be won. RaffleItem storage raffleItem = raffle.raffleItems.push(); // The index is one greater than actual index. If index is 0 it means the value does not exist yet. raffle.raffleItemIndexes[raffleItemIO.ticketAddress][raffleItemIO.ticketId] = raffle.raffleItems.length; raffleItem.ticketAddress = raffleItemIO.ticketAddress; raffleItem.ticketId = raffleItemIO.ticketId; for (uint256 j; j < raffleItemIO.raffleItemPrizes.length; j++) { RaffleItemPrizeIO calldata raffleItemPrizeIO = raffleItemIO.raffleItemPrizes[j]; raffleItem.raffleItemPrizes.push( RaffleItemPrize(raffleItemPrizeIO.prizeAddress, uint96(raffleItemPrizeIO.prizeQuantity), raffleItemPrizeIO.prizeId) ); IERC1155(raffleItemPrizeIO.prizeAddress).safeTransferFrom( msg.sender, address(this), raffleItemPrizeIO.prizeId, raffleItemPrizeIO.prizeQuantity, abi.encode(raffleId) ); } } } /** @notice Handle the receipt of a single ERC1155 token type. @dev An ERC1155-compliant smart contract MUST call this function on the token recipient contract, at the end of a `safeTransferFrom` after the balance has been updated. This function MUST return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61) if it accepts the transfer. This function MUST revert if it rejects the transfer. Return of any other value than the prescribed keccak256 generated value MUST result in the transaction being reverted by the caller. @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)"))` */ function onERC1155Received( address _operator, address _from, uint256 _id, uint256 _value, bytes calldata _data ) external view returns (bytes4) { _operator; // silence not used warning _from; // silence not used warning _id; // silence not used warning _value; // silence not used warning require(_data.length == 32, "Raffle: Data of the wrong size sent on transfer"); uint256 raffleId = abi.decode(_data, (uint256)); require(raffleId < s.raffles.length, "Raffle: Raffle does not exist"); Raffle storage raffle = s.raffles[raffleId]; uint256 raffleEnd = raffle.raffleEnd; require(raffleEnd > block.timestamp, "Raffle: Can't accept transfer for expired raffle"); return ERC1155_ACCEPTED; } struct RaffleIO { uint256 raffleId; uint256 raffleEnd; bool isOpen; } /** * @notice Get simple raffle information */ function getRaffles() external view returns (RaffleIO[] memory raffles_) { raffles_ = new RaffleIO[](s.raffles.length); for (uint256 i; i < s.raffles.length; i++) { uint256 raffleEnd = s.raffles[i].raffleEnd; raffles_[i].raffleId = i; raffles_[i].raffleEnd = raffleEnd; raffles_[i].isOpen = raffleEnd > block.timestamp; } } /** * @notice Get total number of raffles that exist. */ function raffleSupply() external view returns (uint256 raffleSupply_) { raffleSupply_ = s.raffles.length; } /** * @notice Get simple raffle info and all the raffle items in the raffle. * @param _raffleId Which raffle to get info about. */ function raffleInfo(uint256 _raffleId) external view returns ( uint256 raffleEnd_, RaffleItemIO[] memory raffleItems_, uint256 randomNumber_ ) { require(_raffleId < s.raffles.length, "Raffle: Raffle does not exist"); Raffle storage raffle = s.raffles[_raffleId]; raffleEnd_ = raffle.raffleEnd; if (raffle.randomNumberPending == true) { randomNumber_ = 1; } else { randomNumber_ = raffle.randomNumber; } // Loop over and get all the raffle itmes, which includes ERC1155 tickets and ERC1155 prizes raffleItems_ = new RaffleItemIO[](raffle.raffleItems.length); for (uint256 i; i < raffle.raffleItems.length; i++) { RaffleItem storage raffleItem = raffle.raffleItems[i]; raffleItems_[i].ticketAddress = raffleItem.ticketAddress; raffleItems_[i].ticketId = raffleItem.ticketId; raffleItems_[i].raffleItemPrizes = new RaffleItemPrizeIO[](raffleItem.raffleItemPrizes.length); for (uint256 j; j < raffleItem.raffleItemPrizes.length; j++) { RaffleItemPrize storage raffleItemPrize = raffleItem.raffleItemPrizes[j]; raffleItems_[i].raffleItemPrizes[j].prizeAddress = raffleItemPrize.prizeAddress; raffleItems_[i].raffleItemPrizes[j].prizeId = raffleItemPrize.prizeId; raffleItems_[i].raffleItemPrizes[j].prizeQuantity = raffleItemPrize.prizeQuantity; } } } struct EntrantStatsIO { address ticketAddress; // ERC1155 contract address uint256 ticketId; // ERC1155 type id uint256 ticketQuantity; // Number of ERC1155 tokens } /** * @notice Get get ticket info for a single entrant (address) * @param _raffleId Which raffle to get ticket stats about * @param _entrant Who to get stats about */ function entrantStats(uint256 _raffleId, address _entrant) external view returns (EntrantStatsIO[] memory entrantstats_) { require(_raffleId < s.raffles.length, "Raffle: Raffle does not exist"); Raffle storage raffle = s.raffles[_raffleId]; entrantstats_ = new EntrantStatsIO[](raffle.userEntries[_entrant].length); for (uint256 i; i < raffle.userEntries[_entrant].length; i++) { UserEntry memory userEntry = raffle.userEntries[_entrant][i]; RaffleItem storage raffleItem = raffle.raffleItems[userEntry.raffleItemIndex]; entrantstats_[i].ticketAddress = raffleItem.ticketAddress; entrantstats_[i].ticketId = raffleItem.ticketId; entrantstats_[i].ticketQuantity = userEntry.rangeEnd - userEntry.rangeStart; } } struct TicketStatsIO { address ticketAddress; // ERC1155 contract address uint256 ticketId; // ERC1155 type id uint256 numberOfEntrants; // number of unique addresses that entered tickets uint256 totalEntered; // Number of ERC1155 tokens } /** * @notice Returns what tickets have been entered, by how many addresses, and how many ERC1155 tickets entered * @dev It is possible for this function to run out of gas when called off-chain if there are very many users (Infura has gas limit for off-chain calls) * @param _raffleId Which raffle to get info about */ function ticketStats(uint256 _raffleId) external view returns (TicketStatsIO[] memory ticketStats_) { require(_raffleId < s.raffles.length, "Raffle: Raffle does not exist"); Raffle storage raffle = s.raffles[_raffleId]; ticketStats_ = new TicketStatsIO[](raffle.raffleItems.length); // loop through raffle items for (uint256 i; i < raffle.raffleItems.length; i++) { RaffleItem storage raffleItem = raffle.raffleItems[i]; ticketStats_[i].ticketAddress = raffleItem.ticketAddress; ticketStats_[i].ticketId = raffleItem.ticketId; ticketStats_[i].totalEntered = raffleItem.totalEntered; // count the number of users that have ticketd for the raffle item for (uint256 j; j < raffle.entrants.length; j++) { address entrant = raffle.entrants[j]; for (uint256 k; k < raffle.userEntries[entrant].length; k++) { if (i == raffle.userEntries[entrant][k].raffleItemIndex) { ticketStats_[i].numberOfEntrants++; break; } } } } } struct TicketItemIO { address ticketAddress; // ERC1155 contract address (entry ticket), not prize uint256 ticketId; // ERC1155 type id uint256 ticketQuantity; // Number of ERC1155 tokens } /** * @notice Enter ERC1155 tokens for raffle prizes * @dev Creates a new entry in the userEntries array * @param _raffleId Which raffle to ticket in * @param _ticketItems The ERC1155 tokens to ticket */ function enterTickets(uint256 _raffleId, TicketItemIO[] calldata _ticketItems) external { require(_raffleId < s.raffles.length, "Raffle: Raffle does not exist"); require(_ticketItems.length > 0, "Raffle: No tickets"); Raffle storage raffle = s.raffles[_raffleId]; require(raffle.raffleEnd > block.timestamp, "Raffle: Raffle time has expired"); emit RaffleTicketsEntered(_raffleId, msg.sender, _ticketItems); // Collect unique entrant addresses if (raffle.userEntries[msg.sender].length == 0) { raffle.entrants.push(msg.sender); } for (uint256 i; i < _ticketItems.length; i++) { TicketItemIO calldata ticketItem = _ticketItems[i]; require(ticketItem.ticketQuantity > 0, "Raffle: Ticket quantity cannot be zero"); // get the raffle item uint256 raffleItemIndex = raffle.raffleItemIndexes[ticketItem.ticketAddress][ticketItem.ticketId]; require(raffleItemIndex > 0, "Raffle: Raffle item doesn't exist for this raffle"); raffleItemIndex--; RaffleItem storage raffleItem = raffle.raffleItems[raffleItemIndex]; uint256 totalEntered = raffleItem.totalEntered; // Create a range of unique numbers for ticket ids raffle.userEntries[msg.sender].push( UserEntry(uint32(raffleItemIndex), uint112(totalEntered), uint112(totalEntered + ticketItem.ticketQuantity)) ); // update the total quantity of tickets that have been entered for this raffle item raffleItem.totalEntered = totalEntered + ticketItem.ticketQuantity; // transfer the ERC1155 tokens to ticket to this contract IERC1155(ticketItem.ticketAddress).safeTransferFrom( msg.sender, address(this), ticketItem.ticketId, ticketItem.ticketQuantity, abi.encode(_raffleId) ); } } // Get the unique addresses of entrants in a raffle function getEntrants(uint256 _raffleId) external view returns (address[] memory entrants_) { require(_raffleId < s.raffles.length, "Raffle: Raffle does not exist"); Raffle storage raffle = s.raffles[_raffleId]; entrants_ = raffle.entrants; } // Ticket numbers are numbers between 0 and raffleItem.totalEntered - 1 inclusive. // Winning ticket numbers are ticket numbers that won one or more prizes // Prize numbers are numbers between 0 and raffleItemPrize.prizeQuanity - 1 inclusive. // Prize numbers are used to calculate ticket numbers // Winning prize numbers are prize numbers used to calculate winning ticket numbers struct PrizeWinnerIO { address entrant; // user address bool claimed; // has claimed prizes uint256 userEntryIndex; // index into userEntries array (Who entered into raffle and by how much) uint256 raffleItemIndex; // index into RaffleItems array uint256 raffleItemPrizeIndex; // index into RaffleItemPrize array (What is the prize) uint256[] winningPrizeNumbers; // winning prize numbers (The length of the array is the number of prizes won) uint256 prizeId; // ERC1155 type id (ERC1155 type of prize) } /** * @notice Get all winning tickets and their prizes * @dev This can run out of gas when called off-chain because Infura has a gas limit * @param _raffleId Which raffle */ function winners(uint256 _raffleId) external view returns (PrizeWinnerIO[] memory winners_) { require(_raffleId < s.raffles.length, "Raffle: Raffle does not exist"); Raffle storage raffle = s.raffles[_raffleId]; winners_ = winners(_raffleId, raffle.entrants); } /** * @notice Get winning tickets and their prizes by entrant address * @param _raffleId Which raffle */ function winners(uint256 _raffleId, address[] memory _entrants) public view returns (PrizeWinnerIO[] memory winners_) { require(_raffleId < s.raffles.length, "Raffle: Raffle does not exist"); Raffle storage raffle = s.raffles[_raffleId]; uint256 randomNumber = raffle.randomNumber; require(randomNumber > 0, "Raffle: Random number not generated yet"); // get the total number of all prizes in order to initialize the winners_ array { // use a block here to prevent stack too deep error uint256 numRafflePrizes; for (uint256 i; i < raffle.raffleItems.length; i++) { RaffleItemPrize[] storage raffleItemPrizes = raffle.raffleItems[i].raffleItemPrizes; for (uint256 j; j < raffleItemPrizes.length; j++) { numRafflePrizes += raffleItemPrizes[j].prizeQuantity; } } // initialize the winners_ array to make it the largest it possibly could be // later the length will be reset winners_ = new PrizeWinnerIO[](numRafflePrizes); } // Logic: // 1. loop through unique entrant addresses // 2. loop through their tickets // 3. loop through their possible prizes and see if they won // 4. if won then record in winners_ array uint256 winnersNum; for (uint256 h; h < _entrants.length; h++) { address entrant = _entrants[h]; for (uint256 userEntryIndex; userEntryIndex < raffle.userEntries[entrant].length; userEntryIndex++) { UserEntry storage userEntry = raffle.userEntries[entrant][userEntryIndex]; // totalEntered is the total number of ERC1155 tickets of a particular raffle item that have been entered into the raffle // a raffle item is an item in the raffleItems array uint256 totalEntered = raffle.raffleItems[userEntry.raffleItemIndex].totalEntered; RaffleItemPrize[] storage raffleItemPrizes = raffle.raffleItems[userEntry.raffleItemIndex].raffleItemPrizes; for (uint256 raffleItemPrizeIndex; raffleItemPrizeIndex < raffleItemPrizes.length; raffleItemPrizeIndex++) { uint256 winningPrizeNumberIndex; uint256[] memory winningPrizeNumbers = new uint256[](raffleItemPrizes[raffleItemPrizeIndex].prizeQuantity); for (uint256 prizeNumber; prizeNumber < raffleItemPrizes[raffleItemPrizeIndex].prizeQuantity; prizeNumber++) { // Ticket numbers are numbers between 0 and raffleItem.totalEntered - 1 inclusive. uint256 ticketNumber = uint256( keccak256(abi.encodePacked(randomNumber, userEntry.raffleItemIndex, raffleItemPrizeIndex, prizeNumber)) ) % totalEntered; if (ticketNumber >= userEntry.rangeStart && ticketNumber < userEntry.rangeEnd) { winningPrizeNumbers[winningPrizeNumberIndex] = prizeNumber; winningPrizeNumberIndex++; } } if (winningPrizeNumberIndex > 0) { // set the correct size of the winningTickets array assembly { mstore(winningPrizeNumbers, winningPrizeNumberIndex) } // record ticket winning winners_[winnersNum] = PrizeWinnerIO( entrant, raffle.prizeClaimed[msg.sender], userEntryIndex, userEntry.raffleItemIndex, raffleItemPrizeIndex, winningPrizeNumbers, raffleItemPrizes[raffleItemPrizeIndex].prizeId ); // record number of tickets won winnersNum++; } } } } // set the correct size for the winners_ array assembly { mstore(winners_, winnersNum) } } /* This struct information can be gotten from the return results of the winners function */ struct ticketWinIO { uint256 userEntryIndex; // index into a user's array of tickets (which staking attempt won) PrizesWinIO[] prizes; } // Ticket numbers are numbers between 0 and raffleItem.totalEntered - 1 inclusive. // Winning ticket numbers are ticket numbers that won one or more prizes // Prize numbers are numbers between 0 and raffleItemPrize.prizeQuanity - 1 inclusive. // Prize numbers are used to calculate ticket numbers // Winning prize numbers are prize numbers used to calculate winning ticket numbers struct PrizesWinIO { uint256 raffleItemPrizeIndex; // index into the raffleItemPrizes array (which prize was won) uint256[] winningPrizeNumbers; // ticket numbers between 0 and raffleItem.totalEntered that won } /** * @notice Claim prizes won * @dev All items in _wins are verified as actually won by the address that calls this function and reverts otherwise. * @dev Each entrant address can only claim prizes once, so be sure to include all entries and prizes won. * @dev Prizes are transfered to the address that calls this function. * @dev Due to the possibility that an entrant does not claim all the prizes he/she won or the gas cost is too high, * the contractOwner can claim prizes for an entrant. This needs to be used with care so that contractOwner does not * accidentally claim prizes for an entrant that have already been claimed for or by the entrant. * @param _entrant The entrant that won the prizes * @param _raffleId The raffle that prizes were won in. * @param _wins Contains only winning entries and prizes that were won. */ function claimPrize( uint256 _raffleId, address _entrant, ticketWinIO[] calldata _wins ) external { require(_raffleId < s.raffles.length, "Raffle: Raffle does not exist"); Raffle storage raffle = s.raffles[_raffleId]; uint256 randomNumber = raffle.randomNumber; require(randomNumber > 0, "Raffle: Random number not generated yet"); // contractOwner can claim prizes for the entrant. Prizes are only transferred to the entrant require(msg.sender == _entrant || msg.sender == s.contractOwner, "Raffle: Not claimed by owner or contractOwner"); require(raffle.prizeClaimed[_entrant] == false || msg.sender == s.contractOwner, "Raffle: Any prizes for account have already been claimed"); raffle.prizeClaimed[_entrant] = true; // Logic: // 1. Loop through wins // 2. Verify provided userEntryIndex exists and is not a duplicate // 3. Loop through prizes // 4. Verify provided prize exists and is not a duplicate // 5. Loop through winning prize numbers // 6. Verify winning prize number exists and is not a duplicate // 7. Verify that winning prize number actually won // 8. Transfer prizes to winner //-------------------------------------------- // lastValue serves two purposes: // 1. Ensures that a value is less than the length of an array // 2. Prevents duplicates. Subsequent values must be lesser // lastValue gets reused by inner loops uint256 lastValue = raffle.userEntries[_entrant].length; for (uint256 i; i < _wins.length; i++) { ticketWinIO calldata win = _wins[i]; // Serves two purposes: 1. Ensure is less than raffle.userEntries[_entrant].length. 2. prevents duplicates require(win.userEntryIndex < lastValue, "Raffle: User entry does not exist or is not lesser than last value"); UserEntry memory userEntry = raffle.userEntries[_entrant][win.userEntryIndex]; // total number of tickets that have been entered for a raffle item uint256 totalEntered = raffle.raffleItems[userEntry.raffleItemIndex].totalEntered; lastValue = raffle.raffleItems[userEntry.raffleItemIndex].raffleItemPrizes.length; for (uint256 j; j < win.prizes.length; j++) { PrizesWinIO calldata prize = win.prizes[j]; // Serves two purposes: 1. Ensure is less than raffleItemPrizes.length. 2. prevents duplicates require(prize.raffleItemPrizeIndex < lastValue, "Raffle: Raffle prize type does not exist or is not lesser than last value"); RaffleItemPrize memory raffleItemPrize = raffle.raffleItems[userEntry.raffleItemIndex].raffleItemPrizes[prize.raffleItemPrizeIndex]; lastValue = raffleItemPrize.prizeQuantity; for (uint256 k; k < prize.winningPrizeNumbers.length; k++) { uint256 prizeNumber = prize.winningPrizeNumbers[k]; // Serves two purposes: 1. Ensure is less than raffleItemPrize.prizeQuantity. 2. prevents duplicates require(prizeNumber < lastValue, "Raffle: prizeNumber does not exist or is not lesser than last value"); uint256 winningTicketNumber = uint256( keccak256(abi.encodePacked(randomNumber, userEntry.raffleItemIndex, prize.raffleItemPrizeIndex, prizeNumber)) ) % totalEntered; require(winningTicketNumber >= userEntry.rangeStart && winningTicketNumber < userEntry.rangeEnd, "Raffle: Did not win prize"); lastValue = prizeNumber; } emit RaffleClaimPrize(_raffleId, _entrant, raffleItemPrize.prizeAddress, raffleItemPrize.prizeId, prize.winningPrizeNumbers.length); IERC1155(raffleItemPrize.prizeAddress).safeTransferFrom( address(this), _entrant, raffleItemPrize.prizeId, prize.winningPrizeNumbers.length, "" ); lastValue = prize.raffleItemPrizeIndex; } lastValue = win.userEntryIndex; } } }
//SPDX-License-Identifier: MIT pragma solidity 0.7.4; interface LinkTokenInterface { function allowance(address owner, address spender) external view returns (uint256 remaining); function approve(address spender, uint256 value) external returns (bool success); function balanceOf(address owner) external view returns (uint256 balance); function decimals() external view returns (uint8 decimalPlaces); function decreaseApproval(address spender, uint256 addedValue) external returns (bool success); function increaseApproval(address spender, uint256 subtractedValue) external; function name() external view returns (string memory tokenName); function symbol() external view returns (string memory tokenSymbol); function totalSupply() external view returns (uint256 totalTokensIssued); function transfer(address to, uint256 value) external returns (bool success); function transferAndCall( address to, uint256 value, bytes calldata data ) external returns (bool success); function transferFrom( address from, address to, uint256 value ) external returns (bool success); }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.8.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logByte(byte p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(byte)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
//SPDX-License-Identifier: MIT pragma solidity 0.7.4; /** @title ERC-1155 Multi Token Standard @dev See https://eips.ethereum.org/EIPS/eip-1155 Note: The ERC-165 identifier for this interface is 0xd9b67a26. */ /* is ERC165 */ interface IERC1155 { /** @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard). The `_operator` argument MUST be the address of an account/contract that is approved to make the transfer (SHOULD be msg.sender). The `_from` argument MUST be the address of the holder whose balance is decreased. The `_to` argument MUST be the address of the recipient whose balance is increased. The `_id` argument MUST be the token type being transferred. The `_value` argument MUST be the number of tokens the holder balance is decreased by and match what the recipient balance is increased by. When minting/creating tokens, the `_from` argument MUST be set to `0x0` (i.e. zero address). When burning/destroying tokens, the `_to` argument MUST be set to `0x0` (i.e. zero address). */ event TransferSingle(address indexed _operator, address indexed _from, address indexed _to, uint256 _id, uint256 _value); /** @dev Either `TransferSingle` or `TransferBatch` MUST emit when tokens are transferred, including zero value transfers as well as minting or burning (see "Safe Transfer Rules" section of the standard). The `_operator` argument MUST be the address of an account/contract that is approved to make the transfer (SHOULD be msg.sender). The `_from` argument MUST be the address of the holder whose balance is decreased. The `_to` argument MUST be the address of the recipient whose balance is increased. The `_ids` argument MUST be the list of tokens being transferred. The `_values` argument MUST be the list of number of tokens (matching the list and order of tokens specified in _ids) the holder balance is decreased by and match what the recipient balance is increased by. When minting/creating tokens, the `_from` argument MUST be set to `0x0` (i.e. zero address). When burning/destroying tokens, the `_to` argument MUST be set to `0x0` (i.e. zero address). */ event TransferBatch(address indexed _operator, address indexed _from, address indexed _to, uint256[] _ids, uint256[] _values); /** @dev MUST emit when approval for a second party/operator address to manage all tokens for an owner address is enabled or disabled (absence of an event assumes disabled). */ event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved); /** @dev MUST emit when the URI is updated for a token ID. URIs are defined in RFC 3986. The URI MUST point to a JSON file that conforms to the "ERC-1155 Metadata URI JSON Schema". */ event URI(string _value, uint256 indexed _id); /** @notice Transfers `_value` amount of an `_id` from the `_from` address to the `_to` address specified (with safety call). @dev Caller must be approved to manage the tokens being transferred out of the `_from` account (see "Approval" section of the standard). MUST revert if `_to` is the zero address. MUST revert if balance of holder for token `_id` is lower than the `_value` sent. MUST revert on any other error. MUST emit the `TransferSingle` event to reflect the balance change (see "Safe Transfer Rules" section of the standard). After the above conditions are met, this function MUST check if `_to` is a smart contract (e.g. code size > 0). If so, it MUST call `onERC1155Received` on `_to` and act appropriately (see "Safe Transfer Rules" section of the standard). @param _from Source address @param _to Target address @param _id ID of the token type @param _value Transfer amount @param _data Additional data with no specified format, MUST be sent unaltered in call to `onERC1155Received` on `_to` */ function safeTransferFrom( address _from, address _to, uint256 _id, uint256 _value, bytes calldata _data ) external; /** @notice Transfers `_values` amount(s) of `_ids` from the `_from` address to the `_to` address specified (with safety call). @dev Caller must be approved to manage the tokens being transferred out of the `_from` account (see "Approval" section of the standard). MUST revert if `_to` is the zero address. MUST revert if length of `_ids` is not the same as length of `_values`. MUST revert if any of the balance(s) of the holder(s) for token(s) in `_ids` is lower than the respective amount(s) in `_values` sent to the recipient. MUST revert on any other error. MUST emit `TransferSingle` or `TransferBatch` event(s) such that all the balance changes are reflected (see "Safe Transfer Rules" section of the standard). Balance changes and events MUST follow the ordering of the arrays (_ids[0]/_values[0] before _ids[1]/_values[1], etc). After the above conditions for the transfer(s) in the batch are met, this function MUST check if `_to` is a smart contract (e.g. code size > 0). If so, it MUST call the relevant `ERC1155TokenReceiver` hook(s) on `_to` and act appropriately (see "Safe Transfer Rules" section of the standard). @param _from Source address @param _to Target address @param _ids IDs of each token type (order and length must match _values array) @param _values Transfer amounts per token type (order and length must match _ids array) @param _data Additional data with no specified format, MUST be sent unaltered in call to the `ERC1155TokenReceiver` hook(s) on `_to` */ function safeBatchTransferFrom( address _from, address _to, uint256[] calldata _ids, uint256[] calldata _values, bytes calldata _data ) external; /** @notice Get the balance of an account's tokens. @param _owner The address of the token holder @param _id ID of the token @return The _owner's balance of the token type requested */ function balanceOf(address _owner, uint256 _id) external view returns (uint256); /** @notice Get the balance of multiple account/token pairs @param _owners The addresses of the token holders @param _ids ID of the tokens @return The _owner's balance of the token types requested (i.e. balance for each (owner, id) pair) */ function balanceOfBatch(address[] calldata _owners, uint256[] calldata _ids) external view returns (uint256[] memory); /** @notice Enable or disable approval for a third party ("operator") to manage all of the caller's tokens. @dev MUST emit the ApprovalForAll event on success. @param _operator Address to add to the set of authorized operators @param _approved True if the operator is approved, false to revoke approval */ function setApprovalForAll(address _operator, bool _approved) external; /** @notice Queries the approval status of an operator for a given owner. @param _owner The owner of the tokens @param _operator Address of authorized operator @return True if the operator is approved, false if not */ function isApprovedForAll(address _owner, address _operator) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.7.4; /// @title ERC-173 Contract Ownership Standard /// Note: the ERC-165 identifier for this interface is 0x7f5828d0 /* is ERC165 */ interface IERC173 { /// @dev This emits when ownership of a contract changes. event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /// @notice Get the address of the owner /// @return owner_ The address of the owner. function owner() external view returns (address owner_); /// @notice Set the address of the new owner of the contract /// @dev Set _newOwner to address(0) to renounce any ownership. /// @param _newOwner The address of the new owner of the contract function transferOwnership(address _newOwner) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.7.4; interface IERC165 { /// @notice Query if a contract implements an interface /// @param interfaceId The interface identifier, as specified in ERC-165 /// @dev Interface identification is specified in ERC-165. This function /// uses less than 30,000 gas. /// @return `true` if the contract implements `interfaceID` and /// `interfaceID` is not 0xffffffff, `false` otherwise function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 20000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_contractOwner","type":"address"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_link","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"raffleId","type":"uint256"},{"indexed":false,"internalType":"address","name":"entrant","type":"address"},{"indexed":false,"internalType":"address","name":"prizeAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"prizeId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"prizeQuantity","type":"uint256"}],"name":"RaffleClaimPrize","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"raffleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"randomNumber","type":"uint256"}],"name":"RaffleRandomNumber","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"raffleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"raffleEnd","type":"uint256"},{"components":[{"internalType":"address","name":"ticketAddress","type":"address"},{"internalType":"uint256","name":"ticketId","type":"uint256"},{"components":[{"internalType":"address","name":"prizeAddress","type":"address"},{"internalType":"uint256","name":"prizeId","type":"uint256"},{"internalType":"uint256","name":"prizeQuantity","type":"uint256"}],"internalType":"struct RafflesContract.RaffleItemPrizeIO[]","name":"raffleItemPrizes","type":"tuple[]"}],"indexed":false,"internalType":"struct RafflesContract.RaffleItemIO[]","name":"raffleItems","type":"tuple[]"}],"name":"RaffleStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"raffleId","type":"uint256"},{"indexed":false,"internalType":"address","name":"entrant","type":"address"},{"components":[{"internalType":"address","name":"ticketAddress","type":"address"},{"internalType":"uint256","name":"ticketId","type":"uint256"},{"internalType":"uint256","name":"ticketQuantity","type":"uint256"}],"indexed":false,"internalType":"struct RafflesContract.TicketItemIO[]","name":"ticketItems","type":"tuple[]"}],"name":"RaffleTicketsEntered","type":"event"},{"inputs":[{"internalType":"uint256","name":"_newFee","type":"uint256"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"}],"name":"changeVRFFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_raffleId","type":"uint256"},{"internalType":"address","name":"_entrant","type":"address"},{"components":[{"internalType":"uint256","name":"userEntryIndex","type":"uint256"},{"components":[{"internalType":"uint256","name":"raffleItemPrizeIndex","type":"uint256"},{"internalType":"uint256[]","name":"winningPrizeNumbers","type":"uint256[]"}],"internalType":"struct RafflesContract.PrizesWinIO[]","name":"prizes","type":"tuple[]"}],"internalType":"struct RafflesContract.ticketWinIO[]","name":"_wins","type":"tuple[]"}],"name":"claimPrize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_raffleId","type":"uint256"}],"name":"drawRandomNumber","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_raffleId","type":"uint256"},{"components":[{"internalType":"address","name":"ticketAddress","type":"address"},{"internalType":"uint256","name":"ticketId","type":"uint256"},{"internalType":"uint256","name":"ticketQuantity","type":"uint256"}],"internalType":"struct RafflesContract.TicketItemIO[]","name":"_ticketItems","type":"tuple[]"}],"name":"enterTickets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_raffleId","type":"uint256"},{"internalType":"address","name":"_entrant","type":"address"}],"name":"entrantStats","outputs":[{"components":[{"internalType":"address","name":"ticketAddress","type":"address"},{"internalType":"uint256","name":"ticketId","type":"uint256"},{"internalType":"uint256","name":"ticketQuantity","type":"uint256"}],"internalType":"struct RafflesContract.EntrantStatsIO[]","name":"entrantstats_","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_raffleId","type":"uint256"}],"name":"getEntrants","outputs":[{"internalType":"address[]","name":"entrants_","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRaffles","outputs":[{"components":[{"internalType":"uint256","name":"raffleId","type":"uint256"},{"internalType":"uint256","name":"raffleEnd","type":"uint256"},{"internalType":"bool","name":"isOpen","type":"bool"}],"internalType":"struct RafflesContract.RaffleIO[]","name":"raffles_","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"linkBalance","outputs":[{"internalType":"uint256","name":"linkBalance_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_keyHash","type":"bytes32"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"nonce_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_raffleId","type":"uint256"}],"name":"raffleInfo","outputs":[{"internalType":"uint256","name":"raffleEnd_","type":"uint256"},{"components":[{"internalType":"address","name":"ticketAddress","type":"address"},{"internalType":"uint256","name":"ticketId","type":"uint256"},{"components":[{"internalType":"address","name":"prizeAddress","type":"address"},{"internalType":"uint256","name":"prizeId","type":"uint256"},{"internalType":"uint256","name":"prizeQuantity","type":"uint256"}],"internalType":"struct RafflesContract.RaffleItemPrizeIO[]","name":"raffleItemPrizes","type":"tuple[]"}],"internalType":"struct RafflesContract.RaffleItemIO[]","name":"raffleItems_","type":"tuple[]"},{"internalType":"uint256","name":"randomNumber_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleSupply","outputs":[{"internalType":"uint256","name":"raffleSupply_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_requestId","type":"bytes32"},{"internalType":"uint256","name":"_randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"removeLinkTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_raffleDuration","type":"uint256"},{"components":[{"internalType":"address","name":"ticketAddress","type":"address"},{"internalType":"uint256","name":"ticketId","type":"uint256"},{"components":[{"internalType":"address","name":"prizeAddress","type":"address"},{"internalType":"uint256","name":"prizeId","type":"uint256"},{"internalType":"uint256","name":"prizeQuantity","type":"uint256"}],"internalType":"struct RafflesContract.RaffleItemPrizeIO[]","name":"raffleItemPrizes","type":"tuple[]"}],"internalType":"struct RafflesContract.RaffleItemIO[]","name":"_raffleItems","type":"tuple[]"}],"name":"startRaffle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_raffleId","type":"uint256"}],"name":"ticketStats","outputs":[{"components":[{"internalType":"address","name":"ticketAddress","type":"address"},{"internalType":"uint256","name":"ticketId","type":"uint256"},{"internalType":"uint256","name":"numberOfEntrants","type":"uint256"},{"internalType":"uint256","name":"totalEntered","type":"uint256"}],"internalType":"struct RafflesContract.TicketStatsIO[]","name":"ticketStats_","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newContractOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_raffleId","type":"uint256"}],"name":"winners","outputs":[{"components":[{"internalType":"address","name":"entrant","type":"address"},{"internalType":"bool","name":"claimed","type":"bool"},{"internalType":"uint256","name":"userEntryIndex","type":"uint256"},{"internalType":"uint256","name":"raffleItemIndex","type":"uint256"},{"internalType":"uint256","name":"raffleItemPrizeIndex","type":"uint256"},{"internalType":"uint256[]","name":"winningPrizeNumbers","type":"uint256[]"},{"internalType":"uint256","name":"prizeId","type":"uint256"}],"internalType":"struct RafflesContract.PrizeWinnerIO[]","name":"winners_","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_raffleId","type":"uint256"},{"internalType":"address[]","name":"_entrants","type":"address[]"}],"name":"winners","outputs":[{"components":[{"internalType":"address","name":"entrant","type":"address"},{"internalType":"bool","name":"claimed","type":"bool"},{"internalType":"uint256","name":"userEntryIndex","type":"uint256"},{"internalType":"uint256","name":"raffleItemIndex","type":"uint256"},{"internalType":"uint256","name":"raffleItemPrizeIndex","type":"uint256"},{"internalType":"uint256[]","name":"winningPrizeNumbers","type":"uint256[]"},{"internalType":"uint256","name":"prizeId","type":"uint256"}],"internalType":"struct RafflesContract.PrizeWinnerIO[]","name":"winners_","type":"tuple[]"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b50604051620043a0380380620043a083398101604081905262000034916200011c565b60058054606095861b6001600160601b031990811660a0529490951b84166080526004929092556001600160601b039081166001600160a01b039095166c010000000000000000000000000293169290921716919091179055600060208190527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1990811660019081179092556307f5828d60e41b9092527feddca8dd33b41bff4f2689af38c5006161c5d608c330f99c8fe70d8b11b59a40805490921617905562000178565b80516001600160a01b03811681146200011757600080fd5b919050565b600080600080600060a0868803121562000134578081fd5b6200013f86620000ff565b94506200014f60208701620000ff565b93506200015f60408701620000ff565b6060870151608090970151959894975095949392505050565b60805160601c60a05160601c6141ea620001b6600039806114f3528061299f52508061077952806113975280611c3c528061296352506141ea6000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c80639e317f12116100d8578063c26ecefa1161008c578063f23a6e6111610066578063f23a6e611461031b578063f2fde38b1461033b578063fbea56e01461034e57610177565b8063c26ecefa146102ed578063d1a4692a146102f5578063ec9fabb71461030857610177565b8063a2fb1175116100bd578063a2fb11751461028b578063abc00bb4146102ab578063bf30d790146102cb57610177565b80639e317f1214610263578063a18723c51461027657610177565b8063599d127a1161012f578063781f653e11610114578063781f653e146102285780638da5cb5b1461023b57806394985ddd1461025057610177565b8063599d127a14610200578063761e99f01461021557610177565b8063339a640311610160578063339a6403146101c55780634e3347c7146101da57806357b0ef44146101ed57610177565b806301ffc9a71461017c578063049dce8f146101a5575b600080fd5b61018f61018a366004612e13565b61036e565b60405161019c91906135ff565b60405180910390f35b6101b86101b3366004612e6b565b6103a9565b60405161019c91906133f3565b6101d86101d3366004612dda565b61061d565b005b6101d86101e8366004612fa2565b610883565b6101d86101fb366004612e96565b610cf9565b61020861130d565b60405161019c9190613e14565b6101d8610223366004612d91565b611313565b6101d8610236366004612df2565b611425565b6102436114af565b60405161019c91906131f2565b6101d861025e366004612df2565b6114db565b610208610271366004612dda565b611655565b61027e611667565b60405161019c9190613537565b61029e610299366004612dda565b61175c565b60405161019c9190613435565b6102be6102b9366004612dda565b61181b565b60405161019c9190613399565b6102de6102d9366004612dda565b6118d2565b60405161019c93929190613f63565b610208611bfc565b61029e610303366004612eee565b611cc6565b6101d8610316366004612fec565b6121ab565b61032e610329366004612cf0565b61256d565b60405161019c919061363b565b6101d8610349366004612cd6565b612639565b61036161035c366004612dda565b6126f4565b60405161019c9190613592565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526020819052604090205460ff165b919050565b60015460609083106103d65760405162461bcd60e51b81526004016103cd906136fc565b60405180910390fd5b60008060010184815481106103e757fe5b6000918252602080832073ffffffffffffffffffffffffffffffffffffffff871684526002600890930201918201905260409091205490915067ffffffffffffffff8111801561043657600080fd5b5060405190808252806020026020018201604052801561047057816020015b61045d612b25565b8152602001906001900390816104555790505b50915060005b73ffffffffffffffffffffffffffffffffffffffff84166000908152600283016020526040902054811015610615576104ad612b5c565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260028401602052604090208054839081106104e057fe5b6000918252602080832060408051606081018252939091015463ffffffff81168085526dffffffffffffffffffffffffffff640100000000830481169486019490945272010000000000000000000000000000000000009091049092169083015260018601805492945091811061055357fe5b600091825260209091206004909102018054865191925073ffffffffffffffffffffffffffffffffffffffff169086908590811061058d57fe5b602090810291909101015173ffffffffffffffffffffffffffffffffffffffff9091169052600181015485518690859081106105c557fe5b6020026020010151602001818152505081602001518260400151036dffffffffffffffffffffffffffff168584815181106105fc57fe5b6020908102919091010151604001525050600101610476565b505092915050565b600154811061063e5760405162461bcd60e51b81526004016103cd906136fc565b600080600101828154811061064f57fe5b90600052602060002090600802019050428160070154106106825760405162461bcd60e51b81526004016103cd906139b8565b6005810154156106a45760405162461bcd60e51b81526004016103cd90613cfd565b600681015460ff1615806106df57506005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6106fb5760405162461bcd60e51b81526004016103cd90613983565b6006810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556005546040517f70a082310000000000000000000000000000000000000000000000000000000081526bffffffffffffffffffffffff9091169073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a08231906107ae9030906004016131f2565b60206040518083038186803b1580156107c657600080fd5b505afa1580156107da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fe9190612e53565b101561081c5760405162461bcd60e51b81526004016103cd9061385b565b60045460055460405160009261086d9290916bffffffffffffffffffffffff9091169061084f904390339060200161317f565b6040516020818303038152906040528051906020012060001c61295f565b6000908152600360205260409020929092555050565b6005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633146108ca5760405162461bcd60e51b81526004016103cd90613d5a565b610e108310156108ec5760405162461bcd60e51b81526004016103cd90613733565b4283018161090c5760405162461bcd60e51b81526004016103cd90613668565b60015460405181907fb44ac0470da898b318be8ceeafb224dd8540bb2200607aa1b4def46f9dd9de889061094590859088908890613e1d565b60405180910390a260018054808201825560009182526008027fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cfd81018490557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf601905b84811015610cf057368686838181106109bd57fe5b90506020028101906109cf919061415d565b905060006109e060408301836140bb565b9050116109ff5760405162461bcd60e51b81526004016103cd9061394c565b826000610a0f6020840184612cd6565b73ffffffffffffffffffffffffffffffffffffffff1681526020808201929092526040908101600090812084840135825290925290205415610a635760405162461bcd60e51b81526004016103cd90613aa9565b600180840180549182018082556000918252602080832060049094029093019290918691610a9390860186612cd6565b73ffffffffffffffffffffffffffffffffffffffff168152602080820192909252604090810160009081208684018035835293522091909155610ad69083612cd6565b81547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff919091161781556020820135600182015560005b610b3060408401846140bb565b9050811015610ce55736610b4760408501856140bb565b83818110610b5157fe5b9050606002019050826003016040518060600160405280836000016020810190610b7b9190612cd6565b73ffffffffffffffffffffffffffffffffffffffff90811682526bffffffffffffffffffffffff6040808701358216602080860191909152878101803595830195909552865460018181018955600098895297829020875160029092020180549288015190941674010000000000000000000000000000000000000000029085167fffffffffffffffffffffffff0000000000000000000000000000000000000000909216919091179093169290921781559201519190920155610c3f9082612cd6565b73ffffffffffffffffffffffffffffffffffffffff1663f242432a3330846020013585604001358c604051602001610c779190613e14565b6040516020818303038152906040526040518663ffffffff1660e01b8152600401610ca6959493929190613213565b600060405180830381600087803b158015610cc057600080fd5b505af1158015610cd4573d6000803e3d6000fd5b505060019093019250610b23915050565b5050506001016109a8565b50505050505050565b6001548410610d1a5760405162461bcd60e51b81526004016103cd906136fc565b6000806001018581548110610d2b57fe5b9060005260206000209060080201905060008160050154905060008111610d645760405162461bcd60e51b81526004016103cd90613892565b3373ffffffffffffffffffffffffffffffffffffffff86161480610daf57506005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b610dcb5760405162461bcd60e51b81526004016103cd90613b06565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260038301602052604090205460ff161580610e2957506005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b610e455760405162461bcd60e51b81526004016103cd906137fe565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600383016020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560028501909152812054905b848110156113035736868683818110610eb957fe5b9050602002810190610ecb9190614120565b905080358311610eed5760405162461bcd60e51b81526004016103cd90613d91565b610ef5612b5c565b73ffffffffffffffffffffffffffffffffffffffff89166000908152600287016020526040902080548335908110610f2957fe5b6000918252602080832060408051606081018252939091015463ffffffff81168085526dffffffffffffffffffffffffffff6401000000008304811694860194909452720100000000000000000000000000000000000090910490921690830152600189018054929450918110610f9c57fe5b906000526020600020906004020160020154905086600101826000015163ffffffff1681548110610fc957fe5b6000918252602082206003600490920201015495505b610fec6020850185614056565b90508110156112f457366110036020860186614056565b8381811061100d57fe5b905060200281019061101f9190614120565b9050803587116110415760405162461bcd60e51b81526004016103cd90613b63565b611049612b5c565b89600101856000015163ffffffff168154811061106257fe5b906000526020600020906004020160030182600001358154811061108257fe5b60009182526020808320604080516060810182526002909402909101805473ffffffffffffffffffffffffffffffffffffffff811685526bffffffffffffffffffffffff74010000000000000000000000000000000000000000909104169284018390526001015490830152995091505b6111006020840184614056565b90508110156111e85760006111186020850185614056565b8381811061112257fe5b90506020020135905089811061114a5760405162461bcd60e51b81526004016103cd90613c7a565b86516040516000918891611167918f9189359087906020016131b2565b6040516020818303038152906040528051906020012060001c8161118757fe5b06905087602001516dffffffffffffffffffffffffffff1681101580156111c1575087604001516dffffffffffffffffffffffffffff1681105b6111dd5760405162461bcd60e51b81526004016103cd906137c7565b5098506001016110f3565b508d7f61dd2cf3e9f248b4453e8abb61b6ad73c53cf482d1c506f868a3885f533233cf8e836000015184604001518680602001906112269190614056565b60405161123695949392506132c3565b60405180910390a2806000015173ffffffffffffffffffffffffffffffffffffffff1663f242432a308f84604001518680602001906112759190614056565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526112b195949392506004016132f9565b600060405180830381600087803b1580156112cb57600080fd5b505af11580156112df573d6000803e3d6000fd5b5050923598505060019092019150610fdf9050565b50509035925050600101610ea4565b5050505050505050565b60015490565b6005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff16331461135a5760405162461bcd60e51b81526004016103cd90613d5a565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906113ce908590859060040161333e565b602060405180830381600087803b1580156113e857600080fd5b505af11580156113fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114209190612dba565b505050565b6005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff16331461146c5760405162461bcd60e51b81526004016103cd90613d5a565b600580547fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166bffffffffffffffffffffffff9390931692909217909155600455565b6005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1690565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146115305760405162461bcd60e51b81526004016103cd90613a72565b60008281526003602052604090205460015481106115605760405162461bcd60e51b81526004016103cd906136fc565b600080600101828154811061157157fe5b90600052602060002090600802019050428160070154106115a45760405162461bcd60e51b81526004016103cd906139b8565b6005810154156115c65760405162461bcd60e51b81526004016103cd90613cfd565b82600060010183815481106115d757fe5b60009182526020909120600560089092020101556006810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905560405182907f37e68548bed90aa11745696116f838a60b0bba40fc3f77a139aee9e3b828a08e90611647908690613e14565b60405180910390a250505050565b60009081526002602052604090205490565b60015460609067ffffffffffffffff8111801561168357600080fd5b506040519080825280602002602001820160405280156116bd57816020015b6116aa612b7c565b8152602001906001900390816116a25790505b50905060005b6001548110156117585760008060010182815481106116de57fe5b9060005260206000209060080201600701549050818383815181106116ff57fe5b602002602001015160000181815250508083838151811061171c57fe5b6020026020010151602001818152505042811183838151811061173b57fe5b6020908102919091010151901515604090910152506001016116c3565b5090565b60015460609082106117805760405162461bcd60e51b81526004016103cd906136fc565b600080600101838154811061179157fe5b90600052602060002090600802019050611814838260040180548060200260200160405190810160405280929190818152602001828054801561180a57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff1681526001909101906020018083116117df575b5050505050611cc6565b9392505050565b600154606090821061183f5760405162461bcd60e51b81526004016103cd906136fc565b600080600101838154811061185057fe5b90600052602060002090600802019050806004018054806020026020016040519081016040528092919081815260200182805480156118c557602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff16815260019091019060200180831161189a575b5050505050915050919050565b600154600090606090829084106118fb5760405162461bcd60e51b81526004016103cd906136fc565b600080600101858154811061190c57fe5b60009182526020909120600760089092020190810154600682015490955090915060ff16151560011415611943576001915061194b565b806005015491505b600181015467ffffffffffffffff8111801561196657600080fd5b506040519080825280602002602001820160405280156119a057816020015b61198d612b9f565b8152602001906001900390816119855790505b50925060005b6001820154811015611bf35760008260010182815481106119c357fe5b600091825260209091206004909102018054865191925073ffffffffffffffffffffffffffffffffffffffff16908690849081106119fd57fe5b602090810291909101015173ffffffffffffffffffffffffffffffffffffffff909116905260018101548551869084908110611a3557fe5b6020908102919091018101510152600381015467ffffffffffffffff81118015611a5e57600080fd5b50604051908082528060200260200182016040528015611a9857816020015b611a85612b25565b815260200190600190039081611a7d5790505b50858381518110611aa557fe5b60200260200101516040018190525060005b6003820154811015611be9576000826003018281548110611ad457fe5b600091825260209091206002909102018054885191925073ffffffffffffffffffffffffffffffffffffffff1690889086908110611b0e57fe5b6020026020010151604001518381518110611b2557fe5b602090810291909101015173ffffffffffffffffffffffffffffffffffffffff909116905260018101548751889086908110611b5d57fe5b6020026020010151604001518381518110611b7457fe5b602090810291909101810151015280548751740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff1690889086908110611bba57fe5b6020026020010151604001518381518110611bd157fe5b60209081029190910101516040015250600101611ab7565b50506001016119a6565b50509193909250565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a0823190611c719030906004016131f2565b60206040518083038186803b158015611c8957600080fd5b505afa158015611c9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cc19190612e53565b905090565b6001546060908310611cea5760405162461bcd60e51b81526004016103cd906136fc565b6000806001018481548110611cfb57fe5b9060005260206000209060080201905060008160050154905060008111611d345760405162461bcd60e51b81526004016103cd90613892565b6000805b6001840154811015611dce576000846001018281548110611d5557fe5b9060005260206000209060040201600301905060005b8154811015611dc457818181548110611d8057fe5b60009182526020909120600290910201547401000000000000000000000000000000000000000090046bffffffffffffffffffffffff169390930192600101611d6b565b5050600101611d38565b508067ffffffffffffffff81118015611de657600080fd5b50604051908082528060200260200182016040528015611e2057816020015b611e0d612bd6565b815260200190600190039081611e055790505b509350506000805b855181101561219f576000868281518110611e3f57fe5b6020026020010151905060005b73ffffffffffffffffffffffffffffffffffffffff821660009081526002870160205260409020548110156121955773ffffffffffffffffffffffffffffffffffffffff821660009081526002870160205260408120805483908110611eae57fe5b60009182526020822001805460018a0180549294509163ffffffff909116908110611ed557fe5b60009182526020822060026004909202010154835460018b0180549294509163ffffffff909116908110611f0557fe5b9060005260206000209060040201600301905060005b81548110156121855760006060838381548110611f3457fe5b60009182526020909120600290910201547401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1667ffffffffffffffff81118015611f8157600080fd5b50604051908082528060200260200182016040528015611fab578160200160208202803683370190505b50905060005b848481548110611fbd57fe5b60009182526020909120600290910201547401000000000000000000000000000000000000000090046bffffffffffffffffffffffff168110156120ca576000868d8960000160009054906101000a900463ffffffff16878560405160200161202994939291906131b2565b6040516020818303038152906040528051906020012060001c8161204957fe5b8954919006915064010000000090046dffffffffffffffffffffffffffff16811080159061209d57508754720100000000000000000000000000000000000090046dffffffffffffffffffffffffffff1681105b156120c157818385815181106120af57fe5b60209081029190910101526001909301925b50600101611fb1565b50811561217b578181526040805160e08101825273ffffffffffffffffffffffffffffffffffffffff8a16815233600090815260038f016020908152908390205460ff16151590820152908101889052865463ffffffff1660608201526080810184905260a08101829052845460c082019086908690811061214857fe5b9060005260206000209060020201600101548152508d8b8151811061216957fe5b60209081029190910101526001909901985b5050600101611f1b565b505060019092019150611e4c9050565b5050600101611e28565b50835250909392505050565b60015483106121cc5760405162461bcd60e51b81526004016103cd906136fc565b806121e95760405162461bcd60e51b81526004016103cd90613790565b60008060010184815481106121fa57fe5b906000526020600020906008020190504281600701541161222d5760405162461bcd60e51b81526004016103cd90613be6565b837f11bafd320b20b453e37e76ddd7d80347a86411bafe26e90624da8a8dcdcdd42933858560405161226193929190613263565b60405180910390a23360009081526002820160205260409020546122bf57600481018054600181018255600091825260209091200180547fffffffffffffffffffffffff000000000000000000000000000000000000000016331790555b60005b8281101561256657368484838181106122d757fe5b905060600201905060008160400135116123035760405162461bcd60e51b81526004016103cd90613a15565b600083816123146020850185612cd6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083602001358152602001908152602001600020549050600081116123865760405162461bcd60e51b81526004016103cd906138ef565b80806001900391505060008460010182815481106123a057fe5b6000918252602080832060026004909302018281018054338652938a0183526040808620815160608101835263ffffffff808b1682526dffffffffffffffffffffffffffff8089168389019081528d8601358a018083169685019687528554600181018755958c529a899020935193909401805494519551821672010000000000000000000000000000000000000271ffffffffffffffffffffffffffffffffffff96909216640100000000027fffffffffffffffffffffffffffff0000000000000000000000000000ffffffff949093167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000009095169490941792909216179290921691909117905593909355919250906124bd90850185612cd6565b73ffffffffffffffffffffffffffffffffffffffff1663f242432a3330876020013588604001358e6040516020016124f59190613e14565b6040516020818303038152906040526040518663ffffffff1660e01b8152600401612524959493929190613213565b600060405180830381600087803b15801561253e57600080fd5b505af1158015612552573d6000803e3d6000fd5b5050600190960195506122c2945050505050565b5050505050565b60006020821461258f5760405162461bcd60e51b81526004016103cd90613c1d565b600061259d83850185612dda565b60015490915081106125c15760405162461bcd60e51b81526004016103cd906136fc565b60008060010182815481106125d257fe5b9060005260206000209060080201905060008160070154905042811161260a5760405162461bcd60e51b81526004016103cd9061369f565b507ff23a6e61000000000000000000000000000000000000000000000000000000009998505050505050505050565b6005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff163381146126815760405162461bcd60e51b81526004016103cd90613d5a565b600580546bffffffffffffffffffffffff166c0100000000000000000000000073ffffffffffffffffffffffffffffffffffffffff85811691820292909217909255604051908316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60015460609082106127185760405162461bcd60e51b81526004016103cd906136fc565b600080600101838154811061272957fe5b90600052602060002090600802019050806001018054905067ffffffffffffffff8111801561275757600080fd5b5060405190808252806020026020018201604052801561279157816020015b61277e612c2b565b8152602001906001900390816127765790505b50915060005b60018201548110156129585760008260010182815481106127b457fe5b600091825260209091206004909102018054855191925073ffffffffffffffffffffffffffffffffffffffff16908590849081106127ee57fe5b602090810291909101015173ffffffffffffffffffffffffffffffffffffffff90911690526001810154845185908490811061282657fe5b60200260200101516020018181525050806002015484838151811061284757fe5b6020026020010151606001818152505060005b600484015481101561294e57600084600401828154811061287757fe5b600091825260208220015473ffffffffffffffffffffffffffffffffffffffff1691505b73ffffffffffffffffffffffffffffffffffffffff821660009081526002870160205260409020548110156129445773ffffffffffffffffffffffffffffffffffffffff8216600090815260028701602052604090208054829081106128fd57fe5b60009182526020909120015463ffffffff1685141561293c5786858151811061292257fe5b602090810291909101015160400180516001019052612944565b60010161289b565b505060010161285a565b5050600101612797565b5050919050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634000aea07f00000000000000000000000000000000000000000000000000000000000000008587866040516020016129d2929190613171565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016129ff93929190613364565b602060405180830381600087803b158015612a1957600080fd5b505af1158015612a2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a519190612dba565b50600084815260026020526040812054612a7090869085903090612a9a565b6000868152600260205260409020805460010190559050612a918582612af2565b95945050505050565b600084848484604051602001612ab3949392919061360a565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209091012095945050505050565b60008282604051602001612b07929190613171565b60405160208183030381529060405280519060200120905092915050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b604051806060016040528060008152602001600081526020016000151581525090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001606081525090565b6040518060e00160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160001515815260200160008152602001600081526020016000815260200160608152602001600081525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001600081525090565b803573ffffffffffffffffffffffffffffffffffffffff811681146103a457600080fd5b60008083601f840112612c9e578081fd5b50813567ffffffffffffffff811115612cb5578182fd5b6020830191508360208083028501011115612ccf57600080fd5b9250929050565b600060208284031215612ce7578081fd5b61181482612c69565b60008060008060008060a08789031215612d08578182fd5b612d1187612c69565b9550612d1f60208801612c69565b94506040870135935060608701359250608087013567ffffffffffffffff80821115612d49578384fd5b818901915089601f830112612d5c578384fd5b813581811115612d6a578485fd5b8a6020828501011115612d7b578485fd5b6020830194508093505050509295509295509295565b60008060408385031215612da3578182fd5b612dac83612c69565b946020939093013593505050565b600060208284031215612dcb578081fd5b81518015158114611814578182fd5b600060208284031215612deb578081fd5b5035919050565b60008060408385031215612e04578182fd5b50508035926020909101359150565b600060208284031215612e24578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611814578182fd5b600060208284031215612e64578081fd5b5051919050565b60008060408385031215612e7d578182fd5b82359150612e8d60208401612c69565b90509250929050565b60008060008060608587031215612eab578384fd5b84359350612ebb60208601612c69565b9250604085013567ffffffffffffffff811115612ed6578283fd5b612ee287828801612c8d565b95989497509550505050565b60008060408385031215612f00578182fd5b8235915060208084013567ffffffffffffffff80821115612f1f578384fd5b818601915086601f830112612f32578384fd5b813581811115612f3e57fe5b8381029150612f4e848301614190565b8181528481019084860184860187018b1015612f68578788fd5b8795505b83861015612f9157612f7d81612c69565b835260019590950194918601918601612f6c565b508096505050505050509250929050565b600080600060408486031215612fb6578283fd5b83359250602084013567ffffffffffffffff811115612fd3578283fd5b612fdf86828701612c8d565b9497909650939450505050565b600080600060408486031215613000578081fd5b83359250602084013567ffffffffffffffff8082111561301e578283fd5b818601915086601f830112613031578283fd5b81358181111561303f578384fd5b876020606083028501011115613053578384fd5b6020830194508093505050509250925092565b600082845260208401935081815b8481101561309957613086868361313b565b6060958601959190910190600101613074565b5093949350505050565b60008151808452815b818110156130c8576020818501810151868301820152016130ac565b818111156130d95782602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b805173ffffffffffffffffffffffffffffffffffffffff16825260208082015190830152604090810151910152565b73ffffffffffffffffffffffffffffffffffffffff61315982612c69565b16825260208181013590830152604090810135910152565b918252602082015260400190565b91825260601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602082015260340190565b93845260e09290921b7fffffffff000000000000000000000000000000000000000000000000000000001660208401526024830152604482015260640190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a0608083015261325860a08301846130a3565b979650505050505050565b73ffffffffffffffffffffffffffffffffffffffff8416815260406020820181905281018290526000606080830185835b868110156132b6576132a6838361313b565b9183019190830190600101613294565b5090979650505050505050565b73ffffffffffffffffffffffffffffffffffffffff94851681529290931660208301526040820152606081019190915260800190565b73ffffffffffffffffffffffffffffffffffffffff94851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b600073ffffffffffffffffffffffffffffffffffffffff8516825283602083015260606040830152612a9160608301846130a3565b6020808252825182820181905260009190848201906040850190845b818110156133e757835173ffffffffffffffffffffffffffffffffffffffff16835292840192918401916001016133b5565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156133e75761342283855161310c565b928401926060929092019160010161340f565b60208082528251828201819052600091906040908185019080840286018301878501865b83811015613529578883037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc00185528151805173ffffffffffffffffffffffffffffffffffffffff168452878101511515888501528681015187850152606080820151908501526080808201519085015260a08082015160e09186018290528051918601829052610100860191908a01908b5b818110156135085782518452928b0192918b01916001016134ec565b50505060c09182015194909101939093529386019390860190600101613459565b509098975050505050505050565b602080825282518282018190526000919060409081850190868401855b8281101561358557815180518552868101518786015285015115158585015260609093019290850190600101613554565b5091979650505050505050565b602080825282518282018190526000919060409081850190868401855b82811015613585578151805173ffffffffffffffffffffffffffffffffffffffff1685528681015187860152858101518686015260609081015190850152608090930192908501906001016135af565b901515815260200190565b938452602084019290925273ffffffffffffffffffffffffffffffffffffffff166040830152606082015260800190565b7fffffffff0000000000000000000000000000000000000000000000000000000091909116815260200190565b60208082526017908201527f526166666c653a204e6f20726166666c65206974656d73000000000000000000604082015260600190565b60208082526030908201527f526166666c653a2043616e277420616363657074207472616e7366657220666f60408201527f72206578706972656420726166666c6500000000000000000000000000000000606082015260800190565b6020808252601d908201527f526166666c653a20526166666c6520646f6573206e6f74206578697374000000604082015260600190565b60208082526033908201527f526166666c653a205f726166666c654475726174696f6e206d7573742062652060408201527f67726561746572207468616e203120686f757200000000000000000000000000606082015260800190565b60208082526012908201527f526166666c653a204e6f207469636b6574730000000000000000000000000000604082015260600190565b60208082526019908201527f526166666c653a20446964206e6f742077696e207072697a6500000000000000604082015260600190565b60208082526038908201527f526166666c653a20416e79207072697a657320666f72206163636f756e74206860408201527f61766520616c7265616479206265656e20636c61696d65640000000000000000606082015260800190565b6020808252600f908201527f4e6f7420656e6f756768204c494e4b0000000000000000000000000000000000604082015260600190565b60208082526027908201527f526166666c653a2052616e646f6d206e756d626572206e6f742067656e65726160408201527f7465642079657400000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f526166666c653a20526166666c65206974656d20646f65736e2774206578697360408201527f7420666f72207468697320726166666c65000000000000000000000000000000606082015260800190565b60208082526011908201527f526166666c653a204e6f207072697a6573000000000000000000000000000000604082015260600190565b6020808252818101527f526166666c653a2052616e646f6d206e756d6265722069732070656e64696e67604082015260600190565b60208082526023908201527f526166666c653a20526166666c652074696d6520686173206e6f74206578706960408201527f7265640000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f526166666c653a205469636b6574207175616e746974792063616e6e6f74206260408201527f65207a65726f0000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604082015260600190565b6020808252603c908201527f526166666c653a20526166666c65206974656d20616c7265616479207573696e60408201527f67207469636b65744164647265737320616e64207469636b6574496400000000606082015260800190565b6020808252602d908201527f526166666c653a204e6f7420636c61696d6564206279206f776e6572206f722060408201527f636f6e74726163744f776e657200000000000000000000000000000000000000606082015260800190565b60208082526049908201527f526166666c653a20526166666c65207072697a65207479706520646f6573206e60408201527f6f74206578697374206f72206973206e6f74206c6573736572207468616e206c60608201527f6173742076616c75650000000000000000000000000000000000000000000000608082015260a00190565b6020808252601f908201527f526166666c653a20526166666c652074696d6520686173206578706972656400604082015260600190565b6020808252602f908201527f526166666c653a2044617461206f66207468652077726f6e672073697a65207360408201527f656e74206f6e207472616e736665720000000000000000000000000000000000606082015260800190565b60208082526043908201527f526166666c653a207072697a654e756d62657220646f6573206e6f742065786960408201527f7374206f72206973206e6f74206c6573736572207468616e206c61737420766160608201527f6c75650000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526027908201527f526166666c653a2052616e646f6d206e756d62657220616c726561647920676560408201527f6e65726174656400000000000000000000000000000000000000000000000000606082015260800190565b6020808252601e908201527f526166666c653a204d75737420626520636f6e7472616374206f776e65720000604082015260600190565b60208082526042908201527f526166666c653a205573657220656e74727920646f6573206e6f74206578697360408201527f74206f72206973206e6f74206c6573736572207468616e206c6173742076616c60608201527f7565000000000000000000000000000000000000000000000000000000000000608082015260a00190565b90815260200190565b83815260406020808301829052828201849052600091906060908185018682028601830188865b89811015613f53577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa089840301845281357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa18c3603018112613ea4578889fd5b8b0173ffffffffffffffffffffffffffffffffffffffff613ec482612c69565b1684528581013586850152878101357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1823603018112613f0257898afd5b8101803567ffffffffffffffff811115613f1a578a8bfd5b8881023603831315613f2a578a8bfd5b888a870152613f3e898701828a8501613066565b96880196955050509185019150600101613e44565b50909a9950505050505050505050565b600060608083018684526020828186015281875180845260809350838701915083838202880101838a01875b8381101561403d578983037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff800185528151805173ffffffffffffffffffffffffffffffffffffffff16845286810151878501526040908101519084018990528051898501819052908701908a90898601905b808310156140285761401482855161310c565b9289019260019290920191908b0190614001565b50968801969450505090850190600101613f8f565b5050809650505050505050826040830152949350505050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261408a578283fd5b83018035915067ffffffffffffffff8211156140a4578283fd5b6020908101925081023603821315612ccf57600080fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126140ef578283fd5b83018035915067ffffffffffffffff821115614109578283fd5b6020019150606081023603821315612ccf57600080fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc1833603018112614153578182fd5b9190910192915050565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa1833603018112614153578182fd5b60405181810167ffffffffffffffff811182821017156141ac57fe5b60405291905056fea26469706673582212203d9c76af52ea81bff84f4239cf00bcaa3e5dbb5ef59c5dff63dfe418559ba80764736f6c63430007040033000000000000000000000000819c3fc356bb319035f9d2886fac9e57df0343f5000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101775760003560e01c80639e317f12116100d8578063c26ecefa1161008c578063f23a6e6111610066578063f23a6e611461031b578063f2fde38b1461033b578063fbea56e01461034e57610177565b8063c26ecefa146102ed578063d1a4692a146102f5578063ec9fabb71461030857610177565b8063a2fb1175116100bd578063a2fb11751461028b578063abc00bb4146102ab578063bf30d790146102cb57610177565b80639e317f1214610263578063a18723c51461027657610177565b8063599d127a1161012f578063781f653e11610114578063781f653e146102285780638da5cb5b1461023b57806394985ddd1461025057610177565b8063599d127a14610200578063761e99f01461021557610177565b8063339a640311610160578063339a6403146101c55780634e3347c7146101da57806357b0ef44146101ed57610177565b806301ffc9a71461017c578063049dce8f146101a5575b600080fd5b61018f61018a366004612e13565b61036e565b60405161019c91906135ff565b60405180910390f35b6101b86101b3366004612e6b565b6103a9565b60405161019c91906133f3565b6101d86101d3366004612dda565b61061d565b005b6101d86101e8366004612fa2565b610883565b6101d86101fb366004612e96565b610cf9565b61020861130d565b60405161019c9190613e14565b6101d8610223366004612d91565b611313565b6101d8610236366004612df2565b611425565b6102436114af565b60405161019c91906131f2565b6101d861025e366004612df2565b6114db565b610208610271366004612dda565b611655565b61027e611667565b60405161019c9190613537565b61029e610299366004612dda565b61175c565b60405161019c9190613435565b6102be6102b9366004612dda565b61181b565b60405161019c9190613399565b6102de6102d9366004612dda565b6118d2565b60405161019c93929190613f63565b610208611bfc565b61029e610303366004612eee565b611cc6565b6101d8610316366004612fec565b6121ab565b61032e610329366004612cf0565b61256d565b60405161019c919061363b565b6101d8610349366004612cd6565b612639565b61036161035c366004612dda565b6126f4565b60405161019c9190613592565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526020819052604090205460ff165b919050565b60015460609083106103d65760405162461bcd60e51b81526004016103cd906136fc565b60405180910390fd5b60008060010184815481106103e757fe5b6000918252602080832073ffffffffffffffffffffffffffffffffffffffff871684526002600890930201918201905260409091205490915067ffffffffffffffff8111801561043657600080fd5b5060405190808252806020026020018201604052801561047057816020015b61045d612b25565b8152602001906001900390816104555790505b50915060005b73ffffffffffffffffffffffffffffffffffffffff84166000908152600283016020526040902054811015610615576104ad612b5c565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260028401602052604090208054839081106104e057fe5b6000918252602080832060408051606081018252939091015463ffffffff81168085526dffffffffffffffffffffffffffff640100000000830481169486019490945272010000000000000000000000000000000000009091049092169083015260018601805492945091811061055357fe5b600091825260209091206004909102018054865191925073ffffffffffffffffffffffffffffffffffffffff169086908590811061058d57fe5b602090810291909101015173ffffffffffffffffffffffffffffffffffffffff9091169052600181015485518690859081106105c557fe5b6020026020010151602001818152505081602001518260400151036dffffffffffffffffffffffffffff168584815181106105fc57fe5b6020908102919091010151604001525050600101610476565b505092915050565b600154811061063e5760405162461bcd60e51b81526004016103cd906136fc565b600080600101828154811061064f57fe5b90600052602060002090600802019050428160070154106106825760405162461bcd60e51b81526004016103cd906139b8565b6005810154156106a45760405162461bcd60e51b81526004016103cd90613cfd565b600681015460ff1615806106df57506005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b6106fb5760405162461bcd60e51b81526004016103cd90613983565b6006810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556005546040517f70a082310000000000000000000000000000000000000000000000000000000081526bffffffffffffffffffffffff9091169073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca16906370a08231906107ae9030906004016131f2565b60206040518083038186803b1580156107c657600080fd5b505afa1580156107da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fe9190612e53565b101561081c5760405162461bcd60e51b81526004016103cd9061385b565b60045460055460405160009261086d9290916bffffffffffffffffffffffff9091169061084f904390339060200161317f565b6040516020818303038152906040528051906020012060001c61295f565b6000908152600360205260409020929092555050565b6005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633146108ca5760405162461bcd60e51b81526004016103cd90613d5a565b610e108310156108ec5760405162461bcd60e51b81526004016103cd90613733565b4283018161090c5760405162461bcd60e51b81526004016103cd90613668565b60015460405181907fb44ac0470da898b318be8ceeafb224dd8540bb2200607aa1b4def46f9dd9de889061094590859088908890613e1d565b60405180910390a260018054808201825560009182526008027fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cfd81018490557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf601905b84811015610cf057368686838181106109bd57fe5b90506020028101906109cf919061415d565b905060006109e060408301836140bb565b9050116109ff5760405162461bcd60e51b81526004016103cd9061394c565b826000610a0f6020840184612cd6565b73ffffffffffffffffffffffffffffffffffffffff1681526020808201929092526040908101600090812084840135825290925290205415610a635760405162461bcd60e51b81526004016103cd90613aa9565b600180840180549182018082556000918252602080832060049094029093019290918691610a9390860186612cd6565b73ffffffffffffffffffffffffffffffffffffffff168152602080820192909252604090810160009081208684018035835293522091909155610ad69083612cd6565b81547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff919091161781556020820135600182015560005b610b3060408401846140bb565b9050811015610ce55736610b4760408501856140bb565b83818110610b5157fe5b9050606002019050826003016040518060600160405280836000016020810190610b7b9190612cd6565b73ffffffffffffffffffffffffffffffffffffffff90811682526bffffffffffffffffffffffff6040808701358216602080860191909152878101803595830195909552865460018181018955600098895297829020875160029092020180549288015190941674010000000000000000000000000000000000000000029085167fffffffffffffffffffffffff0000000000000000000000000000000000000000909216919091179093169290921781559201519190920155610c3f9082612cd6565b73ffffffffffffffffffffffffffffffffffffffff1663f242432a3330846020013585604001358c604051602001610c779190613e14565b6040516020818303038152906040526040518663ffffffff1660e01b8152600401610ca6959493929190613213565b600060405180830381600087803b158015610cc057600080fd5b505af1158015610cd4573d6000803e3d6000fd5b505060019093019250610b23915050565b5050506001016109a8565b50505050505050565b6001548410610d1a5760405162461bcd60e51b81526004016103cd906136fc565b6000806001018581548110610d2b57fe5b9060005260206000209060080201905060008160050154905060008111610d645760405162461bcd60e51b81526004016103cd90613892565b3373ffffffffffffffffffffffffffffffffffffffff86161480610daf57506005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b610dcb5760405162461bcd60e51b81526004016103cd90613b06565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260038301602052604090205460ff161580610e2957506005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633145b610e455760405162461bcd60e51b81526004016103cd906137fe565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600383016020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560028501909152812054905b848110156113035736868683818110610eb957fe5b9050602002810190610ecb9190614120565b905080358311610eed5760405162461bcd60e51b81526004016103cd90613d91565b610ef5612b5c565b73ffffffffffffffffffffffffffffffffffffffff89166000908152600287016020526040902080548335908110610f2957fe5b6000918252602080832060408051606081018252939091015463ffffffff81168085526dffffffffffffffffffffffffffff6401000000008304811694860194909452720100000000000000000000000000000000000090910490921690830152600189018054929450918110610f9c57fe5b906000526020600020906004020160020154905086600101826000015163ffffffff1681548110610fc957fe5b6000918252602082206003600490920201015495505b610fec6020850185614056565b90508110156112f457366110036020860186614056565b8381811061100d57fe5b905060200281019061101f9190614120565b9050803587116110415760405162461bcd60e51b81526004016103cd90613b63565b611049612b5c565b89600101856000015163ffffffff168154811061106257fe5b906000526020600020906004020160030182600001358154811061108257fe5b60009182526020808320604080516060810182526002909402909101805473ffffffffffffffffffffffffffffffffffffffff811685526bffffffffffffffffffffffff74010000000000000000000000000000000000000000909104169284018390526001015490830152995091505b6111006020840184614056565b90508110156111e85760006111186020850185614056565b8381811061112257fe5b90506020020135905089811061114a5760405162461bcd60e51b81526004016103cd90613c7a565b86516040516000918891611167918f9189359087906020016131b2565b6040516020818303038152906040528051906020012060001c8161118757fe5b06905087602001516dffffffffffffffffffffffffffff1681101580156111c1575087604001516dffffffffffffffffffffffffffff1681105b6111dd5760405162461bcd60e51b81526004016103cd906137c7565b5098506001016110f3565b508d7f61dd2cf3e9f248b4453e8abb61b6ad73c53cf482d1c506f868a3885f533233cf8e836000015184604001518680602001906112269190614056565b60405161123695949392506132c3565b60405180910390a2806000015173ffffffffffffffffffffffffffffffffffffffff1663f242432a308f84604001518680602001906112759190614056565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526112b195949392506004016132f9565b600060405180830381600087803b1580156112cb57600080fd5b505af11580156112df573d6000803e3d6000fd5b5050923598505060019092019150610fdf9050565b50509035925050600101610ea4565b5050505050505050565b60015490565b6005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff16331461135a5760405162461bcd60e51b81526004016103cd90613d5a565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca169063a9059cbb906113ce908590859060040161333e565b602060405180830381600087803b1580156113e857600080fd5b505af11580156113fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114209190612dba565b505050565b6005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff16331461146c5760405162461bcd60e51b81526004016103cd90613d5a565b600580547fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166bffffffffffffffffffffffff9390931692909217909155600455565b6005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1690565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146115305760405162461bcd60e51b81526004016103cd90613a72565b60008281526003602052604090205460015481106115605760405162461bcd60e51b81526004016103cd906136fc565b600080600101828154811061157157fe5b90600052602060002090600802019050428160070154106115a45760405162461bcd60e51b81526004016103cd906139b8565b6005810154156115c65760405162461bcd60e51b81526004016103cd90613cfd565b82600060010183815481106115d757fe5b60009182526020909120600560089092020101556006810180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905560405182907f37e68548bed90aa11745696116f838a60b0bba40fc3f77a139aee9e3b828a08e90611647908690613e14565b60405180910390a250505050565b60009081526002602052604090205490565b60015460609067ffffffffffffffff8111801561168357600080fd5b506040519080825280602002602001820160405280156116bd57816020015b6116aa612b7c565b8152602001906001900390816116a25790505b50905060005b6001548110156117585760008060010182815481106116de57fe5b9060005260206000209060080201600701549050818383815181106116ff57fe5b602002602001015160000181815250508083838151811061171c57fe5b6020026020010151602001818152505042811183838151811061173b57fe5b6020908102919091010151901515604090910152506001016116c3565b5090565b60015460609082106117805760405162461bcd60e51b81526004016103cd906136fc565b600080600101838154811061179157fe5b90600052602060002090600802019050611814838260040180548060200260200160405190810160405280929190818152602001828054801561180a57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff1681526001909101906020018083116117df575b5050505050611cc6565b9392505050565b600154606090821061183f5760405162461bcd60e51b81526004016103cd906136fc565b600080600101838154811061185057fe5b90600052602060002090600802019050806004018054806020026020016040519081016040528092919081815260200182805480156118c557602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff16815260019091019060200180831161189a575b5050505050915050919050565b600154600090606090829084106118fb5760405162461bcd60e51b81526004016103cd906136fc565b600080600101858154811061190c57fe5b60009182526020909120600760089092020190810154600682015490955090915060ff16151560011415611943576001915061194b565b806005015491505b600181015467ffffffffffffffff8111801561196657600080fd5b506040519080825280602002602001820160405280156119a057816020015b61198d612b9f565b8152602001906001900390816119855790505b50925060005b6001820154811015611bf35760008260010182815481106119c357fe5b600091825260209091206004909102018054865191925073ffffffffffffffffffffffffffffffffffffffff16908690849081106119fd57fe5b602090810291909101015173ffffffffffffffffffffffffffffffffffffffff909116905260018101548551869084908110611a3557fe5b6020908102919091018101510152600381015467ffffffffffffffff81118015611a5e57600080fd5b50604051908082528060200260200182016040528015611a9857816020015b611a85612b25565b815260200190600190039081611a7d5790505b50858381518110611aa557fe5b60200260200101516040018190525060005b6003820154811015611be9576000826003018281548110611ad457fe5b600091825260209091206002909102018054885191925073ffffffffffffffffffffffffffffffffffffffff1690889086908110611b0e57fe5b6020026020010151604001518381518110611b2557fe5b602090810291909101015173ffffffffffffffffffffffffffffffffffffffff909116905260018101548751889086908110611b5d57fe5b6020026020010151604001518381518110611b7457fe5b602090810291909101810151015280548751740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff1690889086908110611bba57fe5b6020026020010151604001518381518110611bd157fe5b60209081029190910101516040015250600101611ab7565b50506001016119a6565b50509193909250565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca16906370a0823190611c719030906004016131f2565b60206040518083038186803b158015611c8957600080fd5b505afa158015611c9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cc19190612e53565b905090565b6001546060908310611cea5760405162461bcd60e51b81526004016103cd906136fc565b6000806001018481548110611cfb57fe5b9060005260206000209060080201905060008160050154905060008111611d345760405162461bcd60e51b81526004016103cd90613892565b6000805b6001840154811015611dce576000846001018281548110611d5557fe5b9060005260206000209060040201600301905060005b8154811015611dc457818181548110611d8057fe5b60009182526020909120600290910201547401000000000000000000000000000000000000000090046bffffffffffffffffffffffff169390930192600101611d6b565b5050600101611d38565b508067ffffffffffffffff81118015611de657600080fd5b50604051908082528060200260200182016040528015611e2057816020015b611e0d612bd6565b815260200190600190039081611e055790505b509350506000805b855181101561219f576000868281518110611e3f57fe5b6020026020010151905060005b73ffffffffffffffffffffffffffffffffffffffff821660009081526002870160205260409020548110156121955773ffffffffffffffffffffffffffffffffffffffff821660009081526002870160205260408120805483908110611eae57fe5b60009182526020822001805460018a0180549294509163ffffffff909116908110611ed557fe5b60009182526020822060026004909202010154835460018b0180549294509163ffffffff909116908110611f0557fe5b9060005260206000209060040201600301905060005b81548110156121855760006060838381548110611f3457fe5b60009182526020909120600290910201547401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1667ffffffffffffffff81118015611f8157600080fd5b50604051908082528060200260200182016040528015611fab578160200160208202803683370190505b50905060005b848481548110611fbd57fe5b60009182526020909120600290910201547401000000000000000000000000000000000000000090046bffffffffffffffffffffffff168110156120ca576000868d8960000160009054906101000a900463ffffffff16878560405160200161202994939291906131b2565b6040516020818303038152906040528051906020012060001c8161204957fe5b8954919006915064010000000090046dffffffffffffffffffffffffffff16811080159061209d57508754720100000000000000000000000000000000000090046dffffffffffffffffffffffffffff1681105b156120c157818385815181106120af57fe5b60209081029190910101526001909301925b50600101611fb1565b50811561217b578181526040805160e08101825273ffffffffffffffffffffffffffffffffffffffff8a16815233600090815260038f016020908152908390205460ff16151590820152908101889052865463ffffffff1660608201526080810184905260a08101829052845460c082019086908690811061214857fe5b9060005260206000209060020201600101548152508d8b8151811061216957fe5b60209081029190910101526001909901985b5050600101611f1b565b505060019092019150611e4c9050565b5050600101611e28565b50835250909392505050565b60015483106121cc5760405162461bcd60e51b81526004016103cd906136fc565b806121e95760405162461bcd60e51b81526004016103cd90613790565b60008060010184815481106121fa57fe5b906000526020600020906008020190504281600701541161222d5760405162461bcd60e51b81526004016103cd90613be6565b837f11bafd320b20b453e37e76ddd7d80347a86411bafe26e90624da8a8dcdcdd42933858560405161226193929190613263565b60405180910390a23360009081526002820160205260409020546122bf57600481018054600181018255600091825260209091200180547fffffffffffffffffffffffff000000000000000000000000000000000000000016331790555b60005b8281101561256657368484838181106122d757fe5b905060600201905060008160400135116123035760405162461bcd60e51b81526004016103cd90613a15565b600083816123146020850185612cd6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083602001358152602001908152602001600020549050600081116123865760405162461bcd60e51b81526004016103cd906138ef565b80806001900391505060008460010182815481106123a057fe5b6000918252602080832060026004909302018281018054338652938a0183526040808620815160608101835263ffffffff808b1682526dffffffffffffffffffffffffffff8089168389019081528d8601358a018083169685019687528554600181018755958c529a899020935193909401805494519551821672010000000000000000000000000000000000000271ffffffffffffffffffffffffffffffffffff96909216640100000000027fffffffffffffffffffffffffffff0000000000000000000000000000ffffffff949093167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000009095169490941792909216179290921691909117905593909355919250906124bd90850185612cd6565b73ffffffffffffffffffffffffffffffffffffffff1663f242432a3330876020013588604001358e6040516020016124f59190613e14565b6040516020818303038152906040526040518663ffffffff1660e01b8152600401612524959493929190613213565b600060405180830381600087803b15801561253e57600080fd5b505af1158015612552573d6000803e3d6000fd5b5050600190960195506122c2945050505050565b5050505050565b60006020821461258f5760405162461bcd60e51b81526004016103cd90613c1d565b600061259d83850185612dda565b60015490915081106125c15760405162461bcd60e51b81526004016103cd906136fc565b60008060010182815481106125d257fe5b9060005260206000209060080201905060008160070154905042811161260a5760405162461bcd60e51b81526004016103cd9061369f565b507ff23a6e61000000000000000000000000000000000000000000000000000000009998505050505050505050565b6005546c01000000000000000000000000900473ffffffffffffffffffffffffffffffffffffffff163381146126815760405162461bcd60e51b81526004016103cd90613d5a565b600580546bffffffffffffffffffffffff166c0100000000000000000000000073ffffffffffffffffffffffffffffffffffffffff85811691820292909217909255604051908316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60015460609082106127185760405162461bcd60e51b81526004016103cd906136fc565b600080600101838154811061272957fe5b90600052602060002090600802019050806001018054905067ffffffffffffffff8111801561275757600080fd5b5060405190808252806020026020018201604052801561279157816020015b61277e612c2b565b8152602001906001900390816127765790505b50915060005b60018201548110156129585760008260010182815481106127b457fe5b600091825260209091206004909102018054855191925073ffffffffffffffffffffffffffffffffffffffff16908590849081106127ee57fe5b602090810291909101015173ffffffffffffffffffffffffffffffffffffffff90911690526001810154845185908490811061282657fe5b60200260200101516020018181525050806002015484838151811061284757fe5b6020026020010151606001818152505060005b600484015481101561294e57600084600401828154811061287757fe5b600091825260208220015473ffffffffffffffffffffffffffffffffffffffff1691505b73ffffffffffffffffffffffffffffffffffffffff821660009081526002870160205260409020548110156129445773ffffffffffffffffffffffffffffffffffffffff8216600090815260028701602052604090208054829081106128fd57fe5b60009182526020909120015463ffffffff1685141561293c5786858151811061292257fe5b602090810291909101015160400180516001019052612944565b60010161289b565b505060010161285a565b5050600101612797565b5050919050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca73ffffffffffffffffffffffffffffffffffffffff16634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb79528587866040516020016129d2929190613171565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016129ff93929190613364565b602060405180830381600087803b158015612a1957600080fd5b505af1158015612a2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a519190612dba565b50600084815260026020526040812054612a7090869085903090612a9a565b6000868152600260205260409020805460010190559050612a918582612af2565b95945050505050565b600084848484604051602001612ab3949392919061360a565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209091012095945050505050565b60008282604051602001612b07929190613171565b60405160208183030381529060405280519060200120905092915050565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b604051806060016040528060008152602001600081526020016000151581525090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001606081525090565b6040518060e00160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160001515815260200160008152602001600081526020016000815260200160608152602001600081525090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020016000815260200160008152602001600081525090565b803573ffffffffffffffffffffffffffffffffffffffff811681146103a457600080fd5b60008083601f840112612c9e578081fd5b50813567ffffffffffffffff811115612cb5578182fd5b6020830191508360208083028501011115612ccf57600080fd5b9250929050565b600060208284031215612ce7578081fd5b61181482612c69565b60008060008060008060a08789031215612d08578182fd5b612d1187612c69565b9550612d1f60208801612c69565b94506040870135935060608701359250608087013567ffffffffffffffff80821115612d49578384fd5b818901915089601f830112612d5c578384fd5b813581811115612d6a578485fd5b8a6020828501011115612d7b578485fd5b6020830194508093505050509295509295509295565b60008060408385031215612da3578182fd5b612dac83612c69565b946020939093013593505050565b600060208284031215612dcb578081fd5b81518015158114611814578182fd5b600060208284031215612deb578081fd5b5035919050565b60008060408385031215612e04578182fd5b50508035926020909101359150565b600060208284031215612e24578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611814578182fd5b600060208284031215612e64578081fd5b5051919050565b60008060408385031215612e7d578182fd5b82359150612e8d60208401612c69565b90509250929050565b60008060008060608587031215612eab578384fd5b84359350612ebb60208601612c69565b9250604085013567ffffffffffffffff811115612ed6578283fd5b612ee287828801612c8d565b95989497509550505050565b60008060408385031215612f00578182fd5b8235915060208084013567ffffffffffffffff80821115612f1f578384fd5b818601915086601f830112612f32578384fd5b813581811115612f3e57fe5b8381029150612f4e848301614190565b8181528481019084860184860187018b1015612f68578788fd5b8795505b83861015612f9157612f7d81612c69565b835260019590950194918601918601612f6c565b508096505050505050509250929050565b600080600060408486031215612fb6578283fd5b83359250602084013567ffffffffffffffff811115612fd3578283fd5b612fdf86828701612c8d565b9497909650939450505050565b600080600060408486031215613000578081fd5b83359250602084013567ffffffffffffffff8082111561301e578283fd5b818601915086601f830112613031578283fd5b81358181111561303f578384fd5b876020606083028501011115613053578384fd5b6020830194508093505050509250925092565b600082845260208401935081815b8481101561309957613086868361313b565b6060958601959190910190600101613074565b5093949350505050565b60008151808452815b818110156130c8576020818501810151868301820152016130ac565b818111156130d95782602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b805173ffffffffffffffffffffffffffffffffffffffff16825260208082015190830152604090810151910152565b73ffffffffffffffffffffffffffffffffffffffff61315982612c69565b16825260208181013590830152604090810135910152565b918252602082015260400190565b91825260601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016602082015260340190565b93845260e09290921b7fffffffff000000000000000000000000000000000000000000000000000000001660208401526024830152604482015260640190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b600073ffffffffffffffffffffffffffffffffffffffff808816835280871660208401525084604083015283606083015260a0608083015261325860a08301846130a3565b979650505050505050565b73ffffffffffffffffffffffffffffffffffffffff8416815260406020820181905281018290526000606080830185835b868110156132b6576132a6838361313b565b9183019190830190600101613294565b5090979650505050505050565b73ffffffffffffffffffffffffffffffffffffffff94851681529290931660208301526040820152606081019190915260800190565b73ffffffffffffffffffffffffffffffffffffffff94851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b600073ffffffffffffffffffffffffffffffffffffffff8516825283602083015260606040830152612a9160608301846130a3565b6020808252825182820181905260009190848201906040850190845b818110156133e757835173ffffffffffffffffffffffffffffffffffffffff16835292840192918401916001016133b5565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156133e75761342283855161310c565b928401926060929092019160010161340f565b60208082528251828201819052600091906040908185019080840286018301878501865b83811015613529578883037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc00185528151805173ffffffffffffffffffffffffffffffffffffffff168452878101511515888501528681015187850152606080820151908501526080808201519085015260a08082015160e09186018290528051918601829052610100860191908a01908b5b818110156135085782518452928b0192918b01916001016134ec565b50505060c09182015194909101939093529386019390860190600101613459565b509098975050505050505050565b602080825282518282018190526000919060409081850190868401855b8281101561358557815180518552868101518786015285015115158585015260609093019290850190600101613554565b5091979650505050505050565b602080825282518282018190526000919060409081850190868401855b82811015613585578151805173ffffffffffffffffffffffffffffffffffffffff1685528681015187860152858101518686015260609081015190850152608090930192908501906001016135af565b901515815260200190565b938452602084019290925273ffffffffffffffffffffffffffffffffffffffff166040830152606082015260800190565b7fffffffff0000000000000000000000000000000000000000000000000000000091909116815260200190565b60208082526017908201527f526166666c653a204e6f20726166666c65206974656d73000000000000000000604082015260600190565b60208082526030908201527f526166666c653a2043616e277420616363657074207472616e7366657220666f60408201527f72206578706972656420726166666c6500000000000000000000000000000000606082015260800190565b6020808252601d908201527f526166666c653a20526166666c6520646f6573206e6f74206578697374000000604082015260600190565b60208082526033908201527f526166666c653a205f726166666c654475726174696f6e206d7573742062652060408201527f67726561746572207468616e203120686f757200000000000000000000000000606082015260800190565b60208082526012908201527f526166666c653a204e6f207469636b6574730000000000000000000000000000604082015260600190565b60208082526019908201527f526166666c653a20446964206e6f742077696e207072697a6500000000000000604082015260600190565b60208082526038908201527f526166666c653a20416e79207072697a657320666f72206163636f756e74206860408201527f61766520616c7265616479206265656e20636c61696d65640000000000000000606082015260800190565b6020808252600f908201527f4e6f7420656e6f756768204c494e4b0000000000000000000000000000000000604082015260600190565b60208082526027908201527f526166666c653a2052616e646f6d206e756d626572206e6f742067656e65726160408201527f7465642079657400000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f526166666c653a20526166666c65206974656d20646f65736e2774206578697360408201527f7420666f72207468697320726166666c65000000000000000000000000000000606082015260800190565b60208082526011908201527f526166666c653a204e6f207072697a6573000000000000000000000000000000604082015260600190565b6020808252818101527f526166666c653a2052616e646f6d206e756d6265722069732070656e64696e67604082015260600190565b60208082526023908201527f526166666c653a20526166666c652074696d6520686173206e6f74206578706960408201527f7265640000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f526166666c653a205469636b6574207175616e746974792063616e6e6f74206260408201527f65207a65726f0000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c00604082015260600190565b6020808252603c908201527f526166666c653a20526166666c65206974656d20616c7265616479207573696e60408201527f67207469636b65744164647265737320616e64207469636b6574496400000000606082015260800190565b6020808252602d908201527f526166666c653a204e6f7420636c61696d6564206279206f776e6572206f722060408201527f636f6e74726163744f776e657200000000000000000000000000000000000000606082015260800190565b60208082526049908201527f526166666c653a20526166666c65207072697a65207479706520646f6573206e60408201527f6f74206578697374206f72206973206e6f74206c6573736572207468616e206c60608201527f6173742076616c75650000000000000000000000000000000000000000000000608082015260a00190565b6020808252601f908201527f526166666c653a20526166666c652074696d6520686173206578706972656400604082015260600190565b6020808252602f908201527f526166666c653a2044617461206f66207468652077726f6e672073697a65207360408201527f656e74206f6e207472616e736665720000000000000000000000000000000000606082015260800190565b60208082526043908201527f526166666c653a207072697a654e756d62657220646f6573206e6f742065786960408201527f7374206f72206973206e6f74206c6573736572207468616e206c61737420766160608201527f6c75650000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526027908201527f526166666c653a2052616e646f6d206e756d62657220616c726561647920676560408201527f6e65726174656400000000000000000000000000000000000000000000000000606082015260800190565b6020808252601e908201527f526166666c653a204d75737420626520636f6e7472616374206f776e65720000604082015260600190565b60208082526042908201527f526166666c653a205573657220656e74727920646f6573206e6f74206578697360408201527f74206f72206973206e6f74206c6573736572207468616e206c6173742076616c60608201527f7565000000000000000000000000000000000000000000000000000000000000608082015260a00190565b90815260200190565b83815260406020808301829052828201849052600091906060908185018682028601830188865b89811015613f53577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa089840301845281357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa18c3603018112613ea4578889fd5b8b0173ffffffffffffffffffffffffffffffffffffffff613ec482612c69565b1684528581013586850152878101357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1823603018112613f0257898afd5b8101803567ffffffffffffffff811115613f1a578a8bfd5b8881023603831315613f2a578a8bfd5b888a870152613f3e898701828a8501613066565b96880196955050509185019150600101613e44565b50909a9950505050505050505050565b600060608083018684526020828186015281875180845260809350838701915083838202880101838a01875b8381101561403d578983037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff800185528151805173ffffffffffffffffffffffffffffffffffffffff16845286810151878501526040908101519084018990528051898501819052908701908a90898601905b808310156140285761401482855161310c565b9289019260019290920191908b0190614001565b50968801969450505090850190600101613f8f565b5050809650505050505050826040830152949350505050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261408a578283fd5b83018035915067ffffffffffffffff8211156140a4578283fd5b6020908101925081023603821315612ccf57600080fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126140ef578283fd5b83018035915067ffffffffffffffff821115614109578283fd5b6020019150606081023603821315612ccf57600080fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc1833603018112614153578182fd5b9190910192915050565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa1833603018112614153578182fd5b60405181810167ffffffffffffffff811182821017156141ac57fe5b60405291905056fea26469706673582212203d9c76af52ea81bff84f4239cf00bcaa3e5dbb5ef59c5dff63dfe418559ba80764736f6c63430007040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000819c3fc356bb319035f9d2886fac9e57df0343f5000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000
-----Decoded View---------------
Arg [0] : _contractOwner (address): 0x819C3fc356bb319035f9D2886fAc9E57DF0343F5
Arg [1] : _vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [2] : _link (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [3] : _keyHash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [4] : _fee (uint256): 2000000000000000000
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000819c3fc356bb319035f9d2886fac9e57df0343f5
Arg [1] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [2] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [3] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [4] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $10.64 | 2 | $21.28 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.