Skip to content

Instantly share code, notes, and snippets.

@zack-the-worker
Created January 11, 2022 04:07
Show Gist options
  • Save zack-the-worker/1955f6f6295bd5453c38d82bd2408947 to your computer and use it in GitHub Desktop.
Save zack-the-worker/1955f6f6295bd5453c38d82bd2408947 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.10+commit.fc410830.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
The 'scripts' folder contains example async/await scripts for deploying the 'Storage' contract.
For the deployment of any other contract, 'contractName' and 'constructorArgs' should be updated (along with other code if required).
Scripts have full access to the web3.js and ethers.js libraries.
To run a script, right click on file name in the file explorer and click 'Run'. Remember, Solidity file must already be compiled.
Output from script will appear in remix terminal.
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) public view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly { codehash := extcodehash(account) }
return (codehash != accountHash && codehash != 0x0);
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
/**
* @dev ERC-721 non-fungible token standard.
* See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md.
*/
interface ERC721
{
/**
* @dev Emits when ownership of any NFT changes by any mechanism. This event emits when NFTs are
* created (`from` == 0) and destroyed (`to` == 0). Exception: during contract creation, any
* number of NFTs may be created and assigned without emitting Transfer. At the time of any
* transfer, the approved address for that NFT (if any) is reset to none.
*/
event Transfer(
address indexed _from,
address indexed _to,
uint256 indexed _tokenId
);
/**
* @dev This emits when the approved address for an NFT is changed or reaffirmed. The zero
* address indicates there is no approved address. When a Transfer event emits, this also
* indicates that the approved address for that NFT (if any) is reset to none.
*/
event Approval(
address indexed _owner,
address indexed _approved,
uint256 indexed _tokenId
);
/**
* @dev This emits when an operator is enabled or disabled for an owner. The operator can manage
* all NFTs of the owner.
*/
event ApprovalForAll(
address indexed _owner,
address indexed _operator,
bool _approved
);
/**
* @dev Transfers the ownership of an NFT from one address to another address.
* @notice Throws unless `msg.sender` is the current owner, an authorized operator, or the
* approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is
* the zero address. Throws if `_tokenId` is not a valid NFT. When transfer is complete, this
* function checks if `_to` is a smart contract (code size > 0). If so, it calls
* `onERC721Received` on `_to` and throws if the return value is not
* `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`.
* @param _from The current owner of the NFT.
* @param _to The new owner.
* @param _tokenId The NFT to transfer.
* @param _data Additional data with no specified format, sent in call to `_to`.
*/
function safeTransferFrom(
address _from,
address _to,
uint256 _tokenId,
bytes calldata _data
)
external;
/**
* @dev Transfers the ownership of an NFT from one address to another address.
* @notice This works identically to the other function with an extra data parameter, except this
* function just sets data to ""
* @param _from The current owner of the NFT.
* @param _to The new owner.
* @param _tokenId The NFT to transfer.
*/
function safeTransferFrom(
address _from,
address _to,
uint256 _tokenId
)
external;
/**
* @dev Throws unless `msg.sender` is the current owner, an authorized operator, or the approved
* address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero
* address. Throws if `_tokenId` is not a valid NFT.
* @notice The caller is responsible to confirm that `_to` is capable of receiving NFTs or else
* they may be permanently lost.
* @param _from The current owner of the NFT.
* @param _to The new owner.
* @param _tokenId The NFT to transfer.
*/
function transferFrom(
address _from,
address _to,
uint256 _tokenId
)
external;
/**
* @dev Set or reaffirm the approved address for an NFT.
* @notice The zero address indicates there is no approved address. Throws unless `msg.sender` is
* the current NFT owner, or an authorized operator of the current owner.
* @param _approved The new approved NFT controller.
* @param _tokenId The NFT to approve.
*/
function approve(
address _approved,
uint256 _tokenId
)
external;
/**
* @dev Enables or disables approval for a third party ("operator") to manage all of
* `msg.sender`'s assets. It also emits the ApprovalForAll event.
* @notice The contract MUST allow multiple operators per owner.
* @param _operator Address to add to the set of authorized operators.
* @param _approved True if the operators is approved, false to revoke approval.
*/
function setApprovalForAll(
address _operator,
bool _approved
)
external;
/**
* @dev Returns the number of NFTs owned by `_owner`. NFTs assigned to the zero address are
* considered invalid, and this function throws for queries about the zero address.
* @param _owner Address for whom to query the balance.
* @return Balance of _owner.
*/
function balanceOf(
address _owner
)
external
view
returns (uint256);
/**
* @dev Returns the address of the owner of the NFT. NFTs assigned to the zero address are
* considered invalid, and queries about them do throw.
* @param _tokenId The identifier for an NFT.
* @return Address of _tokenId owner.
*/
function ownerOf(
uint256 _tokenId
)
external
view
returns (address);
/**
* @dev Get the approved address for a single NFT.
* @notice Throws if `_tokenId` is not a valid NFT.
* @param _tokenId The NFT to find the approved address for.
* @return Address that _tokenId is approved for.
*/
function getApproved(
uint256 _tokenId
)
external
view
returns (address);
/**
* @dev Returns true if `_operator` is an approved operator for `_owner`, false otherwise.
* @param _owner The address that owns the NFTs.
* @param _operator The address that acts on behalf of the owner.
* @return True if approved for all, false otherwise.
*/
function isApprovedForAll(
address _owner,
address _operator
)
external
view
returns (bool);
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "./0-context.sol";
/**
* @dev The contract has an owner address, and provides basic authorization control whitch
* simplifies the implementation of user permissions. This contract is based on the source code at:
* https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/ownership/Ownable.sol
*/
contract Ownable is Context
{
/**
* @dev Error constants.
*/
string public constant NOT_CURRENT_OWNER = "018001";
string public constant CANNOT_TRANSFER_TO_ZERO_ADDRESS = "018002";
/**
* @dev Current owner address.
*/
address public owner;
/**
* @dev An event which is triggered when the owner is changed.
* @param previousOwner The address of the previous owner.
* @param newOwner The address of the new owner.
*/
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The constructor sets the original `owner` of the contract to the sender account.
*/
constructor()
{
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner()
{
require(msg.sender == owner, NOT_CURRENT_OWNER);
_;
}
/**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param _newOwner The address to transfer ownership to.
*/
function transferOwnership(
address _newOwner
)
public
virtual
onlyOwner
{
require(_newOwner != address(0), CANNOT_TRANSFER_TO_ZERO_ADDRESS);
emit OwnershipTransferred(owner, _newOwner);
owner = _newOwner;
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "./0-address.sol";
import "./0-erc721.sol";
/**
* @dev ERC-721 interface for accepting safe transfers.
* See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md.
*/
interface ERC721TokenReceiver
{
/**
* @dev Handle the receipt of a NFT. The ERC721 smart contract calls this function on the
* recipient after a `transfer`. This function MAY throw to revert and reject the transfer. Return
* of other than the magic value MUST result in the transaction being reverted.
* Returns `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` unless throwing.
* @notice The contract address is always the message sender. A wallet/broker/auction application
* MUST implement the wallet interface if it will accept safe transfers.
* @param _operator The address which called `safeTransferFrom` function.
* @param _from The address which previously owned the token.
* @param _tokenId The NFT identifier which is being transferred.
* @param _data Additional data with no specified format.
* @return Returns `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`.
*/
function onERC721Received(
address _operator,
address _from,
uint256 _tokenId,
bytes calldata _data
)
external
returns(bytes4);
}
/**
* @dev A standard for detecting smart contract interfaces.
* See: https://eips.ethereum.org/EIPS/eip-165.
*/
interface ERC165
{
/**
* @dev Checks if the smart contract includes a specific interface.
* This function uses less than 30,000 gas.
* @param _interfaceID The interface identifier, as specified in ERC-165.
* @return True if _interfaceID is supported, false otherwise.
*/
function supportsInterface(
bytes4 _interfaceID
)
external
view
returns (bool);
}
/**
* @dev Implementation of standard for detect smart contract interfaces.
*/
contract SupportsInterface is
ERC165
{
/**
* @dev Mapping of supported intefraces. You must not set element 0xffffffff to true.
*/
mapping(bytes4 => bool) internal supportedInterfaces;
/**
* @dev Contract constructor.
*/
constructor()
{
supportedInterfaces[0x01ffc9a7] = true; // ERC165
}
/**
* @dev Function to check which interfaces are suported by this contract.
* @param _interfaceID Id of the interface.
* @return True if _interfaceID is supported, false otherwise.
*/
function supportsInterface(
bytes4 _interfaceID
)
external
override
view
returns (bool)
{
return supportedInterfaces[_interfaceID];
}
}
/**
* @dev Implementation of ERC-721 non-fungible token standard.
*/
contract NFToken is
ERC721,
SupportsInterface
{
using Address for address;
/**
* @dev List of revert message codes. Implementing dApp should handle showing the correct message.
* Based on 0xcert framework error codes.
*/
string constant ZERO_ADDRESS = "003001";
string constant NOT_VALID_NFT = "003002";
string constant NOT_OWNER_OR_OPERATOR = "003003";
string constant NOT_OWNER_APPROVED_OR_OPERATOR = "003004";
string constant NOT_ABLE_TO_RECEIVE_NFT = "003005";
string constant NFT_ALREADY_EXISTS = "003006";
string constant NOT_OWNER = "003007";
string constant IS_OWNER = "003008";
/**
* @dev Magic value of a smart contract that can receive NFT.
* Equal to: bytes4(keccak256("onERC721Received(address,address,uint256,bytes)")).
*/
bytes4 internal constant MAGIC_ON_ERC721_RECEIVED = 0x150b7a02;
/**
* @dev A mapping from NFT ID to the address that owns it.
*/
mapping (uint256 => address) internal idToOwner;
/**
* @dev Mapping from NFT ID to approved address.
*/
mapping (uint256 => address) internal idToApproval;
/**
* @dev Mapping from owner address to count of his tokens.
*/
mapping (address => uint256) private ownerToNFTokenCount;
/**
* @dev Mapping from owner address to mapping of operator addresses.
*/
mapping (address => mapping (address => bool)) internal ownerToOperators;
/**
* @dev Guarantees that the msg.sender is an owner or operator of the given NFT.
* @param _tokenId ID of the NFT to validate.
*/
modifier canOperate(
uint256 _tokenId
)
{
address tokenOwner = idToOwner[_tokenId];
require(
tokenOwner == msg.sender || ownerToOperators[tokenOwner][msg.sender],
NOT_OWNER_OR_OPERATOR
);
_;
}
/**
* @dev Guarantees that the msg.sender is allowed to transfer NFT.
* @param _tokenId ID of the NFT to transfer.
*/
modifier canTransfer(
uint256 _tokenId
)
{
address tokenOwner = idToOwner[_tokenId];
require(
tokenOwner == msg.sender
|| idToApproval[_tokenId] == msg.sender
|| ownerToOperators[tokenOwner][msg.sender],
NOT_OWNER_APPROVED_OR_OPERATOR
);
_;
}
/**
* @dev Guarantees that _tokenId is a valid Token.
* @param _tokenId ID of the NFT to validate.
*/
modifier validNFToken(
uint256 _tokenId
)
{
require(idToOwner[_tokenId] != address(0), NOT_VALID_NFT);
_;
}
/**
* @dev Contract constructor.
*/
constructor()
{
supportedInterfaces[0x80ac58cd] = true; // ERC721
}
/**
* @dev Transfers the ownership of an NFT from one address to another address. This function can
* be changed to payable.
* @notice Throws unless `msg.sender` is the current owner, an authorized operator, or the
* approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is
* the zero address. Throws if `_tokenId` is not a valid NFT. When transfer is complete, this
* function checks if `_to` is a smart contract (code size > 0). If so, it calls
* `onERC721Received` on `_to` and throws if the return value is not
* `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`.
* @param _from The current owner of the NFT.
* @param _to The new owner.
* @param _tokenId The NFT to transfer.
* @param _data Additional data with no specified format, sent in call to `_to`.
*/
function safeTransferFrom(
address _from,
address _to,
uint256 _tokenId,
bytes calldata _data
)
external
override
{
_safeTransferFrom(_from, _to, _tokenId, _data);
}
/**
* @dev Transfers the ownership of an NFT from one address to another address. This function can
* be changed to payable.
* @notice This works identically to the other function with an extra data parameter, except this
* function just sets data to ""
* @param _from The current owner of the NFT.
* @param _to The new owner.
* @param _tokenId The NFT to transfer.
*/
function safeTransferFrom(
address _from,
address _to,
uint256 _tokenId
)
external
override
{
_safeTransferFrom(_from, _to, _tokenId, "");
}
/**
* @dev Throws unless `msg.sender` is the current owner, an authorized operator, or the approved
* address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero
* address. Throws if `_tokenId` is not a valid NFT. This function can be changed to payable.
* @notice The caller is responsible to confirm that `_to` is capable of receiving NFTs or else
* they may be permanently lost.
* @param _from The current owner of the NFT.
* @param _to The new owner.
* @param _tokenId The NFT to transfer.
*/
function transferFrom(
address _from,
address _to,
uint256 _tokenId
)
external
override
canTransfer(_tokenId)
validNFToken(_tokenId)
{
address tokenOwner = idToOwner[_tokenId];
require(tokenOwner == _from, NOT_OWNER);
require(_to != address(0), ZERO_ADDRESS);
_transfer(_to, _tokenId);
}
/**
* @dev Set or reaffirm the approved address for an NFT. This function can be changed to payable.
* @notice The zero address indicates there is no approved address. Throws unless `msg.sender` is
* the current NFT owner, or an authorized operator of the current owner.
* @param _approved Address to be approved for the given NFT ID.
* @param _tokenId ID of the token to be approved.
*/
function approve(
address _approved,
uint256 _tokenId
)
external
override
canOperate(_tokenId)
validNFToken(_tokenId)
{
address tokenOwner = idToOwner[_tokenId];
require(_approved != tokenOwner, IS_OWNER);
idToApproval[_tokenId] = _approved;
emit Approval(tokenOwner, _approved, _tokenId);
}
/**
* @dev Enables or disables approval for a third party ("operator") to manage all of
* `msg.sender`'s assets. It also emits the ApprovalForAll event.
* @notice This works even if sender doesn't own any tokens at the time.
* @param _operator Address to add to the set of authorized operators.
* @param _approved True if the operators is approved, false to revoke approval.
*/
function setApprovalForAll(
address _operator,
bool _approved
)
external
override
{
ownerToOperators[msg.sender][_operator] = _approved;
emit ApprovalForAll(msg.sender, _operator, _approved);
}
/**
* @dev Returns the number of NFTs owned by `_owner`. NFTs assigned to the zero address are
* considered invalid, and this function throws for queries about the zero address.
* @param _owner Address for whom to query the balance.
* @return Balance of _owner.
*/
function balanceOf(
address _owner
)
external
override
view
returns (uint256)
{
require(_owner != address(0), ZERO_ADDRESS);
return _getOwnerNFTCount(_owner);
}
/**
* @dev Returns the address of the owner of the NFT. NFTs assigned to the zero address are
* considered invalid, and queries about them do throw.
* @param _tokenId The identifier for an NFT.
* @return _owner Address of _tokenId owner.
*/
function ownerOf(
uint256 _tokenId
)
external
override
view
returns (address _owner)
{
_owner = idToOwner[_tokenId];
require(_owner != address(0), NOT_VALID_NFT);
}
/**
* @dev Get the approved address for a single NFT.
* @notice Throws if `_tokenId` is not a valid NFT.
* @param _tokenId ID of the NFT to query the approval of.
* @return Address that _tokenId is approved for.
*/
function getApproved(
uint256 _tokenId
)
external
override
view
validNFToken(_tokenId)
returns (address)
{
return idToApproval[_tokenId];
}
/**
* @dev Checks if `_operator` is an approved operator for `_owner`.
* @param _owner The address that owns the NFTs.
* @param _operator The address that acts on behalf of the owner.
* @return True if approved for all, false otherwise.
*/
function isApprovedForAll(
address _owner,
address _operator
)
external
override
view
returns (bool)
{
return ownerToOperators[_owner][_operator];
}
/**
* @dev Actually performs the transfer.
* @notice Does NO checks.
* @param _to Address of a new owner.
* @param _tokenId The NFT that is being transferred.
*/
function _transfer(
address _to,
uint256 _tokenId
)
internal
{
address from = idToOwner[_tokenId];
_clearApproval(_tokenId);
_removeNFToken(from, _tokenId);
_addNFToken(_to, _tokenId);
emit Transfer(from, _to, _tokenId);
}
/**
* @dev Mints a new NFT.
* @notice This is an internal function which should be called from user-implemented external
* mint function. Its purpose is to show and properly initialize data structures when using this
* implementation.
* @param _to The address that will own the minted NFT.
* @param _tokenId of the NFT to be minted by the msg.sender.
*/
function _mint(
address _to,
uint256 _tokenId
)
internal
virtual
{
require(_to != address(0), ZERO_ADDRESS);
require(idToOwner[_tokenId] == address(0), NFT_ALREADY_EXISTS);
_addNFToken(_to, _tokenId);
emit Transfer(address(0), _to, _tokenId);
}
/**
* @dev Burns a NFT.
* @notice This is an internal function which should be called from user-implemented external burn
* function. Its purpose is to show and properly initialize data structures when using this
* implementation. Also, note that this burn implementation allows the minter to re-mint a burned
* NFT.
* @param _tokenId ID of the NFT to be burned.
*/
function _burn(
uint256 _tokenId
)
internal
virtual
validNFToken(_tokenId)
{
address tokenOwner = idToOwner[_tokenId];
_clearApproval(_tokenId);
_removeNFToken(tokenOwner, _tokenId);
emit Transfer(tokenOwner, address(0), _tokenId);
}
/**
* @dev Removes a NFT from owner.
* @notice Use and override this function with caution. Wrong usage can have serious consequences.
* @param _from Address from which we want to remove the NFT.
* @param _tokenId Which NFT we want to remove.
*/
function _removeNFToken(
address _from,
uint256 _tokenId
)
internal
virtual
{
require(idToOwner[_tokenId] == _from, NOT_OWNER);
ownerToNFTokenCount[_from] = ownerToNFTokenCount[_from] - 1;
delete idToOwner[_tokenId];
}
/**
* @dev Assigns a new NFT to owner.
* @notice Use and override this function with caution. Wrong usage can have serious consequences.
* @param _to Address to which we want to add the NFT.
* @param _tokenId Which NFT we want to add.
*/
function _addNFToken(
address _to,
uint256 _tokenId
)
internal
virtual
{
require(idToOwner[_tokenId] == address(0), NFT_ALREADY_EXISTS);
idToOwner[_tokenId] = _to;
ownerToNFTokenCount[_to] = ownerToNFTokenCount[_to] + 1;
}
/**
* @dev Helper function that gets NFT count of owner. This is needed for overriding in enumerable
* extension to remove double storage (gas optimization) of owner NFT count.
* @param _owner Address for whom to query the count.
* @return Number of _owner NFTs.
*/
function _getOwnerNFTCount(
address _owner
)
internal
virtual
view
returns (uint256)
{
return ownerToNFTokenCount[_owner];
}
/**
* @dev Actually perform the safeTransferFrom.
* @param _from The current owner of the NFT.
* @param _to The new owner.
* @param _tokenId The NFT to transfer.
* @param _data Additional data with no specified format, sent in call to `_to`.
*/
function _safeTransferFrom(
address _from,
address _to,
uint256 _tokenId,
bytes memory _data
)
private
canTransfer(_tokenId)
validNFToken(_tokenId)
{
address tokenOwner = idToOwner[_tokenId];
require(tokenOwner == _from, NOT_OWNER);
require(_to != address(0), ZERO_ADDRESS);
_transfer(_to, _tokenId);
if (_to.isContract())
{
bytes4 retval = ERC721TokenReceiver(_to).onERC721Received(msg.sender, _from, _tokenId, _data);
require(retval == MAGIC_ON_ERC721_RECEIVED, NOT_ABLE_TO_RECEIVE_NFT);
}
}
/**
* @dev Clears the current approval of a given NFT ID.
* @param _tokenId ID of the NFT to be transferred.
*/
function _clearApproval(
uint256 _tokenId
)
private
{
if (idToApproval[_tokenId] != address(0))
{
delete idToApproval[_tokenId];
}
}
}
/**
* @dev Optional enumeration extension for ERC-721 non-fungible token standard.
* See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md.
*/
interface ERC721Enumerable
{
/**
* @dev Returns a count of valid NFTs tracked by this contract, where each one of them has an
* assigned and queryable owner not equal to the zero address.
* @return Total supply of NFTs.
*/
function totalSupply()
external
view
returns (uint256);
/**
* @dev Returns the token identifier for the `_index`th NFT. Sort order is not specified.
* @param _index A counter less than `totalSupply()`.
* @return Token id.
*/
function tokenByIndex(
uint256 _index
)
external
view
returns (uint256);
/**
* @dev Returns the token identifier for the `_index`th NFT assigned to `_owner`. Sort order is
* not specified. It throws if `_index` >= `balanceOf(_owner)` or if `_owner` is the zero address,
* representing invalid NFTs.
* @param _owner An address where we are interested in NFTs owned by them.
* @param _index A counter less than `balanceOf(_owner)`.
* @return Token id.
*/
function tokenOfOwnerByIndex(
address _owner,
uint256 _index
)
external
view
returns (uint256);
}
/**
* @dev Optional enumeration implementation for ERC-721 non-fungible token standard.
*/
contract NFTokenEnumerable is
NFToken,
ERC721Enumerable
{
/**
* @dev List of revert message codes. Implementing dApp should handle showing the correct message.
* Based on 0xcert framework error codes.
*/
string constant INVALID_INDEX = "005007";
/**
* @dev Array of all NFT IDs.
*/
uint256[] internal tokens;
/**
* @dev Mapping from token ID to its index in global tokens array.
*/
mapping(uint256 => uint256) internal idToIndex;
/**
* @dev Mapping from owner to list of owned NFT IDs.
*/
mapping(address => uint256[]) internal ownerToIds;
/**
* @dev Mapping from NFT ID to its index in the owner tokens list.
*/
mapping(uint256 => uint256) internal idToOwnerIndex;
/**
* @dev Contract constructor.
*/
constructor()
{
supportedInterfaces[0x780e9d63] = true; // ERC721Enumerable
}
/**
* @dev Returns the count of all existing NFTokens.
* @return Total supply of NFTs.
*/
function totalSupply()
external
override
view
returns (uint256)
{
return tokens.length;
}
/**
* @dev Returns NFT ID by its index.
* @param _index A counter less than `totalSupply()`.
* @return Token id.
*/
function tokenByIndex(
uint256 _index
)
external
override
view
returns (uint256)
{
require(_index < tokens.length, INVALID_INDEX);
return tokens[_index];
}
/**
* @dev returns the n-th NFT ID from a list of owner's tokens.
* @param _owner Token owner's address.
* @param _index Index number representing n-th token in owner's list of tokens.
* @return Token id.
*/
function tokenOfOwnerByIndex(
address _owner,
uint256 _index
)
external
override
view
returns (uint256)
{
require(_index < ownerToIds[_owner].length, INVALID_INDEX);
return ownerToIds[_owner][_index];
}
/**
* @dev Mints a new NFT.
* @notice This is an internal function which should be called from user-implemented external
* mint function. Its purpose is to show and properly initialize data structures when using this
* implementation.
* @param _to The address that will own the minted NFT.
* @param _tokenId of the NFT to be minted by the msg.sender.
*/
function _mint(
address _to,
uint256 _tokenId
)
internal
override
virtual
{
super._mint(_to, _tokenId);
tokens.push(_tokenId);
idToIndex[_tokenId] = tokens.length - 1;
}
/**
* @dev Burns a NFT.
* @notice This is an internal function which should be called from user-implemented external
* burn function. Its purpose is to show and properly initialize data structures when using this
* implementation. Also, note that this burn implementation allows the minter to re-mint a burned
* NFT.
* @param _tokenId ID of the NFT to be burned.
*/
function _burn(
uint256 _tokenId
)
internal
override
virtual
{
super._burn(_tokenId);
uint256 tokenIndex = idToIndex[_tokenId];
uint256 lastTokenIndex = tokens.length - 1;
uint256 lastToken = tokens[lastTokenIndex];
tokens[tokenIndex] = lastToken;
tokens.pop();
// This wastes gas if you are burning the last token but saves a little gas if you are not.
idToIndex[lastToken] = tokenIndex;
idToIndex[_tokenId] = 0;
}
/**
* @dev Removes a NFT from an address.
* @notice Use and override this function with caution. Wrong usage can have serious consequences.
* @param _from Address from wich we want to remove the NFT.
* @param _tokenId Which NFT we want to remove.
*/
function _removeNFToken(
address _from,
uint256 _tokenId
)
internal
override
virtual
{
require(idToOwner[_tokenId] == _from, NOT_OWNER);
delete idToOwner[_tokenId];
uint256 tokenToRemoveIndex = idToOwnerIndex[_tokenId];
uint256 lastTokenIndex = ownerToIds[_from].length - 1;
if (lastTokenIndex != tokenToRemoveIndex)
{
uint256 lastToken = ownerToIds[_from][lastTokenIndex];
ownerToIds[_from][tokenToRemoveIndex] = lastToken;
idToOwnerIndex[lastToken] = tokenToRemoveIndex;
}
ownerToIds[_from].pop();
}
/**
* @dev Assigns a new NFT to an address.
* @notice Use and override this function with caution. Wrong usage can have serious consequences.
* @param _to Address to wich we want to add the NFT.
* @param _tokenId Which NFT we want to add.
*/
function _addNFToken(
address _to,
uint256 _tokenId
)
internal
override
virtual
{
require(idToOwner[_tokenId] == address(0), NFT_ALREADY_EXISTS);
idToOwner[_tokenId] = _to;
ownerToIds[_to].push(_tokenId);
idToOwnerIndex[_tokenId] = ownerToIds[_to].length - 1;
}
/**
* @dev Helper function that gets NFT count of owner. This is needed for overriding in enumerable
* extension to remove double storage(gas optimization) of owner NFT count.
* @param _owner Address for whom to query the count.
* @return Number of _owner NFTs.
*/
function _getOwnerNFTCount(
address _owner
)
internal
override
virtual
view
returns (uint256)
{
return ownerToIds[_owner].length;
}
}
/**
* @dev Optional metadata extension for ERC-721 non-fungible token standard.
* See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md.
*/
interface ERC721Metadata
{
/**
* @dev Returns a descriptive name for a collection of NFTs in this contract.
* @return _name Representing name.
*/
function name()
external
view
returns (string memory _name);
/**
* @dev Returns a abbreviated name for a collection of NFTs in this contract.
* @return _symbol Representing symbol.
*/
function symbol()
external
view
returns (string memory _symbol);
/**
* @dev Returns a distinct Uniform Resource Identifier (URI) for a given asset. It Throws if
* `_tokenId` is not a valid NFT. URIs are defined in RFC3986. The URI may point to a JSON file
* that conforms to the "ERC721 Metadata JSON Schema".
* @return URI of _tokenId.
*/
function tokenURI(uint256 _tokenId)
external
view
returns (string memory);
}
/**
* @dev Optional metadata implementation for ERC-721 non-fungible token standard.
*/
abstract contract NFTokenMetadata is
NFTokenEnumerable,
ERC721Metadata
{
/**
* @dev A descriptive name for a collection of NFTs.
*/
string internal nftName = "Pet";
/**
* @dev An abbreviated name for NFTokens.
*/
string internal nftSymbol = "PET_NFT";
/**
* @dev Contract constructor.
* @notice When implementing this contract don't forget to set nftName and nftSymbol.
*/
constructor()
{
supportedInterfaces[0x5b5e139f] = true; // ERC721Metadata
}
/**
* @dev Returns a descriptive name for a collection of NFTokens.
* @return _name Representing name.
*/
function name()
external
override
view
returns (string memory _name)
{
_name = nftName;
}
/**
* @dev Returns an abbreviated name for NFTokens.
* @return _symbol Representing symbol.
*/
function symbol()
external
override
view
returns (string memory _symbol)
{
_symbol = nftSymbol;
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "./0-ierc20.sol";
import "./0-ownable.sol";
import "./1-nf-token-metadata.sol";
import "./2-prize-control.sol";
import "./5-types.sol";
import "./5-irandomizer.sol";
import "./6-token-uri-helper.sol";
contract PetNFT is Ownable, NFTokenMetadata {
uint256 public createdTokenCount = 0;
mapping(uint256 => Types.Pet) public pets;
IERC20 erc20Token;
IRandomizer randomizer;
TokenURIHelper tokenURIHelper;
PrizeControl prizeControl;
address dev;
address adventure;
constructor(
IERC20 _erc20Token,
address randomizerAddress,
address tokenURIHelperAddress,
PrizeControl _prizeControl,
address _dev,
address _adventure
) {
erc20Token = _erc20Token;
adventure = _adventure;
randomizer = IRandomizer(randomizerAddress);
tokenURIHelper = TokenURIHelper(tokenURIHelperAddress);
prizeControl = _prizeControl;
dev = _dev;
}
function setRandomizer(IRandomizer _randomizer) public onlyOwner {
randomizer = _randomizer;
}
function setAdventure(address _adventure) public onlyOwner {
adventure = _adventure;
}
function setTokenURIHelper(TokenURIHelper _tokenURIHelper) public onlyOwner {
tokenURIHelper = _tokenURIHelper;
}
function mint(address to, uint256 level, uint256 hp, uint256 mp, uint256 st, uint256 ag, uint256 it, Types.PetClass cl) internal returns(Types.Pet memory) {
uint256 tokenId = ++createdTokenCount;
pets[tokenId] = Types.Pet({
id: tokenId,
level: level,
hp: hp,
mp: mp,
st: st,
ag: ag,
it: it,
cl: cl
});
super._mint(to, tokenId);
return pets[tokenId];
}
function mint(address to, uint256 level, Types.PetClass cl) internal returns(Types.Pet memory) {
return mint(to, level, 0, 0, 0, 0, 0, cl);
}
function withdrawMatic() public onlyOwner {
payable(msg.sender).transfer(address(this).balance);
}
function withdrawToken(uint256 amount, IERC20 erc20) public onlyOwner {
erc20.transfer(owner, amount);
}
function isContract(address account) internal view returns (bool) {
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
assembly { codehash := extcodehash(account) }
return (codehash != accountHash && codehash != 0x0);
}
function setPrizeControl(PrizeControl _prizeControl) public onlyOwner {
prizeControl = _prizeControl;
}
event Buy(address user, uint256 level, uint256 quantity);
function buy(uint256 level, uint256 quantity) public {
require(!isContract(_msgSender()), "NO_CONTRACT_CALLS");
require(quantity <= 30, "TOO_MANY_PET");
prizeControl.decreaseLimit(level, quantity);
erc20Token.transferFrom(
_msgSender(),
address(this),
PET_PRICES[level] * quantity / 100
);
Types.PetClass[] memory petClasses = randomizer.getPetClasses(quantity);
for (uint256 count = 1; count <= quantity; count++) mint(_msgSender(), level, petClasses[count - 1]);
emit Buy(_msgSender(), level, quantity);
uint prize = prizeControl.getPrize(level, quantity);
payPrize(prize, _msgSender());
}
event PayPrize(address receiver, uint256 quantity);
function payPrize(uint256 prize, address receiver) internal {
uint balance = address(this).balance;
if (balance < prize || prize == 0) return;
payable(receiver).transfer(prize);
emit PayPrize(receiver, prize);
}
uint256[] public PET_PRICES = [
0,
3571 gwei,
7500 gwei,
15803 gwei,
33414 gwei,
70922 gwei,
151140 gwei,
323478 gwei,
695502 gwei,
1502687 gwei,
3263563 gwei,
7127118 gwei,
15656249 gwei,
34607907 gwei,
77010177 gwei,
172578613 gwei,
386745997 gwei,
866691785 gwei,
1942242856 gwei,
4352536135 gwei
];
uint256[] public PET_PRICES_FOR_SELLERS = [
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether,
0 ether
];
uint256 public DEV_COMMISSION = 3;
function setPetPricesForBuyer(uint256[19] memory newPrices) public onlyOwner {
for (uint256 index = 0; index < newPrices.length; index++) {
PET_PRICES[index + 1] = newPrices[index];
}
}
function setPetPricesForSeller(uint256[19] memory newPrices) public onlyOwner {
for (uint256 index = 0; index < newPrices.length; index++) {
PET_PRICES_FOR_SELLERS[index + 1] = newPrices[index];
}
}
event Sell(address user, uint256 tokenId, uint256 value);
function sell(uint256 tokenId) public {
_burn(tokenId);
uint256 level = pets[tokenId].level;
uint256 value = PET_PRICES_FOR_SELLERS[level];
uint256 devCommission = value * DEV_COMMISSION / 100;
erc20Token.transfer(_msgSender(), value - devCommission);
erc20Token.transfer(dev, devCommission);
emit Sell(_msgSender(), tokenId, value);
}
uint256 LIMIT_OF_TOKENS_PER_UPGRADE = 10;
event Upgrade(uint256[] inputTokenIds, uint256[] outputTokenIds, Types.UpgradeResult upgradeResult, address user);
function upgrade(uint256[] memory tokenIds) public {
require(!isContract(_msgSender()), "NO_CONTRACT_CALLS");
ensureTokenIdsInAscendingOrder(tokenIds);
Types.Pet[] memory allPets = getPetsByIds(tokenIds);
ensureAllTokensBelongToSender(allPets);
ensureSameClass(allPets);
(uint256[] memory toBurnIds, Types.Pet[] memory newPets, Types.UpgradeResult upgradeResult) = randomizer.upgrade(allPets);
for (uint256 index = 0; index < toBurnIds.length; index++) _burn(toBurnIds[index]);
uint256[] memory outputTokenIds = new uint256[](newPets.length);
for (uint256 index = 0; index < newPets.length; index++) {
Types.Pet memory pet = newPets[index];
outputTokenIds[index] = mint(_msgSender(), pet.level, pet.hp, pet.mp, pet.st, pet.ag, pet.it, pet.cl).id;
}
emit Upgrade(tokenIds, outputTokenIds, upgradeResult, _msgSender());
}
function getPosibility(uint256[] memory tokenIds) public view returns(uint256[4] memory) {
ensureTokenIdsInAscendingOrder(tokenIds);
Types.Pet[] memory allPets = getPetsByIds(tokenIds);
return randomizer.getPosibilityWithCurrentSetting(allPets);
}
function ensureAllTokensBelongToSender(Types.Pet[] memory allPets) public view {
uint256 length = allPets.length;
address sender = _msgSender();
for (uint256 index = 0; index < length; index++) {
require(this.ownerOf(allPets[index].id) == sender, "MUST_OWN_ALL_TOKENS");
}
}
function ensureSameClass(Types.Pet[] memory allPets) internal pure {
uint256 length = allPets.length;
Types.PetClass petClass = allPets[0].cl;
for (uint256 index = 1; index < length; index++) {
require(allPets[index].cl == petClass, "NOT_SAME_CLASS");
}
}
function ensureTokenIdsInAscendingOrder(uint256[] memory tokenIds) public pure {
uint256 length = tokenIds.length;
for (uint256 index = 1; index < length; index++) {
require(tokenIds[index] > tokenIds[index - 1], "TOKEN_IDS_MUST_BE_IN_ASCENDING_ORDER");
}
}
function getPetsByIds(uint256[] memory tokenIds) public view returns(Types.Pet[] memory) {
uint256 length = tokenIds.length;
Types.Pet[] memory result = new Types.Pet[](length);
for (uint256 index = 0; index < length; index++) {
result[index] = pets[tokenIds[index]];
}
return result;
}
function getPetsByAccount(address account, uint256 limit, uint256 offset) public view returns(Types.Pet[] memory result) {
uint256 max = this.balanceOf(account);
if (offset >= max) return result;
uint256 count = (offset + limit <= max) ? limit : max - offset;
result = new Types.Pet[](count);
for (uint256 index = 0; index < count; index++) {
result[index] = pets[this.tokenOfOwnerByIndex(account, index + offset)];
}
return result;
}
function tokenURI(
uint256 _tokenId
)
external
override
view
validNFToken(_tokenId)
returns (string memory)
{
return tokenURIHelper.getURI(pets[_tokenId], this);
}
function _testMint(address to, uint256 level, uint256 hp, uint256 mp, uint256 st, uint256 ag, uint256 it, Types.PetClass cl) public {
mint(to, level, hp, mp, st, ag, it, cl);
}
function deposit() public payable {}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "./0-ierc20.sol";
import "./0-ownable.sol";
import "./1-nf-token-metadata.sol";
import "./5-types.sol";
import "./5-irandomizer.sol";
import "./6-token-uri-helper.sol";
contract PrizeControl is Ownable {
uint256[] public PRIZE_BY_LEVEL = [
0.00001 ether,
0.00001 ether,
0.0 ether,
0.00002 ether,
0.00003 ether,
0.00004 ether,
0.00005 ether,
0.00006 ether,
0.00007 ether,
0.00008 ether,
0.00009 ether,
0.00001 ether,
0.00001 ether,
0.00001 ether,
0.00001 ether,
0.00001 ether,
0.00001 ether,
0.00001 ether,
0.00001 ether,
0.00002 ether
];
// 1 means 0.0001 BNB
function setPrizes(uint256[19] memory newPrizes) public onlyOwner {
for (uint256 index = 0; index < newPrizes.length; index++) {
PRIZE_BY_LEVEL[index + 1] = newPrizes[index] * 10 ** 15;
}
}
function getPrizes() public view returns(uint256[] memory) {
return PRIZE_BY_LEVEL;
}
uint256[] public DIFFICULTY_BY_LEVEL = [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19
];
function setDifficulties(uint256[19] memory newDifficulties) public onlyOwner {
for (uint256 index = 0; index < newDifficulties.length; index++) {
DIFFICULTY_BY_LEVEL[index + 1] = newDifficulties[index];
}
}
function getDifficulties() public view returns(uint256[] memory) {
return DIFFICULTY_BY_LEVEL;
}
uint256[] public LIMIT_BY_LEVEL = [
0,
1000,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
];
function setLimits(uint256[19] memory newLimits) public onlyOwner {
for (uint256 index = 0; index < newLimits.length; index++) {
LIMIT_BY_LEVEL[index + 1] = newLimits[index];
}
}
function getLimits() public view returns(uint256[] memory) {
return LIMIT_BY_LEVEL;
}
function decreaseLimit(uint level, uint quantity) public {
require(msg.sender != tx.origin, "ONLY_NFT");
require(LIMIT_BY_LEVEL[level] >= quantity, "OVER_QUOTA");
LIMIT_BY_LEVEL[level] -= quantity;
}
function getPrize(uint level, uint quantity) public view returns(uint totalPrize) {
uint prize = PRIZE_BY_LEVEL[level];
if (prize == 0) return 0;
uint difficulty = DIFFICULTY_BY_LEVEL[level];
uint random = getRandom();
for (uint count = 1; count < quantity; count++) {
random = random / 10;
if (random % difficulty == 0) totalPrize += prize;
}
}
function getRandom() public view returns(uint256) {
return uint256(keccak256(abi.encodePacked(block.timestamp, tx.origin)));
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "./5-types.sol";
interface IRandomizer {
function upgrade(Types.Pet[] memory pets) external returns(
uint256[] memory toBurnIds,
Types.Pet[] memory newPets,
Types.UpgradeResult
);
function getPosibilityWithCurrentSetting(Types.Pet[] memory pets) external view returns(uint256[4] memory toBurnIds);
function getPetClasses(uint256 quantity) external returns(Types.PetClass[] memory);
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
interface Types {
enum PetClass {
TEAL,
SILVER,
BURGUNDY,
BLOND,
PURPLE
}
struct Pet {
uint256 id;
uint256 level;
uint256 hp;
uint256 mp;
uint256 st;
uint256 ag;
uint256 it;
PetClass cl;
}
enum UpgradeResult {
FAIL,
INCREASE_1_LEVEL,
INCREASE_2_LEVELS,
INCREASE_3_LEVELS
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "./5-types.sol";
import "./0-ownable.sol";
import "./0-erc721.sol";
contract TokenURIHelper is Ownable {
function getURI(Types.Pet memory pet, ERC721 erc721) public view returns(string memory) {
erc721;
return string(
abi.encodePacked(
serverURL,
smallNumberToString(pet.level)
)
);
}
string public serverURL = "https://play.petempire.io/api/pets/";
function setServerURL(string memory _serverURL) public onlyOwner {
serverURL = _serverURL;
}
function tokenIdToString(uint256 tokenId) public pure returns(string memory) {
uint256 maxIdNumbers = 20;
string[] memory initial = new string[](maxIdNumbers);
string[10] memory map = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
uint256 remain = tokenId;
for (uint256 index = maxIdNumbers - 1; index >= 0; index--) {
uint256 nextNumber = remain % 10;
initial[index] = map[nextNumber];
remain = remain / 10;
if (remain == 0) break;
}
string memory part1 = string(abi.encodePacked(
initial[0],
initial[1],
initial[2],
initial[3],
initial[4],
initial[5],
initial[6],
initial[7]
));
string memory part2 = string(abi.encodePacked(
initial[7],
initial[8],
initial[9],
initial[10],
initial[11],
initial[12],
initial[13]
));
string memory part3 = string(abi.encodePacked(
initial[13],
initial[14],
initial[15],
initial[16],
initial[17],
initial[18],
initial[19]
));
return string(abi.encodePacked(
part1, part2, part3
));
}
function smallNumberToString(uint256 value) public pure returns(string memory) {
string[21] memory map = [
'0', '1', '2', '3', '4', '5', '6',
'7', '8', '9', '10', '11', '12',
'13', '14', '15', '16', '17', '18',
'19', '20'
];
return map[value];
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "./0-ierc20.sol";
import "./0-ownable.sol";
import "./1-nf-token-metadata.sol";
import "./5-types.sol";
import "./5-irandomizer.sol";
import "./6-token-uri-helper.sol";
contract PrizeControl is Ownable {
uint256[] public PRIZE_BY_LEVEL = [
0.00001 ether,
0.00001 ether,
0.0 ether,
0.00002 ether,
0.00003 ether,
0.00004 ether,
0.00005 ether,
0.00006 ether,
0.00007 ether,
0.00008 ether,
0.00009 ether,
0.00001 ether,
0.00001 ether,
0.00001 ether,
0.00001 ether,
0.00001 ether,
0.00001 ether,
0.00001 ether,
0.00001 ether,
0.00002 ether
];
// 1 means 0.0001 BNB
function setPrizes(uint256[19] memory newPrizes) public onlyOwner {
for (uint256 index = 0; index < newPrizes.length; index++) {
PRIZE_BY_LEVEL[index + 1] = newPrizes[index] * 10 ** 15;
}
}
function getPrizes() public view returns(uint256[] memory) {
return PRIZE_BY_LEVEL;
}
uint256[] public DIFFICULTY_BY_LEVEL = [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19
];
function setDifficulties(uint256[19] memory newDifficulties) public onlyOwner {
for (uint256 index = 0; index < newDifficulties.length; index++) {
DIFFICULTY_BY_LEVEL[index + 1] = newDifficulties[index];
}
}
function getDifficulties() public view returns(uint256[] memory) {
return DIFFICULTY_BY_LEVEL;
}
uint256[] public LIMIT_BY_LEVEL = [
0,
1000,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
];
function setLimits(uint256[19] memory newLimits) public onlyOwner {
for (uint256 index = 0; index < newLimits.length; index++) {
LIMIT_BY_LEVEL[index + 1] = newLimits[index];
}
}
function getLimits() public view returns(uint256[] memory) {
return LIMIT_BY_LEVEL;
}
function decreaseLimit(uint level, uint quantity) public {
require(msg.sender != tx.origin, "ONLY_NFT");
require(LIMIT_BY_LEVEL[level] >= quantity, "OVER_QUOTA");
LIMIT_BY_LEVEL[level] -= quantity;
}
function getPrize(uint level, uint quantity) public view returns(uint totalPrize) {
uint prize = PRIZE_BY_LEVEL[level];
if (prize == 0) return 0;
uint difficulty = DIFFICULTY_BY_LEVEL[level];
uint random = getRandom();
for (uint count = 1; count < quantity; count++) {
random = random / 10;
if (random % difficulty == 0) totalPrize += prize;
}
}
function getRandom() public view returns(uint256) {
return uint256(keccak256(abi.encodePacked(block.timestamp, tx.origin)));
}
}
contract AttackPrize {
PrizeControl pc;
address targetPC = 0xabeFa900d1A4bFA94aD41eFAf3A0e8588b623c7A;
uint totalPrize;
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "61010361003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361060335760003560e01c806316279055146038575b600080fd5b604760433660046096565b605b565b6040516052919060c2565b60405180910390f35b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590608e57508115155b949350505050565b60006020828403121560a6578081fd5b81356001600160a01b038116811460bb578182fd5b9392505050565b90151581526020019056fea264697066735822122069c23123a1f5c94c149bdd2c5d034c0aa38e53c58c9b1374749cad4ec93b8e7664736f6c63430008000033",
"opcodes": "PUSH2 0x103 PUSH2 0x3A PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH2 0x2D JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x33 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x16279055 EQ PUSH1 0x38 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x47 PUSH1 0x43 CALLDATASIZE PUSH1 0x4 PUSH1 0x96 JUMP JUMPDEST PUSH1 0x5B JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x52 SWAP2 SWAP1 PUSH1 0xC2 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP2 EXTCODEHASH PUSH32 0xC5D2460186F7233C927E7DB2DCC703C0E500B653CA82273B7BFAD8045D85A470 DUP2 DUP2 EQ DUP1 ISZERO SWAP1 PUSH1 0x8E JUMPI POP DUP2 ISZERO ISZERO JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH1 0xA6 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH1 0xBB JUMPI DUP2 DUP3 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH10 0xC23123A1F5C94C149BDD 0x2C 0x5D SUB 0x4C EXP LOG3 DUP15 MSTORE8 0xC5 DUP13 SWAP12 SGT PUSH21 0x749CAD4EC93B8E7664736F6C634300080000330000 ",
"sourceMap": "125:5949:0:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;125:5949:0;;;;;;;;;;;;;;;;;"
},
"deployedBytecode": {
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:522:1",
"statements": [
{
"nodeType": "YulBlock",
"src": "6:3:1",
"statements": []
},
{
"body": {
"nodeType": "YulBlock",
"src": "84:236:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "130:26:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "139:6:1"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "147:6:1"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "132:6:1"
},
"nodeType": "YulFunctionCall",
"src": "132:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "132:22:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "105:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "114:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "101:3:1"
},
"nodeType": "YulFunctionCall",
"src": "101:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "126:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "97:3:1"
},
"nodeType": "YulFunctionCall",
"src": "97:32:1"
},
"nodeType": "YulIf",
"src": "94:2:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "165:36:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "191:9:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "178:12:1"
},
"nodeType": "YulFunctionCall",
"src": "178:23:1"
},
"variables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "169:5:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "264:26:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "273:6:1"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "281:6:1"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "266:6:1"
},
"nodeType": "YulFunctionCall",
"src": "266:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "266:22:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "223:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "234:5:1"
},
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "249:3:1",
"type": "",
"value": "160"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "254:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "245:3:1"
},
"nodeType": "YulFunctionCall",
"src": "245:11:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "258:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "241:3:1"
},
"nodeType": "YulFunctionCall",
"src": "241:19:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "230:3:1"
},
"nodeType": "YulFunctionCall",
"src": "230:31:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "220:2:1"
},
"nodeType": "YulFunctionCall",
"src": "220:42:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "213:6:1"
},
"nodeType": "YulFunctionCall",
"src": "213:50:1"
},
"nodeType": "YulIf",
"src": "210:2:1"
},
{
"nodeType": "YulAssignment",
"src": "299:15:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "309:5:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "299:6:1"
}
]
}
]
},
"name": "abi_decode_tuple_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "50:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "61:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "73:6:1",
"type": ""
}
],
"src": "14:306:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "428:92:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "438:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "450:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "461:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "446:3:1"
},
"nodeType": "YulFunctionCall",
"src": "446:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "438:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "480:9:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "505:6:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "498:6:1"
},
"nodeType": "YulFunctionCall",
"src": "498:14:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "491:6:1"
},
"nodeType": "YulFunctionCall",
"src": "491:22:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "473:6:1"
},
"nodeType": "YulFunctionCall",
"src": "473:41:1"
},
"nodeType": "YulExpressionStatement",
"src": "473:41:1"
}
]
},
"name": "abi_encode_tuple_t_bool__to_t_bool__fromStack_library_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "397:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "408:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "419:4:1",
"type": ""
}
],
"src": "325:195:1"
}
]
},
"contents": "{\n { }\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(value0, value0) }\n let value := calldataload(headStart)\n if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(value0, value0) }\n value0 := value\n }\n function abi_encode_tuple_t_bool__to_t_bool__fromStack_library_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, iszero(iszero(value0)))\n }\n}",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "730000000000000000000000000000000000000000301460806040526004361060335760003560e01c806316279055146038575b600080fd5b604760433660046096565b605b565b6040516052919060c2565b60405180910390f35b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590608e57508115155b949350505050565b60006020828403121560a6578081fd5b81356001600160a01b038116811460bb578182fd5b9392505050565b90151581526020019056fea264697066735822122069c23123a1f5c94c149bdd2c5d034c0aa38e53c58c9b1374749cad4ec93b8e7664736f6c63430008000033",
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH1 0x33 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x16279055 EQ PUSH1 0x38 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x47 PUSH1 0x43 CALLDATASIZE PUSH1 0x4 PUSH1 0x96 JUMP JUMPDEST PUSH1 0x5B JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x52 SWAP2 SWAP1 PUSH1 0xC2 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP2 EXTCODEHASH PUSH32 0xC5D2460186F7233C927E7DB2DCC703C0E500B653CA82273B7BFAD8045D85A470 DUP2 DUP2 EQ DUP1 ISZERO SWAP1 PUSH1 0x8E JUMPI POP DUP2 ISZERO ISZERO JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH1 0xA6 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH1 0xBB JUMPI DUP2 DUP3 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH10 0xC23123A1F5C94C149BDD 0x2C 0x5D SUB 0x4C EXP LOG3 DUP15 MSTORE8 0xC5 DUP13 SWAP12 SGT PUSH21 0x749CAD4EC93B8E7664736F6C634300080000330000 ",
"sourceMap": "125:5949:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;717:608;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;775:4;1236:20;;1081:66;1275:23;;;;;;:42;;-1:-1:-1;1302:15:0;;;1275:42;1267:51;717:608;-1:-1:-1;;;;717:608:0:o;14:306:1:-;;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;178:23;;-1:-1:-1;;;;;230:31:1;;220:42;;210:2;;281:6;273;266:22;210:2;309:5;84:236;-1:-1:-1;;;84:236:1:o;325:195::-;498:14;;491:22;473:41;;461:2;446:18;;428:92::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "51800",
"executionCost": "136",
"totalCost": "51936"
},
"external": {
"isContract(address)": "1079"
},
"internal": {
"_functionCallWithValue(address,bytes memory,uint256,string memory)": "infinite",
"functionCall(address,bytes memory)": "infinite",
"functionCall(address,bytes memory,string memory)": "infinite",
"functionCallWithValue(address,bytes memory,uint256)": "infinite",
"functionCallWithValue(address,bytes memory,uint256,string memory)": "infinite",
"sendValue(address payable,uint256)": "infinite"
}
},
"methodIdentifiers": {
"isContract(address)": "16279055"
}
},
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "isContract",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "isContract",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"details": "Collection of functions related to the address type",
"kind": "dev",
"methods": {
"isContract(address)": {
"details": "Returns true if `account` is a contract. [IMPORTANT] ==== It is unsafe to assume that an address for which this function returns false is an externally-owned account (EOA) and not a contract. Among others, `isContract` will return false for the following types of addresses: - an externally-owned account - a contract in construction - an address where a contract will be created - an address where a contract lived, but was destroyed ===="
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/0-address.sol": "Address"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-address.sol": {
"keccak256": "0x97f6a04124fe48db2626e482e46c2ff690a177aeab6a0d60cf012e8ccedf4a2d",
"license": "MIT",
"urls": [
"bzz-raw://f170f84d1310a22270c5bd8785c64b3971a304f6920f61ccf58daf82ccfd0eea",
"dweb:/ipfs/QmeLfHAMQuKN429nC7QRJ5inXuFMLMvBiEKgEqzLX22WcU"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "6080604052600180546001600160a01b03191673abefa900d1a4bfa94ad41efaf3a0e8588b623c7a179055348015603557600080fd5b50603f8060436000396000f3fe6080604052600080fdfea2646970667358221220b755287d6e260d53933eca48e0e878d45d197dc6467b65c07919a6ca199659ed64736f6c63430008000033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x1 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH20 0xABEFA900D1A4BFA94AD41EFAF3A0E8588B623C7A OR SWAP1 SSTORE CALLVALUE DUP1 ISZERO PUSH1 0x35 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x3F DUP1 PUSH1 0x43 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB7 SSTORE 0x28 PUSH30 0x6E260D53933ECA48E0E878D45D197DC6467B65C07919A6CA199659ED6473 PUSH16 0x6C634300080000330000000000000000 ",
"sourceMap": "2769:140:9:-:0;;;2818:61;;;-1:-1:-1;;;;;;2818:61:9;2837:42;2818:61;;;2769:140;;;;;;;;;;;;;;;;"
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "6080604052600080fdfea2646970667358221220b755287d6e260d53933eca48e0e878d45d197dc6467b65c07919a6ca199659ed64736f6c63430008000033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xB7 SSTORE 0x28 PUSH30 0x6E260D53933ECA48E0E878D45D197DC6467B65C07919A6CA199659ED6473 PUSH16 0x6C634300080000330000000000000000 ",
"sourceMap": "2769:140:9:-:0;;;;;"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "12600",
"executionCost": "20902",
"totalCost": "33502"
}
},
"methodIdentifiers": {}
},
"abi": []
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/9-prize-attack.sol": "AttackPrize"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-address.sol": {
"keccak256": "0x97f6a04124fe48db2626e482e46c2ff690a177aeab6a0d60cf012e8ccedf4a2d",
"license": "MIT",
"urls": [
"bzz-raw://f170f84d1310a22270c5bd8785c64b3971a304f6920f61ccf58daf82ccfd0eea",
"dweb:/ipfs/QmeLfHAMQuKN429nC7QRJ5inXuFMLMvBiEKgEqzLX22WcU"
]
},
"contracts/0-context.sol": {
"keccak256": "0xa4eecf6a3c5cc74800fdd2ef1c81bf2cf3888d4e26909bf4dd2ade2da7b47894",
"license": "MIT",
"urls": [
"bzz-raw://5d793af57202a7bd84c39d2c62aa7fd0b013f98ace8f805e36feb3b52680f32e",
"dweb:/ipfs/QmTibEvGdmbJCQMpafgWit4VijTEeeDqwbiE6QhubJD2cK"
]
},
"contracts/0-erc721.sol": {
"keccak256": "0x3e9f93cfe735b96bfb8fa69c9a4fac4c91a7a97608e083f539e903e10e992437",
"license": "MIT",
"urls": [
"bzz-raw://04effbd1079d421b98504bfd114d55fe6dd1061acd63e4868bc393c32122fef0",
"dweb:/ipfs/Qmbem1vWx7c8aRUStUqhUCX1zbE9nqZCHd8QNzzv5dei12"
]
},
"contracts/0-ierc20.sol": {
"keccak256": "0xa8547ef7a4aabd9c15930d0caaedaf02826ec2345fa5015ba134b4087fd3eb06",
"license": "MIT",
"urls": [
"bzz-raw://ed005dc99628ad306463c7e1909c127fbedcb67ac3035c6ab6c69a438564665c",
"dweb:/ipfs/QmXWTqBYXuNoKq5NgKQE9CzUzBG39a84qTvYTkSMxLZV3f"
]
},
"contracts/0-ownable.sol": {
"keccak256": "0xa346d72b251c30370f443aa3e2e6bf337e3b4d6c373480cf29b2ddc513341f45",
"license": "MIT",
"urls": [
"bzz-raw://d08aa8ee19b94ec88b9c7dcc6d47e82cdb5d372cbdafba2d94b9112521ea0412",
"dweb:/ipfs/Qma7BX64Y4URhBE8EX7A3frWgbBVxEVySo8X4jxWRAxaVP"
]
},
"contracts/1-nf-token-metadata.sol": {
"keccak256": "0x963390921aed6d5224c3b208e5caf72e6704fe3a023dae7d8a2843bdbe0fc619",
"license": "MIT",
"urls": [
"bzz-raw://d409ee7fc38bba0f2e6b454d0bc205fd6ec976595c0f6e95559efc140df23f5d",
"dweb:/ipfs/QmNyHEQpvxFpzkLAT9xrpq3KgyzgVLL5oKDcNz5JTyZ99N"
]
},
"contracts/5-irandomizer.sol": {
"keccak256": "0xd766193b0506555319b1273a9af271be47a96614a9cd7d846e8ec9eeff68ae8f",
"license": "MIT",
"urls": [
"bzz-raw://94de7e04e1ef0b9add2abdb9f59a7c8b23ee8ef2ea3e40a81d1d0d7bec72776e",
"dweb:/ipfs/QmQCs9Di636EAgKXrtvRLBELTgRURn9mjcLkK1KXw8Z2sv"
]
},
"contracts/5-types.sol": {
"keccak256": "0xa9cf7d04a9b789c87fe72c24f4389d7a573cff0fc431151923353905b9db1d01",
"license": "MIT",
"urls": [
"bzz-raw://1d98bbe77e162465cbe550d11bede9a7f4ae1d2e253336e5a1abf8fec1e7f5f6",
"dweb:/ipfs/QmUw2yiAEwuoJvj2hzK3QqLFtPzssWVDujNw3X4MiY8SBH"
]
},
"contracts/6-token-uri-helper.sol": {
"keccak256": "0x62da25f069fc1f268a9e37c5b22b5ae8b2fcbad54849444aa8b902d709c9665c",
"license": "MIT",
"urls": [
"bzz-raw://2bfcd13a003cac158b21ef48e04b7311583e4b1ff71270c577391b4a47fb504d",
"dweb:/ipfs/QmadQgjwmPo1z4GEbsxidkWQtnxJpybssEoxC8k68pLzqj"
]
},
"contracts/9-prize-attack.sol": {
"keccak256": "0xf282b29738195a14f7903d1b344caa51649bb0b277f8f08cf29fa09bbd5989b6",
"license": "MIT",
"urls": [
"bzz-raw://aadad1c17127ed60e6ea48f79bb5ba0afaab1f2d33036b12bcf0dc7bdabe22dc",
"dweb:/ipfs/QmaYtpbH3TVcQP6TYQ6bpbQ7BgfgUjmPr7ZtW1edSVjHtu"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"methodIdentifiers": {}
},
"abi": []
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/0-context.sol": "Context"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-context.sol": {
"keccak256": "0xa4eecf6a3c5cc74800fdd2ef1c81bf2cf3888d4e26909bf4dd2ade2da7b47894",
"license": "MIT",
"urls": [
"bzz-raw://5d793af57202a7bd84c39d2c62aa7fd0b013f98ace8f805e36feb3b52680f32e",
"dweb:/ipfs/QmTibEvGdmbJCQMpafgWit4VijTEeeDqwbiE6QhubJD2cK"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"methodIdentifiers": {
"supportsInterface(bytes4)": "01ffc9a7"
}
},
"abi": [
{
"inputs": [
{
"internalType": "bytes4",
"name": "_interfaceID",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "bytes4",
"name": "_interfaceID",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"details": "A standard for detecting smart contract interfaces. See: https://eips.ethereum.org/EIPS/eip-165.",
"kind": "dev",
"methods": {
"supportsInterface(bytes4)": {
"details": "Checks if the smart contract includes a specific interface. This function uses less than 30,000 gas.",
"params": {
"_interfaceID": "The interface identifier, as specified in ERC-165."
},
"returns": {
"_0": "True if _interfaceID is supported, false otherwise."
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/1-nf-token-metadata.sol": "ERC165"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-address.sol": {
"keccak256": "0x97f6a04124fe48db2626e482e46c2ff690a177aeab6a0d60cf012e8ccedf4a2d",
"license": "MIT",
"urls": [
"bzz-raw://f170f84d1310a22270c5bd8785c64b3971a304f6920f61ccf58daf82ccfd0eea",
"dweb:/ipfs/QmeLfHAMQuKN429nC7QRJ5inXuFMLMvBiEKgEqzLX22WcU"
]
},
"contracts/0-erc721.sol": {
"keccak256": "0x3e9f93cfe735b96bfb8fa69c9a4fac4c91a7a97608e083f539e903e10e992437",
"license": "MIT",
"urls": [
"bzz-raw://04effbd1079d421b98504bfd114d55fe6dd1061acd63e4868bc393c32122fef0",
"dweb:/ipfs/Qmbem1vWx7c8aRUStUqhUCX1zbE9nqZCHd8QNzzv5dei12"
]
},
"contracts/1-nf-token-metadata.sol": {
"keccak256": "0x963390921aed6d5224c3b208e5caf72e6704fe3a023dae7d8a2843bdbe0fc619",
"license": "MIT",
"urls": [
"bzz-raw://d409ee7fc38bba0f2e6b454d0bc205fd6ec976595c0f6e95559efc140df23f5d",
"dweb:/ipfs/QmNyHEQpvxFpzkLAT9xrpq3KgyzgVLL5oKDcNz5JTyZ99N"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"methodIdentifiers": {
"approve(address,uint256)": "095ea7b3",
"balanceOf(address)": "70a08231",
"getApproved(uint256)": "081812fc",
"isApprovedForAll(address,address)": "e985e9c5",
"ownerOf(uint256)": "6352211e",
"safeTransferFrom(address,address,uint256)": "42842e0e",
"safeTransferFrom(address,address,uint256,bytes)": "b88d4fde",
"setApprovalForAll(address,bool)": "a22cb465",
"transferFrom(address,address,uint256)": "23b872dd"
}
},
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"details": "ERC-721 non-fungible token standard. See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md.",
"events": {
"Approval(address,address,uint256)": {
"details": "This emits when the approved address for an NFT is changed or reaffirmed. The zero address indicates there is no approved address. When a Transfer event emits, this also indicates that the approved address for that NFT (if any) is reset to none."
},
"ApprovalForAll(address,address,bool)": {
"details": "This emits when an operator is enabled or disabled for an owner. The operator can manage all NFTs of the owner."
},
"Transfer(address,address,uint256)": {
"details": "Emits when ownership of any NFT changes by any mechanism. This event emits when NFTs are created (`from` == 0) and destroyed (`to` == 0). Exception: during contract creation, any number of NFTs may be created and assigned without emitting Transfer. At the time of any transfer, the approved address for that NFT (if any) is reset to none."
}
},
"kind": "dev",
"methods": {
"approve(address,uint256)": {
"details": "Set or reaffirm the approved address for an NFT.",
"params": {
"_approved": "The new approved NFT controller.",
"_tokenId": "The NFT to approve."
}
},
"balanceOf(address)": {
"details": "Returns the number of NFTs owned by `_owner`. NFTs assigned to the zero address are considered invalid, and this function throws for queries about the zero address.",
"params": {
"_owner": "Address for whom to query the balance."
},
"returns": {
"_0": "Balance of _owner."
}
},
"getApproved(uint256)": {
"details": "Get the approved address for a single NFT.",
"params": {
"_tokenId": "The NFT to find the approved address for."
},
"returns": {
"_0": "Address that _tokenId is approved for."
}
},
"isApprovedForAll(address,address)": {
"details": "Returns true if `_operator` is an approved operator for `_owner`, false otherwise.",
"params": {
"_operator": "The address that acts on behalf of the owner.",
"_owner": "The address that owns the NFTs."
},
"returns": {
"_0": "True if approved for all, false otherwise."
}
},
"ownerOf(uint256)": {
"details": "Returns the address of the owner of the NFT. NFTs assigned to the zero address are considered invalid, and queries about them do throw.",
"params": {
"_tokenId": "The identifier for an NFT."
},
"returns": {
"_0": "Address of _tokenId owner."
}
},
"safeTransferFrom(address,address,uint256)": {
"details": "Transfers the ownership of an NFT from one address to another address.",
"params": {
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
},
"safeTransferFrom(address,address,uint256,bytes)": {
"details": "Transfers the ownership of an NFT from one address to another address.",
"params": {
"_data": "Additional data with no specified format, sent in call to `_to`.",
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
},
"setApprovalForAll(address,bool)": {
"details": "Enables or disables approval for a third party (\"operator\") to manage all of `msg.sender`'s assets. It also emits the ApprovalForAll event.",
"params": {
"_approved": "True if the operators is approved, false to revoke approval.",
"_operator": "Address to add to the set of authorized operators."
}
},
"transferFrom(address,address,uint256)": {
"details": "Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT.",
"params": {
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"approve(address,uint256)": {
"notice": "The zero address indicates there is no approved address. Throws unless `msg.sender` is the current NFT owner, or an authorized operator of the current owner."
},
"getApproved(uint256)": {
"notice": "Throws if `_tokenId` is not a valid NFT."
},
"safeTransferFrom(address,address,uint256)": {
"notice": "This works identically to the other function with an extra data parameter, except this function just sets data to \"\""
},
"safeTransferFrom(address,address,uint256,bytes)": {
"notice": "Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT. When transfer is complete, this function checks if `_to` is a smart contract (code size > 0). If so, it calls `onERC721Received` on `_to` and throws if the return value is not `bytes4(keccak256(\"onERC721Received(address,uint256,bytes)\"))`."
},
"setApprovalForAll(address,bool)": {
"notice": "The contract MUST allow multiple operators per owner."
},
"transferFrom(address,address,uint256)": {
"notice": "The caller is responsible to confirm that `_to` is capable of receiving NFTs or else they may be permanently lost."
}
},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/0-erc721.sol": "ERC721"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-erc721.sol": {
"keccak256": "0x3e9f93cfe735b96bfb8fa69c9a4fac4c91a7a97608e083f539e903e10e992437",
"license": "MIT",
"urls": [
"bzz-raw://04effbd1079d421b98504bfd114d55fe6dd1061acd63e4868bc393c32122fef0",
"dweb:/ipfs/Qmbem1vWx7c8aRUStUqhUCX1zbE9nqZCHd8QNzzv5dei12"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"methodIdentifiers": {
"tokenByIndex(uint256)": "4f6ccce7",
"tokenOfOwnerByIndex(address,uint256)": "2f745c59",
"totalSupply()": "18160ddd"
}
},
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "tokenByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "tokenOfOwnerByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "tokenByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "tokenOfOwnerByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"details": "Optional enumeration extension for ERC-721 non-fungible token standard. See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md.",
"kind": "dev",
"methods": {
"tokenByIndex(uint256)": {
"details": "Returns the token identifier for the `_index`th NFT. Sort order is not specified.",
"params": {
"_index": "A counter less than `totalSupply()`."
},
"returns": {
"_0": "Token id."
}
},
"tokenOfOwnerByIndex(address,uint256)": {
"details": "Returns the token identifier for the `_index`th NFT assigned to `_owner`. Sort order is not specified. It throws if `_index` >= `balanceOf(_owner)` or if `_owner` is the zero address, representing invalid NFTs.",
"params": {
"_index": "A counter less than `balanceOf(_owner)`.",
"_owner": "An address where we are interested in NFTs owned by them."
},
"returns": {
"_0": "Token id."
}
},
"totalSupply()": {
"details": "Returns a count of valid NFTs tracked by this contract, where each one of them has an assigned and queryable owner not equal to the zero address.",
"returns": {
"_0": "Total supply of NFTs."
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/1-nf-token-metadata.sol": "ERC721Enumerable"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-address.sol": {
"keccak256": "0x97f6a04124fe48db2626e482e46c2ff690a177aeab6a0d60cf012e8ccedf4a2d",
"license": "MIT",
"urls": [
"bzz-raw://f170f84d1310a22270c5bd8785c64b3971a304f6920f61ccf58daf82ccfd0eea",
"dweb:/ipfs/QmeLfHAMQuKN429nC7QRJ5inXuFMLMvBiEKgEqzLX22WcU"
]
},
"contracts/0-erc721.sol": {
"keccak256": "0x3e9f93cfe735b96bfb8fa69c9a4fac4c91a7a97608e083f539e903e10e992437",
"license": "MIT",
"urls": [
"bzz-raw://04effbd1079d421b98504bfd114d55fe6dd1061acd63e4868bc393c32122fef0",
"dweb:/ipfs/Qmbem1vWx7c8aRUStUqhUCX1zbE9nqZCHd8QNzzv5dei12"
]
},
"contracts/1-nf-token-metadata.sol": {
"keccak256": "0x963390921aed6d5224c3b208e5caf72e6704fe3a023dae7d8a2843bdbe0fc619",
"license": "MIT",
"urls": [
"bzz-raw://d409ee7fc38bba0f2e6b454d0bc205fd6ec976595c0f6e95559efc140df23f5d",
"dweb:/ipfs/QmNyHEQpvxFpzkLAT9xrpq3KgyzgVLL5oKDcNz5JTyZ99N"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"methodIdentifiers": {
"name()": "06fdde03",
"symbol()": "95d89b41",
"tokenURI(uint256)": "c87b56dd"
}
},
"abi": [
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "_name",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "tokenURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "_name",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "tokenURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"details": "Optional metadata extension for ERC-721 non-fungible token standard. See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md.",
"kind": "dev",
"methods": {
"name()": {
"details": "Returns a descriptive name for a collection of NFTs in this contract.",
"returns": {
"_name": "Representing name."
}
},
"symbol()": {
"details": "Returns a abbreviated name for a collection of NFTs in this contract.",
"returns": {
"_symbol": "Representing symbol."
}
},
"tokenURI(uint256)": {
"details": "Returns a distinct Uniform Resource Identifier (URI) for a given asset. It Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC3986. The URI may point to a JSON file that conforms to the \"ERC721 Metadata JSON Schema\".",
"returns": {
"_0": "URI of _tokenId."
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/1-nf-token-metadata.sol": "ERC721Metadata"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-address.sol": {
"keccak256": "0x97f6a04124fe48db2626e482e46c2ff690a177aeab6a0d60cf012e8ccedf4a2d",
"license": "MIT",
"urls": [
"bzz-raw://f170f84d1310a22270c5bd8785c64b3971a304f6920f61ccf58daf82ccfd0eea",
"dweb:/ipfs/QmeLfHAMQuKN429nC7QRJ5inXuFMLMvBiEKgEqzLX22WcU"
]
},
"contracts/0-erc721.sol": {
"keccak256": "0x3e9f93cfe735b96bfb8fa69c9a4fac4c91a7a97608e083f539e903e10e992437",
"license": "MIT",
"urls": [
"bzz-raw://04effbd1079d421b98504bfd114d55fe6dd1061acd63e4868bc393c32122fef0",
"dweb:/ipfs/Qmbem1vWx7c8aRUStUqhUCX1zbE9nqZCHd8QNzzv5dei12"
]
},
"contracts/1-nf-token-metadata.sol": {
"keccak256": "0x963390921aed6d5224c3b208e5caf72e6704fe3a023dae7d8a2843bdbe0fc619",
"license": "MIT",
"urls": [
"bzz-raw://d409ee7fc38bba0f2e6b454d0bc205fd6ec976595c0f6e95559efc140df23f5d",
"dweb:/ipfs/QmNyHEQpvxFpzkLAT9xrpq3KgyzgVLL5oKDcNz5JTyZ99N"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"methodIdentifiers": {
"onERC721Received(address,address,uint256,bytes)": "150b7a02"
}
},
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "onERC721Received",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "onERC721Received",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"details": "ERC-721 interface for accepting safe transfers. See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md.",
"kind": "dev",
"methods": {
"onERC721Received(address,address,uint256,bytes)": {
"details": "Handle the receipt of a NFT. The ERC721 smart contract calls this function on the recipient after a `transfer`. This function MAY throw to revert and reject the transfer. Return of other than the magic value MUST result in the transaction being reverted. Returns `bytes4(keccak256(\"onERC721Received(address,address,uint256,bytes)\"))` unless throwing.",
"params": {
"_data": "Additional data with no specified format.",
"_from": "The address which previously owned the token.",
"_operator": "The address which called `safeTransferFrom` function.",
"_tokenId": "The NFT identifier which is being transferred."
},
"returns": {
"_0": "Returns `bytes4(keccak256(\"onERC721Received(address,address,uint256,bytes)\"))`."
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"onERC721Received(address,address,uint256,bytes)": {
"notice": "The contract address is always the message sender. A wallet/broker/auction application MUST implement the wallet interface if it will accept safe transfers."
}
},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/1-nf-token-metadata.sol": "ERC721TokenReceiver"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-address.sol": {
"keccak256": "0x97f6a04124fe48db2626e482e46c2ff690a177aeab6a0d60cf012e8ccedf4a2d",
"license": "MIT",
"urls": [
"bzz-raw://f170f84d1310a22270c5bd8785c64b3971a304f6920f61ccf58daf82ccfd0eea",
"dweb:/ipfs/QmeLfHAMQuKN429nC7QRJ5inXuFMLMvBiEKgEqzLX22WcU"
]
},
"contracts/0-erc721.sol": {
"keccak256": "0x3e9f93cfe735b96bfb8fa69c9a4fac4c91a7a97608e083f539e903e10e992437",
"license": "MIT",
"urls": [
"bzz-raw://04effbd1079d421b98504bfd114d55fe6dd1061acd63e4868bc393c32122fef0",
"dweb:/ipfs/Qmbem1vWx7c8aRUStUqhUCX1zbE9nqZCHd8QNzzv5dei12"
]
},
"contracts/1-nf-token-metadata.sol": {
"keccak256": "0x963390921aed6d5224c3b208e5caf72e6704fe3a023dae7d8a2843bdbe0fc619",
"license": "MIT",
"urls": [
"bzz-raw://d409ee7fc38bba0f2e6b454d0bc205fd6ec976595c0f6e95559efc140df23f5d",
"dweb:/ipfs/QmNyHEQpvxFpzkLAT9xrpq3KgyzgVLL5oKDcNz5JTyZ99N"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"methodIdentifiers": {
"allowance(address,address)": "dd62ed3e",
"approve(address,uint256)": "095ea7b3",
"balanceOf(address)": "70a08231",
"totalSupply()": "18160ddd",
"transfer(address,uint256)": "a9059cbb",
"transferFrom(address,address,uint256)": "23b872dd"
}
},
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"details": "Interface of the ERC20 standard as defined in the EIP.",
"events": {
"Approval(address,address,uint256)": {
"details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."
},
"Transfer(address,address,uint256)": {
"details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."
}
},
"kind": "dev",
"methods": {
"allowance(address,address)": {
"details": "Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called."
},
"approve(address,uint256)": {
"details": "Sets `amount` as the allowance of `spender` over the caller's tokens. Returns a boolean value indicating whether the operation succeeded. IMPORTANT: Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 Emits an {Approval} event."
},
"balanceOf(address)": {
"details": "Returns the amount of tokens owned by `account`."
},
"totalSupply()": {
"details": "Returns the amount of tokens in existence."
},
"transfer(address,uint256)": {
"details": "Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."
},
"transferFrom(address,address,uint256)": {
"details": "Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` is then deducted from the caller's allowance. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/0-ierc20.sol": "IERC20"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-ierc20.sol": {
"keccak256": "0xa8547ef7a4aabd9c15930d0caaedaf02826ec2345fa5015ba134b4087fd3eb06",
"license": "MIT",
"urls": [
"bzz-raw://ed005dc99628ad306463c7e1909c127fbedcb67ac3035c6ab6c69a438564665c",
"dweb:/ipfs/QmXWTqBYXuNoKq5NgKQE9CzUzBG39a84qTvYTkSMxLZV3f"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"methodIdentifiers": {
"getPetClasses(uint256)": "124a58c0",
"getPosibilityWithCurrentSetting((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint8)[])": "5d0e31a1",
"upgrade((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint8)[])": "ebdc2e63"
}
},
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "quantity",
"type": "uint256"
}
],
"name": "getPetClasses",
"outputs": [
{
"internalType": "enum Types.PetClass[]",
"name": "",
"type": "uint8[]"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "hp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "st",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ag",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "it",
"type": "uint256"
},
{
"internalType": "enum Types.PetClass",
"name": "cl",
"type": "uint8"
}
],
"internalType": "struct Types.Pet[]",
"name": "pets",
"type": "tuple[]"
}
],
"name": "getPosibilityWithCurrentSetting",
"outputs": [
{
"internalType": "uint256[4]",
"name": "toBurnIds",
"type": "uint256[4]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "hp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "st",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ag",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "it",
"type": "uint256"
},
{
"internalType": "enum Types.PetClass",
"name": "cl",
"type": "uint8"
}
],
"internalType": "struct Types.Pet[]",
"name": "pets",
"type": "tuple[]"
}
],
"name": "upgrade",
"outputs": [
{
"internalType": "uint256[]",
"name": "toBurnIds",
"type": "uint256[]"
},
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "hp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "st",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ag",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "it",
"type": "uint256"
},
{
"internalType": "enum Types.PetClass",
"name": "cl",
"type": "uint8"
}
],
"internalType": "struct Types.Pet[]",
"name": "newPets",
"type": "tuple[]"
},
{
"internalType": "enum Types.UpgradeResult",
"name": "",
"type": "uint8"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "quantity",
"type": "uint256"
}
],
"name": "getPetClasses",
"outputs": [
{
"internalType": "enum Types.PetClass[]",
"name": "",
"type": "uint8[]"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "hp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "st",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ag",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "it",
"type": "uint256"
},
{
"internalType": "enum Types.PetClass",
"name": "cl",
"type": "uint8"
}
],
"internalType": "struct Types.Pet[]",
"name": "pets",
"type": "tuple[]"
}
],
"name": "getPosibilityWithCurrentSetting",
"outputs": [
{
"internalType": "uint256[4]",
"name": "toBurnIds",
"type": "uint256[4]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "hp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "st",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ag",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "it",
"type": "uint256"
},
{
"internalType": "enum Types.PetClass",
"name": "cl",
"type": "uint8"
}
],
"internalType": "struct Types.Pet[]",
"name": "pets",
"type": "tuple[]"
}
],
"name": "upgrade",
"outputs": [
{
"internalType": "uint256[]",
"name": "toBurnIds",
"type": "uint256[]"
},
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "hp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "st",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ag",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "it",
"type": "uint256"
},
{
"internalType": "enum Types.PetClass",
"name": "cl",
"type": "uint8"
}
],
"internalType": "struct Types.Pet[]",
"name": "newPets",
"type": "tuple[]"
},
{
"internalType": "enum Types.UpgradeResult",
"name": "",
"type": "uint8"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/5-irandomizer.sol": "IRandomizer"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/5-irandomizer.sol": {
"keccak256": "0xd766193b0506555319b1273a9af271be47a96614a9cd7d846e8ec9eeff68ae8f",
"license": "MIT",
"urls": [
"bzz-raw://94de7e04e1ef0b9add2abdb9f59a7c8b23ee8ef2ea3e40a81d1d0d7bec72776e",
"dweb:/ipfs/QmQCs9Di636EAgKXrtvRLBELTgRURn9mjcLkK1KXw8Z2sv"
]
},
"contracts/5-types.sol": {
"keccak256": "0xa9cf7d04a9b789c87fe72c24f4389d7a573cff0fc431151923353905b9db1d01",
"license": "MIT",
"urls": [
"bzz-raw://1d98bbe77e162465cbe550d11bede9a7f4ae1d2e253336e5a1abf8fec1e7f5f6",
"dweb:/ipfs/QmUw2yiAEwuoJvj2hzK3QqLFtPzssWVDujNw3X4MiY8SBH"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {
"contracts/0-address.sol": {
"Address": "<address>"
}
},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {
"contracts/0-address.sol": {
"Address": "<address>"
}
},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {
"contracts/0-address.sol": {
"Address": "<address>"
}
},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {
"contracts/0-address.sol": {
"Address": "<address>"
}
},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {
"contracts/0-address.sol": {
"Address": "<address>"
}
},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {
"contracts/0-address.sol": {
"Address": "<address>"
}
},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {
"contracts/0-address.sol": {
"Address": "<address>"
}
},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {
"contracts/0-address.sol": {
"Address": [
{
"length": 20,
"start": 2578
}
]
}
},
"object": "608060405234801561001057600080fd5b50600060208190527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1990811660019081179092556380ac58cd60e01b9092527ff7815fccbf112960a73756e185887fedcb9fc64ca0a16cc5923b7960ed78080080549092161790556110248061008c6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80636352211e116100665780636352211e1461012757806370a082311461013a578063a22cb4651461015a578063b88d4fde1461016d578063e985e9c5146101805761009e565b806301ffc9a7146100a3578063081812fc146100cc578063095ea7b3146100ec57806323b872dd1461010157806342842e0e14610114575b600080fd5b6100b66100b1366004610e72565b610193565b6040516100c39190610f5e565b60405180910390f35b6100df6100da366004610eaa565b6101b6565b6040516100c39190610f0d565b6100ff6100fa366004610e2d565b610238565b005b6100ff61010f366004610d26565b6103da565b6100ff610122366004610d26565b610595565b6100df610135366004610eaa565b6105b5565b61014d610148366004610cd3565b61060d565b6040516100c39190610f7c565b6100ff610168366004610df7565b610664565b6100ff61017b366004610d61565b6106d3565b6100b661018e366004610cf4565b61071c565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b6000818152600160209081526040808320548151808301909252600682526518181998181960d11b9282019290925283916001600160a01b03166102165760405162461bcd60e51b815260040161020d9190610f69565b60405180910390fd5b506000838152600260205260409020546001600160a01b031691505b50919050565b60008181526001602052604090205481906001600160a01b03163381148061028357506001600160a01b038116600090815260046020908152604080832033845290915290205460ff165b6040518060400160405280600681526020016530303330303360d01b815250906102c05760405162461bcd60e51b815260040161020d9190610f69565b50600083815260016020908152604091829020548251808401909352600683526518181998181960d11b918301919091528491906001600160a01b031661031a5760405162461bcd60e51b815260040161020d9190610f69565b50600084815260016020908152604091829020548251808401909352600683526506060666060760d31b918301919091526001600160a01b039081169190871682141561037a5760405162461bcd60e51b815260040161020d9190610f69565b5060008581526002602052604080822080546001600160a01b0319166001600160a01b038a811691821790925591518893918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050505050565b60008181526001602052604090205481906001600160a01b03163381148061041857506000828152600260205260409020546001600160a01b031633145b8061044657506001600160a01b038116600090815260046020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906104835760405162461bcd60e51b815260040161020d9190610f69565b50600083815260016020908152604091829020548251808401909352600683526518181998181960d11b918301919091528491906001600160a01b03166104dd5760405162461bcd60e51b815260040161020d9190610f69565b50600084815260016020908152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b0390811691908816821461053c5760405162461bcd60e51b815260040161020d9190610f69565b5060408051808201909152600681526530303330303160d01b60208201526001600160a01b0387166105815760405162461bcd60e51b815260040161020d9190610f69565b5061058c868661074a565b50505050505050565b6105b0838383604051806020016040528060008152506107c5565b505050565b600081815260016020908152604091829020548251808401909352600683526518181998181960d11b918301919091526001600160a01b031690816102325760405162461bcd60e51b815260040161020d9190610f69565b60408051808201909152600681526530303330303160d01b60208201526000906001600160a01b0383166106545760405162461bcd60e51b815260040161020d9190610f69565b5061065e82610af1565b92915050565b3360008181526004602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906106c7908590610f5e565b60405180910390a35050565b61071585858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506107c592505050565b5050505050565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6000818152600160205260409020546001600160a01b031661076b82610b0c565b6107758183610b49565b61077f8383610c03565b81836001600160a01b0316826001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008281526001602052604090205482906001600160a01b03163381148061080357506000828152600260205260409020546001600160a01b031633145b8061083157506001600160a01b038116600090815260046020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b8152509061086e5760405162461bcd60e51b815260040161020d9190610f69565b50600084815260016020908152604091829020548251808401909352600683526518181998181960d11b918301919091528591906001600160a01b03166108c85760405162461bcd60e51b815260040161020d9190610f69565b50600085815260016020908152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b039081169190891682146109275760405162461bcd60e51b815260040161020d9190610f69565b5060408051808201909152600681526530303330303160d01b60208201526001600160a01b03881661096c5760405162461bcd60e51b815260040161020d9190610f69565b50610977878761074a565b604051631627905560e01b815273__$70373a69635e1e9ffe5bd55cea26cbcdbe$__906316279055906109b7906001600160a01b038b1690600401610f0d565b60206040518083038186803b1580156109cf57600080fd5b505af41580156109e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a079190610e56565b15610ae757604051630a85bd0160e11b81526000906001600160a01b0389169063150b7a0290610a419033908d908c908c90600401610f21565b602060405180830381600087803b158015610a5b57600080fd5b505af1158015610a6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a939190610e8e565b60408051808201909152600681526530303330303560d01b60208201529091506001600160e01b03198216630a85bd0160e11b14610ae45760405162461bcd60e51b815260040161020d9190610f69565b50505b5050505050505050565b6001600160a01b031660009081526003602052604090205490565b6000818152600260205260409020546001600160a01b031615610b4657600081815260026020526040902080546001600160a01b03191690555b50565b600081815260016020908152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b03848116911614610ba45760405162461bcd60e51b815260040161020d9190610f69565b506001600160a01b038216600090815260036020526040902054610bca90600190610f9d565b6001600160a01b0390921660009081526003602090815260408083209490945591815260019091522080546001600160a01b0319169055565b600081815260016020908152604091829020548251808401909352600683526518181998181b60d11b918301919091526001600160a01b031615610c5a5760405162461bcd60e51b815260040161020d9190610f69565b50600081815260016020818152604080842080546001600160a01b0319166001600160a01b0388169081179091558452600390915290912054610c9c91610f85565b6001600160a01b0390921660009081526003602052604090209190915550565b80356001600160a01b03811681146101b157600080fd5b600060208284031215610ce4578081fd5b610ced82610cbc565b9392505050565b60008060408385031215610d06578081fd5b610d0f83610cbc565b9150610d1d60208401610cbc565b90509250929050565b600080600060608486031215610d3a578081fd5b610d4384610cbc565b9250610d5160208501610cbc565b9150604084013590509250925092565b600080600080600060808688031215610d78578081fd5b610d8186610cbc565b9450610d8f60208701610cbc565b935060408601359250606086013567ffffffffffffffff80821115610db2578283fd5b818801915088601f830112610dc5578283fd5b813581811115610dd3578384fd5b896020828501011115610de4578384fd5b9699959850939650602001949392505050565b60008060408385031215610e09578182fd5b610e1283610cbc565b91506020830135610e2281610fca565b809150509250929050565b60008060408385031215610e3f578182fd5b610e4883610cbc565b946020939093013593505050565b600060208284031215610e67578081fd5b8151610ced81610fca565b600060208284031215610e83578081fd5b8135610ced81610fd8565b600060208284031215610e9f578081fd5b8151610ced81610fd8565b600060208284031215610ebb578081fd5b5035919050565b60008151808452815b81811015610ee757602081850181015186830182015201610ecb565b81811115610ef85782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090610f5490830184610ec2565b9695505050505050565b901515815260200190565b600060208252610ced6020830184610ec2565b90815260200190565b60008219821115610f9857610f98610fb4565b500190565b600082821015610faf57610faf610fb4565b500390565b634e487b7160e01b600052601160045260246000fd5b8015158114610b4657600080fd5b6001600160e01b031981168114610b4657600080fdfea2646970667358221220742df31e1d0b4ed206e8e934c406d0fb6a0060f2bb90c71f57a7ebb6234a2bae64736f6c63430008000033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x0 PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH32 0x67BE87C3FF9960CA1E9CFAC5CAB2FF4747269CF9ED20C9B7306235AC35A491C5 DUP1 SLOAD PUSH1 0xFF NOT SWAP1 DUP2 AND PUSH1 0x1 SWAP1 DUP2 OR SWAP1 SWAP3 SSTORE PUSH4 0x80AC58CD PUSH1 0xE0 SHL SWAP1 SWAP3 MSTORE PUSH32 0xF7815FCCBF112960A73756E185887FEDCB9FC64CA0A16CC5923B7960ED780800 DUP1 SLOAD SWAP1 SWAP3 AND OR SWAP1 SSTORE PUSH2 0x1024 DUP1 PUSH2 0x8C PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x9E JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x6352211E GT PUSH2 0x66 JUMPI DUP1 PUSH4 0x6352211E EQ PUSH2 0x127 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x13A JUMPI DUP1 PUSH4 0xA22CB465 EQ PUSH2 0x15A JUMPI DUP1 PUSH4 0xB88D4FDE EQ PUSH2 0x16D JUMPI DUP1 PUSH4 0xE985E9C5 EQ PUSH2 0x180 JUMPI PUSH2 0x9E JUMP JUMPDEST DUP1 PUSH4 0x1FFC9A7 EQ PUSH2 0xA3 JUMPI DUP1 PUSH4 0x81812FC EQ PUSH2 0xCC JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0xEC JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x101 JUMPI DUP1 PUSH4 0x42842E0E EQ PUSH2 0x114 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xB6 PUSH2 0xB1 CALLDATASIZE PUSH1 0x4 PUSH2 0xE72 JUMP JUMPDEST PUSH2 0x193 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xC3 SWAP2 SWAP1 PUSH2 0xF5E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xDF PUSH2 0xDA CALLDATASIZE PUSH1 0x4 PUSH2 0xEAA JUMP JUMPDEST PUSH2 0x1B6 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xC3 SWAP2 SWAP1 PUSH2 0xF0D JUMP JUMPDEST PUSH2 0xFF PUSH2 0xFA CALLDATASIZE PUSH1 0x4 PUSH2 0xE2D JUMP JUMPDEST PUSH2 0x238 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xFF PUSH2 0x10F CALLDATASIZE PUSH1 0x4 PUSH2 0xD26 JUMP JUMPDEST PUSH2 0x3DA JUMP JUMPDEST PUSH2 0xFF PUSH2 0x122 CALLDATASIZE PUSH1 0x4 PUSH2 0xD26 JUMP JUMPDEST PUSH2 0x595 JUMP JUMPDEST PUSH2 0xDF PUSH2 0x135 CALLDATASIZE PUSH1 0x4 PUSH2 0xEAA JUMP JUMPDEST PUSH2 0x5B5 JUMP JUMPDEST PUSH2 0x14D PUSH2 0x148 CALLDATASIZE PUSH1 0x4 PUSH2 0xCD3 JUMP JUMPDEST PUSH2 0x60D JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xC3 SWAP2 SWAP1 PUSH2 0xF7C JUMP JUMPDEST PUSH2 0xFF PUSH2 0x168 CALLDATASIZE PUSH1 0x4 PUSH2 0xDF7 JUMP JUMPDEST PUSH2 0x664 JUMP JUMPDEST PUSH2 0xFF PUSH2 0x17B CALLDATASIZE PUSH1 0x4 PUSH2 0xD61 JUMP JUMPDEST PUSH2 0x6D3 JUMP JUMPDEST PUSH2 0xB6 PUSH2 0x18E CALLDATASIZE PUSH1 0x4 PUSH2 0xCF4 JUMP JUMPDEST PUSH2 0x71C JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SLOAD DUP2 MLOAD DUP1 DUP4 ADD SWAP1 SWAP3 MSTORE PUSH1 0x6 DUP3 MSTORE PUSH6 0x181819981819 PUSH1 0xD1 SHL SWAP3 DUP3 ADD SWAP3 SWAP1 SWAP3 MSTORE DUP4 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x216 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP2 POP JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER DUP2 EQ DUP1 PUSH2 0x283 JUMPI POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 CALLER DUP5 MSTORE SWAP1 SWAP2 MSTORE SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0x303033303033 PUSH1 0xD0 SHL DUP2 MSTORE POP SWAP1 PUSH2 0x2C0 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x181819981819 PUSH1 0xD1 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP5 SWAP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x31A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP5 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x60606660607 PUSH1 0xD3 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 DUP2 AND SWAP2 SWAP1 DUP8 AND DUP3 EQ ISZERO PUSH2 0x37A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP6 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP11 DUP2 AND SWAP2 DUP3 OR SWAP1 SWAP3 SSTORE SWAP2 MLOAD DUP9 SWAP4 SWAP2 DUP6 AND SWAP2 PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 SWAP2 LOG4 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER DUP2 EQ DUP1 PUSH2 0x418 JUMPI POP PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ JUMPDEST DUP1 PUSH2 0x446 JUMPI POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 CALLER DUP5 MSTORE SWAP1 SWAP2 MSTORE SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0xC0C0CCC0C0D PUSH1 0xD2 SHL DUP2 MSTORE POP SWAP1 PUSH2 0x483 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x181819981819 PUSH1 0xD1 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP5 SWAP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x4DD JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP5 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x303033303037 PUSH1 0xD0 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 DUP2 AND SWAP2 SWAP1 DUP9 AND DUP3 EQ PUSH2 0x53C JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303033303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND PUSH2 0x581 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH2 0x58C DUP7 DUP7 PUSH2 0x74A JUMP JUMPDEST POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0x5B0 DUP4 DUP4 DUP4 PUSH1 0x40 MLOAD DUP1 PUSH1 0x20 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x0 DUP2 MSTORE POP PUSH2 0x7C5 JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x181819981819 PUSH1 0xD1 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 DUP2 PUSH2 0x232 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303033303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH2 0x654 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH2 0x65E DUP3 PUSH2 0xAF1 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND DUP1 DUP6 MSTORE SWAP3 MSTORE SWAP2 DUP3 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND DUP6 ISZERO ISZERO OR SWAP1 SSTORE SWAP1 MLOAD SWAP1 SWAP2 SWAP1 PUSH32 0x17307EAB39AB6107E8899845AD3D59BD9653F200F220920489CA2B5937696C31 SWAP1 PUSH2 0x6C7 SWAP1 DUP6 SWAP1 PUSH2 0xF5E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH2 0x715 DUP6 DUP6 DUP6 DUP6 DUP6 DUP1 DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 SWAP3 ADD SWAP2 SWAP1 SWAP2 MSTORE POP PUSH2 0x7C5 SWAP3 POP POP POP JUMP JUMPDEST POP POP POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 SWAP1 SWAP5 AND DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE KECCAK256 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x76B DUP3 PUSH2 0xB0C JUMP JUMPDEST PUSH2 0x775 DUP2 DUP4 PUSH2 0xB49 JUMP JUMPDEST PUSH2 0x77F DUP4 DUP4 PUSH2 0xC03 JUMP JUMPDEST DUP2 DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF PUSH1 0x40 MLOAD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG4 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP3 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER DUP2 EQ DUP1 PUSH2 0x803 JUMPI POP PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ JUMPDEST DUP1 PUSH2 0x831 JUMPI POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 CALLER DUP5 MSTORE SWAP1 SWAP2 MSTORE SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0xC0C0CCC0C0D PUSH1 0xD2 SHL DUP2 MSTORE POP SWAP1 PUSH2 0x86E JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP5 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x181819981819 PUSH1 0xD1 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP6 SWAP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x8C8 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP6 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x303033303037 PUSH1 0xD0 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 DUP2 AND SWAP2 SWAP1 DUP10 AND DUP3 EQ PUSH2 0x927 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303033303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP9 AND PUSH2 0x96C JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH2 0x977 DUP8 DUP8 PUSH2 0x74A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x16279055 PUSH1 0xE0 SHL DUP2 MSTORE PUSH20 0x0 SWAP1 PUSH4 0x16279055 SWAP1 PUSH2 0x9B7 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP12 AND SWAP1 PUSH1 0x4 ADD PUSH2 0xF0D JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x9CF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS DELEGATECALL ISZERO DUP1 ISZERO PUSH2 0x9E3 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xA07 SWAP2 SWAP1 PUSH2 0xE56 JUMP JUMPDEST ISZERO PUSH2 0xAE7 JUMPI PUSH1 0x40 MLOAD PUSH4 0xA85BD01 PUSH1 0xE1 SHL DUP2 MSTORE PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP10 AND SWAP1 PUSH4 0x150B7A02 SWAP1 PUSH2 0xA41 SWAP1 CALLER SWAP1 DUP14 SWAP1 DUP13 SWAP1 DUP13 SWAP1 PUSH1 0x4 ADD PUSH2 0xF21 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0xA5B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0xA6F JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xA93 SWAP2 SWAP1 PUSH2 0xE8E JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303033303035 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE SWAP1 SWAP2 POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP3 AND PUSH4 0xA85BD01 PUSH1 0xE1 SHL EQ PUSH2 0xAE4 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP POP JUMPDEST POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ISZERO PUSH2 0xB46 JUMPI PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND SWAP1 SSTORE JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x303033303037 PUSH1 0xD0 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 DUP2 AND SWAP2 AND EQ PUSH2 0xBA4 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0xBCA SWAP1 PUSH1 0x1 SWAP1 PUSH2 0xF9D JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP5 SWAP1 SWAP5 SSTORE SWAP2 DUP2 MSTORE PUSH1 0x1 SWAP1 SWAP2 MSTORE KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x18181998181B PUSH1 0xD1 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ISZERO PUSH2 0xC5A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 DUP1 DUP5 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP9 AND SWAP1 DUP2 OR SWAP1 SWAP2 SSTORE DUP5 MSTORE PUSH1 0x3 SWAP1 SWAP2 MSTORE SWAP1 SWAP2 KECCAK256 SLOAD PUSH2 0xC9C SWAP2 PUSH2 0xF85 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SWAP2 SWAP1 SWAP2 SSTORE POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x1B1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xCE4 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0xCED DUP3 PUSH2 0xCBC JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xD06 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0xD0F DUP4 PUSH2 0xCBC JUMP JUMPDEST SWAP2 POP PUSH2 0xD1D PUSH1 0x20 DUP5 ADD PUSH2 0xCBC JUMP JUMPDEST SWAP1 POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0xD3A JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0xD43 DUP5 PUSH2 0xCBC JUMP JUMPDEST SWAP3 POP PUSH2 0xD51 PUSH1 0x20 DUP6 ADD PUSH2 0xCBC JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD SWAP1 POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x80 DUP7 DUP9 SUB SLT ISZERO PUSH2 0xD78 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0xD81 DUP7 PUSH2 0xCBC JUMP JUMPDEST SWAP5 POP PUSH2 0xD8F PUSH1 0x20 DUP8 ADD PUSH2 0xCBC JUMP JUMPDEST SWAP4 POP PUSH1 0x40 DUP7 ADD CALLDATALOAD SWAP3 POP PUSH1 0x60 DUP7 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0xDB2 JUMPI DUP3 DUP4 REVERT JUMPDEST DUP2 DUP9 ADD SWAP2 POP DUP9 PUSH1 0x1F DUP4 ADD SLT PUSH2 0xDC5 JUMPI DUP3 DUP4 REVERT JUMPDEST DUP2 CALLDATALOAD DUP2 DUP2 GT ISZERO PUSH2 0xDD3 JUMPI DUP4 DUP5 REVERT JUMPDEST DUP10 PUSH1 0x20 DUP3 DUP6 ADD ADD GT ISZERO PUSH2 0xDE4 JUMPI DUP4 DUP5 REVERT JUMPDEST SWAP7 SWAP10 SWAP6 SWAP9 POP SWAP4 SWAP7 POP PUSH1 0x20 ADD SWAP5 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xE09 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0xE12 DUP4 PUSH2 0xCBC JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH2 0xE22 DUP2 PUSH2 0xFCA JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xE3F JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0xE48 DUP4 PUSH2 0xCBC JUMP JUMPDEST SWAP5 PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD CALLDATALOAD SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xE67 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0xCED DUP2 PUSH2 0xFCA JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xE83 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0xCED DUP2 PUSH2 0xFD8 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xE9F JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0xCED DUP2 PUSH2 0xFD8 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xEBB JUMPI DUP1 DUP2 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE DUP2 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xEE7 JUMPI PUSH1 0x20 DUP2 DUP6 ADD DUP2 ADD MLOAD DUP7 DUP4 ADD DUP3 ADD MSTORE ADD PUSH2 0xECB JUMP JUMPDEST DUP2 DUP2 GT ISZERO PUSH2 0xEF8 JUMPI DUP3 PUSH1 0x20 DUP4 DUP8 ADD ADD MSTORE JUMPDEST POP PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP3 SWAP1 SWAP3 ADD PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP6 DUP2 AND DUP3 MSTORE DUP5 AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 DUP2 ADD DUP4 SWAP1 MSTORE PUSH1 0x80 PUSH1 0x60 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x0 SWAP1 PUSH2 0xF54 SWAP1 DUP4 ADD DUP5 PUSH2 0xEC2 JUMP JUMPDEST SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 MSTORE PUSH2 0xCED PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0xEC2 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 NOT DUP3 GT ISZERO PUSH2 0xF98 JUMPI PUSH2 0xF98 PUSH2 0xFB4 JUMP JUMPDEST POP ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 LT ISZERO PUSH2 0xFAF JUMPI PUSH2 0xFAF PUSH2 0xFB4 JUMP JUMPDEST POP SUB SWAP1 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0xB46 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP2 AND DUP2 EQ PUSH2 0xB46 JUMPI PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH21 0x2DF31E1D0B4ED206E8E934C406D0FB6A0060F2BB90 0xC7 0x1F JUMPI 0xA7 0xEB 0xB6 0x23 0x4A 0x2B 0xAE PUSH5 0x736F6C6343 STOP ADDMOD STOP STOP CALLER ",
"sourceMap": "2717:12630:2:-:0;;;5195:75;;;;;;;;;-1:-1:-1;2222:19:2;:31;;;;;:38;;-1:-1:-1;;2222:38:2;;;2256:4;2222:38;;;;;;-1:-1:-1;;;5217:31:2;;;;:38;;;;;;;;2717:12630;;;;;;"
},
"deployedBytecode": {
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:6136:3",
"statements": [
{
"nodeType": "YulBlock",
"src": "6:3:3",
"statements": []
},
{
"body": {
"nodeType": "YulBlock",
"src": "65:124:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "75:29:3",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "97:6:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "84:12:3"
},
"nodeType": "YulFunctionCall",
"src": "84:20:3"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "75:5:3"
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "167:16:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "176:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "179:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "169:6:3"
},
"nodeType": "YulFunctionCall",
"src": "169:12:3"
},
"nodeType": "YulExpressionStatement",
"src": "169:12:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "126:5:3"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "137:5:3"
},
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "152:3:3",
"type": "",
"value": "160"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "157:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "148:3:3"
},
"nodeType": "YulFunctionCall",
"src": "148:11:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "161:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "144:3:3"
},
"nodeType": "YulFunctionCall",
"src": "144:19:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "133:3:3"
},
"nodeType": "YulFunctionCall",
"src": "133:31:3"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "123:2:3"
},
"nodeType": "YulFunctionCall",
"src": "123:42:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "116:6:3"
},
"nodeType": "YulFunctionCall",
"src": "116:50:3"
},
"nodeType": "YulIf",
"src": "113:2:3"
}
]
},
"name": "abi_decode_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "44:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "55:5:3",
"type": ""
}
],
"src": "14:175:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "264:128:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "310:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "319:6:3"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "327:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "312:6:3"
},
"nodeType": "YulFunctionCall",
"src": "312:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "312:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "285:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "294:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "281:3:3"
},
"nodeType": "YulFunctionCall",
"src": "281:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "306:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "277:3:3"
},
"nodeType": "YulFunctionCall",
"src": "277:32:3"
},
"nodeType": "YulIf",
"src": "274:2:3"
},
{
"nodeType": "YulAssignment",
"src": "345:41:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "376:9:3"
}
],
"functionName": {
"name": "abi_decode_t_address",
"nodeType": "YulIdentifier",
"src": "355:20:3"
},
"nodeType": "YulFunctionCall",
"src": "355:31:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "345:6:3"
}
]
}
]
},
"name": "abi_decode_tuple_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "230:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "241:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "253:6:3",
"type": ""
}
],
"src": "194:198:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "484:187:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "530:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "539:6:3"
},
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "547:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "532:6:3"
},
"nodeType": "YulFunctionCall",
"src": "532:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "532:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "505:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "514:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "501:3:3"
},
"nodeType": "YulFunctionCall",
"src": "501:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "526:2:3",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "497:3:3"
},
"nodeType": "YulFunctionCall",
"src": "497:32:3"
},
"nodeType": "YulIf",
"src": "494:2:3"
},
{
"nodeType": "YulAssignment",
"src": "565:41:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "596:9:3"
}
],
"functionName": {
"name": "abi_decode_t_address",
"nodeType": "YulIdentifier",
"src": "575:20:3"
},
"nodeType": "YulFunctionCall",
"src": "575:31:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "565:6:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "615:50:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "650:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "661:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "646:3:3"
},
"nodeType": "YulFunctionCall",
"src": "646:18:3"
}
],
"functionName": {
"name": "abi_decode_t_address",
"nodeType": "YulIdentifier",
"src": "625:20:3"
},
"nodeType": "YulFunctionCall",
"src": "625:40:3"
},
"variableNames": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "615:6:3"
}
]
}
]
},
"name": "abi_decode_tuple_t_addresst_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "442:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "453:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "465:6:3",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "473:6:3",
"type": ""
}
],
"src": "397:274:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "780:238:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "826:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value2",
"nodeType": "YulIdentifier",
"src": "835:6:3"
},
{
"name": "value2",
"nodeType": "YulIdentifier",
"src": "843:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "828:6:3"
},
"nodeType": "YulFunctionCall",
"src": "828:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "828:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "801:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "810:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "797:3:3"
},
"nodeType": "YulFunctionCall",
"src": "797:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "822:2:3",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "793:3:3"
},
"nodeType": "YulFunctionCall",
"src": "793:32:3"
},
"nodeType": "YulIf",
"src": "790:2:3"
},
{
"nodeType": "YulAssignment",
"src": "861:41:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "892:9:3"
}
],
"functionName": {
"name": "abi_decode_t_address",
"nodeType": "YulIdentifier",
"src": "871:20:3"
},
"nodeType": "YulFunctionCall",
"src": "871:31:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "861:6:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "911:50:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "946:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "957:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "942:3:3"
},
"nodeType": "YulFunctionCall",
"src": "942:18:3"
}
],
"functionName": {
"name": "abi_decode_t_address",
"nodeType": "YulIdentifier",
"src": "921:20:3"
},
"nodeType": "YulFunctionCall",
"src": "921:40:3"
},
"variableNames": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "911:6:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "970:42:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "997:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1008:2:3",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "993:3:3"
},
"nodeType": "YulFunctionCall",
"src": "993:18:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "980:12:3"
},
"nodeType": "YulFunctionCall",
"src": "980:32:3"
},
"variableNames": [
{
"name": "value2",
"nodeType": "YulIdentifier",
"src": "970:6:3"
}
]
}
]
},
"name": "abi_decode_tuple_t_addresst_addresst_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "730:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "741:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "753:6:3",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "761:6:3",
"type": ""
},
{
"name": "value2",
"nodeType": "YulTypedName",
"src": "769:6:3",
"type": ""
}
],
"src": "676:342:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1163:722:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1210:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value4",
"nodeType": "YulIdentifier",
"src": "1219:6:3"
},
{
"name": "value4",
"nodeType": "YulIdentifier",
"src": "1227:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1212:6:3"
},
"nodeType": "YulFunctionCall",
"src": "1212:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "1212:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1184:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1193:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "1180:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1180:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1205:3:3",
"type": "",
"value": "128"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "1176:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1176:33:3"
},
"nodeType": "YulIf",
"src": "1173:2:3"
},
{
"nodeType": "YulAssignment",
"src": "1245:41:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1276:9:3"
}
],
"functionName": {
"name": "abi_decode_t_address",
"nodeType": "YulIdentifier",
"src": "1255:20:3"
},
"nodeType": "YulFunctionCall",
"src": "1255:31:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1245:6:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "1295:50:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1330:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1341:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1326:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1326:18:3"
}
],
"functionName": {
"name": "abi_decode_t_address",
"nodeType": "YulIdentifier",
"src": "1305:20:3"
},
"nodeType": "YulFunctionCall",
"src": "1305:40:3"
},
"variableNames": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "1295:6:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "1354:42:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1381:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1392:2:3",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1377:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1377:18:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1364:12:3"
},
"nodeType": "YulFunctionCall",
"src": "1364:32:3"
},
"variableNames": [
{
"name": "value2",
"nodeType": "YulIdentifier",
"src": "1354:6:3"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "1405:46:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1436:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1447:2:3",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1432:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1432:18:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1419:12:3"
},
"nodeType": "YulFunctionCall",
"src": "1419:32:3"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1409:6:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "1460:28:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "1470:18:3",
"type": "",
"value": "0xffffffffffffffff"
},
"variables": [
{
"name": "_1",
"nodeType": "YulTypedName",
"src": "1464:2:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1515:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value4",
"nodeType": "YulIdentifier",
"src": "1524:6:3"
},
{
"name": "value4",
"nodeType": "YulIdentifier",
"src": "1532:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1517:6:3"
},
"nodeType": "YulFunctionCall",
"src": "1517:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "1517:22:3"
}
]
},
"condition": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1503:6:3"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "1511:2:3"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "1500:2:3"
},
"nodeType": "YulFunctionCall",
"src": "1500:14:3"
},
"nodeType": "YulIf",
"src": "1497:2:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "1550:32:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1564:9:3"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1575:6:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1560:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1560:22:3"
},
"variables": [
{
"name": "_2",
"nodeType": "YulTypedName",
"src": "1554:2:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1630:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value4",
"nodeType": "YulIdentifier",
"src": "1639:6:3"
},
{
"name": "value4",
"nodeType": "YulIdentifier",
"src": "1647:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1632:6:3"
},
"nodeType": "YulFunctionCall",
"src": "1632:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "1632:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "_2",
"nodeType": "YulIdentifier",
"src": "1609:2:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1613:4:3",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1605:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1605:13:3"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1620:7:3"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "1601:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1601:27:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "1594:6:3"
},
"nodeType": "YulFunctionCall",
"src": "1594:35:3"
},
"nodeType": "YulIf",
"src": "1591:2:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "1665:30:3",
"value": {
"arguments": [
{
"name": "_2",
"nodeType": "YulIdentifier",
"src": "1692:2:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1679:12:3"
},
"nodeType": "YulFunctionCall",
"src": "1679:16:3"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "1669:6:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1722:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value4",
"nodeType": "YulIdentifier",
"src": "1731:6:3"
},
{
"name": "value4",
"nodeType": "YulIdentifier",
"src": "1739:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1724:6:3"
},
"nodeType": "YulFunctionCall",
"src": "1724:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "1724:22:3"
}
]
},
"condition": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1710:6:3"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "1718:2:3"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "1707:2:3"
},
"nodeType": "YulFunctionCall",
"src": "1707:14:3"
},
"nodeType": "YulIf",
"src": "1704:2:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1798:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value4",
"nodeType": "YulIdentifier",
"src": "1807:6:3"
},
{
"name": "value4",
"nodeType": "YulIdentifier",
"src": "1815:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1800:6:3"
},
"nodeType": "YulFunctionCall",
"src": "1800:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "1800:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "_2",
"nodeType": "YulIdentifier",
"src": "1771:2:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1775:6:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1767:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1767:15:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1784:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1763:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1763:24:3"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1789:7:3"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "1760:2:3"
},
"nodeType": "YulFunctionCall",
"src": "1760:37:3"
},
"nodeType": "YulIf",
"src": "1757:2:3"
},
{
"nodeType": "YulAssignment",
"src": "1833:21:3",
"value": {
"arguments": [
{
"name": "_2",
"nodeType": "YulIdentifier",
"src": "1847:2:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1851:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1843:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1843:11:3"
},
"variableNames": [
{
"name": "value3",
"nodeType": "YulIdentifier",
"src": "1833:6:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "1863:16:3",
"value": {
"name": "length",
"nodeType": "YulIdentifier",
"src": "1873:6:3"
},
"variableNames": [
{
"name": "value4",
"nodeType": "YulIdentifier",
"src": "1863:6:3"
}
]
}
]
},
"name": "abi_decode_tuple_t_addresst_addresst_uint256t_bytes_calldata_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1097:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "1108:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1120:6:3",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "1128:6:3",
"type": ""
},
{
"name": "value2",
"nodeType": "YulTypedName",
"src": "1136:6:3",
"type": ""
},
{
"name": "value3",
"nodeType": "YulTypedName",
"src": "1144:6:3",
"type": ""
},
{
"name": "value4",
"nodeType": "YulTypedName",
"src": "1152:6:3",
"type": ""
}
],
"src": "1023:862:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1974:245:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2020:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2029:6:3"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2037:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "2022:6:3"
},
"nodeType": "YulFunctionCall",
"src": "2022:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "2022:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1995:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2004:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "1991:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1991:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2016:2:3",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "1987:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1987:32:3"
},
"nodeType": "YulIf",
"src": "1984:2:3"
},
{
"nodeType": "YulAssignment",
"src": "2055:41:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2086:9:3"
}
],
"functionName": {
"name": "abi_decode_t_address",
"nodeType": "YulIdentifier",
"src": "2065:20:3"
},
"nodeType": "YulFunctionCall",
"src": "2065:31:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2055:6:3"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "2105:45:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2135:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2146:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2131:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2131:18:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "2118:12:3"
},
"nodeType": "YulFunctionCall",
"src": "2118:32:3"
},
"variables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2109:5:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2183:5:3"
}
],
"functionName": {
"name": "validator_revert_t_bool",
"nodeType": "YulIdentifier",
"src": "2159:23:3"
},
"nodeType": "YulFunctionCall",
"src": "2159:30:3"
},
"nodeType": "YulExpressionStatement",
"src": "2159:30:3"
},
{
"nodeType": "YulAssignment",
"src": "2198:15:3",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "2208:5:3"
},
"variableNames": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "2198:6:3"
}
]
}
]
},
"name": "abi_decode_tuple_t_addresst_bool",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1932:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "1943:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1955:6:3",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "1963:6:3",
"type": ""
}
],
"src": "1890:329:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2311:179:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2357:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2366:6:3"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2374:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "2359:6:3"
},
"nodeType": "YulFunctionCall",
"src": "2359:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "2359:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2332:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2341:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "2328:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2328:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2353:2:3",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "2324:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2324:32:3"
},
"nodeType": "YulIf",
"src": "2321:2:3"
},
{
"nodeType": "YulAssignment",
"src": "2392:41:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2423:9:3"
}
],
"functionName": {
"name": "abi_decode_t_address",
"nodeType": "YulIdentifier",
"src": "2402:20:3"
},
"nodeType": "YulFunctionCall",
"src": "2402:31:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2392:6:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "2442:42:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2469:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2480:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2465:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2465:18:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "2452:12:3"
},
"nodeType": "YulFunctionCall",
"src": "2452:32:3"
},
"variableNames": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "2442:6:3"
}
]
}
]
},
"name": "abi_decode_tuple_t_addresst_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2269:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "2280:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2292:6:3",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "2300:6:3",
"type": ""
}
],
"src": "2224:266:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2573:179:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2619:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2628:6:3"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2636:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "2621:6:3"
},
"nodeType": "YulFunctionCall",
"src": "2621:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "2621:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2594:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2603:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "2590:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2590:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2615:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "2586:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2586:32:3"
},
"nodeType": "YulIf",
"src": "2583:2:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "2654:29:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2673:9:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "2667:5:3"
},
"nodeType": "YulFunctionCall",
"src": "2667:16:3"
},
"variables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2658:5:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2716:5:3"
}
],
"functionName": {
"name": "validator_revert_t_bool",
"nodeType": "YulIdentifier",
"src": "2692:23:3"
},
"nodeType": "YulFunctionCall",
"src": "2692:30:3"
},
"nodeType": "YulExpressionStatement",
"src": "2692:30:3"
},
{
"nodeType": "YulAssignment",
"src": "2731:15:3",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "2741:5:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2731:6:3"
}
]
}
]
},
"name": "abi_decode_tuple_t_bool_fromMemory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2539:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "2550:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2562:6:3",
"type": ""
}
],
"src": "2495:257:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2826:188:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2872:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2881:6:3"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2889:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "2874:6:3"
},
"nodeType": "YulFunctionCall",
"src": "2874:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "2874:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2847:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2856:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "2843:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2843:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2868:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "2839:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2839:32:3"
},
"nodeType": "YulIf",
"src": "2836:2:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "2907:36:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2933:9:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "2920:12:3"
},
"nodeType": "YulFunctionCall",
"src": "2920:23:3"
},
"variables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "2911:5:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2978:5:3"
}
],
"functionName": {
"name": "validator_revert_t_bytes4",
"nodeType": "YulIdentifier",
"src": "2952:25:3"
},
"nodeType": "YulFunctionCall",
"src": "2952:32:3"
},
"nodeType": "YulExpressionStatement",
"src": "2952:32:3"
},
{
"nodeType": "YulAssignment",
"src": "2993:15:3",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "3003:5:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2993:6:3"
}
]
}
]
},
"name": "abi_decode_tuple_t_bytes4",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2792:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "2803:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2815:6:3",
"type": ""
}
],
"src": "2757:257:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3099:181:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "3145:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3154:6:3"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3162:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3147:6:3"
},
"nodeType": "YulFunctionCall",
"src": "3147:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "3147:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "3120:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3129:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "3116:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3116:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3141:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "3112:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3112:32:3"
},
"nodeType": "YulIf",
"src": "3109:2:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "3180:29:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3199:9:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "3193:5:3"
},
"nodeType": "YulFunctionCall",
"src": "3193:16:3"
},
"variables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3184:5:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3244:5:3"
}
],
"functionName": {
"name": "validator_revert_t_bytes4",
"nodeType": "YulIdentifier",
"src": "3218:25:3"
},
"nodeType": "YulFunctionCall",
"src": "3218:32:3"
},
"nodeType": "YulExpressionStatement",
"src": "3218:32:3"
},
{
"nodeType": "YulAssignment",
"src": "3259:15:3",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "3269:5:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3259:6:3"
}
]
}
]
},
"name": "abi_decode_tuple_t_bytes4_fromMemory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3065:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "3076:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "3088:6:3",
"type": ""
}
],
"src": "3019:261:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3355:120:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "3401:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3410:6:3"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3418:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3403:6:3"
},
"nodeType": "YulFunctionCall",
"src": "3403:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "3403:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "3376:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3385:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "3372:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3372:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3397:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "3368:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3368:32:3"
},
"nodeType": "YulIf",
"src": "3365:2:3"
},
{
"nodeType": "YulAssignment",
"src": "3436:33:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3459:9:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "3446:12:3"
},
"nodeType": "YulFunctionCall",
"src": "3446:23:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3436:6:3"
}
]
}
]
},
"name": "abi_decode_tuple_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3321:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "3332:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "3344:6:3",
"type": ""
}
],
"src": "3285:190:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3531:426:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "3541:26:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3561:5:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "3555:5:3"
},
"nodeType": "YulFunctionCall",
"src": "3555:12:3"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "3545:6:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3583:3:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3588:6:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3576:6:3"
},
"nodeType": "YulFunctionCall",
"src": "3576:19:3"
},
"nodeType": "YulExpressionStatement",
"src": "3576:19:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "3604:12:3",
"value": {
"name": "end",
"nodeType": "YulIdentifier",
"src": "3613:3:3"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "3608:1:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "3677:110:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "3691:14:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "3701:4:3",
"type": "",
"value": "0x20"
},
"variables": [
{
"name": "_1",
"nodeType": "YulTypedName",
"src": "3695:2:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3733:3:3"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "3738:1:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3729:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3729:11:3"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "3742:2:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3725:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3725:20:3"
},
{
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3761:5:3"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "3768:1:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3757:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3757:13:3"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "3772:2:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3753:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3753:22:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "3747:5:3"
},
"nodeType": "YulFunctionCall",
"src": "3747:29:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3718:6:3"
},
"nodeType": "YulFunctionCall",
"src": "3718:59:3"
},
"nodeType": "YulExpressionStatement",
"src": "3718:59:3"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "3636:1:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3639:6:3"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "3633:2:3"
},
"nodeType": "YulFunctionCall",
"src": "3633:13:3"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "3647:21:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3649:17:3",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "3658:1:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3661:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3654:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3654:12:3"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "3649:1:3"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "3629:3:3",
"statements": []
},
"src": "3625:162:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3821:64:3",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3850:3:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3855:6:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3846:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3846:16:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3864:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3842:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3842:27:3"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "3871:3:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3835:6:3"
},
"nodeType": "YulFunctionCall",
"src": "3835:40:3"
},
"nodeType": "YulExpressionStatement",
"src": "3835:40:3"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "3802:1:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3805:6:3"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "3799:2:3"
},
"nodeType": "YulFunctionCall",
"src": "3799:13:3"
},
"nodeType": "YulIf",
"src": "3796:2:3"
},
{
"nodeType": "YulAssignment",
"src": "3894:57:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3909:3:3"
},
{
"arguments": [
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3922:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3930:2:3",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3918:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3918:15:3"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3939:2:3",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "3935:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3935:7:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "3914:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3914:29:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3905:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3905:39:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3946:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3901:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3901:50:3"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "3894:3:3"
}
]
}
]
},
"name": "abi_encode_t_bytes",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3508:5:3",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "3515:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "3523:3:3",
"type": ""
}
],
"src": "3480:477:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4071:102:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4081:26:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4093:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4104:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4089:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4089:18:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4081:4:3"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4123:9:3"
},
{
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "4138:6:3"
},
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4154:3:3",
"type": "",
"value": "160"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4159:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "4150:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4150:11:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4163:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "4146:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4146:19:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4134:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4134:32:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4116:6:3"
},
"nodeType": "YulFunctionCall",
"src": "4116:51:3"
},
"nodeType": "YulExpressionStatement",
"src": "4116:51:3"
}
]
},
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_library_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "4040:9:3",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "4051:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "4062:4:3",
"type": ""
}
],
"src": "3962:211:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4279:102:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4289:26:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4301:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4312:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4297:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4297:18:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4289:4:3"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4331:9:3"
},
{
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "4346:6:3"
},
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4362:3:3",
"type": "",
"value": "160"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4367:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "4358:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4358:11:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4371:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "4354:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4354:19:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4342:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4342:32:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4324:6:3"
},
"nodeType": "YulFunctionCall",
"src": "4324:51:3"
},
"nodeType": "YulExpressionStatement",
"src": "4324:51:3"
}
]
},
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "4248:9:3",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "4259:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "4270:4:3",
"type": ""
}
],
"src": "4178:203:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4589:287:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "4599:29:3",
"value": {
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4617:3:3",
"type": "",
"value": "160"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4622:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "4613:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4613:11:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4626:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "4609:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4609:19:3"
},
"variables": [
{
"name": "_1",
"nodeType": "YulTypedName",
"src": "4603:2:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4644:9:3"
},
{
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "4659:6:3"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "4667:2:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4655:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4655:15:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4637:6:3"
},
"nodeType": "YulFunctionCall",
"src": "4637:34:3"
},
"nodeType": "YulExpressionStatement",
"src": "4637:34:3"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4691:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4702:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4687:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4687:18:3"
},
{
"arguments": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "4711:6:3"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "4719:2:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4707:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4707:15:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4680:6:3"
},
"nodeType": "YulFunctionCall",
"src": "4680:43:3"
},
"nodeType": "YulExpressionStatement",
"src": "4680:43:3"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4743:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4754:2:3",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4739:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4739:18:3"
},
{
"name": "value2",
"nodeType": "YulIdentifier",
"src": "4759:6:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4732:6:3"
},
"nodeType": "YulFunctionCall",
"src": "4732:34:3"
},
"nodeType": "YulExpressionStatement",
"src": "4732:34:3"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4786:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4797:2:3",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4782:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4782:18:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4802:3:3",
"type": "",
"value": "128"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4775:6:3"
},
"nodeType": "YulFunctionCall",
"src": "4775:31:3"
},
"nodeType": "YulExpressionStatement",
"src": "4775:31:3"
},
{
"nodeType": "YulAssignment",
"src": "4815:55:3",
"value": {
"arguments": [
{
"name": "value3",
"nodeType": "YulIdentifier",
"src": "4842:6:3"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4854:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4865:3:3",
"type": "",
"value": "128"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4850:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4850:19:3"
}
],
"functionName": {
"name": "abi_encode_t_bytes",
"nodeType": "YulIdentifier",
"src": "4823:18:3"
},
"nodeType": "YulFunctionCall",
"src": "4823:47:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4815:4:3"
}
]
}
]
},
"name": "abi_encode_tuple_t_address_t_address_t_uint256_t_bytes_memory_ptr__to_t_address_t_address_t_uint256_t_bytes_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "4534:9:3",
"type": ""
},
{
"name": "value3",
"nodeType": "YulTypedName",
"src": "4545:6:3",
"type": ""
},
{
"name": "value2",
"nodeType": "YulTypedName",
"src": "4553:6:3",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "4561:6:3",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "4569:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "4580:4:3",
"type": ""
}
],
"src": "4386:490:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4976:92:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4986:26:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4998:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5009:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4994:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4994:18:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4986:4:3"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "5028:9:3"
},
{
"arguments": [
{
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "5053:6:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "5046:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5046:14:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "5039:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5039:22:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5021:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5021:41:3"
},
"nodeType": "YulExpressionStatement",
"src": "5021:41:3"
}
]
},
"name": "abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "4945:9:3",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "4956:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "4967:4:3",
"type": ""
}
],
"src": "4881:187:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5194:100:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "5211:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5222:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5204:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5204:21:3"
},
"nodeType": "YulExpressionStatement",
"src": "5204:21:3"
},
{
"nodeType": "YulAssignment",
"src": "5234:54:3",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "5261:6:3"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "5273:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5284:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5269:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5269:18:3"
}
],
"functionName": {
"name": "abi_encode_t_bytes",
"nodeType": "YulIdentifier",
"src": "5242:18:3"
},
"nodeType": "YulFunctionCall",
"src": "5242:46:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "5234:4:3"
}
]
}
]
},
"name": "abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "5163:9:3",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "5174:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "5185:4:3",
"type": ""
}
],
"src": "5073:221:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5400:76:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5410:26:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "5422:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5433:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5418:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5418:18:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "5410:4:3"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "5452:9:3"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "5463:6:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5445:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5445:25:3"
},
"nodeType": "YulExpressionStatement",
"src": "5445:25:3"
}
]
},
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "5369:9:3",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "5380:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "5391:4:3",
"type": ""
}
],
"src": "5299:177:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5529:80:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "5556:22:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "5558:16:3"
},
"nodeType": "YulFunctionCall",
"src": "5558:18:3"
},
"nodeType": "YulExpressionStatement",
"src": "5558:18:3"
}
]
},
"condition": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "5545:1:3"
},
{
"arguments": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5552:1:3"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "5548:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5548:6:3"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "5542:2:3"
},
"nodeType": "YulFunctionCall",
"src": "5542:13:3"
},
"nodeType": "YulIf",
"src": "5539:2:3"
},
{
"nodeType": "YulAssignment",
"src": "5587:16:3",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "5598:1:3"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5601:1:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5594:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5594:9:3"
},
"variableNames": [
{
"name": "sum",
"nodeType": "YulIdentifier",
"src": "5587:3:3"
}
]
}
]
},
"name": "checked_add_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nodeType": "YulTypedName",
"src": "5512:1:3",
"type": ""
},
{
"name": "y",
"nodeType": "YulTypedName",
"src": "5515:1:3",
"type": ""
}
],
"returnVariables": [
{
"name": "sum",
"nodeType": "YulTypedName",
"src": "5521:3:3",
"type": ""
}
],
"src": "5481:128:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5663:76:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "5685:22:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "5687:16:3"
},
"nodeType": "YulFunctionCall",
"src": "5687:18:3"
},
"nodeType": "YulExpressionStatement",
"src": "5687:18:3"
}
]
},
"condition": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "5679:1:3"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5682:1:3"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "5676:2:3"
},
"nodeType": "YulFunctionCall",
"src": "5676:8:3"
},
"nodeType": "YulIf",
"src": "5673:2:3"
},
{
"nodeType": "YulAssignment",
"src": "5716:17:3",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "5728:1:3"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5731:1:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "5724:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5724:9:3"
},
"variableNames": [
{
"name": "diff",
"nodeType": "YulIdentifier",
"src": "5716:4:3"
}
]
}
]
},
"name": "checked_sub_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nodeType": "YulTypedName",
"src": "5645:1:3",
"type": ""
},
{
"name": "y",
"nodeType": "YulTypedName",
"src": "5648:1:3",
"type": ""
}
],
"returnVariables": [
{
"name": "diff",
"nodeType": "YulTypedName",
"src": "5654:4:3",
"type": ""
}
],
"src": "5614:125:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5776:95:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5793:1:3",
"type": "",
"value": "0"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5800:3:3",
"type": "",
"value": "224"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5805:10:3",
"type": "",
"value": "0x4e487b71"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "5796:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5796:20:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5786:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5786:31:3"
},
"nodeType": "YulExpressionStatement",
"src": "5786:31:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5833:1:3",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5836:4:3",
"type": "",
"value": "0x11"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5826:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5826:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "5826:15:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5857:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5860:4:3",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "5850:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5850:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "5850:15:3"
}
]
},
"name": "panic_error_0x11",
"nodeType": "YulFunctionDefinition",
"src": "5744:127:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5920:76:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "5974:16:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5983:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5986:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "5976:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5976:12:3"
},
"nodeType": "YulExpressionStatement",
"src": "5976:12:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5943:5:3"
},
{
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5964:5:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "5957:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5957:13:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "5950:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5950:21:3"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "5940:2:3"
},
"nodeType": "YulFunctionCall",
"src": "5940:32:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "5933:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5933:40:3"
},
"nodeType": "YulIf",
"src": "5930:2:3"
}
]
},
"name": "validator_revert_t_bool",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5909:5:3",
"type": ""
}
],
"src": "5876:120:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6047:87:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "6112:16:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6121:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6124:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6114:6:3"
},
"nodeType": "YulFunctionCall",
"src": "6114:12:3"
},
"nodeType": "YulExpressionStatement",
"src": "6114:12:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6070:5:3"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6081:5:3"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6092:3:3",
"type": "",
"value": "224"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6097:10:3",
"type": "",
"value": "0xffffffff"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "6088:3:3"
},
"nodeType": "YulFunctionCall",
"src": "6088:20:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "6077:3:3"
},
"nodeType": "YulFunctionCall",
"src": "6077:32:3"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "6067:2:3"
},
"nodeType": "YulFunctionCall",
"src": "6067:43:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "6060:6:3"
},
"nodeType": "YulFunctionCall",
"src": "6060:51:3"
},
"nodeType": "YulIf",
"src": "6057:2:3"
}
]
},
"name": "validator_revert_t_bytes4",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "6036:5:3",
"type": ""
}
],
"src": "6001:133:3"
}
]
},
"contents": "{\n { }\n function abi_decode_t_address(offset) -> value\n {\n value := calldataload(offset)\n if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(0, 0) }\n }\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(value0, value0) }\n value0 := abi_decode_t_address(headStart)\n }\n function abi_decode_tuple_t_addresst_address(headStart, dataEnd) -> value0, value1\n {\n if slt(sub(dataEnd, headStart), 64) { revert(value1, value1) }\n value0 := abi_decode_t_address(headStart)\n value1 := abi_decode_t_address(add(headStart, 32))\n }\n function abi_decode_tuple_t_addresst_addresst_uint256(headStart, dataEnd) -> value0, value1, value2\n {\n if slt(sub(dataEnd, headStart), 96) { revert(value2, value2) }\n value0 := abi_decode_t_address(headStart)\n value1 := abi_decode_t_address(add(headStart, 32))\n value2 := calldataload(add(headStart, 64))\n }\n function abi_decode_tuple_t_addresst_addresst_uint256t_bytes_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4\n {\n if slt(sub(dataEnd, headStart), 128) { revert(value4, value4) }\n value0 := abi_decode_t_address(headStart)\n value1 := abi_decode_t_address(add(headStart, 32))\n value2 := calldataload(add(headStart, 64))\n let offset := calldataload(add(headStart, 96))\n let _1 := 0xffffffffffffffff\n if gt(offset, _1) { revert(value4, value4) }\n let _2 := add(headStart, offset)\n if iszero(slt(add(_2, 0x1f), dataEnd)) { revert(value4, value4) }\n let length := calldataload(_2)\n if gt(length, _1) { revert(value4, value4) }\n if gt(add(add(_2, length), 32), dataEnd) { revert(value4, value4) }\n value3 := add(_2, 32)\n value4 := length\n }\n function abi_decode_tuple_t_addresst_bool(headStart, dataEnd) -> value0, value1\n {\n if slt(sub(dataEnd, headStart), 64) { revert(value0, value0) }\n value0 := abi_decode_t_address(headStart)\n let value := calldataload(add(headStart, 32))\n validator_revert_t_bool(value)\n value1 := value\n }\n function abi_decode_tuple_t_addresst_uint256(headStart, dataEnd) -> value0, value1\n {\n if slt(sub(dataEnd, headStart), 64) { revert(value0, value0) }\n value0 := abi_decode_t_address(headStart)\n value1 := calldataload(add(headStart, 32))\n }\n function abi_decode_tuple_t_bool_fromMemory(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(value0, value0) }\n let value := mload(headStart)\n validator_revert_t_bool(value)\n value0 := value\n }\n function abi_decode_tuple_t_bytes4(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(value0, value0) }\n let value := calldataload(headStart)\n validator_revert_t_bytes4(value)\n value0 := value\n }\n function abi_decode_tuple_t_bytes4_fromMemory(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(value0, value0) }\n let value := mload(headStart)\n validator_revert_t_bytes4(value)\n value0 := value\n }\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(value0, value0) }\n value0 := calldataload(headStart)\n }\n function abi_encode_t_bytes(value, pos) -> end\n {\n let length := mload(value)\n mstore(pos, length)\n let i := end\n for { } lt(i, length) { i := add(i, 0x20) }\n {\n let _1 := 0x20\n mstore(add(add(pos, i), _1), mload(add(add(value, i), _1)))\n }\n if gt(i, length)\n {\n mstore(add(add(pos, length), 0x20), end)\n }\n end := add(add(pos, and(add(length, 31), not(31))), 0x20)\n }\n function abi_encode_tuple_t_address__to_t_address__fromStack_library_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n }\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n }\n function abi_encode_tuple_t_address_t_address_t_uint256_t_bytes_memory_ptr__to_t_address_t_address_t_uint256_t_bytes_memory_ptr__fromStack_reversed(headStart, value3, value2, value1, value0) -> tail\n {\n let _1 := sub(shl(160, 1), 1)\n mstore(headStart, and(value0, _1))\n mstore(add(headStart, 32), and(value1, _1))\n mstore(add(headStart, 64), value2)\n mstore(add(headStart, 96), 128)\n tail := abi_encode_t_bytes(value3, add(headStart, 128))\n }\n function abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, iszero(iszero(value0)))\n }\n function abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed(headStart, value0) -> tail\n {\n mstore(headStart, 32)\n tail := abi_encode_t_bytes(value0, add(headStart, 32))\n }\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, value0)\n }\n function checked_add_t_uint256(x, y) -> sum\n {\n if gt(x, not(y)) { panic_error_0x11() }\n sum := add(x, y)\n }\n function checked_sub_t_uint256(x, y) -> diff\n {\n if lt(x, y) { panic_error_0x11() }\n diff := sub(x, y)\n }\n function panic_error_0x11()\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n function validator_revert_t_bool(value)\n {\n if iszero(eq(value, iszero(iszero(value)))) { revert(0, 0) }\n }\n function validator_revert_t_bytes4(value)\n {\n if iszero(eq(value, and(value, shl(224, 0xffffffff)))) { revert(0, 0) }\n }\n}",
"id": 3,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {
"contracts/0-address.sol": {
"Address": [
{
"length": 20,
"start": 2438
}
]
}
},
"object": "608060405234801561001057600080fd5b506004361061009e5760003560e01c80636352211e116100665780636352211e1461012757806370a082311461013a578063a22cb4651461015a578063b88d4fde1461016d578063e985e9c5146101805761009e565b806301ffc9a7146100a3578063081812fc146100cc578063095ea7b3146100ec57806323b872dd1461010157806342842e0e14610114575b600080fd5b6100b66100b1366004610e72565b610193565b6040516100c39190610f5e565b60405180910390f35b6100df6100da366004610eaa565b6101b6565b6040516100c39190610f0d565b6100ff6100fa366004610e2d565b610238565b005b6100ff61010f366004610d26565b6103da565b6100ff610122366004610d26565b610595565b6100df610135366004610eaa565b6105b5565b61014d610148366004610cd3565b61060d565b6040516100c39190610f7c565b6100ff610168366004610df7565b610664565b6100ff61017b366004610d61565b6106d3565b6100b661018e366004610cf4565b61071c565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b6000818152600160209081526040808320548151808301909252600682526518181998181960d11b9282019290925283916001600160a01b03166102165760405162461bcd60e51b815260040161020d9190610f69565b60405180910390fd5b506000838152600260205260409020546001600160a01b031691505b50919050565b60008181526001602052604090205481906001600160a01b03163381148061028357506001600160a01b038116600090815260046020908152604080832033845290915290205460ff165b6040518060400160405280600681526020016530303330303360d01b815250906102c05760405162461bcd60e51b815260040161020d9190610f69565b50600083815260016020908152604091829020548251808401909352600683526518181998181960d11b918301919091528491906001600160a01b031661031a5760405162461bcd60e51b815260040161020d9190610f69565b50600084815260016020908152604091829020548251808401909352600683526506060666060760d31b918301919091526001600160a01b039081169190871682141561037a5760405162461bcd60e51b815260040161020d9190610f69565b5060008581526002602052604080822080546001600160a01b0319166001600160a01b038a811691821790925591518893918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050505050565b60008181526001602052604090205481906001600160a01b03163381148061041857506000828152600260205260409020546001600160a01b031633145b8061044657506001600160a01b038116600090815260046020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906104835760405162461bcd60e51b815260040161020d9190610f69565b50600083815260016020908152604091829020548251808401909352600683526518181998181960d11b918301919091528491906001600160a01b03166104dd5760405162461bcd60e51b815260040161020d9190610f69565b50600084815260016020908152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b0390811691908816821461053c5760405162461bcd60e51b815260040161020d9190610f69565b5060408051808201909152600681526530303330303160d01b60208201526001600160a01b0387166105815760405162461bcd60e51b815260040161020d9190610f69565b5061058c868661074a565b50505050505050565b6105b0838383604051806020016040528060008152506107c5565b505050565b600081815260016020908152604091829020548251808401909352600683526518181998181960d11b918301919091526001600160a01b031690816102325760405162461bcd60e51b815260040161020d9190610f69565b60408051808201909152600681526530303330303160d01b60208201526000906001600160a01b0383166106545760405162461bcd60e51b815260040161020d9190610f69565b5061065e82610af1565b92915050565b3360008181526004602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906106c7908590610f5e565b60405180910390a35050565b61071585858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506107c592505050565b5050505050565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6000818152600160205260409020546001600160a01b031661076b82610b0c565b6107758183610b49565b61077f8383610c03565b81836001600160a01b0316826001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008281526001602052604090205482906001600160a01b03163381148061080357506000828152600260205260409020546001600160a01b031633145b8061083157506001600160a01b038116600090815260046020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b8152509061086e5760405162461bcd60e51b815260040161020d9190610f69565b50600084815260016020908152604091829020548251808401909352600683526518181998181960d11b918301919091528591906001600160a01b03166108c85760405162461bcd60e51b815260040161020d9190610f69565b50600085815260016020908152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b039081169190891682146109275760405162461bcd60e51b815260040161020d9190610f69565b5060408051808201909152600681526530303330303160d01b60208201526001600160a01b03881661096c5760405162461bcd60e51b815260040161020d9190610f69565b50610977878761074a565b604051631627905560e01b815273__$70373a69635e1e9ffe5bd55cea26cbcdbe$__906316279055906109b7906001600160a01b038b1690600401610f0d565b60206040518083038186803b1580156109cf57600080fd5b505af41580156109e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a079190610e56565b15610ae757604051630a85bd0160e11b81526000906001600160a01b0389169063150b7a0290610a419033908d908c908c90600401610f21565b602060405180830381600087803b158015610a5b57600080fd5b505af1158015610a6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a939190610e8e565b60408051808201909152600681526530303330303560d01b60208201529091506001600160e01b03198216630a85bd0160e11b14610ae45760405162461bcd60e51b815260040161020d9190610f69565b50505b5050505050505050565b6001600160a01b031660009081526003602052604090205490565b6000818152600260205260409020546001600160a01b031615610b4657600081815260026020526040902080546001600160a01b03191690555b50565b600081815260016020908152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b03848116911614610ba45760405162461bcd60e51b815260040161020d9190610f69565b506001600160a01b038216600090815260036020526040902054610bca90600190610f9d565b6001600160a01b0390921660009081526003602090815260408083209490945591815260019091522080546001600160a01b0319169055565b600081815260016020908152604091829020548251808401909352600683526518181998181b60d11b918301919091526001600160a01b031615610c5a5760405162461bcd60e51b815260040161020d9190610f69565b50600081815260016020818152604080842080546001600160a01b0319166001600160a01b0388169081179091558452600390915290912054610c9c91610f85565b6001600160a01b0390921660009081526003602052604090209190915550565b80356001600160a01b03811681146101b157600080fd5b600060208284031215610ce4578081fd5b610ced82610cbc565b9392505050565b60008060408385031215610d06578081fd5b610d0f83610cbc565b9150610d1d60208401610cbc565b90509250929050565b600080600060608486031215610d3a578081fd5b610d4384610cbc565b9250610d5160208501610cbc565b9150604084013590509250925092565b600080600080600060808688031215610d78578081fd5b610d8186610cbc565b9450610d8f60208701610cbc565b935060408601359250606086013567ffffffffffffffff80821115610db2578283fd5b818801915088601f830112610dc5578283fd5b813581811115610dd3578384fd5b896020828501011115610de4578384fd5b9699959850939650602001949392505050565b60008060408385031215610e09578182fd5b610e1283610cbc565b91506020830135610e2281610fca565b809150509250929050565b60008060408385031215610e3f578182fd5b610e4883610cbc565b946020939093013593505050565b600060208284031215610e67578081fd5b8151610ced81610fca565b600060208284031215610e83578081fd5b8135610ced81610fd8565b600060208284031215610e9f578081fd5b8151610ced81610fd8565b600060208284031215610ebb578081fd5b5035919050565b60008151808452815b81811015610ee757602081850181015186830182015201610ecb565b81811115610ef85782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090610f5490830184610ec2565b9695505050505050565b901515815260200190565b600060208252610ced6020830184610ec2565b90815260200190565b60008219821115610f9857610f98610fb4565b500190565b600082821015610faf57610faf610fb4565b500390565b634e487b7160e01b600052601160045260246000fd5b8015158114610b4657600080fd5b6001600160e01b031981168114610b4657600080fdfea2646970667358221220742df31e1d0b4ed206e8e934c406d0fb6a0060f2bb90c71f57a7ebb6234a2bae64736f6c63430008000033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x9E JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x6352211E GT PUSH2 0x66 JUMPI DUP1 PUSH4 0x6352211E EQ PUSH2 0x127 JUMPI DUP1 PUSH4 0x70A08231 EQ PUSH2 0x13A JUMPI DUP1 PUSH4 0xA22CB465 EQ PUSH2 0x15A JUMPI DUP1 PUSH4 0xB88D4FDE EQ PUSH2 0x16D JUMPI DUP1 PUSH4 0xE985E9C5 EQ PUSH2 0x180 JUMPI PUSH2 0x9E JUMP JUMPDEST DUP1 PUSH4 0x1FFC9A7 EQ PUSH2 0xA3 JUMPI DUP1 PUSH4 0x81812FC EQ PUSH2 0xCC JUMPI DUP1 PUSH4 0x95EA7B3 EQ PUSH2 0xEC JUMPI DUP1 PUSH4 0x23B872DD EQ PUSH2 0x101 JUMPI DUP1 PUSH4 0x42842E0E EQ PUSH2 0x114 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0xB6 PUSH2 0xB1 CALLDATASIZE PUSH1 0x4 PUSH2 0xE72 JUMP JUMPDEST PUSH2 0x193 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xC3 SWAP2 SWAP1 PUSH2 0xF5E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xDF PUSH2 0xDA CALLDATASIZE PUSH1 0x4 PUSH2 0xEAA JUMP JUMPDEST PUSH2 0x1B6 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xC3 SWAP2 SWAP1 PUSH2 0xF0D JUMP JUMPDEST PUSH2 0xFF PUSH2 0xFA CALLDATASIZE PUSH1 0x4 PUSH2 0xE2D JUMP JUMPDEST PUSH2 0x238 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xFF PUSH2 0x10F CALLDATASIZE PUSH1 0x4 PUSH2 0xD26 JUMP JUMPDEST PUSH2 0x3DA JUMP JUMPDEST PUSH2 0xFF PUSH2 0x122 CALLDATASIZE PUSH1 0x4 PUSH2 0xD26 JUMP JUMPDEST PUSH2 0x595 JUMP JUMPDEST PUSH2 0xDF PUSH2 0x135 CALLDATASIZE PUSH1 0x4 PUSH2 0xEAA JUMP JUMPDEST PUSH2 0x5B5 JUMP JUMPDEST PUSH2 0x14D PUSH2 0x148 CALLDATASIZE PUSH1 0x4 PUSH2 0xCD3 JUMP JUMPDEST PUSH2 0x60D JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xC3 SWAP2 SWAP1 PUSH2 0xF7C JUMP JUMPDEST PUSH2 0xFF PUSH2 0x168 CALLDATASIZE PUSH1 0x4 PUSH2 0xDF7 JUMP JUMPDEST PUSH2 0x664 JUMP JUMPDEST PUSH2 0xFF PUSH2 0x17B CALLDATASIZE PUSH1 0x4 PUSH2 0xD61 JUMP JUMPDEST PUSH2 0x6D3 JUMP JUMPDEST PUSH2 0xB6 PUSH2 0x18E CALLDATASIZE PUSH1 0x4 PUSH2 0xCF4 JUMP JUMPDEST PUSH2 0x71C JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SLOAD DUP2 MLOAD DUP1 DUP4 ADD SWAP1 SWAP3 MSTORE PUSH1 0x6 DUP3 MSTORE PUSH6 0x181819981819 PUSH1 0xD1 SHL SWAP3 DUP3 ADD SWAP3 SWAP1 SWAP3 MSTORE DUP4 SWAP2 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x216 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP2 POP JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER DUP2 EQ DUP1 PUSH2 0x283 JUMPI POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 CALLER DUP5 MSTORE SWAP1 SWAP2 MSTORE SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0x303033303033 PUSH1 0xD0 SHL DUP2 MSTORE POP SWAP1 PUSH2 0x2C0 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x181819981819 PUSH1 0xD1 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP5 SWAP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x31A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP5 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x60606660607 PUSH1 0xD3 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 DUP2 AND SWAP2 SWAP1 DUP8 AND DUP3 EQ ISZERO PUSH2 0x37A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP6 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 DUP1 DUP3 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP11 DUP2 AND SWAP2 DUP3 OR SWAP1 SWAP3 SSTORE SWAP2 MLOAD DUP9 SWAP4 SWAP2 DUP6 AND SWAP2 PUSH32 0x8C5BE1E5EBEC7D5BD14F71427D1E84F3DD0314C0F7B2291E5B200AC8C7C3B925 SWAP2 LOG4 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER DUP2 EQ DUP1 PUSH2 0x418 JUMPI POP PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ JUMPDEST DUP1 PUSH2 0x446 JUMPI POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 CALLER DUP5 MSTORE SWAP1 SWAP2 MSTORE SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0xC0C0CCC0C0D PUSH1 0xD2 SHL DUP2 MSTORE POP SWAP1 PUSH2 0x483 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP4 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x181819981819 PUSH1 0xD1 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP5 SWAP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x4DD JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP5 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x303033303037 PUSH1 0xD0 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 DUP2 AND SWAP2 SWAP1 DUP9 AND DUP3 EQ PUSH2 0x53C JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303033303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND PUSH2 0x581 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH2 0x58C DUP7 DUP7 PUSH2 0x74A JUMP JUMPDEST POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0x5B0 DUP4 DUP4 DUP4 PUSH1 0x40 MLOAD DUP1 PUSH1 0x20 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x0 DUP2 MSTORE POP PUSH2 0x7C5 JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x181819981819 PUSH1 0xD1 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND SWAP1 DUP2 PUSH2 0x232 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303033303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP4 AND PUSH2 0x654 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH2 0x65E DUP3 PUSH2 0xAF1 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST CALLER PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP8 AND DUP1 DUP6 MSTORE SWAP3 MSTORE SWAP2 DUP3 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0xFF NOT AND DUP6 ISZERO ISZERO OR SWAP1 SSTORE SWAP1 MLOAD SWAP1 SWAP2 SWAP1 PUSH32 0x17307EAB39AB6107E8899845AD3D59BD9653F200F220920489CA2B5937696C31 SWAP1 PUSH2 0x6C7 SWAP1 DUP6 SWAP1 PUSH2 0xF5E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH2 0x715 DUP6 DUP6 DUP6 DUP6 DUP6 DUP1 DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 DUP1 DUP3 DUP5 CALLDATACOPY PUSH1 0x0 SWAP3 ADD SWAP2 SWAP1 SWAP2 MSTORE POP PUSH2 0x7C5 SWAP3 POP POP POP JUMP JUMPDEST POP POP POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP4 SWAP1 SWAP5 AND DUP3 MSTORE SWAP2 SWAP1 SWAP2 MSTORE KECCAK256 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x76B DUP3 PUSH2 0xB0C JUMP JUMPDEST PUSH2 0x775 DUP2 DUP4 PUSH2 0xB49 JUMP JUMPDEST PUSH2 0x77F DUP4 DUP4 PUSH2 0xC03 JUMP JUMPDEST DUP2 DUP4 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP3 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH32 0xDDF252AD1BE2C89B69C2B068FC378DAA952BA7F163C4A11628F55A4DF523B3EF PUSH1 0x40 MLOAD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG4 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD DUP3 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER DUP2 EQ DUP1 PUSH2 0x803 JUMPI POP PUSH1 0x0 DUP3 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ JUMPDEST DUP1 PUSH2 0x831 JUMPI POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x4 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 CALLER DUP5 MSTORE SWAP1 SWAP2 MSTORE SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0xC0C0CCC0C0D PUSH1 0xD2 SHL DUP2 MSTORE POP SWAP1 PUSH2 0x86E JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP5 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x181819981819 PUSH1 0xD1 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP6 SWAP2 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH2 0x8C8 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP6 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x303033303037 PUSH1 0xD0 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 DUP2 AND SWAP2 SWAP1 DUP10 AND DUP3 EQ PUSH2 0x927 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303033303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP9 AND PUSH2 0x96C JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH2 0x977 DUP8 DUP8 PUSH2 0x74A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH4 0x16279055 PUSH1 0xE0 SHL DUP2 MSTORE PUSH20 0x0 SWAP1 PUSH4 0x16279055 SWAP1 PUSH2 0x9B7 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP12 AND SWAP1 PUSH1 0x4 ADD PUSH2 0xF0D JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x9CF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS DELEGATECALL ISZERO DUP1 ISZERO PUSH2 0x9E3 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xA07 SWAP2 SWAP1 PUSH2 0xE56 JUMP JUMPDEST ISZERO PUSH2 0xAE7 JUMPI PUSH1 0x40 MLOAD PUSH4 0xA85BD01 PUSH1 0xE1 SHL DUP2 MSTORE PUSH1 0x0 SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP10 AND SWAP1 PUSH4 0x150B7A02 SWAP1 PUSH2 0xA41 SWAP1 CALLER SWAP1 DUP14 SWAP1 DUP13 SWAP1 DUP13 SWAP1 PUSH1 0x4 ADD PUSH2 0xF21 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0xA5B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0xA6F JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xA93 SWAP2 SWAP1 PUSH2 0xE8E JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303033303035 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE SWAP1 SWAP2 POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP3 AND PUSH4 0xA85BD01 PUSH1 0xE1 SHL EQ PUSH2 0xAE4 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP POP JUMPDEST POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ISZERO PUSH2 0xB46 JUMPI PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x2 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND SWAP1 SSTORE JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x303033303037 PUSH1 0xD0 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP5 DUP2 AND SWAP2 AND EQ PUSH2 0xBA4 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH2 0xBCA SWAP1 PUSH1 0x1 SWAP1 PUSH2 0xF9D JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 DUP1 DUP4 KECCAK256 SWAP5 SWAP1 SWAP5 SSTORE SWAP2 DUP2 MSTORE PUSH1 0x1 SWAP1 SWAP2 MSTORE KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 SWAP1 DUP2 MSTORE PUSH1 0x40 SWAP2 DUP3 SWAP1 KECCAK256 SLOAD DUP3 MLOAD DUP1 DUP5 ADD SWAP1 SWAP4 MSTORE PUSH1 0x6 DUP4 MSTORE PUSH6 0x18181998181B PUSH1 0xD1 SHL SWAP2 DUP4 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND ISZERO PUSH2 0xC5A JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x20D SWAP2 SWAP1 PUSH2 0xF69 JUMP JUMPDEST POP PUSH1 0x0 DUP2 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP2 DUP2 MSTORE PUSH1 0x40 DUP1 DUP5 KECCAK256 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP9 AND SWAP1 DUP2 OR SWAP1 SWAP2 SSTORE DUP5 MSTORE PUSH1 0x3 SWAP1 SWAP2 MSTORE SWAP1 SWAP2 KECCAK256 SLOAD PUSH2 0xC9C SWAP2 PUSH2 0xF85 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP1 SWAP3 AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x3 PUSH1 0x20 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SWAP2 SWAP1 SWAP2 SSTORE POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x1B1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xCE4 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0xCED DUP3 PUSH2 0xCBC JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xD06 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0xD0F DUP4 PUSH2 0xCBC JUMP JUMPDEST SWAP2 POP PUSH2 0xD1D PUSH1 0x20 DUP5 ADD PUSH2 0xCBC JUMP JUMPDEST SWAP1 POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0xD3A JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0xD43 DUP5 PUSH2 0xCBC JUMP JUMPDEST SWAP3 POP PUSH2 0xD51 PUSH1 0x20 DUP6 ADD PUSH2 0xCBC JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD SWAP1 POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x80 DUP7 DUP9 SUB SLT ISZERO PUSH2 0xD78 JUMPI DUP1 DUP2 REVERT JUMPDEST PUSH2 0xD81 DUP7 PUSH2 0xCBC JUMP JUMPDEST SWAP5 POP PUSH2 0xD8F PUSH1 0x20 DUP8 ADD PUSH2 0xCBC JUMP JUMPDEST SWAP4 POP PUSH1 0x40 DUP7 ADD CALLDATALOAD SWAP3 POP PUSH1 0x60 DUP7 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP1 DUP3 GT ISZERO PUSH2 0xDB2 JUMPI DUP3 DUP4 REVERT JUMPDEST DUP2 DUP9 ADD SWAP2 POP DUP9 PUSH1 0x1F DUP4 ADD SLT PUSH2 0xDC5 JUMPI DUP3 DUP4 REVERT JUMPDEST DUP2 CALLDATALOAD DUP2 DUP2 GT ISZERO PUSH2 0xDD3 JUMPI DUP4 DUP5 REVERT JUMPDEST DUP10 PUSH1 0x20 DUP3 DUP6 ADD ADD GT ISZERO PUSH2 0xDE4 JUMPI DUP4 DUP5 REVERT JUMPDEST SWAP7 SWAP10 SWAP6 SWAP9 POP SWAP4 SWAP7 POP PUSH1 0x20 ADD SWAP5 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xE09 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0xE12 DUP4 PUSH2 0xCBC JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH2 0xE22 DUP2 PUSH2 0xFCA JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0xE3F JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH2 0xE48 DUP4 PUSH2 0xCBC JUMP JUMPDEST SWAP5 PUSH1 0x20 SWAP4 SWAP1 SWAP4 ADD CALLDATALOAD SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xE67 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0xCED DUP2 PUSH2 0xFCA JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xE83 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0xCED DUP2 PUSH2 0xFD8 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xE9F JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 MLOAD PUSH2 0xCED DUP2 PUSH2 0xFD8 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xEBB JUMPI DUP1 DUP2 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD DUP1 DUP5 MSTORE DUP2 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xEE7 JUMPI PUSH1 0x20 DUP2 DUP6 ADD DUP2 ADD MLOAD DUP7 DUP4 ADD DUP3 ADD MSTORE ADD PUSH2 0xECB JUMP JUMPDEST DUP2 DUP2 GT ISZERO PUSH2 0xEF8 JUMPI DUP3 PUSH1 0x20 DUP4 DUP8 ADD ADD MSTORE JUMPDEST POP PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP3 SWAP1 SWAP3 ADD PUSH1 0x20 ADD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP6 DUP2 AND DUP3 MSTORE DUP5 AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x40 DUP2 ADD DUP4 SWAP1 MSTORE PUSH1 0x80 PUSH1 0x60 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x0 SWAP1 PUSH2 0xF54 SWAP1 DUP4 ADD DUP5 PUSH2 0xEC2 JUMP JUMPDEST SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 MSTORE PUSH2 0xCED PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0xEC2 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 NOT DUP3 GT ISZERO PUSH2 0xF98 JUMPI PUSH2 0xF98 PUSH2 0xFB4 JUMP JUMPDEST POP ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 LT ISZERO PUSH2 0xFAF JUMPI PUSH2 0xFAF PUSH2 0xFB4 JUMP JUMPDEST POP SUB SWAP1 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0xB46 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP2 AND DUP2 EQ PUSH2 0xB46 JUMPI PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH21 0x2DF31E1D0B4ED206E8E934C406D0FB6A0060F2BB90 0xC7 0x1F JUMPI 0xA7 0xEB 0xB6 0x23 0x4A 0x2B 0xAE PUSH5 0x736F6C6343 STOP ADDMOD STOP STOP CALLER ",
"sourceMap": "2717:12630:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2478:163;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;10349:173;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;8210:338::-;;;;;;:::i;:::-;;:::i;:::-;;7460;;;;;;:::i;:::-;;:::i;6726:170::-;;;;;;:::i;:::-;;:::i;9915:198::-;;;;;;:::i;:::-;;:::i;9459:194::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;8950:223::-;;;;;;:::i;:::-;;:::i;6128:199::-;;;;;;:::i;:::-;;:::i;10783:182::-;;;;;;:::i;:::-;;:::i;2478:163::-;-1:-1:-1;;;;;;2603:33:2;;2582:4;2603:33;;;;;;;;;;;;;2478:163;;;;:::o;10349:173::-;10471:7;5086:19;;;:9;:19;;;;;;;;;5121:13;;;;;;;;;;;-1:-1:-1;;;5121:13:2;;;;;;;10448:8;;-1:-1:-1;;;;;5086:19:2;5078:57;;;;-1:-1:-1;;;5078:57:2;;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;10495:22:2::1;::::0;;;:12:::1;:22;::::0;;;;;-1:-1:-1;;;;;10495:22:2::1;::::0;-1:-1:-1;5141:1:2::1;10349:173:::0;;;;:::o;8210:338::-;4304:18;4325:19;;;:9;:19;;;;;;8317:8;;-1:-1:-1;;;;;4325:19:2;4379:10;4365:24;;;:68;;-1:-1:-1;;;;;;4393:28:2;;;;;;:16;:28;;;;;;;;4422:10;4393:40;;;;;;;;;;4365:68;4441:21;;;;;;;;;;;;;-1:-1:-1;;;4441:21:2;;;4350:118;;;;;-1:-1:-1;;;4350:118:2;;;;;;;;:::i;:::-;-1:-1:-1;5117:1:2::1;5086:19:::0;;;:9:::1;:19;::::0;;;;;;;;;5121:13;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;5121:13:2;;::::1;::::0;;;;8344:8;;5121:13;-1:-1:-1;;;;;5086:19:2::1;5078:57;;;;-1:-1:-1::0;;;5078:57:2::1;;;;;;;;:::i;:::-;-1:-1:-1::0;8362:18:2::2;8383:19:::0;;;:9:::2;:19;::::0;;;;;;;;;8441:8;;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;;8441:8:2;;::::2;::::0;;;;-1:-1:-1;;;;;8383:19:2;;::::2;::::0;8441:8;8416:23;::::2;::::0;::::2;;8408:42;;;;-1:-1:-1::0;;;8408:42:2::2;;;;;;;;:::i;:::-;-1:-1:-1::0;8457:22:2::2;::::0;;;:12:::2;:22;::::0;;;;;:34;;-1:-1:-1;;;;;;8457:34:2::2;-1:-1:-1::0;;;;;8457:34:2;;::::2;::::0;;::::2;::::0;;;8502:41;;8457:22;;8502:41;;::::2;::::0;::::2;::::0;::::2;5141:1;4474::::1;8210:338:::0;;;;:::o;7460:::-;4668:18;4689:19;;;:9;:19;;;;;;7586:8;;-1:-1:-1;;;;;4689:19:2;4743:10;4729:24;;;:70;;-1:-1:-1;4763:22:2;;;;:12;:22;;;;;;-1:-1:-1;;;;;4763:22:2;4789:10;4763:36;4729:70;:120;;;-1:-1:-1;;;;;;4809:28:2;;;;;;:16;:28;;;;;;;;4838:10;4809:40;;;;;;;;;;4729:120;4857:30;;;;;;;;;;;;;-1:-1:-1;;;4857:30:2;;;4714:179;;;;;-1:-1:-1;;;4714:179:2;;;;;;;;:::i;:::-;-1:-1:-1;5117:1:2::1;5086:19:::0;;;:9:::1;:19;::::0;;;;;;;;;5121:13;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;5121:13:2;;::::1;::::0;;;;7613:8;;5121:13;-1:-1:-1;;;;;5086:19:2::1;5078:57;;;;-1:-1:-1::0;;;5078:57:2::1;;;;;;;;:::i;:::-;-1:-1:-1::0;7631:18:2::2;7652:19:::0;;;:9:::2;:19;::::0;;;;;;;;;7706:9;;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;;7706:9:2;;::::2;::::0;;;;-1:-1:-1;;;;;7652:19:2;;::::2;::::0;7706:9;7685:19;::::2;::::0;::::2;7677:39;;;;-1:-1:-1::0;;;7677:39:2::2;;;;;;;;:::i;:::-;-1:-1:-1::0;7749:12:2::2;::::0;;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;;7749:12:2::2;::::0;::::2;::::0;-1:-1:-1;;;;;7730:17:2;::::2;7722:40;;;;-1:-1:-1::0;;;7722:40:2::2;;;;;;;;:::i;:::-;;7769:24;7779:3;7784:8;7769:9;:24::i;:::-;5141:1;4899::::1;7460:338:::0;;;;;:::o;6726:170::-;6848:43;6866:5;6873:3;6878:8;6848:43;;;;;;;;;;;;:17;:43::i;:::-;6726:170;;;:::o;9915:198::-;10006:14;10039:19;;;:9;:19;;;;;;;;;;10094:13;;;;;;;;;;;-1:-1:-1;;;10094:13:2;;;;;;;-1:-1:-1;;;;;10039:19:2;;10072:20;10064:44;;;;-1:-1:-1;;;10064:44:2;;;;;;;;:::i;9459:194::-;9597:12;;;;;;;;;;;;-1:-1:-1;;;9597:12:2;;;;9550:7;;-1:-1:-1;;;;;9575:20:2;;9567:43;;;;-1:-1:-1;;;9567:43:2;;;;;;;;:::i;:::-;;9623:25;9641:6;9623:17;:25::i;:::-;9616:32;9459:194;-1:-1:-1;;9459:194:2:o;8950:223::-;9075:10;9058:28;;;;:16;:28;;;;;;;;-1:-1:-1;;;;;9058:39:2;;;;;;;;;;;:51;;-1:-1:-1;;9058:51:2;;;;;;;9120:48;;9058:39;;9075:10;9120:48;;;;9058:51;;9120:48;:::i;:::-;;;;;;;;8950:223;;:::o;6128:199::-;6276:46;6294:5;6301:3;6306:8;6316:5;;6276:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6276:17:2;;-1:-1:-1;;;6276:46:2:i;:::-;6128:199;;;;;:::o;10783:182::-;-1:-1:-1;;;;;10925:24:2;;;10904:4;10925:24;;;:16;:24;;;;;;;;:35;;;;;;;;;;;;;;;10783:182::o;11148:262::-;11231:12;11246:19;;;:9;:19;;;;;;-1:-1:-1;;;;;11246:19:2;11271:24;11256:8;11271:14;:24::i;:::-;11302:30;11317:4;11323:8;11302:14;:30::i;:::-;11338:26;11350:3;11355:8;11338:11;:26::i;:::-;11396:8;11391:3;-1:-1:-1;;;;;11376:29:2;11385:4;-1:-1:-1;;;;;11376:29:2;;;;;;;;;;;11148:262;;;:::o;14484:569::-;4668:18;4689:19;;;:9;:19;;;;;;14625:8;;-1:-1:-1;;;;;4689:19:2;4743:10;4729:24;;;:70;;-1:-1:-1;4763:22:2;;;;:12;:22;;;;;;-1:-1:-1;;;;;4763:22:2;4789:10;4763:36;4729:70;:120;;;-1:-1:-1;;;;;;4809:28:2;;;;;;:16;:28;;;;;;;;4838:10;4809:40;;;;;;;;;;4729:120;4857:30;;;;;;;;;;;;;-1:-1:-1;;;4857:30:2;;;4714:179;;;;;-1:-1:-1;;;4714:179:2;;;;;;;;:::i;:::-;-1:-1:-1;5117:1:2::1;5086:19:::0;;;:9:::1;:19;::::0;;;;;;;;;5121:13;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;5121:13:2;;::::1;::::0;;;;14652:8;;5121:13;-1:-1:-1;;;;;5086:19:2::1;5078:57;;;;-1:-1:-1::0;;;5078:57:2::1;;;;;;;;:::i;:::-;-1:-1:-1::0;14670:18:2::2;14691:19:::0;;;:9:::2;:19;::::0;;;;;;;;;14745:9;;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;;14745:9:2;;::::2;::::0;;;;-1:-1:-1;;;;;14691:19:2;;::::2;::::0;14745:9;14724:19;::::2;::::0;::::2;14716:39;;;;-1:-1:-1::0;;;14716:39:2::2;;;;;;;;:::i;:::-;-1:-1:-1::0;14788:12:2::2;::::0;;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;;14788:12:2::2;::::0;::::2;::::0;-1:-1:-1;;;;;14769:17:2;::::2;14761:40;;;;-1:-1:-1::0;;;14761:40:2::2;;;;;;;;:::i;:::-;;14808:24;14818:3;14823:8;14808:9;:24::i;:::-;14843:16;::::0;-1:-1:-1;;;14843:16:2;;:14:::2;::::0;::::2;::::0;:16:::2;::::0;-1:-1:-1;;;;;14843:14:2;::::2;::::0;:16:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;14839:210;;;14889:77;::::0;-1:-1:-1;;;14889:77:2;;14873:13:::2;::::0;-1:-1:-1;;;;;14889:41:2;::::2;::::0;::::2;::::0;:77:::2;::::0;14931:10:::2;::::0;14943:5;;14950:8;;14960:5;;14889:77:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;15018:23;::::0;;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;;15018:23:2::2;::::0;::::2;::::0;14873:93;;-1:-1:-1;;;;;;;14982:34:2;::::2;-1:-1:-1::0;;;14982:34:2::2;14974:68;;;;-1:-1:-1::0;;;14974:68:2::2;;;;;;;;:::i;:::-;;14839:210;;5141:1;4899::::1;14484:569:::0;;;;;;:::o;14061:154::-;-1:-1:-1;;;;;14183:27:2;14159:7;14183:27;;;:19;:27;;;;;;;14061:154::o;15180:164::-;15288:1;15254:22;;;:12;:22;;;;;;-1:-1:-1;;;;;15254:22:2;:36;15250:90;;15311:22;;;;:12;:22;;;;;15304:29;;-1:-1:-1;;;;;;15304:29:2;;;15250:90;15180:164;:::o;13006:252::-;13116:19;;;;:9;:19;;;;;;;;;;13146:9;;;;;;;;;;;-1:-1:-1;;;13146:9:2;;;;;;;-1:-1:-1;;;;;13116:28:2;;;:19;;:28;13108:48;;;;-1:-1:-1;;;13108:48:2;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;13191:26:2;;;;;;:19;:26;;;;;;:30;;13220:1;;13191:30;:::i;:::-;-1:-1:-1;;;;;13162:26:2;;;;;;;:19;:26;;;;;;;;:59;;;;13234:19;;;:9;:19;;;;13227:26;;-1:-1:-1;;;;;;13227:26:2;;;13006:252::o;13517:257::-;13653:1;13622:19;;;:9;:19;;;;;;;;;;13657:18;;;;;;;;;;;-1:-1:-1;;;13657:18:2;;;;;;;-1:-1:-1;;;;;13622:19:2;:33;13614:62;;;;-1:-1:-1;;;13614:62:2;;;;;;;;:::i;:::-;-1:-1:-1;13683:19:2;;;;:9;:19;;;;;;;;:25;;-1:-1:-1;;;;;;13683:25:2;-1:-1:-1;;;;;13683:25:2;;;;;;;;13741:24;;:19;:24;;;;;;;:28;;;:::i;:::-;-1:-1:-1;;;;;13714:24:2;;;;;;;:19;:24;;;;;:55;;;;-1:-1:-1;13517:257:2:o;14:175:3:-;84:20;;-1:-1:-1;;;;;133:31:3;;123:42;;113:2;;179:1;176;169:12;194:198;;306:2;294:9;285:7;281:23;277:32;274:2;;;327:6;319;312:22;274:2;355:31;376:9;355:31;:::i;:::-;345:41;264:128;-1:-1:-1;;;264:128:3:o;397:274::-;;;526:2;514:9;505:7;501:23;497:32;494:2;;;547:6;539;532:22;494:2;575:31;596:9;575:31;:::i;:::-;565:41;;625:40;661:2;650:9;646:18;625:40;:::i;:::-;615:50;;484:187;;;;;:::o;676:342::-;;;;822:2;810:9;801:7;797:23;793:32;790:2;;;843:6;835;828:22;790:2;871:31;892:9;871:31;:::i;:::-;861:41;;921:40;957:2;946:9;942:18;921:40;:::i;:::-;911:50;;1008:2;997:9;993:18;980:32;970:42;;780:238;;;;;:::o;1023:862::-;;;;;;1205:3;1193:9;1184:7;1180:23;1176:33;1173:2;;;1227:6;1219;1212:22;1173:2;1255:31;1276:9;1255:31;:::i;:::-;1245:41;;1305:40;1341:2;1330:9;1326:18;1305:40;:::i;:::-;1295:50;;1392:2;1381:9;1377:18;1364:32;1354:42;;1447:2;1436:9;1432:18;1419:32;1470:18;1511:2;1503:6;1500:14;1497:2;;;1532:6;1524;1517:22;1497:2;1575:6;1564:9;1560:22;1550:32;;1620:7;1613:4;1609:2;1605:13;1601:27;1591:2;;1647:6;1639;1632:22;1591:2;1692;1679:16;1718:2;1710:6;1707:14;1704:2;;;1739:6;1731;1724:22;1704:2;1789:7;1784:2;1775:6;1771:2;1767:15;1763:24;1760:37;1757:2;;;1815:6;1807;1800:22;1757:2;1163:722;;;;-1:-1:-1;1163:722:3;;-1:-1:-1;1851:2:3;1843:11;;1873:6;1163:722;-1:-1:-1;;;1163:722:3:o;1890:329::-;;;2016:2;2004:9;1995:7;1991:23;1987:32;1984:2;;;2037:6;2029;2022:22;1984:2;2065:31;2086:9;2065:31;:::i;:::-;2055:41;;2146:2;2135:9;2131:18;2118:32;2159:30;2183:5;2159:30;:::i;:::-;2208:5;2198:15;;;1974:245;;;;;:::o;2224:266::-;;;2353:2;2341:9;2332:7;2328:23;2324:32;2321:2;;;2374:6;2366;2359:22;2321:2;2402:31;2423:9;2402:31;:::i;:::-;2392:41;2480:2;2465:18;;;;2452:32;;-1:-1:-1;;;2311:179:3:o;2495:257::-;;2615:2;2603:9;2594:7;2590:23;2586:32;2583:2;;;2636:6;2628;2621:22;2583:2;2673:9;2667:16;2692:30;2716:5;2692:30;:::i;2757:257::-;;2868:2;2856:9;2847:7;2843:23;2839:32;2836:2;;;2889:6;2881;2874:22;2836:2;2933:9;2920:23;2952:32;2978:5;2952:32;:::i;3019:261::-;;3141:2;3129:9;3120:7;3116:23;3112:32;3109:2;;;3162:6;3154;3147:22;3109:2;3199:9;3193:16;3218:32;3244:5;3218:32;:::i;3285:190::-;;3397:2;3385:9;3376:7;3372:23;3368:32;3365:2;;;3418:6;3410;3403:22;3365:2;-1:-1:-1;3446:23:3;;3355:120;-1:-1:-1;3355:120:3:o;3480:477::-;;3561:5;3555:12;3588:6;3583:3;3576:19;3613:3;3625:162;3639:6;3636:1;3633:13;3625:162;;;3701:4;3757:13;;;3753:22;;3747:29;3729:11;;;3725:20;;3718:59;3654:12;3625:162;;;3805:6;3802:1;3799:13;3796:2;;;3871:3;3864:4;3855:6;3850:3;3846:16;3842:27;3835:40;3796:2;-1:-1:-1;3939:2:3;3918:15;-1:-1:-1;;3914:29:3;3905:39;;;;3946:4;3901:50;;3531:426;-1:-1:-1;;3531:426:3:o;3962:211::-;-1:-1:-1;;;;;4134:32:3;;;;4116:51;;4104:2;4089:18;;4071:102::o;4386:490::-;-1:-1:-1;;;;;4655:15:3;;;4637:34;;4707:15;;4702:2;4687:18;;4680:43;4754:2;4739:18;;4732:34;;;4802:3;4797:2;4782:18;;4775:31;;;4386:490;;4823:47;;4850:19;;4842:6;4823:47;:::i;:::-;4815:55;4589:287;-1:-1:-1;;;;;;4589:287:3:o;4881:187::-;5046:14;;5039:22;5021:41;;5009:2;4994:18;;4976:92::o;5073:221::-;;5222:2;5211:9;5204:21;5242:46;5284:2;5273:9;5269:18;5261:6;5242:46;:::i;5299:177::-;5445:25;;;5433:2;5418:18;;5400:76::o;5481:128::-;;5552:1;5548:6;5545:1;5542:13;5539:2;;;5558:18;;:::i;:::-;-1:-1:-1;5594:9:3;;5529:80::o;5614:125::-;;5682:1;5679;5676:8;5673:2;;;5687:18;;:::i;:::-;-1:-1:-1;5724:9:3;;5663:76::o;5744:127::-;5805:10;5800:3;5796:20;5793:1;5786:31;5836:4;5833:1;5826:15;5860:4;5857:1;5850:15;5876:120;5964:5;5957:13;5950:21;5943:5;5940:32;5930:2;;5986:1;5983;5976:12;6001:133;-1:-1:-1;;;;;;6077:32:3;;6067:43;;6057:2;;6124:1;6121;6114:12"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "826400",
"executionCost": "42557",
"totalCost": "868957"
},
"external": {
"approve(address,uint256)": "infinite",
"balanceOf(address)": "infinite",
"getApproved(uint256)": "infinite",
"isApprovedForAll(address,address)": "infinite",
"ownerOf(uint256)": "infinite",
"safeTransferFrom(address,address,uint256)": "infinite",
"safeTransferFrom(address,address,uint256,bytes)": "infinite",
"setApprovalForAll(address,bool)": "23291",
"supportsInterface(bytes4)": "1295",
"transferFrom(address,address,uint256)": "infinite"
},
"internal": {
"_addNFToken(address,uint256)": "infinite",
"_burn(uint256)": "infinite",
"_clearApproval(uint256)": "21817",
"_getOwnerNFTCount(address)": "905",
"_mint(address,uint256)": "infinite",
"_removeNFToken(address,uint256)": "infinite",
"_safeTransferFrom(address,address,uint256,bytes memory)": "infinite",
"_transfer(address,uint256)": "infinite"
}
},
"methodIdentifiers": {
"approve(address,uint256)": "095ea7b3",
"balanceOf(address)": "70a08231",
"getApproved(uint256)": "081812fc",
"isApprovedForAll(address,address)": "e985e9c5",
"ownerOf(uint256)": "6352211e",
"safeTransferFrom(address,address,uint256)": "42842e0e",
"safeTransferFrom(address,address,uint256,bytes)": "b88d4fde",
"setApprovalForAll(address,bool)": "a22cb465",
"supportsInterface(bytes4)": "01ffc9a7",
"transferFrom(address,address,uint256)": "23b872dd"
}
},
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "_interfaceID",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "_interfaceID",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"details": "Implementation of ERC-721 non-fungible token standard.",
"kind": "dev",
"methods": {
"approve(address,uint256)": {
"details": "Set or reaffirm the approved address for an NFT. This function can be changed to payable.",
"params": {
"_approved": "Address to be approved for the given NFT ID.",
"_tokenId": "ID of the token to be approved."
}
},
"balanceOf(address)": {
"details": "Returns the number of NFTs owned by `_owner`. NFTs assigned to the zero address are considered invalid, and this function throws for queries about the zero address.",
"params": {
"_owner": "Address for whom to query the balance."
},
"returns": {
"_0": "Balance of _owner."
}
},
"constructor": {
"details": "Contract constructor."
},
"getApproved(uint256)": {
"details": "Get the approved address for a single NFT.",
"params": {
"_tokenId": "ID of the NFT to query the approval of."
},
"returns": {
"_0": "Address that _tokenId is approved for."
}
},
"isApprovedForAll(address,address)": {
"details": "Checks if `_operator` is an approved operator for `_owner`.",
"params": {
"_operator": "The address that acts on behalf of the owner.",
"_owner": "The address that owns the NFTs."
},
"returns": {
"_0": "True if approved for all, false otherwise."
}
},
"ownerOf(uint256)": {
"details": "Returns the address of the owner of the NFT. NFTs assigned to the zero address are considered invalid, and queries about them do throw.",
"params": {
"_tokenId": "The identifier for an NFT."
},
"returns": {
"_owner": "Address of _tokenId owner."
}
},
"safeTransferFrom(address,address,uint256)": {
"details": "Transfers the ownership of an NFT from one address to another address. This function can be changed to payable.",
"params": {
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
},
"safeTransferFrom(address,address,uint256,bytes)": {
"details": "Transfers the ownership of an NFT from one address to another address. This function can be changed to payable.",
"params": {
"_data": "Additional data with no specified format, sent in call to `_to`.",
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
},
"setApprovalForAll(address,bool)": {
"details": "Enables or disables approval for a third party (\"operator\") to manage all of `msg.sender`'s assets. It also emits the ApprovalForAll event.",
"params": {
"_approved": "True if the operators is approved, false to revoke approval.",
"_operator": "Address to add to the set of authorized operators."
}
},
"supportsInterface(bytes4)": {
"details": "Function to check which interfaces are suported by this contract.",
"params": {
"_interfaceID": "Id of the interface."
},
"returns": {
"_0": "True if _interfaceID is supported, false otherwise."
}
},
"transferFrom(address,address,uint256)": {
"details": "Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT. This function can be changed to payable.",
"params": {
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
}
},
"stateVariables": {
"MAGIC_ON_ERC721_RECEIVED": {
"details": "Magic value of a smart contract that can receive NFT. Equal to: bytes4(keccak256(\"onERC721Received(address,address,uint256,bytes)\"))."
},
"ZERO_ADDRESS": {
"details": "List of revert message codes. Implementing dApp should handle showing the correct message. Based on 0xcert framework error codes."
},
"idToApproval": {
"details": "Mapping from NFT ID to approved address."
},
"idToOwner": {
"details": "A mapping from NFT ID to the address that owns it."
},
"ownerToNFTokenCount": {
"details": "Mapping from owner address to count of his tokens."
},
"ownerToOperators": {
"details": "Mapping from owner address to mapping of operator addresses."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"approve(address,uint256)": {
"notice": "The zero address indicates there is no approved address. Throws unless `msg.sender` is the current NFT owner, or an authorized operator of the current owner."
},
"getApproved(uint256)": {
"notice": "Throws if `_tokenId` is not a valid NFT."
},
"safeTransferFrom(address,address,uint256)": {
"notice": "This works identically to the other function with an extra data parameter, except this function just sets data to \"\""
},
"safeTransferFrom(address,address,uint256,bytes)": {
"notice": "Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT. When transfer is complete, this function checks if `_to` is a smart contract (code size > 0). If so, it calls `onERC721Received` on `_to` and throws if the return value is not `bytes4(keccak256(\"onERC721Received(address,uint256,bytes)\"))`."
},
"setApprovalForAll(address,bool)": {
"notice": "This works even if sender doesn't own any tokens at the time."
},
"transferFrom(address,address,uint256)": {
"notice": "The caller is responsible to confirm that `_to` is capable of receiving NFTs or else they may be permanently lost."
}
},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/1-nf-token-metadata.sol": "NFToken"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-address.sol": {
"keccak256": "0x97f6a04124fe48db2626e482e46c2ff690a177aeab6a0d60cf012e8ccedf4a2d",
"license": "MIT",
"urls": [
"bzz-raw://f170f84d1310a22270c5bd8785c64b3971a304f6920f61ccf58daf82ccfd0eea",
"dweb:/ipfs/QmeLfHAMQuKN429nC7QRJ5inXuFMLMvBiEKgEqzLX22WcU"
]
},
"contracts/0-erc721.sol": {
"keccak256": "0x3e9f93cfe735b96bfb8fa69c9a4fac4c91a7a97608e083f539e903e10e992437",
"license": "MIT",
"urls": [
"bzz-raw://04effbd1079d421b98504bfd114d55fe6dd1061acd63e4868bc393c32122fef0",
"dweb:/ipfs/Qmbem1vWx7c8aRUStUqhUCX1zbE9nqZCHd8QNzzv5dei12"
]
},
"contracts/1-nf-token-metadata.sol": {
"keccak256": "0x963390921aed6d5224c3b208e5caf72e6704fe3a023dae7d8a2843bdbe0fc619",
"license": "MIT",
"urls": [
"bzz-raw://d409ee7fc38bba0f2e6b454d0bc205fd6ec976595c0f6e95559efc140df23f5d",
"dweb:/ipfs/QmNyHEQpvxFpzkLAT9xrpq3KgyzgVLL5oKDcNz5JTyZ99N"
]
}
},
"version": 1
}
// this line is added to create a gist. Empty file is not allowed.
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "_interfaceID",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "tokenByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "tokenOfOwnerByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"details": "Optional enumeration implementation for ERC-721 non-fungible token standard.",
"kind": "dev",
"methods": {
"approve(address,uint256)": {
"details": "Set or reaffirm the approved address for an NFT. This function can be changed to payable.",
"params": {
"_approved": "Address to be approved for the given NFT ID.",
"_tokenId": "ID of the token to be approved."
}
},
"balanceOf(address)": {
"details": "Returns the number of NFTs owned by `_owner`. NFTs assigned to the zero address are considered invalid, and this function throws for queries about the zero address.",
"params": {
"_owner": "Address for whom to query the balance."
},
"returns": {
"_0": "Balance of _owner."
}
},
"constructor": {
"details": "Contract constructor."
},
"getApproved(uint256)": {
"details": "Get the approved address for a single NFT.",
"params": {
"_tokenId": "ID of the NFT to query the approval of."
},
"returns": {
"_0": "Address that _tokenId is approved for."
}
},
"isApprovedForAll(address,address)": {
"details": "Checks if `_operator` is an approved operator for `_owner`.",
"params": {
"_operator": "The address that acts on behalf of the owner.",
"_owner": "The address that owns the NFTs."
},
"returns": {
"_0": "True if approved for all, false otherwise."
}
},
"ownerOf(uint256)": {
"details": "Returns the address of the owner of the NFT. NFTs assigned to the zero address are considered invalid, and queries about them do throw.",
"params": {
"_tokenId": "The identifier for an NFT."
},
"returns": {
"_owner": "Address of _tokenId owner."
}
},
"safeTransferFrom(address,address,uint256)": {
"details": "Transfers the ownership of an NFT from one address to another address. This function can be changed to payable.",
"params": {
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
},
"safeTransferFrom(address,address,uint256,bytes)": {
"details": "Transfers the ownership of an NFT from one address to another address. This function can be changed to payable.",
"params": {
"_data": "Additional data with no specified format, sent in call to `_to`.",
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
},
"setApprovalForAll(address,bool)": {
"details": "Enables or disables approval for a third party (\"operator\") to manage all of `msg.sender`'s assets. It also emits the ApprovalForAll event.",
"params": {
"_approved": "True if the operators is approved, false to revoke approval.",
"_operator": "Address to add to the set of authorized operators."
}
},
"supportsInterface(bytes4)": {
"details": "Function to check which interfaces are suported by this contract.",
"params": {
"_interfaceID": "Id of the interface."
},
"returns": {
"_0": "True if _interfaceID is supported, false otherwise."
}
},
"tokenByIndex(uint256)": {
"details": "Returns NFT ID by its index.",
"params": {
"_index": "A counter less than `totalSupply()`."
},
"returns": {
"_0": "Token id."
}
},
"tokenOfOwnerByIndex(address,uint256)": {
"details": "returns the n-th NFT ID from a list of owner's tokens.",
"params": {
"_index": "Index number representing n-th token in owner's list of tokens.",
"_owner": "Token owner's address."
},
"returns": {
"_0": "Token id."
}
},
"totalSupply()": {
"details": "Returns the count of all existing NFTokens.",
"returns": {
"_0": "Total supply of NFTs."
}
},
"transferFrom(address,address,uint256)": {
"details": "Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT. This function can be changed to payable.",
"params": {
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
}
},
"stateVariables": {
"INVALID_INDEX": {
"details": "List of revert message codes. Implementing dApp should handle showing the correct message. Based on 0xcert framework error codes."
},
"idToIndex": {
"details": "Mapping from token ID to its index in global tokens array."
},
"idToOwnerIndex": {
"details": "Mapping from NFT ID to its index in the owner tokens list."
},
"ownerToIds": {
"details": "Mapping from owner to list of owned NFT IDs."
},
"tokens": {
"details": "Array of all NFT IDs."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"approve(address,uint256)": {
"notice": "The zero address indicates there is no approved address. Throws unless `msg.sender` is the current NFT owner, or an authorized operator of the current owner."
},
"getApproved(uint256)": {
"notice": "Throws if `_tokenId` is not a valid NFT."
},
"safeTransferFrom(address,address,uint256)": {
"notice": "This works identically to the other function with an extra data parameter, except this function just sets data to \"\""
},
"safeTransferFrom(address,address,uint256,bytes)": {
"notice": "Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT. When transfer is complete, this function checks if `_to` is a smart contract (code size > 0). If so, it calls `onERC721Received` on `_to` and throws if the return value is not `bytes4(keccak256(\"onERC721Received(address,uint256,bytes)\"))`."
},
"setApprovalForAll(address,bool)": {
"notice": "This works even if sender doesn't own any tokens at the time."
},
"transferFrom(address,address,uint256)": {
"notice": "The caller is responsible to confirm that `_to` is capable of receiving NFTs or else they may be permanently lost."
}
},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/1-nf-token-metadata.sol": "NFTokenEnumerable"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-address.sol": {
"keccak256": "0x97f6a04124fe48db2626e482e46c2ff690a177aeab6a0d60cf012e8ccedf4a2d",
"license": "MIT",
"urls": [
"bzz-raw://f170f84d1310a22270c5bd8785c64b3971a304f6920f61ccf58daf82ccfd0eea",
"dweb:/ipfs/QmeLfHAMQuKN429nC7QRJ5inXuFMLMvBiEKgEqzLX22WcU"
]
},
"contracts/0-erc721.sol": {
"keccak256": "0x3e9f93cfe735b96bfb8fa69c9a4fac4c91a7a97608e083f539e903e10e992437",
"license": "MIT",
"urls": [
"bzz-raw://04effbd1079d421b98504bfd114d55fe6dd1061acd63e4868bc393c32122fef0",
"dweb:/ipfs/Qmbem1vWx7c8aRUStUqhUCX1zbE9nqZCHd8QNzzv5dei12"
]
},
"contracts/1-nf-token-metadata.sol": {
"keccak256": "0x963390921aed6d5224c3b208e5caf72e6704fe3a023dae7d8a2843bdbe0fc619",
"license": "MIT",
"urls": [
"bzz-raw://d409ee7fc38bba0f2e6b454d0bc205fd6ec976595c0f6e95559efc140df23f5d",
"dweb:/ipfs/QmNyHEQpvxFpzkLAT9xrpq3KgyzgVLL5oKDcNz5JTyZ99N"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"methodIdentifiers": {
"approve(address,uint256)": "095ea7b3",
"balanceOf(address)": "70a08231",
"getApproved(uint256)": "081812fc",
"isApprovedForAll(address,address)": "e985e9c5",
"name()": "06fdde03",
"ownerOf(uint256)": "6352211e",
"safeTransferFrom(address,address,uint256)": "42842e0e",
"safeTransferFrom(address,address,uint256,bytes)": "b88d4fde",
"setApprovalForAll(address,bool)": "a22cb465",
"supportsInterface(bytes4)": "01ffc9a7",
"symbol()": "95d89b41",
"tokenByIndex(uint256)": "4f6ccce7",
"tokenOfOwnerByIndex(address,uint256)": "2f745c59",
"tokenURI(uint256)": "c87b56dd",
"totalSupply()": "18160ddd",
"transferFrom(address,address,uint256)": "23b872dd"
}
},
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "_name",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "_interfaceID",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "tokenByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "tokenOfOwnerByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "tokenURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "_name",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "_interfaceID",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "tokenByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "tokenOfOwnerByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "tokenURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"details": "Optional metadata implementation for ERC-721 non-fungible token standard.",
"kind": "dev",
"methods": {
"approve(address,uint256)": {
"details": "Set or reaffirm the approved address for an NFT. This function can be changed to payable.",
"params": {
"_approved": "Address to be approved for the given NFT ID.",
"_tokenId": "ID of the token to be approved."
}
},
"balanceOf(address)": {
"details": "Returns the number of NFTs owned by `_owner`. NFTs assigned to the zero address are considered invalid, and this function throws for queries about the zero address.",
"params": {
"_owner": "Address for whom to query the balance."
},
"returns": {
"_0": "Balance of _owner."
}
},
"constructor": {
"details": "Contract constructor."
},
"getApproved(uint256)": {
"details": "Get the approved address for a single NFT.",
"params": {
"_tokenId": "ID of the NFT to query the approval of."
},
"returns": {
"_0": "Address that _tokenId is approved for."
}
},
"isApprovedForAll(address,address)": {
"details": "Checks if `_operator` is an approved operator for `_owner`.",
"params": {
"_operator": "The address that acts on behalf of the owner.",
"_owner": "The address that owns the NFTs."
},
"returns": {
"_0": "True if approved for all, false otherwise."
}
},
"name()": {
"details": "Returns a descriptive name for a collection of NFTokens.",
"returns": {
"_name": "Representing name."
}
},
"ownerOf(uint256)": {
"details": "Returns the address of the owner of the NFT. NFTs assigned to the zero address are considered invalid, and queries about them do throw.",
"params": {
"_tokenId": "The identifier for an NFT."
},
"returns": {
"_owner": "Address of _tokenId owner."
}
},
"safeTransferFrom(address,address,uint256)": {
"details": "Transfers the ownership of an NFT from one address to another address. This function can be changed to payable.",
"params": {
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
},
"safeTransferFrom(address,address,uint256,bytes)": {
"details": "Transfers the ownership of an NFT from one address to another address. This function can be changed to payable.",
"params": {
"_data": "Additional data with no specified format, sent in call to `_to`.",
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
},
"setApprovalForAll(address,bool)": {
"details": "Enables or disables approval for a third party (\"operator\") to manage all of `msg.sender`'s assets. It also emits the ApprovalForAll event.",
"params": {
"_approved": "True if the operators is approved, false to revoke approval.",
"_operator": "Address to add to the set of authorized operators."
}
},
"supportsInterface(bytes4)": {
"details": "Function to check which interfaces are suported by this contract.",
"params": {
"_interfaceID": "Id of the interface."
},
"returns": {
"_0": "True if _interfaceID is supported, false otherwise."
}
},
"symbol()": {
"details": "Returns an abbreviated name for NFTokens.",
"returns": {
"_symbol": "Representing symbol."
}
},
"tokenByIndex(uint256)": {
"details": "Returns NFT ID by its index.",
"params": {
"_index": "A counter less than `totalSupply()`."
},
"returns": {
"_0": "Token id."
}
},
"tokenOfOwnerByIndex(address,uint256)": {
"details": "returns the n-th NFT ID from a list of owner's tokens.",
"params": {
"_index": "Index number representing n-th token in owner's list of tokens.",
"_owner": "Token owner's address."
},
"returns": {
"_0": "Token id."
}
},
"tokenURI(uint256)": {
"details": "Returns a distinct Uniform Resource Identifier (URI) for a given asset. It Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC3986. The URI may point to a JSON file that conforms to the \"ERC721 Metadata JSON Schema\".",
"returns": {
"_0": "URI of _tokenId."
}
},
"totalSupply()": {
"details": "Returns the count of all existing NFTokens.",
"returns": {
"_0": "Total supply of NFTs."
}
},
"transferFrom(address,address,uint256)": {
"details": "Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT. This function can be changed to payable.",
"params": {
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
}
},
"stateVariables": {
"nftName": {
"details": "A descriptive name for a collection of NFTs."
},
"nftSymbol": {
"details": "An abbreviated name for NFTokens."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"approve(address,uint256)": {
"notice": "The zero address indicates there is no approved address. Throws unless `msg.sender` is the current NFT owner, or an authorized operator of the current owner."
},
"constructor": {
"notice": "When implementing this contract don't forget to set nftName and nftSymbol."
},
"getApproved(uint256)": {
"notice": "Throws if `_tokenId` is not a valid NFT."
},
"safeTransferFrom(address,address,uint256)": {
"notice": "This works identically to the other function with an extra data parameter, except this function just sets data to \"\""
},
"safeTransferFrom(address,address,uint256,bytes)": {
"notice": "Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT. When transfer is complete, this function checks if `_to` is a smart contract (code size > 0). If so, it calls `onERC721Received` on `_to` and throws if the return value is not `bytes4(keccak256(\"onERC721Received(address,uint256,bytes)\"))`."
},
"setApprovalForAll(address,bool)": {
"notice": "This works even if sender doesn't own any tokens at the time."
},
"transferFrom(address,address,uint256)": {
"notice": "The caller is responsible to confirm that `_to` is capable of receiving NFTs or else they may be permanently lost."
}
},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/1-nf-token-metadata.sol": "NFTokenMetadata"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-address.sol": {
"keccak256": "0x97f6a04124fe48db2626e482e46c2ff690a177aeab6a0d60cf012e8ccedf4a2d",
"license": "MIT",
"urls": [
"bzz-raw://f170f84d1310a22270c5bd8785c64b3971a304f6920f61ccf58daf82ccfd0eea",
"dweb:/ipfs/QmeLfHAMQuKN429nC7QRJ5inXuFMLMvBiEKgEqzLX22WcU"
]
},
"contracts/0-erc721.sol": {
"keccak256": "0x3e9f93cfe735b96bfb8fa69c9a4fac4c91a7a97608e083f539e903e10e992437",
"license": "MIT",
"urls": [
"bzz-raw://04effbd1079d421b98504bfd114d55fe6dd1061acd63e4868bc393c32122fef0",
"dweb:/ipfs/Qmbem1vWx7c8aRUStUqhUCX1zbE9nqZCHd8QNzzv5dei12"
]
},
"contracts/1-nf-token-metadata.sol": {
"keccak256": "0x963390921aed6d5224c3b208e5caf72e6704fe3a023dae7d8a2843bdbe0fc619",
"license": "MIT",
"urls": [
"bzz-raw://d409ee7fc38bba0f2e6b454d0bc205fd6ec976595c0f6e95559efc140df23f5d",
"dweb:/ipfs/QmNyHEQpvxFpzkLAT9xrpq3KgyzgVLL5oKDcNz5JTyZ99N"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "608060405234801561001057600080fd5b50600080546001600160a01b031916331790556102b2806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063860d248a146100515780638da5cb5b1461006f578063f2fde38b14610084578063f3fe3bc314610099575b600080fd5b6100596100a1565b6040516100669190610229565b60405180910390f35b6100776100c3565b6040516100669190610215565b6100976100923660046101e7565b6100d2565b005b6100596101c5565b6040518060400160405280600681526020016518189c18181960d11b81525081565b6000546001600160a01b031681565b60005460408051808201909152600681526530313830303160d01b6020820152906001600160a01b031633146101245760405162461bcd60e51b815260040161011b9190610229565b60405180910390fd5b5060408051808201909152600681526518189c18181960d11b60208201526001600160a01b0382166101695760405162461bcd60e51b815260040161011b9190610229565b50600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6040518060400160405280600681526020016530313830303160d01b81525081565b6000602082840312156101f8578081fd5b81356001600160a01b038116811461020e578182fd5b9392505050565b6001600160a01b0391909116815260200190565b6000602080835283518082850152825b8181101561025557858101830151858201604001528201610239565b818111156102665783604083870101525b50601f01601f191692909201604001939250505056fea2646970667358221220a0cb0f9326ff421c8a7951fbd92f503c2fc48908e395fbfd8bf7b9504754586a64736f6c63430008000033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND CALLER OR SWAP1 SSTORE PUSH2 0x2B2 DUP1 PUSH2 0x32 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x4C JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x860D248A EQ PUSH2 0x51 JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x6F JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x84 JUMPI DUP1 PUSH4 0xF3FE3BC3 EQ PUSH2 0x99 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x59 PUSH2 0xA1 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x66 SWAP2 SWAP1 PUSH2 0x229 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x77 PUSH2 0xC3 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x66 SWAP2 SWAP1 PUSH2 0x215 JUMP JUMPDEST PUSH2 0x97 PUSH2 0x92 CALLDATASIZE PUSH1 0x4 PUSH2 0x1E7 JUMP JUMPDEST PUSH2 0xD2 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x59 PUSH2 0x1C5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0x18189C181819 PUSH1 0xD1 SHL DUP2 MSTORE POP DUP2 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303138303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x124 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x11B SWAP2 SWAP1 PUSH2 0x229 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x18189C181819 PUSH1 0xD1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x169 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x11B SWAP2 SWAP1 PUSH2 0x229 JUMP JUMPDEST POP PUSH1 0x0 DUP1 SLOAD PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP6 AND SWAP4 SWAP3 AND SWAP2 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP2 LOG3 PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0x303138303031 PUSH1 0xD0 SHL DUP2 MSTORE POP DUP2 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1F8 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x20E JUMPI DUP2 DUP3 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP1 DUP4 MSTORE DUP4 MLOAD DUP1 DUP3 DUP6 ADD MSTORE DUP3 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x255 JUMPI DUP6 DUP2 ADD DUP4 ADD MLOAD DUP6 DUP3 ADD PUSH1 0x40 ADD MSTORE DUP3 ADD PUSH2 0x239 JUMP JUMPDEST DUP2 DUP2 GT ISZERO PUSH2 0x266 JUMPI DUP4 PUSH1 0x40 DUP4 DUP8 ADD ADD MSTORE JUMPDEST POP PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP3 SWAP1 SWAP3 ADD PUSH1 0x40 ADD SWAP4 SWAP3 POP POP POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 LOG0 0xCB 0xF SWAP4 0x26 SELFDESTRUCT TIMESTAMP SHR DUP11 PUSH26 0x51FBD92F503C2FC48908E395FBFD8BF7B9504754586A64736F6C PUSH4 0x43000800 STOP CALLER ",
"sourceMap": "383:1278:1:-:0;;;1042:45;;;;;;;;;-1:-1:-1;1064:5:1;:18;;-1:-1:-1;;;;;;1064:18:1;1072:10;1064:18;;;383:1278;;;;;;"
},
"deployedBytecode": {
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:1138:2",
"statements": [
{
"nodeType": "YulBlock",
"src": "6:3:2",
"statements": []
},
{
"body": {
"nodeType": "YulBlock",
"src": "84:236:2",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "130:26:2",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "139:6:2"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "147:6:2"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "132:6:2"
},
"nodeType": "YulFunctionCall",
"src": "132:22:2"
},
"nodeType": "YulExpressionStatement",
"src": "132:22:2"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "105:7:2"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "114:9:2"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "101:3:2"
},
"nodeType": "YulFunctionCall",
"src": "101:23:2"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "126:2:2",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "97:3:2"
},
"nodeType": "YulFunctionCall",
"src": "97:32:2"
},
"nodeType": "YulIf",
"src": "94:2:2"
},
{
"nodeType": "YulVariableDeclaration",
"src": "165:36:2",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "191:9:2"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "178:12:2"
},
"nodeType": "YulFunctionCall",
"src": "178:23:2"
},
"variables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "169:5:2",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "264:26:2",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "273:6:2"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "281:6:2"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "266:6:2"
},
"nodeType": "YulFunctionCall",
"src": "266:22:2"
},
"nodeType": "YulExpressionStatement",
"src": "266:22:2"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "223:5:2"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "234:5:2"
},
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "249:3:2",
"type": "",
"value": "160"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "254:1:2",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "245:3:2"
},
"nodeType": "YulFunctionCall",
"src": "245:11:2"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "258:1:2",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "241:3:2"
},
"nodeType": "YulFunctionCall",
"src": "241:19:2"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "230:3:2"
},
"nodeType": "YulFunctionCall",
"src": "230:31:2"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "220:2:2"
},
"nodeType": "YulFunctionCall",
"src": "220:42:2"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "213:6:2"
},
"nodeType": "YulFunctionCall",
"src": "213:50:2"
},
"nodeType": "YulIf",
"src": "210:2:2"
},
{
"nodeType": "YulAssignment",
"src": "299:15:2",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "309:5:2"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "299:6:2"
}
]
}
]
},
"name": "abi_decode_tuple_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "50:9:2",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "61:7:2",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "73:6:2",
"type": ""
}
],
"src": "14:306:2"
},
{
"body": {
"nodeType": "YulBlock",
"src": "426:102:2",
"statements": [
{
"nodeType": "YulAssignment",
"src": "436:26:2",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "448:9:2"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "459:2:2",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "444:3:2"
},
"nodeType": "YulFunctionCall",
"src": "444:18:2"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "436:4:2"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "478:9:2"
},
{
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "493:6:2"
},
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "509:3:2",
"type": "",
"value": "160"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "514:1:2",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "505:3:2"
},
"nodeType": "YulFunctionCall",
"src": "505:11:2"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "518:1:2",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "501:3:2"
},
"nodeType": "YulFunctionCall",
"src": "501:19:2"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "489:3:2"
},
"nodeType": "YulFunctionCall",
"src": "489:32:2"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "471:6:2"
},
"nodeType": "YulFunctionCall",
"src": "471:51:2"
},
"nodeType": "YulExpressionStatement",
"src": "471:51:2"
}
]
},
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "395:9:2",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "406:6:2",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "417:4:2",
"type": ""
}
],
"src": "325:203:2"
},
{
"body": {
"nodeType": "YulBlock",
"src": "654:482:2",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "664:12:2",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "674:2:2",
"type": "",
"value": "32"
},
"variables": [
{
"name": "_1",
"nodeType": "YulTypedName",
"src": "668:2:2",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "692:9:2"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "703:2:2"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "685:6:2"
},
"nodeType": "YulFunctionCall",
"src": "685:21:2"
},
"nodeType": "YulExpressionStatement",
"src": "685:21:2"
},
{
"nodeType": "YulVariableDeclaration",
"src": "715:27:2",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "735:6:2"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "729:5:2"
},
"nodeType": "YulFunctionCall",
"src": "729:13:2"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "719:6:2",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "762:9:2"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "773:2:2"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "758:3:2"
},
"nodeType": "YulFunctionCall",
"src": "758:18:2"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "778:6:2"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "751:6:2"
},
"nodeType": "YulFunctionCall",
"src": "751:34:2"
},
"nodeType": "YulExpressionStatement",
"src": "751:34:2"
},
{
"nodeType": "YulVariableDeclaration",
"src": "794:13:2",
"value": {
"name": "tail",
"nodeType": "YulIdentifier",
"src": "803:4:2"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "798:1:2",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "866:90:2",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "895:9:2"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "906:1:2"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "891:3:2"
},
"nodeType": "YulFunctionCall",
"src": "891:17:2"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "910:2:2",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "887:3:2"
},
"nodeType": "YulFunctionCall",
"src": "887:26:2"
},
{
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "929:6:2"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "937:1:2"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "925:3:2"
},
"nodeType": "YulFunctionCall",
"src": "925:14:2"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "941:2:2"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "921:3:2"
},
"nodeType": "YulFunctionCall",
"src": "921:23:2"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "915:5:2"
},
"nodeType": "YulFunctionCall",
"src": "915:30:2"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "880:6:2"
},
"nodeType": "YulFunctionCall",
"src": "880:66:2"
},
"nodeType": "YulExpressionStatement",
"src": "880:66:2"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "827:1:2"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "830:6:2"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "824:2:2"
},
"nodeType": "YulFunctionCall",
"src": "824:13:2"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "838:19:2",
"statements": [
{
"nodeType": "YulAssignment",
"src": "840:15:2",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "849:1:2"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "852:2:2"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "845:3:2"
},
"nodeType": "YulFunctionCall",
"src": "845:10:2"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "840:1:2"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "820:3:2",
"statements": []
},
"src": "816:140:2"
},
{
"body": {
"nodeType": "YulBlock",
"src": "990:69:2",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1019:9:2"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1030:6:2"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1015:3:2"
},
"nodeType": "YulFunctionCall",
"src": "1015:22:2"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1039:2:2",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1011:3:2"
},
"nodeType": "YulFunctionCall",
"src": "1011:31:2"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1044:4:2"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1004:6:2"
},
"nodeType": "YulFunctionCall",
"src": "1004:45:2"
},
"nodeType": "YulExpressionStatement",
"src": "1004:45:2"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "971:1:2"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "974:6:2"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "968:2:2"
},
"nodeType": "YulFunctionCall",
"src": "968:13:2"
},
"nodeType": "YulIf",
"src": "965:2:2"
},
{
"nodeType": "YulAssignment",
"src": "1068:62:2",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1084:9:2"
},
{
"arguments": [
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1103:6:2"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1111:2:2",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1099:3:2"
},
"nodeType": "YulFunctionCall",
"src": "1099:15:2"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1120:2:2",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "1116:3:2"
},
"nodeType": "YulFunctionCall",
"src": "1116:7:2"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "1095:3:2"
},
"nodeType": "YulFunctionCall",
"src": "1095:29:2"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1080:3:2"
},
"nodeType": "YulFunctionCall",
"src": "1080:45:2"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1127:2:2",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1076:3:2"
},
"nodeType": "YulFunctionCall",
"src": "1076:54:2"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1068:4:2"
}
]
}
]
},
"name": "abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "623:9:2",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "634:6:2",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "645:4:2",
"type": ""
}
],
"src": "533:603:2"
}
]
},
"contents": "{\n { }\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(value0, value0) }\n let value := calldataload(headStart)\n if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(value0, value0) }\n value0 := value\n }\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n }\n function abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed(headStart, value0) -> tail\n {\n let _1 := 32\n mstore(headStart, _1)\n let length := mload(value0)\n mstore(add(headStart, _1), length)\n let i := tail\n for { } lt(i, length) { i := add(i, _1) }\n {\n mstore(add(add(headStart, i), 64), mload(add(add(value0, i), _1)))\n }\n if gt(i, length)\n {\n mstore(add(add(headStart, length), 64), tail)\n }\n tail := add(add(headStart, and(add(length, 31), not(31))), 64)\n }\n}",
"id": 2,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506004361061004c5760003560e01c8063860d248a146100515780638da5cb5b1461006f578063f2fde38b14610084578063f3fe3bc314610099575b600080fd5b6100596100a1565b6040516100669190610229565b60405180910390f35b6100776100c3565b6040516100669190610215565b6100976100923660046101e7565b6100d2565b005b6100596101c5565b6040518060400160405280600681526020016518189c18181960d11b81525081565b6000546001600160a01b031681565b60005460408051808201909152600681526530313830303160d01b6020820152906001600160a01b031633146101245760405162461bcd60e51b815260040161011b9190610229565b60405180910390fd5b5060408051808201909152600681526518189c18181960d11b60208201526001600160a01b0382166101695760405162461bcd60e51b815260040161011b9190610229565b50600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6040518060400160405280600681526020016530313830303160d01b81525081565b6000602082840312156101f8578081fd5b81356001600160a01b038116811461020e578182fd5b9392505050565b6001600160a01b0391909116815260200190565b6000602080835283518082850152825b8181101561025557858101830151858201604001528201610239565b818111156102665783604083870101525b50601f01601f191692909201604001939250505056fea2646970667358221220a0cb0f9326ff421c8a7951fbd92f503c2fc48908e395fbfd8bf7b9504754586a64736f6c63430008000033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x4C JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x860D248A EQ PUSH2 0x51 JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x6F JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x84 JUMPI DUP1 PUSH4 0xF3FE3BC3 EQ PUSH2 0x99 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x59 PUSH2 0xA1 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x66 SWAP2 SWAP1 PUSH2 0x229 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x77 PUSH2 0xC3 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x66 SWAP2 SWAP1 PUSH2 0x215 JUMP JUMPDEST PUSH2 0x97 PUSH2 0x92 CALLDATASIZE PUSH1 0x4 PUSH2 0x1E7 JUMP JUMPDEST PUSH2 0xD2 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x59 PUSH2 0x1C5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0x18189C181819 PUSH1 0xD1 SHL DUP2 MSTORE POP DUP2 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303138303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x124 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x11B SWAP2 SWAP1 PUSH2 0x229 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x18189C181819 PUSH1 0xD1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x169 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x11B SWAP2 SWAP1 PUSH2 0x229 JUMP JUMPDEST POP PUSH1 0x0 DUP1 SLOAD PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP6 AND SWAP4 SWAP3 AND SWAP2 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP2 LOG3 PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0x303138303031 PUSH1 0xD0 SHL DUP2 MSTORE POP DUP2 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1F8 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x20E JUMPI DUP2 DUP3 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP1 DUP4 MSTORE DUP4 MLOAD DUP1 DUP3 DUP6 ADD MSTORE DUP3 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x255 JUMPI DUP6 DUP2 ADD DUP4 ADD MLOAD DUP6 DUP3 ADD PUSH1 0x40 ADD MSTORE DUP3 ADD PUSH2 0x239 JUMP JUMPDEST DUP2 DUP2 GT ISZERO PUSH2 0x266 JUMPI DUP4 PUSH1 0x40 DUP4 DUP8 ADD ADD MSTORE JUMPDEST POP PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP3 SWAP1 SWAP3 ADD PUSH1 0x40 ADD SWAP4 SWAP3 POP POP POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 LOG0 0xCB 0xF SWAP4 0x26 SELFDESTRUCT TIMESTAMP SHR DUP11 PUSH26 0x51FBD92F503C2FC48908E395FBFD8BF7B9504754586A64736F6C PUSH4 0x43000800 STOP CALLER ",
"sourceMap": "383:1278:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;510:65;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;625:20;;;:::i;:::-;;;;;;;:::i;1417:241::-;;;;;;:::i;:::-;;:::i;:::-;;455:51;;;:::i;510:65::-;;;;;;;;;;;;;;-1:-1:-1;;;510:65:1;;;;:::o;625:20::-;;;-1:-1:-1;;;;;625:20:1;;:::o;1417:241::-;1218:5;;1225:17;;;;;;;;;;;;-1:-1:-1;;;1225:17:1;;;;;-1:-1:-1;;;;;1218:5:1;1204:10;:19;1196:47;;;;-1:-1:-1;;;1196:47:1;;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;1549:31:1::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;1549:31:1::1;::::0;::::1;::::0;-1:-1:-1;;;;;1524:23:1;::::1;1516:65;;;;-1:-1:-1::0;;;1516:65:1::1;;;;;;;;:::i;:::-;-1:-1:-1::0;1613:5:1::1;::::0;;1592:38:::1;::::0;-1:-1:-1;;;;;1592:38:1;;::::1;::::0;1613:5;::::1;::::0;1592:38:::1;::::0;::::1;1636:5;:17:::0;;-1:-1:-1;;;;;;1636:17:1::1;-1:-1:-1::0;;;;;1636:17:1;;;::::1;::::0;;;::::1;::::0;;1417:241::o;455:51::-;;;;;;;;;;;;;;-1:-1:-1;;;455:51:1;;;;:::o;14:306:2:-;;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;178:23;;-1:-1:-1;;;;;230:31:2;;220:42;;210:2;;281:6;273;266:22;210:2;309:5;84:236;-1:-1:-1;;;84:236:2:o;325:203::-;-1:-1:-1;;;;;489:32:2;;;;471:51;;459:2;444:18;;426:102::o;533:603::-;;674:2;703;692:9;685:21;735:6;729:13;778:6;773:2;762:9;758:18;751:34;803:4;816:140;830:6;827:1;824:13;816:140;;;925:14;;;921:23;;915:30;891:17;;;910:2;887:26;880:66;845:10;;816:140;;;974:6;971:1;968:13;965:2;;;1044:4;1039:2;1030:6;1019:9;1015:22;1011:31;1004:45;965:2;-1:-1:-1;1120:2:2;1099:15;-1:-1:-1;;1095:29:2;1080:45;;;;1127:2;1076:54;;654:482;-1:-1:-1;;;654:482:2:o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "138000",
"executionCost": "21018",
"totalCost": "159018"
},
"external": {
"CANNOT_TRANSFER_TO_ZERO_ADDRESS()": "infinite",
"NOT_CURRENT_OWNER()": "infinite",
"owner()": "1070",
"transferOwnership(address)": "infinite"
}
},
"methodIdentifiers": {
"CANNOT_TRANSFER_TO_ZERO_ADDRESS()": "860d248a",
"NOT_CURRENT_OWNER()": "f3fe3bc3",
"owner()": "8da5cb5b",
"transferOwnership(address)": "f2fde38b"
}
},
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "CANNOT_TRANSFER_TO_ZERO_ADDRESS",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "NOT_CURRENT_OWNER",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "CANNOT_TRANSFER_TO_ZERO_ADDRESS",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "NOT_CURRENT_OWNER",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"details": "The contract has an owner address, and provides basic authorization control whitch simplifies the implementation of user permissions. This contract is based on the source code at: https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/ownership/Ownable.sol",
"events": {
"OwnershipTransferred(address,address)": {
"details": "An event which is triggered when the owner is changed.",
"params": {
"newOwner": "The address of the new owner.",
"previousOwner": "The address of the previous owner."
}
}
},
"kind": "dev",
"methods": {
"constructor": {
"details": "The constructor sets the original `owner` of the contract to the sender account."
},
"transferOwnership(address)": {
"details": "Allows the current owner to transfer control of the contract to a newOwner.",
"params": {
"_newOwner": "The address to transfer ownership to."
}
}
},
"stateVariables": {
"NOT_CURRENT_OWNER": {
"details": "Error constants."
},
"owner": {
"details": "Current owner address."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/0-ownable.sol": "Ownable"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-context.sol": {
"keccak256": "0xa4eecf6a3c5cc74800fdd2ef1c81bf2cf3888d4e26909bf4dd2ade2da7b47894",
"license": "MIT",
"urls": [
"bzz-raw://5d793af57202a7bd84c39d2c62aa7fd0b013f98ace8f805e36feb3b52680f32e",
"dweb:/ipfs/QmTibEvGdmbJCQMpafgWit4VijTEeeDqwbiE6QhubJD2cK"
]
},
"contracts/0-ownable.sol": {
"keccak256": "0xa346d72b251c30370f443aa3e2e6bf337e3b4d6c373480cf29b2ddc513341f45",
"license": "MIT",
"urls": [
"bzz-raw://d08aa8ee19b94ec88b9c7dcc6d47e82cdb5d372cbdafba2d94b9112521ea0412",
"dweb:/ipfs/Qma7BX64Y4URhBE8EX7A3frWgbBVxEVySo8X4jxWRAxaVP"
]
}
},
"version": 1
}
// this line is added to create a gist. Empty file is not allowed.
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "_erc20Token",
"type": "address"
},
{
"internalType": "address",
"name": "randomizerAddress",
"type": "address"
},
{
"internalType": "address",
"name": "tokenURIHelperAddress",
"type": "address"
},
{
"internalType": "contract PrizeControl",
"name": "_prizeControl",
"type": "address"
},
{
"internalType": "address",
"name": "_dev",
"type": "address"
},
{
"internalType": "address",
"name": "_adventure",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "quantity",
"type": "uint256"
}
],
"name": "Buy",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "receiver",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "quantity",
"type": "uint256"
}
],
"name": "PayPrize",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Sell",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256[]",
"name": "inputTokenIds",
"type": "uint256[]"
},
{
"indexed": false,
"internalType": "uint256[]",
"name": "outputTokenIds",
"type": "uint256[]"
},
{
"indexed": false,
"internalType": "enum Types.UpgradeResult",
"name": "upgradeResult",
"type": "uint8"
},
{
"indexed": false,
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "Upgrade",
"type": "event"
},
{
"inputs": [],
"name": "CANNOT_TRANSFER_TO_ZERO_ADDRESS",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "DEV_COMMISSION",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "NOT_CURRENT_OWNER",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "PET_PRICES",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "PET_PRICES_FOR_SELLERS",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "hp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "st",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ag",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "it",
"type": "uint256"
},
{
"internalType": "enum Types.PetClass",
"name": "cl",
"type": "uint8"
}
],
"name": "_testMint",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_approved",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "quantity",
"type": "uint256"
}
],
"name": "buy",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "createdTokenCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "deposit",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "hp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "st",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ag",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "it",
"type": "uint256"
},
{
"internalType": "enum Types.PetClass",
"name": "cl",
"type": "uint8"
}
],
"internalType": "struct Types.Pet[]",
"name": "allPets",
"type": "tuple[]"
}
],
"name": "ensureAllTokensBelongToSender",
"outputs": [],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "tokenIds",
"type": "uint256[]"
}
],
"name": "ensureTokenIdsInAscendingOrder",
"outputs": [],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint256",
"name": "limit",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "offset",
"type": "uint256"
}
],
"name": "getPetsByAccount",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "hp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "st",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ag",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "it",
"type": "uint256"
},
{
"internalType": "enum Types.PetClass",
"name": "cl",
"type": "uint8"
}
],
"internalType": "struct Types.Pet[]",
"name": "result",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "tokenIds",
"type": "uint256[]"
}
],
"name": "getPetsByIds",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "hp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "st",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ag",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "it",
"type": "uint256"
},
{
"internalType": "enum Types.PetClass",
"name": "cl",
"type": "uint8"
}
],
"internalType": "struct Types.Pet[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "tokenIds",
"type": "uint256[]"
}
],
"name": "getPosibility",
"outputs": [
{
"internalType": "uint256[4]",
"name": "",
"type": "uint256[4]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "address",
"name": "_operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "_name",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "pets",
"outputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "hp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "st",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ag",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "it",
"type": "uint256"
},
{
"internalType": "enum Types.PetClass",
"name": "cl",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "sell",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_adventure",
"type": "address"
}
],
"name": "setAdventure",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "bool",
"name": "_approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[19]",
"name": "newPrices",
"type": "uint256[19]"
}
],
"name": "setPetPricesForBuyer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[19]",
"name": "newPrices",
"type": "uint256[19]"
}
],
"name": "setPetPricesForSeller",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract PrizeControl",
"name": "_prizeControl",
"type": "address"
}
],
"name": "setPrizeControl",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IRandomizer",
"name": "_randomizer",
"type": "address"
}
],
"name": "setRandomizer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract TokenURIHelper",
"name": "_tokenURIHelper",
"type": "address"
}
],
"name": "setTokenURIHelper",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "_interfaceID",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "_symbol",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "tokenByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "_index",
"type": "uint256"
}
],
"name": "tokenOfOwnerByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "tokenURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "tokenIds",
"type": "uint256[]"
}
],
"name": "upgrade",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "withdrawMatic",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "contract IERC20",
"name": "erc20",
"type": "address"
}
],
"name": "withdrawToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {
"approve(address,uint256)": {
"details": "Set or reaffirm the approved address for an NFT. This function can be changed to payable.",
"params": {
"_approved": "Address to be approved for the given NFT ID.",
"_tokenId": "ID of the token to be approved."
}
},
"balanceOf(address)": {
"details": "Returns the number of NFTs owned by `_owner`. NFTs assigned to the zero address are considered invalid, and this function throws for queries about the zero address.",
"params": {
"_owner": "Address for whom to query the balance."
},
"returns": {
"_0": "Balance of _owner."
}
},
"getApproved(uint256)": {
"details": "Get the approved address for a single NFT.",
"params": {
"_tokenId": "ID of the NFT to query the approval of."
},
"returns": {
"_0": "Address that _tokenId is approved for."
}
},
"isApprovedForAll(address,address)": {
"details": "Checks if `_operator` is an approved operator for `_owner`.",
"params": {
"_operator": "The address that acts on behalf of the owner.",
"_owner": "The address that owns the NFTs."
},
"returns": {
"_0": "True if approved for all, false otherwise."
}
},
"name()": {
"details": "Returns a descriptive name for a collection of NFTokens.",
"returns": {
"_name": "Representing name."
}
},
"ownerOf(uint256)": {
"details": "Returns the address of the owner of the NFT. NFTs assigned to the zero address are considered invalid, and queries about them do throw.",
"params": {
"_tokenId": "The identifier for an NFT."
},
"returns": {
"_owner": "Address of _tokenId owner."
}
},
"safeTransferFrom(address,address,uint256)": {
"details": "Transfers the ownership of an NFT from one address to another address. This function can be changed to payable.",
"params": {
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
},
"safeTransferFrom(address,address,uint256,bytes)": {
"details": "Transfers the ownership of an NFT from one address to another address. This function can be changed to payable.",
"params": {
"_data": "Additional data with no specified format, sent in call to `_to`.",
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
},
"setApprovalForAll(address,bool)": {
"details": "Enables or disables approval for a third party (\"operator\") to manage all of `msg.sender`'s assets. It also emits the ApprovalForAll event.",
"params": {
"_approved": "True if the operators is approved, false to revoke approval.",
"_operator": "Address to add to the set of authorized operators."
}
},
"supportsInterface(bytes4)": {
"details": "Function to check which interfaces are suported by this contract.",
"params": {
"_interfaceID": "Id of the interface."
},
"returns": {
"_0": "True if _interfaceID is supported, false otherwise."
}
},
"symbol()": {
"details": "Returns an abbreviated name for NFTokens.",
"returns": {
"_symbol": "Representing symbol."
}
},
"tokenByIndex(uint256)": {
"details": "Returns NFT ID by its index.",
"params": {
"_index": "A counter less than `totalSupply()`."
},
"returns": {
"_0": "Token id."
}
},
"tokenOfOwnerByIndex(address,uint256)": {
"details": "returns the n-th NFT ID from a list of owner's tokens.",
"params": {
"_index": "Index number representing n-th token in owner's list of tokens.",
"_owner": "Token owner's address."
},
"returns": {
"_0": "Token id."
}
},
"tokenURI(uint256)": {
"details": "Returns a distinct Uniform Resource Identifier (URI) for a given asset. It Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC3986. The URI may point to a JSON file that conforms to the \"ERC721 Metadata JSON Schema\".",
"returns": {
"_0": "URI of _tokenId."
}
},
"totalSupply()": {
"details": "Returns the count of all existing NFTokens.",
"returns": {
"_0": "Total supply of NFTs."
}
},
"transferFrom(address,address,uint256)": {
"details": "Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT. This function can be changed to payable.",
"params": {
"_from": "The current owner of the NFT.",
"_to": "The new owner.",
"_tokenId": "The NFT to transfer."
}
},
"transferOwnership(address)": {
"details": "Allows the current owner to transfer control of the contract to a newOwner.",
"params": {
"_newOwner": "The address to transfer ownership to."
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"approve(address,uint256)": {
"notice": "The zero address indicates there is no approved address. Throws unless `msg.sender` is the current NFT owner, or an authorized operator of the current owner."
},
"getApproved(uint256)": {
"notice": "Throws if `_tokenId` is not a valid NFT."
},
"safeTransferFrom(address,address,uint256)": {
"notice": "This works identically to the other function with an extra data parameter, except this function just sets data to \"\""
},
"safeTransferFrom(address,address,uint256,bytes)": {
"notice": "Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT. When transfer is complete, this function checks if `_to` is a smart contract (code size > 0). If so, it calls `onERC721Received` on `_to` and throws if the return value is not `bytes4(keccak256(\"onERC721Received(address,uint256,bytes)\"))`."
},
"setApprovalForAll(address,bool)": {
"notice": "This works even if sender doesn't own any tokens at the time."
},
"transferFrom(address,address,uint256)": {
"notice": "The caller is responsible to confirm that `_to` is capable of receiving NFTs or else they may be permanently lost."
}
},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/1-pet-nft.sol": "PetNFT"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-address.sol": {
"keccak256": "0x97f6a04124fe48db2626e482e46c2ff690a177aeab6a0d60cf012e8ccedf4a2d",
"license": "MIT",
"urls": [
"bzz-raw://f170f84d1310a22270c5bd8785c64b3971a304f6920f61ccf58daf82ccfd0eea",
"dweb:/ipfs/QmeLfHAMQuKN429nC7QRJ5inXuFMLMvBiEKgEqzLX22WcU"
]
},
"contracts/0-context.sol": {
"keccak256": "0xa4eecf6a3c5cc74800fdd2ef1c81bf2cf3888d4e26909bf4dd2ade2da7b47894",
"license": "MIT",
"urls": [
"bzz-raw://5d793af57202a7bd84c39d2c62aa7fd0b013f98ace8f805e36feb3b52680f32e",
"dweb:/ipfs/QmTibEvGdmbJCQMpafgWit4VijTEeeDqwbiE6QhubJD2cK"
]
},
"contracts/0-erc721.sol": {
"keccak256": "0x3e9f93cfe735b96bfb8fa69c9a4fac4c91a7a97608e083f539e903e10e992437",
"license": "MIT",
"urls": [
"bzz-raw://04effbd1079d421b98504bfd114d55fe6dd1061acd63e4868bc393c32122fef0",
"dweb:/ipfs/Qmbem1vWx7c8aRUStUqhUCX1zbE9nqZCHd8QNzzv5dei12"
]
},
"contracts/0-ierc20.sol": {
"keccak256": "0xa8547ef7a4aabd9c15930d0caaedaf02826ec2345fa5015ba134b4087fd3eb06",
"license": "MIT",
"urls": [
"bzz-raw://ed005dc99628ad306463c7e1909c127fbedcb67ac3035c6ab6c69a438564665c",
"dweb:/ipfs/QmXWTqBYXuNoKq5NgKQE9CzUzBG39a84qTvYTkSMxLZV3f"
]
},
"contracts/0-ownable.sol": {
"keccak256": "0xa346d72b251c30370f443aa3e2e6bf337e3b4d6c373480cf29b2ddc513341f45",
"license": "MIT",
"urls": [
"bzz-raw://d08aa8ee19b94ec88b9c7dcc6d47e82cdb5d372cbdafba2d94b9112521ea0412",
"dweb:/ipfs/Qma7BX64Y4URhBE8EX7A3frWgbBVxEVySo8X4jxWRAxaVP"
]
},
"contracts/1-nf-token-metadata.sol": {
"keccak256": "0x963390921aed6d5224c3b208e5caf72e6704fe3a023dae7d8a2843bdbe0fc619",
"license": "MIT",
"urls": [
"bzz-raw://d409ee7fc38bba0f2e6b454d0bc205fd6ec976595c0f6e95559efc140df23f5d",
"dweb:/ipfs/QmNyHEQpvxFpzkLAT9xrpq3KgyzgVLL5oKDcNz5JTyZ99N"
]
},
"contracts/1-pet-nft.sol": {
"keccak256": "0x0bc9614c6f8ebef2199b67c86cb8e31f692756385dbd2639e33dc9e8faee9a80",
"license": "MIT",
"urls": [
"bzz-raw://31d8a815a95f6c8ff71c634f38814fc5ca0fd6e3bb62615b9fbdd43ee9782ad9",
"dweb:/ipfs/QmcTKQ5Bypmn48ssn5gAgXPL2Xy5Mfg9eTDr3HYmS25TC9"
]
},
"contracts/2-prize-control.sol": {
"keccak256": "0x1d798c6cfebc40caafc0c4c9c3661cac51d196b03f61d78b75ddda315ecbb862",
"license": "MIT",
"urls": [
"bzz-raw://2c9cfbd61c97d07488ba333fa63ced7f5a33e236a4108b80a0f21bf0a867eacd",
"dweb:/ipfs/QmVDqqMimMpBH6cWcAZPTSEtnWqHQ454nKGYLRokdCD29R"
]
},
"contracts/5-irandomizer.sol": {
"keccak256": "0xd766193b0506555319b1273a9af271be47a96614a9cd7d846e8ec9eeff68ae8f",
"license": "MIT",
"urls": [
"bzz-raw://94de7e04e1ef0b9add2abdb9f59a7c8b23ee8ef2ea3e40a81d1d0d7bec72776e",
"dweb:/ipfs/QmQCs9Di636EAgKXrtvRLBELTgRURn9mjcLkK1KXw8Z2sv"
]
},
"contracts/5-types.sol": {
"keccak256": "0xa9cf7d04a9b789c87fe72c24f4389d7a573cff0fc431151923353905b9db1d01",
"license": "MIT",
"urls": [
"bzz-raw://1d98bbe77e162465cbe550d11bede9a7f4ae1d2e253336e5a1abf8fec1e7f5f6",
"dweb:/ipfs/QmUw2yiAEwuoJvj2hzK3QqLFtPzssWVDujNw3X4MiY8SBH"
]
},
"contracts/6-token-uri-helper.sol": {
"keccak256": "0x62da25f069fc1f268a9e37c5b22b5ae8b2fcbad54849444aa8b902d709c9665c",
"license": "MIT",
"urls": [
"bzz-raw://2bfcd13a003cac158b21ef48e04b7311583e4b1ff71270c577391b4a47fb504d",
"dweb:/ipfs/QmadQgjwmPo1z4GEbsxidkWQtnxJpybssEoxC8k68pLzqj"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "6103006040526509184e72a000608081815260a0829052600060c0526512309ce5400060e0819052651b48eb57e0006101005265246139ca800061012052652d79883d200061014052653691d6afc00061016052653faa25226000610180526548c2739500006101a0526551dac207a0006101c0526101e08390526102008390526102208390526102408390526102608390526102808390526102a08390526102c0929092526102e091909152620000bc90600190601462000246565b506040805161028081018252600081526001602082015260029181018290526003606082015260046080820152600560a0820152600660c0820152600760e082015260086101008201526009610120820152600a610140820152600b610160820152600c610180820152600d6101a0820152600e6101c0820152600f6101e082015260106102008201526011610220820152601261024082015260136102608201526200016c91906014620002a0565b50604080516102808101825260008082526103e86020830152918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c081018290526101e081018290526102008101829052610220810182905261024081018290526102608101919091526200021f906003906014620002e3565b503480156200022d57600080fd5b50600080546001600160a01b031916331790556200033e565b8280548282559060005260206000209081019282156200028e579160200282015b828111156200028e578251829065ffffffffffff1690559160200191906001019062000267565b506200029c92915062000327565b5090565b8280548282559060005260206000209081019282156200028e579160200282015b828111156200028e578251829060ff16905591602001919060010190620002c1565b8280548282559060005260206000209081019282156200028e579160200282015b828111156200028e578251829061ffff1690559160200191906001019062000304565b5b808211156200029c576000815560010162000328565b610bd3806200034e6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063bc58bf3211610097578063efbda67011610066578063efbda670146101e6578063f2fde38b146101f9578063f3fe3bc31461020c578063fe4397df1461021457610100565b8063bc58bf32146101a5578063c5b63bc8146101b8578063cad02c00146101cb578063ec000bb5146101de57610100565b8063860d248a116100d3578063860d248a1461015e5780638da5cb5b14610173578063947b4d6714610188578063aacc5a171461019d57610100565b8063460b7343146101055780636f89e4091461012e578063742694e01461014357806376cc99dd14610156575b600080fd5b610118610113366004610977565b610227565b6040516101259190610ac1565b60405180910390f35b610136610248565b60405161012591906109e4565b610118610151366004610977565b6102a0565b6101366102b0565b610166610306565b6040516101259190610a28565b61017b610328565b60405161012591906109d0565b61019b6101963660046108f2565b610337565b005b610118610418565b61019b6101b33660046108f2565b61044b565b6101186101c6366004610977565b61050f565b6101186101d936600461098f565b61051f565b6101366105ef565b61019b6101f43660046108f2565b610645565b61019b6102073660046108c4565b610709565b6101666107f3565b61019b61022236600461098f565b610815565b6001818154811061023757600080fd5b600091825260209091200154905081565b6060600380548060200260200160405190810160405280929190818152602001828054801561029657602002820191906000526020600020905b815481526020019060010190808311610282575b5050505050905090565b6003818154811061023757600080fd5b606060028054806020026020016040519081016040528092919081815260200182805480156102965760200282019190600052602060002090815481526020019060010190808311610282575050505050905090565b6040518060400160405280600681526020016518189c18181960d11b81525081565b6000546001600160a01b031681565b60005460408051808201909152600681526530313830303160d01b6020820152906001600160a01b031633146103895760405162461bcd60e51b81526004016103809190610a28565b60405180910390fd5b5060005b6013811015610414578181601381106103b657634e487b7160e01b600052603260045260246000fd5b60200201516103cc9066038d7ea4c68000610af6565b60016103d88382610aca565b815481106103f657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001558061040c81610b2c565b91505061038d565b5050565b6000423260405160200161042d9291906109b0565b6040516020818303038152906040528051906020012060001c905090565b60005460408051808201909152600681526530313830303160d01b6020820152906001600160a01b031633146104945760405162461bcd60e51b81526004016103809190610a28565b5060005b6013811015610414578181601381106104c157634e487b7160e01b600052603260045260246000fd5b602002015160036104d3836001610aca565b815481106104f157634e487b7160e01b600052603260045260246000fd5b6000918252602090912001558061050781610b2c565b915050610498565b6002818154811061023757600080fd5b6000806001848154811061054357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600014156105635760009150506105e9565b60006002858154811061058657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050600061059d610418565b905060015b858110156105e4576105b5600a83610ae2565b91506105c18383610b47565b6105d2576105cf8486610aca565b94505b806105dc81610b2c565b9150506105a2565b505050505b92915050565b606060018054806020026020016040519081016040528092919081815260200182805480156102965760200282019190600052602060002090815481526020019060010190808311610282575050505050905090565b60005460408051808201909152600681526530313830303160d01b6020820152906001600160a01b0316331461068e5760405162461bcd60e51b81526004016103809190610a28565b5060005b6013811015610414578181601381106106bb57634e487b7160e01b600052603260045260246000fd5b602002015160026106cd836001610aca565b815481106106eb57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001558061070181610b2c565b915050610692565b60005460408051808201909152600681526530313830303160d01b6020820152906001600160a01b031633146107525760405162461bcd60e51b81526004016103809190610a28565b5060408051808201909152600681526518189c18181960d11b60208201526001600160a01b0382166107975760405162461bcd60e51b81526004016103809190610a28565b50600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6040518060400160405280600681526020016530313830303160d01b81525081565b333214156108355760405162461bcd60e51b815260040161038090610a9f565b806003838154811061085757634e487b7160e01b600052603260045260246000fd5b906000526020600020015410156108805760405162461bcd60e51b815260040161038090610a7b565b80600383815481106108a257634e487b7160e01b600052603260045260246000fd5b9060005260206000200160008282546108bb9190610b15565b90915550505050565b6000602082840312156108d5578081fd5b81356001600160a01b03811681146108eb578182fd5b9392505050565b6000610260808385031215610905578182fd5b83601f840112610913578182fd5b60405181810181811067ffffffffffffffff8211171561093557610935610b87565b6040528084838101871015610948578485fd5b8493505b601384101561096c5780358252600193909301926020918201910161094c565b509095945050505050565b600060208284031215610988578081fd5b5035919050565b600080604083850312156109a1578081fd5b50508035926020909101359150565b91825260601b6bffffffffffffffffffffffff1916602082015260340190565b6001600160a01b0391909116815260200190565b6020808252825182820181905260009190848201906040850190845b81811015610a1c57835183529284019291840191600101610a00565b50909695505050505050565b6000602080835283518082850152825b81811015610a5457858101830151858201604001528201610a38565b81811115610a655783604083870101525b50601f01601f1916929092016040019392505050565b6020808252600a90820152694f5645525f51554f544160b01b604082015260600190565b60208082526008908201526713d3931657d3919560c21b604082015260600190565b90815260200190565b60008219821115610add57610add610b5b565b500190565b600082610af157610af1610b71565b500490565b6000816000190483118215151615610b1057610b10610b5b565b500290565b600082821015610b2757610b27610b5b565b500390565b6000600019821415610b4057610b40610b5b565b5060010190565b600082610b5657610b56610b71565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220ebae55e0cfe5a303ec2e98e363108f8c8ab98ab811973fa61df6a229d800dad164736f6c63430008000033",
"opcodes": "PUSH2 0x300 PUSH1 0x40 MSTORE PUSH6 0x9184E72A000 PUSH1 0x80 DUP2 DUP2 MSTORE PUSH1 0xA0 DUP3 SWAP1 MSTORE PUSH1 0x0 PUSH1 0xC0 MSTORE PUSH6 0x12309CE54000 PUSH1 0xE0 DUP2 SWAP1 MSTORE PUSH6 0x1B48EB57E000 PUSH2 0x100 MSTORE PUSH6 0x246139CA8000 PUSH2 0x120 MSTORE PUSH6 0x2D79883D2000 PUSH2 0x140 MSTORE PUSH6 0x3691D6AFC000 PUSH2 0x160 MSTORE PUSH6 0x3FAA25226000 PUSH2 0x180 MSTORE PUSH6 0x48C273950000 PUSH2 0x1A0 MSTORE PUSH6 0x51DAC207A000 PUSH2 0x1C0 MSTORE PUSH2 0x1E0 DUP4 SWAP1 MSTORE PUSH2 0x200 DUP4 SWAP1 MSTORE PUSH2 0x220 DUP4 SWAP1 MSTORE PUSH2 0x240 DUP4 SWAP1 MSTORE PUSH2 0x260 DUP4 SWAP1 MSTORE PUSH2 0x280 DUP4 SWAP1 MSTORE PUSH2 0x2A0 DUP4 SWAP1 MSTORE PUSH2 0x2C0 SWAP3 SWAP1 SWAP3 MSTORE PUSH2 0x2E0 SWAP2 SWAP1 SWAP2 MSTORE PUSH3 0xBC SWAP1 PUSH1 0x1 SWAP1 PUSH1 0x14 PUSH3 0x246 JUMP JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH2 0x280 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP2 MSTORE PUSH1 0x1 PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x2 SWAP2 DUP2 ADD DUP3 SWAP1 MSTORE PUSH1 0x3 PUSH1 0x60 DUP3 ADD MSTORE PUSH1 0x4 PUSH1 0x80 DUP3 ADD MSTORE PUSH1 0x5 PUSH1 0xA0 DUP3 ADD MSTORE PUSH1 0x6 PUSH1 0xC0 DUP3 ADD MSTORE PUSH1 0x7 PUSH1 0xE0 DUP3 ADD MSTORE PUSH1 0x8 PUSH2 0x100 DUP3 ADD MSTORE PUSH1 0x9 PUSH2 0x120 DUP3 ADD MSTORE PUSH1 0xA PUSH2 0x140 DUP3 ADD MSTORE PUSH1 0xB PUSH2 0x160 DUP3 ADD MSTORE PUSH1 0xC PUSH2 0x180 DUP3 ADD MSTORE PUSH1 0xD PUSH2 0x1A0 DUP3 ADD MSTORE PUSH1 0xE PUSH2 0x1C0 DUP3 ADD MSTORE PUSH1 0xF PUSH2 0x1E0 DUP3 ADD MSTORE PUSH1 0x10 PUSH2 0x200 DUP3 ADD MSTORE PUSH1 0x11 PUSH2 0x220 DUP3 ADD MSTORE PUSH1 0x12 PUSH2 0x240 DUP3 ADD MSTORE PUSH1 0x13 PUSH2 0x260 DUP3 ADD MSTORE PUSH3 0x16C SWAP2 SWAP1 PUSH1 0x14 PUSH3 0x2A0 JUMP JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH2 0x280 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 DUP3 MSTORE PUSH2 0x3E8 PUSH1 0x20 DUP4 ADD MSTORE SWAP2 DUP2 ADD DUP3 SWAP1 MSTORE PUSH1 0x60 DUP2 ADD DUP3 SWAP1 MSTORE PUSH1 0x80 DUP2 ADD DUP3 SWAP1 MSTORE PUSH1 0xA0 DUP2 ADD DUP3 SWAP1 MSTORE PUSH1 0xC0 DUP2 ADD DUP3 SWAP1 MSTORE PUSH1 0xE0 DUP2 ADD DUP3 SWAP1 MSTORE PUSH2 0x100 DUP2 ADD DUP3 SWAP1 MSTORE PUSH2 0x120 DUP2 ADD DUP3 SWAP1 MSTORE PUSH2 0x140 DUP2 ADD DUP3 SWAP1 MSTORE PUSH2 0x160 DUP2 ADD DUP3 SWAP1 MSTORE PUSH2 0x180 DUP2 ADD DUP3 SWAP1 MSTORE PUSH2 0x1A0 DUP2 ADD DUP3 SWAP1 MSTORE PUSH2 0x1C0 DUP2 ADD DUP3 SWAP1 MSTORE PUSH2 0x1E0 DUP2 ADD DUP3 SWAP1 MSTORE PUSH2 0x200 DUP2 ADD DUP3 SWAP1 MSTORE PUSH2 0x220 DUP2 ADD DUP3 SWAP1 MSTORE PUSH2 0x240 DUP2 ADD DUP3 SWAP1 MSTORE PUSH2 0x260 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH3 0x21F SWAP1 PUSH1 0x3 SWAP1 PUSH1 0x14 PUSH3 0x2E3 JUMP JUMPDEST POP CALLVALUE DUP1 ISZERO PUSH3 0x22D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND CALLER OR SWAP1 SSTORE PUSH3 0x33E JUMP JUMPDEST DUP3 DUP1 SLOAD DUP3 DUP3 SSTORE SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 DUP2 ADD SWAP3 DUP3 ISZERO PUSH3 0x28E JUMPI SWAP2 PUSH1 0x20 MUL DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0x28E JUMPI DUP3 MLOAD DUP3 SWAP1 PUSH6 0xFFFFFFFFFFFF AND SWAP1 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH3 0x267 JUMP JUMPDEST POP PUSH3 0x29C SWAP3 SWAP2 POP PUSH3 0x327 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD DUP3 DUP3 SSTORE SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 DUP2 ADD SWAP3 DUP3 ISZERO PUSH3 0x28E JUMPI SWAP2 PUSH1 0x20 MUL DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0x28E JUMPI DUP3 MLOAD DUP3 SWAP1 PUSH1 0xFF AND SWAP1 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH3 0x2C1 JUMP JUMPDEST DUP3 DUP1 SLOAD DUP3 DUP3 SSTORE SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 DUP2 ADD SWAP3 DUP3 ISZERO PUSH3 0x28E JUMPI SWAP2 PUSH1 0x20 MUL DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0x28E JUMPI DUP3 MLOAD DUP3 SWAP1 PUSH2 0xFFFF AND SWAP1 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH3 0x304 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH3 0x29C JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH3 0x328 JUMP JUMPDEST PUSH2 0xBD3 DUP1 PUSH3 0x34E PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x100 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xBC58BF32 GT PUSH2 0x97 JUMPI DUP1 PUSH4 0xEFBDA670 GT PUSH2 0x66 JUMPI DUP1 PUSH4 0xEFBDA670 EQ PUSH2 0x1E6 JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x1F9 JUMPI DUP1 PUSH4 0xF3FE3BC3 EQ PUSH2 0x20C JUMPI DUP1 PUSH4 0xFE4397DF EQ PUSH2 0x214 JUMPI PUSH2 0x100 JUMP JUMPDEST DUP1 PUSH4 0xBC58BF32 EQ PUSH2 0x1A5 JUMPI DUP1 PUSH4 0xC5B63BC8 EQ PUSH2 0x1B8 JUMPI DUP1 PUSH4 0xCAD02C00 EQ PUSH2 0x1CB JUMPI DUP1 PUSH4 0xEC000BB5 EQ PUSH2 0x1DE JUMPI PUSH2 0x100 JUMP JUMPDEST DUP1 PUSH4 0x860D248A GT PUSH2 0xD3 JUMPI DUP1 PUSH4 0x860D248A EQ PUSH2 0x15E JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x173 JUMPI DUP1 PUSH4 0x947B4D67 EQ PUSH2 0x188 JUMPI DUP1 PUSH4 0xAACC5A17 EQ PUSH2 0x19D JUMPI PUSH2 0x100 JUMP JUMPDEST DUP1 PUSH4 0x460B7343 EQ PUSH2 0x105 JUMPI DUP1 PUSH4 0x6F89E409 EQ PUSH2 0x12E JUMPI DUP1 PUSH4 0x742694E0 EQ PUSH2 0x143 JUMPI DUP1 PUSH4 0x76CC99DD EQ PUSH2 0x156 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x118 PUSH2 0x113 CALLDATASIZE PUSH1 0x4 PUSH2 0x977 JUMP JUMPDEST PUSH2 0x227 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x125 SWAP2 SWAP1 PUSH2 0xAC1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x136 PUSH2 0x248 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x125 SWAP2 SWAP1 PUSH2 0x9E4 JUMP JUMPDEST PUSH2 0x118 PUSH2 0x151 CALLDATASIZE PUSH1 0x4 PUSH2 0x977 JUMP JUMPDEST PUSH2 0x2A0 JUMP JUMPDEST PUSH2 0x136 PUSH2 0x2B0 JUMP JUMPDEST PUSH2 0x166 PUSH2 0x306 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x125 SWAP2 SWAP1 PUSH2 0xA28 JUMP JUMPDEST PUSH2 0x17B PUSH2 0x328 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x125 SWAP2 SWAP1 PUSH2 0x9D0 JUMP JUMPDEST PUSH2 0x19B PUSH2 0x196 CALLDATASIZE PUSH1 0x4 PUSH2 0x8F2 JUMP JUMPDEST PUSH2 0x337 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x118 PUSH2 0x418 JUMP JUMPDEST PUSH2 0x19B PUSH2 0x1B3 CALLDATASIZE PUSH1 0x4 PUSH2 0x8F2 JUMP JUMPDEST PUSH2 0x44B JUMP JUMPDEST PUSH2 0x118 PUSH2 0x1C6 CALLDATASIZE PUSH1 0x4 PUSH2 0x977 JUMP JUMPDEST PUSH2 0x50F JUMP JUMPDEST PUSH2 0x118 PUSH2 0x1D9 CALLDATASIZE PUSH1 0x4 PUSH2 0x98F JUMP JUMPDEST PUSH2 0x51F JUMP JUMPDEST PUSH2 0x136 PUSH2 0x5EF JUMP JUMPDEST PUSH2 0x19B PUSH2 0x1F4 CALLDATASIZE PUSH1 0x4 PUSH2 0x8F2 JUMP JUMPDEST PUSH2 0x645 JUMP JUMPDEST PUSH2 0x19B PUSH2 0x207 CALLDATASIZE PUSH1 0x4 PUSH2 0x8C4 JUMP JUMPDEST PUSH2 0x709 JUMP JUMPDEST PUSH2 0x166 PUSH2 0x7F3 JUMP JUMPDEST PUSH2 0x19B PUSH2 0x222 CALLDATASIZE PUSH1 0x4 PUSH2 0x98F JUMP JUMPDEST PUSH2 0x815 JUMP JUMPDEST PUSH1 0x1 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x237 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 SWAP1 SWAP2 KECCAK256 ADD SLOAD SWAP1 POP DUP2 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x3 DUP1 SLOAD DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD DUP1 ISZERO PUSH2 0x296 JUMPI PUSH1 0x20 MUL DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 DUP1 DUP4 GT PUSH2 0x282 JUMPI JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x3 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x237 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x60 PUSH1 0x2 DUP1 SLOAD DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD DUP1 ISZERO PUSH2 0x296 JUMPI PUSH1 0x20 MUL DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 DUP2 SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 DUP1 DUP4 GT PUSH2 0x282 JUMPI POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0x18189C181819 PUSH1 0xD1 SHL DUP2 MSTORE POP DUP2 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303138303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x389 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP2 SWAP1 PUSH2 0xA28 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP PUSH1 0x0 JUMPDEST PUSH1 0x13 DUP2 LT ISZERO PUSH2 0x414 JUMPI DUP2 DUP2 PUSH1 0x13 DUP2 LT PUSH2 0x3B6 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x20 MUL ADD MLOAD PUSH2 0x3CC SWAP1 PUSH7 0x38D7EA4C68000 PUSH2 0xAF6 JUMP JUMPDEST PUSH1 0x1 PUSH2 0x3D8 DUP4 DUP3 PUSH2 0xACA JUMP JUMPDEST DUP2 SLOAD DUP2 LT PUSH2 0x3F6 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 SWAP1 SWAP2 KECCAK256 ADD SSTORE DUP1 PUSH2 0x40C DUP2 PUSH2 0xB2C JUMP JUMPDEST SWAP2 POP POP PUSH2 0x38D JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 TIMESTAMP ORIGIN PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x42D SWAP3 SWAP2 SWAP1 PUSH2 0x9B0 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 PUSH1 0x0 SHR SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303138303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x494 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP2 SWAP1 PUSH2 0xA28 JUMP JUMPDEST POP PUSH1 0x0 JUMPDEST PUSH1 0x13 DUP2 LT ISZERO PUSH2 0x414 JUMPI DUP2 DUP2 PUSH1 0x13 DUP2 LT PUSH2 0x4C1 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x20 MUL ADD MLOAD PUSH1 0x3 PUSH2 0x4D3 DUP4 PUSH1 0x1 PUSH2 0xACA JUMP JUMPDEST DUP2 SLOAD DUP2 LT PUSH2 0x4F1 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 SWAP1 SWAP2 KECCAK256 ADD SSTORE DUP1 PUSH2 0x507 DUP2 PUSH2 0xB2C JUMP JUMPDEST SWAP2 POP POP PUSH2 0x498 JUMP JUMPDEST PUSH1 0x2 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x237 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x1 DUP5 DUP2 SLOAD DUP2 LT PUSH2 0x543 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD SLOAD SWAP1 POP DUP1 PUSH1 0x0 EQ ISZERO PUSH2 0x563 JUMPI PUSH1 0x0 SWAP2 POP POP PUSH2 0x5E9 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP6 DUP2 SLOAD DUP2 LT PUSH2 0x586 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD SLOAD SWAP1 POP PUSH1 0x0 PUSH2 0x59D PUSH2 0x418 JUMP JUMPDEST SWAP1 POP PUSH1 0x1 JUMPDEST DUP6 DUP2 LT ISZERO PUSH2 0x5E4 JUMPI PUSH2 0x5B5 PUSH1 0xA DUP4 PUSH2 0xAE2 JUMP JUMPDEST SWAP2 POP PUSH2 0x5C1 DUP4 DUP4 PUSH2 0xB47 JUMP JUMPDEST PUSH2 0x5D2 JUMPI PUSH2 0x5CF DUP5 DUP7 PUSH2 0xACA JUMP JUMPDEST SWAP5 POP JUMPDEST DUP1 PUSH2 0x5DC DUP2 PUSH2 0xB2C JUMP JUMPDEST SWAP2 POP POP PUSH2 0x5A2 JUMP JUMPDEST POP POP POP POP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x60 PUSH1 0x1 DUP1 SLOAD DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD DUP1 ISZERO PUSH2 0x296 JUMPI PUSH1 0x20 MUL DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 DUP2 SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 DUP1 DUP4 GT PUSH2 0x282 JUMPI POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303138303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x68E JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP2 SWAP1 PUSH2 0xA28 JUMP JUMPDEST POP PUSH1 0x0 JUMPDEST PUSH1 0x13 DUP2 LT ISZERO PUSH2 0x414 JUMPI DUP2 DUP2 PUSH1 0x13 DUP2 LT PUSH2 0x6BB JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x20 MUL ADD MLOAD PUSH1 0x2 PUSH2 0x6CD DUP4 PUSH1 0x1 PUSH2 0xACA JUMP JUMPDEST DUP2 SLOAD DUP2 LT PUSH2 0x6EB JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 SWAP1 SWAP2 KECCAK256 ADD SSTORE DUP1 PUSH2 0x701 DUP2 PUSH2 0xB2C JUMP JUMPDEST SWAP2 POP POP PUSH2 0x692 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303138303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x752 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP2 SWAP1 PUSH2 0xA28 JUMP JUMPDEST POP PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x18189C181819 PUSH1 0xD1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x797 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP2 SWAP1 PUSH2 0xA28 JUMP JUMPDEST POP PUSH1 0x0 DUP1 SLOAD PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP6 AND SWAP4 SWAP3 AND SWAP2 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP2 LOG3 PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0x303138303031 PUSH1 0xD0 SHL DUP2 MSTORE POP DUP2 JUMP JUMPDEST CALLER ORIGIN EQ ISZERO PUSH2 0x835 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP1 PUSH2 0xA9F JUMP JUMPDEST DUP1 PUSH1 0x3 DUP4 DUP2 SLOAD DUP2 LT PUSH2 0x857 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD SLOAD LT ISZERO PUSH2 0x880 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP1 PUSH2 0xA7B JUMP JUMPDEST DUP1 PUSH1 0x3 DUP4 DUP2 SLOAD DUP2 LT PUSH2 0x8A2 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD PUSH1 0x0 DUP3 DUP3 SLOAD PUSH2 0x8BB SWAP2 SWAP1 PUSH2 0xB15 JUMP JUMPDEST SWAP1 SWAP2 SSTORE POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x8D5 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x8EB JUMPI DUP2 DUP3 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x260 DUP1 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x905 JUMPI DUP2 DUP3 REVERT JUMPDEST DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0x913 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x935 JUMPI PUSH2 0x935 PUSH2 0xB87 JUMP JUMPDEST PUSH1 0x40 MSTORE DUP1 DUP5 DUP4 DUP2 ADD DUP8 LT ISZERO PUSH2 0x948 JUMPI DUP5 DUP6 REVERT JUMPDEST DUP5 SWAP4 POP JUMPDEST PUSH1 0x13 DUP5 LT ISZERO PUSH2 0x96C JUMPI DUP1 CALLDATALOAD DUP3 MSTORE PUSH1 0x1 SWAP4 SWAP1 SWAP4 ADD SWAP3 PUSH1 0x20 SWAP2 DUP3 ADD SWAP2 ADD PUSH2 0x94C JUMP JUMPDEST POP SWAP1 SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x988 JUMPI DUP1 DUP2 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x9A1 JUMPI DUP1 DUP2 REVERT JUMPDEST POP POP DUP1 CALLDATALOAD SWAP3 PUSH1 0x20 SWAP1 SWAP2 ADD CALLDATALOAD SWAP2 POP JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x60 SHL PUSH12 0xFFFFFFFFFFFFFFFFFFFFFFFF NOT AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x34 ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP3 MLOAD DUP3 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x0 SWAP2 SWAP1 DUP5 DUP3 ADD SWAP1 PUSH1 0x40 DUP6 ADD SWAP1 DUP5 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xA1C JUMPI DUP4 MLOAD DUP4 MSTORE SWAP3 DUP5 ADD SWAP3 SWAP2 DUP5 ADD SWAP2 PUSH1 0x1 ADD PUSH2 0xA00 JUMP JUMPDEST POP SWAP1 SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP1 DUP4 MSTORE DUP4 MLOAD DUP1 DUP3 DUP6 ADD MSTORE DUP3 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xA54 JUMPI DUP6 DUP2 ADD DUP4 ADD MLOAD DUP6 DUP3 ADD PUSH1 0x40 ADD MSTORE DUP3 ADD PUSH2 0xA38 JUMP JUMPDEST DUP2 DUP2 GT ISZERO PUSH2 0xA65 JUMPI DUP4 PUSH1 0x40 DUP4 DUP8 ADD ADD MSTORE JUMPDEST POP PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP3 SWAP1 SWAP3 ADD PUSH1 0x40 ADD SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE PUSH1 0xA SWAP1 DUP3 ADD MSTORE PUSH10 0x4F5645525F51554F5441 PUSH1 0xB0 SHL PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE PUSH1 0x8 SWAP1 DUP3 ADD MSTORE PUSH8 0x13D3931657D39195 PUSH1 0xC2 SHL PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 NOT DUP3 GT ISZERO PUSH2 0xADD JUMPI PUSH2 0xADD PUSH2 0xB5B JUMP JUMPDEST POP ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0xAF1 JUMPI PUSH2 0xAF1 PUSH2 0xB71 JUMP JUMPDEST POP DIV SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 NOT DIV DUP4 GT DUP3 ISZERO ISZERO AND ISZERO PUSH2 0xB10 JUMPI PUSH2 0xB10 PUSH2 0xB5B JUMP JUMPDEST POP MUL SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 LT ISZERO PUSH2 0xB27 JUMPI PUSH2 0xB27 PUSH2 0xB5B JUMP JUMPDEST POP SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x0 NOT DUP3 EQ ISZERO PUSH2 0xB40 JUMPI PUSH2 0xB40 PUSH2 0xB5B JUMP JUMPDEST POP PUSH1 0x1 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0xB56 JUMPI PUSH2 0xB56 PUSH2 0xB71 JUMP JUMPDEST POP MOD SWAP1 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x12 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xEB 0xAE SSTORE 0xE0 0xCF 0xE5 LOG3 SUB 0xEC 0x2E SWAP9 0xE3 PUSH4 0x108F8C8A 0xB9 DUP11 0xB8 GT SWAP8 EXTCODEHASH 0xA6 SAR 0xF6 LOG2 0x29 0xD8 STOP 0xDA 0xD1 PUSH5 0x736F6C6343 STOP ADDMOD STOP STOP CALLER ",
"sourceMap": "270:414:6:-:0;233:2534;270:414;310:13;233:2534;270:414;;;;;;;-1:-1:-1;270:414:6;;363:13;270:414;;;;382:13;270:414;;401:13;270:414;;420:13;270:414;;439:13;270:414;;458:13;270:414;;477:13;270:414;;496:13;270:414;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;1017:193:6;;;;;;;;-1:-1:-1;1017:193:6;;1069:1;1017:193;;;;1076:1;1017:193;;;;;;1083:1;1017:193;;;;1090:1;1017:193;;;;1097:1;1017:193;;;;1104:1;1017:193;;;;1111:1;1017:193;;;;1118:1;1017:193;;;;1125:1;1017:193;;;;1132:2;1017:193;;;;1140:2;1017:193;;;;1148:2;1017:193;;;;1156:2;1017:193;;;;1164:2;1017:193;;;;1172:2;1017:193;;;;1180:2;1017:193;;;;1188:2;1017:193;;;;1196:2;1017:193;;;;1204:2;1017:193;;;;;;1076:1;1017:193;;:::i;:::-;-1:-1:-1;1548:181:6;;;;;;;;-1:-1:-1;1548:181:6;;;1595:4;1548:181;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;233:2534;;;;;;;;;-1:-1:-1;1064:5:4;:18;;-1:-1:-1;;;;;;1064:18:4;1072:10;1064:18;;;233:2534:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;233:2534:6;;;-1:-1:-1;233:2534:6;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"
},
"deployedBytecode": {
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:5463:10",
"statements": [
{
"nodeType": "YulBlock",
"src": "6:3:10",
"statements": []
},
{
"body": {
"nodeType": "YulBlock",
"src": "84:236:10",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "130:26:10",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "139:6:10"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "147:6:10"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "132:6:10"
},
"nodeType": "YulFunctionCall",
"src": "132:22:10"
},
"nodeType": "YulExpressionStatement",
"src": "132:22:10"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "105:7:10"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "114:9:10"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "101:3:10"
},
"nodeType": "YulFunctionCall",
"src": "101:23:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "126:2:10",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "97:3:10"
},
"nodeType": "YulFunctionCall",
"src": "97:32:10"
},
"nodeType": "YulIf",
"src": "94:2:10"
},
{
"nodeType": "YulVariableDeclaration",
"src": "165:36:10",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "191:9:10"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "178:12:10"
},
"nodeType": "YulFunctionCall",
"src": "178:23:10"
},
"variables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "169:5:10",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "264:26:10",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "273:6:10"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "281:6:10"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "266:6:10"
},
"nodeType": "YulFunctionCall",
"src": "266:22:10"
},
"nodeType": "YulExpressionStatement",
"src": "266:22:10"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "223:5:10"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "234:5:10"
},
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "249:3:10",
"type": "",
"value": "160"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "254:1:10",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "245:3:10"
},
"nodeType": "YulFunctionCall",
"src": "245:11:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "258:1:10",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "241:3:10"
},
"nodeType": "YulFunctionCall",
"src": "241:19:10"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "230:3:10"
},
"nodeType": "YulFunctionCall",
"src": "230:31:10"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "220:2:10"
},
"nodeType": "YulFunctionCall",
"src": "220:42:10"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "213:6:10"
},
"nodeType": "YulFunctionCall",
"src": "213:50:10"
},
"nodeType": "YulIf",
"src": "210:2:10"
},
{
"nodeType": "YulAssignment",
"src": "299:15:10",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "309:5:10"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "299:6:10"
}
]
}
]
},
"name": "abi_decode_tuple_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "50:9:10",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "61:7:10",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "73:6:10",
"type": ""
}
],
"src": "14:306:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "419:758:10",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "429:13:10",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "439:3:10",
"type": "",
"value": "608"
},
"variables": [
{
"name": "_1",
"nodeType": "YulTypedName",
"src": "433:2:10",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "487:26:10",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "496:6:10"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "504:6:10"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "489:6:10"
},
"nodeType": "YulFunctionCall",
"src": "489:22:10"
},
"nodeType": "YulExpressionStatement",
"src": "489:22:10"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "462:7:10"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "471:9:10"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "458:3:10"
},
"nodeType": "YulFunctionCall",
"src": "458:23:10"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "483:2:10"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "454:3:10"
},
"nodeType": "YulFunctionCall",
"src": "454:32:10"
},
"nodeType": "YulIf",
"src": "451:2:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "568:26:10",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "577:6:10"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "585:6:10"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "570:6:10"
},
"nodeType": "YulFunctionCall",
"src": "570:22:10"
},
"nodeType": "YulExpressionStatement",
"src": "570:22:10"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "540:9:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "551:4:10",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "536:3:10"
},
"nodeType": "YulFunctionCall",
"src": "536:20:10"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "558:7:10"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "532:3:10"
},
"nodeType": "YulFunctionCall",
"src": "532:34:10"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "525:6:10"
},
"nodeType": "YulFunctionCall",
"src": "525:42:10"
},
"nodeType": "YulIf",
"src": "522:2:10"
},
{
"nodeType": "YulVariableDeclaration",
"src": "603:23:10",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "623:2:10",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "617:5:10"
},
"nodeType": "YulFunctionCall",
"src": "617:9:10"
},
"variables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "607:6:10",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "635:33:10",
"value": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "657:6:10"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "665:2:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "653:3:10"
},
"nodeType": "YulFunctionCall",
"src": "653:15:10"
},
"variables": [
{
"name": "newFreePtr",
"nodeType": "YulTypedName",
"src": "639:10:10",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "743:22:10",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "745:16:10"
},
"nodeType": "YulFunctionCall",
"src": "745:18:10"
},
"nodeType": "YulExpressionStatement",
"src": "745:18:10"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "686:10:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "698:18:10",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "683:2:10"
},
"nodeType": "YulFunctionCall",
"src": "683:34:10"
},
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "722:10:10"
},
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "734:6:10"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "719:2:10"
},
"nodeType": "YulFunctionCall",
"src": "719:22:10"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "680:2:10"
},
"nodeType": "YulFunctionCall",
"src": "680:62:10"
},
"nodeType": "YulIf",
"src": "677:2:10"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "781:2:10",
"type": "",
"value": "64"
},
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "785:10:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "774:6:10"
},
"nodeType": "YulFunctionCall",
"src": "774:22:10"
},
"nodeType": "YulExpressionStatement",
"src": "774:22:10"
},
{
"nodeType": "YulVariableDeclaration",
"src": "805:17:10",
"value": {
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "816:6:10"
},
"variables": [
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "809:3:10",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "831:20:10",
"value": {
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "842:9:10"
},
"variables": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "835:3:10",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "895:26:10",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "904:6:10"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "912:6:10"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "897:6:10"
},
"nodeType": "YulFunctionCall",
"src": "897:22:10"
},
"nodeType": "YulExpressionStatement",
"src": "897:22:10"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "870:9:10"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "881:2:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "866:3:10"
},
"nodeType": "YulFunctionCall",
"src": "866:18:10"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "886:7:10"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "863:2:10"
},
"nodeType": "YulFunctionCall",
"src": "863:31:10"
},
"nodeType": "YulIf",
"src": "860:2:10"
},
{
"nodeType": "YulVariableDeclaration",
"src": "930:15:10",
"value": {
"name": "value0",
"nodeType": "YulIdentifier",
"src": "939:6:10"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "934:1:10",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1001:145:10",
"statements": [
{
"expression": {
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "1022:3:10"
},
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "1040:3:10"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1027:12:10"
},
"nodeType": "YulFunctionCall",
"src": "1027:17:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1015:6:10"
},
"nodeType": "YulFunctionCall",
"src": "1015:30:10"
},
"nodeType": "YulExpressionStatement",
"src": "1015:30:10"
},
{
"nodeType": "YulVariableDeclaration",
"src": "1058:14:10",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "1068:4:10",
"type": "",
"value": "0x20"
},
"variables": [
{
"name": "_2",
"nodeType": "YulTypedName",
"src": "1062:2:10",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "1085:19:10",
"value": {
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "1096:3:10"
},
{
"name": "_2",
"nodeType": "YulIdentifier",
"src": "1101:2:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1092:3:10"
},
"nodeType": "YulFunctionCall",
"src": "1092:12:10"
},
"variableNames": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "1085:3:10"
}
]
},
{
"nodeType": "YulAssignment",
"src": "1117:19:10",
"value": {
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "1128:3:10"
},
{
"name": "_2",
"nodeType": "YulIdentifier",
"src": "1133:2:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1124:3:10"
},
"nodeType": "YulFunctionCall",
"src": "1124:12:10"
},
"variableNames": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "1117:3:10"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "965:1:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "968:4:10",
"type": "",
"value": "0x13"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "962:2:10"
},
"nodeType": "YulFunctionCall",
"src": "962:11:10"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "974:18:10",
"statements": [
{
"nodeType": "YulAssignment",
"src": "976:14:10",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "985:1:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "988:1:10",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "981:3:10"
},
"nodeType": "YulFunctionCall",
"src": "981:9:10"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "976:1:10"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "958:3:10",
"statements": []
},
"src": "954:192:10"
},
{
"nodeType": "YulAssignment",
"src": "1155:16:10",
"value": {
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "1165:6:10"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1155:6:10"
}
]
}
]
},
"name": "abi_decode_tuple_t_array$_t_uint256_$19_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "385:9:10",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "396:7:10",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "408:6:10",
"type": ""
}
],
"src": "325:852:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1252:120:10",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1298:26:10",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1307:6:10"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1315:6:10"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1300:6:10"
},
"nodeType": "YulFunctionCall",
"src": "1300:22:10"
},
"nodeType": "YulExpressionStatement",
"src": "1300:22:10"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1273:7:10"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1282:9:10"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "1269:3:10"
},
"nodeType": "YulFunctionCall",
"src": "1269:23:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1294:2:10",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "1265:3:10"
},
"nodeType": "YulFunctionCall",
"src": "1265:32:10"
},
"nodeType": "YulIf",
"src": "1262:2:10"
},
{
"nodeType": "YulAssignment",
"src": "1333:33:10",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1356:9:10"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1343:12:10"
},
"nodeType": "YulFunctionCall",
"src": "1343:23:10"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1333:6:10"
}
]
}
]
},
"name": "abi_decode_tuple_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1218:9:10",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "1229:7:10",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1241:6:10",
"type": ""
}
],
"src": "1182:190:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1464:171:10",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1510:26:10",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "1519:6:10"
},
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "1527:6:10"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1512:6:10"
},
"nodeType": "YulFunctionCall",
"src": "1512:22:10"
},
"nodeType": "YulExpressionStatement",
"src": "1512:22:10"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "1485:7:10"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1494:9:10"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "1481:3:10"
},
"nodeType": "YulFunctionCall",
"src": "1481:23:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1506:2:10",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "1477:3:10"
},
"nodeType": "YulFunctionCall",
"src": "1477:32:10"
},
"nodeType": "YulIf",
"src": "1474:2:10"
},
{
"nodeType": "YulAssignment",
"src": "1545:33:10",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1568:9:10"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1555:12:10"
},
"nodeType": "YulFunctionCall",
"src": "1555:23:10"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1545:6:10"
}
]
},
{
"nodeType": "YulAssignment",
"src": "1587:42:10",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1614:9:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1625:2:10",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1610:3:10"
},
"nodeType": "YulFunctionCall",
"src": "1610:18:10"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1597:12:10"
},
"nodeType": "YulFunctionCall",
"src": "1597:32:10"
},
"variableNames": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "1587:6:10"
}
]
}
]
},
"name": "abi_decode_tuple_t_uint256t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1422:9:10",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "1433:7:10",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1445:6:10",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "1453:6:10",
"type": ""
}
],
"src": "1377:258:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1787:147:10",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1804:3:10"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1809:6:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1797:6:10"
},
"nodeType": "YulFunctionCall",
"src": "1797:19:10"
},
"nodeType": "YulExpressionStatement",
"src": "1797:19:10"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1836:3:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1841:2:10",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1832:3:10"
},
"nodeType": "YulFunctionCall",
"src": "1832:12:10"
},
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1854:2:10",
"type": "",
"value": "96"
},
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "1858:6:10"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "1850:3:10"
},
"nodeType": "YulFunctionCall",
"src": "1850:15:10"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1871:26:10",
"type": "",
"value": "0xffffffffffffffffffffffff"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "1867:3:10"
},
"nodeType": "YulFunctionCall",
"src": "1867:31:10"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "1846:3:10"
},
"nodeType": "YulFunctionCall",
"src": "1846:53:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1825:6:10"
},
"nodeType": "YulFunctionCall",
"src": "1825:75:10"
},
"nodeType": "YulExpressionStatement",
"src": "1825:75:10"
},
{
"nodeType": "YulAssignment",
"src": "1909:19:10",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1920:3:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1925:2:10",
"type": "",
"value": "52"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1916:3:10"
},
"nodeType": "YulFunctionCall",
"src": "1916:12:10"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "1909:3:10"
}
]
}
]
},
"name": "abi_encode_tuple_packed_t_uint256_t_address__to_t_uint256_t_address__nonPadded_inplace_fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "1755:3:10",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "1760:6:10",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1768:6:10",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "1779:3:10",
"type": ""
}
],
"src": "1640:294:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2040:102:10",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2050:26:10",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2062:9:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2073:2:10",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2058:3:10"
},
"nodeType": "YulFunctionCall",
"src": "2058:18:10"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2050:4:10"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2092:9:10"
},
{
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2107:6:10"
},
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2123:3:10",
"type": "",
"value": "160"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2128:1:10",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "2119:3:10"
},
"nodeType": "YulFunctionCall",
"src": "2119:11:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2132:1:10",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "2115:3:10"
},
"nodeType": "YulFunctionCall",
"src": "2115:19:10"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "2103:3:10"
},
"nodeType": "YulFunctionCall",
"src": "2103:32:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2085:6:10"
},
"nodeType": "YulFunctionCall",
"src": "2085:51:10"
},
"nodeType": "YulExpressionStatement",
"src": "2085:51:10"
}
]
},
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2009:9:10",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2020:6:10",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "2031:4:10",
"type": ""
}
],
"src": "1939:203:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2298:484:10",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2308:12:10",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "2318:2:10",
"type": "",
"value": "32"
},
"variables": [
{
"name": "_1",
"nodeType": "YulTypedName",
"src": "2312:2:10",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "2329:32:10",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2347:9:10"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "2358:2:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2343:3:10"
},
"nodeType": "YulFunctionCall",
"src": "2343:18:10"
},
"variables": [
{
"name": "tail_1",
"nodeType": "YulTypedName",
"src": "2333:6:10",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2377:9:10"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "2388:2:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2370:6:10"
},
"nodeType": "YulFunctionCall",
"src": "2370:21:10"
},
"nodeType": "YulExpressionStatement",
"src": "2370:21:10"
},
{
"nodeType": "YulVariableDeclaration",
"src": "2400:17:10",
"value": {
"name": "tail_1",
"nodeType": "YulIdentifier",
"src": "2411:6:10"
},
"variables": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "2404:3:10",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "2426:27:10",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2446:6:10"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "2440:5:10"
},
"nodeType": "YulFunctionCall",
"src": "2440:13:10"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "2430:6:10",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "tail_1",
"nodeType": "YulIdentifier",
"src": "2469:6:10"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2477:6:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2462:6:10"
},
"nodeType": "YulFunctionCall",
"src": "2462:22:10"
},
"nodeType": "YulExpressionStatement",
"src": "2462:22:10"
},
{
"nodeType": "YulAssignment",
"src": "2493:25:10",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2504:9:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2515:2:10",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2500:3:10"
},
"nodeType": "YulFunctionCall",
"src": "2500:18:10"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2493:3:10"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "2527:29:10",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2545:6:10"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "2553:2:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2541:3:10"
},
"nodeType": "YulFunctionCall",
"src": "2541:15:10"
},
"variables": [
{
"name": "srcPtr",
"nodeType": "YulTypedName",
"src": "2531:6:10",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "2565:13:10",
"value": {
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2574:4:10"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "2569:1:10",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "2636:120:10",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2657:3:10"
},
{
"arguments": [
{
"name": "srcPtr",
"nodeType": "YulIdentifier",
"src": "2668:6:10"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "2662:5:10"
},
"nodeType": "YulFunctionCall",
"src": "2662:13:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2650:6:10"
},
"nodeType": "YulFunctionCall",
"src": "2650:26:10"
},
"nodeType": "YulExpressionStatement",
"src": "2650:26:10"
},
{
"nodeType": "YulAssignment",
"src": "2689:19:10",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2700:3:10"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "2705:2:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2696:3:10"
},
"nodeType": "YulFunctionCall",
"src": "2696:12:10"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2689:3:10"
}
]
},
{
"nodeType": "YulAssignment",
"src": "2721:25:10",
"value": {
"arguments": [
{
"name": "srcPtr",
"nodeType": "YulIdentifier",
"src": "2735:6:10"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "2743:2:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2731:3:10"
},
"nodeType": "YulFunctionCall",
"src": "2731:15:10"
},
"variableNames": [
{
"name": "srcPtr",
"nodeType": "YulIdentifier",
"src": "2721:6:10"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2598:1:10"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2601:6:10"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "2595:2:10"
},
"nodeType": "YulFunctionCall",
"src": "2595:13:10"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "2609:18:10",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2611:14:10",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2620:1:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2623:1:10",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2616:3:10"
},
"nodeType": "YulFunctionCall",
"src": "2616:9:10"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2611:1:10"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "2591:3:10",
"statements": []
},
"src": "2587:169:10"
},
{
"nodeType": "YulAssignment",
"src": "2765:11:10",
"value": {
"name": "pos",
"nodeType": "YulIdentifier",
"src": "2773:3:10"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "2765:4:10"
}
]
}
]
},
"name": "abi_encode_tuple_t_array$_t_uint256_$dyn_memory_ptr__to_t_array$_t_uint256_$dyn_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2267:9:10",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2278:6:10",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "2289:4:10",
"type": ""
}
],
"src": "2147:635:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2908:482:10",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2918:12:10",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "2928:2:10",
"type": "",
"value": "32"
},
"variables": [
{
"name": "_1",
"nodeType": "YulTypedName",
"src": "2922:2:10",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2946:9:10"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "2957:2:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2939:6:10"
},
"nodeType": "YulFunctionCall",
"src": "2939:21:10"
},
"nodeType": "YulExpressionStatement",
"src": "2939:21:10"
},
{
"nodeType": "YulVariableDeclaration",
"src": "2969:27:10",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2989:6:10"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "2983:5:10"
},
"nodeType": "YulFunctionCall",
"src": "2983:13:10"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "2973:6:10",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3016:9:10"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "3027:2:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3012:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3012:18:10"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3032:6:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3005:6:10"
},
"nodeType": "YulFunctionCall",
"src": "3005:34:10"
},
"nodeType": "YulExpressionStatement",
"src": "3005:34:10"
},
{
"nodeType": "YulVariableDeclaration",
"src": "3048:13:10",
"value": {
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3057:4:10"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "3052:1:10",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "3120:90:10",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3149:9:10"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "3160:1:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3145:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3145:17:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3164:2:10",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3141:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3141:26:10"
},
{
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3183:6:10"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "3191:1:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3179:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3179:14:10"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "3195:2:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3175:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3175:23:10"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "3169:5:10"
},
"nodeType": "YulFunctionCall",
"src": "3169:30:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3134:6:10"
},
"nodeType": "YulFunctionCall",
"src": "3134:66:10"
},
"nodeType": "YulExpressionStatement",
"src": "3134:66:10"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "3081:1:10"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3084:6:10"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "3078:2:10"
},
"nodeType": "YulFunctionCall",
"src": "3078:13:10"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "3092:19:10",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3094:15:10",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "3103:1:10"
},
{
"name": "_1",
"nodeType": "YulIdentifier",
"src": "3106:2:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3099:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3099:10:10"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "3094:1:10"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "3074:3:10",
"statements": []
},
"src": "3070:140:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3244:69:10",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3273:9:10"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3284:6:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3269:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3269:22:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3293:2:10",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3265:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3265:31:10"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3298:4:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3258:6:10"
},
"nodeType": "YulFunctionCall",
"src": "3258:45:10"
},
"nodeType": "YulExpressionStatement",
"src": "3258:45:10"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "3225:1:10"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3228:6:10"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "3222:2:10"
},
"nodeType": "YulFunctionCall",
"src": "3222:13:10"
},
"nodeType": "YulIf",
"src": "3219:2:10"
},
{
"nodeType": "YulAssignment",
"src": "3322:62:10",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3338:9:10"
},
{
"arguments": [
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3357:6:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3365:2:10",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3353:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3353:15:10"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3374:2:10",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "3370:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3370:7:10"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "3349:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3349:29:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3334:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3334:45:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3381:2:10",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3330:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3330:54:10"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3322:4:10"
}
]
}
]
},
"name": "abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2877:9:10",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2888:6:10",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "2899:4:10",
"type": ""
}
],
"src": "2787:603:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3569:160:10",
"statements": [
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3586:9:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3597:2:10",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3579:6:10"
},
"nodeType": "YulFunctionCall",
"src": "3579:21:10"
},
"nodeType": "YulExpressionStatement",
"src": "3579:21:10"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3620:9:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3631:2:10",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3616:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3616:18:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3636:2:10",
"type": "",
"value": "10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3609:6:10"
},
"nodeType": "YulFunctionCall",
"src": "3609:30:10"
},
"nodeType": "YulExpressionStatement",
"src": "3609:30:10"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3659:9:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3670:2:10",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3655:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3655:18:10"
},
{
"kind": "string",
"nodeType": "YulLiteral",
"src": "3675:12:10",
"type": "",
"value": "OVER_QUOTA"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3648:6:10"
},
"nodeType": "YulFunctionCall",
"src": "3648:40:10"
},
"nodeType": "YulExpressionStatement",
"src": "3648:40:10"
},
{
"nodeType": "YulAssignment",
"src": "3697:26:10",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3709:9:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3720:2:10",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3705:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3705:18:10"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3697:4:10"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_6f39c67a7a081400b5a9a547476a33c7c2ccf5b9b9ee9e4216eb0eb15e7c534f__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3546:9:10",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "3560:4:10",
"type": ""
}
],
"src": "3395:334:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3908:157:10",
"statements": [
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3925:9:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3936:2:10",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3918:6:10"
},
"nodeType": "YulFunctionCall",
"src": "3918:21:10"
},
"nodeType": "YulExpressionStatement",
"src": "3918:21:10"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3959:9:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3970:2:10",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3955:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3955:18:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3975:1:10",
"type": "",
"value": "8"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3948:6:10"
},
"nodeType": "YulFunctionCall",
"src": "3948:29:10"
},
"nodeType": "YulExpressionStatement",
"src": "3948:29:10"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3997:9:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4008:2:10",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3993:3:10"
},
"nodeType": "YulFunctionCall",
"src": "3993:18:10"
},
{
"kind": "string",
"nodeType": "YulLiteral",
"src": "4013:10:10",
"type": "",
"value": "ONLY_NFT"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3986:6:10"
},
"nodeType": "YulFunctionCall",
"src": "3986:38:10"
},
"nodeType": "YulExpressionStatement",
"src": "3986:38:10"
},
{
"nodeType": "YulAssignment",
"src": "4033:26:10",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4045:9:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4056:2:10",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4041:3:10"
},
"nodeType": "YulFunctionCall",
"src": "4041:18:10"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4033:4:10"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_81bfeaf55ebb6e34611a6a025c5b587bbcbadde3f0d6b203c36037aff9db5863__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3885:9:10",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "3899:4:10",
"type": ""
}
],
"src": "3734:331:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4171:76:10",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4181:26:10",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4193:9:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4204:2:10",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4189:3:10"
},
"nodeType": "YulFunctionCall",
"src": "4189:18:10"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "4181:4:10"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4223:9:10"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "4234:6:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4216:6:10"
},
"nodeType": "YulFunctionCall",
"src": "4216:25:10"
},
"nodeType": "YulExpressionStatement",
"src": "4216:25:10"
}
]
},
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "4140:9:10",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "4151:6:10",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "4162:4:10",
"type": ""
}
],
"src": "4070:177:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4300:80:10",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4327:22:10",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "4329:16:10"
},
"nodeType": "YulFunctionCall",
"src": "4329:18:10"
},
"nodeType": "YulExpressionStatement",
"src": "4329:18:10"
}
]
},
"condition": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "4316:1:10"
},
{
"arguments": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "4323:1:10"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "4319:3:10"
},
"nodeType": "YulFunctionCall",
"src": "4319:6:10"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "4313:2:10"
},
"nodeType": "YulFunctionCall",
"src": "4313:13:10"
},
"nodeType": "YulIf",
"src": "4310:2:10"
},
{
"nodeType": "YulAssignment",
"src": "4358:16:10",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "4369:1:10"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "4372:1:10"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4365:3:10"
},
"nodeType": "YulFunctionCall",
"src": "4365:9:10"
},
"variableNames": [
{
"name": "sum",
"nodeType": "YulIdentifier",
"src": "4358:3:10"
}
]
}
]
},
"name": "checked_add_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nodeType": "YulTypedName",
"src": "4283:1:10",
"type": ""
},
{
"name": "y",
"nodeType": "YulTypedName",
"src": "4286:1:10",
"type": ""
}
],
"returnVariables": [
{
"name": "sum",
"nodeType": "YulTypedName",
"src": "4292:3:10",
"type": ""
}
],
"src": "4252:128:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4431:74:10",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4454:22:10",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x12",
"nodeType": "YulIdentifier",
"src": "4456:16:10"
},
"nodeType": "YulFunctionCall",
"src": "4456:18:10"
},
"nodeType": "YulExpressionStatement",
"src": "4456:18:10"
}
]
},
"condition": {
"arguments": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "4451:1:10"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "4444:6:10"
},
"nodeType": "YulFunctionCall",
"src": "4444:9:10"
},
"nodeType": "YulIf",
"src": "4441:2:10"
},
{
"nodeType": "YulAssignment",
"src": "4485:14:10",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "4494:1:10"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "4497:1:10"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "4490:3:10"
},
"nodeType": "YulFunctionCall",
"src": "4490:9:10"
},
"variableNames": [
{
"name": "r",
"nodeType": "YulIdentifier",
"src": "4485:1:10"
}
]
}
]
},
"name": "checked_div_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nodeType": "YulTypedName",
"src": "4416:1:10",
"type": ""
},
{
"name": "y",
"nodeType": "YulTypedName",
"src": "4419:1:10",
"type": ""
}
],
"returnVariables": [
{
"name": "r",
"nodeType": "YulTypedName",
"src": "4425:1:10",
"type": ""
}
],
"src": "4385:120:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4562:116:10",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4621:22:10",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "4623:16:10"
},
"nodeType": "YulFunctionCall",
"src": "4623:18:10"
},
"nodeType": "YulExpressionStatement",
"src": "4623:18:10"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "4593:1:10"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "4586:6:10"
},
"nodeType": "YulFunctionCall",
"src": "4586:9:10"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "4579:6:10"
},
"nodeType": "YulFunctionCall",
"src": "4579:17:10"
},
{
"arguments": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "4601:1:10"
},
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4612:1:10",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "4608:3:10"
},
"nodeType": "YulFunctionCall",
"src": "4608:6:10"
},
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "4616:1:10"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "4604:3:10"
},
"nodeType": "YulFunctionCall",
"src": "4604:14:10"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "4598:2:10"
},
"nodeType": "YulFunctionCall",
"src": "4598:21:10"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4575:3:10"
},
"nodeType": "YulFunctionCall",
"src": "4575:45:10"
},
"nodeType": "YulIf",
"src": "4572:2:10"
},
{
"nodeType": "YulAssignment",
"src": "4652:20:10",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "4667:1:10"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "4670:1:10"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "4663:3:10"
},
"nodeType": "YulFunctionCall",
"src": "4663:9:10"
},
"variableNames": [
{
"name": "product",
"nodeType": "YulIdentifier",
"src": "4652:7:10"
}
]
}
]
},
"name": "checked_mul_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nodeType": "YulTypedName",
"src": "4541:1:10",
"type": ""
},
{
"name": "y",
"nodeType": "YulTypedName",
"src": "4544:1:10",
"type": ""
}
],
"returnVariables": [
{
"name": "product",
"nodeType": "YulTypedName",
"src": "4550:7:10",
"type": ""
}
],
"src": "4510:168:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4732:76:10",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4754:22:10",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "4756:16:10"
},
"nodeType": "YulFunctionCall",
"src": "4756:18:10"
},
"nodeType": "YulExpressionStatement",
"src": "4756:18:10"
}
]
},
"condition": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "4748:1:10"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "4751:1:10"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "4745:2:10"
},
"nodeType": "YulFunctionCall",
"src": "4745:8:10"
},
"nodeType": "YulIf",
"src": "4742:2:10"
},
{
"nodeType": "YulAssignment",
"src": "4785:17:10",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "4797:1:10"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "4800:1:10"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "4793:3:10"
},
"nodeType": "YulFunctionCall",
"src": "4793:9:10"
},
"variableNames": [
{
"name": "diff",
"nodeType": "YulIdentifier",
"src": "4785:4:10"
}
]
}
]
},
"name": "checked_sub_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nodeType": "YulTypedName",
"src": "4714:1:10",
"type": ""
},
{
"name": "y",
"nodeType": "YulTypedName",
"src": "4717:1:10",
"type": ""
}
],
"returnVariables": [
{
"name": "diff",
"nodeType": "YulTypedName",
"src": "4723:4:10",
"type": ""
}
],
"src": "4683:125:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4860:88:10",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4891:22:10",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "4893:16:10"
},
"nodeType": "YulFunctionCall",
"src": "4893:18:10"
},
"nodeType": "YulExpressionStatement",
"src": "4893:18:10"
}
]
},
"condition": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "4876:5:10"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4887:1:10",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "4883:3:10"
},
"nodeType": "YulFunctionCall",
"src": "4883:6:10"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "4873:2:10"
},
"nodeType": "YulFunctionCall",
"src": "4873:17:10"
},
"nodeType": "YulIf",
"src": "4870:2:10"
},
{
"nodeType": "YulAssignment",
"src": "4922:20:10",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "4933:5:10"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4940:1:10",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4929:3:10"
},
"nodeType": "YulFunctionCall",
"src": "4929:13:10"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "4922:3:10"
}
]
}
]
},
"name": "increment_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "4842:5:10",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "4852:3:10",
"type": ""
}
],
"src": "4813:135:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4991:74:10",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "5014:22:10",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x12",
"nodeType": "YulIdentifier",
"src": "5016:16:10"
},
"nodeType": "YulFunctionCall",
"src": "5016:18:10"
},
"nodeType": "YulExpressionStatement",
"src": "5016:18:10"
}
]
},
"condition": {
"arguments": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5011:1:10"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "5004:6:10"
},
"nodeType": "YulFunctionCall",
"src": "5004:9:10"
},
"nodeType": "YulIf",
"src": "5001:2:10"
},
{
"nodeType": "YulAssignment",
"src": "5045:14:10",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "5054:1:10"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "5057:1:10"
}
],
"functionName": {
"name": "mod",
"nodeType": "YulIdentifier",
"src": "5050:3:10"
},
"nodeType": "YulFunctionCall",
"src": "5050:9:10"
},
"variableNames": [
{
"name": "r",
"nodeType": "YulIdentifier",
"src": "5045:1:10"
}
]
}
]
},
"name": "mod_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nodeType": "YulTypedName",
"src": "4976:1:10",
"type": ""
},
{
"name": "y",
"nodeType": "YulTypedName",
"src": "4979:1:10",
"type": ""
}
],
"returnVariables": [
{
"name": "r",
"nodeType": "YulTypedName",
"src": "4985:1:10",
"type": ""
}
],
"src": "4953:112:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5102:95:10",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5119:1:10",
"type": "",
"value": "0"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5126:3:10",
"type": "",
"value": "224"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5131:10:10",
"type": "",
"value": "0x4e487b71"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "5122:3:10"
},
"nodeType": "YulFunctionCall",
"src": "5122:20:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5112:6:10"
},
"nodeType": "YulFunctionCall",
"src": "5112:31:10"
},
"nodeType": "YulExpressionStatement",
"src": "5112:31:10"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5159:1:10",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5162:4:10",
"type": "",
"value": "0x11"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5152:6:10"
},
"nodeType": "YulFunctionCall",
"src": "5152:15:10"
},
"nodeType": "YulExpressionStatement",
"src": "5152:15:10"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5183:1:10",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5186:4:10",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "5176:6:10"
},
"nodeType": "YulFunctionCall",
"src": "5176:15:10"
},
"nodeType": "YulExpressionStatement",
"src": "5176:15:10"
}
]
},
"name": "panic_error_0x11",
"nodeType": "YulFunctionDefinition",
"src": "5070:127:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5234:95:10",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5251:1:10",
"type": "",
"value": "0"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5258:3:10",
"type": "",
"value": "224"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5263:10:10",
"type": "",
"value": "0x4e487b71"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "5254:3:10"
},
"nodeType": "YulFunctionCall",
"src": "5254:20:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5244:6:10"
},
"nodeType": "YulFunctionCall",
"src": "5244:31:10"
},
"nodeType": "YulExpressionStatement",
"src": "5244:31:10"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5291:1:10",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5294:4:10",
"type": "",
"value": "0x12"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5284:6:10"
},
"nodeType": "YulFunctionCall",
"src": "5284:15:10"
},
"nodeType": "YulExpressionStatement",
"src": "5284:15:10"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5315:1:10",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5318:4:10",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "5308:6:10"
},
"nodeType": "YulFunctionCall",
"src": "5308:15:10"
},
"nodeType": "YulExpressionStatement",
"src": "5308:15:10"
}
]
},
"name": "panic_error_0x12",
"nodeType": "YulFunctionDefinition",
"src": "5202:127:10"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5366:95:10",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5383:1:10",
"type": "",
"value": "0"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5390:3:10",
"type": "",
"value": "224"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5395:10:10",
"type": "",
"value": "0x4e487b71"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "5386:3:10"
},
"nodeType": "YulFunctionCall",
"src": "5386:20:10"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5376:6:10"
},
"nodeType": "YulFunctionCall",
"src": "5376:31:10"
},
"nodeType": "YulExpressionStatement",
"src": "5376:31:10"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5423:1:10",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5426:4:10",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5416:6:10"
},
"nodeType": "YulFunctionCall",
"src": "5416:15:10"
},
"nodeType": "YulExpressionStatement",
"src": "5416:15:10"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5447:1:10",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5450:4:10",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "5440:6:10"
},
"nodeType": "YulFunctionCall",
"src": "5440:15:10"
},
"nodeType": "YulExpressionStatement",
"src": "5440:15:10"
}
]
},
"name": "panic_error_0x41",
"nodeType": "YulFunctionDefinition",
"src": "5334:127:10"
}
]
},
"contents": "{\n { }\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(value0, value0) }\n let value := calldataload(headStart)\n if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(value0, value0) }\n value0 := value\n }\n function abi_decode_tuple_t_array$_t_uint256_$19_memory_ptr(headStart, dataEnd) -> value0\n {\n let _1 := 608\n if slt(sub(dataEnd, headStart), _1) { revert(value0, value0) }\n if iszero(slt(add(headStart, 0x1f), dataEnd)) { revert(value0, value0) }\n let memPtr := mload(64)\n let newFreePtr := add(memPtr, _1)\n if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }\n mstore(64, newFreePtr)\n let dst := memPtr\n let src := headStart\n if gt(add(headStart, _1), dataEnd) { revert(value0, value0) }\n let i := value0\n for { } lt(i, 0x13) { i := add(i, 1) }\n {\n mstore(dst, calldataload(src))\n let _2 := 0x20\n dst := add(dst, _2)\n src := add(src, _2)\n }\n value0 := memPtr\n }\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(value0, value0) }\n value0 := calldataload(headStart)\n }\n function abi_decode_tuple_t_uint256t_uint256(headStart, dataEnd) -> value0, value1\n {\n if slt(sub(dataEnd, headStart), 64) { revert(value1, value1) }\n value0 := calldataload(headStart)\n value1 := calldataload(add(headStart, 32))\n }\n function abi_encode_tuple_packed_t_uint256_t_address__to_t_uint256_t_address__nonPadded_inplace_fromStack_reversed(pos, value1, value0) -> end\n {\n mstore(pos, value0)\n mstore(add(pos, 32), and(shl(96, value1), not(0xffffffffffffffffffffffff)))\n end := add(pos, 52)\n }\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, and(value0, sub(shl(160, 1), 1)))\n }\n function abi_encode_tuple_t_array$_t_uint256_$dyn_memory_ptr__to_t_array$_t_uint256_$dyn_memory_ptr__fromStack_reversed(headStart, value0) -> tail\n {\n let _1 := 32\n let tail_1 := add(headStart, _1)\n mstore(headStart, _1)\n let pos := tail_1\n let length := mload(value0)\n mstore(tail_1, length)\n pos := add(headStart, 64)\n let srcPtr := add(value0, _1)\n let i := tail\n for { } lt(i, length) { i := add(i, 1) }\n {\n mstore(pos, mload(srcPtr))\n pos := add(pos, _1)\n srcPtr := add(srcPtr, _1)\n }\n tail := pos\n }\n function abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed(headStart, value0) -> tail\n {\n let _1 := 32\n mstore(headStart, _1)\n let length := mload(value0)\n mstore(add(headStart, _1), length)\n let i := tail\n for { } lt(i, length) { i := add(i, _1) }\n {\n mstore(add(add(headStart, i), 64), mload(add(add(value0, i), _1)))\n }\n if gt(i, length)\n {\n mstore(add(add(headStart, length), 64), tail)\n }\n tail := add(add(headStart, and(add(length, 31), not(31))), 64)\n }\n function abi_encode_tuple_t_stringliteral_6f39c67a7a081400b5a9a547476a33c7c2ccf5b9b9ee9e4216eb0eb15e7c534f__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 10)\n mstore(add(headStart, 64), \"OVER_QUOTA\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_stringliteral_81bfeaf55ebb6e34611a6a025c5b587bbcbadde3f0d6b203c36037aff9db5863__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 8)\n mstore(add(headStart, 64), \"ONLY_NFT\")\n tail := add(headStart, 96)\n }\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, value0)\n }\n function checked_add_t_uint256(x, y) -> sum\n {\n if gt(x, not(y)) { panic_error_0x11() }\n sum := add(x, y)\n }\n function checked_div_t_uint256(x, y) -> r\n {\n if iszero(y) { panic_error_0x12() }\n r := div(x, y)\n }\n function checked_mul_t_uint256(x, y) -> product\n {\n if and(iszero(iszero(x)), gt(y, div(not(0), x))) { panic_error_0x11() }\n product := mul(x, y)\n }\n function checked_sub_t_uint256(x, y) -> diff\n {\n if lt(x, y) { panic_error_0x11() }\n diff := sub(x, y)\n }\n function increment_t_uint256(value) -> ret\n {\n if eq(value, not(0)) { panic_error_0x11() }\n ret := add(value, 1)\n }\n function mod_t_uint256(x, y) -> r\n {\n if iszero(y) { panic_error_0x12() }\n r := mod(x, y)\n }\n function panic_error_0x11()\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n function panic_error_0x12()\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x12)\n revert(0, 0x24)\n }\n function panic_error_0x41()\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n}",
"id": 10,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "608060405234801561001057600080fd5b50600436106101005760003560e01c8063bc58bf3211610097578063efbda67011610066578063efbda670146101e6578063f2fde38b146101f9578063f3fe3bc31461020c578063fe4397df1461021457610100565b8063bc58bf32146101a5578063c5b63bc8146101b8578063cad02c00146101cb578063ec000bb5146101de57610100565b8063860d248a116100d3578063860d248a1461015e5780638da5cb5b14610173578063947b4d6714610188578063aacc5a171461019d57610100565b8063460b7343146101055780636f89e4091461012e578063742694e01461014357806376cc99dd14610156575b600080fd5b610118610113366004610977565b610227565b6040516101259190610ac1565b60405180910390f35b610136610248565b60405161012591906109e4565b610118610151366004610977565b6102a0565b6101366102b0565b610166610306565b6040516101259190610a28565b61017b610328565b60405161012591906109d0565b61019b6101963660046108f2565b610337565b005b610118610418565b61019b6101b33660046108f2565b61044b565b6101186101c6366004610977565b61050f565b6101186101d936600461098f565b61051f565b6101366105ef565b61019b6101f43660046108f2565b610645565b61019b6102073660046108c4565b610709565b6101666107f3565b61019b61022236600461098f565b610815565b6001818154811061023757600080fd5b600091825260209091200154905081565b6060600380548060200260200160405190810160405280929190818152602001828054801561029657602002820191906000526020600020905b815481526020019060010190808311610282575b5050505050905090565b6003818154811061023757600080fd5b606060028054806020026020016040519081016040528092919081815260200182805480156102965760200282019190600052602060002090815481526020019060010190808311610282575050505050905090565b6040518060400160405280600681526020016518189c18181960d11b81525081565b6000546001600160a01b031681565b60005460408051808201909152600681526530313830303160d01b6020820152906001600160a01b031633146103895760405162461bcd60e51b81526004016103809190610a28565b60405180910390fd5b5060005b6013811015610414578181601381106103b657634e487b7160e01b600052603260045260246000fd5b60200201516103cc9066038d7ea4c68000610af6565b60016103d88382610aca565b815481106103f657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001558061040c81610b2c565b91505061038d565b5050565b6000423260405160200161042d9291906109b0565b6040516020818303038152906040528051906020012060001c905090565b60005460408051808201909152600681526530313830303160d01b6020820152906001600160a01b031633146104945760405162461bcd60e51b81526004016103809190610a28565b5060005b6013811015610414578181601381106104c157634e487b7160e01b600052603260045260246000fd5b602002015160036104d3836001610aca565b815481106104f157634e487b7160e01b600052603260045260246000fd5b6000918252602090912001558061050781610b2c565b915050610498565b6002818154811061023757600080fd5b6000806001848154811061054357634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600014156105635760009150506105e9565b60006002858154811061058657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050600061059d610418565b905060015b858110156105e4576105b5600a83610ae2565b91506105c18383610b47565b6105d2576105cf8486610aca565b94505b806105dc81610b2c565b9150506105a2565b505050505b92915050565b606060018054806020026020016040519081016040528092919081815260200182805480156102965760200282019190600052602060002090815481526020019060010190808311610282575050505050905090565b60005460408051808201909152600681526530313830303160d01b6020820152906001600160a01b0316331461068e5760405162461bcd60e51b81526004016103809190610a28565b5060005b6013811015610414578181601381106106bb57634e487b7160e01b600052603260045260246000fd5b602002015160026106cd836001610aca565b815481106106eb57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001558061070181610b2c565b915050610692565b60005460408051808201909152600681526530313830303160d01b6020820152906001600160a01b031633146107525760405162461bcd60e51b81526004016103809190610a28565b5060408051808201909152600681526518189c18181960d11b60208201526001600160a01b0382166107975760405162461bcd60e51b81526004016103809190610a28565b50600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6040518060400160405280600681526020016530313830303160d01b81525081565b333214156108355760405162461bcd60e51b815260040161038090610a9f565b806003838154811061085757634e487b7160e01b600052603260045260246000fd5b906000526020600020015410156108805760405162461bcd60e51b815260040161038090610a7b565b80600383815481106108a257634e487b7160e01b600052603260045260246000fd5b9060005260206000200160008282546108bb9190610b15565b90915550505050565b6000602082840312156108d5578081fd5b81356001600160a01b03811681146108eb578182fd5b9392505050565b6000610260808385031215610905578182fd5b83601f840112610913578182fd5b60405181810181811067ffffffffffffffff8211171561093557610935610b87565b6040528084838101871015610948578485fd5b8493505b601384101561096c5780358252600193909301926020918201910161094c565b509095945050505050565b600060208284031215610988578081fd5b5035919050565b600080604083850312156109a1578081fd5b50508035926020909101359150565b91825260601b6bffffffffffffffffffffffff1916602082015260340190565b6001600160a01b0391909116815260200190565b6020808252825182820181905260009190848201906040850190845b81811015610a1c57835183529284019291840191600101610a00565b50909695505050505050565b6000602080835283518082850152825b81811015610a5457858101830151858201604001528201610a38565b81811115610a655783604083870101525b50601f01601f1916929092016040019392505050565b6020808252600a90820152694f5645525f51554f544160b01b604082015260600190565b60208082526008908201526713d3931657d3919560c21b604082015260600190565b90815260200190565b60008219821115610add57610add610b5b565b500190565b600082610af157610af1610b71565b500490565b6000816000190483118215151615610b1057610b10610b5b565b500290565b600082821015610b2757610b27610b5b565b500390565b6000600019821415610b4057610b40610b5b565b5060010190565b600082610b5657610b56610b71565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220ebae55e0cfe5a303ec2e98e363108f8c8ab98ab811973fa61df6a229d800dad164736f6c63430008000033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x100 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xBC58BF32 GT PUSH2 0x97 JUMPI DUP1 PUSH4 0xEFBDA670 GT PUSH2 0x66 JUMPI DUP1 PUSH4 0xEFBDA670 EQ PUSH2 0x1E6 JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x1F9 JUMPI DUP1 PUSH4 0xF3FE3BC3 EQ PUSH2 0x20C JUMPI DUP1 PUSH4 0xFE4397DF EQ PUSH2 0x214 JUMPI PUSH2 0x100 JUMP JUMPDEST DUP1 PUSH4 0xBC58BF32 EQ PUSH2 0x1A5 JUMPI DUP1 PUSH4 0xC5B63BC8 EQ PUSH2 0x1B8 JUMPI DUP1 PUSH4 0xCAD02C00 EQ PUSH2 0x1CB JUMPI DUP1 PUSH4 0xEC000BB5 EQ PUSH2 0x1DE JUMPI PUSH2 0x100 JUMP JUMPDEST DUP1 PUSH4 0x860D248A GT PUSH2 0xD3 JUMPI DUP1 PUSH4 0x860D248A EQ PUSH2 0x15E JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0x173 JUMPI DUP1 PUSH4 0x947B4D67 EQ PUSH2 0x188 JUMPI DUP1 PUSH4 0xAACC5A17 EQ PUSH2 0x19D JUMPI PUSH2 0x100 JUMP JUMPDEST DUP1 PUSH4 0x460B7343 EQ PUSH2 0x105 JUMPI DUP1 PUSH4 0x6F89E409 EQ PUSH2 0x12E JUMPI DUP1 PUSH4 0x742694E0 EQ PUSH2 0x143 JUMPI DUP1 PUSH4 0x76CC99DD EQ PUSH2 0x156 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x118 PUSH2 0x113 CALLDATASIZE PUSH1 0x4 PUSH2 0x977 JUMP JUMPDEST PUSH2 0x227 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x125 SWAP2 SWAP1 PUSH2 0xAC1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x136 PUSH2 0x248 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x125 SWAP2 SWAP1 PUSH2 0x9E4 JUMP JUMPDEST PUSH2 0x118 PUSH2 0x151 CALLDATASIZE PUSH1 0x4 PUSH2 0x977 JUMP JUMPDEST PUSH2 0x2A0 JUMP JUMPDEST PUSH2 0x136 PUSH2 0x2B0 JUMP JUMPDEST PUSH2 0x166 PUSH2 0x306 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x125 SWAP2 SWAP1 PUSH2 0xA28 JUMP JUMPDEST PUSH2 0x17B PUSH2 0x328 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x125 SWAP2 SWAP1 PUSH2 0x9D0 JUMP JUMPDEST PUSH2 0x19B PUSH2 0x196 CALLDATASIZE PUSH1 0x4 PUSH2 0x8F2 JUMP JUMPDEST PUSH2 0x337 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x118 PUSH2 0x418 JUMP JUMPDEST PUSH2 0x19B PUSH2 0x1B3 CALLDATASIZE PUSH1 0x4 PUSH2 0x8F2 JUMP JUMPDEST PUSH2 0x44B JUMP JUMPDEST PUSH2 0x118 PUSH2 0x1C6 CALLDATASIZE PUSH1 0x4 PUSH2 0x977 JUMP JUMPDEST PUSH2 0x50F JUMP JUMPDEST PUSH2 0x118 PUSH2 0x1D9 CALLDATASIZE PUSH1 0x4 PUSH2 0x98F JUMP JUMPDEST PUSH2 0x51F JUMP JUMPDEST PUSH2 0x136 PUSH2 0x5EF JUMP JUMPDEST PUSH2 0x19B PUSH2 0x1F4 CALLDATASIZE PUSH1 0x4 PUSH2 0x8F2 JUMP JUMPDEST PUSH2 0x645 JUMP JUMPDEST PUSH2 0x19B PUSH2 0x207 CALLDATASIZE PUSH1 0x4 PUSH2 0x8C4 JUMP JUMPDEST PUSH2 0x709 JUMP JUMPDEST PUSH2 0x166 PUSH2 0x7F3 JUMP JUMPDEST PUSH2 0x19B PUSH2 0x222 CALLDATASIZE PUSH1 0x4 PUSH2 0x98F JUMP JUMPDEST PUSH2 0x815 JUMP JUMPDEST PUSH1 0x1 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x237 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 SWAP1 SWAP2 KECCAK256 ADD SLOAD SWAP1 POP DUP2 JUMP JUMPDEST PUSH1 0x60 PUSH1 0x3 DUP1 SLOAD DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD DUP1 ISZERO PUSH2 0x296 JUMPI PUSH1 0x20 MUL DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 DUP1 DUP4 GT PUSH2 0x282 JUMPI JUMPDEST POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x3 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x237 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x60 PUSH1 0x2 DUP1 SLOAD DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD DUP1 ISZERO PUSH2 0x296 JUMPI PUSH1 0x20 MUL DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 DUP2 SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 DUP1 DUP4 GT PUSH2 0x282 JUMPI POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0x18189C181819 PUSH1 0xD1 SHL DUP2 MSTORE POP DUP2 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND DUP2 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303138303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x389 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP2 SWAP1 PUSH2 0xA28 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP PUSH1 0x0 JUMPDEST PUSH1 0x13 DUP2 LT ISZERO PUSH2 0x414 JUMPI DUP2 DUP2 PUSH1 0x13 DUP2 LT PUSH2 0x3B6 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x20 MUL ADD MLOAD PUSH2 0x3CC SWAP1 PUSH7 0x38D7EA4C68000 PUSH2 0xAF6 JUMP JUMPDEST PUSH1 0x1 PUSH2 0x3D8 DUP4 DUP3 PUSH2 0xACA JUMP JUMPDEST DUP2 SLOAD DUP2 LT PUSH2 0x3F6 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 SWAP1 SWAP2 KECCAK256 ADD SSTORE DUP1 PUSH2 0x40C DUP2 PUSH2 0xB2C JUMP JUMPDEST SWAP2 POP POP PUSH2 0x38D JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 TIMESTAMP ORIGIN PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x42D SWAP3 SWAP2 SWAP1 PUSH2 0x9B0 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 PUSH1 0x0 SHR SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303138303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x494 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP2 SWAP1 PUSH2 0xA28 JUMP JUMPDEST POP PUSH1 0x0 JUMPDEST PUSH1 0x13 DUP2 LT ISZERO PUSH2 0x414 JUMPI DUP2 DUP2 PUSH1 0x13 DUP2 LT PUSH2 0x4C1 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x20 MUL ADD MLOAD PUSH1 0x3 PUSH2 0x4D3 DUP4 PUSH1 0x1 PUSH2 0xACA JUMP JUMPDEST DUP2 SLOAD DUP2 LT PUSH2 0x4F1 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 SWAP1 SWAP2 KECCAK256 ADD SSTORE DUP1 PUSH2 0x507 DUP2 PUSH2 0xB2C JUMP JUMPDEST SWAP2 POP POP PUSH2 0x498 JUMP JUMPDEST PUSH1 0x2 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x237 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x1 DUP5 DUP2 SLOAD DUP2 LT PUSH2 0x543 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD SLOAD SWAP1 POP DUP1 PUSH1 0x0 EQ ISZERO PUSH2 0x563 JUMPI PUSH1 0x0 SWAP2 POP POP PUSH2 0x5E9 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP6 DUP2 SLOAD DUP2 LT PUSH2 0x586 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD SLOAD SWAP1 POP PUSH1 0x0 PUSH2 0x59D PUSH2 0x418 JUMP JUMPDEST SWAP1 POP PUSH1 0x1 JUMPDEST DUP6 DUP2 LT ISZERO PUSH2 0x5E4 JUMPI PUSH2 0x5B5 PUSH1 0xA DUP4 PUSH2 0xAE2 JUMP JUMPDEST SWAP2 POP PUSH2 0x5C1 DUP4 DUP4 PUSH2 0xB47 JUMP JUMPDEST PUSH2 0x5D2 JUMPI PUSH2 0x5CF DUP5 DUP7 PUSH2 0xACA JUMP JUMPDEST SWAP5 POP JUMPDEST DUP1 PUSH2 0x5DC DUP2 PUSH2 0xB2C JUMP JUMPDEST SWAP2 POP POP PUSH2 0x5A2 JUMP JUMPDEST POP POP POP POP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x60 PUSH1 0x1 DUP1 SLOAD DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD DUP1 ISZERO PUSH2 0x296 JUMPI PUSH1 0x20 MUL DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 DUP2 SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 DUP1 DUP4 GT PUSH2 0x282 JUMPI POP POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303138303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x68E JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP2 SWAP1 PUSH2 0xA28 JUMP JUMPDEST POP PUSH1 0x0 JUMPDEST PUSH1 0x13 DUP2 LT ISZERO PUSH2 0x414 JUMPI DUP2 DUP2 PUSH1 0x13 DUP2 LT PUSH2 0x6BB JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x20 MUL ADD MLOAD PUSH1 0x2 PUSH2 0x6CD DUP4 PUSH1 0x1 PUSH2 0xACA JUMP JUMPDEST DUP2 SLOAD DUP2 LT PUSH2 0x6EB JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 SWAP2 DUP3 MSTORE PUSH1 0x20 SWAP1 SWAP2 KECCAK256 ADD SSTORE DUP1 PUSH2 0x701 DUP2 PUSH2 0xB2C JUMP JUMPDEST SWAP2 POP POP PUSH2 0x692 JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x303138303031 PUSH1 0xD0 SHL PUSH1 0x20 DUP3 ADD MSTORE SWAP1 PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND CALLER EQ PUSH2 0x752 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP2 SWAP1 PUSH2 0xA28 JUMP JUMPDEST POP PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x6 DUP2 MSTORE PUSH6 0x18189C181819 PUSH1 0xD1 SHL PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP3 AND PUSH2 0x797 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP2 SWAP1 PUSH2 0xA28 JUMP JUMPDEST POP PUSH1 0x0 DUP1 SLOAD PUSH1 0x40 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP6 AND SWAP4 SWAP3 AND SWAP2 PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 SWAP2 LOG3 PUSH1 0x0 DUP1 SLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB NOT AND PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x6 DUP2 MSTORE PUSH1 0x20 ADD PUSH6 0x303138303031 PUSH1 0xD0 SHL DUP2 MSTORE POP DUP2 JUMP JUMPDEST CALLER ORIGIN EQ ISZERO PUSH2 0x835 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP1 PUSH2 0xA9F JUMP JUMPDEST DUP1 PUSH1 0x3 DUP4 DUP2 SLOAD DUP2 LT PUSH2 0x857 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD SLOAD LT ISZERO PUSH2 0x880 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x380 SWAP1 PUSH2 0xA7B JUMP JUMPDEST DUP1 PUSH1 0x3 DUP4 DUP2 SLOAD DUP2 LT PUSH2 0x8A2 JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 ADD PUSH1 0x0 DUP3 DUP3 SLOAD PUSH2 0x8BB SWAP2 SWAP1 PUSH2 0xB15 JUMP JUMPDEST SWAP1 SWAP2 SSTORE POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x8D5 JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH2 0x8EB JUMPI DUP2 DUP3 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x260 DUP1 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x905 JUMPI DUP2 DUP3 REVERT JUMPDEST DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0x913 JUMPI DUP2 DUP3 REVERT JUMPDEST PUSH1 0x40 MLOAD DUP2 DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x935 JUMPI PUSH2 0x935 PUSH2 0xB87 JUMP JUMPDEST PUSH1 0x40 MSTORE DUP1 DUP5 DUP4 DUP2 ADD DUP8 LT ISZERO PUSH2 0x948 JUMPI DUP5 DUP6 REVERT JUMPDEST DUP5 SWAP4 POP JUMPDEST PUSH1 0x13 DUP5 LT ISZERO PUSH2 0x96C JUMPI DUP1 CALLDATALOAD DUP3 MSTORE PUSH1 0x1 SWAP4 SWAP1 SWAP4 ADD SWAP3 PUSH1 0x20 SWAP2 DUP3 ADD SWAP2 ADD PUSH2 0x94C JUMP JUMPDEST POP SWAP1 SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x988 JUMPI DUP1 DUP2 REVERT JUMPDEST POP CALLDATALOAD SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x9A1 JUMPI DUP1 DUP2 REVERT JUMPDEST POP POP DUP1 CALLDATALOAD SWAP3 PUSH1 0x20 SWAP1 SWAP2 ADD CALLDATALOAD SWAP2 POP JUMP JUMPDEST SWAP2 DUP3 MSTORE PUSH1 0x60 SHL PUSH12 0xFFFFFFFFFFFFFFFFFFFFFFFF NOT AND PUSH1 0x20 DUP3 ADD MSTORE PUSH1 0x34 ADD SWAP1 JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB SWAP2 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE DUP3 MLOAD DUP3 DUP3 ADD DUP2 SWAP1 MSTORE PUSH1 0x0 SWAP2 SWAP1 DUP5 DUP3 ADD SWAP1 PUSH1 0x40 DUP6 ADD SWAP1 DUP5 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xA1C JUMPI DUP4 MLOAD DUP4 MSTORE SWAP3 DUP5 ADD SWAP3 SWAP2 DUP5 ADD SWAP2 PUSH1 0x1 ADD PUSH2 0xA00 JUMP JUMPDEST POP SWAP1 SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP1 DUP4 MSTORE DUP4 MLOAD DUP1 DUP3 DUP6 ADD MSTORE DUP3 JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0xA54 JUMPI DUP6 DUP2 ADD DUP4 ADD MLOAD DUP6 DUP3 ADD PUSH1 0x40 ADD MSTORE DUP3 ADD PUSH2 0xA38 JUMP JUMPDEST DUP2 DUP2 GT ISZERO PUSH2 0xA65 JUMPI DUP4 PUSH1 0x40 DUP4 DUP8 ADD ADD MSTORE JUMPDEST POP PUSH1 0x1F ADD PUSH1 0x1F NOT AND SWAP3 SWAP1 SWAP3 ADD PUSH1 0x40 ADD SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE PUSH1 0xA SWAP1 DUP3 ADD MSTORE PUSH10 0x4F5645525F51554F5441 PUSH1 0xB0 SHL PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST PUSH1 0x20 DUP1 DUP3 MSTORE PUSH1 0x8 SWAP1 DUP3 ADD MSTORE PUSH8 0x13D3931657D39195 PUSH1 0xC2 SHL PUSH1 0x40 DUP3 ADD MSTORE PUSH1 0x60 ADD SWAP1 JUMP JUMPDEST SWAP1 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 NOT DUP3 GT ISZERO PUSH2 0xADD JUMPI PUSH2 0xADD PUSH2 0xB5B JUMP JUMPDEST POP ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0xAF1 JUMPI PUSH2 0xAF1 PUSH2 0xB71 JUMP JUMPDEST POP DIV SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 PUSH1 0x0 NOT DIV DUP4 GT DUP3 ISZERO ISZERO AND ISZERO PUSH2 0xB10 JUMPI PUSH2 0xB10 PUSH2 0xB5B JUMP JUMPDEST POP MUL SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 LT ISZERO PUSH2 0xB27 JUMPI PUSH2 0xB27 PUSH2 0xB5B JUMP JUMPDEST POP SUB SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x0 NOT DUP3 EQ ISZERO PUSH2 0xB40 JUMPI PUSH2 0xB40 PUSH2 0xB5B JUMP JUMPDEST POP PUSH1 0x1 ADD SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0xB56 JUMPI PUSH2 0xB56 PUSH2 0xB71 JUMP JUMPDEST POP MOD SWAP1 JUMP JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x12 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xEB 0xAE SSTORE 0xE0 0xCF 0xE5 LOG3 SUB 0xEC 0x2E SWAP9 0xE3 PUSH4 0x108F8C8A 0xB9 DUP11 0xB8 GT SWAP8 EXTCODEHASH 0xA6 SAR 0xF6 LOG2 0x29 0xD8 STOP 0xDA 0xD1 PUSH5 0x736F6C6343 STOP ADDMOD STOP STOP CALLER ",
"sourceMap": "233:2534:6:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;270:414;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1932:91;;;:::i;:::-;;;;;;;:::i;1548:181::-;;;;;;:::i;:::-;;:::i;1442:102::-;;;:::i;510:65:4:-;;;:::i;:::-;;;;;;;:::i;625:20::-;;;:::i;:::-;;;;;;;:::i;713:205:6:-;;;;;;:::i;:::-;;:::i;:::-;;2633:132;;;:::i;1734:194::-;;;;;;:::i;:::-;;:::i;1017:193::-;;;;;;:::i;:::-;;:::i;2244:385::-;;;;;;:::i;:::-;;:::i;922:91::-;;;:::i;1215:223::-;;;;;;:::i;:::-;;:::i;1417:241:4:-;;;;;;:::i;:::-;;:::i;455:51::-;;;:::i;2027:213:6:-;;;;;;:::i;:::-;;:::i;270:414::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;270:414:6;:::o;1932:91::-;1973:16;2004:14;1997:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1932:91;:::o;1548:181::-;;;;;;;;;;;;1442:102;1489:16;1520:19;1513:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1442:102;:::o;510:65:4:-;;;;;;;;;;;;;;-1:-1:-1;;;510:65:4;;;;:::o;625:20::-;;;-1:-1:-1;;;;;625:20:4;;:::o;713:205:6:-;1218:5:4;;1225:17;;;;;;;;;;;;-1:-1:-1;;;1225:17:4;;;;;-1:-1:-1;;;;;1218:5:4;1204:10;:19;1196:47;;;;-1:-1:-1;;;1196:47:4;;;;;;;;:::i;:::-;;;;;;;;;;790:13:6::1;785:129;817:16;809:5;:24;785:129;;;880:9;890:5;880:16;;;;;-1:-1:-1::0;;;880:16:6::1;;;;;;;;;;;;::::0;:27:::1;::::0;899:8:::1;880:27;:::i;:::-;852:14;867:9;:5:::0;852:14;867:9:::1;:::i;:::-;852:25;;;;;;-1:-1:-1::0;;;852:25:6::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;:55:::0;835:7;::::1;::::0;::::1;:::i;:::-;;;;785:129;;;;713:205:::0;:::o;2633:132::-;2674:7;2731:15;2748:9;2714:44;;;;;;;;;:::i;:::-;;;;;;;;;;;;;2704:55;;;;;;2696:64;;2689:71;;2633:132;:::o;1734:194::-;1218:5:4;;1225:17;;;;;;;;;;;;-1:-1:-1;;;1225:17:4;;;;;-1:-1:-1;;;;;1218:5:4;1204:10;:19;1196:47;;;;-1:-1:-1;;;1196:47:4;;;;;;;;:::i;:::-;;1811:13:6::1;1806:118;1838:16;1830:5;:24;1806:118;;;1901:9;1911:5;1901:16;;;;;-1:-1:-1::0;;;1901:16:6::1;;;;;;;;;;;;::::0;1873:14:::1;1888:9;:5:::0;1896:1:::1;1888:9;:::i;:::-;1873:25;;;;;;-1:-1:-1::0;;;1873:25:6::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;:44:::0;1856:7;::::1;::::0;::::1;:::i;:::-;;;;1806:118;;1017:193:::0;;;;;;;;;;;;2244:385;2309:15;2332:10;2345:14;2360:5;2345:21;;;;;;-1:-1:-1;;;2345:21:6;;;;;;;;;;;;;;;;;2332:34;;2376:5;2385:1;2376:10;2372:24;;;2395:1;2388:8;;;;;2372:24;2403:15;2421:19;2441:5;2421:26;;;;;;-1:-1:-1;;;2421:26:6;;;;;;;;;;;;;;;;;2403:44;;2453:11;2467;:9;:11::i;:::-;2453:25;-1:-1:-1;2503:1:6;2485:140;2514:8;2506:5;:16;2485:140;;;2550:11;2559:2;2550:6;:11;:::i;:::-;2541:20;-1:-1:-1;2573:19:6;2582:10;2541:20;2573:19;:::i;:::-;2569:49;;2599:19;2613:5;2599:19;;:::i;:::-;;;2569:49;2524:7;;;;:::i;:::-;;;;2485:140;;;;2244:385;;;;;;;;:::o;922:91::-;963:16;994:14;987:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;922:91;:::o;1215:223::-;1218:5:4;;1225:17;;;;;;;;;;;;-1:-1:-1;;;1225:17:4;;;;;-1:-1:-1;;;;;1218:5:4;1204:10;:19;1196:47;;;;-1:-1:-1;;;1196:47:4;;;;;;;;:::i;:::-;;1304:13:6::1;1299:135;1331:22;1323:5;:30;1299:135;;;1405:15;1421:5;1405:22;;;;;-1:-1:-1::0;;;1405:22:6::1;;;;;;;;;;;;::::0;1372:19:::1;1392:9;:5:::0;1400:1:::1;1392:9;:::i;:::-;1372:30;;;;;;-1:-1:-1::0;;;1372:30:6::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;:55:::0;1355:7;::::1;::::0;::::1;:::i;:::-;;;;1299:135;;1417:241:4::0;1218:5;;1225:17;;;;;;;;;;;;-1:-1:-1;;;1225:17:4;;;;;-1:-1:-1;;;;;1218:5:4;1204:10;:19;1196:47;;;;-1:-1:-1;;;1196:47:4;;;;;;;;:::i;:::-;-1:-1:-1;1549:31:4::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;1549:31:4::1;::::0;::::1;::::0;-1:-1:-1;;;;;1524:23:4;::::1;1516:65;;;;-1:-1:-1::0;;;1516:65:4::1;;;;;;;;:::i;:::-;-1:-1:-1::0;1613:5:4::1;::::0;;1592:38:::1;::::0;-1:-1:-1;;;;;1592:38:4;;::::1;::::0;1613:5;::::1;::::0;1592:38:::1;::::0;::::1;1636:5;:17:::0;;-1:-1:-1;;;;;;1636:17:4::1;-1:-1:-1::0;;;;;1636:17:4;;;::::1;::::0;;;::::1;::::0;;1417:241::o;455:51::-;;;;;;;;;;;;;;-1:-1:-1;;;455:51:4;;;;:::o;2027:213:6:-;2098:10;2112:9;2098:23;;2090:44;;;;-1:-1:-1;;;2090:44:6;;;;;;;:::i;:::-;2173:8;2148:14;2163:5;2148:21;;;;;;-1:-1:-1;;;2148:21:6;;;;;;;;;;;;;;;;;:33;;2140:56;;;;-1:-1:-1;;;2140:56:6;;;;;;;:::i;:::-;2227:8;2202:14;2217:5;2202:21;;;;;;-1:-1:-1;;;2202:21:6;;;;;;;;;;;;;;;;;:33;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;2027:213:6:o;14:306:10:-;;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;178:23;;-1:-1:-1;;;;;230:31:10;;220:42;;210:2;;281:6;273;266:22;210:2;309:5;84:236;-1:-1:-1;;;84:236:10:o;325:852::-;;439:3;483:2;471:9;462:7;458:23;454:32;451:2;;;504:6;496;489:22;451:2;558:7;551:4;540:9;536:20;532:34;522:2;;585:6;577;570:22;522:2;623;617:9;665:2;657:6;653:15;734:6;722:10;719:22;698:18;686:10;683:34;680:62;677:2;;;745:18;;:::i;:::-;781:2;774:22;816:6;842:9;866:18;;;863:31;-1:-1:-1;860:2:10;;;912:6;904;897:22;860:2;939:6;930:15;;954:192;968:4;965:1;962:11;954:192;;;1027:17;;1015:30;;988:1;981:9;;;;;1068:4;1092:12;;;;1124;954:192;;;-1:-1:-1;1165:6:10;;419:758;-1:-1:-1;;;;;419:758:10:o;1182:190::-;;1294:2;1282:9;1273:7;1269:23;1265:32;1262:2;;;1315:6;1307;1300:22;1262:2;-1:-1:-1;1343:23:10;;1252:120;-1:-1:-1;1252:120:10:o;1377:258::-;;;1506:2;1494:9;1485:7;1481:23;1477:32;1474:2;;;1527:6;1519;1512:22;1474:2;-1:-1:-1;;1555:23:10;;;1625:2;1610:18;;;1597:32;;-1:-1:-1;1464:171:10:o;1640:294::-;1797:19;;;1854:2;1850:15;-1:-1:-1;;1846:53:10;1841:2;1832:12;;1825:75;1925:2;1916:12;;1787:147::o;1939:203::-;-1:-1:-1;;;;;2103:32:10;;;;2085:51;;2073:2;2058:18;;2040:102::o;2147:635::-;2318:2;2370:21;;;2440:13;;2343:18;;;2462:22;;;2147:635;;2318:2;2541:15;;;;2515:2;2500:18;;;2147:635;2587:169;2601:6;2598:1;2595:13;2587:169;;;2662:13;;2650:26;;2731:15;;;;2696:12;;;;2623:1;2616:9;2587:169;;;-1:-1:-1;2773:3:10;;2298:484;-1:-1:-1;;;;;;2298:484:10:o;2787:603::-;;2928:2;2957;2946:9;2939:21;2989:6;2983:13;3032:6;3027:2;3016:9;3012:18;3005:34;3057:4;3070:140;3084:6;3081:1;3078:13;3070:140;;;3179:14;;;3175:23;;3169:30;3145:17;;;3164:2;3141:26;3134:66;3099:10;;3070:140;;;3228:6;3225:1;3222:13;3219:2;;;3298:4;3293:2;3284:6;3273:9;3269:22;3265:31;3258:45;3219:2;-1:-1:-1;3374:2:10;3353:15;-1:-1:-1;;3349:29:10;3334:45;;;;3381:2;3330:54;;2908:482;-1:-1:-1;;;2908:482:10:o;3395:334::-;3597:2;3579:21;;;3636:2;3616:18;;;3609:30;-1:-1:-1;;;3670:2:10;3655:18;;3648:40;3720:2;3705:18;;3569:160::o;3734:331::-;3936:2;3918:21;;;3975:1;3955:18;;;3948:29;-1:-1:-1;;;4008:2:10;3993:18;;3986:38;4056:2;4041:18;;3908:157::o;4070:177::-;4216:25;;;4204:2;4189:18;;4171:76::o;4252:128::-;;4323:1;4319:6;4316:1;4313:13;4310:2;;;4329:18;;:::i;:::-;-1:-1:-1;4365:9:10;;4300:80::o;4385:120::-;;4451:1;4441:2;;4456:18;;:::i;:::-;-1:-1:-1;4490:9:10;;4431:74::o;4510:168::-;;4616:1;4612;4608:6;4604:14;4601:1;4598:21;4593:1;4586:9;4579:17;4575:45;4572:2;;;4623:18;;:::i;:::-;-1:-1:-1;4663:9:10;;4562:116::o;4683:125::-;;4751:1;4748;4745:8;4742:2;;;4756:18;;:::i;:::-;-1:-1:-1;4793:9:10;;4732:76::o;4813:135::-;;-1:-1:-1;;4873:17:10;;4870:2;;;4893:18;;:::i;:::-;-1:-1:-1;4940:1:10;4929:13;;4860:88::o;4953:112::-;;5011:1;5001:2;;5016:18;;:::i;:::-;-1:-1:-1;5050:9:10;;4991:74::o;5070:127::-;5131:10;5126:3;5122:20;5119:1;5112:31;5162:4;5159:1;5152:15;5186:4;5183:1;5176:15;5202:127;5263:10;5258:3;5254:20;5251:1;5244:31;5294:4;5291:1;5284:15;5318:4;5315:1;5308:15;5334:127;5395:10;5390:3;5386:20;5383:1;5376:31;5426:4;5423:1;5416:15;5450:4;5447:1;5440:15"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "605400",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"CANNOT_TRANSFER_TO_ZERO_ADDRESS()": "infinite",
"DIFFICULTY_BY_LEVEL(uint256)": "2041",
"LIMIT_BY_LEVEL(uint256)": "2064",
"NOT_CURRENT_OWNER()": "infinite",
"PRIZE_BY_LEVEL(uint256)": "2020",
"decreaseLimit(uint256,uint256)": "23838",
"getDifficulties()": "infinite",
"getLimits()": "infinite",
"getPrize(uint256,uint256)": "infinite",
"getPrizes()": "infinite",
"getRandom()": "524",
"owner()": "1115",
"setDifficulties(uint256[19])": "infinite",
"setLimits(uint256[19])": "infinite",
"setPrizes(uint256[19])": "infinite",
"transferOwnership(address)": "infinite"
}
},
"methodIdentifiers": {
"CANNOT_TRANSFER_TO_ZERO_ADDRESS()": "860d248a",
"DIFFICULTY_BY_LEVEL(uint256)": "c5b63bc8",
"LIMIT_BY_LEVEL(uint256)": "742694e0",
"NOT_CURRENT_OWNER()": "f3fe3bc3",
"PRIZE_BY_LEVEL(uint256)": "460b7343",
"decreaseLimit(uint256,uint256)": "fe4397df",
"getDifficulties()": "76cc99dd",
"getLimits()": "6f89e409",
"getPrize(uint256,uint256)": "cad02c00",
"getPrizes()": "ec000bb5",
"getRandom()": "aacc5a17",
"owner()": "8da5cb5b",
"setDifficulties(uint256[19])": "efbda670",
"setLimits(uint256[19])": "bc58bf32",
"setPrizes(uint256[19])": "947b4d67",
"transferOwnership(address)": "f2fde38b"
}
},
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "CANNOT_TRANSFER_TO_ZERO_ADDRESS",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "DIFFICULTY_BY_LEVEL",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "LIMIT_BY_LEVEL",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "NOT_CURRENT_OWNER",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "PRIZE_BY_LEVEL",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "quantity",
"type": "uint256"
}
],
"name": "decreaseLimit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getDifficulties",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getLimits",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "quantity",
"type": "uint256"
}
],
"name": "getPrize",
"outputs": [
{
"internalType": "uint256",
"name": "totalPrize",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getPrizes",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRandom",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[19]",
"name": "newDifficulties",
"type": "uint256[19]"
}
],
"name": "setDifficulties",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[19]",
"name": "newLimits",
"type": "uint256[19]"
}
],
"name": "setLimits",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[19]",
"name": "newPrizes",
"type": "uint256[19]"
}
],
"name": "setPrizes",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "CANNOT_TRANSFER_TO_ZERO_ADDRESS",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "DIFFICULTY_BY_LEVEL",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "LIMIT_BY_LEVEL",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "NOT_CURRENT_OWNER",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "PRIZE_BY_LEVEL",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "quantity",
"type": "uint256"
}
],
"name": "decreaseLimit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getDifficulties",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getLimits",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "quantity",
"type": "uint256"
}
],
"name": "getPrize",
"outputs": [
{
"internalType": "uint256",
"name": "totalPrize",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getPrizes",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRandom",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[19]",
"name": "newDifficulties",
"type": "uint256[19]"
}
],
"name": "setDifficulties",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[19]",
"name": "newLimits",
"type": "uint256[19]"
}
],
"name": "setLimits",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[19]",
"name": "newPrizes",
"type": "uint256[19]"
}
],
"name": "setPrizes",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {
"transferOwnership(address)": {
"details": "Allows the current owner to transfer control of the contract to a newOwner.",
"params": {
"_newOwner": "The address to transfer ownership to."
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/2-prize-control.sol": "PrizeControl"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-address.sol": {
"keccak256": "0x97f6a04124fe48db2626e482e46c2ff690a177aeab6a0d60cf012e8ccedf4a2d",
"license": "MIT",
"urls": [
"bzz-raw://f170f84d1310a22270c5bd8785c64b3971a304f6920f61ccf58daf82ccfd0eea",
"dweb:/ipfs/QmeLfHAMQuKN429nC7QRJ5inXuFMLMvBiEKgEqzLX22WcU"
]
},
"contracts/0-context.sol": {
"keccak256": "0xa4eecf6a3c5cc74800fdd2ef1c81bf2cf3888d4e26909bf4dd2ade2da7b47894",
"license": "MIT",
"urls": [
"bzz-raw://5d793af57202a7bd84c39d2c62aa7fd0b013f98ace8f805e36feb3b52680f32e",
"dweb:/ipfs/QmTibEvGdmbJCQMpafgWit4VijTEeeDqwbiE6QhubJD2cK"
]
},
"contracts/0-erc721.sol": {
"keccak256": "0x3e9f93cfe735b96bfb8fa69c9a4fac4c91a7a97608e083f539e903e10e992437",
"license": "MIT",
"urls": [
"bzz-raw://04effbd1079d421b98504bfd114d55fe6dd1061acd63e4868bc393c32122fef0",
"dweb:/ipfs/Qmbem1vWx7c8aRUStUqhUCX1zbE9nqZCHd8QNzzv5dei12"
]
},
"contracts/0-ierc20.sol": {
"keccak256": "0xa8547ef7a4aabd9c15930d0caaedaf02826ec2345fa5015ba134b4087fd3eb06",
"license": "MIT",
"urls": [
"bzz-raw://ed005dc99628ad306463c7e1909c127fbedcb67ac3035c6ab6c69a438564665c",
"dweb:/ipfs/QmXWTqBYXuNoKq5NgKQE9CzUzBG39a84qTvYTkSMxLZV3f"
]
},
"contracts/0-ownable.sol": {
"keccak256": "0xa346d72b251c30370f443aa3e2e6bf337e3b4d6c373480cf29b2ddc513341f45",
"license": "MIT",
"urls": [
"bzz-raw://d08aa8ee19b94ec88b9c7dcc6d47e82cdb5d372cbdafba2d94b9112521ea0412",
"dweb:/ipfs/Qma7BX64Y4URhBE8EX7A3frWgbBVxEVySo8X4jxWRAxaVP"
]
},
"contracts/1-nf-token-metadata.sol": {
"keccak256": "0x963390921aed6d5224c3b208e5caf72e6704fe3a023dae7d8a2843bdbe0fc619",
"license": "MIT",
"urls": [
"bzz-raw://d409ee7fc38bba0f2e6b454d0bc205fd6ec976595c0f6e95559efc140df23f5d",
"dweb:/ipfs/QmNyHEQpvxFpzkLAT9xrpq3KgyzgVLL5oKDcNz5JTyZ99N"
]
},
"contracts/2-prize-control.sol": {
"keccak256": "0x1d798c6cfebc40caafc0c4c9c3661cac51d196b03f61d78b75ddda315ecbb862",
"license": "MIT",
"urls": [
"bzz-raw://2c9cfbd61c97d07488ba333fa63ced7f5a33e236a4108b80a0f21bf0a867eacd",
"dweb:/ipfs/QmVDqqMimMpBH6cWcAZPTSEtnWqHQ454nKGYLRokdCD29R"
]
},
"contracts/5-irandomizer.sol": {
"keccak256": "0xd766193b0506555319b1273a9af271be47a96614a9cd7d846e8ec9eeff68ae8f",
"license": "MIT",
"urls": [
"bzz-raw://94de7e04e1ef0b9add2abdb9f59a7c8b23ee8ef2ea3e40a81d1d0d7bec72776e",
"dweb:/ipfs/QmQCs9Di636EAgKXrtvRLBELTgRURn9mjcLkK1KXw8Z2sv"
]
},
"contracts/5-types.sol": {
"keccak256": "0xa9cf7d04a9b789c87fe72c24f4389d7a573cff0fc431151923353905b9db1d01",
"license": "MIT",
"urls": [
"bzz-raw://1d98bbe77e162465cbe550d11bede9a7f4ae1d2e253336e5a1abf8fec1e7f5f6",
"dweb:/ipfs/QmUw2yiAEwuoJvj2hzK3QqLFtPzssWVDujNw3X4MiY8SBH"
]
},
"contracts/6-token-uri-helper.sol": {
"keccak256": "0x62da25f069fc1f268a9e37c5b22b5ae8b2fcbad54849444aa8b902d709c9665c",
"license": "MIT",
"urls": [
"bzz-raw://2bfcd13a003cac158b21ef48e04b7311583e4b1ff71270c577391b4a47fb504d",
"dweb:/ipfs/QmadQgjwmPo1z4GEbsxidkWQtnxJpybssEoxC8k68pLzqj"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "608060405234801561001057600080fd5b506301ffc9a760e01b60009081526020527f67be87c3ff9960ca1e9cfac5cab2ff4747269cf9ed20c9b7306235ac35a491c5805460ff1916600117905560dd8061005b6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806301ffc9a714602d575b600080fd5b603c6038366004606f565b6050565b60405160479190609c565b60405180910390f35b6001600160e01b03191660009081526020819052604090205460ff1690565b600060208284031215607f578081fd5b81356001600160e01b0319811681146095578182fd5b9392505050565b90151581526020019056fea2646970667358221220f190c8d6b91dc821630b79c12293f78399bc80784350e5245ab5601d85c6833164736f6c63430008000033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH4 0x1FFC9A7 PUSH1 0xE0 SHL PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 MSTORE PUSH32 0x67BE87C3FF9960CA1E9CFAC5CAB2FF4747269CF9ED20C9B7306235AC35A491C5 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0x1 OR SWAP1 SSTORE PUSH1 0xDD DUP1 PUSH2 0x5B PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x28 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x1FFC9A7 EQ PUSH1 0x2D JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x3C PUSH1 0x38 CALLDATASIZE PUSH1 0x4 PUSH1 0x6F JUMP JUMPDEST PUSH1 0x50 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x47 SWAP2 SWAP1 PUSH1 0x9C JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH1 0x7F JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP2 AND DUP2 EQ PUSH1 0x95 JUMPI DUP2 DUP3 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 CALL SWAP1 0xC8 0xD6 0xB9 SAR 0xC8 0x21 PUSH4 0xB79C122 SWAP4 0xF7 DUP4 SWAP10 0xBC DUP1 PUSH25 0x4350E5245AB5601D85C6833164736F6C634300080000330000 ",
"sourceMap": "1955:689:2:-:0;;;2200:75;;;;;;;;;-1:-1:-1;;;;2222:19:2;:31;;;;;;:38;;-1:-1:-1;;2222:38:2;2256:4;2222:38;;;1955:689;;;;;;"
},
"deployedBytecode": {
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:514:3",
"statements": [
{
"nodeType": "YulBlock",
"src": "6:3:3",
"statements": []
},
{
"body": {
"nodeType": "YulBlock",
"src": "83:237:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "129:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "138:6:3"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "146:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "131:6:3"
},
"nodeType": "YulFunctionCall",
"src": "131:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "131:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "104:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "113:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "100:3:3"
},
"nodeType": "YulFunctionCall",
"src": "100:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "125:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "96:3:3"
},
"nodeType": "YulFunctionCall",
"src": "96:32:3"
},
"nodeType": "YulIf",
"src": "93:2:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "164:36:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "190:9:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "177:12:3"
},
"nodeType": "YulFunctionCall",
"src": "177:23:3"
},
"variables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "168:5:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "264:26:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "273:6:3"
},
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "281:6:3"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "266:6:3"
},
"nodeType": "YulFunctionCall",
"src": "266:22:3"
},
"nodeType": "YulExpressionStatement",
"src": "266:22:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "222:5:3"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "233:5:3"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "244:3:3",
"type": "",
"value": "224"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "249:10:3",
"type": "",
"value": "0xffffffff"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "240:3:3"
},
"nodeType": "YulFunctionCall",
"src": "240:20:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "229:3:3"
},
"nodeType": "YulFunctionCall",
"src": "229:32:3"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "219:2:3"
},
"nodeType": "YulFunctionCall",
"src": "219:43:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "212:6:3"
},
"nodeType": "YulFunctionCall",
"src": "212:51:3"
},
"nodeType": "YulIf",
"src": "209:2:3"
},
{
"nodeType": "YulAssignment",
"src": "299:15:3",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "309:5:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "299:6:3"
}
]
}
]
},
"name": "abi_decode_tuple_t_bytes4",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "49:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "60:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "72:6:3",
"type": ""
}
],
"src": "14:306:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "420:92:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "430:26:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "442:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "453:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "438:3:3"
},
"nodeType": "YulFunctionCall",
"src": "438:18:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "430:4:3"
}
]
},
{
"expression": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "472:9:3"
},
{
"arguments": [
{
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "497:6:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "490:6:3"
},
"nodeType": "YulFunctionCall",
"src": "490:14:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "483:6:3"
},
"nodeType": "YulFunctionCall",
"src": "483:22:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "465:6:3"
},
"nodeType": "YulFunctionCall",
"src": "465:41:3"
},
"nodeType": "YulExpressionStatement",
"src": "465:41:3"
}
]
},
"name": "abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "389:9:3",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "400:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "411:4:3",
"type": ""
}
],
"src": "325:187:3"
}
]
},
"contents": "{\n { }\n function abi_decode_tuple_t_bytes4(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(value0, value0) }\n let value := calldataload(headStart)\n if iszero(eq(value, and(value, shl(224, 0xffffffff)))) { revert(value0, value0) }\n value0 := value\n }\n function abi_encode_tuple_t_bool__to_t_bool__fromStack_reversed(headStart, value0) -> tail\n {\n tail := add(headStart, 32)\n mstore(headStart, iszero(iszero(value0)))\n }\n}",
"id": 3,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "6080604052348015600f57600080fd5b506004361060285760003560e01c806301ffc9a714602d575b600080fd5b603c6038366004606f565b6050565b60405160479190609c565b60405180910390f35b6001600160e01b03191660009081526020819052604090205460ff1690565b600060208284031215607f578081fd5b81356001600160e01b0319811681146095578182fd5b9392505050565b90151581526020019056fea2646970667358221220f190c8d6b91dc821630b79c12293f78399bc80784350e5245ab5601d85c6833164736f6c63430008000033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH1 0x28 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x1FFC9A7 EQ PUSH1 0x2D JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x3C PUSH1 0x38 CALLDATASIZE PUSH1 0x4 PUSH1 0x6F JUMP JUMPDEST PUSH1 0x50 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x47 SWAP2 SWAP1 PUSH1 0x9C JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT AND PUSH1 0x0 SWAP1 DUP2 MSTORE PUSH1 0x20 DUP2 SWAP1 MSTORE PUSH1 0x40 SWAP1 KECCAK256 SLOAD PUSH1 0xFF AND SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH1 0x7F JUMPI DUP1 DUP2 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xE0 SHL SUB NOT DUP2 AND DUP2 EQ PUSH1 0x95 JUMPI DUP2 DUP3 REVERT JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST SWAP1 ISZERO ISZERO DUP2 MSTORE PUSH1 0x20 ADD SWAP1 JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 CALL SWAP1 0xC8 0xD6 0xB9 SAR 0xC8 0x21 PUSH4 0xB79C122 SWAP4 0xF7 DUP4 SWAP10 0xBC DUP1 PUSH25 0x4350E5245AB5601D85C6833164736F6C634300080000330000 ",
"sourceMap": "1955:689:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2478:163;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;;2603:33:2;2582:4;2603:33;;;;;;;;;;;;;;2478:163::o;14:306:3:-;;125:2;113:9;104:7;100:23;96:32;93:2;;;146:6;138;131:22;93:2;177:23;;-1:-1:-1;;;;;;229:32:3;;219:43;;209:2;;281:6;273;266:22;209:2;309:5;83:237;-1:-1:-1;;;83:237:3:o;325:187::-;490:14;;483:22;465:41;;453:2;438:18;;420:92::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "44200",
"executionCost": "20944",
"totalCost": "65144"
},
"external": {
"supportsInterface(bytes4)": "1234"
}
},
"methodIdentifiers": {
"supportsInterface(bytes4)": "01ffc9a7"
}
},
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "_interfaceID",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "_interfaceID",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"details": "Implementation of standard for detect smart contract interfaces.",
"kind": "dev",
"methods": {
"constructor": {
"details": "Contract constructor."
},
"supportsInterface(bytes4)": {
"details": "Function to check which interfaces are suported by this contract.",
"params": {
"_interfaceID": "Id of the interface."
},
"returns": {
"_0": "True if _interfaceID is supported, false otherwise."
}
}
},
"stateVariables": {
"supportedInterfaces": {
"details": "Mapping of supported intefraces. You must not set element 0xffffffff to true."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/1-nf-token-metadata.sol": "SupportsInterface"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-address.sol": {
"keccak256": "0x97f6a04124fe48db2626e482e46c2ff690a177aeab6a0d60cf012e8ccedf4a2d",
"license": "MIT",
"urls": [
"bzz-raw://f170f84d1310a22270c5bd8785c64b3971a304f6920f61ccf58daf82ccfd0eea",
"dweb:/ipfs/QmeLfHAMQuKN429nC7QRJ5inXuFMLMvBiEKgEqzLX22WcU"
]
},
"contracts/0-erc721.sol": {
"keccak256": "0x3e9f93cfe735b96bfb8fa69c9a4fac4c91a7a97608e083f539e903e10e992437",
"license": "MIT",
"urls": [
"bzz-raw://04effbd1079d421b98504bfd114d55fe6dd1061acd63e4868bc393c32122fef0",
"dweb:/ipfs/Qmbem1vWx7c8aRUStUqhUCX1zbE9nqZCHd8QNzzv5dei12"
]
},
"contracts/1-nf-token-metadata.sol": {
"keccak256": "0x963390921aed6d5224c3b208e5caf72e6704fe3a023dae7d8a2843bdbe0fc619",
"license": "MIT",
"urls": [
"bzz-raw://d409ee7fc38bba0f2e6b454d0bc205fd6ec976595c0f6e95559efc140df23f5d",
"dweb:/ipfs/QmNyHEQpvxFpzkLAT9xrpq3KgyzgVLL5oKDcNz5JTyZ99N"
]
}
},
"version": 1
}
// this line is added to create a gist. Empty file is not allowed.
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "CANNOT_TRANSFER_TO_ZERO_ADDRESS",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "NOT_CURRENT_OWNER",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "level",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "hp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "mp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "st",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ag",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "it",
"type": "uint256"
},
{
"internalType": "enum Types.PetClass",
"name": "cl",
"type": "uint8"
}
],
"internalType": "struct Types.Pet",
"name": "pet",
"type": "tuple"
},
{
"internalType": "contract ERC721",
"name": "erc721",
"type": "address"
}
],
"name": "getURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "serverURL",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_serverURL",
"type": "string"
}
],
"name": "setServerURL",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "smallNumberToString",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "tokenIdToString",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {
"transferOwnership(address)": {
"details": "Allows the current owner to transfer control of the contract to a newOwner.",
"params": {
"_newOwner": "The address to transfer ownership to."
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/6-token-uri-helper.sol": "TokenURIHelper"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/0-context.sol": {
"keccak256": "0xa4eecf6a3c5cc74800fdd2ef1c81bf2cf3888d4e26909bf4dd2ade2da7b47894",
"license": "MIT",
"urls": [
"bzz-raw://5d793af57202a7bd84c39d2c62aa7fd0b013f98ace8f805e36feb3b52680f32e",
"dweb:/ipfs/QmTibEvGdmbJCQMpafgWit4VijTEeeDqwbiE6QhubJD2cK"
]
},
"contracts/0-erc721.sol": {
"keccak256": "0x3e9f93cfe735b96bfb8fa69c9a4fac4c91a7a97608e083f539e903e10e992437",
"license": "MIT",
"urls": [
"bzz-raw://04effbd1079d421b98504bfd114d55fe6dd1061acd63e4868bc393c32122fef0",
"dweb:/ipfs/Qmbem1vWx7c8aRUStUqhUCX1zbE9nqZCHd8QNzzv5dei12"
]
},
"contracts/0-ownable.sol": {
"keccak256": "0xa346d72b251c30370f443aa3e2e6bf337e3b4d6c373480cf29b2ddc513341f45",
"license": "MIT",
"urls": [
"bzz-raw://d08aa8ee19b94ec88b9c7dcc6d47e82cdb5d372cbdafba2d94b9112521ea0412",
"dweb:/ipfs/Qma7BX64Y4URhBE8EX7A3frWgbBVxEVySo8X4jxWRAxaVP"
]
},
"contracts/5-types.sol": {
"keccak256": "0xa9cf7d04a9b789c87fe72c24f4389d7a573cff0fc431151923353905b9db1d01",
"license": "MIT",
"urls": [
"bzz-raw://1d98bbe77e162465cbe550d11bede9a7f4ae1d2e253336e5a1abf8fec1e7f5f6",
"dweb:/ipfs/QmUw2yiAEwuoJvj2hzK3QqLFtPzssWVDujNw3X4MiY8SBH"
]
},
"contracts/6-token-uri-helper.sol": {
"keccak256": "0x62da25f069fc1f268a9e37c5b22b5ae8b2fcbad54849444aa8b902d709c9665c",
"license": "MIT",
"urls": [
"bzz-raw://2bfcd13a003cac158b21ef48e04b7311583e4b1ff71270c577391b4a47fb504d",
"dweb:/ipfs/QmadQgjwmPo1z4GEbsxidkWQtnxJpybssEoxC8k68pLzqj"
]
}
},
"version": 1
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"methodIdentifiers": {}
},
"abi": []
}
{
"compiler": {
"version": "0.8.0+commit.c7dfd78e"
},
"language": "Solidity",
"output": {
"abi": [],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/5-types.sol": "Types"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/5-types.sol": {
"keccak256": "0xa9cf7d04a9b789c87fe72c24f4389d7a573cff0fc431151923353905b9db1d01",
"license": "MIT",
"urls": [
"bzz-raw://1d98bbe77e162465cbe550d11bede9a7f4ae1d2e253336e5a1abf8fec1e7f5f6",
"dweb:/ipfs/QmUw2yiAEwuoJvj2hzK3QqLFtPzssWVDujNw3X4MiY8SBH"
]
}
},
"version": 1
}
// Right click on the script name and hit "Run" to execute
(async () => {
try {
console.log('Running deployWithEthers script...')
const contractName = 'Storage' // Change this for other contract
const constructorArgs = [] // Put constructor args (if any) here for your contract
// Note that the script needs the ABI which is generated from the compilation artifact.
// Make sure contract is compiled and artifacts are generated
const artifactsPath = `browser/contracts/artifacts/${contractName}.json` // Change this for different path
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.providers.Web3Provider(web3Provider)).getSigner()
let factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer);
let contract = await factory.deploy(...constructorArgs);
console.log('Contract Address: ', contract.address);
// The contract is NOT deployed yet; we must wait until it is mined
await contract.deployed()
console.log('Deployment successful.')
} catch (e) {
console.log(e.message)
}
})()
// Right click on the script name and hit "Run" to execute
(async () => {
try {
console.log('Running deployWithWeb3 script...')
const contractName = 'Storage' // Change this for other contract
const constructorArgs = [] // Put constructor args (if any) here for your contract
// Note that the script needs the ABI which is generated from the compilation artifact.
// Make sure contract is compiled and artifacts are generated
const artifactsPath = `browser/contracts/artifacts/${contractName}.json` // Change this for different path
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
const accounts = await web3.eth.getAccounts()
let contract = new web3.eth.Contract(metadata.abi)
contract = contract.deploy({
data: metadata.data.bytecode.object,
arguments: constructorArgs
})
const newContractInstance = await contract.send({
from: accounts[0],
gas: 1500000,
gasPrice: '30000000000'
})
console.log('Contract deployed at address: ', newContractInstance.options.address)
} catch (e) {
console.log(e.message)
}
})()
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "remix_tests.sol"; // this import is automatically injected by Remix.
import "../contracts/3_Ballot.sol";
contract BallotTest {
bytes32[] proposalNames;
Ballot ballotToTest;
function beforeAll () public {
proposalNames.push(bytes32("candidate1"));
ballotToTest = new Ballot(proposalNames);
}
function checkWinningProposal () public {
ballotToTest.vote(0);
Assert.equal(ballotToTest.winningProposal(), uint(0), "proposal at index 0 should be the winning proposal");
Assert.equal(ballotToTest.winnerName(), bytes32("candidate1"), "candidate1 should be the winner name");
}
function checkWinninProposalWithReturnValue () public view returns (bool) {
return ballotToTest.winningProposal() == 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment