-
-
Save rjcryptocoin/57853720d77324a3d8f1a3051131c040 to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol) | |
pragma solidity ^0.8.0; | |
import "./IERC721.sol"; | |
import "./IERC721Receiver.sol"; | |
import "./extensions/IERC721Metadata.sol"; | |
import "../../utils/Address.sol"; | |
import "../../utils/Context.sol"; | |
import "../../utils/Strings.sol"; | |
import "../../utils/introspection/ERC165.sol"; | |
/** | |
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including | |
* the Metadata extension, but not including the Enumerable extension, which is available separately as | |
* {ERC721Enumerable}. | |
*/ | |
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { | |
using Address for address; | |
using Strings for uint256; | |
// Token name | |
string private _name; | |
// Token symbol | |
string private _symbol; | |
// Mapping from token ID to owner address | |
mapping(uint256 => address) private _owners; | |
// Mapping owner address to token count | |
mapping(address => uint256) private _balances; | |
// Mapping from token ID to approved address | |
mapping(uint256 => address) private _tokenApprovals; | |
// Mapping from owner to operator approvals | |
mapping(address => mapping(address => bool)) private _operatorApprovals; | |
/** | |
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. | |
*/ | |
constructor(string memory name_, string memory symbol_) { | |
_name = name_; | |
_symbol = symbol_; | |
} | |
/** | |
* @dev See {IERC165-supportsInterface}. | |
*/ | |
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { | |
return | |
interfaceId == type(IERC721).interfaceId || | |
interfaceId == type(IERC721Metadata).interfaceId || | |
super.supportsInterface(interfaceId); | |
} | |
/** | |
* @dev See {IERC721-balanceOf}. | |
*/ | |
function balanceOf(address owner) public view virtual override returns (uint256) { | |
require(owner != address(0), "ERC721: address zero is not a valid owner"); | |
return _balances[owner]; | |
} | |
/** | |
* @dev See {IERC721-ownerOf}. | |
*/ | |
function ownerOf(uint256 tokenId) public view virtual override returns (address) { | |
address owner = _ownerOf(tokenId); | |
require(owner != address(0), "ERC721: invalid token ID"); | |
return owner; | |
} | |
/** | |
* @dev See {IERC721Metadata-name}. | |
*/ | |
function name() public view virtual override returns (string memory) { | |
return _name; | |
} | |
/** | |
* @dev See {IERC721Metadata-symbol}. | |
*/ | |
function symbol() public view virtual override returns (string memory) { | |
return _symbol; | |
} | |
/** | |
* @dev See {IERC721Metadata-tokenURI}. | |
*/ | |
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { | |
_requireMinted(tokenId); | |
string memory baseURI = _baseURI(); | |
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; | |
} | |
/** | |
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each | |
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty | |
* by default, can be overridden in child contracts. | |
*/ | |
function _baseURI() internal view virtual returns (string memory) { | |
return ""; | |
} | |
/** | |
* @dev See {IERC721-approve}. | |
*/ | |
function approve(address to, uint256 tokenId) public virtual override { | |
address owner = ERC721.ownerOf(tokenId); | |
require(to != owner, "ERC721: approval to current owner"); | |
require( | |
_msgSender() == owner || isApprovedForAll(owner, _msgSender()), | |
"ERC721: approve caller is not token owner or approved for all" | |
); | |
_approve(to, tokenId); | |
} | |
/** | |
* @dev See {IERC721-getApproved}. | |
*/ | |
function getApproved(uint256 tokenId) public view virtual override returns (address) { | |
_requireMinted(tokenId); | |
return _tokenApprovals[tokenId]; | |
} | |
/** | |
* @dev See {IERC721-setApprovalForAll}. | |
*/ | |
function setApprovalForAll(address operator, bool approved) public virtual override { | |
_setApprovalForAll(_msgSender(), operator, approved); | |
} | |
/** | |
* @dev See {IERC721-isApprovedForAll}. | |
*/ | |
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { | |
return _operatorApprovals[owner][operator]; | |
} | |
/** | |
* @dev See {IERC721-transferFrom}. | |
*/ | |
function transferFrom(address from, address to, uint256 tokenId) public virtual override { | |
//solhint-disable-next-line max-line-length | |
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); | |
_transfer(from, to, tokenId); | |
} | |
/** | |
* @dev See {IERC721-safeTransferFrom}. | |
*/ | |
function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { | |
safeTransferFrom(from, to, tokenId, ""); | |
} | |
/** | |
* @dev See {IERC721-safeTransferFrom}. | |
*/ | |
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override { | |
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); | |
_safeTransfer(from, to, tokenId, data); | |
} | |
/** | |
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients | |
* are aware of the ERC721 protocol to prevent tokens from being forever locked. | |
* | |
* `data` is additional data, it has no specified format and it is sent in call to `to`. | |
* | |
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. | |
* implement alternative mechanisms to perform token transfer, such as signature-based. | |
* | |
* Requirements: | |
* | |
* - `from` cannot be the zero address. | |
* - `to` cannot be the zero address. | |
* - `tokenId` token must exist and be owned by `from`. | |
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. | |
* | |
* Emits a {Transfer} event. | |
*/ | |
function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { | |
_transfer(from, to, tokenId); | |
require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); | |
} | |
/** | |
* @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist | |
*/ | |
function _ownerOf(uint256 tokenId) internal view virtual returns (address) { | |
return _owners[tokenId]; | |
} | |
/** | |
* @dev Returns whether `tokenId` exists. | |
* | |
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. | |
* | |
* Tokens start existing when they are minted (`_mint`), | |
* and stop existing when they are burned (`_burn`). | |
*/ | |
function _exists(uint256 tokenId) internal view virtual returns (bool) { | |
return _ownerOf(tokenId) != address(0); | |
} | |
/** | |
* @dev Returns whether `spender` is allowed to manage `tokenId`. | |
* | |
* Requirements: | |
* | |
* - `tokenId` must exist. | |
*/ | |
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { | |
address owner = ERC721.ownerOf(tokenId); | |
return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); | |
} | |
/** | |
* @dev Safely mints `tokenId` and transfers it to `to`. | |
* | |
* Requirements: | |
* | |
* - `tokenId` must not exist. | |
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. | |
* | |
* Emits a {Transfer} event. | |
*/ | |
function _safeMint(address to, uint256 tokenId) internal virtual { | |
_safeMint(to, tokenId, ""); | |
} | |
/** | |
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is | |
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients. | |
*/ | |
function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { | |
_mint(to, tokenId); | |
require( | |
_checkOnERC721Received(address(0), to, tokenId, data), | |
"ERC721: transfer to non ERC721Receiver implementer" | |
); | |
} | |
/** | |
* @dev Mints `tokenId` and transfers it to `to`. | |
* | |
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible | |
* | |
* Requirements: | |
* | |
* - `tokenId` must not exist. | |
* - `to` cannot be the zero address. | |
* | |
* Emits a {Transfer} event. | |
*/ | |
function _mint(address to, uint256 tokenId) internal virtual { | |
require(to != address(0), "ERC721: mint to the zero address"); | |
require(!_exists(tokenId), "ERC721: token already minted"); | |
_beforeTokenTransfer(address(0), to, tokenId, 1); | |
// Check that tokenId was not minted by `_beforeTokenTransfer` hook | |
require(!_exists(tokenId), "ERC721: token already minted"); | |
unchecked { | |
// Will not overflow unless all 2**256 token ids are minted to the same owner. | |
// Given that tokens are minted one by one, it is impossible in practice that | |
// this ever happens. Might change if we allow batch minting. | |
// The ERC fails to describe this case. | |
_balances[to] += 1; | |
} | |
_owners[tokenId] = to; | |
emit Transfer(address(0), to, tokenId); | |
_afterTokenTransfer(address(0), to, tokenId, 1); | |
} | |
/** | |
* @dev Destroys `tokenId`. | |
* The approval is cleared when the token is burned. | |
* This is an internal function that does not check if the sender is authorized to operate on the token. | |
* | |
* Requirements: | |
* | |
* - `tokenId` must exist. | |
* | |
* Emits a {Transfer} event. | |
*/ | |
function _burn(uint256 tokenId) internal virtual { | |
address owner = ERC721.ownerOf(tokenId); | |
_beforeTokenTransfer(owner, address(0), tokenId, 1); | |
// Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook | |
owner = ERC721.ownerOf(tokenId); | |
// Clear approvals | |
delete _tokenApprovals[tokenId]; | |
unchecked { | |
// Cannot overflow, as that would require more tokens to be burned/transferred | |
// out than the owner initially received through minting and transferring in. | |
_balances[owner] -= 1; | |
} | |
delete _owners[tokenId]; | |
emit Transfer(owner, address(0), tokenId); | |
_afterTokenTransfer(owner, address(0), tokenId, 1); | |
} | |
/** | |
* @dev Transfers `tokenId` from `from` to `to`. | |
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender. | |
* | |
* Requirements: | |
* | |
* - `to` cannot be the zero address. | |
* - `tokenId` token must be owned by `from`. | |
* | |
* Emits a {Transfer} event. | |
*/ | |
function _transfer(address from, address to, uint256 tokenId) internal virtual { | |
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); | |
require(to != address(0), "ERC721: transfer to the zero address"); | |
_beforeTokenTransfer(from, to, tokenId, 1); | |
// Check that tokenId was not transferred by `_beforeTokenTransfer` hook | |
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); | |
// Clear approvals from the previous owner | |
delete _tokenApprovals[tokenId]; | |
unchecked { | |
// `_balances[from]` cannot overflow for the same reason as described in `_burn`: | |
// `from`'s balance is the number of token held, which is at least one before the current | |
// transfer. | |
// `_balances[to]` could overflow in the conditions described in `_mint`. That would require | |
// all 2**256 token ids to be minted, which in practice is impossible. | |
_balances[from] -= 1; | |
_balances[to] += 1; | |
} | |
_owners[tokenId] = to; | |
emit Transfer(from, to, tokenId); | |
_afterTokenTransfer(from, to, tokenId, 1); | |
} | |
/** | |
* @dev Approve `to` to operate on `tokenId` | |
* | |
* Emits an {Approval} event. | |
*/ | |
function _approve(address to, uint256 tokenId) internal virtual { | |
_tokenApprovals[tokenId] = to; | |
emit Approval(ERC721.ownerOf(tokenId), to, tokenId); | |
} | |
/** | |
* @dev Approve `operator` to operate on all of `owner` tokens | |
* | |
* Emits an {ApprovalForAll} event. | |
*/ | |
function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { | |
require(owner != operator, "ERC721: approve to caller"); | |
_operatorApprovals[owner][operator] = approved; | |
emit ApprovalForAll(owner, operator, approved); | |
} | |
/** | |
* @dev Reverts if the `tokenId` has not been minted yet. | |
*/ | |
function _requireMinted(uint256 tokenId) internal view virtual { | |
require(_exists(tokenId), "ERC721: invalid token ID"); | |
} | |
/** | |
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. | |
* The call is not executed if the target address is not a contract. | |
* | |
* @param from address representing the previous owner of the given token ID | |
* @param to target address that will receive the tokens | |
* @param tokenId uint256 ID of the token to be transferred | |
* @param data bytes optional data to send along with the call | |
* @return bool whether the call correctly returned the expected magic value | |
*/ | |
function _checkOnERC721Received( | |
address from, | |
address to, | |
uint256 tokenId, | |
bytes memory data | |
) private returns (bool) { | |
if (to.isContract()) { | |
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { | |
return retval == IERC721Receiver.onERC721Received.selector; | |
} catch (bytes memory reason) { | |
if (reason.length == 0) { | |
revert("ERC721: transfer to non ERC721Receiver implementer"); | |
} else { | |
/// @solidity memory-safe-assembly | |
assembly { | |
revert(add(32, reason), mload(reason)) | |
} | |
} | |
} | |
} else { | |
return true; | |
} | |
} | |
/** | |
* @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is | |
* used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. | |
* | |
* Calling conditions: | |
* | |
* - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. | |
* - When `from` is zero, the tokens will be minted for `to`. | |
* - When `to` is zero, ``from``'s tokens will be burned. | |
* - `from` and `to` are never both zero. | |
* - `batchSize` is non-zero. | |
* | |
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. | |
*/ | |
function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} | |
/** | |
* @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is | |
* used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. | |
* | |
* Calling conditions: | |
* | |
* - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. | |
* - When `from` is zero, the tokens were minted for `to`. | |
* - When `to` is zero, ``from``'s tokens were burned. | |
* - `from` and `to` are never both zero. | |
* - `batchSize` is non-zero. | |
* | |
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. | |
*/ | |
function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} | |
/** | |
* @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. | |
* | |
* WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant | |
* being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such | |
* that `ownerOf(tokenId)` is `a`. | |
*/ | |
// solhint-disable-next-line func-name-mixedcase | |
function __unsafe_increaseBalance(address account, uint256 amount) internal { | |
_balances[account] += amount; | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) | |
pragma solidity ^0.8.0; | |
import "../IERC721.sol"; | |
/** | |
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension | |
* @dev See https://eips.ethereum.org/EIPS/eip-721 | |
*/ | |
interface IERC721Metadata is IERC721 { | |
/** | |
* @dev Returns the token collection name. | |
*/ | |
function name() external view returns (string memory); | |
/** | |
* @dev Returns the token collection symbol. | |
*/ | |
function symbol() external view returns (string memory); | |
/** | |
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. | |
*/ | |
function tokenURI(uint256 tokenId) external view returns (string memory); | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol) | |
pragma solidity ^0.8.0; | |
import "../../utils/introspection/IERC165.sol"; | |
/** | |
* @dev Required interface of an ERC721 compliant contract. | |
*/ | |
interface IERC721 is IERC165 { | |
/** | |
* @dev Emitted when `tokenId` token is transferred from `from` to `to`. | |
*/ | |
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); | |
/** | |
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. | |
*/ | |
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); | |
/** | |
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. | |
*/ | |
event ApprovalForAll(address indexed owner, address indexed operator, bool approved); | |
/** | |
* @dev Returns the number of tokens in ``owner``'s account. | |
*/ | |
function balanceOf(address owner) external view returns (uint256 balance); | |
/** | |
* @dev Returns the owner of the `tokenId` token. | |
* | |
* Requirements: | |
* | |
* - `tokenId` must exist. | |
*/ | |
function ownerOf(uint256 tokenId) external view returns (address owner); | |
/** | |
* @dev Safely transfers `tokenId` token from `from` to `to`. | |
* | |
* Requirements: | |
* | |
* - `from` cannot be the zero address. | |
* - `to` cannot be the zero address. | |
* - `tokenId` token must exist and be owned by `from`. | |
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. | |
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. | |
* | |
* Emits a {Transfer} event. | |
*/ | |
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; | |
/** | |
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients | |
* are aware of the ERC721 protocol to prevent tokens from being forever locked. | |
* | |
* Requirements: | |
* | |
* - `from` cannot be the zero address. | |
* - `to` cannot be the zero address. | |
* - `tokenId` token must exist and be owned by `from`. | |
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. | |
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. | |
* | |
* Emits a {Transfer} event. | |
*/ | |
function safeTransferFrom(address from, address to, uint256 tokenId) external; | |
/** | |
* @dev Transfers `tokenId` token from `from` to `to`. | |
* | |
* WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 | |
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must | |
* understand this adds an external call which potentially creates a reentrancy vulnerability. | |
* | |
* Requirements: | |
* | |
* - `from` cannot be the zero address. | |
* - `to` cannot be the zero address. | |
* - `tokenId` token must be owned by `from`. | |
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. | |
* | |
* Emits a {Transfer} event. | |
*/ | |
function transferFrom(address from, address to, uint256 tokenId) external; | |
/** | |
* @dev Gives permission to `to` to transfer `tokenId` token to another account. | |
* The approval is cleared when the token is transferred. | |
* | |
* Only a single account can be approved at a time, so approving the zero address clears previous approvals. | |
* | |
* Requirements: | |
* | |
* - The caller must own the token or be an approved operator. | |
* - `tokenId` must exist. | |
* | |
* Emits an {Approval} event. | |
*/ | |
function approve(address to, uint256 tokenId) external; | |
/** | |
* @dev Approve or remove `operator` as an operator for the caller. | |
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. | |
* | |
* Requirements: | |
* | |
* - The `operator` cannot be the caller. | |
* | |
* Emits an {ApprovalForAll} event. | |
*/ | |
function setApprovalForAll(address operator, bool approved) external; | |
/** | |
* @dev Returns the account approved for `tokenId` token. | |
* | |
* Requirements: | |
* | |
* - `tokenId` must exist. | |
*/ | |
function getApproved(uint256 tokenId) external view returns (address operator); | |
/** | |
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. | |
* | |
* See {setApprovalForAll} | |
*/ | |
function isApprovedForAll(address owner, address operator) external view returns (bool); | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) | |
pragma solidity ^0.8.0; | |
/** | |
* @title ERC721 token receiver interface | |
* @dev Interface for any contract that wants to support safeTransfers | |
* from ERC721 asset contracts. | |
*/ | |
interface IERC721Receiver { | |
/** | |
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} | |
* by `operator` from `from`, this function is called. | |
* | |
* It must return its Solidity selector to confirm the token transfer. | |
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. | |
* | |
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. | |
*/ | |
function onERC721Received( | |
address operator, | |
address from, | |
uint256 tokenId, | |
bytes calldata data | |
) external returns (bytes4); | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) | |
pragma solidity ^0.8.1; | |
/** | |
* @dev Collection of functions related to the address type | |
*/ | |
library Address { | |
/** | |
* @dev Returns true if `account` is a contract. | |
* | |
* [IMPORTANT] | |
* ==== | |
* It is unsafe to assume that an address for which this function returns | |
* false is an externally-owned account (EOA) and not a contract. | |
* | |
* Among others, `isContract` will return false for the following | |
* types of addresses: | |
* | |
* - an externally-owned account | |
* - a contract in construction | |
* - an address where a contract will be created | |
* - an address where a contract lived, but was destroyed | |
* | |
* Furthermore, `isContract` will also return true if the target contract within | |
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`, | |
* which only has an effect at the end of a transaction. | |
* ==== | |
* | |
* [IMPORTANT] | |
* ==== | |
* You shouldn't rely on `isContract` to protect against flash loan attacks! | |
* | |
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets | |
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract | |
* constructor. | |
* ==== | |
*/ | |
function isContract(address account) internal view returns (bool) { | |
// This method relies on extcodesize/address.code.length, which returns 0 | |
// for contracts in construction, since the code is only stored at the end | |
// of the constructor execution. | |
return account.code.length > 0; | |
} | |
/** | |
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to | |
* `recipient`, forwarding all available gas and reverting on errors. | |
* | |
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost | |
* of certain opcodes, possibly making contracts go over the 2300 gas limit | |
* imposed by `transfer`, making them unable to receive funds via | |
* `transfer`. {sendValue} removes this limitation. | |
* | |
* https://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. | |
*/ | |
function sendValue(address payable recipient, uint256 amount) internal { | |
require(address(this).balance >= amount, "Address: insufficient balance"); | |
(bool success, ) = recipient.call{value: amount}(""); | |
require(success, "Address: unable to send value, recipient may have reverted"); | |
} | |
/** | |
* @dev Performs a Solidity function call using a low level `call`. A | |
* plain `call` is an unsafe replacement for a function call: use this | |
* function instead. | |
* | |
* If `target` reverts with a revert reason, it is bubbled up by this | |
* function (like regular Solidity function calls). | |
* | |
* Returns the raw returned data. To convert to the expected return value, | |
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. | |
* | |
* Requirements: | |
* | |
* - `target` must be a contract. | |
* - calling `target` with `data` must not revert. | |
* | |
* _Available since v3.1._ | |
*/ | |
function functionCall(address target, bytes memory data) internal returns (bytes memory) { | |
return functionCallWithValue(target, data, 0, "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"); | |
(bool success, bytes memory returndata) = target.call{value: value}(data); | |
return verifyCallResultFromTarget(target, success, returndata, errorMessage); | |
} | |
/** | |
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], | |
* but performing a static call. | |
* | |
* _Available since v3.3._ | |
*/ | |
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { | |
return functionStaticCall(target, data, "Address: low-level static call failed"); | |
} | |
/** | |
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], | |
* but performing a static call. | |
* | |
* _Available since v3.3._ | |
*/ | |
function functionStaticCall( | |
address target, | |
bytes memory data, | |
string memory errorMessage | |
) internal view returns (bytes memory) { | |
(bool success, bytes memory returndata) = target.staticcall(data); | |
return verifyCallResultFromTarget(target, success, returndata, errorMessage); | |
} | |
/** | |
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], | |
* but performing a delegate call. | |
* | |
* _Available since v3.4._ | |
*/ | |
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { | |
return functionDelegateCall(target, data, "Address: low-level delegate call failed"); | |
} | |
/** | |
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], | |
* but performing a delegate call. | |
* | |
* _Available since v3.4._ | |
*/ | |
function functionDelegateCall( | |
address target, | |
bytes memory data, | |
string memory errorMessage | |
) internal returns (bytes memory) { | |
(bool success, bytes memory returndata) = target.delegatecall(data); | |
return verifyCallResultFromTarget(target, success, returndata, errorMessage); | |
} | |
/** | |
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling | |
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. | |
* | |
* _Available since v4.8._ | |
*/ | |
function verifyCallResultFromTarget( | |
address target, | |
bool success, | |
bytes memory returndata, | |
string memory errorMessage | |
) internal view returns (bytes memory) { | |
if (success) { | |
if (returndata.length == 0) { | |
// only check isContract if the call was successful and the return data is empty | |
// otherwise we already know that it was a contract | |
require(isContract(target), "Address: call to non-contract"); | |
} | |
return returndata; | |
} else { | |
_revert(returndata, errorMessage); | |
} | |
} | |
/** | |
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the | |
* revert reason or using the provided one. | |
* | |
* _Available since v4.3._ | |
*/ | |
function verifyCallResult( | |
bool success, | |
bytes memory returndata, | |
string memory errorMessage | |
) internal pure returns (bytes memory) { | |
if (success) { | |
return returndata; | |
} else { | |
_revert(returndata, errorMessage); | |
} | |
} | |
function _revert(bytes memory returndata, string memory errorMessage) private pure { | |
// Look for revert reason and bubble it up if present | |
if (returndata.length > 0) { | |
// The easiest way to bubble the revert reason is using memory via assembly | |
/// @solidity memory-safe-assembly | |
assembly { | |
let returndata_size := mload(returndata) | |
revert(add(32, returndata), returndata_size) | |
} | |
} else { | |
revert(errorMessage); | |
} | |
} | |
} |
{ | |
"id": "6a91b3cbd98a3e68e5dea2f7b8f3ecdc", | |
"_format": "hh-sol-build-info-1", | |
"solcVersion": "0.8.18", | |
"solcLongVersion": "0.8.18+commit.87f61d96", | |
"input": { | |
"language": "Solidity", | |
"sources": { | |
".deps/npm/@openzeppelin/contracts/utils/Strings.sol": { | |
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\nimport \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n uint8 private constant _ADDRESS_LENGTH = 20;\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n /// @solidity memory-safe-assembly\n assembly {\n ptr := add(buffer, add(32, length))\n }\n while (true) {\n ptr--;\n /// @solidity memory-safe-assembly\n assembly {\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toString(int256 value) internal pure returns (string memory) {\n return string(abi.encodePacked(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value))));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n bytes memory buffer = new bytes(2 * length + 2);\n buffer[0] = \"0\";\n buffer[1] = \"x\";\n for (uint256 i = 2 * length + 1; i > 1; --i) {\n buffer[i] = _SYMBOLS[value & 0xf];\n value >>= 4;\n }\n require(value == 0, \"Strings: hex length insufficient\");\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return keccak256(bytes(a)) == keccak256(bytes(b));\n }\n}\n" | |
}, | |
".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol": { | |
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return a > b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return a < b ? a : b;\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // must be unchecked in order to support `n = type(int256).min`\n return uint256(n >= 0 ? n : -n);\n }\n }\n}\n" | |
}, | |
".deps/npm/@openzeppelin/contracts/utils/math/Math.sol": { | |
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Down, // Toward negative infinity\n Up, // Toward infinity\n Zero // Toward zero\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return a > b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two numbers.\n */\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\n return a < b ? a : b;\n }\n\n /**\n * @dev Returns the average of two numbers. The result is rounded towards\n * zero.\n */\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b) / 2 can overflow.\n return (a & b) + (a ^ b) / 2;\n }\n\n /**\n * @dev Returns the ceiling of the division of two numbers.\n *\n * This differs from standard division with `/` in that it rounds up instead\n * of rounding down.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b - 1) / b can overflow on addition, so we distribute.\n return a == 0 ? 0 : (a - 1) / b + 1;\n }\n\n /**\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n * with further edits by Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = prod1 * 2^256 + prod0.\n uint256 prod0; // Least significant 256 bits of the product\n uint256 prod1; // Most significant 256 bits of the product\n assembly {\n let mm := mulmod(x, y, not(0))\n prod0 := mul(x, y)\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n }\n\n // Handle non-overflow cases, 256 by 256 division.\n if (prod1 == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return prod0 / denominator;\n }\n\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\n require(denominator > prod1, \"Math: mulDiv overflow\");\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [prod1 prod0].\n uint256 remainder;\n assembly {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n prod1 := sub(prod1, gt(remainder, prod0))\n prod0 := sub(prod0, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n // See https://cs.stackexchange.com/q/138556/92363.\n\n // Does not overflow because the denominator cannot be zero at this stage in the function.\n uint256 twos = denominator & (~denominator + 1);\n assembly {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [prod1 prod0] by twos.\n prod0 := div(prod0, twos)\n\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from prod1 into prod0.\n prod0 |= prod1 * twos;\n\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv = 1 mod 2^4.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n // in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n // is no longer required.\n result = prod0 * inverse;\n return result;\n }\n }\n\n /**\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n uint256 result = mulDiv(x, y, denominator);\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n result += 1;\n }\n return result;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n *\n * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n //\n // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n //\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n //\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n uint256 result = 1 << (log2(a) >> 1);\n\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n // into the expected uint128 result.\n unchecked {\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n result = (result + a / result) >> 1;\n return min(result, a / result);\n }\n }\n\n /**\n * @notice Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 2, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 128;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 64;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 32;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 16;\n }\n if (value >> 8 > 0) {\n value >>= 8;\n result += 8;\n }\n if (value >> 4 > 0) {\n value >>= 4;\n result += 4;\n }\n if (value >> 2 > 0) {\n value >>= 2;\n result += 2;\n }\n if (value >> 1 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 10, rounded down, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\n }\n }\n\n /**\n * @dev Return the log in base 256, rounded down, of a positive value.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >> 128 > 0) {\n value >>= 128;\n result += 16;\n }\n if (value >> 64 > 0) {\n value >>= 64;\n result += 8;\n }\n if (value >> 32 > 0) {\n value >>= 32;\n result += 4;\n }\n if (value >> 16 > 0) {\n value >>= 16;\n result += 2;\n }\n if (value >> 8 > 0) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\n }\n }\n}\n" | |
} | |
}, | |
"settings": { | |
"optimizer": { | |
"enabled": false, | |
"runs": 200 | |
}, | |
"outputSelection": { | |
"*": { | |
"": [ | |
"ast" | |
], | |
"*": [ | |
"abi", | |
"metadata", | |
"devdoc", | |
"userdoc", | |
"storageLayout", | |
"evm.legacyAssembly", | |
"evm.bytecode", | |
"evm.deployedBytecode", | |
"evm.methodIdentifiers", | |
"evm.gasEstimates", | |
"evm.assembly" | |
] | |
} | |
} | |
} | |
}, | |
"output": { | |
"contracts": { | |
".deps/npm/@openzeppelin/contracts/utils/Strings.sol": { | |
"Strings": { | |
"abi": [], | |
"devdoc": { | |
"details": "String operations.", | |
"kind": "dev", | |
"methods": {}, | |
"version": 1 | |
}, | |
"evm": { | |
"assembly": " /* \".deps/npm/@openzeppelin/contracts/utils/Strings.sol\":220:2779 library Strings {... */\n dataSize(sub_0)\n dataOffset(sub_0)\n 0x0b\n dup3\n dup3\n dup3\n codecopy\n dup1\n mload\n 0x00\n byte\n 0x73\n eq\n tag_1\n jumpi\n mstore(0x00, 0x4e487b7100000000000000000000000000000000000000000000000000000000)\n mstore(0x04, 0x00)\n revert(0x00, 0x24)\ntag_1:\n mstore(0x00, address)\n 0x73\n dup2\n mstore8\n dup3\n dup2\n return\nstop\n\nsub_0: assembly {\n /* \".deps/npm/@openzeppelin/contracts/utils/Strings.sol\":220:2779 library Strings {... */\n eq(address, deployTimeAddress())\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa264697066735822122004af087e7cfc141511c09ecb44889964dba39c326908a011ac5c95ef25b8093164736f6c63430008120033\n}\n", | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122004af087e7cfc141511c09ecb44889964dba39c326908a011ac5c95ef25b8093164736f6c63430008120033", | |
"opcodes": "PUSH1 0x56 PUSH1 0x50 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x43 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 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 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DIV 0xAF ADDMOD PUSH31 0x7CFC141511C09ECB44889964DBA39C326908A011AC5C95EF25B8093164736F PUSH13 0x63430008120033000000000000 ", | |
"sourceMap": "220:2559:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122004af087e7cfc141511c09ecb44889964dba39c326908a011ac5c95ef25b8093164736f6c63430008120033", | |
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DIV 0xAF ADDMOD PUSH31 0x7CFC141511C09ECB44889964DBA39C326908A011AC5C95EF25B8093164736F PUSH13 0x63430008120033000000000000 ", | |
"sourceMap": "220:2559:0:-:0;;;;;;;;" | |
}, | |
"gasEstimates": { | |
"creation": { | |
"codeDepositCost": "17200", | |
"executionCost": "97", | |
"totalCost": "17297" | |
}, | |
"internal": { | |
"equal(string memory,string memory)": "infinite", | |
"toHexString(address)": "infinite", | |
"toHexString(uint256)": "infinite", | |
"toHexString(uint256,uint256)": "infinite", | |
"toString(int256)": "infinite", | |
"toString(uint256)": "infinite" | |
} | |
}, | |
"legacyAssembly": { | |
".code": [ | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH #[$]", | |
"source": 0, | |
"value": "0000000000000000000000000000000000000000000000000000000000000000" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH [$]", | |
"source": 0, | |
"value": "0000000000000000000000000000000000000000000000000000000000000000" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "B" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "DUP3", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "DUP3", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "DUP3", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "CODECOPY", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "DUP1", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "MLOAD", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "0" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "BYTE", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "73" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "EQ", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH [tag]", | |
"source": 0, | |
"value": "1" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "JUMPI", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "4E487B7100000000000000000000000000000000000000000000000000000000" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "0" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "MSTORE", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "0" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "4" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "MSTORE", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "24" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "0" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "REVERT", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "tag", | |
"source": 0, | |
"value": "1" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "JUMPDEST", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "ADDRESS", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "0" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "MSTORE", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "73" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "DUP2", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "MSTORE8", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "DUP3", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "DUP2", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "RETURN", | |
"source": 0 | |
} | |
], | |
".data": { | |
"0": { | |
".auxdata": "a264697066735822122004af087e7cfc141511c09ecb44889964dba39c326908a011ac5c95ef25b8093164736f6c63430008120033", | |
".code": [ | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSHDEPLOYADDRESS", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "ADDRESS", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "EQ", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "80" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "40" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "MSTORE", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "PUSH", | |
"source": 0, | |
"value": "0" | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "DUP1", | |
"source": 0 | |
}, | |
{ | |
"begin": 220, | |
"end": 2779, | |
"name": "REVERT", | |
"source": 0 | |
} | |
] | |
} | |
}, | |
"sourceList": [ | |
".deps/npm/@openzeppelin/contracts/utils/Strings.sol", | |
".deps/npm/@openzeppelin/contracts/utils/math/Math.sol", | |
".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol", | |
"#utility.yul" | |
] | |
}, | |
"methodIdentifiers": {} | |
}, | |
"metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"String operations.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\".deps/npm/@openzeppelin/contracts/utils/Strings.sol\":\"Strings\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\".deps/npm/@openzeppelin/contracts/utils/Strings.sol\":{\"keccak256\":\"0x3088eb2868e8d13d89d16670b5f8612c4ab9ff8956272837d8e90106c59c14a0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b81d9ff6559ea5c47fc573e17ece6d9ba5d6839e213e6ebc3b4c5c8fe4199d7f\",\"dweb:/ipfs/QmPCW1bFisUzJkyjroY3yipwfism9RRCigCcK1hbXtVM8n\"]},\".deps/npm/@openzeppelin/contracts/utils/math/Math.sol\":{\"keccak256\":\"0xe4455ac1eb7fc497bb7402579e7b4d64d928b846fce7d2b6fde06d366f21c2b3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://cc8841b3cd48ad125e2f46323c8bad3aa0e88e399ec62acb9e57efa7e7c8058c\",\"dweb:/ipfs/QmSqE4mXHA2BXW58deDbXE8MTcsL5JSKNDbm23sVQxRLPS\"]},\".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol\":{\"keccak256\":\"0xf92515413956f529d95977adc9b0567d583c6203fc31ab1c23824c35187e3ddc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c50fcc459e49a9858b6d8ad5f911295cb7c9ab57567845a250bf0153f84a95c7\",\"dweb:/ipfs/QmcEW85JRzvDkQggxiBBLVAasXWdkhEysqypj9EaB6H2g6\"]}},\"version\":1}", | |
"storageLayout": { | |
"storage": [], | |
"types": null | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
} | |
}, | |
".deps/npm/@openzeppelin/contracts/utils/math/Math.sol": { | |
"Math": { | |
"abi": [], | |
"devdoc": { | |
"details": "Standard math utilities missing in the Solidity language.", | |
"kind": "dev", | |
"methods": {}, | |
"version": 1 | |
}, | |
"evm": { | |
"assembly": " /* \".deps/npm/@openzeppelin/contracts/utils/math/Math.sol\":202:12784 library Math {... */\n dataSize(sub_0)\n dataOffset(sub_0)\n 0x0b\n dup3\n dup3\n dup3\n codecopy\n dup1\n mload\n 0x00\n byte\n 0x73\n eq\n tag_1\n jumpi\n mstore(0x00, 0x4e487b7100000000000000000000000000000000000000000000000000000000)\n mstore(0x04, 0x00)\n revert(0x00, 0x24)\ntag_1:\n mstore(0x00, address)\n 0x73\n dup2\n mstore8\n dup3\n dup2\n return\nstop\n\nsub_0: assembly {\n /* \".deps/npm/@openzeppelin/contracts/utils/math/Math.sol\":202:12784 library Math {... */\n eq(address, deployTimeAddress())\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa2646970667358221220cc60d619142539c74ac21b6a23798f2730f0977b223eaa2401d029326ecd420864736f6c63430008120033\n}\n", | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220cc60d619142539c74ac21b6a23798f2730f0977b223eaa2401d029326ecd420864736f6c63430008120033", | |
"opcodes": "PUSH1 0x56 PUSH1 0x50 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x43 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 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 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xCC PUSH1 0xD6 NOT EQ 0x25 CODECOPY 0xC7 0x4A 0xC2 SHL PUSH11 0x23798F2730F0977B223EAA 0x24 ADD 0xD0 0x29 ORIGIN PUSH15 0xCD420864736F6C6343000812003300 ", | |
"sourceMap": "202:12582:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220cc60d619142539c74ac21b6a23798f2730f0977b223eaa2401d029326ecd420864736f6c63430008120033", | |
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xCC PUSH1 0xD6 NOT EQ 0x25 CODECOPY 0xC7 0x4A 0xC2 SHL PUSH11 0x23798F2730F0977B223EAA 0x24 ADD 0xD0 0x29 ORIGIN PUSH15 0xCD420864736F6C6343000812003300 ", | |
"sourceMap": "202:12582:1:-:0;;;;;;;;" | |
}, | |
"gasEstimates": { | |
"creation": { | |
"codeDepositCost": "17200", | |
"executionCost": "97", | |
"totalCost": "17297" | |
}, | |
"internal": { | |
"average(uint256,uint256)": "infinite", | |
"ceilDiv(uint256,uint256)": "infinite", | |
"log10(uint256)": "infinite", | |
"log10(uint256,enum Math.Rounding)": "infinite", | |
"log2(uint256)": "infinite", | |
"log2(uint256,enum Math.Rounding)": "infinite", | |
"log256(uint256)": "infinite", | |
"log256(uint256,enum Math.Rounding)": "infinite", | |
"max(uint256,uint256)": "infinite", | |
"min(uint256,uint256)": "infinite", | |
"mulDiv(uint256,uint256,uint256)": "infinite", | |
"mulDiv(uint256,uint256,uint256,enum Math.Rounding)": "infinite", | |
"sqrt(uint256)": "infinite", | |
"sqrt(uint256,enum Math.Rounding)": "infinite" | |
} | |
}, | |
"legacyAssembly": { | |
".code": [ | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH #[$]", | |
"source": 1, | |
"value": "0000000000000000000000000000000000000000000000000000000000000000" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH [$]", | |
"source": 1, | |
"value": "0000000000000000000000000000000000000000000000000000000000000000" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "B" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "DUP3", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "DUP3", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "DUP3", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "CODECOPY", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "DUP1", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "MLOAD", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "0" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "BYTE", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "73" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "EQ", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH [tag]", | |
"source": 1, | |
"value": "1" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "JUMPI", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "4E487B7100000000000000000000000000000000000000000000000000000000" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "0" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "MSTORE", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "0" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "4" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "MSTORE", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "24" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "0" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "REVERT", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "tag", | |
"source": 1, | |
"value": "1" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "JUMPDEST", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "ADDRESS", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "0" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "MSTORE", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "73" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "DUP2", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "MSTORE8", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "DUP3", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "DUP2", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "RETURN", | |
"source": 1 | |
} | |
], | |
".data": { | |
"0": { | |
".auxdata": "a2646970667358221220cc60d619142539c74ac21b6a23798f2730f0977b223eaa2401d029326ecd420864736f6c63430008120033", | |
".code": [ | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSHDEPLOYADDRESS", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "ADDRESS", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "EQ", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "80" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "40" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "MSTORE", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "PUSH", | |
"source": 1, | |
"value": "0" | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "DUP1", | |
"source": 1 | |
}, | |
{ | |
"begin": 202, | |
"end": 12784, | |
"name": "REVERT", | |
"source": 1 | |
} | |
] | |
} | |
}, | |
"sourceList": [ | |
".deps/npm/@openzeppelin/contracts/utils/Strings.sol", | |
".deps/npm/@openzeppelin/contracts/utils/math/Math.sol", | |
".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol", | |
"#utility.yul" | |
] | |
}, | |
"methodIdentifiers": {} | |
}, | |
"metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Standard math utilities missing in the Solidity language.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\".deps/npm/@openzeppelin/contracts/utils/math/Math.sol\":\"Math\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\".deps/npm/@openzeppelin/contracts/utils/math/Math.sol\":{\"keccak256\":\"0xe4455ac1eb7fc497bb7402579e7b4d64d928b846fce7d2b6fde06d366f21c2b3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://cc8841b3cd48ad125e2f46323c8bad3aa0e88e399ec62acb9e57efa7e7c8058c\",\"dweb:/ipfs/QmSqE4mXHA2BXW58deDbXE8MTcsL5JSKNDbm23sVQxRLPS\"]}},\"version\":1}", | |
"storageLayout": { | |
"storage": [], | |
"types": null | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
} | |
}, | |
".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol": { | |
"SignedMath": { | |
"abi": [], | |
"devdoc": { | |
"details": "Standard signed math utilities missing in the Solidity language.", | |
"kind": "dev", | |
"methods": {}, | |
"version": 1 | |
}, | |
"evm": { | |
"assembly": " /* \".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol\":215:1262 library SignedMath {... */\n dataSize(sub_0)\n dataOffset(sub_0)\n 0x0b\n dup3\n dup3\n dup3\n codecopy\n dup1\n mload\n 0x00\n byte\n 0x73\n eq\n tag_1\n jumpi\n mstore(0x00, 0x4e487b7100000000000000000000000000000000000000000000000000000000)\n mstore(0x04, 0x00)\n revert(0x00, 0x24)\ntag_1:\n mstore(0x00, address)\n 0x73\n dup2\n mstore8\n dup3\n dup2\n return\nstop\n\nsub_0: assembly {\n /* \".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol\":215:1262 library SignedMath {... */\n eq(address, deployTimeAddress())\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa26469706673582212201730d8873780b53529d8093e544019304ae1994a54bdbf295e1fbff413a93c7e64736f6c63430008120033\n}\n", | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212201730d8873780b53529d8093e544019304ae1994a54bdbf295e1fbff413a93c7e64736f6c63430008120033", | |
"opcodes": "PUSH1 0x56 PUSH1 0x50 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x43 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 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 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 OR ADDRESS 0xD8 DUP8 CALLDATACOPY DUP1 0xB5 CALLDATALOAD 0x29 0xD8 MULMOD RETURNDATACOPY SLOAD BLOCKHASH NOT ADDRESS 0x4A 0xE1 SWAP10 0x4A SLOAD 0xBD 0xBF 0x29 0x5E 0x1F 0xBF DELEGATECALL SGT 0xA9 EXTCODECOPY PUSH31 0x64736F6C634300081200330000000000000000000000000000000000000000 ", | |
"sourceMap": "215:1047:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212201730d8873780b53529d8093e544019304ae1994a54bdbf295e1fbff413a93c7e64736f6c63430008120033", | |
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 OR ADDRESS 0xD8 DUP8 CALLDATACOPY DUP1 0xB5 CALLDATALOAD 0x29 0xD8 MULMOD RETURNDATACOPY SLOAD BLOCKHASH NOT ADDRESS 0x4A 0xE1 SWAP10 0x4A SLOAD 0xBD 0xBF 0x29 0x5E 0x1F 0xBF DELEGATECALL SGT 0xA9 EXTCODECOPY PUSH31 0x64736F6C634300081200330000000000000000000000000000000000000000 ", | |
"sourceMap": "215:1047:2:-:0;;;;;;;;" | |
}, | |
"gasEstimates": { | |
"creation": { | |
"codeDepositCost": "17200", | |
"executionCost": "97", | |
"totalCost": "17297" | |
}, | |
"internal": { | |
"abs(int256)": "infinite", | |
"average(int256,int256)": "infinite", | |
"max(int256,int256)": "infinite", | |
"min(int256,int256)": "infinite" | |
} | |
}, | |
"legacyAssembly": { | |
".code": [ | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH #[$]", | |
"source": 2, | |
"value": "0000000000000000000000000000000000000000000000000000000000000000" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH [$]", | |
"source": 2, | |
"value": "0000000000000000000000000000000000000000000000000000000000000000" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "B" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "DUP3", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "DUP3", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "DUP3", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "CODECOPY", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "DUP1", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "MLOAD", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "0" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "BYTE", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "73" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "EQ", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH [tag]", | |
"source": 2, | |
"value": "1" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "JUMPI", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "4E487B7100000000000000000000000000000000000000000000000000000000" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "0" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "MSTORE", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "0" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "4" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "MSTORE", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "24" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "0" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "REVERT", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "tag", | |
"source": 2, | |
"value": "1" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "JUMPDEST", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "ADDRESS", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "0" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "MSTORE", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "73" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "DUP2", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "MSTORE8", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "DUP3", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "DUP2", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "RETURN", | |
"source": 2 | |
} | |
], | |
".data": { | |
"0": { | |
".auxdata": "a26469706673582212201730d8873780b53529d8093e544019304ae1994a54bdbf295e1fbff413a93c7e64736f6c63430008120033", | |
".code": [ | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSHDEPLOYADDRESS", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "ADDRESS", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "EQ", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "80" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "40" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "MSTORE", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "PUSH", | |
"source": 2, | |
"value": "0" | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "DUP1", | |
"source": 2 | |
}, | |
{ | |
"begin": 215, | |
"end": 1262, | |
"name": "REVERT", | |
"source": 2 | |
} | |
] | |
} | |
}, | |
"sourceList": [ | |
".deps/npm/@openzeppelin/contracts/utils/Strings.sol", | |
".deps/npm/@openzeppelin/contracts/utils/math/Math.sol", | |
".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol", | |
"#utility.yul" | |
] | |
}, | |
"methodIdentifiers": {} | |
}, | |
"metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Standard signed math utilities missing in the Solidity language.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol\":\"SignedMath\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol\":{\"keccak256\":\"0xf92515413956f529d95977adc9b0567d583c6203fc31ab1c23824c35187e3ddc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c50fcc459e49a9858b6d8ad5f911295cb7c9ab57567845a250bf0153f84a95c7\",\"dweb:/ipfs/QmcEW85JRzvDkQggxiBBLVAasXWdkhEysqypj9EaB6H2g6\"]}},\"version\":1}", | |
"storageLayout": { | |
"storage": [], | |
"types": null | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
} | |
} | |
}, | |
"sources": { | |
".deps/npm/@openzeppelin/contracts/utils/Strings.sol": { | |
"ast": { | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/utils/Strings.sol", | |
"exportedSymbols": { | |
"Math": [ | |
1094 | |
], | |
"SignedMath": [ | |
1199 | |
], | |
"Strings": [ | |
228 | |
] | |
}, | |
"id": 229, | |
"license": "MIT", | |
"nodeType": "SourceUnit", | |
"nodes": [ | |
{ | |
"id": 1, | |
"literals": [ | |
"solidity", | |
"^", | |
"0.8", | |
".0" | |
], | |
"nodeType": "PragmaDirective", | |
"src": "101:23:0" | |
}, | |
{ | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/utils/math/Math.sol", | |
"file": "./math/Math.sol", | |
"id": 2, | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "ImportDirective", | |
"scope": 229, | |
"sourceUnit": 1095, | |
"src": "126:25:0", | |
"symbolAliases": [], | |
"unitAlias": "" | |
}, | |
{ | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol", | |
"file": "./math/SignedMath.sol", | |
"id": 3, | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "ImportDirective", | |
"scope": 229, | |
"sourceUnit": 1200, | |
"src": "152:31:0", | |
"symbolAliases": [], | |
"unitAlias": "" | |
}, | |
{ | |
"abstract": false, | |
"baseContracts": [], | |
"canonicalName": "Strings", | |
"contractDependencies": [], | |
"contractKind": "library", | |
"documentation": { | |
"id": 4, | |
"nodeType": "StructuredDocumentation", | |
"src": "185:34:0", | |
"text": " @dev String operations." | |
}, | |
"fullyImplemented": true, | |
"id": 228, | |
"linearizedBaseContracts": [ | |
228 | |
], | |
"name": "Strings", | |
"nameLocation": "228:7:0", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"constant": true, | |
"id": 7, | |
"mutability": "constant", | |
"name": "_SYMBOLS", | |
"nameLocation": "267:8:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 228, | |
"src": "242:54:0", | |
"stateVariable": true, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes16", | |
"typeString": "bytes16" | |
}, | |
"typeName": { | |
"id": 5, | |
"name": "bytes16", | |
"nodeType": "ElementaryTypeName", | |
"src": "242:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes16", | |
"typeString": "bytes16" | |
} | |
}, | |
"value": { | |
"hexValue": "30313233343536373839616263646566", | |
"id": 6, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "string", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "278:18:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_stringliteral_cb29997ed99ead0db59ce4d12b7d3723198c827273e5796737c926d78019c39f", | |
"typeString": "literal_string \"0123456789abcdef\"" | |
}, | |
"value": "0123456789abcdef" | |
}, | |
"visibility": "private" | |
}, | |
{ | |
"constant": true, | |
"id": 10, | |
"mutability": "constant", | |
"name": "_ADDRESS_LENGTH", | |
"nameLocation": "325:15:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 228, | |
"src": "302:43:0", | |
"stateVariable": true, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
}, | |
"typeName": { | |
"id": 8, | |
"name": "uint8", | |
"nodeType": "ElementaryTypeName", | |
"src": "302:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
}, | |
"value": { | |
"hexValue": "3230", | |
"id": 9, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "343:2:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_20_by_1", | |
"typeString": "int_const 20" | |
}, | |
"value": "20" | |
}, | |
"visibility": "private" | |
}, | |
{ | |
"body": { | |
"id": 57, | |
"nodeType": "Block", | |
"src": "518:625:0", | |
"statements": [ | |
{ | |
"id": 56, | |
"nodeType": "UncheckedBlock", | |
"src": "528:609:0", | |
"statements": [ | |
{ | |
"assignments": [ | |
19 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 19, | |
"mutability": "mutable", | |
"name": "length", | |
"nameLocation": "560:6:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 56, | |
"src": "552:14:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 18, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "552:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 26, | |
"initialValue": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 25, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"arguments": [ | |
{ | |
"id": 22, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 13, | |
"src": "580:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"expression": { | |
"id": 20, | |
"name": "Math", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1094, | |
"src": "569:4:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_contract$_Math_$1094_$", | |
"typeString": "type(library Math)" | |
} | |
}, | |
"id": 21, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"memberLocation": "574:5:0", | |
"memberName": "log10", | |
"nodeType": "MemberAccess", | |
"referencedDeclaration": 931, | |
"src": "569:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", | |
"typeString": "function (uint256) pure returns (uint256)" | |
} | |
}, | |
"id": 23, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "569:17:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 24, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "589:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "569:21:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "552:38:0" | |
}, | |
{ | |
"assignments": [ | |
28 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 28, | |
"mutability": "mutable", | |
"name": "buffer", | |
"nameLocation": "618:6:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 56, | |
"src": "604:20:0", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 27, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "604:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 33, | |
"initialValue": { | |
"arguments": [ | |
{ | |
"id": 31, | |
"name": "length", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 19, | |
"src": "638:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 30, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "NewExpression", | |
"src": "627:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_string_memory_ptr_$", | |
"typeString": "function (uint256) pure returns (string memory)" | |
}, | |
"typeName": { | |
"id": 29, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "631:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
} | |
}, | |
"id": 32, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "627:18:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "604:41:0" | |
}, | |
{ | |
"assignments": [ | |
35 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 35, | |
"mutability": "mutable", | |
"name": "ptr", | |
"nameLocation": "667:3:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 56, | |
"src": "659:11:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 34, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "659:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 36, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "659:11:0" | |
}, | |
{ | |
"AST": { | |
"nodeType": "YulBlock", | |
"src": "740:67:0", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "758:35:0", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "buffer", | |
"nodeType": "YulIdentifier", | |
"src": "769:6:0" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "781:2:0", | |
"type": "", | |
"value": "32" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "785:6:0" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "777:3:0" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "777:15:0" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "765:3:0" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "765:28:0" | |
}, | |
"variableNames": [ | |
{ | |
"name": "ptr", | |
"nodeType": "YulIdentifier", | |
"src": "758:3:0" | |
} | |
] | |
} | |
] | |
}, | |
"documentation": "@solidity memory-safe-assembly", | |
"evmVersion": "paris", | |
"externalReferences": [ | |
{ | |
"declaration": 28, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "769:6:0", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 19, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "785:6:0", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 35, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "758:3:0", | |
"valueSize": 1 | |
} | |
], | |
"id": 37, | |
"nodeType": "InlineAssembly", | |
"src": "731:76:0" | |
}, | |
{ | |
"body": { | |
"id": 52, | |
"nodeType": "Block", | |
"src": "833:267:0", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 40, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "UnaryOperation", | |
"operator": "--", | |
"prefix": false, | |
"src": "851:5:0", | |
"subExpression": { | |
"id": 39, | |
"name": "ptr", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 35, | |
"src": "851:3:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 41, | |
"nodeType": "ExpressionStatement", | |
"src": "851:5:0" | |
}, | |
{ | |
"AST": { | |
"nodeType": "YulBlock", | |
"src": "934:84:0", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "ptr", | |
"nodeType": "YulIdentifier", | |
"src": "964:3:0" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "978:5:0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "985:2:0", | |
"type": "", | |
"value": "10" | |
} | |
], | |
"functionName": { | |
"name": "mod", | |
"nodeType": "YulIdentifier", | |
"src": "974:3:0" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "974:14:0" | |
}, | |
{ | |
"name": "_SYMBOLS", | |
"nodeType": "YulIdentifier", | |
"src": "990:8:0" | |
} | |
], | |
"functionName": { | |
"name": "byte", | |
"nodeType": "YulIdentifier", | |
"src": "969:4:0" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "969:30:0" | |
} | |
], | |
"functionName": { | |
"name": "mstore8", | |
"nodeType": "YulIdentifier", | |
"src": "956:7:0" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "956:44:0" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "956:44:0" | |
} | |
] | |
}, | |
"documentation": "@solidity memory-safe-assembly", | |
"evmVersion": "paris", | |
"externalReferences": [ | |
{ | |
"declaration": 7, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "990:8:0", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 35, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "964:3:0", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 13, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "978:5:0", | |
"valueSize": 1 | |
} | |
], | |
"id": 42, | |
"nodeType": "InlineAssembly", | |
"src": "925:93:0" | |
}, | |
{ | |
"expression": { | |
"id": 45, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 43, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 13, | |
"src": "1035:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "/=", | |
"rightHandSide": { | |
"hexValue": "3130", | |
"id": 44, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1044:2:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"src": "1035:11:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 46, | |
"nodeType": "ExpressionStatement", | |
"src": "1035:11:0" | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 49, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 47, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 13, | |
"src": "1068:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 48, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1077:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "1068:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 51, | |
"nodeType": "IfStatement", | |
"src": "1064:21:0", | |
"trueBody": { | |
"id": 50, | |
"nodeType": "Break", | |
"src": "1080:5:0" | |
} | |
} | |
] | |
}, | |
"condition": { | |
"hexValue": "74727565", | |
"id": 38, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "bool", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "827:4:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"value": "true" | |
}, | |
"id": 53, | |
"nodeType": "WhileStatement", | |
"src": "820:280:0" | |
}, | |
{ | |
"expression": { | |
"id": 54, | |
"name": "buffer", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 28, | |
"src": "1120:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
}, | |
"functionReturnParameters": 17, | |
"id": 55, | |
"nodeType": "Return", | |
"src": "1113:13:0" | |
} | |
] | |
} | |
] | |
}, | |
"documentation": { | |
"id": 11, | |
"nodeType": "StructuredDocumentation", | |
"src": "352:90:0", | |
"text": " @dev Converts a `uint256` to its ASCII `string` decimal representation." | |
}, | |
"id": 58, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "toString", | |
"nameLocation": "456:8:0", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 14, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 13, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "473:5:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 58, | |
"src": "465:13:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 12, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "465:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "464:15:0" | |
}, | |
"returnParameters": { | |
"id": 17, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 16, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 58, | |
"src": "503:13:0", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 15, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "503:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "502:15:0" | |
}, | |
"scope": 228, | |
"src": "447:696:0", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 85, | |
"nodeType": "Block", | |
"src": "1313:103:0", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"id": 72, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 70, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 61, | |
"src": "1354:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 71, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1362:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "1354:9:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"falseExpression": { | |
"hexValue": "", | |
"id": 74, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "string", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1372:2:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", | |
"typeString": "literal_string \"\"" | |
}, | |
"value": "" | |
}, | |
"id": 75, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "Conditional", | |
"src": "1354:20:0", | |
"trueExpression": { | |
"hexValue": "2d", | |
"id": 73, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "string", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1366:3:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_stringliteral_d3b8281179950f98149eefdb158d0e1acb56f56e8e343aa9fefafa7e36959561", | |
"typeString": "literal_string \"-\"" | |
}, | |
"value": "-" | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
}, | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"id": 79, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 61, | |
"src": "1400:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
], | |
"expression": { | |
"id": 77, | |
"name": "SignedMath", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1199, | |
"src": "1385:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_contract$_SignedMath_$1199_$", | |
"typeString": "type(library SignedMath)" | |
} | |
}, | |
"id": 78, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"memberLocation": "1396:3:0", | |
"memberName": "abs", | |
"nodeType": "MemberAccess", | |
"referencedDeclaration": 1198, | |
"src": "1385:14:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_pure$_t_int256_$returns$_t_uint256_$", | |
"typeString": "function (int256) pure returns (uint256)" | |
} | |
}, | |
"id": 80, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "1385:21:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 76, | |
"name": "toString", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
58, | |
86 | |
], | |
"referencedDeclaration": 58, | |
"src": "1376:8:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_string_memory_ptr_$", | |
"typeString": "function (uint256) pure returns (string memory)" | |
} | |
}, | |
"id": 81, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "1376:31:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
}, | |
{ | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
], | |
"expression": { | |
"id": 68, | |
"name": "abi", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 4294967295, | |
"src": "1337:3:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_magic_abi", | |
"typeString": "abi" | |
} | |
}, | |
"id": 69, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"memberLocation": "1341:12:0", | |
"memberName": "encodePacked", | |
"nodeType": "MemberAccess", | |
"src": "1337:16:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$", | |
"typeString": "function () pure returns (bytes memory)" | |
} | |
}, | |
"id": 82, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "1337:71:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_memory_ptr", | |
"typeString": "bytes memory" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_bytes_memory_ptr", | |
"typeString": "bytes memory" | |
} | |
], | |
"id": 67, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "1330:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_string_storage_ptr_$", | |
"typeString": "type(string storage pointer)" | |
}, | |
"typeName": { | |
"id": 66, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "1330:6:0", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 83, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "1330:79:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
}, | |
"functionReturnParameters": 65, | |
"id": 84, | |
"nodeType": "Return", | |
"src": "1323:86:0" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 59, | |
"nodeType": "StructuredDocumentation", | |
"src": "1149:89:0", | |
"text": " @dev Converts a `int256` to its ASCII `string` decimal representation." | |
}, | |
"id": 86, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "toString", | |
"nameLocation": "1252:8:0", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 62, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 61, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "1268:5:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 86, | |
"src": "1261:12:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"typeName": { | |
"id": 60, | |
"name": "int256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1261:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1260:14:0" | |
}, | |
"returnParameters": { | |
"id": 65, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 64, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 86, | |
"src": "1298:13:0", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 63, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "1298:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1297:15:0" | |
}, | |
"scope": 228, | |
"src": "1243:173:0", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 105, | |
"nodeType": "Block", | |
"src": "1595:100:0", | |
"statements": [ | |
{ | |
"id": 104, | |
"nodeType": "UncheckedBlock", | |
"src": "1605:84:0", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"id": 95, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 89, | |
"src": "1648:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 101, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"arguments": [ | |
{ | |
"id": 98, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 89, | |
"src": "1667:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"expression": { | |
"id": 96, | |
"name": "Math", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1094, | |
"src": "1655:4:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_contract$_Math_$1094_$", | |
"typeString": "type(library Math)" | |
} | |
}, | |
"id": 97, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"memberLocation": "1660:6:0", | |
"memberName": "log256", | |
"nodeType": "MemberAccess", | |
"referencedDeclaration": 1054, | |
"src": "1655:11:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", | |
"typeString": "function (uint256) pure returns (uint256)" | |
} | |
}, | |
"id": 99, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "1655:18:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 100, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1676:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "1655:22:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 94, | |
"name": "toHexString", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
106, | |
182, | |
202 | |
], | |
"referencedDeclaration": 182, | |
"src": "1636:11:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_string_memory_ptr_$", | |
"typeString": "function (uint256,uint256) pure returns (string memory)" | |
} | |
}, | |
"id": 102, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "1636:42:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
}, | |
"functionReturnParameters": 93, | |
"id": 103, | |
"nodeType": "Return", | |
"src": "1629:49:0" | |
} | |
] | |
} | |
] | |
}, | |
"documentation": { | |
"id": 87, | |
"nodeType": "StructuredDocumentation", | |
"src": "1422:94:0", | |
"text": " @dev Converts a `uint256` to its ASCII `string` hexadecimal representation." | |
}, | |
"id": 106, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "toHexString", | |
"nameLocation": "1530:11:0", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 90, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 89, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "1550:5:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 106, | |
"src": "1542:13:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 88, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1542:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1541:15:0" | |
}, | |
"returnParameters": { | |
"id": 93, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 92, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 106, | |
"src": "1580:13:0", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 91, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "1580:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1579:15:0" | |
}, | |
"scope": 228, | |
"src": "1521:174:0", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 181, | |
"nodeType": "Block", | |
"src": "1908:347:0", | |
"statements": [ | |
{ | |
"assignments": [ | |
117 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 117, | |
"mutability": "mutable", | |
"name": "buffer", | |
"nameLocation": "1931:6:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 181, | |
"src": "1918:19:0", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_memory_ptr", | |
"typeString": "bytes" | |
}, | |
"typeName": { | |
"id": 116, | |
"name": "bytes", | |
"nodeType": "ElementaryTypeName", | |
"src": "1918:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_storage_ptr", | |
"typeString": "bytes" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 126, | |
"initialValue": { | |
"arguments": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 124, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 122, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "32", | |
"id": 120, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1950:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "*", | |
"rightExpression": { | |
"id": 121, | |
"name": "length", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 111, | |
"src": "1954:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "1950:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"hexValue": "32", | |
"id": 123, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1963:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"src": "1950:14:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 119, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "NewExpression", | |
"src": "1940:9:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_bytes_memory_ptr_$", | |
"typeString": "function (uint256) pure returns (bytes memory)" | |
}, | |
"typeName": { | |
"id": 118, | |
"name": "bytes", | |
"nodeType": "ElementaryTypeName", | |
"src": "1944:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_storage_ptr", | |
"typeString": "bytes" | |
} | |
} | |
}, | |
"id": 125, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "1940:25:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_memory_ptr", | |
"typeString": "bytes memory" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "1918:47:0" | |
}, | |
{ | |
"expression": { | |
"id": 131, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"baseExpression": { | |
"id": 127, | |
"name": "buffer", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 117, | |
"src": "1975:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_memory_ptr", | |
"typeString": "bytes memory" | |
} | |
}, | |
"id": 129, | |
"indexExpression": { | |
"hexValue": "30", | |
"id": 128, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1982:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"isConstant": false, | |
"isLValue": true, | |
"isPure": false, | |
"lValueRequested": true, | |
"nodeType": "IndexAccess", | |
"src": "1975:9:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes1", | |
"typeString": "bytes1" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"hexValue": "30", | |
"id": 130, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "string", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1987:3:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_stringliteral_044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d", | |
"typeString": "literal_string \"0\"" | |
}, | |
"value": "0" | |
}, | |
"src": "1975:15:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes1", | |
"typeString": "bytes1" | |
} | |
}, | |
"id": 132, | |
"nodeType": "ExpressionStatement", | |
"src": "1975:15:0" | |
}, | |
{ | |
"expression": { | |
"id": 137, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"baseExpression": { | |
"id": 133, | |
"name": "buffer", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 117, | |
"src": "2000:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_memory_ptr", | |
"typeString": "bytes memory" | |
} | |
}, | |
"id": 135, | |
"indexExpression": { | |
"hexValue": "31", | |
"id": 134, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "2007:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"isConstant": false, | |
"isLValue": true, | |
"isPure": false, | |
"lValueRequested": true, | |
"nodeType": "IndexAccess", | |
"src": "2000:9:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes1", | |
"typeString": "bytes1" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"hexValue": "78", | |
"id": 136, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "string", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "2012:3:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_stringliteral_7521d1cadbcfa91eec65aa16715b94ffc1c9654ba57ea2ef1a2127bca1127a83", | |
"typeString": "literal_string \"x\"" | |
}, | |
"value": "x" | |
}, | |
"src": "2000:15:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes1", | |
"typeString": "bytes1" | |
} | |
}, | |
"id": 138, | |
"nodeType": "ExpressionStatement", | |
"src": "2000:15:0" | |
}, | |
{ | |
"body": { | |
"id": 167, | |
"nodeType": "Block", | |
"src": "2070:83:0", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 161, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"baseExpression": { | |
"id": 153, | |
"name": "buffer", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 117, | |
"src": "2084:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_memory_ptr", | |
"typeString": "bytes memory" | |
} | |
}, | |
"id": 155, | |
"indexExpression": { | |
"id": 154, | |
"name": "i", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 140, | |
"src": "2091:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"isConstant": false, | |
"isLValue": true, | |
"isPure": false, | |
"lValueRequested": true, | |
"nodeType": "IndexAccess", | |
"src": "2084:9:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes1", | |
"typeString": "bytes1" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"baseExpression": { | |
"id": 156, | |
"name": "_SYMBOLS", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 7, | |
"src": "2096:8:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes16", | |
"typeString": "bytes16" | |
} | |
}, | |
"id": 160, | |
"indexExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 159, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 157, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 109, | |
"src": "2105:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "&", | |
"rightExpression": { | |
"hexValue": "307866", | |
"id": 158, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "2113:3:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_15_by_1", | |
"typeString": "int_const 15" | |
}, | |
"value": "0xf" | |
}, | |
"src": "2105:11:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "IndexAccess", | |
"src": "2096:21:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes1", | |
"typeString": "bytes1" | |
} | |
}, | |
"src": "2084:33:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes1", | |
"typeString": "bytes1" | |
} | |
}, | |
"id": 162, | |
"nodeType": "ExpressionStatement", | |
"src": "2084:33:0" | |
}, | |
{ | |
"expression": { | |
"id": 165, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 163, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 109, | |
"src": "2131:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": ">>=", | |
"rightHandSide": { | |
"hexValue": "34", | |
"id": 164, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "2141:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_4_by_1", | |
"typeString": "int_const 4" | |
}, | |
"value": "4" | |
}, | |
"src": "2131:11:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 166, | |
"nodeType": "ExpressionStatement", | |
"src": "2131:11:0" | |
} | |
] | |
}, | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 149, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 147, | |
"name": "i", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 140, | |
"src": "2058:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 148, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "2062:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "2058:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 168, | |
"initializationExpression": { | |
"assignments": [ | |
140 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 140, | |
"mutability": "mutable", | |
"name": "i", | |
"nameLocation": "2038:1:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 168, | |
"src": "2030:9:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 139, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "2030:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 146, | |
"initialValue": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 145, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 143, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "32", | |
"id": 141, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "2042:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "*", | |
"rightExpression": { | |
"id": 142, | |
"name": "length", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 111, | |
"src": "2046:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "2042:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 144, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "2055:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "2042:14:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "2030:26:0" | |
}, | |
"loopExpression": { | |
"expression": { | |
"id": 151, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "UnaryOperation", | |
"operator": "--", | |
"prefix": true, | |
"src": "2065:3:0", | |
"subExpression": { | |
"id": 150, | |
"name": "i", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 140, | |
"src": "2067:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 152, | |
"nodeType": "ExpressionStatement", | |
"src": "2065:3:0" | |
}, | |
"nodeType": "ForStatement", | |
"src": "2025:128:0" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 172, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 170, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 109, | |
"src": "2170:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 171, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "2179:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "2170:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
{ | |
"hexValue": "537472696e67733a20686578206c656e67746820696e73756666696369656e74", | |
"id": 173, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "string", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "2182:34:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_stringliteral_04fc88320d7c9f639317c75102c103ff0044d3075a5c627e24e76e5bbb2733c2", | |
"typeString": "literal_string \"Strings: hex length insufficient\"" | |
}, | |
"value": "Strings: hex length insufficient" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
{ | |
"typeIdentifier": "t_stringliteral_04fc88320d7c9f639317c75102c103ff0044d3075a5c627e24e76e5bbb2733c2", | |
"typeString": "literal_string \"Strings: hex length insufficient\"" | |
} | |
], | |
"id": 169, | |
"name": "require", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
4294967278, | |
4294967278 | |
], | |
"referencedDeclaration": 4294967278, | |
"src": "2162:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", | |
"typeString": "function (bool,string memory) pure" | |
} | |
}, | |
"id": 174, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "2162:55:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 175, | |
"nodeType": "ExpressionStatement", | |
"src": "2162:55:0" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"id": 178, | |
"name": "buffer", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 117, | |
"src": "2241:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_memory_ptr", | |
"typeString": "bytes memory" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_bytes_memory_ptr", | |
"typeString": "bytes memory" | |
} | |
], | |
"id": 177, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "2234:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_string_storage_ptr_$", | |
"typeString": "type(string storage pointer)" | |
}, | |
"typeName": { | |
"id": 176, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "2234:6:0", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 179, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "2234:14:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
}, | |
"functionReturnParameters": 115, | |
"id": 180, | |
"nodeType": "Return", | |
"src": "2227:21:0" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 107, | |
"nodeType": "StructuredDocumentation", | |
"src": "1701:112:0", | |
"text": " @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length." | |
}, | |
"id": 182, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "toHexString", | |
"nameLocation": "1827:11:0", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 112, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 109, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "1847:5:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 182, | |
"src": "1839:13:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 108, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1839:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 111, | |
"mutability": "mutable", | |
"name": "length", | |
"nameLocation": "1862:6:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 182, | |
"src": "1854:14:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 110, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1854:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1838:31:0" | |
}, | |
"returnParameters": { | |
"id": 115, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 114, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 182, | |
"src": "1893:13:0", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 113, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "1893:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1892:15:0" | |
}, | |
"scope": 228, | |
"src": "1818:437:0", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 201, | |
"nodeType": "Block", | |
"src": "2480:76:0", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"id": 195, | |
"name": "addr", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 185, | |
"src": "2525:4:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
], | |
"id": 194, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "2517:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_uint160_$", | |
"typeString": "type(uint160)" | |
}, | |
"typeName": { | |
"id": 193, | |
"name": "uint160", | |
"nodeType": "ElementaryTypeName", | |
"src": "2517:7:0", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 196, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "2517:13:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint160", | |
"typeString": "uint160" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint160", | |
"typeString": "uint160" | |
} | |
], | |
"id": 192, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "2509:7:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_uint256_$", | |
"typeString": "type(uint256)" | |
}, | |
"typeName": { | |
"id": 191, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "2509:7:0", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 197, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "2509:22:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
{ | |
"id": 198, | |
"name": "_ADDRESS_LENGTH", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 10, | |
"src": "2533:15:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
{ | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
], | |
"id": 190, | |
"name": "toHexString", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
106, | |
182, | |
202 | |
], | |
"referencedDeclaration": 182, | |
"src": "2497:11:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_string_memory_ptr_$", | |
"typeString": "function (uint256,uint256) pure returns (string memory)" | |
} | |
}, | |
"id": 199, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "2497:52:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
}, | |
"functionReturnParameters": 189, | |
"id": 200, | |
"nodeType": "Return", | |
"src": "2490:59:0" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 183, | |
"nodeType": "StructuredDocumentation", | |
"src": "2261:141:0", | |
"text": " @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation." | |
}, | |
"id": 202, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "toHexString", | |
"nameLocation": "2416:11:0", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 186, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 185, | |
"mutability": "mutable", | |
"name": "addr", | |
"nameLocation": "2436:4:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 202, | |
"src": "2428:12:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 184, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "2428:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2427:14:0" | |
}, | |
"returnParameters": { | |
"id": 189, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 188, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 202, | |
"src": "2465:13:0", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 187, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "2465:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2464:15:0" | |
}, | |
"scope": 228, | |
"src": "2407:149:0", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 226, | |
"nodeType": "Block", | |
"src": "2711:66:0", | |
"statements": [ | |
{ | |
"expression": { | |
"commonType": { | |
"typeIdentifier": "t_bytes32", | |
"typeString": "bytes32" | |
}, | |
"id": 224, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"id": 215, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 205, | |
"src": "2744:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
], | |
"id": 214, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "2738:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_bytes_storage_ptr_$", | |
"typeString": "type(bytes storage pointer)" | |
}, | |
"typeName": { | |
"id": 213, | |
"name": "bytes", | |
"nodeType": "ElementaryTypeName", | |
"src": "2738:5:0", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 216, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "2738:8:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_memory_ptr", | |
"typeString": "bytes memory" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_bytes_memory_ptr", | |
"typeString": "bytes memory" | |
} | |
], | |
"id": 212, | |
"name": "keccak256", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 4294967288, | |
"src": "2728:9:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", | |
"typeString": "function (bytes memory) pure returns (bytes32)" | |
} | |
}, | |
"id": 217, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "2728:19:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes32", | |
"typeString": "bytes32" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"id": 221, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 207, | |
"src": "2767:1:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string memory" | |
} | |
], | |
"id": 220, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "2761:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_bytes_storage_ptr_$", | |
"typeString": "type(bytes storage pointer)" | |
}, | |
"typeName": { | |
"id": 219, | |
"name": "bytes", | |
"nodeType": "ElementaryTypeName", | |
"src": "2761:5:0", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 222, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "2761:8:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_memory_ptr", | |
"typeString": "bytes memory" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_bytes_memory_ptr", | |
"typeString": "bytes memory" | |
} | |
], | |
"id": 218, | |
"name": "keccak256", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 4294967288, | |
"src": "2751:9:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$", | |
"typeString": "function (bytes memory) pure returns (bytes32)" | |
} | |
}, | |
"id": 223, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "2751:19:0", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes32", | |
"typeString": "bytes32" | |
} | |
}, | |
"src": "2728:42:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"functionReturnParameters": 211, | |
"id": 225, | |
"nodeType": "Return", | |
"src": "2721:49:0" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 203, | |
"nodeType": "StructuredDocumentation", | |
"src": "2562:66:0", | |
"text": " @dev Returns true if the two strings are equal." | |
}, | |
"id": 227, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "equal", | |
"nameLocation": "2642:5:0", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 208, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 205, | |
"mutability": "mutable", | |
"name": "a", | |
"nameLocation": "2662:1:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 227, | |
"src": "2648:15:0", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 204, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "2648:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 207, | |
"mutability": "mutable", | |
"name": "b", | |
"nameLocation": "2679:1:0", | |
"nodeType": "VariableDeclaration", | |
"scope": 227, | |
"src": "2665:15:0", | |
"stateVariable": false, | |
"storageLocation": "memory", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_memory_ptr", | |
"typeString": "string" | |
}, | |
"typeName": { | |
"id": 206, | |
"name": "string", | |
"nodeType": "ElementaryTypeName", | |
"src": "2665:6:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_string_storage_ptr", | |
"typeString": "string" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2647:34:0" | |
}, | |
"returnParameters": { | |
"id": 211, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 210, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 227, | |
"src": "2705:4:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"typeName": { | |
"id": 209, | |
"name": "bool", | |
"nodeType": "ElementaryTypeName", | |
"src": "2705:4:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "2704:6:0" | |
}, | |
"scope": 228, | |
"src": "2633:144:0", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
} | |
], | |
"scope": 229, | |
"src": "220:2559:0", | |
"usedErrors": [] | |
} | |
], | |
"src": "101:2679:0" | |
}, | |
"id": 0 | |
}, | |
".deps/npm/@openzeppelin/contracts/utils/math/Math.sol": { | |
"ast": { | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/utils/math/Math.sol", | |
"exportedSymbols": { | |
"Math": [ | |
1094 | |
] | |
}, | |
"id": 1095, | |
"license": "MIT", | |
"nodeType": "SourceUnit", | |
"nodes": [ | |
{ | |
"id": 230, | |
"literals": [ | |
"solidity", | |
"^", | |
"0.8", | |
".0" | |
], | |
"nodeType": "PragmaDirective", | |
"src": "103:23:1" | |
}, | |
{ | |
"abstract": false, | |
"baseContracts": [], | |
"canonicalName": "Math", | |
"contractDependencies": [], | |
"contractKind": "library", | |
"documentation": { | |
"id": 231, | |
"nodeType": "StructuredDocumentation", | |
"src": "128:73:1", | |
"text": " @dev Standard math utilities missing in the Solidity language." | |
}, | |
"fullyImplemented": true, | |
"id": 1094, | |
"linearizedBaseContracts": [ | |
1094 | |
], | |
"name": "Math", | |
"nameLocation": "210:4:1", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"canonicalName": "Math.Rounding", | |
"id": 235, | |
"members": [ | |
{ | |
"id": 232, | |
"name": "Down", | |
"nameLocation": "245:4:1", | |
"nodeType": "EnumValue", | |
"src": "245:4:1" | |
}, | |
{ | |
"id": 233, | |
"name": "Up", | |
"nameLocation": "287:2:1", | |
"nodeType": "EnumValue", | |
"src": "287:2:1" | |
}, | |
{ | |
"id": 234, | |
"name": "Zero", | |
"nameLocation": "318:4:1", | |
"nodeType": "EnumValue", | |
"src": "318:4:1" | |
} | |
], | |
"name": "Rounding", | |
"nameLocation": "226:8:1", | |
"nodeType": "EnumDefinition", | |
"src": "221:122:1" | |
}, | |
{ | |
"body": { | |
"id": 252, | |
"nodeType": "Block", | |
"src": "480:37:1", | |
"statements": [ | |
{ | |
"expression": { | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 247, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 245, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 238, | |
"src": "497:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"id": 246, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 240, | |
"src": "501:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "497:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"falseExpression": { | |
"id": 249, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 240, | |
"src": "509:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 250, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "Conditional", | |
"src": "497:13:1", | |
"trueExpression": { | |
"id": 248, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 238, | |
"src": "505:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 244, | |
"id": 251, | |
"nodeType": "Return", | |
"src": "490:20:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 236, | |
"nodeType": "StructuredDocumentation", | |
"src": "349:59:1", | |
"text": " @dev Returns the largest of two numbers." | |
}, | |
"id": 253, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "max", | |
"nameLocation": "422:3:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 241, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 238, | |
"mutability": "mutable", | |
"name": "a", | |
"nameLocation": "434:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 253, | |
"src": "426:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 237, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "426:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 240, | |
"mutability": "mutable", | |
"name": "b", | |
"nameLocation": "445:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 253, | |
"src": "437:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 239, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "437:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "425:22:1" | |
}, | |
"returnParameters": { | |
"id": 244, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 243, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 253, | |
"src": "471:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 242, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "471:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "470:9:1" | |
}, | |
"scope": 1094, | |
"src": "413:104:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 270, | |
"nodeType": "Block", | |
"src": "655:37:1", | |
"statements": [ | |
{ | |
"expression": { | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 265, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 263, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 256, | |
"src": "672:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<", | |
"rightExpression": { | |
"id": 264, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 258, | |
"src": "676:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "672:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"falseExpression": { | |
"id": 267, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 258, | |
"src": "684:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 268, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "Conditional", | |
"src": "672:13:1", | |
"trueExpression": { | |
"id": 266, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 256, | |
"src": "680:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 262, | |
"id": 269, | |
"nodeType": "Return", | |
"src": "665:20:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 254, | |
"nodeType": "StructuredDocumentation", | |
"src": "523:60:1", | |
"text": " @dev Returns the smallest of two numbers." | |
}, | |
"id": 271, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "min", | |
"nameLocation": "597:3:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 259, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 256, | |
"mutability": "mutable", | |
"name": "a", | |
"nameLocation": "609:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 271, | |
"src": "601:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 255, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "601:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 258, | |
"mutability": "mutable", | |
"name": "b", | |
"nameLocation": "620:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 271, | |
"src": "612:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 257, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "612:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "600:22:1" | |
}, | |
"returnParameters": { | |
"id": 262, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 261, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 271, | |
"src": "646:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 260, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "646:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "645:9:1" | |
}, | |
"scope": 1094, | |
"src": "588:104:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 293, | |
"nodeType": "Block", | |
"src": "876:82:1", | |
"statements": [ | |
{ | |
"expression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 291, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 283, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 281, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 274, | |
"src": "931:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "&", | |
"rightExpression": { | |
"id": 282, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 276, | |
"src": "935:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "931:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 284, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "930:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 290, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 287, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 285, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 274, | |
"src": "941:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "^", | |
"rightExpression": { | |
"id": 286, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 276, | |
"src": "945:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "941:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 288, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "940:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "/", | |
"rightExpression": { | |
"hexValue": "32", | |
"id": 289, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "950:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"src": "940:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "930:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 280, | |
"id": 292, | |
"nodeType": "Return", | |
"src": "923:28:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 272, | |
"nodeType": "StructuredDocumentation", | |
"src": "698:102:1", | |
"text": " @dev Returns the average of two numbers. The result is rounded towards\n zero." | |
}, | |
"id": 294, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "average", | |
"nameLocation": "814:7:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 277, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 274, | |
"mutability": "mutable", | |
"name": "a", | |
"nameLocation": "830:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 294, | |
"src": "822:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 273, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "822:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 276, | |
"mutability": "mutable", | |
"name": "b", | |
"nameLocation": "841:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 294, | |
"src": "833:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 275, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "833:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "821:22:1" | |
}, | |
"returnParameters": { | |
"id": 280, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 279, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 294, | |
"src": "867:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 278, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "867:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "866:9:1" | |
}, | |
"scope": 1094, | |
"src": "805:153:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 318, | |
"nodeType": "Block", | |
"src": "1228:123:1", | |
"statements": [ | |
{ | |
"expression": { | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 306, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 304, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 297, | |
"src": "1316:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 305, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1321:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "1316:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"falseExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 315, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 313, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 310, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 308, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 297, | |
"src": "1330:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "-", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 309, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1334:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "1330:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 311, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "1329:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "/", | |
"rightExpression": { | |
"id": 312, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 299, | |
"src": "1339:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "1329:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 314, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1343:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "1329:15:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 316, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "Conditional", | |
"src": "1316:28:1", | |
"trueExpression": { | |
"hexValue": "30", | |
"id": 307, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1325:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 303, | |
"id": 317, | |
"nodeType": "Return", | |
"src": "1309:35:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 295, | |
"nodeType": "StructuredDocumentation", | |
"src": "964:188:1", | |
"text": " @dev Returns the ceiling of the division of two numbers.\n This differs from standard division with `/` in that it rounds up instead\n of rounding down." | |
}, | |
"id": 319, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "ceilDiv", | |
"nameLocation": "1166:7:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 300, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 297, | |
"mutability": "mutable", | |
"name": "a", | |
"nameLocation": "1182:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 319, | |
"src": "1174:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 296, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1174:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 299, | |
"mutability": "mutable", | |
"name": "b", | |
"nameLocation": "1193:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 319, | |
"src": "1185:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 298, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1185:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1173:22:1" | |
}, | |
"returnParameters": { | |
"id": 303, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 302, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 319, | |
"src": "1219:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 301, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1219:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1218:9:1" | |
}, | |
"scope": 1094, | |
"src": "1157:194:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 441, | |
"nodeType": "Block", | |
"src": "1765:4115:1", | |
"statements": [ | |
{ | |
"id": 440, | |
"nodeType": "UncheckedBlock", | |
"src": "1775:4099:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
332 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 332, | |
"mutability": "mutable", | |
"name": "prod0", | |
"nameLocation": "2104:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 440, | |
"src": "2096:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 331, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "2096:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 333, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "2096:13:1" | |
}, | |
{ | |
"assignments": [ | |
335 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 335, | |
"mutability": "mutable", | |
"name": "prod1", | |
"nameLocation": "2176:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 440, | |
"src": "2168:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 334, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "2168:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 336, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "2168:13:1" | |
}, | |
{ | |
"AST": { | |
"nodeType": "YulBlock", | |
"src": "2248:157:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "2266:30:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "2283:1:1" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "2286:1:1" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2293:1:1", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "not", | |
"nodeType": "YulIdentifier", | |
"src": "2289:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2289:6:1" | |
} | |
], | |
"functionName": { | |
"name": "mulmod", | |
"nodeType": "YulIdentifier", | |
"src": "2276:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2276:20:1" | |
}, | |
"variables": [ | |
{ | |
"name": "mm", | |
"nodeType": "YulTypedName", | |
"src": "2270:2:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2313:18:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "2326:1:1" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "2329:1:1" | |
} | |
], | |
"functionName": { | |
"name": "mul", | |
"nodeType": "YulIdentifier", | |
"src": "2322:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2322:9:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "prod0", | |
"nodeType": "YulIdentifier", | |
"src": "2313:5:1" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2348:43:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "mm", | |
"nodeType": "YulIdentifier", | |
"src": "2365:2:1" | |
}, | |
{ | |
"name": "prod0", | |
"nodeType": "YulIdentifier", | |
"src": "2369:5:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "2361:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2361:14:1" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "mm", | |
"nodeType": "YulIdentifier", | |
"src": "2380:2:1" | |
}, | |
{ | |
"name": "prod0", | |
"nodeType": "YulIdentifier", | |
"src": "2384:5:1" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "2377:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2377:13:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "2357:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2357:34:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "prod1", | |
"nodeType": "YulIdentifier", | |
"src": "2348:5:1" | |
} | |
] | |
} | |
] | |
}, | |
"evmVersion": "paris", | |
"externalReferences": [ | |
{ | |
"declaration": 332, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "2313:5:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 332, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "2369:5:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 332, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "2384:5:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 335, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "2348:5:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 322, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "2283:1:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 322, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "2326:1:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 324, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "2286:1:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 324, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "2329:1:1", | |
"valueSize": 1 | |
} | |
], | |
"id": 337, | |
"nodeType": "InlineAssembly", | |
"src": "2239:166:1" | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 340, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 338, | |
"name": "prod1", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 335, | |
"src": "2486:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 339, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "2495:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "2486:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 346, | |
"nodeType": "IfStatement", | |
"src": "2482:368:1", | |
"trueBody": { | |
"id": 345, | |
"nodeType": "Block", | |
"src": "2498:352:1", | |
"statements": [ | |
{ | |
"expression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 343, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 341, | |
"name": "prod0", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 332, | |
"src": "2816:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "/", | |
"rightExpression": { | |
"id": 342, | |
"name": "denominator", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 326, | |
"src": "2824:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "2816:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 330, | |
"id": 344, | |
"nodeType": "Return", | |
"src": "2809:26:1" | |
} | |
] | |
} | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 350, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 348, | |
"name": "denominator", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 326, | |
"src": "2960:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"id": 349, | |
"name": "prod1", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 335, | |
"src": "2974:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "2960:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
{ | |
"hexValue": "4d6174683a206d756c446976206f766572666c6f77", | |
"id": 351, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "string", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "2981:23:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_stringliteral_d87093691d63b122ac2c14d1b11554b287e2431cf2b03550b3be7cffb0f86851", | |
"typeString": "literal_string \"Math: mulDiv overflow\"" | |
}, | |
"value": "Math: mulDiv overflow" | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
{ | |
"typeIdentifier": "t_stringliteral_d87093691d63b122ac2c14d1b11554b287e2431cf2b03550b3be7cffb0f86851", | |
"typeString": "literal_string \"Math: mulDiv overflow\"" | |
} | |
], | |
"id": 347, | |
"name": "require", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
4294967278, | |
4294967278 | |
], | |
"referencedDeclaration": 4294967278, | |
"src": "2952:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", | |
"typeString": "function (bool,string memory) pure" | |
} | |
}, | |
"id": 352, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "2952:53:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_tuple$__$", | |
"typeString": "tuple()" | |
} | |
}, | |
"id": 353, | |
"nodeType": "ExpressionStatement", | |
"src": "2952:53:1" | |
}, | |
{ | |
"assignments": [ | |
355 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 355, | |
"mutability": "mutable", | |
"name": "remainder", | |
"nameLocation": "3269:9:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 440, | |
"src": "3261:17:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 354, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "3261:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 356, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "3261:17:1" | |
}, | |
{ | |
"AST": { | |
"nodeType": "YulBlock", | |
"src": "3301:291:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3370:38:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "3390:1:1" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "3393:1:1" | |
}, | |
{ | |
"name": "denominator", | |
"nodeType": "YulIdentifier", | |
"src": "3396:11:1" | |
} | |
], | |
"functionName": { | |
"name": "mulmod", | |
"nodeType": "YulIdentifier", | |
"src": "3383:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3383:25:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "remainder", | |
"nodeType": "YulIdentifier", | |
"src": "3370:9:1" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3490:41:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "prod1", | |
"nodeType": "YulIdentifier", | |
"src": "3503:5:1" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "remainder", | |
"nodeType": "YulIdentifier", | |
"src": "3513:9:1" | |
}, | |
{ | |
"name": "prod0", | |
"nodeType": "YulIdentifier", | |
"src": "3524:5:1" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "3510:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3510:20:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "3499:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3499:32:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "prod1", | |
"nodeType": "YulIdentifier", | |
"src": "3490:5:1" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3548:30:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "prod0", | |
"nodeType": "YulIdentifier", | |
"src": "3561:5:1" | |
}, | |
{ | |
"name": "remainder", | |
"nodeType": "YulIdentifier", | |
"src": "3568:9:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "3557:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3557:21:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "prod0", | |
"nodeType": "YulIdentifier", | |
"src": "3548:5:1" | |
} | |
] | |
} | |
] | |
}, | |
"evmVersion": "paris", | |
"externalReferences": [ | |
{ | |
"declaration": 326, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "3396:11:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 332, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "3524:5:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 332, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "3548:5:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 332, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "3561:5:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 335, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "3490:5:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 335, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "3503:5:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 355, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "3370:9:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 355, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "3513:9:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 355, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "3568:9:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 322, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "3390:1:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 324, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "3393:1:1", | |
"valueSize": 1 | |
} | |
], | |
"id": 357, | |
"nodeType": "InlineAssembly", | |
"src": "3292:300:1" | |
}, | |
{ | |
"assignments": [ | |
359 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 359, | |
"mutability": "mutable", | |
"name": "twos", | |
"nameLocation": "3907:4:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 440, | |
"src": "3899:12:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 358, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "3899:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 367, | |
"initialValue": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 366, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 360, | |
"name": "denominator", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 326, | |
"src": "3914:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "&", | |
"rightExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 364, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 362, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "UnaryOperation", | |
"operator": "~", | |
"prefix": true, | |
"src": "3929:12:1", | |
"subExpression": { | |
"id": 361, | |
"name": "denominator", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 326, | |
"src": "3930:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 363, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "3944:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "3929:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 365, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "3928:18:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "3914:32:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "3899:47:1" | |
}, | |
{ | |
"AST": { | |
"nodeType": "YulBlock", | |
"src": "3969:362:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4034:37:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "denominator", | |
"nodeType": "YulIdentifier", | |
"src": "4053:11:1" | |
}, | |
{ | |
"name": "twos", | |
"nodeType": "YulIdentifier", | |
"src": "4066:4:1" | |
} | |
], | |
"functionName": { | |
"name": "div", | |
"nodeType": "YulIdentifier", | |
"src": "4049:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4049:22:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "denominator", | |
"nodeType": "YulIdentifier", | |
"src": "4034:11:1" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4138:25:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "prod0", | |
"nodeType": "YulIdentifier", | |
"src": "4151:5:1" | |
}, | |
{ | |
"name": "twos", | |
"nodeType": "YulIdentifier", | |
"src": "4158:4:1" | |
} | |
], | |
"functionName": { | |
"name": "div", | |
"nodeType": "YulIdentifier", | |
"src": "4147:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4147:16:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "prod0", | |
"nodeType": "YulIdentifier", | |
"src": "4138:5:1" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4278:39:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4298:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"name": "twos", | |
"nodeType": "YulIdentifier", | |
"src": "4301:4:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "4294:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4294:12:1" | |
}, | |
{ | |
"name": "twos", | |
"nodeType": "YulIdentifier", | |
"src": "4308:4:1" | |
} | |
], | |
"functionName": { | |
"name": "div", | |
"nodeType": "YulIdentifier", | |
"src": "4290:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4290:23:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4315:1:1", | |
"type": "", | |
"value": "1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4286:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4286:31:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "twos", | |
"nodeType": "YulIdentifier", | |
"src": "4278:4:1" | |
} | |
] | |
} | |
] | |
}, | |
"evmVersion": "paris", | |
"externalReferences": [ | |
{ | |
"declaration": 326, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "4034:11:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 326, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "4053:11:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 332, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "4138:5:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 332, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "4151:5:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 359, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "4066:4:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 359, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "4158:4:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 359, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "4278:4:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 359, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "4301:4:1", | |
"valueSize": 1 | |
}, | |
{ | |
"declaration": 359, | |
"isOffset": false, | |
"isSlot": false, | |
"src": "4308:4:1", | |
"valueSize": 1 | |
} | |
], | |
"id": 368, | |
"nodeType": "InlineAssembly", | |
"src": "3960:371:1" | |
}, | |
{ | |
"expression": { | |
"id": 373, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 369, | |
"name": "prod0", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 332, | |
"src": "4397:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "|=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 372, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 370, | |
"name": "prod1", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 335, | |
"src": "4406:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "*", | |
"rightExpression": { | |
"id": 371, | |
"name": "twos", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 359, | |
"src": "4414:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "4406:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "4397:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 374, | |
"nodeType": "ExpressionStatement", | |
"src": "4397:21:1" | |
}, | |
{ | |
"assignments": [ | |
376 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 376, | |
"mutability": "mutable", | |
"name": "inverse", | |
"nameLocation": "4744:7:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 440, | |
"src": "4736:15:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 375, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "4736:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 383, | |
"initialValue": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 382, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 379, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "33", | |
"id": 377, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "4755:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_3_by_1", | |
"typeString": "int_const 3" | |
}, | |
"value": "3" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "*", | |
"rightExpression": { | |
"id": 378, | |
"name": "denominator", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 326, | |
"src": "4759:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "4755:15:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 380, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "4754:17:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "^", | |
"rightExpression": { | |
"hexValue": "32", | |
"id": 381, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "4774:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"src": "4754:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "4736:39:1" | |
}, | |
{ | |
"expression": { | |
"id": 390, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 384, | |
"name": "inverse", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 376, | |
"src": "4992:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "*=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 389, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "32", | |
"id": 385, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "5003:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "-", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 388, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 386, | |
"name": "denominator", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 326, | |
"src": "5007:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "*", | |
"rightExpression": { | |
"id": 387, | |
"name": "inverse", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 376, | |
"src": "5021:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5007:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5003:25:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "4992:36:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 391, | |
"nodeType": "ExpressionStatement", | |
"src": "4992:36:1" | |
}, | |
{ | |
"expression": { | |
"id": 398, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 392, | |
"name": "inverse", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 376, | |
"src": "5061:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "*=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 397, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "32", | |
"id": 393, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "5072:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "-", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 396, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 394, | |
"name": "denominator", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 326, | |
"src": "5076:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "*", | |
"rightExpression": { | |
"id": 395, | |
"name": "inverse", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 376, | |
"src": "5090:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5076:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5072:25:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5061:36:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 399, | |
"nodeType": "ExpressionStatement", | |
"src": "5061:36:1" | |
}, | |
{ | |
"expression": { | |
"id": 406, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 400, | |
"name": "inverse", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 376, | |
"src": "5131:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "*=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 405, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "32", | |
"id": 401, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "5142:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "-", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 404, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 402, | |
"name": "denominator", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 326, | |
"src": "5146:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "*", | |
"rightExpression": { | |
"id": 403, | |
"name": "inverse", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 376, | |
"src": "5160:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5146:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5142:25:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5131:36:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 407, | |
"nodeType": "ExpressionStatement", | |
"src": "5131:36:1" | |
}, | |
{ | |
"expression": { | |
"id": 414, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 408, | |
"name": "inverse", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 376, | |
"src": "5201:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "*=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 413, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "32", | |
"id": 409, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "5212:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "-", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 412, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 410, | |
"name": "denominator", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 326, | |
"src": "5216:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "*", | |
"rightExpression": { | |
"id": 411, | |
"name": "inverse", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 376, | |
"src": "5230:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5216:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5212:25:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5201:36:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 415, | |
"nodeType": "ExpressionStatement", | |
"src": "5201:36:1" | |
}, | |
{ | |
"expression": { | |
"id": 422, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 416, | |
"name": "inverse", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 376, | |
"src": "5271:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "*=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 421, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "32", | |
"id": 417, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "5282:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "-", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 420, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 418, | |
"name": "denominator", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 326, | |
"src": "5286:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "*", | |
"rightExpression": { | |
"id": 419, | |
"name": "inverse", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 376, | |
"src": "5300:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5286:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5282:25:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5271:36:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 423, | |
"nodeType": "ExpressionStatement", | |
"src": "5271:36:1" | |
}, | |
{ | |
"expression": { | |
"id": 430, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 424, | |
"name": "inverse", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 376, | |
"src": "5342:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "*=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 429, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "32", | |
"id": 425, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "5353:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "-", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 428, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 426, | |
"name": "denominator", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 326, | |
"src": "5357:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "*", | |
"rightExpression": { | |
"id": 427, | |
"name": "inverse", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 376, | |
"src": "5371:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5357:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5353:25:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5342:36:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 431, | |
"nodeType": "ExpressionStatement", | |
"src": "5342:36:1" | |
}, | |
{ | |
"expression": { | |
"id": 436, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 432, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 329, | |
"src": "5812:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 435, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 433, | |
"name": "prod0", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 332, | |
"src": "5821:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "*", | |
"rightExpression": { | |
"id": 434, | |
"name": "inverse", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 376, | |
"src": "5829:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5821:15:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "5812:24:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 437, | |
"nodeType": "ExpressionStatement", | |
"src": "5812:24:1" | |
}, | |
{ | |
"expression": { | |
"id": 438, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 329, | |
"src": "5857:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 330, | |
"id": 439, | |
"nodeType": "Return", | |
"src": "5850:13:1" | |
} | |
] | |
} | |
] | |
}, | |
"documentation": { | |
"id": 320, | |
"nodeType": "StructuredDocumentation", | |
"src": "1357:305:1", | |
"text": " @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n with further edits by Uniswap Labs also under MIT license." | |
}, | |
"id": 442, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "mulDiv", | |
"nameLocation": "1676:6:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 327, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 322, | |
"mutability": "mutable", | |
"name": "x", | |
"nameLocation": "1691:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 442, | |
"src": "1683:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 321, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1683:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 324, | |
"mutability": "mutable", | |
"name": "y", | |
"nameLocation": "1702:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 442, | |
"src": "1694:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 323, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1694:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 326, | |
"mutability": "mutable", | |
"name": "denominator", | |
"nameLocation": "1713:11:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 442, | |
"src": "1705:19:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 325, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1705:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1682:43:1" | |
}, | |
"returnParameters": { | |
"id": 330, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 329, | |
"mutability": "mutable", | |
"name": "result", | |
"nameLocation": "1757:6:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 442, | |
"src": "1749:14:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 328, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1749:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1748:16:1" | |
}, | |
"scope": 1094, | |
"src": "1667:4213:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 485, | |
"nodeType": "Block", | |
"src": "6122:189:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
458 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 458, | |
"mutability": "mutable", | |
"name": "result", | |
"nameLocation": "6140:6:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 485, | |
"src": "6132:14:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 457, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6132:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 464, | |
"initialValue": { | |
"arguments": [ | |
{ | |
"id": 460, | |
"name": "x", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 445, | |
"src": "6156:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
{ | |
"id": 461, | |
"name": "y", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 447, | |
"src": "6159:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
{ | |
"id": 462, | |
"name": "denominator", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 449, | |
"src": "6162:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 459, | |
"name": "mulDiv", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
442, | |
486 | |
], | |
"referencedDeclaration": 442, | |
"src": "6149:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$", | |
"typeString": "function (uint256,uint256,uint256) pure returns (uint256)" | |
} | |
}, | |
"id": 463, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "6149:25:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "6132:42:1" | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"id": 476, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
}, | |
"id": 468, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 465, | |
"name": "rounding", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 452, | |
"src": "6188:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"expression": { | |
"id": 466, | |
"name": "Rounding", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 235, | |
"src": "6200:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_enum$_Rounding_$235_$", | |
"typeString": "type(enum Math.Rounding)" | |
} | |
}, | |
"id": 467, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"memberLocation": "6209:2:1", | |
"memberName": "Up", | |
"nodeType": "MemberAccess", | |
"referencedDeclaration": 233, | |
"src": "6200:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"src": "6188:23:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "&&", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 475, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"arguments": [ | |
{ | |
"id": 470, | |
"name": "x", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 445, | |
"src": "6222:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
{ | |
"id": 471, | |
"name": "y", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 447, | |
"src": "6225:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
{ | |
"id": 472, | |
"name": "denominator", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 449, | |
"src": "6228:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 469, | |
"name": "mulmod", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 4294967280, | |
"src": "6215:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_mulmod_pure$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_uint256_$", | |
"typeString": "function (uint256,uint256,uint256) pure returns (uint256)" | |
} | |
}, | |
"id": 473, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "6215:25:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 474, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "6243:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "6215:29:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"src": "6188:56:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 482, | |
"nodeType": "IfStatement", | |
"src": "6184:98:1", | |
"trueBody": { | |
"id": 481, | |
"nodeType": "Block", | |
"src": "6246:36:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 479, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 477, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 458, | |
"src": "6260:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "31", | |
"id": 478, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "6270:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "6260:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 480, | |
"nodeType": "ExpressionStatement", | |
"src": "6260:11:1" | |
} | |
] | |
} | |
}, | |
{ | |
"expression": { | |
"id": 483, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 458, | |
"src": "6298:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 456, | |
"id": 484, | |
"nodeType": "Return", | |
"src": "6291:13:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 443, | |
"nodeType": "StructuredDocumentation", | |
"src": "5886:121:1", | |
"text": " @notice Calculates x * y / denominator with full precision, following the selected rounding direction." | |
}, | |
"id": 486, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "mulDiv", | |
"nameLocation": "6021:6:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 453, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 445, | |
"mutability": "mutable", | |
"name": "x", | |
"nameLocation": "6036:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 486, | |
"src": "6028:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 444, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6028:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 447, | |
"mutability": "mutable", | |
"name": "y", | |
"nameLocation": "6047:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 486, | |
"src": "6039:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 446, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6039:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 449, | |
"mutability": "mutable", | |
"name": "denominator", | |
"nameLocation": "6058:11:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 486, | |
"src": "6050:19:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 448, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6050:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 452, | |
"mutability": "mutable", | |
"name": "rounding", | |
"nameLocation": "6080:8:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 486, | |
"src": "6071:17:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
}, | |
"typeName": { | |
"id": 451, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 450, | |
"name": "Rounding", | |
"nameLocations": [ | |
"6071:8:1" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 235, | |
"src": "6071:8:1" | |
}, | |
"referencedDeclaration": 235, | |
"src": "6071:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "6027:62:1" | |
}, | |
"returnParameters": { | |
"id": 456, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 455, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 486, | |
"src": "6113:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 454, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6113:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "6112:9:1" | |
}, | |
"scope": 1094, | |
"src": "6012:299:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 597, | |
"nodeType": "Block", | |
"src": "6587:1585:1", | |
"statements": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 496, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 494, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 489, | |
"src": "6601:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 495, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "6606:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "6601:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 500, | |
"nodeType": "IfStatement", | |
"src": "6597:45:1", | |
"trueBody": { | |
"id": 499, | |
"nodeType": "Block", | |
"src": "6609:33:1", | |
"statements": [ | |
{ | |
"expression": { | |
"hexValue": "30", | |
"id": 497, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "6630:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"functionReturnParameters": 493, | |
"id": 498, | |
"nodeType": "Return", | |
"src": "6623:8:1" | |
} | |
] | |
} | |
}, | |
{ | |
"assignments": [ | |
502 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 502, | |
"mutability": "mutable", | |
"name": "result", | |
"nameLocation": "7329:6:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 597, | |
"src": "7321:14:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 501, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "7321:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 511, | |
"initialValue": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 510, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "31", | |
"id": 503, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "7338:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<<", | |
"rightExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 508, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"arguments": [ | |
{ | |
"id": 505, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 489, | |
"src": "7349:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 504, | |
"name": "log2", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
766, | |
802 | |
], | |
"referencedDeclaration": 766, | |
"src": "7344:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", | |
"typeString": "function (uint256) pure returns (uint256)" | |
} | |
}, | |
"id": 506, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "7344:7:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 507, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "7355:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "7344:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 509, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "7343:14:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7338:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "7321:36:1" | |
}, | |
{ | |
"id": 596, | |
"nodeType": "UncheckedBlock", | |
"src": "7758:408:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 521, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 512, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7782:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 520, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 517, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 513, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7792:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 516, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 514, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 489, | |
"src": "7801:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "/", | |
"rightExpression": { | |
"id": 515, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7805:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7801:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7792:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 518, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "7791:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 519, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "7816:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "7791:26:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7782:35:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 522, | |
"nodeType": "ExpressionStatement", | |
"src": "7782:35:1" | |
}, | |
{ | |
"expression": { | |
"id": 532, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 523, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7831:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 531, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 528, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 524, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7841:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 527, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 525, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 489, | |
"src": "7850:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "/", | |
"rightExpression": { | |
"id": 526, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7854:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7850:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7841:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 529, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "7840:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 530, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "7865:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "7840:26:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7831:35:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 533, | |
"nodeType": "ExpressionStatement", | |
"src": "7831:35:1" | |
}, | |
{ | |
"expression": { | |
"id": 543, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 534, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7880:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 542, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 539, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 535, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7890:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 538, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 536, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 489, | |
"src": "7899:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "/", | |
"rightExpression": { | |
"id": 537, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7903:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7899:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7890:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 540, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "7889:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 541, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "7914:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "7889:26:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7880:35:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 544, | |
"nodeType": "ExpressionStatement", | |
"src": "7880:35:1" | |
}, | |
{ | |
"expression": { | |
"id": 554, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 545, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7929:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 553, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 550, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 546, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7939:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 549, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 547, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 489, | |
"src": "7948:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "/", | |
"rightExpression": { | |
"id": 548, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7952:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7948:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7939:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 551, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "7938:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 552, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "7963:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "7938:26:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7929:35:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 555, | |
"nodeType": "ExpressionStatement", | |
"src": "7929:35:1" | |
}, | |
{ | |
"expression": { | |
"id": 565, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 556, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7978:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 564, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 561, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 557, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "7988:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 560, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 558, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 489, | |
"src": "7997:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "/", | |
"rightExpression": { | |
"id": 559, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "8001:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7997:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7988:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 562, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "7987:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 563, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8012:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "7987:26:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "7978:35:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 566, | |
"nodeType": "ExpressionStatement", | |
"src": "7978:35:1" | |
}, | |
{ | |
"expression": { | |
"id": 576, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 567, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "8027:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 575, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 572, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 568, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "8037:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 571, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 569, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 489, | |
"src": "8046:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "/", | |
"rightExpression": { | |
"id": 570, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "8050:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "8046:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "8037:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 573, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "8036:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 574, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8061:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "8036:26:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "8027:35:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 577, | |
"nodeType": "ExpressionStatement", | |
"src": "8027:35:1" | |
}, | |
{ | |
"expression": { | |
"id": 587, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 578, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "8076:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 586, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 583, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 579, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "8086:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 582, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 580, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 489, | |
"src": "8095:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "/", | |
"rightExpression": { | |
"id": 581, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "8099:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "8095:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "8086:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 584, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "8085:21:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 585, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8110:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "8085:26:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "8076:35:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 588, | |
"nodeType": "ExpressionStatement", | |
"src": "8076:35:1" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"id": 590, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "8136:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 593, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 591, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 489, | |
"src": "8144:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "/", | |
"rightExpression": { | |
"id": 592, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 502, | |
"src": "8148:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "8144:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 589, | |
"name": "min", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 271, | |
"src": "8132:3:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$", | |
"typeString": "function (uint256,uint256) pure returns (uint256)" | |
} | |
}, | |
"id": 594, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "8132:23:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 493, | |
"id": 595, | |
"nodeType": "Return", | |
"src": "8125:30:1" | |
} | |
] | |
} | |
] | |
}, | |
"documentation": { | |
"id": 487, | |
"nodeType": "StructuredDocumentation", | |
"src": "6317:208:1", | |
"text": " @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11)." | |
}, | |
"id": 598, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "sqrt", | |
"nameLocation": "6539:4:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 490, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 489, | |
"mutability": "mutable", | |
"name": "a", | |
"nameLocation": "6552:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 598, | |
"src": "6544:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 488, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6544:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "6543:11:1" | |
}, | |
"returnParameters": { | |
"id": 493, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 492, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 598, | |
"src": "6578:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 491, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "6578:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "6577:9:1" | |
}, | |
"scope": 1094, | |
"src": "6530:1642:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 633, | |
"nodeType": "Block", | |
"src": "8348:161:1", | |
"statements": [ | |
{ | |
"id": 632, | |
"nodeType": "UncheckedBlock", | |
"src": "8358:145:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
610 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 610, | |
"mutability": "mutable", | |
"name": "result", | |
"nameLocation": "8390:6:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 632, | |
"src": "8382:14:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 609, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "8382:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 614, | |
"initialValue": { | |
"arguments": [ | |
{ | |
"id": 612, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 601, | |
"src": "8404:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 611, | |
"name": "sqrt", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
598, | |
634 | |
], | |
"referencedDeclaration": 598, | |
"src": "8399:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", | |
"typeString": "function (uint256) pure returns (uint256)" | |
} | |
}, | |
"id": 613, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "8399:7:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "8382:24:1" | |
}, | |
{ | |
"expression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 630, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 615, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 610, | |
"src": "8427:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"components": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"id": 625, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
}, | |
"id": 619, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 616, | |
"name": "rounding", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 604, | |
"src": "8437:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"expression": { | |
"id": 617, | |
"name": "Rounding", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 235, | |
"src": "8449:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_enum$_Rounding_$235_$", | |
"typeString": "type(enum Math.Rounding)" | |
} | |
}, | |
"id": 618, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"memberLocation": "8458:2:1", | |
"memberName": "Up", | |
"nodeType": "MemberAccess", | |
"referencedDeclaration": 233, | |
"src": "8449:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"src": "8437:23:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "&&", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 624, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 622, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 620, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 610, | |
"src": "8464:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "*", | |
"rightExpression": { | |
"id": 621, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 610, | |
"src": "8473:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "8464:15:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<", | |
"rightExpression": { | |
"id": 623, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 601, | |
"src": "8482:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "8464:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"src": "8437:46:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"falseExpression": { | |
"hexValue": "30", | |
"id": 627, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8490:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"id": 628, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "Conditional", | |
"src": "8437:54:1", | |
"trueExpression": { | |
"hexValue": "31", | |
"id": 626, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8486:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
} | |
], | |
"id": 629, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "8436:56:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
}, | |
"src": "8427:65:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 608, | |
"id": 631, | |
"nodeType": "Return", | |
"src": "8420:72:1" | |
} | |
] | |
} | |
] | |
}, | |
"documentation": { | |
"id": 599, | |
"nodeType": "StructuredDocumentation", | |
"src": "8178:89:1", | |
"text": " @notice Calculates sqrt(a), following the selected rounding direction." | |
}, | |
"id": 634, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "sqrt", | |
"nameLocation": "8281:4:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 605, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 601, | |
"mutability": "mutable", | |
"name": "a", | |
"nameLocation": "8294:1:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 634, | |
"src": "8286:9:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 600, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "8286:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 604, | |
"mutability": "mutable", | |
"name": "rounding", | |
"nameLocation": "8306:8:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 634, | |
"src": "8297:17:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
}, | |
"typeName": { | |
"id": 603, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 602, | |
"name": "Rounding", | |
"nameLocations": [ | |
"8297:8:1" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 235, | |
"src": "8297:8:1" | |
}, | |
"referencedDeclaration": 235, | |
"src": "8297:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "8285:30:1" | |
}, | |
"returnParameters": { | |
"id": 608, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 607, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 634, | |
"src": "8339:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 606, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "8339:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "8338:9:1" | |
}, | |
"scope": 1094, | |
"src": "8272:237:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 765, | |
"nodeType": "Block", | |
"src": "8694:922:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
643 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 643, | |
"mutability": "mutable", | |
"name": "result", | |
"nameLocation": "8712:6:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 765, | |
"src": "8704:14:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 642, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "8704:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 645, | |
"initialValue": { | |
"hexValue": "30", | |
"id": 644, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8721:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "8704:18:1" | |
}, | |
{ | |
"id": 762, | |
"nodeType": "UncheckedBlock", | |
"src": "8732:855:1", | |
"statements": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 650, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 648, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 646, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "8760:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "313238", | |
"id": 647, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8769:3:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_128_by_1", | |
"typeString": "int_const 128" | |
}, | |
"value": "128" | |
}, | |
"src": "8760:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 649, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8775:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "8760:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 660, | |
"nodeType": "IfStatement", | |
"src": "8756:99:1", | |
"trueBody": { | |
"id": 659, | |
"nodeType": "Block", | |
"src": "8778:77:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 653, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 651, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "8796:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": ">>=", | |
"rightHandSide": { | |
"hexValue": "313238", | |
"id": 652, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8806:3:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_128_by_1", | |
"typeString": "int_const 128" | |
}, | |
"value": "128" | |
}, | |
"src": "8796:13:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 654, | |
"nodeType": "ExpressionStatement", | |
"src": "8796:13:1" | |
}, | |
{ | |
"expression": { | |
"id": 657, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 655, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 643, | |
"src": "8827:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "313238", | |
"id": 656, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8837:3:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_128_by_1", | |
"typeString": "int_const 128" | |
}, | |
"value": "128" | |
}, | |
"src": "8827:13:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 658, | |
"nodeType": "ExpressionStatement", | |
"src": "8827:13:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 665, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 663, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 661, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "8872:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "3634", | |
"id": 662, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8881:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_64_by_1", | |
"typeString": "int_const 64" | |
}, | |
"value": "64" | |
}, | |
"src": "8872:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 664, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8886:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "8872:15:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 675, | |
"nodeType": "IfStatement", | |
"src": "8868:96:1", | |
"trueBody": { | |
"id": 674, | |
"nodeType": "Block", | |
"src": "8889:75:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 668, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 666, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "8907:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": ">>=", | |
"rightHandSide": { | |
"hexValue": "3634", | |
"id": 667, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8917:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_64_by_1", | |
"typeString": "int_const 64" | |
}, | |
"value": "64" | |
}, | |
"src": "8907:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 669, | |
"nodeType": "ExpressionStatement", | |
"src": "8907:12:1" | |
}, | |
{ | |
"expression": { | |
"id": 672, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 670, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 643, | |
"src": "8937:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "3634", | |
"id": 671, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8947:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_64_by_1", | |
"typeString": "int_const 64" | |
}, | |
"value": "64" | |
}, | |
"src": "8937:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 673, | |
"nodeType": "ExpressionStatement", | |
"src": "8937:12:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 680, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 678, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 676, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "8981:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "3332", | |
"id": 677, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8990:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_32_by_1", | |
"typeString": "int_const 32" | |
}, | |
"value": "32" | |
}, | |
"src": "8981:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 679, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "8995:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "8981:15:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 690, | |
"nodeType": "IfStatement", | |
"src": "8977:96:1", | |
"trueBody": { | |
"id": 689, | |
"nodeType": "Block", | |
"src": "8998:75:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 683, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 681, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "9016:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": ">>=", | |
"rightHandSide": { | |
"hexValue": "3332", | |
"id": 682, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9026:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_32_by_1", | |
"typeString": "int_const 32" | |
}, | |
"value": "32" | |
}, | |
"src": "9016:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 684, | |
"nodeType": "ExpressionStatement", | |
"src": "9016:12:1" | |
}, | |
{ | |
"expression": { | |
"id": 687, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 685, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 643, | |
"src": "9046:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "3332", | |
"id": 686, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9056:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_32_by_1", | |
"typeString": "int_const 32" | |
}, | |
"value": "32" | |
}, | |
"src": "9046:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 688, | |
"nodeType": "ExpressionStatement", | |
"src": "9046:12:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 695, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 693, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 691, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "9090:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "3136", | |
"id": 692, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9099:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_16_by_1", | |
"typeString": "int_const 16" | |
}, | |
"value": "16" | |
}, | |
"src": "9090:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 694, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9104:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "9090:15:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 705, | |
"nodeType": "IfStatement", | |
"src": "9086:96:1", | |
"trueBody": { | |
"id": 704, | |
"nodeType": "Block", | |
"src": "9107:75:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 698, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 696, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "9125:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": ">>=", | |
"rightHandSide": { | |
"hexValue": "3136", | |
"id": 697, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9135:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_16_by_1", | |
"typeString": "int_const 16" | |
}, | |
"value": "16" | |
}, | |
"src": "9125:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 699, | |
"nodeType": "ExpressionStatement", | |
"src": "9125:12:1" | |
}, | |
{ | |
"expression": { | |
"id": 702, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 700, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 643, | |
"src": "9155:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "3136", | |
"id": 701, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9165:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_16_by_1", | |
"typeString": "int_const 16" | |
}, | |
"value": "16" | |
}, | |
"src": "9155:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 703, | |
"nodeType": "ExpressionStatement", | |
"src": "9155:12:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 710, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 708, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 706, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "9199:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "38", | |
"id": 707, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9208:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_8_by_1", | |
"typeString": "int_const 8" | |
}, | |
"value": "8" | |
}, | |
"src": "9199:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 709, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9212:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "9199:14:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 720, | |
"nodeType": "IfStatement", | |
"src": "9195:93:1", | |
"trueBody": { | |
"id": 719, | |
"nodeType": "Block", | |
"src": "9215:73:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 713, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 711, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "9233:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": ">>=", | |
"rightHandSide": { | |
"hexValue": "38", | |
"id": 712, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9243:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_8_by_1", | |
"typeString": "int_const 8" | |
}, | |
"value": "8" | |
}, | |
"src": "9233:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 714, | |
"nodeType": "ExpressionStatement", | |
"src": "9233:11:1" | |
}, | |
{ | |
"expression": { | |
"id": 717, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 715, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 643, | |
"src": "9262:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "38", | |
"id": 716, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9272:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_8_by_1", | |
"typeString": "int_const 8" | |
}, | |
"value": "8" | |
}, | |
"src": "9262:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 718, | |
"nodeType": "ExpressionStatement", | |
"src": "9262:11:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 725, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 723, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 721, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "9305:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "34", | |
"id": 722, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9314:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_4_by_1", | |
"typeString": "int_const 4" | |
}, | |
"value": "4" | |
}, | |
"src": "9305:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 724, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9318:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "9305:14:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 735, | |
"nodeType": "IfStatement", | |
"src": "9301:93:1", | |
"trueBody": { | |
"id": 734, | |
"nodeType": "Block", | |
"src": "9321:73:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 728, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 726, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "9339:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": ">>=", | |
"rightHandSide": { | |
"hexValue": "34", | |
"id": 727, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9349:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_4_by_1", | |
"typeString": "int_const 4" | |
}, | |
"value": "4" | |
}, | |
"src": "9339:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 729, | |
"nodeType": "ExpressionStatement", | |
"src": "9339:11:1" | |
}, | |
{ | |
"expression": { | |
"id": 732, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 730, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 643, | |
"src": "9368:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "34", | |
"id": 731, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9378:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_4_by_1", | |
"typeString": "int_const 4" | |
}, | |
"value": "4" | |
}, | |
"src": "9368:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 733, | |
"nodeType": "ExpressionStatement", | |
"src": "9368:11:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 740, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 738, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 736, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "9411:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "32", | |
"id": 737, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9420:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"src": "9411:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 739, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9424:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "9411:14:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 750, | |
"nodeType": "IfStatement", | |
"src": "9407:93:1", | |
"trueBody": { | |
"id": 749, | |
"nodeType": "Block", | |
"src": "9427:73:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 743, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 741, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "9445:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": ">>=", | |
"rightHandSide": { | |
"hexValue": "32", | |
"id": 742, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9455:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"src": "9445:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 744, | |
"nodeType": "ExpressionStatement", | |
"src": "9445:11:1" | |
}, | |
{ | |
"expression": { | |
"id": 747, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 745, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 643, | |
"src": "9474:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "32", | |
"id": 746, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9484:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"src": "9474:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 748, | |
"nodeType": "ExpressionStatement", | |
"src": "9474:11:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 755, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 753, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 751, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 637, | |
"src": "9517:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 752, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9526:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "9517:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 754, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9530:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "9517:14:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 761, | |
"nodeType": "IfStatement", | |
"src": "9513:64:1", | |
"trueBody": { | |
"id": 760, | |
"nodeType": "Block", | |
"src": "9533:44:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 758, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 756, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 643, | |
"src": "9551:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "31", | |
"id": 757, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9561:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "9551:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 759, | |
"nodeType": "ExpressionStatement", | |
"src": "9551:11:1" | |
} | |
] | |
} | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"id": 763, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 643, | |
"src": "9603:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 641, | |
"id": 764, | |
"nodeType": "Return", | |
"src": "9596:13:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 635, | |
"nodeType": "StructuredDocumentation", | |
"src": "8515:113:1", | |
"text": " @dev Return the log in base 2, rounded down, of a positive value.\n Returns 0 if given 0." | |
}, | |
"id": 766, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "log2", | |
"nameLocation": "8642:4:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 638, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 637, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "8655:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 766, | |
"src": "8647:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 636, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "8647:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "8646:15:1" | |
}, | |
"returnParameters": { | |
"id": 641, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 640, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 766, | |
"src": "8685:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 639, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "8685:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "8684:9:1" | |
}, | |
"scope": 1094, | |
"src": "8633:983:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 801, | |
"nodeType": "Block", | |
"src": "9849:165:1", | |
"statements": [ | |
{ | |
"id": 800, | |
"nodeType": "UncheckedBlock", | |
"src": "9859:149:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
778 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 778, | |
"mutability": "mutable", | |
"name": "result", | |
"nameLocation": "9891:6:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 800, | |
"src": "9883:14:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 777, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "9883:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 782, | |
"initialValue": { | |
"arguments": [ | |
{ | |
"id": 780, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 769, | |
"src": "9905:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 779, | |
"name": "log2", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
766, | |
802 | |
], | |
"referencedDeclaration": 766, | |
"src": "9900:4:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", | |
"typeString": "function (uint256) pure returns (uint256)" | |
} | |
}, | |
"id": 781, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "9900:11:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "9883:28:1" | |
}, | |
{ | |
"expression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 798, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 783, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 778, | |
"src": "9932:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"components": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"id": 793, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
}, | |
"id": 787, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 784, | |
"name": "rounding", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 772, | |
"src": "9942:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"expression": { | |
"id": 785, | |
"name": "Rounding", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 235, | |
"src": "9954:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_enum$_Rounding_$235_$", | |
"typeString": "type(enum Math.Rounding)" | |
} | |
}, | |
"id": 786, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"memberLocation": "9963:2:1", | |
"memberName": "Up", | |
"nodeType": "MemberAccess", | |
"referencedDeclaration": 233, | |
"src": "9954:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"src": "9942:23:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "&&", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 792, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 790, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "31", | |
"id": 788, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9969:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<<", | |
"rightExpression": { | |
"id": 789, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 778, | |
"src": "9974:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "9969:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<", | |
"rightExpression": { | |
"id": 791, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 769, | |
"src": "9983:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "9969:19:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"src": "9942:46:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"falseExpression": { | |
"hexValue": "30", | |
"id": 795, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9995:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"id": 796, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "Conditional", | |
"src": "9942:54:1", | |
"trueExpression": { | |
"hexValue": "31", | |
"id": 794, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "9991:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
} | |
], | |
"id": 797, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "9941:56:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
}, | |
"src": "9932:65:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 776, | |
"id": 799, | |
"nodeType": "Return", | |
"src": "9925:72:1" | |
} | |
] | |
} | |
] | |
}, | |
"documentation": { | |
"id": 767, | |
"nodeType": "StructuredDocumentation", | |
"src": "9622:142:1", | |
"text": " @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n Returns 0 if given 0." | |
}, | |
"id": 802, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "log2", | |
"nameLocation": "9778:4:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 773, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 769, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "9791:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 802, | |
"src": "9783:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 768, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "9783:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 772, | |
"mutability": "mutable", | |
"name": "rounding", | |
"nameLocation": "9807:8:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 802, | |
"src": "9798:17:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
}, | |
"typeName": { | |
"id": 771, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 770, | |
"name": "Rounding", | |
"nameLocations": [ | |
"9798:8:1" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 235, | |
"src": "9798:8:1" | |
}, | |
"referencedDeclaration": 235, | |
"src": "9798:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "9782:34:1" | |
}, | |
"returnParameters": { | |
"id": 776, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 775, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 802, | |
"src": "9840:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 774, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "9840:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "9839:9:1" | |
}, | |
"scope": 1094, | |
"src": "9769:245:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 930, | |
"nodeType": "Block", | |
"src": "10201:854:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
811 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 811, | |
"mutability": "mutable", | |
"name": "result", | |
"nameLocation": "10219:6:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 930, | |
"src": "10211:14:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 810, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "10211:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 813, | |
"initialValue": { | |
"hexValue": "30", | |
"id": 812, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10228:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "10211:18:1" | |
}, | |
{ | |
"id": 927, | |
"nodeType": "UncheckedBlock", | |
"src": "10239:787:1", | |
"statements": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 818, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 814, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 805, | |
"src": "10267:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">=", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_rational_10000000000000000000000000000000000000000000000000000000000000000_by_1", | |
"typeString": "int_const 1000...(57 digits omitted)...0000" | |
}, | |
"id": 817, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 815, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10276:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"hexValue": "3634", | |
"id": 816, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10282:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_64_by_1", | |
"typeString": "int_const 64" | |
}, | |
"value": "64" | |
}, | |
"src": "10276:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10000000000000000000000000000000000000000000000000000000000000000_by_1", | |
"typeString": "int_const 1000...(57 digits omitted)...0000" | |
} | |
}, | |
"src": "10267:17:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 830, | |
"nodeType": "IfStatement", | |
"src": "10263:103:1", | |
"trueBody": { | |
"id": 829, | |
"nodeType": "Block", | |
"src": "10286:80:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 823, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 819, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 805, | |
"src": "10304:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "/=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_rational_10000000000000000000000000000000000000000000000000000000000000000_by_1", | |
"typeString": "int_const 1000...(57 digits omitted)...0000" | |
}, | |
"id": 822, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 820, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10313:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"hexValue": "3634", | |
"id": 821, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10319:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_64_by_1", | |
"typeString": "int_const 64" | |
}, | |
"value": "64" | |
}, | |
"src": "10313:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10000000000000000000000000000000000000000000000000000000000000000_by_1", | |
"typeString": "int_const 1000...(57 digits omitted)...0000" | |
} | |
}, | |
"src": "10304:17:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 824, | |
"nodeType": "ExpressionStatement", | |
"src": "10304:17:1" | |
}, | |
{ | |
"expression": { | |
"id": 827, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 825, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 811, | |
"src": "10339:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "3634", | |
"id": 826, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10349:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_64_by_1", | |
"typeString": "int_const 64" | |
}, | |
"value": "64" | |
}, | |
"src": "10339:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 828, | |
"nodeType": "ExpressionStatement", | |
"src": "10339:12:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 835, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 831, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 805, | |
"src": "10383:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">=", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_rational_100000000000000000000000000000000_by_1", | |
"typeString": "int_const 1000...(25 digits omitted)...0000" | |
}, | |
"id": 834, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 832, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10392:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"hexValue": "3332", | |
"id": 833, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10398:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_32_by_1", | |
"typeString": "int_const 32" | |
}, | |
"value": "32" | |
}, | |
"src": "10392:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_100000000000000000000000000000000_by_1", | |
"typeString": "int_const 1000...(25 digits omitted)...0000" | |
} | |
}, | |
"src": "10383:17:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 847, | |
"nodeType": "IfStatement", | |
"src": "10379:103:1", | |
"trueBody": { | |
"id": 846, | |
"nodeType": "Block", | |
"src": "10402:80:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 840, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 836, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 805, | |
"src": "10420:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "/=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_rational_100000000000000000000000000000000_by_1", | |
"typeString": "int_const 1000...(25 digits omitted)...0000" | |
}, | |
"id": 839, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 837, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10429:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"hexValue": "3332", | |
"id": 838, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10435:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_32_by_1", | |
"typeString": "int_const 32" | |
}, | |
"value": "32" | |
}, | |
"src": "10429:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_100000000000000000000000000000000_by_1", | |
"typeString": "int_const 1000...(25 digits omitted)...0000" | |
} | |
}, | |
"src": "10420:17:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 841, | |
"nodeType": "ExpressionStatement", | |
"src": "10420:17:1" | |
}, | |
{ | |
"expression": { | |
"id": 844, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 842, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 811, | |
"src": "10455:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "3332", | |
"id": 843, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10465:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_32_by_1", | |
"typeString": "int_const 32" | |
}, | |
"value": "32" | |
}, | |
"src": "10455:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 845, | |
"nodeType": "ExpressionStatement", | |
"src": "10455:12:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 852, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 848, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 805, | |
"src": "10499:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">=", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_rational_10000000000000000_by_1", | |
"typeString": "int_const 10000000000000000" | |
}, | |
"id": 851, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 849, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10508:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"hexValue": "3136", | |
"id": 850, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10514:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_16_by_1", | |
"typeString": "int_const 16" | |
}, | |
"value": "16" | |
}, | |
"src": "10508:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10000000000000000_by_1", | |
"typeString": "int_const 10000000000000000" | |
} | |
}, | |
"src": "10499:17:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 864, | |
"nodeType": "IfStatement", | |
"src": "10495:103:1", | |
"trueBody": { | |
"id": 863, | |
"nodeType": "Block", | |
"src": "10518:80:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 857, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 853, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 805, | |
"src": "10536:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "/=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_rational_10000000000000000_by_1", | |
"typeString": "int_const 10000000000000000" | |
}, | |
"id": 856, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 854, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10545:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"hexValue": "3136", | |
"id": 855, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10551:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_16_by_1", | |
"typeString": "int_const 16" | |
}, | |
"value": "16" | |
}, | |
"src": "10545:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10000000000000000_by_1", | |
"typeString": "int_const 10000000000000000" | |
} | |
}, | |
"src": "10536:17:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 858, | |
"nodeType": "ExpressionStatement", | |
"src": "10536:17:1" | |
}, | |
{ | |
"expression": { | |
"id": 861, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 859, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 811, | |
"src": "10571:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "3136", | |
"id": 860, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10581:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_16_by_1", | |
"typeString": "int_const 16" | |
}, | |
"value": "16" | |
}, | |
"src": "10571:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 862, | |
"nodeType": "ExpressionStatement", | |
"src": "10571:12:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 869, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 865, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 805, | |
"src": "10615:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">=", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_rational_100000000_by_1", | |
"typeString": "int_const 100000000" | |
}, | |
"id": 868, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 866, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10624:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"hexValue": "38", | |
"id": 867, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10630:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_8_by_1", | |
"typeString": "int_const 8" | |
}, | |
"value": "8" | |
}, | |
"src": "10624:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_100000000_by_1", | |
"typeString": "int_const 100000000" | |
} | |
}, | |
"src": "10615:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 881, | |
"nodeType": "IfStatement", | |
"src": "10611:100:1", | |
"trueBody": { | |
"id": 880, | |
"nodeType": "Block", | |
"src": "10633:78:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 874, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 870, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 805, | |
"src": "10651:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "/=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_rational_100000000_by_1", | |
"typeString": "int_const 100000000" | |
}, | |
"id": 873, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 871, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10660:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"hexValue": "38", | |
"id": 872, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10666:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_8_by_1", | |
"typeString": "int_const 8" | |
}, | |
"value": "8" | |
}, | |
"src": "10660:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_100000000_by_1", | |
"typeString": "int_const 100000000" | |
} | |
}, | |
"src": "10651:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 875, | |
"nodeType": "ExpressionStatement", | |
"src": "10651:16:1" | |
}, | |
{ | |
"expression": { | |
"id": 878, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 876, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 811, | |
"src": "10685:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "38", | |
"id": 877, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10695:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_8_by_1", | |
"typeString": "int_const 8" | |
}, | |
"value": "8" | |
}, | |
"src": "10685:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 879, | |
"nodeType": "ExpressionStatement", | |
"src": "10685:11:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 886, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 882, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 805, | |
"src": "10728:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">=", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_rational_10000_by_1", | |
"typeString": "int_const 10000" | |
}, | |
"id": 885, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 883, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10737:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"hexValue": "34", | |
"id": 884, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10743:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_4_by_1", | |
"typeString": "int_const 4" | |
}, | |
"value": "4" | |
}, | |
"src": "10737:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10000_by_1", | |
"typeString": "int_const 10000" | |
} | |
}, | |
"src": "10728:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 898, | |
"nodeType": "IfStatement", | |
"src": "10724:100:1", | |
"trueBody": { | |
"id": 897, | |
"nodeType": "Block", | |
"src": "10746:78:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 891, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 887, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 805, | |
"src": "10764:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "/=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_rational_10000_by_1", | |
"typeString": "int_const 10000" | |
}, | |
"id": 890, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 888, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10773:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"hexValue": "34", | |
"id": 889, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10779:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_4_by_1", | |
"typeString": "int_const 4" | |
}, | |
"value": "4" | |
}, | |
"src": "10773:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10000_by_1", | |
"typeString": "int_const 10000" | |
} | |
}, | |
"src": "10764:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 892, | |
"nodeType": "ExpressionStatement", | |
"src": "10764:16:1" | |
}, | |
{ | |
"expression": { | |
"id": 895, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 893, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 811, | |
"src": "10798:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "34", | |
"id": 894, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10808:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_4_by_1", | |
"typeString": "int_const 4" | |
}, | |
"value": "4" | |
}, | |
"src": "10798:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 896, | |
"nodeType": "ExpressionStatement", | |
"src": "10798:11:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 903, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 899, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 805, | |
"src": "10841:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">=", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_rational_100_by_1", | |
"typeString": "int_const 100" | |
}, | |
"id": 902, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 900, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10850:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"hexValue": "32", | |
"id": 901, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10856:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"src": "10850:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_100_by_1", | |
"typeString": "int_const 100" | |
} | |
}, | |
"src": "10841:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 915, | |
"nodeType": "IfStatement", | |
"src": "10837:100:1", | |
"trueBody": { | |
"id": 914, | |
"nodeType": "Block", | |
"src": "10859:78:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 908, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 904, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 805, | |
"src": "10877:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "/=", | |
"rightHandSide": { | |
"commonType": { | |
"typeIdentifier": "t_rational_100_by_1", | |
"typeString": "int_const 100" | |
}, | |
"id": 907, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 905, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10886:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"hexValue": "32", | |
"id": 906, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10892:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"src": "10886:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_100_by_1", | |
"typeString": "int_const 100" | |
} | |
}, | |
"src": "10877:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 909, | |
"nodeType": "ExpressionStatement", | |
"src": "10877:16:1" | |
}, | |
{ | |
"expression": { | |
"id": 912, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 910, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 811, | |
"src": "10911:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "32", | |
"id": 911, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10921:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"src": "10911:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 913, | |
"nodeType": "ExpressionStatement", | |
"src": "10911:11:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 920, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 916, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 805, | |
"src": "10954:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">=", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"id": 919, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 917, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10963:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 918, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "10969:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "10963:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
} | |
}, | |
"src": "10954:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 926, | |
"nodeType": "IfStatement", | |
"src": "10950:66:1", | |
"trueBody": { | |
"id": 925, | |
"nodeType": "Block", | |
"src": "10972:44:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 923, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 921, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 811, | |
"src": "10990:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "31", | |
"id": 922, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "11000:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "10990:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 924, | |
"nodeType": "ExpressionStatement", | |
"src": "10990:11:1" | |
} | |
] | |
} | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"id": 928, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 811, | |
"src": "11042:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 809, | |
"id": 929, | |
"nodeType": "Return", | |
"src": "11035:13:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 803, | |
"nodeType": "StructuredDocumentation", | |
"src": "10020:114:1", | |
"text": " @dev Return the log in base 10, rounded down, of a positive value.\n Returns 0 if given 0." | |
}, | |
"id": 931, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "log10", | |
"nameLocation": "10148:5:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 806, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 805, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "10162:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 931, | |
"src": "10154:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 804, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "10154:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "10153:15:1" | |
}, | |
"returnParameters": { | |
"id": 809, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 808, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 931, | |
"src": "10192:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 807, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "10192:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "10191:9:1" | |
}, | |
"scope": 1094, | |
"src": "10139:916:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 966, | |
"nodeType": "Block", | |
"src": "11290:167:1", | |
"statements": [ | |
{ | |
"id": 965, | |
"nodeType": "UncheckedBlock", | |
"src": "11300:151:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
943 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 943, | |
"mutability": "mutable", | |
"name": "result", | |
"nameLocation": "11332:6:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 965, | |
"src": "11324:14:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 942, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "11324:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 947, | |
"initialValue": { | |
"arguments": [ | |
{ | |
"id": 945, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 934, | |
"src": "11347:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 944, | |
"name": "log10", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
931, | |
967 | |
], | |
"referencedDeclaration": 931, | |
"src": "11341:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", | |
"typeString": "function (uint256) pure returns (uint256)" | |
} | |
}, | |
"id": 946, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "11341:12:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "11324:29:1" | |
}, | |
{ | |
"expression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 963, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 948, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 943, | |
"src": "11374:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"components": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"id": 958, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
}, | |
"id": 952, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 949, | |
"name": "rounding", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 937, | |
"src": "11384:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"expression": { | |
"id": 950, | |
"name": "Rounding", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 235, | |
"src": "11396:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_enum$_Rounding_$235_$", | |
"typeString": "type(enum Math.Rounding)" | |
} | |
}, | |
"id": 951, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"memberLocation": "11405:2:1", | |
"memberName": "Up", | |
"nodeType": "MemberAccess", | |
"referencedDeclaration": 233, | |
"src": "11396:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"src": "11384:23:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "&&", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 957, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 955, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "3130", | |
"id": 953, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "11411:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_10_by_1", | |
"typeString": "int_const 10" | |
}, | |
"value": "10" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "**", | |
"rightExpression": { | |
"id": 954, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 943, | |
"src": "11417:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "11411:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<", | |
"rightExpression": { | |
"id": 956, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 934, | |
"src": "11426:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "11411:20:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"src": "11384:47:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"falseExpression": { | |
"hexValue": "30", | |
"id": 960, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "11438:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"id": 961, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "Conditional", | |
"src": "11384:55:1", | |
"trueExpression": { | |
"hexValue": "31", | |
"id": 959, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "11434:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
} | |
], | |
"id": 962, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "11383:57:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
}, | |
"src": "11374:66:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 941, | |
"id": 964, | |
"nodeType": "Return", | |
"src": "11367:73:1" | |
} | |
] | |
} | |
] | |
}, | |
"documentation": { | |
"id": 932, | |
"nodeType": "StructuredDocumentation", | |
"src": "11061:143:1", | |
"text": " @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n Returns 0 if given 0." | |
}, | |
"id": 967, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "log10", | |
"nameLocation": "11218:5:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 938, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 934, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "11232:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 967, | |
"src": "11224:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 933, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "11224:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 937, | |
"mutability": "mutable", | |
"name": "rounding", | |
"nameLocation": "11248:8:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 967, | |
"src": "11239:17:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
}, | |
"typeName": { | |
"id": 936, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 935, | |
"name": "Rounding", | |
"nameLocations": [ | |
"11239:8:1" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 235, | |
"src": "11239:8:1" | |
}, | |
"referencedDeclaration": 235, | |
"src": "11239:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "11223:34:1" | |
}, | |
"returnParameters": { | |
"id": 941, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 940, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 967, | |
"src": "11281:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 939, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "11281:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "11280:9:1" | |
}, | |
"scope": 1094, | |
"src": "11209:248:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 1053, | |
"nodeType": "Block", | |
"src": "11771:600:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
976 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 976, | |
"mutability": "mutable", | |
"name": "result", | |
"nameLocation": "11789:6:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 1053, | |
"src": "11781:14:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 975, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "11781:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 978, | |
"initialValue": { | |
"hexValue": "30", | |
"id": 977, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "11798:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "11781:18:1" | |
}, | |
{ | |
"id": 1050, | |
"nodeType": "UncheckedBlock", | |
"src": "11809:533:1", | |
"statements": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 983, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 981, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 979, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 970, | |
"src": "11837:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "313238", | |
"id": 980, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "11846:3:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_128_by_1", | |
"typeString": "int_const 128" | |
}, | |
"value": "128" | |
}, | |
"src": "11837:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 982, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "11852:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "11837:16:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 993, | |
"nodeType": "IfStatement", | |
"src": "11833:98:1", | |
"trueBody": { | |
"id": 992, | |
"nodeType": "Block", | |
"src": "11855:76:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 986, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 984, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 970, | |
"src": "11873:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": ">>=", | |
"rightHandSide": { | |
"hexValue": "313238", | |
"id": 985, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "11883:3:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_128_by_1", | |
"typeString": "int_const 128" | |
}, | |
"value": "128" | |
}, | |
"src": "11873:13:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 987, | |
"nodeType": "ExpressionStatement", | |
"src": "11873:13:1" | |
}, | |
{ | |
"expression": { | |
"id": 990, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 988, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 976, | |
"src": "11904:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "3136", | |
"id": 989, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "11914:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_16_by_1", | |
"typeString": "int_const 16" | |
}, | |
"value": "16" | |
}, | |
"src": "11904:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 991, | |
"nodeType": "ExpressionStatement", | |
"src": "11904:12:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 998, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 996, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 994, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 970, | |
"src": "11948:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "3634", | |
"id": 995, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "11957:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_64_by_1", | |
"typeString": "int_const 64" | |
}, | |
"value": "64" | |
}, | |
"src": "11948:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 997, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "11962:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "11948:15:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 1008, | |
"nodeType": "IfStatement", | |
"src": "11944:95:1", | |
"trueBody": { | |
"id": 1007, | |
"nodeType": "Block", | |
"src": "11965:74:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 1001, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 999, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 970, | |
"src": "11983:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": ">>=", | |
"rightHandSide": { | |
"hexValue": "3634", | |
"id": 1000, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "11993:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_64_by_1", | |
"typeString": "int_const 64" | |
}, | |
"value": "64" | |
}, | |
"src": "11983:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 1002, | |
"nodeType": "ExpressionStatement", | |
"src": "11983:12:1" | |
}, | |
{ | |
"expression": { | |
"id": 1005, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 1003, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 976, | |
"src": "12013:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "38", | |
"id": 1004, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12023:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_8_by_1", | |
"typeString": "int_const 8" | |
}, | |
"value": "8" | |
}, | |
"src": "12013:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 1006, | |
"nodeType": "ExpressionStatement", | |
"src": "12013:11:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 1013, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 1011, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 1009, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 970, | |
"src": "12056:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "3332", | |
"id": 1010, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12065:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_32_by_1", | |
"typeString": "int_const 32" | |
}, | |
"value": "32" | |
}, | |
"src": "12056:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 1012, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12070:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "12056:15:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 1023, | |
"nodeType": "IfStatement", | |
"src": "12052:95:1", | |
"trueBody": { | |
"id": 1022, | |
"nodeType": "Block", | |
"src": "12073:74:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 1016, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 1014, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 970, | |
"src": "12091:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": ">>=", | |
"rightHandSide": { | |
"hexValue": "3332", | |
"id": 1015, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12101:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_32_by_1", | |
"typeString": "int_const 32" | |
}, | |
"value": "32" | |
}, | |
"src": "12091:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 1017, | |
"nodeType": "ExpressionStatement", | |
"src": "12091:12:1" | |
}, | |
{ | |
"expression": { | |
"id": 1020, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 1018, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 976, | |
"src": "12121:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "34", | |
"id": 1019, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12131:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_4_by_1", | |
"typeString": "int_const 4" | |
}, | |
"value": "4" | |
}, | |
"src": "12121:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 1021, | |
"nodeType": "ExpressionStatement", | |
"src": "12121:11:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 1028, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 1026, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 1024, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 970, | |
"src": "12164:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "3136", | |
"id": 1025, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12173:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_16_by_1", | |
"typeString": "int_const 16" | |
}, | |
"value": "16" | |
}, | |
"src": "12164:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 1027, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12178:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "12164:15:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 1038, | |
"nodeType": "IfStatement", | |
"src": "12160:95:1", | |
"trueBody": { | |
"id": 1037, | |
"nodeType": "Block", | |
"src": "12181:74:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 1031, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 1029, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 970, | |
"src": "12199:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": ">>=", | |
"rightHandSide": { | |
"hexValue": "3136", | |
"id": 1030, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12209:2:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_16_by_1", | |
"typeString": "int_const 16" | |
}, | |
"value": "16" | |
}, | |
"src": "12199:12:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 1032, | |
"nodeType": "ExpressionStatement", | |
"src": "12199:12:1" | |
}, | |
{ | |
"expression": { | |
"id": 1035, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 1033, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 976, | |
"src": "12229:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "32", | |
"id": 1034, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12239:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_2_by_1", | |
"typeString": "int_const 2" | |
}, | |
"value": "2" | |
}, | |
"src": "12229:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 1036, | |
"nodeType": "ExpressionStatement", | |
"src": "12229:11:1" | |
} | |
] | |
} | |
}, | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 1043, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 1041, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 1039, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 970, | |
"src": "12272:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "38", | |
"id": 1040, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12281:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_8_by_1", | |
"typeString": "int_const 8" | |
}, | |
"value": "8" | |
}, | |
"src": "12272:10:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 1042, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12285:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "12272:14:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"id": 1049, | |
"nodeType": "IfStatement", | |
"src": "12268:64:1", | |
"trueBody": { | |
"id": 1048, | |
"nodeType": "Block", | |
"src": "12288:44:1", | |
"statements": [ | |
{ | |
"expression": { | |
"id": 1046, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftHandSide": { | |
"id": 1044, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 976, | |
"src": "12306:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "Assignment", | |
"operator": "+=", | |
"rightHandSide": { | |
"hexValue": "31", | |
"id": 1045, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12316:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "12306:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"id": 1047, | |
"nodeType": "ExpressionStatement", | |
"src": "12306:11:1" | |
} | |
] | |
} | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"id": 1051, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 976, | |
"src": "12358:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 974, | |
"id": 1052, | |
"nodeType": "Return", | |
"src": "12351:13:1" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 968, | |
"nodeType": "StructuredDocumentation", | |
"src": "11463:240:1", | |
"text": " @dev Return the log in base 256, rounded down, of a positive value.\n Returns 0 if given 0.\n Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string." | |
}, | |
"id": 1054, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "log256", | |
"nameLocation": "11717:6:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 971, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 970, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "11732:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 1054, | |
"src": "11724:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 969, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "11724:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "11723:15:1" | |
}, | |
"returnParameters": { | |
"id": 974, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 973, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 1054, | |
"src": "11762:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 972, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "11762:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "11761:9:1" | |
}, | |
"scope": 1094, | |
"src": "11708:663:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 1092, | |
"nodeType": "Block", | |
"src": "12608:174:1", | |
"statements": [ | |
{ | |
"id": 1091, | |
"nodeType": "UncheckedBlock", | |
"src": "12618:158:1", | |
"statements": [ | |
{ | |
"assignments": [ | |
1066 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 1066, | |
"mutability": "mutable", | |
"name": "result", | |
"nameLocation": "12650:6:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 1091, | |
"src": "12642:14:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 1065, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "12642:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 1070, | |
"initialValue": { | |
"arguments": [ | |
{ | |
"id": 1068, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1057, | |
"src": "12666:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 1067, | |
"name": "log256", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [ | |
1054, | |
1093 | |
], | |
"referencedDeclaration": 1054, | |
"src": "12659:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_function_internal_pure$_t_uint256_$returns$_t_uint256_$", | |
"typeString": "function (uint256) pure returns (uint256)" | |
} | |
}, | |
"id": 1069, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "functionCall", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "12659:13:1", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "12642:30:1" | |
}, | |
{ | |
"expression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 1089, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 1071, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1066, | |
"src": "12693:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"components": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
}, | |
"id": 1084, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
}, | |
"id": 1075, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 1072, | |
"name": "rounding", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1060, | |
"src": "12703:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "==", | |
"rightExpression": { | |
"expression": { | |
"id": 1073, | |
"name": "Rounding", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 235, | |
"src": "12715:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_enum$_Rounding_$235_$", | |
"typeString": "type(enum Math.Rounding)" | |
} | |
}, | |
"id": 1074, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"memberLocation": "12724:2:1", | |
"memberName": "Up", | |
"nodeType": "MemberAccess", | |
"referencedDeclaration": 233, | |
"src": "12715:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"src": "12703:23:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "&&", | |
"rightExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 1083, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 1081, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"hexValue": "31", | |
"id": 1076, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12730:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<<", | |
"rightExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 1079, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 1077, | |
"name": "result", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1066, | |
"src": "12736:6:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<<", | |
"rightExpression": { | |
"hexValue": "33", | |
"id": 1078, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12746:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_3_by_1", | |
"typeString": "int_const 3" | |
}, | |
"value": "3" | |
}, | |
"src": "12736:11:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"id": 1080, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "12735:13:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "12730:18:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<", | |
"rightExpression": { | |
"id": 1082, | |
"name": "value", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1057, | |
"src": "12751:5:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"src": "12730:26:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"src": "12703:53:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"falseExpression": { | |
"hexValue": "30", | |
"id": 1086, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12763:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"id": 1087, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "Conditional", | |
"src": "12703:61:1", | |
"trueExpression": { | |
"hexValue": "31", | |
"id": 1085, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "12759:1:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
} | |
], | |
"id": 1088, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "12702:63:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint8", | |
"typeString": "uint8" | |
} | |
}, | |
"src": "12693:72:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 1064, | |
"id": 1090, | |
"nodeType": "Return", | |
"src": "12686:79:1" | |
} | |
] | |
} | |
] | |
}, | |
"documentation": { | |
"id": 1055, | |
"nodeType": "StructuredDocumentation", | |
"src": "12377:144:1", | |
"text": " @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n Returns 0 if given 0." | |
}, | |
"id": 1093, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "log256", | |
"nameLocation": "12535:6:1", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 1061, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 1057, | |
"mutability": "mutable", | |
"name": "value", | |
"nameLocation": "12550:5:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 1093, | |
"src": "12542:13:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 1056, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "12542:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 1060, | |
"mutability": "mutable", | |
"name": "rounding", | |
"nameLocation": "12566:8:1", | |
"nodeType": "VariableDeclaration", | |
"scope": 1093, | |
"src": "12557:17:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
}, | |
"typeName": { | |
"id": 1059, | |
"nodeType": "UserDefinedTypeName", | |
"pathNode": { | |
"id": 1058, | |
"name": "Rounding", | |
"nameLocations": [ | |
"12557:8:1" | |
], | |
"nodeType": "IdentifierPath", | |
"referencedDeclaration": 235, | |
"src": "12557:8:1" | |
}, | |
"referencedDeclaration": 235, | |
"src": "12557:8:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_enum$_Rounding_$235", | |
"typeString": "enum Math.Rounding" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "12541:34:1" | |
}, | |
"returnParameters": { | |
"id": 1064, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 1063, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 1093, | |
"src": "12599:7:1", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 1062, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "12599:7:1", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "12598:9:1" | |
}, | |
"scope": 1094, | |
"src": "12526:256:1", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
} | |
], | |
"scope": 1095, | |
"src": "202:12582:1", | |
"usedErrors": [] | |
} | |
], | |
"src": "103:12682:1" | |
}, | |
"id": 1 | |
}, | |
".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol": { | |
"ast": { | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol", | |
"exportedSymbols": { | |
"SignedMath": [ | |
1199 | |
] | |
}, | |
"id": 1200, | |
"license": "MIT", | |
"nodeType": "SourceUnit", | |
"nodes": [ | |
{ | |
"id": 1096, | |
"literals": [ | |
"solidity", | |
"^", | |
"0.8", | |
".0" | |
], | |
"nodeType": "PragmaDirective", | |
"src": "109:23:2" | |
}, | |
{ | |
"abstract": false, | |
"baseContracts": [], | |
"canonicalName": "SignedMath", | |
"contractDependencies": [], | |
"contractKind": "library", | |
"documentation": { | |
"id": 1097, | |
"nodeType": "StructuredDocumentation", | |
"src": "134:80:2", | |
"text": " @dev Standard signed math utilities missing in the Solidity language." | |
}, | |
"fullyImplemented": true, | |
"id": 1199, | |
"linearizedBaseContracts": [ | |
1199 | |
], | |
"name": "SignedMath", | |
"nameLocation": "223:10:2", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"body": { | |
"id": 1114, | |
"nodeType": "Block", | |
"src": "375:37:2", | |
"statements": [ | |
{ | |
"expression": { | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"id": 1109, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 1107, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1100, | |
"src": "392:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">", | |
"rightExpression": { | |
"id": 1108, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1102, | |
"src": "396:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"src": "392:5:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"falseExpression": { | |
"id": 1111, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1102, | |
"src": "404:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"id": 1112, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "Conditional", | |
"src": "392:13:2", | |
"trueExpression": { | |
"id": 1110, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1100, | |
"src": "400:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"functionReturnParameters": 1106, | |
"id": 1113, | |
"nodeType": "Return", | |
"src": "385:20:2" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 1098, | |
"nodeType": "StructuredDocumentation", | |
"src": "240:66:2", | |
"text": " @dev Returns the largest of two signed numbers." | |
}, | |
"id": 1115, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "max", | |
"nameLocation": "320:3:2", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 1103, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 1100, | |
"mutability": "mutable", | |
"name": "a", | |
"nameLocation": "331:1:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 1115, | |
"src": "324:8:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"typeName": { | |
"id": 1099, | |
"name": "int256", | |
"nodeType": "ElementaryTypeName", | |
"src": "324:6:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 1102, | |
"mutability": "mutable", | |
"name": "b", | |
"nameLocation": "341:1:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 1115, | |
"src": "334:8:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"typeName": { | |
"id": 1101, | |
"name": "int256", | |
"nodeType": "ElementaryTypeName", | |
"src": "334:6:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "323:20:2" | |
}, | |
"returnParameters": { | |
"id": 1106, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 1105, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 1115, | |
"src": "367:6:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"typeName": { | |
"id": 1104, | |
"name": "int256", | |
"nodeType": "ElementaryTypeName", | |
"src": "367:6:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "366:8:2" | |
}, | |
"scope": 1199, | |
"src": "311:101:2", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 1132, | |
"nodeType": "Block", | |
"src": "554:37:2", | |
"statements": [ | |
{ | |
"expression": { | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"id": 1127, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 1125, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1118, | |
"src": "571:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "<", | |
"rightExpression": { | |
"id": 1126, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1120, | |
"src": "575:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"src": "571:5:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"falseExpression": { | |
"id": 1129, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1120, | |
"src": "583:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"id": 1130, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "Conditional", | |
"src": "571:13:2", | |
"trueExpression": { | |
"id": 1128, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1118, | |
"src": "579:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"functionReturnParameters": 1124, | |
"id": 1131, | |
"nodeType": "Return", | |
"src": "564:20:2" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 1116, | |
"nodeType": "StructuredDocumentation", | |
"src": "418:67:2", | |
"text": " @dev Returns the smallest of two signed numbers." | |
}, | |
"id": 1133, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "min", | |
"nameLocation": "499:3:2", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 1121, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 1118, | |
"mutability": "mutable", | |
"name": "a", | |
"nameLocation": "510:1:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 1133, | |
"src": "503:8:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"typeName": { | |
"id": 1117, | |
"name": "int256", | |
"nodeType": "ElementaryTypeName", | |
"src": "503:6:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 1120, | |
"mutability": "mutable", | |
"name": "b", | |
"nameLocation": "520:1:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 1133, | |
"src": "513:8:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"typeName": { | |
"id": 1119, | |
"name": "int256", | |
"nodeType": "ElementaryTypeName", | |
"src": "513:6:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "502:20:2" | |
}, | |
"returnParameters": { | |
"id": 1124, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 1123, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 1133, | |
"src": "546:6:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"typeName": { | |
"id": 1122, | |
"name": "int256", | |
"nodeType": "ElementaryTypeName", | |
"src": "546:6:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "545:8:2" | |
}, | |
"scope": 1199, | |
"src": "490:101:2", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 1176, | |
"nodeType": "Block", | |
"src": "796:162:2", | |
"statements": [ | |
{ | |
"assignments": [ | |
1144 | |
], | |
"declarations": [ | |
{ | |
"constant": false, | |
"id": 1144, | |
"mutability": "mutable", | |
"name": "x", | |
"nameLocation": "865:1:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 1176, | |
"src": "858:8:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"typeName": { | |
"id": 1143, | |
"name": "int256", | |
"nodeType": "ElementaryTypeName", | |
"src": "858:6:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"id": 1157, | |
"initialValue": { | |
"commonType": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"id": 1156, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"id": 1147, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 1145, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1136, | |
"src": "870:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "&", | |
"rightExpression": { | |
"id": 1146, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1138, | |
"src": "874:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"src": "870:5:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
} | |
], | |
"id": 1148, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "869:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"id": 1154, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"id": 1151, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 1149, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1136, | |
"src": "881:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "^", | |
"rightExpression": { | |
"id": 1150, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1138, | |
"src": "885:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"src": "881:5:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
} | |
], | |
"id": 1152, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "880:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "31", | |
"id": 1153, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "891:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_1_by_1", | |
"typeString": "int_const 1" | |
}, | |
"value": "1" | |
}, | |
"src": "880:12:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
} | |
], | |
"id": 1155, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "879:14:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"src": "869:24:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"nodeType": "VariableDeclarationStatement", | |
"src": "858:35:2" | |
}, | |
{ | |
"expression": { | |
"commonType": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"id": 1174, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 1158, | |
"name": "x", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1144, | |
"src": "910:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "+", | |
"rightExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"id": 1172, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"arguments": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"id": 1166, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"arguments": [ | |
{ | |
"id": 1163, | |
"name": "x", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1144, | |
"src": "930:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
], | |
"id": 1162, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "922:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_uint256_$", | |
"typeString": "type(uint256)" | |
}, | |
"typeName": { | |
"id": 1161, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "922:7:2", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 1164, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "922:10:2", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">>", | |
"rightExpression": { | |
"hexValue": "323535", | |
"id": 1165, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "936:3:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_255_by_1", | |
"typeString": "int_const 255" | |
}, | |
"value": "255" | |
}, | |
"src": "922:17:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
], | |
"id": 1160, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "915:6:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_int256_$", | |
"typeString": "type(int256)" | |
}, | |
"typeName": { | |
"id": 1159, | |
"name": "int256", | |
"nodeType": "ElementaryTypeName", | |
"src": "915:6:2", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 1167, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "915:25:2", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "&", | |
"rightExpression": { | |
"components": [ | |
{ | |
"commonType": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"id": 1170, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 1168, | |
"name": "a", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1136, | |
"src": "944:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": "^", | |
"rightExpression": { | |
"id": 1169, | |
"name": "b", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1138, | |
"src": "948:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"src": "944:5:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
} | |
], | |
"id": 1171, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "943:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"src": "915:35:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
} | |
], | |
"id": 1173, | |
"isConstant": false, | |
"isInlineArray": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "TupleExpression", | |
"src": "914:37:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"src": "910:41:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"functionReturnParameters": 1142, | |
"id": 1175, | |
"nodeType": "Return", | |
"src": "903:48:2" | |
} | |
] | |
}, | |
"documentation": { | |
"id": 1134, | |
"nodeType": "StructuredDocumentation", | |
"src": "597:126:2", | |
"text": " @dev Returns the average of two signed numbers without overflow.\n The result is rounded towards zero." | |
}, | |
"id": 1177, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "average", | |
"nameLocation": "737:7:2", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 1139, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 1136, | |
"mutability": "mutable", | |
"name": "a", | |
"nameLocation": "752:1:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 1177, | |
"src": "745:8:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"typeName": { | |
"id": 1135, | |
"name": "int256", | |
"nodeType": "ElementaryTypeName", | |
"src": "745:6:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"visibility": "internal" | |
}, | |
{ | |
"constant": false, | |
"id": 1138, | |
"mutability": "mutable", | |
"name": "b", | |
"nameLocation": "762:1:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 1177, | |
"src": "755:8:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"typeName": { | |
"id": 1137, | |
"name": "int256", | |
"nodeType": "ElementaryTypeName", | |
"src": "755:6:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "744:20:2" | |
}, | |
"returnParameters": { | |
"id": 1142, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 1141, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 1177, | |
"src": "788:6:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"typeName": { | |
"id": 1140, | |
"name": "int256", | |
"nodeType": "ElementaryTypeName", | |
"src": "788:6:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "787:8:2" | |
}, | |
"scope": 1199, | |
"src": "728:230:2", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 1197, | |
"nodeType": "Block", | |
"src": "1102:158:2", | |
"statements": [ | |
{ | |
"id": 1196, | |
"nodeType": "UncheckedBlock", | |
"src": "1112:142:2", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"condition": { | |
"commonType": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"id": 1189, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"leftExpression": { | |
"id": 1187, | |
"name": "n", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1180, | |
"src": "1227:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"nodeType": "BinaryOperation", | |
"operator": ">=", | |
"rightExpression": { | |
"hexValue": "30", | |
"id": 1188, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"kind": "number", | |
"lValueRequested": false, | |
"nodeType": "Literal", | |
"src": "1232:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_rational_0_by_1", | |
"typeString": "int_const 0" | |
}, | |
"value": "0" | |
}, | |
"src": "1227:6:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bool", | |
"typeString": "bool" | |
} | |
}, | |
"falseExpression": { | |
"id": 1192, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "UnaryOperation", | |
"operator": "-", | |
"prefix": true, | |
"src": "1240:2:2", | |
"subExpression": { | |
"id": 1191, | |
"name": "n", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1180, | |
"src": "1241:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"id": 1193, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"nodeType": "Conditional", | |
"src": "1227:15:2", | |
"trueExpression": { | |
"id": 1190, | |
"name": "n", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 1180, | |
"src": "1236:1:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
} | |
], | |
"expression": { | |
"argumentTypes": [ | |
{ | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
], | |
"id": 1186, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": true, | |
"lValueRequested": false, | |
"nodeType": "ElementaryTypeNameExpression", | |
"src": "1219:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_type$_t_uint256_$", | |
"typeString": "type(uint256)" | |
}, | |
"typeName": { | |
"id": 1185, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1219:7:2", | |
"typeDescriptions": {} | |
} | |
}, | |
"id": 1194, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"kind": "typeConversion", | |
"lValueRequested": false, | |
"nameLocations": [], | |
"names": [], | |
"nodeType": "FunctionCall", | |
"src": "1219:24:2", | |
"tryCall": false, | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"functionReturnParameters": 1184, | |
"id": 1195, | |
"nodeType": "Return", | |
"src": "1212:31:2" | |
} | |
] | |
} | |
] | |
}, | |
"documentation": { | |
"id": 1178, | |
"nodeType": "StructuredDocumentation", | |
"src": "964:78:2", | |
"text": " @dev Returns the absolute unsigned value of a signed value." | |
}, | |
"id": 1198, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "abs", | |
"nameLocation": "1056:3:2", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 1181, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 1180, | |
"mutability": "mutable", | |
"name": "n", | |
"nameLocation": "1067:1:2", | |
"nodeType": "VariableDeclaration", | |
"scope": 1198, | |
"src": "1060:8:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
}, | |
"typeName": { | |
"id": 1179, | |
"name": "int256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1060:6:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_int256", | |
"typeString": "int256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1059:10:2" | |
}, | |
"returnParameters": { | |
"id": 1184, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 1183, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 1198, | |
"src": "1093:7:2", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
}, | |
"typeName": { | |
"id": 1182, | |
"name": "uint256", | |
"nodeType": "ElementaryTypeName", | |
"src": "1093:7:2", | |
"typeDescriptions": { | |
"typeIdentifier": "t_uint256", | |
"typeString": "uint256" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "1092:9:2" | |
}, | |
"scope": 1199, | |
"src": "1047:213:2", | |
"stateMutability": "pure", | |
"virtual": false, | |
"visibility": "internal" | |
} | |
], | |
"scope": 1200, | |
"src": "215:1047:2", | |
"usedErrors": [] | |
} | |
], | |
"src": "109:1154:2" | |
}, | |
"id": 2 | |
} | |
} | |
} | |
} |
{ | |
"id": "def22422ae8bb1193ab7d0e2ec691ac3", | |
"_format": "hh-sol-build-info-1", | |
"solcVersion": "0.8.18", | |
"solcLongVersion": "0.8.18+commit.87f61d96", | |
"input": { | |
"language": "Solidity", | |
"sources": { | |
".deps/npm/@openzeppelin/contracts/utils/Context.sol": { | |
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n}\n" | |
} | |
}, | |
"settings": { | |
"optimizer": { | |
"enabled": false, | |
"runs": 200 | |
}, | |
"outputSelection": { | |
"*": { | |
"": [ | |
"ast" | |
], | |
"*": [ | |
"abi", | |
"metadata", | |
"devdoc", | |
"userdoc", | |
"storageLayout", | |
"evm.legacyAssembly", | |
"evm.bytecode", | |
"evm.deployedBytecode", | |
"evm.methodIdentifiers", | |
"evm.gasEstimates", | |
"evm.assembly" | |
] | |
} | |
} | |
} | |
}, | |
"output": { | |
"contracts": { | |
".deps/npm/@openzeppelin/contracts/utils/Context.sol": { | |
"Context": { | |
"abi": [], | |
"devdoc": { | |
"details": "Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execution may not be the actual sender (as far as an application is concerned). This contract is only required for intermediate, library-like contracts.", | |
"kind": "dev", | |
"methods": {}, | |
"version": 1 | |
}, | |
"evm": { | |
"assembly": "", | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"gasEstimates": null, | |
"legacyAssembly": null, | |
"methodIdentifiers": {} | |
}, | |
"metadata": "{\"compiler\":{\"version\":\"0.8.18+commit.87f61d96\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execution may not be the actual sender (as far as an application is concerned). This contract is only required for intermediate, library-like contracts.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\".deps/npm/@openzeppelin/contracts/utils/Context.sol\":\"Context\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\".deps/npm/@openzeppelin/contracts/utils/Context.sol\":{\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6df0ddf21ce9f58271bdfaa85cde98b200ef242a05a3f85c2bc10a8294800a92\",\"dweb:/ipfs/QmRK2Y5Yc6BK7tGKkgsgn3aJEQGi5aakeSPZvS65PV8Xp3\"]}},\"version\":1}", | |
"storageLayout": { | |
"storage": [], | |
"types": null | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
} | |
} | |
}, | |
"sources": { | |
".deps/npm/@openzeppelin/contracts/utils/Context.sol": { | |
"ast": { | |
"absolutePath": ".deps/npm/@openzeppelin/contracts/utils/Context.sol", | |
"exportedSymbols": { | |
"Context": [ | |
21 | |
] | |
}, | |
"id": 22, | |
"license": "MIT", | |
"nodeType": "SourceUnit", | |
"nodes": [ | |
{ | |
"id": 1, | |
"literals": [ | |
"solidity", | |
"^", | |
"0.8", | |
".0" | |
], | |
"nodeType": "PragmaDirective", | |
"src": "86:23:0" | |
}, | |
{ | |
"abstract": true, | |
"baseContracts": [], | |
"canonicalName": "Context", | |
"contractDependencies": [], | |
"contractKind": "contract", | |
"documentation": { | |
"id": 2, | |
"nodeType": "StructuredDocumentation", | |
"src": "111:496:0", | |
"text": " @dev Provides information about the current execution context, including the\n sender of the transaction and its data. While these are generally available\n via msg.sender and msg.data, they should not be accessed in such a direct\n manner, since when dealing with meta-transactions the account sending and\n paying for execution may not be the actual sender (as far as an application\n is concerned).\n This contract is only required for intermediate, library-like contracts." | |
}, | |
"fullyImplemented": true, | |
"id": 21, | |
"linearizedBaseContracts": [ | |
21 | |
], | |
"name": "Context", | |
"nameLocation": "626:7:0", | |
"nodeType": "ContractDefinition", | |
"nodes": [ | |
{ | |
"body": { | |
"id": 10, | |
"nodeType": "Block", | |
"src": "702:34:0", | |
"statements": [ | |
{ | |
"expression": { | |
"expression": { | |
"id": 7, | |
"name": "msg", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 4294967281, | |
"src": "719:3:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_magic_message", | |
"typeString": "msg" | |
} | |
}, | |
"id": 8, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"memberLocation": "723:6:0", | |
"memberName": "sender", | |
"nodeType": "MemberAccess", | |
"src": "719:10:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"functionReturnParameters": 6, | |
"id": 9, | |
"nodeType": "Return", | |
"src": "712:17:0" | |
} | |
] | |
}, | |
"id": 11, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "_msgSender", | |
"nameLocation": "649:10:0", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 3, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "659:2:0" | |
}, | |
"returnParameters": { | |
"id": 6, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 5, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 11, | |
"src": "693:7:0", | |
"stateVariable": false, | |
"storageLocation": "default", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
}, | |
"typeName": { | |
"id": 4, | |
"name": "address", | |
"nodeType": "ElementaryTypeName", | |
"src": "693:7:0", | |
"stateMutability": "nonpayable", | |
"typeDescriptions": { | |
"typeIdentifier": "t_address", | |
"typeString": "address" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "692:9:0" | |
}, | |
"scope": 21, | |
"src": "640:96:0", | |
"stateMutability": "view", | |
"virtual": true, | |
"visibility": "internal" | |
}, | |
{ | |
"body": { | |
"id": 19, | |
"nodeType": "Block", | |
"src": "809:32:0", | |
"statements": [ | |
{ | |
"expression": { | |
"expression": { | |
"id": 16, | |
"name": "msg", | |
"nodeType": "Identifier", | |
"overloadedDeclarations": [], | |
"referencedDeclaration": 4294967281, | |
"src": "826:3:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_magic_message", | |
"typeString": "msg" | |
} | |
}, | |
"id": 17, | |
"isConstant": false, | |
"isLValue": false, | |
"isPure": false, | |
"lValueRequested": false, | |
"memberLocation": "830:4:0", | |
"memberName": "data", | |
"nodeType": "MemberAccess", | |
"src": "826:8:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_calldata_ptr", | |
"typeString": "bytes calldata" | |
} | |
}, | |
"functionReturnParameters": 15, | |
"id": 18, | |
"nodeType": "Return", | |
"src": "819:15:0" | |
} | |
] | |
}, | |
"id": 20, | |
"implemented": true, | |
"kind": "function", | |
"modifiers": [], | |
"name": "_msgData", | |
"nameLocation": "751:8:0", | |
"nodeType": "FunctionDefinition", | |
"parameters": { | |
"id": 12, | |
"nodeType": "ParameterList", | |
"parameters": [], | |
"src": "759:2:0" | |
}, | |
"returnParameters": { | |
"id": 15, | |
"nodeType": "ParameterList", | |
"parameters": [ | |
{ | |
"constant": false, | |
"id": 14, | |
"mutability": "mutable", | |
"name": "", | |
"nameLocation": "-1:-1:-1", | |
"nodeType": "VariableDeclaration", | |
"scope": 20, | |
"src": "793:14:0", | |
"stateVariable": false, | |
"storageLocation": "calldata", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_calldata_ptr", | |
"typeString": "bytes" | |
}, | |
"typeName": { | |
"id": 13, | |
"name": "bytes", | |
"nodeType": "ElementaryTypeName", | |
"src": "793:5:0", | |
"typeDescriptions": { | |
"typeIdentifier": "t_bytes_storage_ptr", | |
"typeString": "bytes" | |
} | |
}, | |
"visibility": "internal" | |
} | |
], | |
"src": "792:16:0" | |
}, | |
"scope": 21, | |
"src": "742:99:0", | |
"stateMutability": "view", | |
"virtual": true, | |
"visibility": "internal" | |
} | |
], | |
"scope": 22, | |
"src": "608:235:0", | |
"usedErrors": [] | |
} | |
], | |
"src": "86:758:0" | |
}, | |
"id": 0 | |
} | |
} | |
} | |
} |
{ | |
"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 | |
}, | |
"goerli:5": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"Custom": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
} | |
}, | |
"data": { | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "", | |
"opcodes": "", | |
"sourceMap": "" | |
}, | |
"gasEstimates": null, | |
"methodIdentifiers": {} | |
}, | |
"abi": [] | |
} |
{ | |
"compiler": { | |
"version": "0.8.18+commit.87f61d96" | |
}, | |
"language": "Solidity", | |
"output": { | |
"abi": [], | |
"devdoc": { | |
"details": "Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execution may not be the actual sender (as far as an application is concerned). This contract is only required for intermediate, library-like contracts.", | |
"kind": "dev", | |
"methods": {}, | |
"version": 1 | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
}, | |
"settings": { | |
"compilationTarget": { | |
".deps/npm/@openzeppelin/contracts/utils/Context.sol": "Context" | |
}, | |
"evmVersion": "paris", | |
"libraries": {}, | |
"metadata": { | |
"bytecodeHash": "ipfs" | |
}, | |
"optimizer": { | |
"enabled": false, | |
"runs": 200 | |
}, | |
"remappings": [] | |
}, | |
"sources": { | |
".deps/npm/@openzeppelin/contracts/utils/Context.sol": { | |
"keccak256": "0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://6df0ddf21ce9f58271bdfaa85cde98b200ef242a05a3f85c2bc10a8294800a92", | |
"dweb:/ipfs/QmRK2Y5Yc6BK7tGKkgsgn3aJEQGi5aakeSPZvS65PV8Xp3" | |
] | |
} | |
}, | |
"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 | |
}, | |
"goerli:5": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"Custom": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
} | |
}, | |
"data": { | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122004af087e7cfc141511c09ecb44889964dba39c326908a011ac5c95ef25b8093164736f6c63430008120033", | |
"opcodes": "PUSH1 0x56 PUSH1 0x50 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x43 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 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 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DIV 0xAF ADDMOD PUSH31 0x7CFC141511C09ECB44889964DBA39C326908A011AC5C95EF25B8093164736F PUSH13 0x63430008120033000000000000 ", | |
"sourceMap": "220:2559:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122004af087e7cfc141511c09ecb44889964dba39c326908a011ac5c95ef25b8093164736f6c63430008120033", | |
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 DIV 0xAF ADDMOD PUSH31 0x7CFC141511C09ECB44889964DBA39C326908A011AC5C95EF25B8093164736F PUSH13 0x63430008120033000000000000 ", | |
"sourceMap": "220:2559:0:-:0;;;;;;;;" | |
}, | |
"gasEstimates": { | |
"creation": { | |
"codeDepositCost": "17200", | |
"executionCost": "97", | |
"totalCost": "17297" | |
}, | |
"internal": { | |
"equal(string memory,string memory)": "infinite", | |
"toHexString(address)": "infinite", | |
"toHexString(uint256)": "infinite", | |
"toHexString(uint256,uint256)": "infinite", | |
"toString(int256)": "infinite", | |
"toString(uint256)": "infinite" | |
} | |
}, | |
"methodIdentifiers": {} | |
}, | |
"abi": [] | |
} |
{ | |
"compiler": { | |
"version": "0.8.18+commit.87f61d96" | |
}, | |
"language": "Solidity", | |
"output": { | |
"abi": [], | |
"devdoc": { | |
"details": "String operations.", | |
"kind": "dev", | |
"methods": {}, | |
"version": 1 | |
}, | |
"userdoc": { | |
"kind": "user", | |
"methods": {}, | |
"version": 1 | |
} | |
}, | |
"settings": { | |
"compilationTarget": { | |
".deps/npm/@openzeppelin/contracts/utils/Strings.sol": "Strings" | |
}, | |
"evmVersion": "paris", | |
"libraries": {}, | |
"metadata": { | |
"bytecodeHash": "ipfs" | |
}, | |
"optimizer": { | |
"enabled": false, | |
"runs": 200 | |
}, | |
"remappings": [] | |
}, | |
"sources": { | |
".deps/npm/@openzeppelin/contracts/utils/Strings.sol": { | |
"keccak256": "0x3088eb2868e8d13d89d16670b5f8612c4ab9ff8956272837d8e90106c59c14a0", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://b81d9ff6559ea5c47fc573e17ece6d9ba5d6839e213e6ebc3b4c5c8fe4199d7f", | |
"dweb:/ipfs/QmPCW1bFisUzJkyjroY3yipwfism9RRCigCcK1hbXtVM8n" | |
] | |
}, | |
".deps/npm/@openzeppelin/contracts/utils/math/Math.sol": { | |
"keccak256": "0xe4455ac1eb7fc497bb7402579e7b4d64d928b846fce7d2b6fde06d366f21c2b3", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://cc8841b3cd48ad125e2f46323c8bad3aa0e88e399ec62acb9e57efa7e7c8058c", | |
"dweb:/ipfs/QmSqE4mXHA2BXW58deDbXE8MTcsL5JSKNDbm23sVQxRLPS" | |
] | |
}, | |
".deps/npm/@openzeppelin/contracts/utils/math/SignedMath.sol": { | |
"keccak256": "0xf92515413956f529d95977adc9b0567d583c6203fc31ab1c23824c35187e3ddc", | |
"license": "MIT", | |
"urls": [ | |
"bzz-raw://c50fcc459e49a9858b6d8ad5f911295cb7c9ab57567845a250bf0153f84a95c7", | |
"dweb:/ipfs/QmcEW85JRzvDkQggxiBBLVAasXWdkhEysqypj9EaB6H2g6" | |
] | |
} | |
}, | |
"version": 1 | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol) | |
pragma solidity ^0.8.0; | |
/** | |
* @dev Provides information about the current execution context, including the | |
* sender of the transaction and its data. While these are generally available | |
* via msg.sender and msg.data, they should not be accessed in such a direct | |
* manner, since when dealing with meta-transactions the account sending and | |
* paying for execution may not be the actual sender (as far as an application | |
* is concerned). | |
* | |
* This contract is only required for intermediate, library-like contracts. | |
*/ | |
abstract contract Context { | |
function _msgSender() internal view virtual returns (address) { | |
return msg.sender; | |
} | |
function _msgData() internal view virtual returns (bytes calldata) { | |
return msg.data; | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) | |
pragma solidity ^0.8.0; | |
import "./IERC165.sol"; | |
/** | |
* @dev Implementation of the {IERC165} interface. | |
* | |
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check | |
* for the additional interface id that will be supported. For example: | |
* | |
* ```solidity | |
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { | |
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); | |
* } | |
* ``` | |
* | |
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. | |
*/ | |
abstract contract ERC165 is IERC165 { | |
/** | |
* @dev See {IERC165-supportsInterface}. | |
*/ | |
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { | |
return interfaceId == type(IERC165).interfaceId; | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) | |
pragma solidity ^0.8.0; | |
/** | |
* @dev Interface of the ERC165 standard, as defined in the | |
* https://eips.ethereum.org/EIPS/eip-165[EIP]. | |
* | |
* Implementers can declare support of contract interfaces, which can then be | |
* queried by others ({ERC165Checker}). | |
* | |
* For an implementation, see {ERC165}. | |
*/ | |
interface IERC165 { | |
/** | |
* @dev Returns true if this contract implements the interface defined by | |
* `interfaceId`. See the corresponding | |
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] | |
* to learn more about how these ids are created. | |
* | |
* This function call must use less than 30 000 gas. | |
*/ | |
function supportsInterface(bytes4 interfaceId) external view returns (bool); | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) | |
pragma solidity ^0.8.0; | |
/** | |
* @dev Standard math utilities missing in the Solidity language. | |
*/ | |
library Math { | |
enum Rounding { | |
Down, // Toward negative infinity | |
Up, // Toward infinity | |
Zero // Toward zero | |
} | |
/** | |
* @dev Returns the largest of two numbers. | |
*/ | |
function max(uint256 a, uint256 b) internal pure returns (uint256) { | |
return a > b ? a : b; | |
} | |
/** | |
* @dev Returns the smallest of two numbers. | |
*/ | |
function min(uint256 a, uint256 b) internal pure returns (uint256) { | |
return a < b ? a : b; | |
} | |
/** | |
* @dev Returns the average of two numbers. The result is rounded towards | |
* zero. | |
*/ | |
function average(uint256 a, uint256 b) internal pure returns (uint256) { | |
// (a + b) / 2 can overflow. | |
return (a & b) + (a ^ b) / 2; | |
} | |
/** | |
* @dev Returns the ceiling of the division of two numbers. | |
* | |
* This differs from standard division with `/` in that it rounds up instead | |
* of rounding down. | |
*/ | |
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { | |
// (a + b - 1) / b can overflow on addition, so we distribute. | |
return a == 0 ? 0 : (a - 1) / b + 1; | |
} | |
/** | |
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 | |
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) | |
* with further edits by Uniswap Labs also under MIT license. | |
*/ | |
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { | |
unchecked { | |
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use | |
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 | |
// variables such that product = prod1 * 2^256 + prod0. | |
uint256 prod0; // Least significant 256 bits of the product | |
uint256 prod1; // Most significant 256 bits of the product | |
assembly { | |
let mm := mulmod(x, y, not(0)) | |
prod0 := mul(x, y) | |
prod1 := sub(sub(mm, prod0), lt(mm, prod0)) | |
} | |
// Handle non-overflow cases, 256 by 256 division. | |
if (prod1 == 0) { | |
// Solidity will revert if denominator == 0, unlike the div opcode on its own. | |
// The surrounding unchecked block does not change this fact. | |
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. | |
return prod0 / denominator; | |
} | |
// Make sure the result is less than 2^256. Also prevents denominator == 0. | |
require(denominator > prod1, "Math: mulDiv overflow"); | |
/////////////////////////////////////////////// | |
// 512 by 256 division. | |
/////////////////////////////////////////////// | |
// Make division exact by subtracting the remainder from [prod1 prod0]. | |
uint256 remainder; | |
assembly { | |
// Compute remainder using mulmod. | |
remainder := mulmod(x, y, denominator) | |
// Subtract 256 bit number from 512 bit number. | |
prod1 := sub(prod1, gt(remainder, prod0)) | |
prod0 := sub(prod0, remainder) | |
} | |
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. | |
// See https://cs.stackexchange.com/q/138556/92363. | |
// Does not overflow because the denominator cannot be zero at this stage in the function. | |
uint256 twos = denominator & (~denominator + 1); | |
assembly { | |
// Divide denominator by twos. | |
denominator := div(denominator, twos) | |
// Divide [prod1 prod0] by twos. | |
prod0 := div(prod0, twos) | |
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. | |
twos := add(div(sub(0, twos), twos), 1) | |
} | |
// Shift in bits from prod1 into prod0. | |
prod0 |= prod1 * twos; | |
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such | |
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for | |
// four bits. That is, denominator * inv = 1 mod 2^4. | |
uint256 inverse = (3 * denominator) ^ 2; | |
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works | |
// in modular arithmetic, doubling the correct bits in each step. | |
inverse *= 2 - denominator * inverse; // inverse mod 2^8 | |
inverse *= 2 - denominator * inverse; // inverse mod 2^16 | |
inverse *= 2 - denominator * inverse; // inverse mod 2^32 | |
inverse *= 2 - denominator * inverse; // inverse mod 2^64 | |
inverse *= 2 - denominator * inverse; // inverse mod 2^128 | |
inverse *= 2 - denominator * inverse; // inverse mod 2^256 | |
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator. | |
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is | |
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 | |
// is no longer required. | |
result = prod0 * inverse; | |
return result; | |
} | |
} | |
/** | |
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction. | |
*/ | |
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { | |
uint256 result = mulDiv(x, y, denominator); | |
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { | |
result += 1; | |
} | |
return result; | |
} | |
/** | |
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. | |
* | |
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). | |
*/ | |
function sqrt(uint256 a) internal pure returns (uint256) { | |
if (a == 0) { | |
return 0; | |
} | |
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. | |
// | |
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have | |
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. | |
// | |
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` | |
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` | |
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` | |
// | |
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. | |
uint256 result = 1 << (log2(a) >> 1); | |
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, | |
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at | |
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision | |
// into the expected uint128 result. | |
unchecked { | |
result = (result + a / result) >> 1; | |
result = (result + a / result) >> 1; | |
result = (result + a / result) >> 1; | |
result = (result + a / result) >> 1; | |
result = (result + a / result) >> 1; | |
result = (result + a / result) >> 1; | |
result = (result + a / result) >> 1; | |
return min(result, a / result); | |
} | |
} | |
/** | |
* @notice Calculates sqrt(a), following the selected rounding direction. | |
*/ | |
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { | |
unchecked { | |
uint256 result = sqrt(a); | |
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); | |
} | |
} | |
/** | |
* @dev Return the log in base 2, rounded down, of a positive value. | |
* Returns 0 if given 0. | |
*/ | |
function log2(uint256 value) internal pure returns (uint256) { | |
uint256 result = 0; | |
unchecked { | |
if (value >> 128 > 0) { | |
value >>= 128; | |
result += 128; | |
} | |
if (value >> 64 > 0) { | |
value >>= 64; | |
result += 64; | |
} | |
if (value >> 32 > 0) { | |
value >>= 32; | |
result += 32; | |
} | |
if (value >> 16 > 0) { | |
value >>= 16; | |
result += 16; | |
} | |
if (value >> 8 > 0) { | |
value >>= 8; | |
result += 8; | |
} | |
if (value >> 4 > 0) { | |
value >>= 4; | |
result += 4; | |
} | |
if (value >> 2 > 0) { | |
value >>= 2; | |
result += 2; | |
} | |
if (value >> 1 > 0) { | |
result += 1; | |
} | |
} | |
return result; | |
} | |
/** | |
* @dev Return the log in base 2, following the selected rounding direction, of a positive value. | |
* Returns 0 if given 0. | |
*/ | |
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { | |
unchecked { | |
uint256 result = log2(value); | |
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); | |
} | |
} | |
/** | |
* @dev Return the log in base 10, rounded down, of a positive value. | |
* Returns 0 if given 0. | |
*/ | |
function log10(uint256 value) internal pure returns (uint256) { | |
uint256 result = 0; | |
unchecked { | |
if (value >= 10 ** 64) { | |
value /= 10 ** 64; | |
result += 64; | |
} | |
if (value >= 10 ** 32) { | |
value /= 10 ** 32; | |
result += 32; | |
} | |
if (value >= 10 ** 16) { | |
value /= 10 ** 16; | |
result += 16; | |
} | |
if (value >= 10 ** 8) { | |
value /= 10 ** 8; | |
result += 8; | |
} | |
if (value >= 10 ** 4) { | |
value /= 10 ** 4; | |
result += 4; | |
} | |
if (value >= 10 ** 2) { | |
value /= 10 ** 2; | |
result += 2; | |
} | |
if (value >= 10 ** 1) { | |
result += 1; | |
} | |
} | |
return result; | |
} | |
/** | |
* @dev Return the log in base 10, following the selected rounding direction, of a positive value. | |
* Returns 0 if given 0. | |
*/ | |
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { | |
unchecked { | |
uint256 result = log10(value); | |
return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); | |
} | |
} | |
/** | |
* @dev Return the log in base 256, rounded down, of a positive value. | |
* Returns 0 if given 0. | |
* | |
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. | |
*/ | |
function log256(uint256 value) internal pure returns (uint256) { | |
uint256 result = 0; | |
unchecked { | |
if (value >> 128 > 0) { | |
value >>= 128; | |
result += 16; | |
} | |
if (value >> 64 > 0) { | |
value >>= 64; | |
result += 8; | |
} | |
if (value >> 32 > 0) { | |
value >>= 32; | |
result += 4; | |
} | |
if (value >> 16 > 0) { | |
value >>= 16; | |
result += 2; | |
} | |
if (value >> 8 > 0) { | |
result += 1; | |
} | |
} | |
return result; | |
} | |
/** | |
* @dev Return the log in base 256, following the selected rounding direction, of a positive value. | |
* Returns 0 if given 0. | |
*/ | |
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { | |
unchecked { | |
uint256 result = log256(value); | |
return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); | |
} | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) | |
pragma solidity ^0.8.0; | |
/** | |
* @dev Standard signed math utilities missing in the Solidity language. | |
*/ | |
library SignedMath { | |
/** | |
* @dev Returns the largest of two signed numbers. | |
*/ | |
function max(int256 a, int256 b) internal pure returns (int256) { | |
return a > b ? a : b; | |
} | |
/** | |
* @dev Returns the smallest of two signed numbers. | |
*/ | |
function min(int256 a, int256 b) internal pure returns (int256) { | |
return a < b ? a : b; | |
} | |
/** | |
* @dev Returns the average of two signed numbers without overflow. | |
* The result is rounded towards zero. | |
*/ | |
function average(int256 a, int256 b) internal pure returns (int256) { | |
// Formula from the book "Hacker's Delight" | |
int256 x = (a & b) + ((a ^ b) >> 1); | |
return x + (int256(uint256(x) >> 255) & (a ^ b)); | |
} | |
/** | |
* @dev Returns the absolute unsigned value of a signed value. | |
*/ | |
function abs(int256 n) internal pure returns (uint256) { | |
unchecked { | |
// must be unchecked in order to support `n = type(int256).min` | |
return uint256(n >= 0 ? n : -n); | |
} | |
} | |
} |
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) | |
pragma solidity ^0.8.0; | |
import "./math/Math.sol"; | |
import "./math/SignedMath.sol"; | |
/** | |
* @dev String operations. | |
*/ | |
library Strings { | |
bytes16 private constant _SYMBOLS = "0123456789abcdef"; | |
uint8 private constant _ADDRESS_LENGTH = 20; | |
/** | |
* @dev Converts a `uint256` to its ASCII `string` decimal representation. | |
*/ | |
function toString(uint256 value) internal pure returns (string memory) { | |
unchecked { | |
uint256 length = Math.log10(value) + 1; | |
string memory buffer = new string(length); | |
uint256 ptr; | |
/// @solidity memory-safe-assembly | |
assembly { | |
ptr := add(buffer, add(32, length)) | |
} | |
while (true) { | |
ptr--; | |
/// @solidity memory-safe-assembly | |
assembly { | |
mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) | |
} | |
value /= 10; | |
if (value == 0) break; | |
} | |
return buffer; | |
} | |
} | |
/** | |
* @dev Converts a `int256` to its ASCII `string` decimal representation. | |
*/ | |
function toString(int256 value) internal pure returns (string memory) { | |
return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); | |
} | |
/** | |
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. | |
*/ | |
function toHexString(uint256 value) internal pure returns (string memory) { | |
unchecked { | |
return toHexString(value, Math.log256(value) + 1); | |
} | |
} | |
/** | |
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. | |
*/ | |
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { | |
bytes memory buffer = new bytes(2 * length + 2); | |
buffer[0] = "0"; | |
buffer[1] = "x"; | |
for (uint256 i = 2 * length + 1; i > 1; --i) { | |
buffer[i] = _SYMBOLS[value & 0xf]; | |
value >>= 4; | |
} | |
require(value == 0, "Strings: hex length insufficient"); | |
return string(buffer); | |
} | |
/** | |
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. | |
*/ | |
function toHexString(address addr) internal pure returns (string memory) { | |
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); | |
} | |
/** | |
* @dev Returns true if the two strings are equal. | |
*/ | |
function equal(string memory a, string memory b) internal pure returns (bool) { | |
return keccak256(bytes(a)) == keccak256(bytes(b)); | |
} | |
} |
{ | |
"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 | |
}, | |
"goerli:5": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
}, | |
"Custom": { | |
"linkReferences": {}, | |
"autoDeployLib": true | |
} | |
}, | |
"data": { | |
"bytecode": { | |
"functionDebugData": {}, | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "611f0f610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106101415760003560e01c806377c6d463116100c2578063aea8895211610086578063aea88952146104d9578063b8f2853114610516578063bfba5dd614610553578063e8c2cb1614610590578063ea79dd79146105cd578063f5bae6b61461060a57610141565b806377c6d463146103a85780638c45cb97146103e55780639c0b433614610422578063a079f1a31461045f578063abcd79601461049c57610141565b806349f979391161010957806349f97939146102775780634e3e4035146102b4578063556fe562146102f1578063561015e21461032e578063767392b31461036b57610141565b80630897e4c71461014657806318211bfb1461018357806339df137f146101c057806344781a00146101fd57806344b7f2481461023a575b600080fd5b81801561015257600080fd5b5061016d60048036038101906101689190610f73565b610647565b60405161017a9190610ffd565b60405180910390f35b81801561018f57600080fd5b506101aa60048036038101906101a59190611018565b6106a4565b6040516101b79190610ffd565b60405180910390f35b8180156101cc57600080fd5b506101e760048036038101906101e291906110b3565b610701565b6040516101f49190610ffd565b60405180910390f35b81801561020957600080fd5b50610224600480360381019061021f919061110f565b610745565b6040516102319190610ffd565b60405180910390f35b81801561024657600080fd5b50610261600480360381019061025c919061117e565b610795565b60405161026e9190610ffd565b60405180910390f35b81801561028357600080fd5b5061029e600480360381019061029991906111ed565b6107e0565b6040516102ab9190610ffd565b60405180910390f35b8180156102c057600080fd5b506102db60048036038101906102d6919061117e565b610878565b6040516102e89190610ffd565b60405180910390f35b8180156102fd57600080fd5b50610318600480360381019061031391906112ca565b6108c4565b6040516103259190610ffd565b60405180910390f35b81801561033a57600080fd5b5061035560048036038101906103509190611339565b610910565b6040516103629190610ffd565b60405180910390f35b81801561037757600080fd5b50610392600480360381019061038d919061110f565b61095c565b60405161039f9190610ffd565b60405180910390f35b8180156103b457600080fd5b506103cf60048036038101906103ca9190610f73565b6109ab565b6040516103dc9190610ffd565b60405180910390f35b8180156103f157600080fd5b5061040c60048036038101906104079190611018565b610a08565b6040516104199190610ffd565b60405180910390f35b81801561042e57600080fd5b506104496004803603810190610444919061117e565b610a65565b6040516104569190610ffd565b60405180910390f35b81801561046b57600080fd5b5061048660048036038101906104819190611339565b610ab0565b6040516104939190610ffd565b60405180910390f35b8180156104a857600080fd5b506104c360048036038101906104be9190611339565b610afb565b6040516104d09190610ffd565b60405180910390f35b8180156104e557600080fd5b5061050060048036038101906104fb9190611339565b610b46565b60405161050d9190610ffd565b60405180910390f35b81801561052257600080fd5b5061053d60048036038101906105389190611406565b610b91565b60405161054a9190610ffd565b60405180910390f35b81801561055f57600080fd5b5061057a60048036038101906105759190611406565b610c09565b6040516105879190610ffd565b60405180910390f35b81801561059c57600080fd5b506105b760048036038101906105b291906111ed565b610c80565b6040516105c49190610ffd565b60405180910390f35b8180156105d957600080fd5b506105f460048036038101906105ef91906112ca565b610d17565b6040516106019190610ffd565b60405180910390f35b81801561061657600080fd5b50610631600480360381019061062c919061117e565b610d62565b60405161063e9190610ffd565b60405180910390f35b60008084121561065a5760009050610660565b82841190505b7f1aee88e0b11c6f778ee0be69b5a108735a20e3d68f5729c851f81e10fb0357e281838686604051610695949392919061156d565b60405180910390a19392505050565b6000808312156106b757600090506106bd565b82841090505b7f14bc841bf51d20c0dc7caa87b92cc8ffff7a0427ab3f16c1800f89f1cd14afe8818386866040516106f29493929190611618565b60405180910390a19392505050565b60008290507fbbf85d637d70ccacc5b8edb602351ba3dec7bc069d69235c3529ef3f453d01f181836040516107379291906116c3565b60405180910390a192915050565b6000821515841515141590507ff7b49aa0711ceec1ded951e7e1e0f5068e1b494431e8aafd4afd3c5fce1bcea5818386866040516107869493929190611752565b60405180910390a19392505050565b600082841290507f06c5fd13661d229189d43a6a38e86721af51ed7065a4b6f43da4bd8cd1b18151818386866040516107d194939291906117b1565b60405180910390a19392505050565b6000826040516020016107f3919061184c565b604051602081830303815290604052805190602001208460405160200161081a919061184c565b60405160208183030381529060405280519060200120141590507f772eb34cc47d8c18199f27c5bfdb20838544f0058ef8afdd2debec5f6edb455f818386866040516108699493929190611863565b60405180910390a19392505050565b60008284141590507f06c5fd13661d229189d43a6a38e86721af51ed7065a4b6f43da4bd8cd1b18151818386866040516108b594939291906118d0565b60405180910390a19392505050565b60008284141590507f80ccaff7f7d9b95ab49ddd43778ee01cfda842a6269bed42e4e37929bc57fd2881838686604051610901949392919061193e565b60405180910390a19392505050565b60008284141590507f968b7a5d7c5bcc2e8f9f583456a62c310b1b4e509906c1c1bb1a5aff86cc1e1a8183868660405161094d949392919061199d565b60405180910390a19392505050565b60008215158415151490507ff7b49aa0711ceec1ded951e7e1e0f5068e1b494431e8aafd4afd3c5fce1bcea58183868660405161099c9493929190611a48565b60405180910390a19392505050565b6000808412156109be57600190506109c4565b82841090505b7f1aee88e0b11c6f778ee0be69b5a108735a20e3d68f5729c851f81e10fb0357e2818386866040516109f99493929190611aa7565b60405180910390a19392505050565b600080831215610a1b5760019050610a21565b82841190505b7f14bc841bf51d20c0dc7caa87b92cc8ffff7a0427ab3f16c1800f89f1cd14afe881838686604051610a569493929190611b06565b60405180910390a19392505050565b600082841390507f06c5fd13661d229189d43a6a38e86721af51ed7065a4b6f43da4bd8cd1b1815181838686604051610aa19493929190611b65565b60405180910390a19392505050565b600082841190507f968b7a5d7c5bcc2e8f9f583456a62c310b1b4e509906c1c1bb1a5aff86cc1e1a81838686604051610aec9493929190611bc4565b60405180910390a19392505050565b600082841490507f968b7a5d7c5bcc2e8f9f583456a62c310b1b4e509906c1c1bb1a5aff86cc1e1a81838686604051610b379493929190611c23565b60405180910390a19392505050565b600082841090507f968b7a5d7c5bcc2e8f9f583456a62c310b1b4e509906c1c1bb1a5aff86cc1e1a81838686604051610b829493929190611c82565b60405180910390a19392505050565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141590507fac36fadfa7a97083276a489f3e00cb5d4fcd13bbfdb3a78a0014fd48d4b46d9b81838686604051610bfa9493929190611cf0565b60405180910390a19392505050565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490507fac36fadfa7a97083276a489f3e00cb5d4fcd13bbfdb3a78a0014fd48d4b46d9b81838686604051610c719493929190611d4f565b60405180910390a19392505050565b600082604051602001610c93919061184c565b6040516020818303038152906040528051906020012084604051602001610cba919061184c565b604051602081830303815290604052805190602001201490507f772eb34cc47d8c18199f27c5bfdb20838544f0058ef8afdd2debec5f6edb455f81838686604051610d089493929190611dae565b60405180910390a19392505050565b600082841490507f80ccaff7f7d9b95ab49ddd43778ee01cfda842a6269bed42e4e37929bc57fd2881838686604051610d539493929190611e1b565b60405180910390a19392505050565b600082841490507f06c5fd13661d229189d43a6a38e86721af51ed7065a4b6f43da4bd8cd1b1815181838686604051610d9e9493929190611e7a565b60405180910390a19392505050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b610dd481610dc1565b8114610ddf57600080fd5b50565b600081359050610df181610dcb565b92915050565b6000819050919050565b610e0a81610df7565b8114610e1557600080fd5b50565b600081359050610e2781610e01565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610e8082610e37565b810181811067ffffffffffffffff82111715610e9f57610e9e610e48565b5b80604052505050565b6000610eb2610dad565b9050610ebe8282610e77565b919050565b600067ffffffffffffffff821115610ede57610edd610e48565b5b610ee782610e37565b9050602081019050919050565b82818337600083830152505050565b6000610f16610f1184610ec3565b610ea8565b905082815260208101848484011115610f3257610f31610e32565b5b610f3d848285610ef4565b509392505050565b600082601f830112610f5a57610f59610e2d565b5b8135610f6a848260208601610f03565b91505092915050565b600080600060608486031215610f8c57610f8b610db7565b5b6000610f9a86828701610de2565b9350506020610fab86828701610e18565b925050604084013567ffffffffffffffff811115610fcc57610fcb610dbc565b5b610fd886828701610f45565b9150509250925092565b60008115159050919050565b610ff781610fe2565b82525050565b60006020820190506110126000830184610fee565b92915050565b60008060006060848603121561103157611030610db7565b5b600061103f86828701610e18565b935050602061105086828701610de2565b925050604084013567ffffffffffffffff81111561107157611070610dbc565b5b61107d86828701610f45565b9150509250925092565b61109081610fe2565b811461109b57600080fd5b50565b6000813590506110ad81611087565b92915050565b600080604083850312156110ca576110c9610db7565b5b60006110d88582860161109e565b925050602083013567ffffffffffffffff8111156110f9576110f8610dbc565b5b61110585828601610f45565b9150509250929050565b60008060006060848603121561112857611127610db7565b5b60006111368682870161109e565b93505060206111478682870161109e565b925050604084013567ffffffffffffffff81111561116857611167610dbc565b5b61117486828701610f45565b9150509250925092565b60008060006060848603121561119757611196610db7565b5b60006111a586828701610de2565b93505060206111b686828701610de2565b925050604084013567ffffffffffffffff8111156111d7576111d6610dbc565b5b6111e386828701610f45565b9150509250925092565b60008060006060848603121561120657611205610db7565b5b600084013567ffffffffffffffff81111561122457611223610dbc565b5b61123086828701610f45565b935050602084013567ffffffffffffffff81111561125157611250610dbc565b5b61125d86828701610f45565b925050604084013567ffffffffffffffff81111561127e5761127d610dbc565b5b61128a86828701610f45565b9150509250925092565b6000819050919050565b6112a781611294565b81146112b257600080fd5b50565b6000813590506112c48161129e565b92915050565b6000806000606084860312156112e3576112e2610db7565b5b60006112f1868287016112b5565b9350506020611302868287016112b5565b925050604084013567ffffffffffffffff81111561132357611322610dbc565b5b61132f86828701610f45565b9150509250925092565b60008060006060848603121561135257611351610db7565b5b600061136086828701610e18565b935050602061137186828701610e18565b925050604084013567ffffffffffffffff81111561139257611391610dbc565b5b61139e86828701610f45565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006113d3826113a8565b9050919050565b6113e3816113c8565b81146113ee57600080fd5b50565b600081359050611400816113da565b92915050565b60008060006060848603121561141f5761141e610db7565b5b600061142d868287016113f1565b935050602061143e868287016113f1565b925050604084013567ffffffffffffffff81111561145f5761145e610dbc565b5b61146b86828701610f45565b9150509250925092565b61147e81610fe2565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b838110156114be5780820151818401526020810190506114a3565b60008484015250505050565b60006114d582611484565b6114df818561148f565b93506114ef8185602086016114a0565b6114f881610e37565b840191505092915050565b7f677265617465725468616e000000000000000000000000000000000000000000600082015250565b6000611539600b8361148f565b915061154482611503565b602082019050919050565b61155881610dc1565b82525050565b61156781610df7565b82525050565b600060a0820190506115826000830187611475565b818103602083015261159481866114ca565b905081810360408301526115a78161152c565b90506115b6606083018561154f565b6115c3608083018461155e565b95945050505050565b7f6c65737365725468616e00000000000000000000000000000000000000000000600082015250565b6000611602600a8361148f565b915061160d826115cc565b602082019050919050565b600060a08201905061162d6000830187611475565b818103602083015261163f81866114ca565b90508181036040830152611652816115f5565b9050611661606083018561155e565b61166e608083018461154f565b95945050505050565b7f6f6b000000000000000000000000000000000000000000000000000000000000600082015250565b60006116ad60028361148f565b91506116b882611677565b602082019050919050565b60006060820190506116d86000830185611475565b81810360208301526116ea81846114ca565b905081810360408301526116fd816116a0565b90509392505050565b7f6e6f74457175616c000000000000000000000000000000000000000000000000600082015250565b600061173c60088361148f565b915061174782611706565b602082019050919050565b600060a0820190506117676000830187611475565b818103602083015261177981866114ca565b9050818103604083015261178c8161172f565b905061179b6060830185611475565b6117a86080830184611475565b95945050505050565b600060a0820190506117c66000830187611475565b81810360208301526117d881866114ca565b905081810360408301526117eb816115f5565b90506117fa606083018561154f565b611807608083018461154f565b95945050505050565b600081905092915050565b600061182682611484565b6118308185611810565b93506118408185602086016114a0565b80840191505092915050565b6000611858828461181b565b915081905092915050565b600060a0820190506118786000830187611475565b818103602083015261188a81866114ca565b9050818103604083015261189d8161172f565b905081810360608301526118b181856114ca565b905081810360808301526118c581846114ca565b905095945050505050565b600060a0820190506118e56000830187611475565b81810360208301526118f781866114ca565b9050818103604083015261190a8161172f565b9050611919606083018561154f565b611926608083018461154f565b95945050505050565b61193881611294565b82525050565b600060a0820190506119536000830187611475565b818103602083015261196581866114ca565b905081810360408301526119788161172f565b9050611987606083018561192f565b611994608083018461192f565b95945050505050565b600060a0820190506119b26000830187611475565b81810360208301526119c481866114ca565b905081810360408301526119d78161172f565b90506119e6606083018561155e565b6119f3608083018461155e565b95945050505050565b7f657175616c000000000000000000000000000000000000000000000000000000600082015250565b6000611a3260058361148f565b9150611a3d826119fc565b602082019050919050565b600060a082019050611a5d6000830187611475565b8181036020830152611a6f81866114ca565b90508181036040830152611a8281611a25565b9050611a916060830185611475565b611a9e6080830184611475565b95945050505050565b600060a082019050611abc6000830187611475565b8181036020830152611ace81866114ca565b90508181036040830152611ae1816115f5565b9050611af0606083018561154f565b611afd608083018461155e565b95945050505050565b600060a082019050611b1b6000830187611475565b8181036020830152611b2d81866114ca565b90508181036040830152611b408161152c565b9050611b4f606083018561155e565b611b5c608083018461154f565b95945050505050565b600060a082019050611b7a6000830187611475565b8181036020830152611b8c81866114ca565b90508181036040830152611b9f8161152c565b9050611bae606083018561154f565b611bbb608083018461154f565b95945050505050565b600060a082019050611bd96000830187611475565b8181036020830152611beb81866114ca565b90508181036040830152611bfe8161152c565b9050611c0d606083018561155e565b611c1a608083018461155e565b95945050505050565b600060a082019050611c386000830187611475565b8181036020830152611c4a81866114ca565b90508181036040830152611c5d81611a25565b9050611c6c606083018561155e565b611c79608083018461155e565b95945050505050565b600060a082019050611c976000830187611475565b8181036020830152611ca981866114ca565b90508181036040830152611cbc816115f5565b9050611ccb606083018561155e565b611cd8608083018461155e565b95945050505050565b611cea816113c8565b82525050565b600060a082019050611d056000830187611475565b8181036020830152611d1781866114ca565b90508181036040830152611d2a8161172f565b9050611d396060830185611ce1565b611d466080830184611ce1565b95945050505050565b600060a082019050611d646000830187611475565b8181036020830152611d7681866114ca565b90508181036040830152611d8981611a25565b9050611d986060830185611ce1565b611da56080830184611ce1565b95945050505050565b600060a082019050611dc36000830187611475565b8181036020830152611dd581866114ca565b90508181036040830152611de881611a25565b90508181036060830152611dfc81856114ca565b90508181036080830152611e1081846114ca565b905095945050505050565b600060a082019050611e306000830187611475565b8181036020830152611e4281866114ca565b90508181036040830152611e5581611a25565b9050611e64606083018561192f565b611e71608083018461192f565b95945050505050565b600060a082019050611e8f6000830187611475565b8181036020830152611ea181866114ca565b90508181036040830152611eb481611a25565b9050611ec3606083018561154f565b611ed0608083018461154f565b9594505050505056fea2646970667358221220fa7e493ff4aa460bec113fd24a46bd17637957008ee421029c0f2e1efc6a2c1064736f6c63430008120033", | |
"opcodes": "PUSH2 0x1F0F PUSH2 0x53 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH2 0x46 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 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 PUSH2 0x141 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x77C6D463 GT PUSH2 0xC2 JUMPI DUP1 PUSH4 0xAEA88952 GT PUSH2 0x86 JUMPI DUP1 PUSH4 0xAEA88952 EQ PUSH2 0x4D9 JUMPI DUP1 PUSH4 0xB8F28531 EQ PUSH2 0x516 JUMPI DUP1 PUSH4 0xBFBA5DD6 EQ PUSH2 0x553 JUMPI DUP1 PUSH4 0xE8C2CB16 EQ PUSH2 0x590 JUMPI DUP1 PUSH4 0xEA79DD79 EQ PUSH2 0x5CD JUMPI DUP1 PUSH4 0xF5BAE6B6 EQ PUSH2 0x60A JUMPI PUSH2 0x141 JUMP JUMPDEST DUP1 PUSH4 0x77C6D463 EQ PUSH2 0x3A8 JUMPI DUP1 PUSH4 0x8C45CB97 EQ PUSH2 0x3E5 JUMPI DUP1 PUSH4 0x9C0B4336 EQ PUSH2 0x422 JUMPI DUP1 PUSH4 0xA079F1A3 EQ PUSH2 0x45F JUMPI DUP1 PUSH4 0xABCD7960 EQ PUSH2 0x49C JUMPI PUSH2 0x141 JUMP JUMPDEST DUP1 PUSH4 0x49F97939 GT PUSH2 0x109 JUMPI DUP1 PUSH4 0x49F97939 EQ PUSH2 0x277 JUMPI DUP1 PUSH4 0x4E3E4035 EQ PUSH2 0x2B4 JUMPI DUP1 PUSH4 0x556FE562 EQ PUSH2 0x2F1 JUMPI DUP1 PUSH4 0x561015E2 EQ PUSH2 0x32E JUMPI DUP1 PUSH4 0x767392B3 EQ PUSH2 0x36B JUMPI PUSH2 0x141 JUMP JUMPDEST DUP1 PUSH4 0x897E4C7 EQ PUSH2 0x146 JUMPI DUP1 PUSH4 0x18211BFB EQ PUSH2 0x183 JUMPI DUP1 PUSH4 0x39DF137F EQ PUSH2 0x1C0 JUMPI DUP1 PUSH4 0x44781A00 EQ PUSH2 0x1FD JUMPI DUP1 PUSH4 0x44B7F248 EQ PUSH2 0x23A JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x152 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x16D PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x168 SWAP2 SWAP1 PUSH2 0xF73 JUMP JUMPDEST PUSH2 0x647 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x17A SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x18F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1AA PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x1A5 SWAP2 SWAP1 PUSH2 0x1018 JUMP JUMPDEST PUSH2 0x6A4 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x1B7 SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x1CC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x1E7 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x1E2 SWAP2 SWAP1 PUSH2 0x10B3 JUMP JUMPDEST PUSH2 0x701 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x1F4 SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x209 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x224 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x21F SWAP2 SWAP1 PUSH2 0x110F JUMP JUMPDEST PUSH2 0x745 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x231 SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x246 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x261 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x25C SWAP2 SWAP1 PUSH2 0x117E JUMP JUMPDEST PUSH2 0x795 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x26E SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x283 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x29E PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x299 SWAP2 SWAP1 PUSH2 0x11ED JUMP JUMPDEST PUSH2 0x7E0 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x2AB SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x2C0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x2DB PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x2D6 SWAP2 SWAP1 PUSH2 0x117E JUMP JUMPDEST PUSH2 0x878 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x2E8 SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x2FD JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x318 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x313 SWAP2 SWAP1 PUSH2 0x12CA JUMP JUMPDEST PUSH2 0x8C4 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x325 SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x33A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x355 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x350 SWAP2 SWAP1 PUSH2 0x1339 JUMP JUMPDEST PUSH2 0x910 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x362 SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x377 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x392 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x38D SWAP2 SWAP1 PUSH2 0x110F JUMP JUMPDEST PUSH2 0x95C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x39F SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x3B4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x3CF PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x3CA SWAP2 SWAP1 PUSH2 0xF73 JUMP JUMPDEST PUSH2 0x9AB JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x3DC SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x3F1 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x40C PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x407 SWAP2 SWAP1 PUSH2 0x1018 JUMP JUMPDEST PUSH2 0xA08 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x419 SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x42E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x449 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x444 SWAP2 SWAP1 PUSH2 0x117E JUMP JUMPDEST PUSH2 0xA65 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x456 SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x46B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x486 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x481 SWAP2 SWAP1 PUSH2 0x1339 JUMP JUMPDEST PUSH2 0xAB0 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x493 SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x4A8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x4C3 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x4BE SWAP2 SWAP1 PUSH2 0x1339 JUMP JUMPDEST PUSH2 0xAFB JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x4D0 SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x4E5 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x500 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x4FB SWAP2 SWAP1 PUSH2 0x1339 JUMP JUMPDEST PUSH2 0xB46 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x50D SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x522 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x53D PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x538 SWAP2 SWAP1 PUSH2 0x1406 JUMP JUMPDEST PUSH2 0xB91 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x54A SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x55F JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x57A PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x575 SWAP2 SWAP1 PUSH2 0x1406 JUMP JUMPDEST PUSH2 0xC09 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x587 SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x59C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x5B7 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x5B2 SWAP2 SWAP1 PUSH2 0x11ED JUMP JUMPDEST PUSH2 0xC80 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x5C4 SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x5D9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x5F4 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x5EF SWAP2 SWAP1 PUSH2 0x12CA JUMP JUMPDEST PUSH2 0xD17 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x601 SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST DUP2 DUP1 ISZERO PUSH2 0x616 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x631 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x62C SWAP2 SWAP1 PUSH2 0x117E JUMP JUMPDEST PUSH2 0xD62 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x63E SWAP2 SWAP1 PUSH2 0xFFD JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x0 DUP1 DUP5 SLT ISZERO PUSH2 0x65A JUMPI PUSH1 0x0 SWAP1 POP PUSH2 0x660 JUMP JUMPDEST DUP3 DUP5 GT SWAP1 POP JUMPDEST PUSH32 0x1AEE88E0B11C6F778EE0BE69B5A108735A20E3D68F5729C851F81E10FB0357E2 DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0x695 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x156D JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP4 SLT ISZERO PUSH2 0x6B7 JUMPI PUSH1 0x0 SWAP1 POP PUSH2 0x6BD JUMP JUMPDEST DUP3 DUP5 LT SWAP1 POP JUMPDEST PUSH32 0x14BC841BF51D20C0DC7CAA87B92CC8FFFF7A0427AB3F16C1800F89F1CD14AFE8 DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0x6F2 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1618 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 SWAP1 POP PUSH32 0xBBF85D637D70CCACC5B8EDB602351BA3DEC7BC069D69235C3529EF3F453D01F1 DUP2 DUP4 PUSH1 0x40 MLOAD PUSH2 0x737 SWAP3 SWAP2 SWAP1 PUSH2 0x16C3 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 ISZERO ISZERO DUP5 ISZERO ISZERO EQ ISZERO SWAP1 POP PUSH32 0xF7B49AA0711CEEC1DED951E7E1E0F5068E1B494431E8AAFD4AFD3C5FCE1BCEA5 DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0x786 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1752 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP5 SLT SWAP1 POP PUSH32 0x6C5FD13661D229189D43A6A38E86721AF51ED7065A4B6F43DA4BD8CD1B18151 DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0x7D1 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x17B1 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x7F3 SWAP2 SWAP1 PUSH2 0x184C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 DUP5 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0x81A SWAP2 SWAP1 PUSH2 0x184C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 EQ ISZERO SWAP1 POP PUSH32 0x772EB34CC47D8C18199F27C5BFDB20838544F0058EF8AFDD2DEBEC5F6EDB455F DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0x869 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1863 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP5 EQ ISZERO SWAP1 POP PUSH32 0x6C5FD13661D229189D43A6A38E86721AF51ED7065A4B6F43DA4BD8CD1B18151 DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0x8B5 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x18D0 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP5 EQ ISZERO SWAP1 POP PUSH32 0x80CCAFF7F7D9B95AB49DDD43778EE01CFDA842A6269BED42E4E37929BC57FD28 DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0x901 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x193E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP5 EQ ISZERO SWAP1 POP PUSH32 0x968B7A5D7C5BCC2E8F9F583456A62C310B1B4E509906C1C1BB1A5AFF86CC1E1A DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0x94D SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x199D JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 ISZERO ISZERO DUP5 ISZERO ISZERO EQ SWAP1 POP PUSH32 0xF7B49AA0711CEEC1DED951E7E1E0F5068E1B494431E8AAFD4AFD3C5FCE1BCEA5 DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0x99C SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1A48 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP5 SLT ISZERO PUSH2 0x9BE JUMPI PUSH1 0x1 SWAP1 POP PUSH2 0x9C4 JUMP JUMPDEST DUP3 DUP5 LT SWAP1 POP JUMPDEST PUSH32 0x1AEE88E0B11C6F778EE0BE69B5A108735A20E3D68F5729C851F81E10FB0357E2 DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0x9F9 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1AA7 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 DUP4 SLT ISZERO PUSH2 0xA1B JUMPI PUSH1 0x1 SWAP1 POP PUSH2 0xA21 JUMP JUMPDEST DUP3 DUP5 GT SWAP1 POP JUMPDEST PUSH32 0x14BC841BF51D20C0DC7CAA87B92CC8FFFF7A0427AB3F16C1800F89F1CD14AFE8 DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0xA56 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1B06 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP5 SGT SWAP1 POP PUSH32 0x6C5FD13661D229189D43A6A38E86721AF51ED7065A4B6F43DA4BD8CD1B18151 DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0xAA1 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1B65 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP5 GT SWAP1 POP PUSH32 0x968B7A5D7C5BCC2E8F9F583456A62C310B1B4E509906C1C1BB1A5AFF86CC1E1A DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0xAEC SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1BC4 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP5 EQ SWAP1 POP PUSH32 0x968B7A5D7C5BCC2E8F9F583456A62C310B1B4E509906C1C1BB1A5AFF86CC1E1A DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0xB37 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1C23 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP5 LT SWAP1 POP PUSH32 0x968B7A5D7C5BCC2E8F9F583456A62C310B1B4E509906C1C1BB1A5AFF86CC1E1A DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0xB82 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1C82 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP5 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ ISZERO SWAP1 POP PUSH32 0xAC36FADFA7A97083276A489F3E00CB5D4FCD13BBFDB3A78A0014FD48D4B46D9B DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0xBFA SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1CF0 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP5 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ SWAP1 POP PUSH32 0xAC36FADFA7A97083276A489F3E00CB5D4FCD13BBFDB3A78A0014FD48D4B46D9B DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0xC71 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1D4F JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0xC93 SWAP2 SWAP1 PUSH2 0x184C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 DUP5 PUSH1 0x40 MLOAD PUSH1 0x20 ADD PUSH2 0xCBA SWAP2 SWAP1 PUSH2 0x184C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x20 DUP2 DUP4 SUB SUB DUP2 MSTORE SWAP1 PUSH1 0x40 MSTORE DUP1 MLOAD SWAP1 PUSH1 0x20 ADD KECCAK256 EQ SWAP1 POP PUSH32 0x772EB34CC47D8C18199F27C5BFDB20838544F0058EF8AFDD2DEBEC5F6EDB455F DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0xD08 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1DAE JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP5 EQ SWAP1 POP PUSH32 0x80CCAFF7F7D9B95AB49DDD43778EE01CFDA842A6269BED42E4E37929BC57FD28 DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0xD53 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1E1B JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP5 EQ SWAP1 POP PUSH32 0x6C5FD13661D229189D43A6A38E86721AF51ED7065A4B6F43DA4BD8CD1B18151 DUP2 DUP4 DUP7 DUP7 PUSH1 0x40 MLOAD PUSH2 0xD9E SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0x1E7A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0xDD4 DUP2 PUSH2 0xDC1 JUMP JUMPDEST DUP2 EQ PUSH2 0xDDF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0xDF1 DUP2 PUSH2 0xDCB JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0xE0A DUP2 PUSH2 0xDF7 JUMP JUMPDEST DUP2 EQ PUSH2 0xE15 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0xE27 DUP2 PUSH2 0xE01 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH2 0xE80 DUP3 PUSH2 0xE37 JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0xE9F JUMPI PUSH2 0xE9E PUSH2 0xE48 JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xEB2 PUSH2 0xDAD JUMP JUMPDEST SWAP1 POP PUSH2 0xEBE DUP3 DUP3 PUSH2 0xE77 JUMP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0xEDE JUMPI PUSH2 0xEDD PUSH2 0xE48 JUMP JUMPDEST JUMPDEST PUSH2 0xEE7 DUP3 PUSH2 0xE37 JUMP JUMPDEST SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP3 DUP2 DUP4 CALLDATACOPY PUSH1 0x0 DUP4 DUP4 ADD MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xF16 PUSH2 0xF11 DUP5 PUSH2 0xEC3 JUMP JUMPDEST PUSH2 0xEA8 JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH2 0xF32 JUMPI PUSH2 0xF31 PUSH2 0xE32 JUMP JUMPDEST JUMPDEST PUSH2 0xF3D DUP5 DUP3 DUP6 PUSH2 0xEF4 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0xF5A JUMPI PUSH2 0xF59 PUSH2 0xE2D JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0xF6A DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0xF03 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0xF8C JUMPI PUSH2 0xF8B PUSH2 0xDB7 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0xF9A DUP7 DUP3 DUP8 ADD PUSH2 0xDE2 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 PUSH2 0xFAB DUP7 DUP3 DUP8 ADD PUSH2 0xE18 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xFCC JUMPI PUSH2 0xFCB PUSH2 0xDBC JUMP JUMPDEST JUMPDEST PUSH2 0xFD8 DUP7 DUP3 DUP8 ADD PUSH2 0xF45 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP2 ISZERO ISZERO SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0xFF7 DUP2 PUSH2 0xFE2 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x1012 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0xFEE JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x1031 JUMPI PUSH2 0x1030 PUSH2 0xDB7 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x103F DUP7 DUP3 DUP8 ADD PUSH2 0xE18 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 PUSH2 0x1050 DUP7 DUP3 DUP8 ADD PUSH2 0xDE2 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1071 JUMPI PUSH2 0x1070 PUSH2 0xDBC JUMP JUMPDEST JUMPDEST PUSH2 0x107D DUP7 DUP3 DUP8 ADD PUSH2 0xF45 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH2 0x1090 DUP2 PUSH2 0xFE2 JUMP JUMPDEST DUP2 EQ PUSH2 0x109B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x10AD DUP2 PUSH2 0x1087 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x10CA JUMPI PUSH2 0x10C9 PUSH2 0xDB7 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x10D8 DUP6 DUP3 DUP7 ADD PUSH2 0x109E JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x10F9 JUMPI PUSH2 0x10F8 PUSH2 0xDBC JUMP JUMPDEST JUMPDEST PUSH2 0x1105 DUP6 DUP3 DUP7 ADD PUSH2 0xF45 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x1128 JUMPI PUSH2 0x1127 PUSH2 0xDB7 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x1136 DUP7 DUP3 DUP8 ADD PUSH2 0x109E JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 PUSH2 0x1147 DUP7 DUP3 DUP8 ADD PUSH2 0x109E JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1168 JUMPI PUSH2 0x1167 PUSH2 0xDBC JUMP JUMPDEST JUMPDEST PUSH2 0x1174 DUP7 DUP3 DUP8 ADD PUSH2 0xF45 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x1197 JUMPI PUSH2 0x1196 PUSH2 0xDB7 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x11A5 DUP7 DUP3 DUP8 ADD PUSH2 0xDE2 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 PUSH2 0x11B6 DUP7 DUP3 DUP8 ADD PUSH2 0xDE2 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x11D7 JUMPI PUSH2 0x11D6 PUSH2 0xDBC JUMP JUMPDEST JUMPDEST PUSH2 0x11E3 DUP7 DUP3 DUP8 ADD PUSH2 0xF45 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x1206 JUMPI PUSH2 0x1205 PUSH2 0xDB7 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP5 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1224 JUMPI PUSH2 0x1223 PUSH2 0xDBC JUMP JUMPDEST JUMPDEST PUSH2 0x1230 DUP7 DUP3 DUP8 ADD PUSH2 0xF45 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 DUP5 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1251 JUMPI PUSH2 0x1250 PUSH2 0xDBC JUMP JUMPDEST JUMPDEST PUSH2 0x125D DUP7 DUP3 DUP8 ADD PUSH2 0xF45 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x127E JUMPI PUSH2 0x127D PUSH2 0xDBC JUMP JUMPDEST JUMPDEST PUSH2 0x128A DUP7 DUP3 DUP8 ADD PUSH2 0xF45 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x12A7 DUP2 PUSH2 0x1294 JUMP JUMPDEST DUP2 EQ PUSH2 0x12B2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x12C4 DUP2 PUSH2 0x129E JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x12E3 JUMPI PUSH2 0x12E2 PUSH2 0xDB7 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x12F1 DUP7 DUP3 DUP8 ADD PUSH2 0x12B5 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 PUSH2 0x1302 DUP7 DUP3 DUP8 ADD PUSH2 0x12B5 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1323 JUMPI PUSH2 0x1322 PUSH2 0xDBC JUMP JUMPDEST JUMPDEST PUSH2 0x132F DUP7 DUP3 DUP8 ADD PUSH2 0xF45 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x1352 JUMPI PUSH2 0x1351 PUSH2 0xDB7 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x1360 DUP7 DUP3 DUP8 ADD PUSH2 0xE18 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 PUSH2 0x1371 DUP7 DUP3 DUP8 ADD PUSH2 0xE18 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1392 JUMPI PUSH2 0x1391 PUSH2 0xDBC JUMP JUMPDEST JUMPDEST PUSH2 0x139E DUP7 DUP3 DUP8 ADD PUSH2 0xF45 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x13D3 DUP3 PUSH2 0x13A8 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x13E3 DUP2 PUSH2 0x13C8 JUMP JUMPDEST DUP2 EQ PUSH2 0x13EE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x1400 DUP2 PUSH2 0x13DA JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x141F JUMPI PUSH2 0x141E PUSH2 0xDB7 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x142D DUP7 DUP3 DUP8 ADD PUSH2 0x13F1 JUMP JUMPDEST SWAP4 POP POP PUSH1 0x20 PUSH2 0x143E DUP7 DUP3 DUP8 ADD PUSH2 0x13F1 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x145F JUMPI PUSH2 0x145E PUSH2 0xDBC JUMP JUMPDEST JUMPDEST PUSH2 0x146B DUP7 DUP3 DUP8 ADD PUSH2 0xF45 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH2 0x147E DUP2 PUSH2 0xFE2 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x14BE JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x14A3 JUMP JUMPDEST PUSH1 0x0 DUP5 DUP5 ADD MSTORE POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x14D5 DUP3 PUSH2 0x1484 JUMP JUMPDEST PUSH2 0x14DF DUP2 DUP6 PUSH2 0x148F JUMP JUMPDEST SWAP4 POP PUSH2 0x14EF DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x14A0 JUMP JUMPDEST PUSH2 0x14F8 DUP2 PUSH2 0xE37 JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x677265617465725468616E000000000000000000000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1539 PUSH1 0xB DUP4 PUSH2 0x148F JUMP JUMPDEST SWAP2 POP PUSH2 0x1544 DUP3 PUSH2 0x1503 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x1558 DUP2 PUSH2 0xDC1 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH2 0x1567 DUP2 PUSH2 0xDF7 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1582 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1594 DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x15A7 DUP2 PUSH2 0x152C JUMP JUMPDEST SWAP1 POP PUSH2 0x15B6 PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x154F JUMP JUMPDEST PUSH2 0x15C3 PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x155E JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH32 0x6C65737365725468616E00000000000000000000000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1602 PUSH1 0xA DUP4 PUSH2 0x148F JUMP JUMPDEST SWAP2 POP PUSH2 0x160D DUP3 PUSH2 0x15CC JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x162D PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x163F DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1652 DUP2 PUSH2 0x15F5 JUMP JUMPDEST SWAP1 POP PUSH2 0x1661 PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x155E JUMP JUMPDEST PUSH2 0x166E PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x154F JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH32 0x6F6B000000000000000000000000000000000000000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x16AD PUSH1 0x2 DUP4 PUSH2 0x148F JUMP JUMPDEST SWAP2 POP PUSH2 0x16B8 DUP3 PUSH2 0x1677 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x60 DUP3 ADD SWAP1 POP PUSH2 0x16D8 PUSH1 0x0 DUP4 ADD DUP6 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x16EA DUP2 DUP5 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x16FD DUP2 PUSH2 0x16A0 JUMP JUMPDEST SWAP1 POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH32 0x6E6F74457175616C000000000000000000000000000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x173C PUSH1 0x8 DUP4 PUSH2 0x148F JUMP JUMPDEST SWAP2 POP PUSH2 0x1747 DUP3 PUSH2 0x1706 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1767 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1779 DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x178C DUP2 PUSH2 0x172F JUMP JUMPDEST SWAP1 POP PUSH2 0x179B PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x1475 JUMP JUMPDEST PUSH2 0x17A8 PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x1475 JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x17C6 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x17D8 DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x17EB DUP2 PUSH2 0x15F5 JUMP JUMPDEST SWAP1 POP PUSH2 0x17FA PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x154F JUMP JUMPDEST PUSH2 0x1807 PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x154F JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1826 DUP3 PUSH2 0x1484 JUMP JUMPDEST PUSH2 0x1830 DUP2 DUP6 PUSH2 0x1810 JUMP JUMPDEST SWAP4 POP PUSH2 0x1840 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x14A0 JUMP JUMPDEST DUP1 DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1858 DUP3 DUP5 PUSH2 0x181B JUMP JUMPDEST SWAP2 POP DUP2 SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1878 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x188A DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x189D DUP2 PUSH2 0x172F JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x60 DUP4 ADD MSTORE PUSH2 0x18B1 DUP2 DUP6 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x80 DUP4 ADD MSTORE PUSH2 0x18C5 DUP2 DUP5 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x18E5 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x18F7 DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x190A DUP2 PUSH2 0x172F JUMP JUMPDEST SWAP1 POP PUSH2 0x1919 PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x154F JUMP JUMPDEST PUSH2 0x1926 PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x154F JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH2 0x1938 DUP2 PUSH2 0x1294 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1953 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1965 DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1978 DUP2 PUSH2 0x172F JUMP JUMPDEST SWAP1 POP PUSH2 0x1987 PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x192F JUMP JUMPDEST PUSH2 0x1994 PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x192F JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x19B2 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x19C4 DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x19D7 DUP2 PUSH2 0x172F JUMP JUMPDEST SWAP1 POP PUSH2 0x19E6 PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x155E JUMP JUMPDEST PUSH2 0x19F3 PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x155E JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH32 0x657175616C000000000000000000000000000000000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x1A32 PUSH1 0x5 DUP4 PUSH2 0x148F JUMP JUMPDEST SWAP2 POP PUSH2 0x1A3D DUP3 PUSH2 0x19FC JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1A5D PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1A6F DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1A82 DUP2 PUSH2 0x1A25 JUMP JUMPDEST SWAP1 POP PUSH2 0x1A91 PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x1475 JUMP JUMPDEST PUSH2 0x1A9E PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x1475 JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1ABC PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1ACE DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1AE1 DUP2 PUSH2 0x15F5 JUMP JUMPDEST SWAP1 POP PUSH2 0x1AF0 PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x154F JUMP JUMPDEST PUSH2 0x1AFD PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x155E JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1B1B PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1B2D DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1B40 DUP2 PUSH2 0x152C JUMP JUMPDEST SWAP1 POP PUSH2 0x1B4F PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x155E JUMP JUMPDEST PUSH2 0x1B5C PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x154F JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1B7A PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1B8C DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1B9F DUP2 PUSH2 0x152C JUMP JUMPDEST SWAP1 POP PUSH2 0x1BAE PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x154F JUMP JUMPDEST PUSH2 0x1BBB PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x154F JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1BD9 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1BEB DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1BFE DUP2 PUSH2 0x152C JUMP JUMPDEST SWAP1 POP PUSH2 0x1C0D PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x155E JUMP JUMPDEST PUSH2 0x1C1A PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x155E JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1C38 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1C4A DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1C5D DUP2 PUSH2 0x1A25 JUMP JUMPDEST SWAP1 POP PUSH2 0x1C6C PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x155E JUMP JUMPDEST PUSH2 0x1C79 PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x155E JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1C97 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1CA9 DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1CBC DUP2 PUSH2 0x15F5 JUMP JUMPDEST SWAP1 POP PUSH2 0x1CCB PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x155E JUMP JUMPDEST PUSH2 0x1CD8 PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x155E JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH2 0x1CEA DUP2 PUSH2 0x13C8 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1D05 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1D17 DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1D2A DUP2 PUSH2 0x172F JUMP JUMPDEST SWAP1 POP PUSH2 0x1D39 PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x1CE1 JUMP JUMPDEST PUSH2 0x1D46 PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x1CE1 JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1D64 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1D76 DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1D89 DUP2 PUSH2 0x1A25 JUMP JUMPDEST SWAP1 POP PUSH2 0x1D98 PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x1CE1 JUMP JUMPDEST PUSH2 0x1DA5 PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x1CE1 JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1DC3 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1DD5 DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1DE8 DUP2 PUSH2 0x1A25 JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x60 DUP4 ADD MSTORE PUSH2 0x1DFC DUP2 DUP6 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x80 DUP4 ADD MSTORE PUSH2 0x1E10 DUP2 DUP5 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1E30 PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1E42 DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1E55 DUP2 PUSH2 0x1A25 JUMP JUMPDEST SWAP1 POP PUSH2 0x1E64 PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x192F JUMP JUMPDEST PUSH2 0x1E71 PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x192F JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0xA0 DUP3 ADD SWAP1 POP PUSH2 0x1E8F PUSH1 0x0 DUP4 ADD DUP8 PUSH2 0x1475 JUMP JUMPDEST DUP2 DUP2 SUB PUSH1 0x20 DUP4 ADD MSTORE PUSH2 0x1EA1 DUP2 DUP7 PUSH2 0x14CA JUMP JUMPDEST SWAP1 POP DUP2 DUP2 SUB PUSH1 0x40 DUP4 ADD MSTORE PUSH2 0x1EB4 DUP2 PUSH2 0x1A25 JUMP JUMPDEST SWAP1 POP PUSH2 0x1EC3 PUSH1 0x60 DUP4 ADD DUP6 PUSH2 0x154F JUMP JUMPDEST PUSH2 0x1ED0 PUSH1 0x80 DUP4 ADD DUP5 PUSH2 0x154F JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 STATICCALL PUSH31 0x493FF4AA460BEC113FD24A46BD17637957008EE421029C0F2E1EFC6A2C1064 PUSH20 0x6F6C634300081200330000000000000000000000 ", | |
"sourceMap": "71:6752:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" | |
}, | |
"deployedBytecode": { | |
"functionDebugData": { | |
"@equal_152": { | |
"entryPoint": 2811, | |
"id": 152, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@equal_179": { | |
"entryPoint": 3426, | |
"id": 179, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@equal_206": { | |
"entryPoint": 2396, | |
"id": 206, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@equal_233": { | |
"entryPoint": 3081, | |
"id": 233, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@equal_260": { | |
"entryPoint": 3351, | |
"id": 260, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@equal_297": { | |
"entryPoint": 3200, | |
"id": 297, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@greaterThan_496": { | |
"entryPoint": 2736, | |
"id": 496, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@greaterThan_523": { | |
"entryPoint": 2661, | |
"id": 523, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@greaterThan_566": { | |
"entryPoint": 2568, | |
"id": 566, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@greaterThan_609": { | |
"entryPoint": 1607, | |
"id": 609, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@lesserThan_636": { | |
"entryPoint": 2886, | |
"id": 636, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@lesserThan_663": { | |
"entryPoint": 1941, | |
"id": 663, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@lesserThan_706": { | |
"entryPoint": 1700, | |
"id": 706, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@lesserThan_749": { | |
"entryPoint": 2475, | |
"id": 749, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@notEqual_324": { | |
"entryPoint": 2320, | |
"id": 324, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@notEqual_351": { | |
"entryPoint": 2168, | |
"id": 351, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@notEqual_378": { | |
"entryPoint": 1861, | |
"id": 378, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@notEqual_405": { | |
"entryPoint": 2961, | |
"id": 405, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@notEqual_432": { | |
"entryPoint": 2244, | |
"id": 432, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@notEqual_469": { | |
"entryPoint": 2016, | |
"id": 469, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"@ok_125": { | |
"entryPoint": 1793, | |
"id": 125, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_decode_available_length_t_string_memory_ptr": { | |
"entryPoint": 3843, | |
"id": null, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"abi_decode_t_address": { | |
"entryPoint": 5105, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_decode_t_bool": { | |
"entryPoint": 4254, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_decode_t_bytes32": { | |
"entryPoint": 4789, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_decode_t_int256": { | |
"entryPoint": 3554, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_decode_t_string_memory_ptr": { | |
"entryPoint": 3909, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_decode_t_uint256": { | |
"entryPoint": 3608, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_decode_tuple_t_addresst_addresst_string_memory_ptr": { | |
"entryPoint": 5126, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 3 | |
}, | |
"abi_decode_tuple_t_boolt_boolt_string_memory_ptr": { | |
"entryPoint": 4367, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 3 | |
}, | |
"abi_decode_tuple_t_boolt_string_memory_ptr": { | |
"entryPoint": 4275, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 2 | |
}, | |
"abi_decode_tuple_t_bytes32t_bytes32t_string_memory_ptr": { | |
"entryPoint": 4810, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 3 | |
}, | |
"abi_decode_tuple_t_int256t_int256t_string_memory_ptr": { | |
"entryPoint": 4478, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 3 | |
}, | |
"abi_decode_tuple_t_int256t_uint256t_string_memory_ptr": { | |
"entryPoint": 3955, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 3 | |
}, | |
"abi_decode_tuple_t_string_memory_ptrt_string_memory_ptrt_string_memory_ptr": { | |
"entryPoint": 4589, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 3 | |
}, | |
"abi_decode_tuple_t_uint256t_int256t_string_memory_ptr": { | |
"entryPoint": 4120, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 3 | |
}, | |
"abi_decode_tuple_t_uint256t_uint256t_string_memory_ptr": { | |
"entryPoint": 4921, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 3 | |
}, | |
"abi_encode_t_address_to_t_address_fromStack": { | |
"entryPoint": 7393, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"abi_encode_t_bool_to_t_bool_fromStack": { | |
"entryPoint": 5237, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"abi_encode_t_bool_to_t_bool_fromStack_library": { | |
"entryPoint": 4078, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"abi_encode_t_bytes32_to_t_bytes32_fromStack": { | |
"entryPoint": 6447, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"abi_encode_t_int256_to_t_int256_fromStack": { | |
"entryPoint": 5455, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack": { | |
"entryPoint": 5322, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_nonPadded_inplace_fromStack": { | |
"entryPoint": 6171, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_encode_t_stringliteral_14502d3ab34ae28d404da8f6ec0501c6f295f66caa41e122cfa9b1291bc0f9e8_to_t_string_memory_ptr_fromStack": { | |
"entryPoint": 5792, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_t_stringliteral_2602ee1ebf372b25bffbd066c8358edb7f611f67d29a83d531f51d21a4ab2e89_to_t_string_memory_ptr_fromStack": { | |
"entryPoint": 6693, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_t_stringliteral_50a97f23c5119bdada150dd747dad0c52d0fcca899436a501c98e865f82ff03f_to_t_string_memory_ptr_fromStack": { | |
"entryPoint": 5420, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_t_stringliteral_6eacbbc162a376a1056ee46defb5ad8c0513de0d938dbfce38c05fc663a8556d_to_t_string_memory_ptr_fromStack": { | |
"entryPoint": 5621, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_t_stringliteral_9221cc5593ebbd03a3c08e5d1bf5bfda46e44ce5d969a4cf46cd32ca4bbd45ce_to_t_string_memory_ptr_fromStack": { | |
"entryPoint": 5935, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"abi_encode_t_uint256_to_t_uint256_fromStack": { | |
"entryPoint": 5470, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"abi_encode_tuple_packed_t_string_memory_ptr__to_t_string_memory_ptr__nonPadded_inplace_fromStack_reversed": { | |
"entryPoint": 6220, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool__to_t_bool__fromStack_library_reversed": { | |
"entryPoint": 4093, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_14502d3ab34ae28d404da8f6ec0501c6f295f66caa41e122cfa9b1291bc0f9e8__to_t_bool_t_string_memory_ptr_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": 5827, | |
"id": null, | |
"parameterSlots": 3, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_2602ee1ebf372b25bffbd066c8358edb7f611f67d29a83d531f51d21a4ab2e89_t_address_t_address__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_address_t_address__fromStack_reversed": { | |
"entryPoint": 7503, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_2602ee1ebf372b25bffbd066c8358edb7f611f67d29a83d531f51d21a4ab2e89_t_bool_t_bool__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_bool_t_bool__fromStack_reversed": { | |
"entryPoint": 6728, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_2602ee1ebf372b25bffbd066c8358edb7f611f67d29a83d531f51d21a4ab2e89_t_bytes32_t_bytes32__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_bytes32_t_bytes32__fromStack_reversed": { | |
"entryPoint": 7707, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_2602ee1ebf372b25bffbd066c8358edb7f611f67d29a83d531f51d21a4ab2e89_t_int256_t_int256__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_int256_t_int256__fromStack_reversed": { | |
"entryPoint": 7802, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_2602ee1ebf372b25bffbd066c8358edb7f611f67d29a83d531f51d21a4ab2e89_t_string_memory_ptr_t_string_memory_ptr__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": 7598, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_2602ee1ebf372b25bffbd066c8358edb7f611f67d29a83d531f51d21a4ab2e89_t_uint256_t_uint256__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_uint256_t_uint256__fromStack_reversed": { | |
"entryPoint": 7203, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_50a97f23c5119bdada150dd747dad0c52d0fcca899436a501c98e865f82ff03f_t_int256_t_int256__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_int256_t_int256__fromStack_reversed": { | |
"entryPoint": 7013, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_50a97f23c5119bdada150dd747dad0c52d0fcca899436a501c98e865f82ff03f_t_int256_t_uint256__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_int256_t_uint256__fromStack_reversed": { | |
"entryPoint": 5485, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_50a97f23c5119bdada150dd747dad0c52d0fcca899436a501c98e865f82ff03f_t_uint256_t_int256__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_uint256_t_int256__fromStack_reversed": { | |
"entryPoint": 6918, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_50a97f23c5119bdada150dd747dad0c52d0fcca899436a501c98e865f82ff03f_t_uint256_t_uint256__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_uint256_t_uint256__fromStack_reversed": { | |
"entryPoint": 7108, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_6eacbbc162a376a1056ee46defb5ad8c0513de0d938dbfce38c05fc663a8556d_t_int256_t_int256__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_int256_t_int256__fromStack_reversed": { | |
"entryPoint": 6065, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_6eacbbc162a376a1056ee46defb5ad8c0513de0d938dbfce38c05fc663a8556d_t_int256_t_uint256__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_int256_t_uint256__fromStack_reversed": { | |
"entryPoint": 6823, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_6eacbbc162a376a1056ee46defb5ad8c0513de0d938dbfce38c05fc663a8556d_t_uint256_t_int256__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_uint256_t_int256__fromStack_reversed": { | |
"entryPoint": 5656, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_6eacbbc162a376a1056ee46defb5ad8c0513de0d938dbfce38c05fc663a8556d_t_uint256_t_uint256__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_uint256_t_uint256__fromStack_reversed": { | |
"entryPoint": 7298, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_9221cc5593ebbd03a3c08e5d1bf5bfda46e44ce5d969a4cf46cd32ca4bbd45ce_t_address_t_address__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_address_t_address__fromStack_reversed": { | |
"entryPoint": 7408, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_9221cc5593ebbd03a3c08e5d1bf5bfda46e44ce5d969a4cf46cd32ca4bbd45ce_t_bool_t_bool__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_bool_t_bool__fromStack_reversed": { | |
"entryPoint": 5970, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_9221cc5593ebbd03a3c08e5d1bf5bfda46e44ce5d969a4cf46cd32ca4bbd45ce_t_bytes32_t_bytes32__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_bytes32_t_bytes32__fromStack_reversed": { | |
"entryPoint": 6462, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_9221cc5593ebbd03a3c08e5d1bf5bfda46e44ce5d969a4cf46cd32ca4bbd45ce_t_int256_t_int256__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_int256_t_int256__fromStack_reversed": { | |
"entryPoint": 6352, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_9221cc5593ebbd03a3c08e5d1bf5bfda46e44ce5d969a4cf46cd32ca4bbd45ce_t_string_memory_ptr_t_string_memory_ptr__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr__fromStack_reversed": { | |
"entryPoint": 6243, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"abi_encode_tuple_t_bool_t_string_memory_ptr_t_stringliteral_9221cc5593ebbd03a3c08e5d1bf5bfda46e44ce5d969a4cf46cd32ca4bbd45ce_t_uint256_t_uint256__to_t_bool_t_string_memory_ptr_t_string_memory_ptr_t_uint256_t_uint256__fromStack_reversed": { | |
"entryPoint": 6557, | |
"id": null, | |
"parameterSlots": 5, | |
"returnSlots": 1 | |
}, | |
"allocate_memory": { | |
"entryPoint": 3752, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"allocate_unbounded": { | |
"entryPoint": 3501, | |
"id": null, | |
"parameterSlots": 0, | |
"returnSlots": 1 | |
}, | |
"array_allocation_size_t_string_memory_ptr": { | |
"entryPoint": 3779, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"array_length_t_string_memory_ptr": { | |
"entryPoint": 5252, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"array_storeLengthForEncoding_t_string_memory_ptr_fromStack": { | |
"entryPoint": 5263, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack": { | |
"entryPoint": 6160, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 1 | |
}, | |
"cleanup_t_address": { | |
"entryPoint": 5064, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"cleanup_t_bool": { | |
"entryPoint": 4066, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"cleanup_t_bytes32": { | |
"entryPoint": 4756, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"cleanup_t_int256": { | |
"entryPoint": 3521, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"cleanup_t_uint160": { | |
"entryPoint": 5032, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"cleanup_t_uint256": { | |
"entryPoint": 3575, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"copy_calldata_to_memory_with_cleanup": { | |
"entryPoint": 3828, | |
"id": null, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"copy_memory_to_memory_with_cleanup": { | |
"entryPoint": 5280, | |
"id": null, | |
"parameterSlots": 3, | |
"returnSlots": 0 | |
}, | |
"finalize_allocation": { | |
"entryPoint": 3703, | |
"id": null, | |
"parameterSlots": 2, | |
"returnSlots": 0 | |
}, | |
"panic_error_0x41": { | |
"entryPoint": 3656, | |
"id": null, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d": { | |
"entryPoint": 3629, | |
"id": null, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae": { | |
"entryPoint": 3634, | |
"id": null, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": { | |
"entryPoint": 3516, | |
"id": null, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": { | |
"entryPoint": 3511, | |
"id": null, | |
"parameterSlots": 0, | |
"returnSlots": 0 | |
}, | |
"round_up_to_mul_of_32": { | |
"entryPoint": 3639, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 1 | |
}, | |
"store_literal_in_memory_14502d3ab34ae28d404da8f6ec0501c6f295f66caa41e122cfa9b1291bc0f9e8": { | |
"entryPoint": 5751, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"store_literal_in_memory_2602ee1ebf372b25bffbd066c8358edb7f611f67d29a83d531f51d21a4ab2e89": { | |
"entryPoint": 6652, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"store_literal_in_memory_50a97f23c5119bdada150dd747dad0c52d0fcca899436a501c98e865f82ff03f": { | |
"entryPoint": 5379, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"store_literal_in_memory_6eacbbc162a376a1056ee46defb5ad8c0513de0d938dbfce38c05fc663a8556d": { | |
"entryPoint": 5580, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"store_literal_in_memory_9221cc5593ebbd03a3c08e5d1bf5bfda46e44ce5d969a4cf46cd32ca4bbd45ce": { | |
"entryPoint": 5894, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"validator_revert_t_address": { | |
"entryPoint": 5082, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"validator_revert_t_bool": { | |
"entryPoint": 4231, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"validator_revert_t_bytes32": { | |
"entryPoint": 4766, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"validator_revert_t_int256": { | |
"entryPoint": 3531, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
}, | |
"validator_revert_t_uint256": { | |
"entryPoint": 3585, | |
"id": null, | |
"parameterSlots": 1, | |
"returnSlots": 0 | |
} | |
}, | |
"generatedSources": [ | |
{ | |
"ast": { | |
"nodeType": "YulBlock", | |
"src": "0:37205:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "47:35:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "57:19:1", | |
"value": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "73:2:1", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "67:5:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "67:9:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "memPtr", | |
"nodeType": "YulIdentifier", | |
"src": "57:6:1" | |
} | |
] | |
} | |
] | |
}, | |
"name": "allocate_unbounded", | |
"nodeType": "YulFunctionDefinition", | |
"returnVariables": [ | |
{ | |
"name": "memPtr", | |
"nodeType": "YulTypedName", | |
"src": "40:6:1", | |
"type": "" | |
} | |
], | |
"src": "7:75:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "177:28:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "194:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "197:1:1", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "187:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "187:12:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "187:12:1" | |
} | |
] | |
}, | |
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", | |
"nodeType": "YulFunctionDefinition", | |
"src": "88:117:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "300:28:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "317:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "320:1:1", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "310:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "310:12:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "310:12:1" | |
} | |
] | |
}, | |
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", | |
"nodeType": "YulFunctionDefinition", | |
"src": "211:117:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "378:32:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "388:16:1", | |
"value": { | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "399:5:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "cleaned", | |
"nodeType": "YulIdentifier", | |
"src": "388:7:1" | |
} | |
] | |
} | |
] | |
}, | |
"name": "cleanup_t_int256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "360:5:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "cleaned", | |
"nodeType": "YulTypedName", | |
"src": "370:7:1", | |
"type": "" | |
} | |
], | |
"src": "334:76:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "458:78:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "514:16:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "523:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "526:1:1", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "516:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "516:12:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "516:12:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "481:5:1" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "505:5:1" | |
} | |
], | |
"functionName": { | |
"name": "cleanup_t_int256", | |
"nodeType": "YulIdentifier", | |
"src": "488:16:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "488:23:1" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "478:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "478:34:1" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "471:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "471:42:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "468:62:1" | |
} | |
] | |
}, | |
"name": "validator_revert_t_int256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "451:5:1", | |
"type": "" | |
} | |
], | |
"src": "416:120:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "593:86:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "603:29:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "625:6:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "612:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "612:20:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "603:5:1" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "667:5:1" | |
} | |
], | |
"functionName": { | |
"name": "validator_revert_t_int256", | |
"nodeType": "YulIdentifier", | |
"src": "641:25:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "641:32:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "641:32:1" | |
} | |
] | |
}, | |
"name": "abi_decode_t_int256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "571:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "579:3:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "587:5:1", | |
"type": "" | |
} | |
], | |
"src": "542:137:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "730:32:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "740:16:1", | |
"value": { | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "751:5:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "cleaned", | |
"nodeType": "YulIdentifier", | |
"src": "740:7:1" | |
} | |
] | |
} | |
] | |
}, | |
"name": "cleanup_t_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "712:5:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "cleaned", | |
"nodeType": "YulTypedName", | |
"src": "722:7:1", | |
"type": "" | |
} | |
], | |
"src": "685:77:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "811:79:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "868:16:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "877:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "880:1:1", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "870:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "870:12:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "870:12:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "834:5:1" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "859:5:1" | |
} | |
], | |
"functionName": { | |
"name": "cleanup_t_uint256", | |
"nodeType": "YulIdentifier", | |
"src": "841:17:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "841:24:1" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "831:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "831:35:1" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "824:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "824:43:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "821:63:1" | |
} | |
] | |
}, | |
"name": "validator_revert_t_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "804:5:1", | |
"type": "" | |
} | |
], | |
"src": "768:122:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "948:87:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "958:29:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "980:6:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "967:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "967:20:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "958:5:1" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "1023:5:1" | |
} | |
], | |
"functionName": { | |
"name": "validator_revert_t_uint256", | |
"nodeType": "YulIdentifier", | |
"src": "996:26:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "996:33:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "996:33:1" | |
} | |
] | |
}, | |
"name": "abi_decode_t_uint256", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "926:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "934:3:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "942:5:1", | |
"type": "" | |
} | |
], | |
"src": "896:139:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1130:28:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1147:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1150:1:1", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "1140:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1140:12:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1140:12:1" | |
} | |
] | |
}, | |
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d", | |
"nodeType": "YulFunctionDefinition", | |
"src": "1041:117:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1253:28:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1270:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1273:1:1", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "1263:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1263:12:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1263:12:1" | |
} | |
] | |
}, | |
"name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae", | |
"nodeType": "YulFunctionDefinition", | |
"src": "1164:117:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1335:54:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1345:38:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "1363:5:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1370:2:1", | |
"type": "", | |
"value": "31" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1359:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1359:14:1" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1379:2:1", | |
"type": "", | |
"value": "31" | |
} | |
], | |
"functionName": { | |
"name": "not", | |
"nodeType": "YulIdentifier", | |
"src": "1375:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1375:7:1" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "1355:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1355:28:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "result", | |
"nodeType": "YulIdentifier", | |
"src": "1345:6:1" | |
} | |
] | |
} | |
] | |
}, | |
"name": "round_up_to_mul_of_32", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "1318:5:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "result", | |
"nodeType": "YulTypedName", | |
"src": "1328:6:1", | |
"type": "" | |
} | |
], | |
"src": "1287:102:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1423:152:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1440:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1443:77:1", | |
"type": "", | |
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "1433:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1433:88:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1433:88:1" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1537:1:1", | |
"type": "", | |
"value": "4" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1540:4:1", | |
"type": "", | |
"value": "0x41" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "1530:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1530:15:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1530:15:1" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1561:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1564:4:1", | |
"type": "", | |
"value": "0x24" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "1554:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1554:15:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1554:15:1" | |
} | |
] | |
}, | |
"name": "panic_error_0x41", | |
"nodeType": "YulFunctionDefinition", | |
"src": "1395:180:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1624:238:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "1634:58:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "memPtr", | |
"nodeType": "YulIdentifier", | |
"src": "1656:6:1" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "size", | |
"nodeType": "YulIdentifier", | |
"src": "1686:4:1" | |
} | |
], | |
"functionName": { | |
"name": "round_up_to_mul_of_32", | |
"nodeType": "YulIdentifier", | |
"src": "1664:21:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1664:27:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1652:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1652:40:1" | |
}, | |
"variables": [ | |
{ | |
"name": "newFreePtr", | |
"nodeType": "YulTypedName", | |
"src": "1638:10:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1803:22:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "panic_error_0x41", | |
"nodeType": "YulIdentifier", | |
"src": "1805:16:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1805:18:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1805:18:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "newFreePtr", | |
"nodeType": "YulIdentifier", | |
"src": "1746:10:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1758:18:1", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "1743:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1743:34:1" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "newFreePtr", | |
"nodeType": "YulIdentifier", | |
"src": "1782:10:1" | |
}, | |
{ | |
"name": "memPtr", | |
"nodeType": "YulIdentifier", | |
"src": "1794:6:1" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "1779:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1779:22:1" | |
} | |
], | |
"functionName": { | |
"name": "or", | |
"nodeType": "YulIdentifier", | |
"src": "1740:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1740:62:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "1737:88:1" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1841:2:1", | |
"type": "", | |
"value": "64" | |
}, | |
{ | |
"name": "newFreePtr", | |
"nodeType": "YulIdentifier", | |
"src": "1845:10:1" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "1834:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1834:22:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1834:22:1" | |
} | |
] | |
}, | |
"name": "finalize_allocation", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "memPtr", | |
"nodeType": "YulTypedName", | |
"src": "1610:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "size", | |
"nodeType": "YulTypedName", | |
"src": "1618:4:1", | |
"type": "" | |
} | |
], | |
"src": "1581:281:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1909:88:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1919:30:1", | |
"value": { | |
"arguments": [], | |
"functionName": { | |
"name": "allocate_unbounded", | |
"nodeType": "YulIdentifier", | |
"src": "1929:18:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1929:20:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "memPtr", | |
"nodeType": "YulIdentifier", | |
"src": "1919:6:1" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "memPtr", | |
"nodeType": "YulIdentifier", | |
"src": "1978:6:1" | |
}, | |
{ | |
"name": "size", | |
"nodeType": "YulIdentifier", | |
"src": "1986:4:1" | |
} | |
], | |
"functionName": { | |
"name": "finalize_allocation", | |
"nodeType": "YulIdentifier", | |
"src": "1958:19:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1958:33:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1958:33:1" | |
} | |
] | |
}, | |
"name": "allocate_memory", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "size", | |
"nodeType": "YulTypedName", | |
"src": "1893:4:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "memPtr", | |
"nodeType": "YulTypedName", | |
"src": "1902:6:1", | |
"type": "" | |
} | |
], | |
"src": "1868:129:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2070:241:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2175:22:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "panic_error_0x41", | |
"nodeType": "YulIdentifier", | |
"src": "2177:16:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2177:18:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2177:18:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2147:6:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2155:18:1", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "2144:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2144:30:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "2141:56:1" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2207:37:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2237:6:1" | |
} | |
], | |
"functionName": { | |
"name": "round_up_to_mul_of_32", | |
"nodeType": "YulIdentifier", | |
"src": "2215:21:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2215:29:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "size", | |
"nodeType": "YulIdentifier", | |
"src": "2207:4:1" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2281:23:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "size", | |
"nodeType": "YulIdentifier", | |
"src": "2293:4:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2299:4:1", | |
"type": "", | |
"value": "0x20" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2289:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2289:15:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "size", | |
"nodeType": "YulIdentifier", | |
"src": "2281:4:1" | |
} | |
] | |
} | |
] | |
}, | |
"name": "array_allocation_size_t_string_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "2054:6:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "size", | |
"nodeType": "YulTypedName", | |
"src": "2065:4:1", | |
"type": "" | |
} | |
], | |
"src": "2003:308:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2381:82:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "dst", | |
"nodeType": "YulIdentifier", | |
"src": "2404:3:1" | |
}, | |
{ | |
"name": "src", | |
"nodeType": "YulIdentifier", | |
"src": "2409:3:1" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2414:6:1" | |
} | |
], | |
"functionName": { | |
"name": "calldatacopy", | |
"nodeType": "YulIdentifier", | |
"src": "2391:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2391:30:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2391:30:1" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dst", | |
"nodeType": "YulIdentifier", | |
"src": "2441:3:1" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2446:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2437:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2437:16:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2455:1:1", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2430:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2430:27:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2430:27:1" | |
} | |
] | |
}, | |
"name": "copy_calldata_to_memory_with_cleanup", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "src", | |
"nodeType": "YulTypedName", | |
"src": "2363:3:1", | |
"type": "" | |
}, | |
{ | |
"name": "dst", | |
"nodeType": "YulTypedName", | |
"src": "2368:3:1", | |
"type": "" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "2373:6:1", | |
"type": "" | |
} | |
], | |
"src": "2317:146:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2553:341:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2563:75:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2630:6:1" | |
} | |
], | |
"functionName": { | |
"name": "array_allocation_size_t_string_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "2588:41:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2588:49:1" | |
} | |
], | |
"functionName": { | |
"name": "allocate_memory", | |
"nodeType": "YulIdentifier", | |
"src": "2572:15:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2572:66:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "array", | |
"nodeType": "YulIdentifier", | |
"src": "2563:5:1" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "array", | |
"nodeType": "YulIdentifier", | |
"src": "2654:5:1" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2661:6:1" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "2647:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2647:21:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2647:21:1" | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "2677:27:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "array", | |
"nodeType": "YulIdentifier", | |
"src": "2692:5:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2699:4:1", | |
"type": "", | |
"value": "0x20" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2688:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2688:16:1" | |
}, | |
"variables": [ | |
{ | |
"name": "dst", | |
"nodeType": "YulTypedName", | |
"src": "2681:3:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2742:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae", | |
"nodeType": "YulIdentifier", | |
"src": "2744:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2744:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2744:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "src", | |
"nodeType": "YulIdentifier", | |
"src": "2723:3:1" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2728:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2719:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2719:16:1" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulIdentifier", | |
"src": "2737:3:1" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "2716:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2716:25:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "2713:112:1" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "src", | |
"nodeType": "YulIdentifier", | |
"src": "2871:3:1" | |
}, | |
{ | |
"name": "dst", | |
"nodeType": "YulIdentifier", | |
"src": "2876:3:1" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2881:6:1" | |
} | |
], | |
"functionName": { | |
"name": "copy_calldata_to_memory_with_cleanup", | |
"nodeType": "YulIdentifier", | |
"src": "2834:36:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2834:54:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2834:54:1" | |
} | |
] | |
}, | |
"name": "abi_decode_available_length_t_string_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "src", | |
"nodeType": "YulTypedName", | |
"src": "2526:3:1", | |
"type": "" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "2531:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "2539:3:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "array", | |
"nodeType": "YulTypedName", | |
"src": "2547:5:1", | |
"type": "" | |
} | |
], | |
"src": "2469:425:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2976:278:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3025:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d", | |
"nodeType": "YulIdentifier", | |
"src": "3027:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3027:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3027:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "3004:6:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3012:4:1", | |
"type": "", | |
"value": "0x1f" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3000:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3000:17:1" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulIdentifier", | |
"src": "3019:3:1" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "2996:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2996:27:1" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "2989:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2989:35:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "2986:122:1" | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "3117:34:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "3144:6:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "3131:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3131:20:1" | |
}, | |
"variables": [ | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "3121:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3160:88:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "3221:6:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3229:4:1", | |
"type": "", | |
"value": "0x20" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3217:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3217:17:1" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "3236:6:1" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulIdentifier", | |
"src": "3244:3:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_available_length_t_string_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "3169:47:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3169:79:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "array", | |
"nodeType": "YulIdentifier", | |
"src": "3160:5:1" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_t_string_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "2954:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "2962:3:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "array", | |
"nodeType": "YulTypedName", | |
"src": "2970:5:1", | |
"type": "" | |
} | |
], | |
"src": "2914:340:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3369:688:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3415:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", | |
"nodeType": "YulIdentifier", | |
"src": "3417:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3417:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3417:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "3390:7:1" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3399:9:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "3386:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3386:23:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3411:2:1", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "3382:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3382:32:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "3379:119:1" | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "3508:116:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "3523:15:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3537:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "3527:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3552:62:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3586:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "3597:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3582:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3582:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "3606:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_int256", | |
"nodeType": "YulIdentifier", | |
"src": "3562:19:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3562:52:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "3552:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "3634:118:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "3649:16:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3663:2:1", | |
"type": "", | |
"value": "32" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "3653:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3679:63:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3714:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "3725:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3710:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3710:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "3734:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_uint256", | |
"nodeType": "YulIdentifier", | |
"src": "3689:20:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3689:53:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "3679:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "3762:288:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "3777:46:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3808:9:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3819:2:1", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3804:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3804:18:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "3791:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3791:32:1" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "3781:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3870:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", | |
"nodeType": "YulIdentifier", | |
"src": "3872:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3872:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3872:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "3842:6:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3850:18:1", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "3839:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3839:30:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "3836:117:1" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3967:73:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4012:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "4023:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4008:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4008:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "4032:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_string_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "3977:30:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3977:63:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value2", | |
"nodeType": "YulIdentifier", | |
"src": "3967:6:1" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_int256t_uint256t_string_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "3323:9:1", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "3334:7:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "3346:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "3354:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value2", | |
"nodeType": "YulTypedName", | |
"src": "3362:6:1", | |
"type": "" | |
} | |
], | |
"src": "3260:797:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4105:48:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4115:32:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "4140:5:1" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "4133:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4133:13:1" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "4126:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4126:21:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "cleaned", | |
"nodeType": "YulIdentifier", | |
"src": "4115:7:1" | |
} | |
] | |
} | |
] | |
}, | |
"name": "cleanup_t_bool", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "4087:5:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "cleaned", | |
"nodeType": "YulTypedName", | |
"src": "4097:7:1", | |
"type": "" | |
} | |
], | |
"src": "4063:90:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4226:50:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "4243:3:1" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "4263:5:1" | |
} | |
], | |
"functionName": { | |
"name": "cleanup_t_bool", | |
"nodeType": "YulIdentifier", | |
"src": "4248:14:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4248:21:1" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4236:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4236:34:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4236:34:1" | |
} | |
] | |
}, | |
"name": "abi_encode_t_bool_to_t_bool_fromStack_library", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "4214:5:1", | |
"type": "" | |
}, | |
{ | |
"name": "pos", | |
"nodeType": "YulTypedName", | |
"src": "4221:3:1", | |
"type": "" | |
} | |
], | |
"src": "4159:117:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4382:126:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4392:26:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4404:9:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4415:2:1", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4400:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4400:18:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "4392:4:1" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "4474:6:1" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4487:9:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4498:1:1", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4483:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4483:17:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_encode_t_bool_to_t_bool_fromStack_library", | |
"nodeType": "YulIdentifier", | |
"src": "4428:45:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4428:73:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4428:73:1" | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_bool__to_t_bool__fromStack_library_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "4354:9:1", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "4366:6:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "4377:4:1", | |
"type": "" | |
} | |
], | |
"src": "4282:226:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4623:688:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4669:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", | |
"nodeType": "YulIdentifier", | |
"src": "4671:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4671:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4671:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "4644:7:1" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4653:9:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "4640:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4640:23:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4665:2:1", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "4636:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4636:32:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "4633:119:1" | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "4762:117:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "4777:15:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4791:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "4781:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4806:63:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4841:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "4852:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4837:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4837:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "4861:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_uint256", | |
"nodeType": "YulIdentifier", | |
"src": "4816:20:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4816:53:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "4806:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "4889:117:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "4904:16:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4918:2:1", | |
"type": "", | |
"value": "32" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "4908:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4934:62:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4968:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "4979:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4964:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4964:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "4988:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_int256", | |
"nodeType": "YulIdentifier", | |
"src": "4944:19:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4944:52:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "4934:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "5016:288:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "5031:46:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5062:9:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5073:2:1", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5058:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5058:18:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "5045:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5045:32:1" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "5035:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5124:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", | |
"nodeType": "YulIdentifier", | |
"src": "5126:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5126:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5126:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "5096:6:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5104:18:1", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "5093:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5093:30:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "5090:117:1" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5221:73:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5266:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "5277:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5262:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5262:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "5286:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_string_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "5231:30:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5231:63:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value2", | |
"nodeType": "YulIdentifier", | |
"src": "5221:6:1" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_uint256t_int256t_string_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "4577:9:1", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "4588:7:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "4600:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "4608:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value2", | |
"nodeType": "YulTypedName", | |
"src": "4616:6:1", | |
"type": "" | |
} | |
], | |
"src": "4514:797:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5357:76:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5411:16:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5420:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5423:1:1", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "5413:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5413:12:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5413:12:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "5380:5:1" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "5402:5:1" | |
} | |
], | |
"functionName": { | |
"name": "cleanup_t_bool", | |
"nodeType": "YulIdentifier", | |
"src": "5387:14:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5387:21:1" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "5377:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5377:32:1" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "5370:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5370:40:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "5367:60:1" | |
} | |
] | |
}, | |
"name": "validator_revert_t_bool", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "5350:5:1", | |
"type": "" | |
} | |
], | |
"src": "5317:116:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5488:84:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5498:29:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "5520:6:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "5507:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5507:20:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "5498:5:1" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "5560:5:1" | |
} | |
], | |
"functionName": { | |
"name": "validator_revert_t_bool", | |
"nodeType": "YulIdentifier", | |
"src": "5536:23:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5536:30:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5536:30:1" | |
} | |
] | |
}, | |
"name": "abi_decode_t_bool", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "5466:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "5474:3:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "5482:5:1", | |
"type": "" | |
} | |
], | |
"src": "5439:133:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5668:558:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5714:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", | |
"nodeType": "YulIdentifier", | |
"src": "5716:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5716:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5716:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "5689:7:1" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5698:9:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "5685:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5685:23:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5710:2:1", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "5681:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5681:32:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "5678:119:1" | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "5807:114:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "5822:15:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5836:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "5826:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5851:60:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5883:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "5894:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5879:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5879:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "5903:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_bool", | |
"nodeType": "YulIdentifier", | |
"src": "5861:17:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5861:50:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "5851:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "5931:288:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "5946:46:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "5977:9:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5988:2:1", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5973:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5973:18:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "5960:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5960:32:1" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "5950:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "6039:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", | |
"nodeType": "YulIdentifier", | |
"src": "6041:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6041:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6041:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "6011:6:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6019:18:1", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "6008:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6008:30:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "6005:117:1" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "6136:73:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6181:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "6192:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6177:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6177:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "6201:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_string_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "6146:30:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6146:63:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "6136:6:1" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_boolt_string_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "5630:9:1", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "5641:7:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "5653:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "5661:6:1", | |
"type": "" | |
} | |
], | |
"src": "5578:648:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "6336:683:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "6382:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", | |
"nodeType": "YulIdentifier", | |
"src": "6384:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6384:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6384:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "6357:7:1" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6366:9:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "6353:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6353:23:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6378:2:1", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "6349:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6349:32:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "6346:119:1" | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "6475:114:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "6490:15:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6504:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "6494:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "6519:60:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6551:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "6562:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6547:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6547:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "6571:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_bool", | |
"nodeType": "YulIdentifier", | |
"src": "6529:17:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6529:50:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "6519:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "6599:115:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "6614:16:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6628:2:1", | |
"type": "", | |
"value": "32" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "6618:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "6644:60:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6676:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "6687:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6672:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6672:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "6696:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_bool", | |
"nodeType": "YulIdentifier", | |
"src": "6654:17:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6654:50:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "6644:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "6724:288:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "6739:46:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6770:9:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6781:2:1", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6766:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6766:18:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "6753:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6753:32:1" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "6743:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "6832:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", | |
"nodeType": "YulIdentifier", | |
"src": "6834:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6834:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "6834:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "6804:6:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "6812:18:1", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "6801:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6801:30:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "6798:117:1" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "6929:73:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "6974:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "6985:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "6970:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6970:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "6994:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_string_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "6939:30:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "6939:63:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value2", | |
"nodeType": "YulIdentifier", | |
"src": "6929:6:1" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_boolt_boolt_string_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "6290:9:1", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "6301:7:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "6313:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "6321:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value2", | |
"nodeType": "YulTypedName", | |
"src": "6329:6:1", | |
"type": "" | |
} | |
], | |
"src": "6232:787:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "7133:687:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "7179:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", | |
"nodeType": "YulIdentifier", | |
"src": "7181:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7181:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7181:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "7154:7:1" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7163:9:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "7150:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7150:23:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7175:2:1", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "7146:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7146:32:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "7143:119:1" | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "7272:116:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "7287:15:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7301:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "7291:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "7316:62:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7350:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "7361:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7346:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7346:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "7370:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_int256", | |
"nodeType": "YulIdentifier", | |
"src": "7326:19:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7326:52:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "7316:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "7398:117:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "7413:16:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7427:2:1", | |
"type": "", | |
"value": "32" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "7417:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "7443:62:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7477:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "7488:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7473:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7473:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "7497:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_int256", | |
"nodeType": "YulIdentifier", | |
"src": "7453:19:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7453:52:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "7443:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "7525:288:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "7540:46:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7571:9:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7582:2:1", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7567:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7567:18:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "7554:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7554:32:1" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "7544:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "7633:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", | |
"nodeType": "YulIdentifier", | |
"src": "7635:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7635:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "7635:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "7605:6:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7613:18:1", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "7602:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7602:30:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "7599:117:1" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "7730:73:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7775:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "7786:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "7771:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7771:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "7795:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_string_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "7740:30:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7740:63:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value2", | |
"nodeType": "YulIdentifier", | |
"src": "7730:6:1" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_int256t_int256t_string_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "7087:9:1", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "7098:7:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "7110:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "7118:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value2", | |
"nodeType": "YulTypedName", | |
"src": "7126:6:1", | |
"type": "" | |
} | |
], | |
"src": "7025:795:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "7956:1029:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "8002:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", | |
"nodeType": "YulIdentifier", | |
"src": "8004:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8004:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8004:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "7977:7:1" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "7986:9:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "7973:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7973:23:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "7998:2:1", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "7969:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "7969:32:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "7966:119:1" | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "8095:287:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "8110:45:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8141:9:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8152:1:1", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8137:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8137:17:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "8124:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8124:31:1" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "8114:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "8202:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", | |
"nodeType": "YulIdentifier", | |
"src": "8204:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8204:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8204:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "8174:6:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8182:18:1", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "8171:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8171:30:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "8168:117:1" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "8299:73:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8344:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "8355:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8340:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8340:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "8364:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_string_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "8309:30:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8309:63:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "8299:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "8392:288:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "8407:46:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8438:9:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8449:2:1", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8434:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8434:18:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "8421:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8421:32:1" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "8411:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "8500:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", | |
"nodeType": "YulIdentifier", | |
"src": "8502:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8502:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8502:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "8472:6:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8480:18:1", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "8469:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8469:30:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "8466:117:1" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "8597:73:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8642:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "8653:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8638:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8638:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "8662:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_string_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "8607:30:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8607:63:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "8597:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "8690:288:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "8705:46:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8736:9:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8747:2:1", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8732:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8732:18:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "8719:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8719:32:1" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "8709:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "8798:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", | |
"nodeType": "YulIdentifier", | |
"src": "8800:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8800:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "8800:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "8770:6:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "8778:18:1", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "8767:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8767:30:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "8764:117:1" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "8895:73:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "8940:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "8951:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "8936:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8936:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "8960:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_string_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "8905:30:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "8905:63:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value2", | |
"nodeType": "YulIdentifier", | |
"src": "8895:6:1" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_string_memory_ptrt_string_memory_ptrt_string_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "7910:9:1", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "7921:7:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "7933:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "7941:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value2", | |
"nodeType": "YulTypedName", | |
"src": "7949:6:1", | |
"type": "" | |
} | |
], | |
"src": "7826:1159:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "9036:32:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "9046:16:1", | |
"value": { | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "9057:5:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "cleaned", | |
"nodeType": "YulIdentifier", | |
"src": "9046:7:1" | |
} | |
] | |
} | |
] | |
}, | |
"name": "cleanup_t_bytes32", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "9018:5:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "cleaned", | |
"nodeType": "YulTypedName", | |
"src": "9028:7:1", | |
"type": "" | |
} | |
], | |
"src": "8991:77:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "9117:79:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "9174:16:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "9183:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "9186:1:1", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "9176:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9176:12:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "9176:12:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "9140:5:1" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "9165:5:1" | |
} | |
], | |
"functionName": { | |
"name": "cleanup_t_bytes32", | |
"nodeType": "YulIdentifier", | |
"src": "9147:17:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9147:24:1" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "9137:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9137:35:1" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "9130:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9130:43:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "9127:63:1" | |
} | |
] | |
}, | |
"name": "validator_revert_t_bytes32", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "9110:5:1", | |
"type": "" | |
} | |
], | |
"src": "9074:122:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "9254:87:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "9264:29:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "9286:6:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "9273:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9273:20:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "9264:5:1" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "9329:5:1" | |
} | |
], | |
"functionName": { | |
"name": "validator_revert_t_bytes32", | |
"nodeType": "YulIdentifier", | |
"src": "9302:26:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9302:33:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "9302:33:1" | |
} | |
] | |
}, | |
"name": "abi_decode_t_bytes32", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "9232:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "9240:3:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "9248:5:1", | |
"type": "" | |
} | |
], | |
"src": "9202:139:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "9457:689:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "9503:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", | |
"nodeType": "YulIdentifier", | |
"src": "9505:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9505:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "9505:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "9478:7:1" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "9487:9:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "9474:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9474:23:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "9499:2:1", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "9470:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9470:32:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "9467:119:1" | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "9596:117:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "9611:15:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "9625:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "9615:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "9640:63:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "9675:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "9686:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "9671:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9671:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "9695:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_bytes32", | |
"nodeType": "YulIdentifier", | |
"src": "9650:20:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9650:53:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "9640:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "9723:118:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "9738:16:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "9752:2:1", | |
"type": "", | |
"value": "32" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "9742:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "9768:63:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "9803:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "9814:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "9799:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9799:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "9823:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_bytes32", | |
"nodeType": "YulIdentifier", | |
"src": "9778:20:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9778:53:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "9768:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "9851:288:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "9866:46:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "9897:9:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "9908:2:1", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "9893:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9893:18:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "9880:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9880:32:1" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "9870:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "9959:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", | |
"nodeType": "YulIdentifier", | |
"src": "9961:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9961:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "9961:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "9931:6:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "9939:18:1", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "9928:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "9928:30:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "9925:117:1" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "10056:73:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "10101:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "10112:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "10097:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10097:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "10121:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_string_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "10066:30:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10066:63:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value2", | |
"nodeType": "YulIdentifier", | |
"src": "10056:6:1" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_bytes32t_bytes32t_string_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "9411:9:1", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "9422:7:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "9434:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "9442:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value2", | |
"nodeType": "YulTypedName", | |
"src": "9450:6:1", | |
"type": "" | |
} | |
], | |
"src": "9347:799:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "10262:689:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "10308:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", | |
"nodeType": "YulIdentifier", | |
"src": "10310:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10310:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "10310:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "10283:7:1" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "10292:9:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "10279:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10279:23:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "10304:2:1", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "10275:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10275:32:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "10272:119:1" | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "10401:117:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "10416:15:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "10430:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "10420:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "10445:63:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "10480:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "10491:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "10476:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10476:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "10500:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_uint256", | |
"nodeType": "YulIdentifier", | |
"src": "10455:20:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10455:53:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "10445:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "10528:118:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "10543:16:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "10557:2:1", | |
"type": "", | |
"value": "32" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "10547:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "10573:63:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "10608:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "10619:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "10604:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10604:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "10628:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_uint256", | |
"nodeType": "YulIdentifier", | |
"src": "10583:20:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10583:53:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "10573:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "10656:288:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "10671:46:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "10702:9:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "10713:2:1", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "10698:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10698:18:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "10685:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10685:32:1" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "10675:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "10764:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", | |
"nodeType": "YulIdentifier", | |
"src": "10766:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10766:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "10766:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "10736:6:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "10744:18:1", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "10733:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10733:30:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "10730:117:1" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "10861:73:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "10906:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "10917:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "10902:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10902:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "10926:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_string_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "10871:30:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "10871:63:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value2", | |
"nodeType": "YulIdentifier", | |
"src": "10861:6:1" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_uint256t_uint256t_string_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "10216:9:1", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "10227:7:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "10239:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "10247:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "value2", | |
"nodeType": "YulTypedName", | |
"src": "10255:6:1", | |
"type": "" | |
} | |
], | |
"src": "10152:799:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "11002:81:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "11012:65:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "11027:5:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "11034:42:1", | |
"type": "", | |
"value": "0xffffffffffffffffffffffffffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "and", | |
"nodeType": "YulIdentifier", | |
"src": "11023:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11023:54:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "cleaned", | |
"nodeType": "YulIdentifier", | |
"src": "11012:7:1" | |
} | |
] | |
} | |
] | |
}, | |
"name": "cleanup_t_uint160", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "10984:5:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "cleaned", | |
"nodeType": "YulTypedName", | |
"src": "10994:7:1", | |
"type": "" | |
} | |
], | |
"src": "10957:126:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "11134:51:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "11144:35:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "11173:5:1" | |
} | |
], | |
"functionName": { | |
"name": "cleanup_t_uint160", | |
"nodeType": "YulIdentifier", | |
"src": "11155:17:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11155:24:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "cleaned", | |
"nodeType": "YulIdentifier", | |
"src": "11144:7:1" | |
} | |
] | |
} | |
] | |
}, | |
"name": "cleanup_t_address", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "11116:5:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "cleaned", | |
"nodeType": "YulTypedName", | |
"src": "11126:7:1", | |
"type": "" | |
} | |
], | |
"src": "11089:96:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "11234:79:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "11291:16:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "11300:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "11303:1:1", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "11293:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11293:12:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "11293:12:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "11257:5:1" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "11282:5:1" | |
} | |
], | |
"functionName": { | |
"name": "cleanup_t_address", | |
"nodeType": "YulIdentifier", | |
"src": "11264:17:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11264:24:1" | |
} | |
], | |
"functionName": { | |
"name": "eq", | |
"nodeType": "YulIdentifier", | |
"src": "11254:2:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11254:35:1" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "11247:6:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11247:43:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "11244:63:1" | |
} | |
] | |
}, | |
"name": "validator_revert_t_address", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "11227:5:1", | |
"type": "" | |
} | |
], | |
"src": "11191:122:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "11371:87:1", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "11381:29:1", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "11403:6:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "11390:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11390:20:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "11381:5:1" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "11446:5:1" | |
} | |
], | |
"functionName": { | |
"name": "validator_revert_t_address", | |
"nodeType": "YulIdentifier", | |
"src": "11419:26:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11419:33:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "11419:33:1" | |
} | |
] | |
}, | |
"name": "abi_decode_t_address", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "11349:6:1", | |
"type": "" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "11357:3:1", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "11365:5:1", | |
"type": "" | |
} | |
], | |
"src": "11319:139:1" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "11574:689:1", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "11620:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", | |
"nodeType": "YulIdentifier", | |
"src": "11622:77:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11622:79:1" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "11622:79:1" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "11595:7:1" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "11604:9:1" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "11591:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11591:23:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "11616:2:1", | |
"type": "", | |
"value": "96" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "11587:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11587:32:1" | |
}, | |
"nodeType": "YulIf", | |
"src": "11584:119:1" | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "11713:117:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "11728:15:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "11742:1:1", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "11732:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "11757:63:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "11792:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "11803:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "11788:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11788:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "11812:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_address", | |
"nodeType": "YulIdentifier", | |
"src": "11767:20:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11767:53:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "11757:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "11840:118:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "11855:16:1", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "11869:2:1", | |
"type": "", | |
"value": "32" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "11859:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "11885:63:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "11920:9:1" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "11931:6:1" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "11916:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11916:22:1" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "11940:7:1" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_address", | |
"nodeType": "YulIdentifier", | |
"src": "11895:20:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11895:53:1" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "11885:6:1" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "11968:288:1", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "11983:46:1", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "12014:9:1" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "12025:2:1", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "12010:3:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "12010:18:1" | |
} | |
], | |
"functionName": { | |
"name": "calldataload", | |
"nodeType": "YulIdentifier", | |
"src": "11997:12:1" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "11997:32:1" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "11987:6:1", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "12076:83:1", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", | |
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)