Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save newfebriwisnu/3b399679ca731c2a277aa436f209cf66 to your computer and use it in GitHub Desktop.
Save newfebriwisnu/3b399679ca731c2a277aa436f209cf66 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC-721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC-1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.20;
import {IERC721} from "./IERC721.sol";
import {IERC721Metadata} from "./extensions/IERC721Metadata.sol";
import {ERC721Utils} from "./utils/ERC721Utils.sol";
import {Context} from "../../utils/Context.sol";
import {Strings} from "../../utils/Strings.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";
import {IERC721Errors} from "../../interfaces/draft-IERC6093.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC-721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
mapping(uint256 tokenId => address) private _owners;
mapping(address owner => uint256) private _balances;
mapping(uint256 tokenId => address) private _tokenApprovals;
mapping(address owner => mapping(address operator => 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 returns (uint256) {
if (owner == address(0)) {
revert ERC721InvalidOwner(address(0));
}
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual returns (address) {
return _requireOwned(tokenId);
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual returns (string memory) {
_requireOwned(tokenId);
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string.concat(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 {
_approve(to, tokenId, _msgSender());
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual returns (address) {
_requireOwned(tokenId);
return _getApproved(tokenId);
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(address from, address to, uint256 tokenId) public virtual {
if (to == address(0)) {
revert ERC721InvalidReceiver(address(0));
}
// Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists
// (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.
address previousOwner = _update(to, tokenId, _msgSender());
if (previousOwner != from) {
revert ERC721IncorrectOwner(from, tokenId, previousOwner);
}
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) public {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {
transferFrom(from, to, tokenId);
ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data);
}
/**
* @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
*
* IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the
* core ERC-721 logic MUST be matched with the use of {_increaseBalance} to keep balances
* consistent with ownership. The invariant to preserve is 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`.
*/
function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
return _owners[tokenId];
}
/**
* @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.
*/
function _getApproved(uint256 tokenId) internal view virtual returns (address) {
return _tokenApprovals[tokenId];
}
/**
* @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in
* particular (ignoring whether it is owned by `owner`).
*
* WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
* assumption.
*/
function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {
return
spender != address(0) &&
(owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);
}
/**
* @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.
* Reverts if:
* - `spender` does not have approval from `owner` for `tokenId`.
* - `spender` does not have approval to manage all of `owner`'s assets.
*
* WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
* assumption.
*/
function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {
if (!_isAuthorized(owner, spender, tokenId)) {
if (owner == address(0)) {
revert ERC721NonexistentToken(tokenId);
} else {
revert ERC721InsufficientApproval(spender, tokenId);
}
}
}
/**
* @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
*
* NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that
* a uint256 would ever overflow from increments when these increments are bounded to uint128 values.
*
* WARNING: Increasing an account's balance using this function tends to be paired with an override of the
* {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership
* remain consistent with one another.
*/
function _increaseBalance(address account, uint128 value) internal virtual {
unchecked {
_balances[account] += value;
}
}
/**
* @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner
* (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.
*
* The `auth` argument is optional. If the value passed is non 0, then this function will check that
* `auth` is either the owner of the token, or approved to operate on the token (by the owner).
*
* Emits a {Transfer} event.
*
* NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.
*/
function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {
address from = _ownerOf(tokenId);
// Perform (optional) operator check
if (auth != address(0)) {
_checkAuthorized(from, auth, tokenId);
}
// Execute the update
if (from != address(0)) {
// Clear approval. No need to re-authorize or emit the Approval event
_approve(address(0), tokenId, address(0), false);
unchecked {
_balances[from] -= 1;
}
}
if (to != address(0)) {
unchecked {
_balances[to] += 1;
}
}
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
return from;
}
/**
* @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 {
if (to == address(0)) {
revert ERC721InvalidReceiver(address(0));
}
address previousOwner = _update(to, tokenId, address(0));
if (previousOwner != address(0)) {
revert ERC721InvalidSender(address(0));
}
}
/**
* @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance.
*
* 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 {
_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);
ERC721Utils.checkOnERC721Received(_msgSender(), address(0), to, tokenId, data);
}
/**
* @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 {
address previousOwner = _update(address(0), tokenId, address(0));
if (previousOwner == address(0)) {
revert ERC721NonexistentToken(tokenId);
}
}
/**
* @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 {
if (to == address(0)) {
revert ERC721InvalidReceiver(address(0));
}
address previousOwner = _update(to, tokenId, address(0));
if (previousOwner == address(0)) {
revert ERC721NonexistentToken(tokenId);
} else if (previousOwner != from) {
revert ERC721IncorrectOwner(from, tokenId, previousOwner);
}
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients
* are aware of the ERC-721 standard 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 like {safeTransferFrom} in the sense that it invokes
* {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `tokenId` token must exist and be owned by `from`.
* - `to` cannot be the zero address.
* - `from` cannot be the zero address.
* - 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) internal {
_safeTransfer(from, to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {
_transfer(from, to, tokenId);
ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is
* either the owner of the token, or approved to operate on all tokens held by this owner.
*
* Emits an {Approval} event.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address to, uint256 tokenId, address auth) internal {
_approve(to, tokenId, auth, true);
}
/**
* @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not
* emitted in the context of transfers.
*/
function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {
// Avoid reading the owner unless necessary
if (emitEvent || auth != address(0)) {
address owner = _requireOwned(tokenId);
// We do not use _isAuthorized because single-token approvals should not be able to call approve
if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {
revert ERC721InvalidApprover(auth);
}
if (emitEvent) {
emit Approval(owner, to, tokenId);
}
}
_tokenApprovals[tokenId] = to;
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Requirements:
* - operator can't be the address zero.
*
* Emits an {ApprovalForAll} event.
*/
function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
if (operator == address(0)) {
revert ERC721InvalidOperator(operator);
}
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).
* Returns the owner.
*
* Overrides to ownership logic should be done to {_ownerOf}.
*/
function _requireOwned(uint256 tokenId) internal view returns (address) {
address owner = _ownerOf(tokenId);
if (owner == address(0)) {
revert ERC721NonexistentToken(tokenId);
}
return owner;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.20;
import {IERC721} from "../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 v5.0.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC-721 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 ERC-721 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 ERC-721
* 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 address zero.
*
* 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 v5.0.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.20;
/**
* @title ERC-721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC-721 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
pragma solidity ^0.8.20;
import {IERC721Receiver} from "../IERC721Receiver.sol";
import {IERC721Errors} from "../../../interfaces/draft-IERC6093.sol";
/**
* @dev Library that provide common ERC-721 utility functions.
*
* See https://eips.ethereum.org/EIPS/eip-721[ERC-721].
*/
library ERC721Utils {
/**
* @dev Performs an acceptance check for the provided `operator` by calling {IERC721-onERC721Received}
* on the `to` address. The `operator` is generally the address that initiated the token transfer (i.e. `msg.sender`).
*
* The acceptance call is not executed and treated as a no-op if the target address doesn't contain code (i.e. an EOA).
* Otherwise, the recipient must implement {IERC721Receiver-onERC721Received} and return the acceptance magic value to accept
* the transfer.
*/
function checkOnERC721Received(
address operator,
address from,
address to,
uint256 tokenId,
bytes memory data
) internal {
if (to.code.length > 0) {
try IERC721Receiver(to).onERC721Received(operator, from, tokenId, data) returns (bytes4 retval) {
if (retval != IERC721Receiver.onERC721Received.selector) {
// Token rejected
revert IERC721Errors.ERC721InvalidReceiver(to);
}
} catch (bytes memory reason) {
if (reason.length == 0) {
// non-IERC721Receiver implementer
revert IERC721Errors.ERC721InvalidReceiver(to);
} else {
/// @solidity memory-safe-assembly
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC-165 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);
* }
* ```
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* 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[ERC 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 v5.0.0) (utils/math/Math.sol)
pragma solidity ^0.8.20;
import {Panic} from "../Panic.sol";
import {SafeCast} from "./SafeCast.sol";
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Floor, // Toward negative infinity
Ceil, // Toward positive infinity
Trunc, // Toward zero
Expand // Away from zero
}
/**
* @dev Returns the addition of two unsigned integers, with an success flag (no overflow).
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an success flag (no overflow).
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an success flag (no overflow).
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a success flag (no division by zero).
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.
*
* IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.
* However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute
* one branch when needed, making this function more expensive.
*/
function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {
unchecked {
// branchless ternary works because:
// b ^ (a ^ b) == a
// b ^ 0 == b
return b ^ ((a ^ b) * SafeCast.toUint(condition));
}
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return ternary(a > b, a, b);
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return ternary(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 towards infinity instead
* of rounding towards zero.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
if (b == 0) {
// Guarantee the same behavior as in a regular Solidity division.
Panic.panic(Panic.DIVISION_BY_ZERO);
}
// The following calculation ensures accurate ceiling division without overflow.
// Since a is non-zero, (a - 1) / b will not overflow.
// The largest possible result occurs when (a - 1) / b is type(uint256).max,
// but the largest value we can obtain is type(uint256).max - 1, which happens
// when a = type(uint256).max and b = 1.
unchecked {
return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);
}
}
/**
* @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
* denominator == 0.
*
* 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²⁵⁶ and mod 2²⁵⁶ - 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²⁵⁶ + prod0.
uint256 prod0 = x * y; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
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²⁵⁶. Also prevents denominator == 0.
if (denominator <= prod1) {
Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_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.
uint256 twos = denominator & (0 - denominator);
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²⁵⁶ / 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²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such
// that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv ≡ 1 mod 2⁴.
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⁸
inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶
inverse *= 2 - denominator * inverse; // inverse mod 2³²
inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴
inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸
inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶
// 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²⁵⁶. Since the preconditions guarantee that the outcome is
// less than 2²⁵⁶, 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;
}
}
/**
* @dev 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) {
return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);
}
/**
* @dev Calculate the modular multiplicative inverse of a number in Z/nZ.
*
* If n is a prime, then Z/nZ is a field. In that case all elements are inversible, expect 0.
* If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.
*
* If the input value is not inversible, 0 is returned.
*
* NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Ferma's little theorem and get the
* inverse using `Math.modExp(a, n - 2, n)`.
*/
function invMod(uint256 a, uint256 n) internal pure returns (uint256) {
unchecked {
if (n == 0) return 0;
// The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)
// Used to compute integers x and y such that: ax + ny = gcd(a, n).
// When the gcd is 1, then the inverse of a modulo n exists and it's x.
// ax + ny = 1
// ax = 1 + (-y)n
// ax ≡ 1 (mod n) # x is the inverse of a modulo n
// If the remainder is 0 the gcd is n right away.
uint256 remainder = a % n;
uint256 gcd = n;
// Therefore the initial coefficients are:
// ax + ny = gcd(a, n) = n
// 0a + 1n = n
int256 x = 0;
int256 y = 1;
while (remainder != 0) {
uint256 quotient = gcd / remainder;
(gcd, remainder) = (
// The old remainder is the next gcd to try.
remainder,
// Compute the next remainder.
// Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd
// where gcd is at most n (capped to type(uint256).max)
gcd - remainder * quotient
);
(x, y) = (
// Increment the coefficient of a.
y,
// Decrement the coefficient of n.
// Can overflow, but the result is casted to uint256 so that the
// next value of y is "wrapped around" to a value between 0 and n - 1.
x - y * int256(quotient)
);
}
if (gcd != 1) return 0; // No inverse exists.
return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.
}
}
/**
* @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)
*
* Requirements:
* - modulus can't be zero
* - underlying staticcall to precompile must succeed
*
* IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make
* sure the chain you're using it on supports the precompiled contract for modular exponentiation
* at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,
* the underlying function will succeed given the lack of a revert, but the result may be incorrectly
* interpreted as 0.
*/
function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {
(bool success, uint256 result) = tryModExp(b, e, m);
if (!success) {
Panic.panic(Panic.DIVISION_BY_ZERO);
}
return result;
}
/**
* @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).
* It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying
* to operate modulo 0 or if the underlying precompile reverted.
*
* IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain
* you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in
* https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack
* of a revert, but the result may be incorrectly interpreted as 0.
*/
function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {
if (m == 0) return (false, 0);
/// @solidity memory-safe-assembly
assembly {
let ptr := mload(0x40)
// | Offset | Content | Content (Hex) |
// |-----------|------------|--------------------------------------------------------------------|
// | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |
// | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |
// | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |
// | 0x60:0x7f | value of b | 0x<.............................................................b> |
// | 0x80:0x9f | value of e | 0x<.............................................................e> |
// | 0xa0:0xbf | value of m | 0x<.............................................................m> |
mstore(ptr, 0x20)
mstore(add(ptr, 0x20), 0x20)
mstore(add(ptr, 0x40), 0x20)
mstore(add(ptr, 0x60), b)
mstore(add(ptr, 0x80), e)
mstore(add(ptr, 0xa0), m)
// Given the result < m, it's guaranteed to fit in 32 bytes,
// so we can use the memory scratch space located at offset 0.
success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)
result := mload(0x00)
}
}
/**
* @dev Variant of {modExp} that supports inputs of arbitrary length.
*/
function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {
(bool success, bytes memory result) = tryModExp(b, e, m);
if (!success) {
Panic.panic(Panic.DIVISION_BY_ZERO);
}
return result;
}
/**
* @dev Variant of {tryModExp} that supports inputs of arbitrary length.
*/
function tryModExp(
bytes memory b,
bytes memory e,
bytes memory m
) internal view returns (bool success, bytes memory result) {
if (_zeroBytes(m)) return (false, new bytes(0));
uint256 mLen = m.length;
// Encode call args in result and move the free memory pointer
result = abi.encodePacked(b.length, e.length, mLen, b, e, m);
/// @solidity memory-safe-assembly
assembly {
let dataPtr := add(result, 0x20)
// Write result on top of args to avoid allocating extra memory.
success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)
// Overwrite the length.
// result.length > returndatasize() is guaranteed because returndatasize() == m.length
mstore(result, mLen)
// Set the memory pointer after the returned data.
mstore(0x40, add(dataPtr, mLen))
}
}
/**
* @dev Returns whether the provided byte array is zero.
*/
function _zeroBytes(bytes memory byteArray) private pure returns (bool) {
for (uint256 i = 0; i < byteArray.length; ++i) {
if (byteArray[i] != 0) {
return false;
}
}
return true;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
* towards zero.
*
* This method is based on Newton's method for computing square roots; the algorithm is restricted to only
* using integer operations.
*/
function sqrt(uint256 a) internal pure returns (uint256) {
unchecked {
// Take care of easy edge cases when a == 0 or a == 1
if (a <= 1) {
return a;
}
// In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a
// sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between
// the current value as `ε_n = | x_n - sqrt(a) |`.
//
// For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root
// of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is
// bigger than any uint256.
//
// By noticing that
// `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`
// we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar
// to the msb function.
uint256 aa = a;
uint256 xn = 1;
if (aa >= (1 << 128)) {
aa >>= 128;
xn <<= 64;
}
if (aa >= (1 << 64)) {
aa >>= 64;
xn <<= 32;
}
if (aa >= (1 << 32)) {
aa >>= 32;
xn <<= 16;
}
if (aa >= (1 << 16)) {
aa >>= 16;
xn <<= 8;
}
if (aa >= (1 << 8)) {
aa >>= 8;
xn <<= 4;
}
if (aa >= (1 << 4)) {
aa >>= 4;
xn <<= 2;
}
if (aa >= (1 << 2)) {
xn <<= 1;
}
// We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).
//
// We can refine our estimation by noticing that the middle of that interval minimizes the error.
// If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).
// This is going to be our x_0 (and ε_0)
xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)
// From here, Newton's method give us:
// x_{n+1} = (x_n + a / x_n) / 2
//
// One should note that:
// x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a
// = ((x_n² + a) / (2 * x_n))² - a
// = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a
// = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)
// = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)
// = (x_n² - a)² / (2 * x_n)²
// = ((x_n² - a) / (2 * x_n))²
// ≥ 0
// Which proves that for all n ≥ 1, sqrt(a) ≤ x_n
//
// This gives us the proof of quadratic convergence of the sequence:
// ε_{n+1} = | x_{n+1} - sqrt(a) |
// = | (x_n + a / x_n) / 2 - sqrt(a) |
// = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |
// = | (x_n - sqrt(a))² / (2 * x_n) |
// = | ε_n² / (2 * x_n) |
// = ε_n² / | (2 * x_n) |
//
// For the first iteration, we have a special case where x_0 is known:
// ε_1 = ε_0² / | (2 * x_0) |
// ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))
// ≤ 2**(2*e-4) / (3 * 2**(e-1))
// ≤ 2**(e-3) / 3
// ≤ 2**(e-3-log2(3))
// ≤ 2**(e-4.5)
//
// For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:
// ε_{n+1} = ε_n² / | (2 * x_n) |
// ≤ (2**(e-k))² / (2 * 2**(e-1))
// ≤ 2**(2*e-2*k) / 2**e
// ≤ 2**(e-2*k)
xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above
xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5
xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9
xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18
xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36
xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72
// Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision
// ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either
// sqrt(a) or sqrt(a) + 1.
return xn - SafeCast.toUint(xn > a / xn);
}
}
/**
* @dev 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 + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);
}
}
/**
* @dev Return the log in base 2 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
uint256 exp;
unchecked {
exp = 128 * SafeCast.toUint(value > (1 << 128) - 1);
value >>= exp;
result += exp;
exp = 64 * SafeCast.toUint(value > (1 << 64) - 1);
value >>= exp;
result += exp;
exp = 32 * SafeCast.toUint(value > (1 << 32) - 1);
value >>= exp;
result += exp;
exp = 16 * SafeCast.toUint(value > (1 << 16) - 1);
value >>= exp;
result += exp;
exp = 8 * SafeCast.toUint(value > (1 << 8) - 1);
value >>= exp;
result += exp;
exp = 4 * SafeCast.toUint(value > (1 << 4) - 1);
value >>= exp;
result += exp;
exp = 2 * SafeCast.toUint(value > (1 << 2) - 1);
value >>= exp;
result += exp;
result += SafeCast.toUint(value > 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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);
}
}
/**
* @dev Return the log in base 10 of a positive value rounded towards zero.
* 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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);
}
}
/**
* @dev Return the log in base 256 of a positive value rounded towards zero.
* 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;
uint256 isGt;
unchecked {
isGt = SafeCast.toUint(value > (1 << 128) - 1);
value >>= isGt * 128;
result += isGt * 16;
isGt = SafeCast.toUint(value > (1 << 64) - 1);
value >>= isGt * 64;
result += isGt * 8;
isGt = SafeCast.toUint(value > (1 << 32) - 1);
value >>= isGt * 32;
result += isGt * 4;
isGt = SafeCast.toUint(value > (1 << 16) - 1);
value >>= isGt * 16;
result += isGt * 2;
result += SafeCast.toUint(value > (1 << 8) - 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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);
}
}
/**
* @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
*/
function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
return uint8(rounding) % 2 == 1;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol)
// This file was procedurally generated from scripts/generate/templates/SafeCast.js.
pragma solidity ^0.8.20;
/**
* @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow
* checks.
*
* Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
* easily result in undesired exploitation or bugs, since developers usually
* assume that overflows raise errors. `SafeCast` restores this intuition by
* reverting the transaction when such an operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeCast {
/**
* @dev Value doesn't fit in an uint of `bits` size.
*/
error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);
/**
* @dev An int value doesn't fit in an uint of `bits` size.
*/
error SafeCastOverflowedIntToUint(int256 value);
/**
* @dev Value doesn't fit in an int of `bits` size.
*/
error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);
/**
* @dev An uint value doesn't fit in an int of `bits` size.
*/
error SafeCastOverflowedUintToInt(uint256 value);
/**
* @dev Returns the downcasted uint248 from uint256, reverting on
* overflow (when the input is greater than largest uint248).
*
* Counterpart to Solidity's `uint248` operator.
*
* Requirements:
*
* - input must fit into 248 bits
*/
function toUint248(uint256 value) internal pure returns (uint248) {
if (value > type(uint248).max) {
revert SafeCastOverflowedUintDowncast(248, value);
}
return uint248(value);
}
/**
* @dev Returns the downcasted uint240 from uint256, reverting on
* overflow (when the input is greater than largest uint240).
*
* Counterpart to Solidity's `uint240` operator.
*
* Requirements:
*
* - input must fit into 240 bits
*/
function toUint240(uint256 value) internal pure returns (uint240) {
if (value > type(uint240).max) {
revert SafeCastOverflowedUintDowncast(240, value);
}
return uint240(value);
}
/**
* @dev Returns the downcasted uint232 from uint256, reverting on
* overflow (when the input is greater than largest uint232).
*
* Counterpart to Solidity's `uint232` operator.
*
* Requirements:
*
* - input must fit into 232 bits
*/
function toUint232(uint256 value) internal pure returns (uint232) {
if (value > type(uint232).max) {
revert SafeCastOverflowedUintDowncast(232, value);
}
return uint232(value);
}
/**
* @dev Returns the downcasted uint224 from uint256, reverting on
* overflow (when the input is greater than largest uint224).
*
* Counterpart to Solidity's `uint224` operator.
*
* Requirements:
*
* - input must fit into 224 bits
*/
function toUint224(uint256 value) internal pure returns (uint224) {
if (value > type(uint224).max) {
revert SafeCastOverflowedUintDowncast(224, value);
}
return uint224(value);
}
/**
* @dev Returns the downcasted uint216 from uint256, reverting on
* overflow (when the input is greater than largest uint216).
*
* Counterpart to Solidity's `uint216` operator.
*
* Requirements:
*
* - input must fit into 216 bits
*/
function toUint216(uint256 value) internal pure returns (uint216) {
if (value > type(uint216).max) {
revert SafeCastOverflowedUintDowncast(216, value);
}
return uint216(value);
}
/**
* @dev Returns the downcasted uint208 from uint256, reverting on
* overflow (when the input is greater than largest uint208).
*
* Counterpart to Solidity's `uint208` operator.
*
* Requirements:
*
* - input must fit into 208 bits
*/
function toUint208(uint256 value) internal pure returns (uint208) {
if (value > type(uint208).max) {
revert SafeCastOverflowedUintDowncast(208, value);
}
return uint208(value);
}
/**
* @dev Returns the downcasted uint200 from uint256, reverting on
* overflow (when the input is greater than largest uint200).
*
* Counterpart to Solidity's `uint200` operator.
*
* Requirements:
*
* - input must fit into 200 bits
*/
function toUint200(uint256 value) internal pure returns (uint200) {
if (value > type(uint200).max) {
revert SafeCastOverflowedUintDowncast(200, value);
}
return uint200(value);
}
/**
* @dev Returns the downcasted uint192 from uint256, reverting on
* overflow (when the input is greater than largest uint192).
*
* Counterpart to Solidity's `uint192` operator.
*
* Requirements:
*
* - input must fit into 192 bits
*/
function toUint192(uint256 value) internal pure returns (uint192) {
if (value > type(uint192).max) {
revert SafeCastOverflowedUintDowncast(192, value);
}
return uint192(value);
}
/**
* @dev Returns the downcasted uint184 from uint256, reverting on
* overflow (when the input is greater than largest uint184).
*
* Counterpart to Solidity's `uint184` operator.
*
* Requirements:
*
* - input must fit into 184 bits
*/
function toUint184(uint256 value) internal pure returns (uint184) {
if (value > type(uint184).max) {
revert SafeCastOverflowedUintDowncast(184, value);
}
return uint184(value);
}
/**
* @dev Returns the downcasted uint176 from uint256, reverting on
* overflow (when the input is greater than largest uint176).
*
* Counterpart to Solidity's `uint176` operator.
*
* Requirements:
*
* - input must fit into 176 bits
*/
function toUint176(uint256 value) internal pure returns (uint176) {
if (value > type(uint176).max) {
revert SafeCastOverflowedUintDowncast(176, value);
}
return uint176(value);
}
/**
* @dev Returns the downcasted uint168 from uint256, reverting on
* overflow (when the input is greater than largest uint168).
*
* Counterpart to Solidity's `uint168` operator.
*
* Requirements:
*
* - input must fit into 168 bits
*/
function toUint168(uint256 value) internal pure returns (uint168) {
if (value > type(uint168).max) {
revert SafeCastOverflowedUintDowncast(168, value);
}
return uint168(value);
}
/**
* @dev Returns the downcasted uint160 from uint256, reverting on
* overflow (when the input is greater than largest uint160).
*
* Counterpart to Solidity's `uint160` operator.
*
* Requirements:
*
* - input must fit into 160 bits
*/
function toUint160(uint256 value) internal pure returns (uint160) {
if (value > type(uint160).max) {
revert SafeCastOverflowedUintDowncast(160, value);
}
return uint160(value);
}
/**
* @dev Returns the downcasted uint152 from uint256, reverting on
* overflow (when the input is greater than largest uint152).
*
* Counterpart to Solidity's `uint152` operator.
*
* Requirements:
*
* - input must fit into 152 bits
*/
function toUint152(uint256 value) internal pure returns (uint152) {
if (value > type(uint152).max) {
revert SafeCastOverflowedUintDowncast(152, value);
}
return uint152(value);
}
/**
* @dev Returns the downcasted uint144 from uint256, reverting on
* overflow (when the input is greater than largest uint144).
*
* Counterpart to Solidity's `uint144` operator.
*
* Requirements:
*
* - input must fit into 144 bits
*/
function toUint144(uint256 value) internal pure returns (uint144) {
if (value > type(uint144).max) {
revert SafeCastOverflowedUintDowncast(144, value);
}
return uint144(value);
}
/**
* @dev Returns the downcasted uint136 from uint256, reverting on
* overflow (when the input is greater than largest uint136).
*
* Counterpart to Solidity's `uint136` operator.
*
* Requirements:
*
* - input must fit into 136 bits
*/
function toUint136(uint256 value) internal pure returns (uint136) {
if (value > type(uint136).max) {
revert SafeCastOverflowedUintDowncast(136, value);
}
return uint136(value);
}
/**
* @dev Returns the downcasted uint128 from uint256, reverting on
* overflow (when the input is greater than largest uint128).
*
* Counterpart to Solidity's `uint128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*/
function toUint128(uint256 value) internal pure returns (uint128) {
if (value > type(uint128).max) {
revert SafeCastOverflowedUintDowncast(128, value);
}
return uint128(value);
}
/**
* @dev Returns the downcasted uint120 from uint256, reverting on
* overflow (when the input is greater than largest uint120).
*
* Counterpart to Solidity's `uint120` operator.
*
* Requirements:
*
* - input must fit into 120 bits
*/
function toUint120(uint256 value) internal pure returns (uint120) {
if (value > type(uint120).max) {
revert SafeCastOverflowedUintDowncast(120, value);
}
return uint120(value);
}
/**
* @dev Returns the downcasted uint112 from uint256, reverting on
* overflow (when the input is greater than largest uint112).
*
* Counterpart to Solidity's `uint112` operator.
*
* Requirements:
*
* - input must fit into 112 bits
*/
function toUint112(uint256 value) internal pure returns (uint112) {
if (value > type(uint112).max) {
revert SafeCastOverflowedUintDowncast(112, value);
}
return uint112(value);
}
/**
* @dev Returns the downcasted uint104 from uint256, reverting on
* overflow (when the input is greater than largest uint104).
*
* Counterpart to Solidity's `uint104` operator.
*
* Requirements:
*
* - input must fit into 104 bits
*/
function toUint104(uint256 value) internal pure returns (uint104) {
if (value > type(uint104).max) {
revert SafeCastOverflowedUintDowncast(104, value);
}
return uint104(value);
}
/**
* @dev Returns the downcasted uint96 from uint256, reverting on
* overflow (when the input is greater than largest uint96).
*
* Counterpart to Solidity's `uint96` operator.
*
* Requirements:
*
* - input must fit into 96 bits
*/
function toUint96(uint256 value) internal pure returns (uint96) {
if (value > type(uint96).max) {
revert SafeCastOverflowedUintDowncast(96, value);
}
return uint96(value);
}
/**
* @dev Returns the downcasted uint88 from uint256, reverting on
* overflow (when the input is greater than largest uint88).
*
* Counterpart to Solidity's `uint88` operator.
*
* Requirements:
*
* - input must fit into 88 bits
*/
function toUint88(uint256 value) internal pure returns (uint88) {
if (value > type(uint88).max) {
revert SafeCastOverflowedUintDowncast(88, value);
}
return uint88(value);
}
/**
* @dev Returns the downcasted uint80 from uint256, reverting on
* overflow (when the input is greater than largest uint80).
*
* Counterpart to Solidity's `uint80` operator.
*
* Requirements:
*
* - input must fit into 80 bits
*/
function toUint80(uint256 value) internal pure returns (uint80) {
if (value > type(uint80).max) {
revert SafeCastOverflowedUintDowncast(80, value);
}
return uint80(value);
}
/**
* @dev Returns the downcasted uint72 from uint256, reverting on
* overflow (when the input is greater than largest uint72).
*
* Counterpart to Solidity's `uint72` operator.
*
* Requirements:
*
* - input must fit into 72 bits
*/
function toUint72(uint256 value) internal pure returns (uint72) {
if (value > type(uint72).max) {
revert SafeCastOverflowedUintDowncast(72, value);
}
return uint72(value);
}
/**
* @dev Returns the downcasted uint64 from uint256, reverting on
* overflow (when the input is greater than largest uint64).
*
* Counterpart to Solidity's `uint64` operator.
*
* Requirements:
*
* - input must fit into 64 bits
*/
function toUint64(uint256 value) internal pure returns (uint64) {
if (value > type(uint64).max) {
revert SafeCastOverflowedUintDowncast(64, value);
}
return uint64(value);
}
/**
* @dev Returns the downcasted uint56 from uint256, reverting on
* overflow (when the input is greater than largest uint56).
*
* Counterpart to Solidity's `uint56` operator.
*
* Requirements:
*
* - input must fit into 56 bits
*/
function toUint56(uint256 value) internal pure returns (uint56) {
if (value > type(uint56).max) {
revert SafeCastOverflowedUintDowncast(56, value);
}
return uint56(value);
}
/**
* @dev Returns the downcasted uint48 from uint256, reverting on
* overflow (when the input is greater than largest uint48).
*
* Counterpart to Solidity's `uint48` operator.
*
* Requirements:
*
* - input must fit into 48 bits
*/
function toUint48(uint256 value) internal pure returns (uint48) {
if (value > type(uint48).max) {
revert SafeCastOverflowedUintDowncast(48, value);
}
return uint48(value);
}
/**
* @dev Returns the downcasted uint40 from uint256, reverting on
* overflow (when the input is greater than largest uint40).
*
* Counterpart to Solidity's `uint40` operator.
*
* Requirements:
*
* - input must fit into 40 bits
*/
function toUint40(uint256 value) internal pure returns (uint40) {
if (value > type(uint40).max) {
revert SafeCastOverflowedUintDowncast(40, value);
}
return uint40(value);
}
/**
* @dev Returns the downcasted uint32 from uint256, reverting on
* overflow (when the input is greater than largest uint32).
*
* Counterpart to Solidity's `uint32` operator.
*
* Requirements:
*
* - input must fit into 32 bits
*/
function toUint32(uint256 value) internal pure returns (uint32) {
if (value > type(uint32).max) {
revert SafeCastOverflowedUintDowncast(32, value);
}
return uint32(value);
}
/**
* @dev Returns the downcasted uint24 from uint256, reverting on
* overflow (when the input is greater than largest uint24).
*
* Counterpart to Solidity's `uint24` operator.
*
* Requirements:
*
* - input must fit into 24 bits
*/
function toUint24(uint256 value) internal pure returns (uint24) {
if (value > type(uint24).max) {
revert SafeCastOverflowedUintDowncast(24, value);
}
return uint24(value);
}
/**
* @dev Returns the downcasted uint16 from uint256, reverting on
* overflow (when the input is greater than largest uint16).
*
* Counterpart to Solidity's `uint16` operator.
*
* Requirements:
*
* - input must fit into 16 bits
*/
function toUint16(uint256 value) internal pure returns (uint16) {
if (value > type(uint16).max) {
revert SafeCastOverflowedUintDowncast(16, value);
}
return uint16(value);
}
/**
* @dev Returns the downcasted uint8 from uint256, reverting on
* overflow (when the input is greater than largest uint8).
*
* Counterpart to Solidity's `uint8` operator.
*
* Requirements:
*
* - input must fit into 8 bits
*/
function toUint8(uint256 value) internal pure returns (uint8) {
if (value > type(uint8).max) {
revert SafeCastOverflowedUintDowncast(8, value);
}
return uint8(value);
}
/**
* @dev Converts a signed int256 into an unsigned uint256.
*
* Requirements:
*
* - input must be greater than or equal to 0.
*/
function toUint256(int256 value) internal pure returns (uint256) {
if (value < 0) {
revert SafeCastOverflowedIntToUint(value);
}
return uint256(value);
}
/**
* @dev Returns the downcasted int248 from int256, reverting on
* overflow (when the input is less than smallest int248 or
* greater than largest int248).
*
* Counterpart to Solidity's `int248` operator.
*
* Requirements:
*
* - input must fit into 248 bits
*/
function toInt248(int256 value) internal pure returns (int248 downcasted) {
downcasted = int248(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(248, value);
}
}
/**
* @dev Returns the downcasted int240 from int256, reverting on
* overflow (when the input is less than smallest int240 or
* greater than largest int240).
*
* Counterpart to Solidity's `int240` operator.
*
* Requirements:
*
* - input must fit into 240 bits
*/
function toInt240(int256 value) internal pure returns (int240 downcasted) {
downcasted = int240(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(240, value);
}
}
/**
* @dev Returns the downcasted int232 from int256, reverting on
* overflow (when the input is less than smallest int232 or
* greater than largest int232).
*
* Counterpart to Solidity's `int232` operator.
*
* Requirements:
*
* - input must fit into 232 bits
*/
function toInt232(int256 value) internal pure returns (int232 downcasted) {
downcasted = int232(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(232, value);
}
}
/**
* @dev Returns the downcasted int224 from int256, reverting on
* overflow (when the input is less than smallest int224 or
* greater than largest int224).
*
* Counterpart to Solidity's `int224` operator.
*
* Requirements:
*
* - input must fit into 224 bits
*/
function toInt224(int256 value) internal pure returns (int224 downcasted) {
downcasted = int224(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(224, value);
}
}
/**
* @dev Returns the downcasted int216 from int256, reverting on
* overflow (when the input is less than smallest int216 or
* greater than largest int216).
*
* Counterpart to Solidity's `int216` operator.
*
* Requirements:
*
* - input must fit into 216 bits
*/
function toInt216(int256 value) internal pure returns (int216 downcasted) {
downcasted = int216(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(216, value);
}
}
/**
* @dev Returns the downcasted int208 from int256, reverting on
* overflow (when the input is less than smallest int208 or
* greater than largest int208).
*
* Counterpart to Solidity's `int208` operator.
*
* Requirements:
*
* - input must fit into 208 bits
*/
function toInt208(int256 value) internal pure returns (int208 downcasted) {
downcasted = int208(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(208, value);
}
}
/**
* @dev Returns the downcasted int200 from int256, reverting on
* overflow (when the input is less than smallest int200 or
* greater than largest int200).
*
* Counterpart to Solidity's `int200` operator.
*
* Requirements:
*
* - input must fit into 200 bits
*/
function toInt200(int256 value) internal pure returns (int200 downcasted) {
downcasted = int200(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(200, value);
}
}
/**
* @dev Returns the downcasted int192 from int256, reverting on
* overflow (when the input is less than smallest int192 or
* greater than largest int192).
*
* Counterpart to Solidity's `int192` operator.
*
* Requirements:
*
* - input must fit into 192 bits
*/
function toInt192(int256 value) internal pure returns (int192 downcasted) {
downcasted = int192(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(192, value);
}
}
/**
* @dev Returns the downcasted int184 from int256, reverting on
* overflow (when the input is less than smallest int184 or
* greater than largest int184).
*
* Counterpart to Solidity's `int184` operator.
*
* Requirements:
*
* - input must fit into 184 bits
*/
function toInt184(int256 value) internal pure returns (int184 downcasted) {
downcasted = int184(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(184, value);
}
}
/**
* @dev Returns the downcasted int176 from int256, reverting on
* overflow (when the input is less than smallest int176 or
* greater than largest int176).
*
* Counterpart to Solidity's `int176` operator.
*
* Requirements:
*
* - input must fit into 176 bits
*/
function toInt176(int256 value) internal pure returns (int176 downcasted) {
downcasted = int176(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(176, value);
}
}
/**
* @dev Returns the downcasted int168 from int256, reverting on
* overflow (when the input is less than smallest int168 or
* greater than largest int168).
*
* Counterpart to Solidity's `int168` operator.
*
* Requirements:
*
* - input must fit into 168 bits
*/
function toInt168(int256 value) internal pure returns (int168 downcasted) {
downcasted = int168(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(168, value);
}
}
/**
* @dev Returns the downcasted int160 from int256, reverting on
* overflow (when the input is less than smallest int160 or
* greater than largest int160).
*
* Counterpart to Solidity's `int160` operator.
*
* Requirements:
*
* - input must fit into 160 bits
*/
function toInt160(int256 value) internal pure returns (int160 downcasted) {
downcasted = int160(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(160, value);
}
}
/**
* @dev Returns the downcasted int152 from int256, reverting on
* overflow (when the input is less than smallest int152 or
* greater than largest int152).
*
* Counterpart to Solidity's `int152` operator.
*
* Requirements:
*
* - input must fit into 152 bits
*/
function toInt152(int256 value) internal pure returns (int152 downcasted) {
downcasted = int152(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(152, value);
}
}
/**
* @dev Returns the downcasted int144 from int256, reverting on
* overflow (when the input is less than smallest int144 or
* greater than largest int144).
*
* Counterpart to Solidity's `int144` operator.
*
* Requirements:
*
* - input must fit into 144 bits
*/
function toInt144(int256 value) internal pure returns (int144 downcasted) {
downcasted = int144(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(144, value);
}
}
/**
* @dev Returns the downcasted int136 from int256, reverting on
* overflow (when the input is less than smallest int136 or
* greater than largest int136).
*
* Counterpart to Solidity's `int136` operator.
*
* Requirements:
*
* - input must fit into 136 bits
*/
function toInt136(int256 value) internal pure returns (int136 downcasted) {
downcasted = int136(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(136, value);
}
}
/**
* @dev Returns the downcasted int128 from int256, reverting on
* overflow (when the input is less than smallest int128 or
* greater than largest int128).
*
* Counterpart to Solidity's `int128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*/
function toInt128(int256 value) internal pure returns (int128 downcasted) {
downcasted = int128(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(128, value);
}
}
/**
* @dev Returns the downcasted int120 from int256, reverting on
* overflow (when the input is less than smallest int120 or
* greater than largest int120).
*
* Counterpart to Solidity's `int120` operator.
*
* Requirements:
*
* - input must fit into 120 bits
*/
function toInt120(int256 value) internal pure returns (int120 downcasted) {
downcasted = int120(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(120, value);
}
}
/**
* @dev Returns the downcasted int112 from int256, reverting on
* overflow (when the input is less than smallest int112 or
* greater than largest int112).
*
* Counterpart to Solidity's `int112` operator.
*
* Requirements:
*
* - input must fit into 112 bits
*/
function toInt112(int256 value) internal pure returns (int112 downcasted) {
downcasted = int112(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(112, value);
}
}
/**
* @dev Returns the downcasted int104 from int256, reverting on
* overflow (when the input is less than smallest int104 or
* greater than largest int104).
*
* Counterpart to Solidity's `int104` operator.
*
* Requirements:
*
* - input must fit into 104 bits
*/
function toInt104(int256 value) internal pure returns (int104 downcasted) {
downcasted = int104(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(104, value);
}
}
/**
* @dev Returns the downcasted int96 from int256, reverting on
* overflow (when the input is less than smallest int96 or
* greater than largest int96).
*
* Counterpart to Solidity's `int96` operator.
*
* Requirements:
*
* - input must fit into 96 bits
*/
function toInt96(int256 value) internal pure returns (int96 downcasted) {
downcasted = int96(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(96, value);
}
}
/**
* @dev Returns the downcasted int88 from int256, reverting on
* overflow (when the input is less than smallest int88 or
* greater than largest int88).
*
* Counterpart to Solidity's `int88` operator.
*
* Requirements:
*
* - input must fit into 88 bits
*/
function toInt88(int256 value) internal pure returns (int88 downcasted) {
downcasted = int88(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(88, value);
}
}
/**
* @dev Returns the downcasted int80 from int256, reverting on
* overflow (when the input is less than smallest int80 or
* greater than largest int80).
*
* Counterpart to Solidity's `int80` operator.
*
* Requirements:
*
* - input must fit into 80 bits
*/
function toInt80(int256 value) internal pure returns (int80 downcasted) {
downcasted = int80(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(80, value);
}
}
/**
* @dev Returns the downcasted int72 from int256, reverting on
* overflow (when the input is less than smallest int72 or
* greater than largest int72).
*
* Counterpart to Solidity's `int72` operator.
*
* Requirements:
*
* - input must fit into 72 bits
*/
function toInt72(int256 value) internal pure returns (int72 downcasted) {
downcasted = int72(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(72, value);
}
}
/**
* @dev Returns the downcasted int64 from int256, reverting on
* overflow (when the input is less than smallest int64 or
* greater than largest int64).
*
* Counterpart to Solidity's `int64` operator.
*
* Requirements:
*
* - input must fit into 64 bits
*/
function toInt64(int256 value) internal pure returns (int64 downcasted) {
downcasted = int64(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(64, value);
}
}
/**
* @dev Returns the downcasted int56 from int256, reverting on
* overflow (when the input is less than smallest int56 or
* greater than largest int56).
*
* Counterpart to Solidity's `int56` operator.
*
* Requirements:
*
* - input must fit into 56 bits
*/
function toInt56(int256 value) internal pure returns (int56 downcasted) {
downcasted = int56(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(56, value);
}
}
/**
* @dev Returns the downcasted int48 from int256, reverting on
* overflow (when the input is less than smallest int48 or
* greater than largest int48).
*
* Counterpart to Solidity's `int48` operator.
*
* Requirements:
*
* - input must fit into 48 bits
*/
function toInt48(int256 value) internal pure returns (int48 downcasted) {
downcasted = int48(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(48, value);
}
}
/**
* @dev Returns the downcasted int40 from int256, reverting on
* overflow (when the input is less than smallest int40 or
* greater than largest int40).
*
* Counterpart to Solidity's `int40` operator.
*
* Requirements:
*
* - input must fit into 40 bits
*/
function toInt40(int256 value) internal pure returns (int40 downcasted) {
downcasted = int40(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(40, value);
}
}
/**
* @dev Returns the downcasted int32 from int256, reverting on
* overflow (when the input is less than smallest int32 or
* greater than largest int32).
*
* Counterpart to Solidity's `int32` operator.
*
* Requirements:
*
* - input must fit into 32 bits
*/
function toInt32(int256 value) internal pure returns (int32 downcasted) {
downcasted = int32(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(32, value);
}
}
/**
* @dev Returns the downcasted int24 from int256, reverting on
* overflow (when the input is less than smallest int24 or
* greater than largest int24).
*
* Counterpart to Solidity's `int24` operator.
*
* Requirements:
*
* - input must fit into 24 bits
*/
function toInt24(int256 value) internal pure returns (int24 downcasted) {
downcasted = int24(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(24, value);
}
}
/**
* @dev Returns the downcasted int16 from int256, reverting on
* overflow (when the input is less than smallest int16 or
* greater than largest int16).
*
* Counterpart to Solidity's `int16` operator.
*
* Requirements:
*
* - input must fit into 16 bits
*/
function toInt16(int256 value) internal pure returns (int16 downcasted) {
downcasted = int16(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(16, value);
}
}
/**
* @dev Returns the downcasted int8 from int256, reverting on
* overflow (when the input is less than smallest int8 or
* greater than largest int8).
*
* Counterpart to Solidity's `int8` operator.
*
* Requirements:
*
* - input must fit into 8 bits
*/
function toInt8(int256 value) internal pure returns (int8 downcasted) {
downcasted = int8(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(8, value);
}
}
/**
* @dev Converts an unsigned uint256 into a signed int256.
*
* Requirements:
*
* - input must be less than or equal to maxInt256.
*/
function toInt256(uint256 value) internal pure returns (int256) {
// Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
if (value > uint256(type(int256).max)) {
revert SafeCastOverflowedUintToInt(value);
}
return int256(value);
}
/**
* @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.
*/
function toUint(bool b) internal pure returns (uint256 u) {
/// @solidity memory-safe-assembly
assembly {
u := iszero(iszero(b))
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)
pragma solidity ^0.8.20;
import {SafeCast} from "./SafeCast.sol";
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.
*
* IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.
* However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute
* one branch when needed, making this function more expensive.
*/
function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {
unchecked {
// branchless ternary works because:
// b ^ (a ^ b) == a
// b ^ 0 == b
return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));
}
}
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return ternary(a > b, a, b);
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return ternary(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 {
// Formula from the "Bit Twiddling Hacks" by Sean Eron Anderson.
// Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,
// taking advantage of the most significant (or "sign" bit) in two's complement representation.
// This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,
// the mask will either be `bytes(0)` (if n is positive) or `~bytes32(0)` (if n is negative).
int256 mask = n >> 255;
// A `bytes(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.
return uint256((n + mask) ^ mask);
}
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/**
* @dev Helper library for emitting standardized panic codes.
*
* ```solidity
* contract Example {
* using Panic for uint256;
*
* // Use any of the declared internal constants
* function foo() { Panic.GENERIC.panic(); }
*
* // Alternatively
* function foo() { Panic.panic(Panic.GENERIC); }
* }
* ```
*
* Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].
*/
// slither-disable-next-line unused-state
library Panic {
/// @dev generic / unspecified error
uint256 internal constant GENERIC = 0x00;
/// @dev used by the assert() builtin
uint256 internal constant ASSERT = 0x01;
/// @dev arithmetic underflow or overflow
uint256 internal constant UNDER_OVERFLOW = 0x11;
/// @dev division or modulo by zero
uint256 internal constant DIVISION_BY_ZERO = 0x12;
/// @dev enum conversion error
uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;
/// @dev invalid encoding in storage
uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;
/// @dev empty array pop
uint256 internal constant EMPTY_ARRAY_POP = 0x31;
/// @dev array out of bounds access
uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;
/// @dev resource error (too large allocation or too large array)
uint256 internal constant RESOURCE_ERROR = 0x41;
/// @dev calling invalid internal function
uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;
/// @dev Reverts with a panic code. Recommended to use with
/// the internal constants with predefined codes.
function panic(uint256 code) internal pure {
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, 0x4e487b71)
mstore(0x20, code)
revert(0x1c, 0x24)
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)
pragma solidity ^0.8.20;
import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant HEX_DIGITS = "0123456789abcdef";
uint8 private constant ADDRESS_LENGTH = 20;
/**
* @dev The `value` string doesn't fit in the specified `length`.
*/
error StringsInsufficientHexLength(uint256 value, uint256 length);
/**
* @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), HEX_DIGITS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `int256` to its ASCII `string` decimal representation.
*/
function toStringSigned(int256 value) internal pure returns (string memory) {
return string.concat(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) {
uint256 localValue = value;
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = HEX_DIGITS[localValue & 0xf];
localValue >>= 4;
}
if (localValue != 0) {
revert StringsInsufficientHexLength(value, length);
}
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 Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal
* representation, according to EIP-55.
*/
function toChecksumHexString(address addr) internal pure returns (string memory) {
bytes memory buffer = bytes(toHexString(addr));
// hash the hex part of buffer (skip length + 2 bytes, length 40)
uint256 hashValue;
assembly ("memory-safe") {
hashValue := shr(96, keccak256(add(buffer, 0x22), 40))
}
for (uint256 i = 41; i > 1; --i) {
// possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)
if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {
// case shift by xoring with 0x20
buffer[i] ^= 0x20;
}
hashValue >>= 4;
}
return string(buffer);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
* ```
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.20;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```solidity
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position is the index of the value in the `values` array plus 1.
// Position 0 is used to mean a value is not in the set.
mapping(bytes32 value => uint256) _positions;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._positions[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We cache the value's position to prevent multiple reads from the same storage slot
uint256 position = set._positions[value];
if (position != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 valueIndex = position - 1;
uint256 lastIndex = set._values.length - 1;
if (valueIndex != lastIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the lastValue to the index where the value to delete is
set._values[valueIndex] = lastValue;
// Update the tracked position of the lastValue (that was just moved)
set._positions[lastValue] = position;
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the tracked position for the deleted slot
delete set._positions[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._positions[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
library console {
address constant CONSOLE_ADDRESS =
0x000000000000000000636F6e736F6c652e6c6f67;
function _sendLogPayloadImplementation(bytes memory payload) internal view {
address consoleAddress = CONSOLE_ADDRESS;
/// @solidity memory-safe-assembly
assembly {
pop(
staticcall(
gas(),
consoleAddress,
add(payload, 32),
mload(payload),
0,
0
)
)
}
}
function _castToPure(
function(bytes memory) internal view fnIn
) internal pure returns (function(bytes memory) pure fnOut) {
assembly {
fnOut := fnIn
}
}
function _sendLogPayload(bytes memory payload) internal pure {
_castToPure(_sendLogPayloadImplementation)(payload);
}
function log() internal pure {
_sendLogPayload(abi.encodeWithSignature("log()"));
}
function logInt(int256 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(int256)", p0));
}
function logUint(uint256 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256)", p0));
}
function logString(string memory p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
}
function logBool(bool p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
}
function logAddress(address p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
}
function logBytes(bytes memory p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
}
function logBytes1(bytes1 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
}
function logBytes2(bytes2 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
}
function logBytes3(bytes3 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
}
function logBytes4(bytes4 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
}
function logBytes5(bytes5 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
}
function logBytes6(bytes6 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
}
function logBytes7(bytes7 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
}
function logBytes8(bytes8 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
}
function logBytes9(bytes9 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
}
function logBytes10(bytes10 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
}
function logBytes11(bytes11 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
}
function logBytes12(bytes12 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
}
function logBytes13(bytes13 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
}
function logBytes14(bytes14 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
}
function logBytes15(bytes15 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
}
function logBytes16(bytes16 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
}
function logBytes17(bytes17 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
}
function logBytes18(bytes18 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
}
function logBytes19(bytes19 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
}
function logBytes20(bytes20 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
}
function logBytes21(bytes21 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
}
function logBytes22(bytes22 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
}
function logBytes23(bytes23 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
}
function logBytes24(bytes24 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
}
function logBytes25(bytes25 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
}
function logBytes26(bytes26 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
}
function logBytes27(bytes27 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
}
function logBytes28(bytes28 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
}
function logBytes29(bytes29 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
}
function logBytes30(bytes30 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
}
function logBytes31(bytes31 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
}
function logBytes32(bytes32 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
}
function log(uint256 p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256)", p0));
}
function log(string memory p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
}
function log(bool p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
}
function log(address p0) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
}
function log(uint256 p0, uint256 p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256)", p0, p1));
}
function log(uint256 p0, string memory p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string)", p0, p1));
}
function log(uint256 p0, bool p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", p0, p1));
}
function log(uint256 p0, address p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address)", p0, p1));
}
function log(string memory p0, uint256 p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256)", p0, p1));
}
function log(string memory p0, string memory p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
}
function log(string memory p0, bool p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
}
function log(string memory p0, address p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
}
function log(bool p0, uint256 p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", p0, p1));
}
function log(bool p0, string memory p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
}
function log(bool p0, bool p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
}
function log(bool p0, address p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
}
function log(address p0, uint256 p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256)", p0, p1));
}
function log(address p0, string memory p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
}
function log(address p0, bool p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
}
function log(address p0, address p1) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
}
function log(uint256 p0, uint256 p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256)", p0, p1, p2));
}
function log(uint256 p0, uint256 p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string)", p0, p1, p2));
}
function log(uint256 p0, uint256 p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool)", p0, p1, p2));
}
function log(uint256 p0, uint256 p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address)", p0, p1, p2));
}
function log(uint256 p0, string memory p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256)", p0, p1, p2));
}
function log(uint256 p0, string memory p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string)", p0, p1, p2));
}
function log(uint256 p0, string memory p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool)", p0, p1, p2));
}
function log(uint256 p0, string memory p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address)", p0, p1, p2));
}
function log(uint256 p0, bool p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256)", p0, p1, p2));
}
function log(uint256 p0, bool p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string)", p0, p1, p2));
}
function log(uint256 p0, bool p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool)", p0, p1, p2));
}
function log(uint256 p0, bool p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address)", p0, p1, p2));
}
function log(uint256 p0, address p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256)", p0, p1, p2));
}
function log(uint256 p0, address p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string)", p0, p1, p2));
}
function log(uint256 p0, address p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool)", p0, p1, p2));
}
function log(uint256 p0, address p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address)", p0, p1, p2));
}
function log(string memory p0, uint256 p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256)", p0, p1, p2));
}
function log(string memory p0, uint256 p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string)", p0, p1, p2));
}
function log(string memory p0, uint256 p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool)", p0, p1, p2));
}
function log(string memory p0, uint256 p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address)", p0, p1, p2));
}
function log(string memory p0, string memory p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256)", p0, p1, p2));
}
function log(string memory p0, string memory p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
}
function log(string memory p0, string memory p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
}
function log(string memory p0, string memory p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
}
function log(string memory p0, bool p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256)", p0, p1, p2));
}
function log(string memory p0, bool p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
}
function log(string memory p0, bool p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
}
function log(string memory p0, bool p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
}
function log(string memory p0, address p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256)", p0, p1, p2));
}
function log(string memory p0, address p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
}
function log(string memory p0, address p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
}
function log(string memory p0, address p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
}
function log(bool p0, uint256 p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256)", p0, p1, p2));
}
function log(bool p0, uint256 p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string)", p0, p1, p2));
}
function log(bool p0, uint256 p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool)", p0, p1, p2));
}
function log(bool p0, uint256 p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address)", p0, p1, p2));
}
function log(bool p0, string memory p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256)", p0, p1, p2));
}
function log(bool p0, string memory p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
}
function log(bool p0, string memory p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
}
function log(bool p0, string memory p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
}
function log(bool p0, bool p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256)", p0, p1, p2));
}
function log(bool p0, bool p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
}
function log(bool p0, bool p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
}
function log(bool p0, bool p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
}
function log(bool p0, address p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256)", p0, p1, p2));
}
function log(bool p0, address p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
}
function log(bool p0, address p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
}
function log(bool p0, address p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
}
function log(address p0, uint256 p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256)", p0, p1, p2));
}
function log(address p0, uint256 p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string)", p0, p1, p2));
}
function log(address p0, uint256 p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool)", p0, p1, p2));
}
function log(address p0, uint256 p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address)", p0, p1, p2));
}
function log(address p0, string memory p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256)", p0, p1, p2));
}
function log(address p0, string memory p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
}
function log(address p0, string memory p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
}
function log(address p0, string memory p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
}
function log(address p0, bool p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256)", p0, p1, p2));
}
function log(address p0, bool p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
}
function log(address p0, bool p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
}
function log(address p0, bool p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
}
function log(address p0, address p1, uint256 p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256)", p0, p1, p2));
}
function log(address p0, address p1, string memory p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
}
function log(address p0, address p1, bool p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
}
function log(address p0, address p1, address p2) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
}
function log(uint256 p0, uint256 p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,string)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,address)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,string)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,address)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,string)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,address)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,string)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, uint256 p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,address)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,string)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,address)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,string)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,address)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,string)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,address)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,string)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, string memory p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,address)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,string)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,address)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,string)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,address)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,string)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,address)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,string)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, bool p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,address)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,string)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,address)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,string)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,address)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,string)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,address)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,uint256)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,string)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,bool)", p0, p1, p2, p3));
}
function log(uint256 p0, address p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,address)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,string)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,bool)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,address)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,string)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,bool)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,address)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,string)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,bool)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,address)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,string)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,bool)", p0, p1, p2, p3));
}
function log(string memory p0, uint256 p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,address)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,string)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,bool)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,address)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
}
function log(string memory p0, string memory p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,string)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,bool)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,address)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
}
function log(string memory p0, bool p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,string)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,bool)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,address)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint256)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
}
function log(string memory p0, address p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,uint256)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,string)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,bool)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,address)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,uint256)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,string)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,bool)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,address)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,uint256)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,string)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,bool)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,address)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,uint256)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,string)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,bool)", p0, p1, p2, p3));
}
function log(bool p0, uint256 p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,address)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,uint256)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,string)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,bool)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,address)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint256)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint256)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint256)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
}
function log(bool p0, string memory p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,uint256)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,string)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,bool)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,address)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint256)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint256)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint256)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
}
function log(bool p0, bool p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
}
function log(bool p0, address p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,uint256)", p0, p1, p2, p3));
}
function log(bool p0, address p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,string)", p0, p1, p2, p3));
}
function log(bool p0, address p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,bool)", p0, p1, p2, p3));
}
function log(bool p0, address p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,address)", p0, p1, p2, p3));
}
function log(bool p0, address p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint256)", p0, p1, p2, p3));
}
function log(bool p0, address p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
}
function log(bool p0, address p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
}
function log(bool p0, address p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
}
function log(bool p0, address p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint256)", p0, p1, p2, p3));
}
function log(bool p0, address p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
}
function log(bool p0, address p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
}
function log(bool p0, address p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
}
function log(bool p0, address p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint256)", p0, p1, p2, p3));
}
function log(bool p0, address p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
}
function log(bool p0, address p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
}
function log(bool p0, address p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,uint256)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,string)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,bool)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,address)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,uint256)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,string)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,bool)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,address)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,uint256)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,string)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,bool)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,address)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,uint256)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,string)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,bool)", p0, p1, p2, p3));
}
function log(address p0, uint256 p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,address)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,uint256)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,string)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,bool)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,address)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint256)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint256)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint256)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
}
function log(address p0, string memory p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
}
function log(address p0, bool p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,uint256)", p0, p1, p2, p3));
}
function log(address p0, bool p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,string)", p0, p1, p2, p3));
}
function log(address p0, bool p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,bool)", p0, p1, p2, p3));
}
function log(address p0, bool p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,address)", p0, p1, p2, p3));
}
function log(address p0, bool p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint256)", p0, p1, p2, p3));
}
function log(address p0, bool p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
}
function log(address p0, bool p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
}
function log(address p0, bool p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
}
function log(address p0, bool p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint256)", p0, p1, p2, p3));
}
function log(address p0, bool p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
}
function log(address p0, bool p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
}
function log(address p0, bool p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
}
function log(address p0, bool p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint256)", p0, p1, p2, p3));
}
function log(address p0, bool p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
}
function log(address p0, bool p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
}
function log(address p0, bool p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
}
function log(address p0, address p1, uint256 p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,uint256)", p0, p1, p2, p3));
}
function log(address p0, address p1, uint256 p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,string)", p0, p1, p2, p3));
}
function log(address p0, address p1, uint256 p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,bool)", p0, p1, p2, p3));
}
function log(address p0, address p1, uint256 p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,address)", p0, p1, p2, p3));
}
function log(address p0, address p1, string memory p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint256)", p0, p1, p2, p3));
}
function log(address p0, address p1, string memory p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
}
function log(address p0, address p1, string memory p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
}
function log(address p0, address p1, string memory p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
}
function log(address p0, address p1, bool p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint256)", p0, p1, p2, p3));
}
function log(address p0, address p1, bool p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
}
function log(address p0, address p1, bool p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
}
function log(address p0, address p1, bool p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
}
function log(address p0, address p1, address p2, uint256 p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint256)", p0, p1, p2, p3));
}
function log(address p0, address p1, address p2, string memory p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
}
function log(address p0, address p1, address p2, bool p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
}
function log(address p0, address p1, address p2, address p3) internal pure {
_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
}
}
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
}
},
{
"files": "*.yml",
"options": {}
},
{
"files": "*.yaml",
"options": {}
},
{
"files": "*.toml",
"options": {}
},
{
"files": "*.json",
"options": {}
},
{
"files": "*.js",
"options": {}
},
{
"files": "*.ts",
"options": {}
}
]
}
REMIX DEFAULT WORKSPACE
Remix default workspace is present when:
i. Remix loads for the very first time
ii. A new workspace is created with 'Default' template
iii. There are no files existing in the File Explorer
This workspace contains 3 directories:
1. 'contracts': Holds three contracts with increasing levels of complexity.
2. 'scripts': Contains four typescript files to deploy a contract. It is explained below.
3. 'tests': Contains one Solidity test file for 'Ballot' contract & one JS test file for 'Storage' contract.
SCRIPTS
The 'scripts' folder has four typescript files which help to deploy the 'Storage' contract using 'web3.js' and 'ethers.js' libraries.
For the deployment of any other contract, just update the contract's name from 'Storage' to the desired contract and provide constructor arguments accordingly
in the file `deploy_with_ethers.ts` or `deploy_with_web3.ts`
In the 'tests' folder there is a script containing Mocha-Chai unit tests for 'Storage' contract.
To run a script, right click on file name in the file explorer and click 'Run'. Remember, Solidity file must already be compiled.
Output from script will appear in remix terminal.
Please note, require/import is supported in a limited manner for Remix supported modules.
For now, modules supported by Remix are ethers, web3, swarmgw, chai, multihashes, remix and hardhat only for hardhat.ethers object/plugin.
For unsupported modules, an error like this will be thrown: '<module_name> module require is not supported by Remix IDE' will be shown.
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.2 <0.9.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
* @custom:dev-run-script ./scripts/deploy_with_ethers.ts
*/
contract Storage {
uint256 number;
/**
* @dev Store value in variable
* @param num value to store
*/
function store(uint256 num) public {
number = num;
}
/**
* @dev Return value
* @return value of 'number'
*/
function retrieve() public view returns (uint256){
return number;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "hardhat/console.sol";
/**
* @title Owner
* @dev Set & change owner
*/
contract Owner {
address private owner;
// event for EVM logging
event OwnerSet(address indexed oldOwner, address indexed newOwner);
// modifier to check if caller is owner
modifier isOwner() {
// If the first argument of 'require' evaluates to 'false', execution terminates and all
// changes to the state and to Ether balances are reverted.
// This used to consume all gas in old EVM versions, but not anymore.
// It is often a good idea to use 'require' to check if functions are called correctly.
// As a second argument, you can also provide an explanation about what went wrong.
require(msg.sender == owner, "Caller is not owner");
_;
}
/**
* @dev Set contract deployer as owner
*/
constructor() {
console.log("Owner contract deployed by:", msg.sender);
owner = msg.sender; // 'msg.sender' is sender of current call, contract deployer for a constructor
emit OwnerSet(address(0), owner);
}
/**
* @dev Change owner
* @param newOwner address of new owner
*/
function changeOwner(address newOwner) public isOwner {
emit OwnerSet(owner, newOwner);
owner = newOwner;
}
/**
* @dev Return owner address
* @return address of owner
*/
function getOwner() external view returns (address) {
return owner;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Ballot
* @dev Implements voting process along with vote delegation
*/
contract Ballot {
struct Voter {
uint weight; // weight is accumulated by delegation
bool voted; // if true, that person already voted
address delegate; // person delegated to
uint vote; // index of the voted proposal
}
struct Proposal {
// If you can limit the length to a certain number of bytes,
// always use one of bytes1 to bytes32 because they are much cheaper
bytes32 name; // short name (up to 32 bytes)
uint voteCount; // number of accumulated votes
}
address public chairperson;
mapping(address => Voter) public voters;
Proposal[] public proposals;
/**
* @dev Create a new ballot to choose one of 'proposalNames'.
* @param proposalNames names of proposals
*/
constructor(bytes32[] memory proposalNames) {
chairperson = msg.sender;
voters[chairperson].weight = 1;
for (uint i = 0; i < proposalNames.length; i++) {
// 'Proposal({...})' creates a temporary
// Proposal object and 'proposals.push(...)'
// appends it to the end of 'proposals'.
proposals.push(Proposal({
name: proposalNames[i],
voteCount: 0
}));
}
}
/**
* @dev Give 'voter' the right to vote on this ballot. May only be called by 'chairperson'.
* @param voter address of voter
*/
function giveRightToVote(address voter) public {
require(
msg.sender == chairperson,
"Only chairperson can give right to vote."
);
require(
!voters[voter].voted,
"The voter already voted."
);
require(voters[voter].weight == 0);
voters[voter].weight = 1;
}
/**
* @dev Delegate your vote to the voter 'to'.
* @param to address to which vote is delegated
*/
function delegate(address to) public {
Voter storage sender = voters[msg.sender];
require(!sender.voted, "You already voted.");
require(to != msg.sender, "Self-delegation is disallowed.");
while (voters[to].delegate != address(0)) {
to = voters[to].delegate;
// We found a loop in the delegation, not allowed.
require(to != msg.sender, "Found loop in delegation.");
}
sender.voted = true;
sender.delegate = to;
Voter storage delegate_ = voters[to];
if (delegate_.voted) {
// If the delegate already voted,
// directly add to the number of votes
proposals[delegate_.vote].voteCount += sender.weight;
} else {
// If the delegate did not vote yet,
// add to her weight.
delegate_.weight += sender.weight;
}
}
/**
* @dev Give your vote (including votes delegated to you) to proposal 'proposals[proposal].name'.
* @param proposal index of proposal in the proposals array
*/
function vote(uint proposal) public {
Voter storage sender = voters[msg.sender];
require(sender.weight != 0, "Has no right to vote");
require(!sender.voted, "Already voted.");
sender.voted = true;
sender.vote = proposal;
// If 'proposal' is out of the range of the array,
// this will throw automatically and revert all
// changes.
proposals[proposal].voteCount += sender.weight;
}
/**
* @dev Computes the winning proposal taking all previous votes into account.
* @return winningProposal_ index of winning proposal in the proposals array
*/
function winningProposal() public view
returns (uint winningProposal_)
{
uint winningVoteCount = 0;
for (uint p = 0; p < proposals.length; p++) {
if (proposals[p].voteCount > winningVoteCount) {
winningVoteCount = proposals[p].voteCount;
winningProposal_ = p;
}
}
}
/**
* @dev Calls winningProposal() function to get the index of the winner contained in the proposals array and then
* @return winnerName_ the name of the winner
*/
function winnerName() public view
returns (bytes32 winnerName_)
{
winnerName_ = proposals[winningProposal()].name;
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;
import "@openzeppelin/contracts/access/Ownable.sol";
contract AddressBook is Ownable(msg.sender) {
// Define a private salt value for internal use
string private salt = "value";
// Define a struct to represent a contact
struct Contact {
uint id; // Unique identifier for the contact
string firstName; // First name of the contact
string lastName; // Last name of the contact
uint[] phoneNumbers; // Array to store multiple phone numbers for the contact
}
// Array to store all contacts
Contact[] private contacts;
// Mapping to store the index of each contact in the contacts array using its ID
mapping(uint => uint) private idToIndex;
// Variable to keep track of the ID for the next contact
uint private nextId = 1;
// Custom error for when a contact is not found
error ContactNotFound(uint id);
// Function to add a new contact
function addContact(string calldata firstName, string calldata lastName, uint[] calldata phoneNumbers) external onlyOwner {
// Create a new contact with the provided details and add it to the contacts array
contacts.push(Contact(nextId, firstName, lastName, phoneNumbers));
// Map the ID of the new contact to its index in the array
idToIndex[nextId] = contacts.length - 1;
// Increment the nextId for the next contact
nextId++;
}
// Function to delete a contact by its ID
function deleteContact(uint id) external onlyOwner {
// Get the index of the contact to be deleted
uint index = idToIndex[id];
// Check if the index is valid and if the contact with the provided ID exists
if (index >= contacts.length || contacts[index].id != id) revert ContactNotFound(id);
// Replace the contact to be deleted with the last contact in the array
contacts[index] = contacts[contacts.length - 1];
// Update the index mapping for the moved contact
idToIndex[contacts[index].id] = index;
// Remove the last contact from the array
contacts.pop();
// Delete the mapping entry for the deleted contact ID
delete idToIndex[id];
}
// Function to retrieve a contact by its ID
function getContact(uint id) external view returns (Contact memory) {
// Get the index of the contact
uint index = idToIndex[id];
// Check if the index is valid and if the contact with the provided ID exists
if (index >= contacts.length || contacts[index].id != id) revert ContactNotFound(id);
// Return the contact details
return contacts[index];
}
// Function to retrieve all contacts
function getAllContacts() external view returns (Contact[] memory) {
// Return the array of all contacts
return contacts;
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
contract ArraysExercise {
// Declare state variables to store arrays of numbers, timestamps, and senders
uint[] numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; // Array of numbers initialized with values
uint[] timestamps; // Dynamic array to store timestamps
address[] senders; // Dynamic array to store sender addresses
uint256 constant Y2K = 946702800; // Constant representing the Unix timestamp for the year 2000
// Function to retrieve the array of numbers
function getNumbers() external view returns (uint[] memory) {
// Create a memory array to hold the numbers
uint[] memory results = new uint[](numbers.length);
// Copy the numbers from the state array to the memory array
for(uint i=0; i<numbers.length; i++) {
results[i] = numbers[i];
}
// Return the memory array
return results;
}
// Function to reset the numbers array to its initial values
function resetNumbers() public {
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
}
// Function to append new numbers to the numbers array
function appendToNumbers(uint[] calldata _toAppend) public {
// Iterate through the array to be appended
for (uint i = 0; i < _toAppend.length; i++) {
// Push each element of the array to be appended to the numbers array
numbers.push(_toAppend[i]);
}
}
// Function to save a timestamp along with the sender's address
function saveTimestamp(uint _unixTimestamp) public {
// Push the timestamp and sender's address to their respective arrays
timestamps.push(_unixTimestamp);
senders.push(msg.sender);
}
// Function to retrieve timestamps and senders after the year 2000
function afterY2K() public view returns (uint256[] memory, address[] memory) {
// Initialize counter for timestamps after Y2K
uint256 counter = 0;
// Count the number of timestamps after Y2K
for (uint i = 0; i < timestamps.length; i++) {
if (timestamps[i] > Y2K) {
counter++;
}
}
// Initialize memory arrays to hold timestamps and senders after Y2K
uint256[] memory timestampsAfterY2K = new uint256[](counter);
address[] memory sendersAfterY2K = new address[](counter);
// Initialize index for inserting elements into memory arrays
uint256 index = 0;
// Iterate through timestamps and senders arrays to extract elements after Y2K
for (uint i = 0; i < timestamps.length; i++) {
if (timestamps[i] > Y2K) {
timestampsAfterY2K[index] = timestamps[i];
sendersAfterY2K[index] = senders[i];
index++;
}
}
// Return timestamps and senders after Y2K
return (timestampsAfterY2K, sendersAfterY2K);
}
// Function to reset the senders array
function resetSenders() public {
delete senders;
}
// Function to reset the timestamps array
function resetTimestamps() public {
delete timestamps;
}
}
{
"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": {
"@_50": {
"entryPoint": null,
"id": 50,
"parameterSlots": 1,
"returnSlots": 0
},
"@_transferOwnership_146": {
"entryPoint": 233,
"id": 146,
"parameterSlots": 1,
"returnSlots": 0
},
"abi_encode_t_address_to_t_address_fromStack": {
"entryPoint": 1316,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_tuple_t_address__to_t_address__fromStack_reversed": {
"entryPoint": 1333,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"array_dataslot_t_string_storage": {
"entryPoint": 578,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_length_t_string_memory_ptr": {
"entryPoint": 426,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"clean_up_bytearray_end_slots_t_string_storage": {
"entryPoint": 887,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"cleanup_t_address": {
"entryPoint": 1297,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint160": {
"entryPoint": 1266,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint256": {
"entryPoint": 708,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"clear_storage_range_t_bytes1": {
"entryPoint": 849,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"convert_t_uint256_to_t_uint256": {
"entryPoint": 726,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage": {
"entryPoint": 1038,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"divide_by_32_ceil": {
"entryPoint": 596,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"extract_byte_array_length": {
"entryPoint": 526,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"extract_used_part_and_set_length_of_short_byte_array": {
"entryPoint": 1009,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"identity": {
"entryPoint": 717,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"mask_bytes_dynamic": {
"entryPoint": 979,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"panic_error_0x22": {
"entryPoint": 481,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x41": {
"entryPoint": 436,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"prepare_store_t_uint256": {
"entryPoint": 765,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"shift_left_dynamic": {
"entryPoint": 611,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"shift_right_unsigned_dynamic": {
"entryPoint": 967,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"storage_set_to_zero_t_uint256": {
"entryPoint": 821,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"update_byte_slice_dynamic32": {
"entryPoint": 623,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"update_storage_value_t_uint256_to_t_uint256": {
"entryPoint": 774,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"zero_value_for_split_t_uint256": {
"entryPoint": 817,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:5817:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "66:40:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "77:22:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "93:5:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "87:5:3"
},
"nodeType": "YulFunctionCall",
"src": "87:12:3"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "77:6:3"
}
]
}
]
},
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "49:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "59:6:3",
"type": ""
}
],
"src": "7:99:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "140:152:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "157:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "160:77:3",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "150:6:3"
},
"nodeType": "YulFunctionCall",
"src": "150:88:3"
},
"nodeType": "YulExpressionStatement",
"src": "150:88:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "254:1:3",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "257:4:3",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "247:6:3"
},
"nodeType": "YulFunctionCall",
"src": "247:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "247:15:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "278:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "281:4:3",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "271:6:3"
},
"nodeType": "YulFunctionCall",
"src": "271:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "271:15:3"
}
]
},
"name": "panic_error_0x41",
"nodeType": "YulFunctionDefinition",
"src": "112:180:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "326:152:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "343:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "346:77:3",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "336:6:3"
},
"nodeType": "YulFunctionCall",
"src": "336:88:3"
},
"nodeType": "YulExpressionStatement",
"src": "336:88:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "440:1:3",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "443:4:3",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "433:6:3"
},
"nodeType": "YulFunctionCall",
"src": "433:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "433:15:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "464:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "467:4:3",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "457:6:3"
},
"nodeType": "YulFunctionCall",
"src": "457:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "457:15:3"
}
]
},
"name": "panic_error_0x22",
"nodeType": "YulFunctionDefinition",
"src": "298:180:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "535:269:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "545:22:3",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "559:4:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "565:1:3",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "555:3:3"
},
"nodeType": "YulFunctionCall",
"src": "555:12:3"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "545:6:3"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "576:38:3",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "606:4:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "612:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "602:3:3"
},
"nodeType": "YulFunctionCall",
"src": "602:12:3"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulTypedName",
"src": "580:18:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "653:51:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "667:27:3",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "681:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "689:4:3",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "677:3:3"
},
"nodeType": "YulFunctionCall",
"src": "677:17:3"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "667:6:3"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "633:18:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "626:6:3"
},
"nodeType": "YulFunctionCall",
"src": "626:26:3"
},
"nodeType": "YulIf",
"src": "623:81:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "756:42:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nodeType": "YulIdentifier",
"src": "770:16:3"
},
"nodeType": "YulFunctionCall",
"src": "770:18:3"
},
"nodeType": "YulExpressionStatement",
"src": "770:18:3"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "720:18:3"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "743:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "751:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "740:2:3"
},
"nodeType": "YulFunctionCall",
"src": "740:14:3"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "717:2:3"
},
"nodeType": "YulFunctionCall",
"src": "717:38:3"
},
"nodeType": "YulIf",
"src": "714:84:3"
}
]
},
"name": "extract_byte_array_length",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "519:4:3",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "528:6:3",
"type": ""
}
],
"src": "484:320:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "864:87:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "874:11:3",
"value": {
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "882:3:3"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "874:4:3"
}
]
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "902:1:3",
"type": "",
"value": "0"
},
{
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "905:3:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "895:6:3"
},
"nodeType": "YulFunctionCall",
"src": "895:14:3"
},
"nodeType": "YulExpressionStatement",
"src": "895:14:3"
},
{
"nodeType": "YulAssignment",
"src": "918:26:3",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "936:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "939:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "keccak256",
"nodeType": "YulIdentifier",
"src": "926:9:3"
},
"nodeType": "YulFunctionCall",
"src": "926:18:3"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "918:4:3"
}
]
}
]
},
"name": "array_dataslot_t_string_storage",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "ptr",
"nodeType": "YulTypedName",
"src": "851:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "859:4:3",
"type": ""
}
],
"src": "810:141:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1001:49:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1011:33:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1029:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1036:2:3",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1025:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1025:14:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1041:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "1021:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1021:23:3"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "1011:6:3"
}
]
}
]
},
"name": "divide_by_32_ceil",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "984:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "994:6:3",
"type": ""
}
],
"src": "957:93:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1109:54:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1119:37:3",
"value": {
"arguments": [
{
"name": "bits",
"nodeType": "YulIdentifier",
"src": "1144:4:3"
},
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1150:5:3"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "1140:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1140:16:3"
},
"variableNames": [
{
"name": "newValue",
"nodeType": "YulIdentifier",
"src": "1119:8:3"
}
]
}
]
},
"name": "shift_left_dynamic",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "bits",
"nodeType": "YulTypedName",
"src": "1084:4:3",
"type": ""
},
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1090:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "newValue",
"nodeType": "YulTypedName",
"src": "1100:8:3",
"type": ""
}
],
"src": "1056:107:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1245:317:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "1255:35:3",
"value": {
"arguments": [
{
"name": "shiftBytes",
"nodeType": "YulIdentifier",
"src": "1276:10:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1288:1:3",
"type": "",
"value": "8"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "1272:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1272:18:3"
},
"variables": [
{
"name": "shiftBits",
"nodeType": "YulTypedName",
"src": "1259:9:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "1299:109:3",
"value": {
"arguments": [
{
"name": "shiftBits",
"nodeType": "YulIdentifier",
"src": "1330:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1341:66:3",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "shift_left_dynamic",
"nodeType": "YulIdentifier",
"src": "1311:18:3"
},
"nodeType": "YulFunctionCall",
"src": "1311:97:3"
},
"variables": [
{
"name": "mask",
"nodeType": "YulTypedName",
"src": "1303:4:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "1417:51:3",
"value": {
"arguments": [
{
"name": "shiftBits",
"nodeType": "YulIdentifier",
"src": "1448:9:3"
},
{
"name": "toInsert",
"nodeType": "YulIdentifier",
"src": "1459:8:3"
}
],
"functionName": {
"name": "shift_left_dynamic",
"nodeType": "YulIdentifier",
"src": "1429:18:3"
},
"nodeType": "YulFunctionCall",
"src": "1429:39:3"
},
"variableNames": [
{
"name": "toInsert",
"nodeType": "YulIdentifier",
"src": "1417:8:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "1477:30:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1490:5:3"
},
{
"arguments": [
{
"name": "mask",
"nodeType": "YulIdentifier",
"src": "1501:4:3"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "1497:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1497:9:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "1486:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1486:21:3"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1477:5:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "1516:40:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1529:5:3"
},
{
"arguments": [
{
"name": "toInsert",
"nodeType": "YulIdentifier",
"src": "1540:8:3"
},
{
"name": "mask",
"nodeType": "YulIdentifier",
"src": "1550:4:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "1536:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1536:19:3"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "1526:2:3"
},
"nodeType": "YulFunctionCall",
"src": "1526:30:3"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "1516:6:3"
}
]
}
]
},
"name": "update_byte_slice_dynamic32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1206:5:3",
"type": ""
},
{
"name": "shiftBytes",
"nodeType": "YulTypedName",
"src": "1213:10:3",
"type": ""
},
{
"name": "toInsert",
"nodeType": "YulTypedName",
"src": "1225:8:3",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "1238:6:3",
"type": ""
}
],
"src": "1169:393:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1613:32:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1623:16:3",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "1634:5:3"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "1623:7:3"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1595:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "1605:7:3",
"type": ""
}
],
"src": "1568:77:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1683:28:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1693:12:3",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "1700:5:3"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "1693:3:3"
}
]
}
]
},
"name": "identity",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1669:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "1679:3:3",
"type": ""
}
],
"src": "1651:60:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1777:82:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1787:66:3",
"value": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1845:5:3"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "1827:17:3"
},
"nodeType": "YulFunctionCall",
"src": "1827:24:3"
}
],
"functionName": {
"name": "identity",
"nodeType": "YulIdentifier",
"src": "1818:8:3"
},
"nodeType": "YulFunctionCall",
"src": "1818:34:3"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "1800:17:3"
},
"nodeType": "YulFunctionCall",
"src": "1800:53:3"
},
"variableNames": [
{
"name": "converted",
"nodeType": "YulIdentifier",
"src": "1787:9:3"
}
]
}
]
},
"name": "convert_t_uint256_to_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1757:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "converted",
"nodeType": "YulTypedName",
"src": "1767:9:3",
"type": ""
}
],
"src": "1717:142:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1912:28:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1922:12:3",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "1929:5:3"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "1922:3:3"
}
]
}
]
},
"name": "prepare_store_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1898:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "1908:3:3",
"type": ""
}
],
"src": "1865:75:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2022:193:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2032:63:3",
"value": {
"arguments": [
{
"name": "value_0",
"nodeType": "YulIdentifier",
"src": "2087:7:3"
}
],
"functionName": {
"name": "convert_t_uint256_to_t_uint256",
"nodeType": "YulIdentifier",
"src": "2056:30:3"
},
"nodeType": "YulFunctionCall",
"src": "2056:39:3"
},
"variables": [
{
"name": "convertedValue_0",
"nodeType": "YulTypedName",
"src": "2036:16:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "2111:4:3"
},
{
"arguments": [
{
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "2151:4:3"
}
],
"functionName": {
"name": "sload",
"nodeType": "YulIdentifier",
"src": "2145:5:3"
},
"nodeType": "YulFunctionCall",
"src": "2145:11:3"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2158:6:3"
},
{
"arguments": [
{
"name": "convertedValue_0",
"nodeType": "YulIdentifier",
"src": "2190:16:3"
}
],
"functionName": {
"name": "prepare_store_t_uint256",
"nodeType": "YulIdentifier",
"src": "2166:23:3"
},
"nodeType": "YulFunctionCall",
"src": "2166:41:3"
}
],
"functionName": {
"name": "update_byte_slice_dynamic32",
"nodeType": "YulIdentifier",
"src": "2117:27:3"
},
"nodeType": "YulFunctionCall",
"src": "2117:91:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "2104:6:3"
},
"nodeType": "YulFunctionCall",
"src": "2104:105:3"
},
"nodeType": "YulExpressionStatement",
"src": "2104:105:3"
}
]
},
"name": "update_storage_value_t_uint256_to_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "slot",
"nodeType": "YulTypedName",
"src": "1999:4:3",
"type": ""
},
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "2005:6:3",
"type": ""
},
{
"name": "value_0",
"nodeType": "YulTypedName",
"src": "2013:7:3",
"type": ""
}
],
"src": "1946:269:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2270:24:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2280:8:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "2287:1:3",
"type": "",
"value": "0"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "2280:3:3"
}
]
}
]
},
"name": "zero_value_for_split_t_uint256",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "2266:3:3",
"type": ""
}
],
"src": "2221:73:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2353:136:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2363:46:3",
"value": {
"arguments": [],
"functionName": {
"name": "zero_value_for_split_t_uint256",
"nodeType": "YulIdentifier",
"src": "2377:30:3"
},
"nodeType": "YulFunctionCall",
"src": "2377:32:3"
},
"variables": [
{
"name": "zero_0",
"nodeType": "YulTypedName",
"src": "2367:6:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "2462:4:3"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2468:6:3"
},
{
"name": "zero_0",
"nodeType": "YulIdentifier",
"src": "2476:6:3"
}
],
"functionName": {
"name": "update_storage_value_t_uint256_to_t_uint256",
"nodeType": "YulIdentifier",
"src": "2418:43:3"
},
"nodeType": "YulFunctionCall",
"src": "2418:65:3"
},
"nodeType": "YulExpressionStatement",
"src": "2418:65:3"
}
]
},
"name": "storage_set_to_zero_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "slot",
"nodeType": "YulTypedName",
"src": "2339:4:3",
"type": ""
},
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "2345:6:3",
"type": ""
}
],
"src": "2300:189:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2545:136:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2612:63:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "start",
"nodeType": "YulIdentifier",
"src": "2656:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2663:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "storage_set_to_zero_t_uint256",
"nodeType": "YulIdentifier",
"src": "2626:29:3"
},
"nodeType": "YulFunctionCall",
"src": "2626:39:3"
},
"nodeType": "YulExpressionStatement",
"src": "2626:39:3"
}
]
},
"condition": {
"arguments": [
{
"name": "start",
"nodeType": "YulIdentifier",
"src": "2565:5:3"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "2572:3:3"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "2562:2:3"
},
"nodeType": "YulFunctionCall",
"src": "2562:14:3"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "2577:26:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2579:22:3",
"value": {
"arguments": [
{
"name": "start",
"nodeType": "YulIdentifier",
"src": "2592:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2599:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2588:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2588:13:3"
},
"variableNames": [
{
"name": "start",
"nodeType": "YulIdentifier",
"src": "2579:5:3"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "2559:2:3",
"statements": []
},
"src": "2555:120:3"
}
]
},
"name": "clear_storage_range_t_bytes1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "start",
"nodeType": "YulTypedName",
"src": "2533:5:3",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "2540:3:3",
"type": ""
}
],
"src": "2495:186:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2766:464:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2792:431:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2806:54:3",
"value": {
"arguments": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "2854:5:3"
}
],
"functionName": {
"name": "array_dataslot_t_string_storage",
"nodeType": "YulIdentifier",
"src": "2822:31:3"
},
"nodeType": "YulFunctionCall",
"src": "2822:38:3"
},
"variables": [
{
"name": "dataArea",
"nodeType": "YulTypedName",
"src": "2810:8:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "2873:63:3",
"value": {
"arguments": [
{
"name": "dataArea",
"nodeType": "YulIdentifier",
"src": "2896:8:3"
},
{
"arguments": [
{
"name": "startIndex",
"nodeType": "YulIdentifier",
"src": "2924:10:3"
}
],
"functionName": {
"name": "divide_by_32_ceil",
"nodeType": "YulIdentifier",
"src": "2906:17:3"
},
"nodeType": "YulFunctionCall",
"src": "2906:29:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2892:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2892:44:3"
},
"variables": [
{
"name": "deleteStart",
"nodeType": "YulTypedName",
"src": "2877:11:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "3093:27:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3095:23:3",
"value": {
"name": "dataArea",
"nodeType": "YulIdentifier",
"src": "3110:8:3"
},
"variableNames": [
{
"name": "deleteStart",
"nodeType": "YulIdentifier",
"src": "3095:11:3"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "startIndex",
"nodeType": "YulIdentifier",
"src": "3077:10:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3089:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "3074:2:3"
},
"nodeType": "YulFunctionCall",
"src": "3074:18:3"
},
"nodeType": "YulIf",
"src": "3071:49:3"
},
{
"expression": {
"arguments": [
{
"name": "deleteStart",
"nodeType": "YulIdentifier",
"src": "3162:11:3"
},
{
"arguments": [
{
"name": "dataArea",
"nodeType": "YulIdentifier",
"src": "3179:8:3"
},
{
"arguments": [
{
"name": "len",
"nodeType": "YulIdentifier",
"src": "3207:3:3"
}
],
"functionName": {
"name": "divide_by_32_ceil",
"nodeType": "YulIdentifier",
"src": "3189:17:3"
},
"nodeType": "YulFunctionCall",
"src": "3189:22:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3175:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3175:37:3"
}
],
"functionName": {
"name": "clear_storage_range_t_bytes1",
"nodeType": "YulIdentifier",
"src": "3133:28:3"
},
"nodeType": "YulFunctionCall",
"src": "3133:80:3"
},
"nodeType": "YulExpressionStatement",
"src": "3133:80:3"
}
]
},
"condition": {
"arguments": [
{
"name": "len",
"nodeType": "YulIdentifier",
"src": "2783:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2788:2:3",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "2780:2:3"
},
"nodeType": "YulFunctionCall",
"src": "2780:11:3"
},
"nodeType": "YulIf",
"src": "2777:446:3"
}
]
},
"name": "clean_up_bytearray_end_slots_t_string_storage",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "array",
"nodeType": "YulTypedName",
"src": "2742:5:3",
"type": ""
},
{
"name": "len",
"nodeType": "YulTypedName",
"src": "2749:3:3",
"type": ""
},
{
"name": "startIndex",
"nodeType": "YulTypedName",
"src": "2754:10:3",
"type": ""
}
],
"src": "2687:543:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3299:54:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3309:37:3",
"value": {
"arguments": [
{
"name": "bits",
"nodeType": "YulIdentifier",
"src": "3334:4:3"
},
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3340:5:3"
}
],
"functionName": {
"name": "shr",
"nodeType": "YulIdentifier",
"src": "3330:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3330:16:3"
},
"variableNames": [
{
"name": "newValue",
"nodeType": "YulIdentifier",
"src": "3309:8:3"
}
]
}
]
},
"name": "shift_right_unsigned_dynamic",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "bits",
"nodeType": "YulTypedName",
"src": "3274:4:3",
"type": ""
},
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3280:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "newValue",
"nodeType": "YulTypedName",
"src": "3290:8:3",
"type": ""
}
],
"src": "3236:117:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3410:118:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "3420:68:3",
"value": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3469:1:3",
"type": "",
"value": "8"
},
{
"name": "bytes",
"nodeType": "YulIdentifier",
"src": "3472:5:3"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "3465:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3465:13:3"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3484:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "3480:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3480:6:3"
}
],
"functionName": {
"name": "shift_right_unsigned_dynamic",
"nodeType": "YulIdentifier",
"src": "3436:28:3"
},
"nodeType": "YulFunctionCall",
"src": "3436:51:3"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "3432:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3432:56:3"
},
"variables": [
{
"name": "mask",
"nodeType": "YulTypedName",
"src": "3424:4:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "3497:25:3",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "3511:4:3"
},
{
"name": "mask",
"nodeType": "YulIdentifier",
"src": "3517:4:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "3507:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3507:15:3"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "3497:6:3"
}
]
}
]
},
"name": "mask_bytes_dynamic",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "3387:4:3",
"type": ""
},
{
"name": "bytes",
"nodeType": "YulTypedName",
"src": "3393:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "3403:6:3",
"type": ""
}
],
"src": "3359:169:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3614:214:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3747:37:3",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "3774:4:3"
},
{
"name": "len",
"nodeType": "YulIdentifier",
"src": "3780:3:3"
}
],
"functionName": {
"name": "mask_bytes_dynamic",
"nodeType": "YulIdentifier",
"src": "3755:18:3"
},
"nodeType": "YulFunctionCall",
"src": "3755:29:3"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "3747:4:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "3793:29:3",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "3804:4:3"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3814:1:3",
"type": "",
"value": "2"
},
{
"name": "len",
"nodeType": "YulIdentifier",
"src": "3817:3:3"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "3810:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3810:11:3"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "3801:2:3"
},
"nodeType": "YulFunctionCall",
"src": "3801:21:3"
},
"variableNames": [
{
"name": "used",
"nodeType": "YulIdentifier",
"src": "3793:4:3"
}
]
}
]
},
"name": "extract_used_part_and_set_length_of_short_byte_array",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "3595:4:3",
"type": ""
},
{
"name": "len",
"nodeType": "YulTypedName",
"src": "3601:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "used",
"nodeType": "YulTypedName",
"src": "3609:4:3",
"type": ""
}
],
"src": "3533:295:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3925:1303:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "3936:51:3",
"value": {
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "3983:3:3"
}
],
"functionName": {
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "3950:32:3"
},
"nodeType": "YulFunctionCall",
"src": "3950:37:3"
},
"variables": [
{
"name": "newLen",
"nodeType": "YulTypedName",
"src": "3940:6:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "4072:22:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "4074:16:3"
},
"nodeType": "YulFunctionCall",
"src": "4074:18:3"
},
"nodeType": "YulExpressionStatement",
"src": "4074:18:3"
}
]
},
"condition": {
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4044:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4052:18:3",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "4041:2:3"
},
"nodeType": "YulFunctionCall",
"src": "4041:30:3"
},
"nodeType": "YulIf",
"src": "4038:56:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "4104:52:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "4150:4:3"
}
],
"functionName": {
"name": "sload",
"nodeType": "YulIdentifier",
"src": "4144:5:3"
},
"nodeType": "YulFunctionCall",
"src": "4144:11:3"
}
],
"functionName": {
"name": "extract_byte_array_length",
"nodeType": "YulIdentifier",
"src": "4118:25:3"
},
"nodeType": "YulFunctionCall",
"src": "4118:38:3"
},
"variables": [
{
"name": "oldLen",
"nodeType": "YulTypedName",
"src": "4108:6:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "4249:4:3"
},
{
"name": "oldLen",
"nodeType": "YulIdentifier",
"src": "4255:6:3"
},
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4263:6:3"
}
],
"functionName": {
"name": "clean_up_bytearray_end_slots_t_string_storage",
"nodeType": "YulIdentifier",
"src": "4203:45:3"
},
"nodeType": "YulFunctionCall",
"src": "4203:67:3"
},
"nodeType": "YulExpressionStatement",
"src": "4203:67:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "4280:18:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "4297:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "srcOffset",
"nodeType": "YulTypedName",
"src": "4284:9:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "4308:17:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "4321:4:3",
"type": "",
"value": "0x20"
},
"variableNames": [
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "4308:9:3"
}
]
},
{
"cases": [
{
"body": {
"nodeType": "YulBlock",
"src": "4372:611:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "4386:37:3",
"value": {
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4405:6:3"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4417:4:3",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "4413:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4413:9:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4401:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4401:22:3"
},
"variables": [
{
"name": "loopEnd",
"nodeType": "YulTypedName",
"src": "4390:7:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "4437:51:3",
"value": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "4483:4:3"
}
],
"functionName": {
"name": "array_dataslot_t_string_storage",
"nodeType": "YulIdentifier",
"src": "4451:31:3"
},
"nodeType": "YulFunctionCall",
"src": "4451:37:3"
},
"variables": [
{
"name": "dstPtr",
"nodeType": "YulTypedName",
"src": "4441:6:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "4501:10:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "4510:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "4505:1:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "4569:163:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "4594:6:3"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "4612:3:3"
},
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "4617:9:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4608:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4608:19:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "4602:5:3"
},
"nodeType": "YulFunctionCall",
"src": "4602:26:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "4587:6:3"
},
"nodeType": "YulFunctionCall",
"src": "4587:42:3"
},
"nodeType": "YulExpressionStatement",
"src": "4587:42:3"
},
{
"nodeType": "YulAssignment",
"src": "4646:24:3",
"value": {
"arguments": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "4660:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4668:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4656:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4656:14:3"
},
"variableNames": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "4646:6:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "4687:31:3",
"value": {
"arguments": [
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "4704:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4715:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4700:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4700:18:3"
},
"variableNames": [
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "4687:9:3"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4535:1:3"
},
{
"name": "loopEnd",
"nodeType": "YulIdentifier",
"src": "4538:7:3"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "4532:2:3"
},
"nodeType": "YulFunctionCall",
"src": "4532:14:3"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "4547:21:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4549:17:3",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4558:1:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4561:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4554:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4554:12:3"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4549:1:3"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "4528:3:3",
"statements": []
},
"src": "4524:208:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4768:156:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "4786:43:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "4813:3:3"
},
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "4818:9:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4809:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4809:19:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "4803:5:3"
},
"nodeType": "YulFunctionCall",
"src": "4803:26:3"
},
"variables": [
{
"name": "lastValue",
"nodeType": "YulTypedName",
"src": "4790:9:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "4853:6:3"
},
{
"arguments": [
{
"name": "lastValue",
"nodeType": "YulIdentifier",
"src": "4880:9:3"
},
{
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4895:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4903:4:3",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4891:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4891:17:3"
}
],
"functionName": {
"name": "mask_bytes_dynamic",
"nodeType": "YulIdentifier",
"src": "4861:18:3"
},
"nodeType": "YulFunctionCall",
"src": "4861:48:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "4846:6:3"
},
"nodeType": "YulFunctionCall",
"src": "4846:64:3"
},
"nodeType": "YulExpressionStatement",
"src": "4846:64:3"
}
]
},
"condition": {
"arguments": [
{
"name": "loopEnd",
"nodeType": "YulIdentifier",
"src": "4751:7:3"
},
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4760:6:3"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "4748:2:3"
},
"nodeType": "YulFunctionCall",
"src": "4748:19:3"
},
"nodeType": "YulIf",
"src": "4745:179:3"
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "4944:4:3"
},
{
"arguments": [
{
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4958:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4966:1:3",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "4954:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4954:14:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4970:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4950:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4950:22:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "4937:6:3"
},
"nodeType": "YulFunctionCall",
"src": "4937:36:3"
},
"nodeType": "YulExpressionStatement",
"src": "4937:36:3"
}
]
},
"nodeType": "YulCase",
"src": "4365:618:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "4370:1:3",
"type": "",
"value": "1"
}
},
{
"body": {
"nodeType": "YulBlock",
"src": "5000:222:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "5014:14:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "5027:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5018:5:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "5051:67:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5069:35:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "5088:3:3"
},
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "5093:9:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5084:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5084:19:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "5078:5:3"
},
"nodeType": "YulFunctionCall",
"src": "5078:26:3"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5069:5:3"
}
]
}
]
},
"condition": {
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "5044:6:3"
},
"nodeType": "YulIf",
"src": "5041:77:3"
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "5138:4:3"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5197:5:3"
},
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "5204:6:3"
}
],
"functionName": {
"name": "extract_used_part_and_set_length_of_short_byte_array",
"nodeType": "YulIdentifier",
"src": "5144:52:3"
},
"nodeType": "YulFunctionCall",
"src": "5144:67:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "5131:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5131:81:3"
},
"nodeType": "YulExpressionStatement",
"src": "5131:81:3"
}
]
},
"nodeType": "YulCase",
"src": "4992:230:3",
"value": "default"
}
],
"expression": {
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4345:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4353:2:3",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "4342:2:3"
},
"nodeType": "YulFunctionCall",
"src": "4342:14:3"
},
"nodeType": "YulSwitch",
"src": "4335:887:3"
}
]
},
"name": "copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "slot",
"nodeType": "YulTypedName",
"src": "3914:4:3",
"type": ""
},
{
"name": "src",
"nodeType": "YulTypedName",
"src": "3920:3:3",
"type": ""
}
],
"src": "3833:1395:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5279:81:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5289:65:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5304:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5311:42:3",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "5300:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5300:54:3"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "5289:7:3"
}
]
}
]
},
"name": "cleanup_t_uint160",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5261:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "5271:7:3",
"type": ""
}
],
"src": "5234:126:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5411:51:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5421:35:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5450:5:3"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nodeType": "YulIdentifier",
"src": "5432:17:3"
},
"nodeType": "YulFunctionCall",
"src": "5432:24:3"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "5421:7:3"
}
]
}
]
},
"name": "cleanup_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5393:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "5403:7:3",
"type": ""
}
],
"src": "5366:96:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5533:53:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5550:3:3"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5573:5:3"
}
],
"functionName": {
"name": "cleanup_t_address",
"nodeType": "YulIdentifier",
"src": "5555:17:3"
},
"nodeType": "YulFunctionCall",
"src": "5555:24:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5543:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5543:37:3"
},
"nodeType": "YulExpressionStatement",
"src": "5543:37:3"
}
]
},
"name": "abi_encode_t_address_to_t_address_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5521:5:3",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "5528:3:3",
"type": ""
}
],
"src": "5468:118:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5690:124:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5700:26:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "5712:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5723:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5708:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5708:18:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "5700:4:3"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "5780:6:3"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "5793:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5804:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5789:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5789:17:3"
}
],
"functionName": {
"name": "abi_encode_t_address_to_t_address_fromStack",
"nodeType": "YulIdentifier",
"src": "5736:43:3"
},
"nodeType": "YulFunctionCall",
"src": "5736:71:3"
},
"nodeType": "YulExpressionStatement",
"src": "5736:71:3"
}
]
},
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "5662:9:3",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "5674:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "5685:4:3",
"type": ""
}
],
"src": "5592:222:3"
}
]
},
"contents": "{\n\n function array_length_t_string_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function panic_error_0x41() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n\n function panic_error_0x22() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n\n function extract_byte_array_length(data) -> length {\n length := div(data, 2)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) {\n length := and(length, 0x7f)\n }\n\n if eq(outOfPlaceEncoding, lt(length, 32)) {\n panic_error_0x22()\n }\n }\n\n function array_dataslot_t_string_storage(ptr) -> data {\n data := ptr\n\n mstore(0, ptr)\n data := keccak256(0, 0x20)\n\n }\n\n function divide_by_32_ceil(value) -> result {\n result := div(add(value, 31), 32)\n }\n\n function shift_left_dynamic(bits, value) -> newValue {\n newValue :=\n\n shl(bits, value)\n\n }\n\n function update_byte_slice_dynamic32(value, shiftBytes, toInsert) -> result {\n let shiftBits := mul(shiftBytes, 8)\n let mask := shift_left_dynamic(shiftBits, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)\n toInsert := shift_left_dynamic(shiftBits, toInsert)\n value := and(value, not(mask))\n result := or(value, and(toInsert, mask))\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function identity(value) -> ret {\n ret := value\n }\n\n function convert_t_uint256_to_t_uint256(value) -> converted {\n converted := cleanup_t_uint256(identity(cleanup_t_uint256(value)))\n }\n\n function prepare_store_t_uint256(value) -> ret {\n ret := value\n }\n\n function update_storage_value_t_uint256_to_t_uint256(slot, offset, value_0) {\n let convertedValue_0 := convert_t_uint256_to_t_uint256(value_0)\n sstore(slot, update_byte_slice_dynamic32(sload(slot), offset, prepare_store_t_uint256(convertedValue_0)))\n }\n\n function zero_value_for_split_t_uint256() -> ret {\n ret := 0\n }\n\n function storage_set_to_zero_t_uint256(slot, offset) {\n let zero_0 := zero_value_for_split_t_uint256()\n update_storage_value_t_uint256_to_t_uint256(slot, offset, zero_0)\n }\n\n function clear_storage_range_t_bytes1(start, end) {\n for {} lt(start, end) { start := add(start, 1) }\n {\n storage_set_to_zero_t_uint256(start, 0)\n }\n }\n\n function clean_up_bytearray_end_slots_t_string_storage(array, len, startIndex) {\n\n if gt(len, 31) {\n let dataArea := array_dataslot_t_string_storage(array)\n let deleteStart := add(dataArea, divide_by_32_ceil(startIndex))\n // If we are clearing array to be short byte array, we want to clear only data starting from array data area.\n if lt(startIndex, 32) { deleteStart := dataArea }\n clear_storage_range_t_bytes1(deleteStart, add(dataArea, divide_by_32_ceil(len)))\n }\n\n }\n\n function shift_right_unsigned_dynamic(bits, value) -> newValue {\n newValue :=\n\n shr(bits, value)\n\n }\n\n function mask_bytes_dynamic(data, bytes) -> result {\n let mask := not(shift_right_unsigned_dynamic(mul(8, bytes), not(0)))\n result := and(data, mask)\n }\n function extract_used_part_and_set_length_of_short_byte_array(data, len) -> used {\n // we want to save only elements that are part of the array after resizing\n // others should be set to zero\n data := mask_bytes_dynamic(data, len)\n used := or(data, mul(2, len))\n }\n function copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage(slot, src) {\n\n let newLen := array_length_t_string_memory_ptr(src)\n // Make sure array length is sane\n if gt(newLen, 0xffffffffffffffff) { panic_error_0x41() }\n\n let oldLen := extract_byte_array_length(sload(slot))\n\n // potentially truncate data\n clean_up_bytearray_end_slots_t_string_storage(slot, oldLen, newLen)\n\n let srcOffset := 0\n\n srcOffset := 0x20\n\n switch gt(newLen, 31)\n case 1 {\n let loopEnd := and(newLen, not(0x1f))\n\n let dstPtr := array_dataslot_t_string_storage(slot)\n let i := 0\n for { } lt(i, loopEnd) { i := add(i, 0x20) } {\n sstore(dstPtr, mload(add(src, srcOffset)))\n dstPtr := add(dstPtr, 1)\n srcOffset := add(srcOffset, 32)\n }\n if lt(loopEnd, newLen) {\n let lastValue := mload(add(src, srcOffset))\n sstore(dstPtr, mask_bytes_dynamic(lastValue, and(newLen, 0x1f)))\n }\n sstore(slot, add(mul(newLen, 2), 1))\n }\n default {\n let value := 0\n if newLen {\n value := mload(add(src, srcOffset))\n }\n sstore(slot, extract_used_part_and_set_length_of_short_byte_array(value, newLen))\n }\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function abi_encode_t_address_to_t_address_fromStack(value, pos) {\n mstore(pos, cleanup_t_address(value))\n }\n\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_address_to_t_address_fromStack(value0, add(headStart, 0))\n\n }\n\n}\n",
"id": 3,
"language": "Yul",
"name": "#utility.yul"
}
],
"linkReferences": {},
"object": "60806040526040518060400160405280600581526020017f76616c7565000000000000000000000000000000000000000000000000000000815250600190816200004a91906200040e565b5060016004553480156200005c575f80fd5b50335f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000d1575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000c8919062000535565b60405180910390fd5b620000e281620000e960201b60201c565b5062000550565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200022657607f821691505b6020821081036200023c576200023b620001e1565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620002a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000263565b620002ac868362000263565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f620002f6620002f0620002ea84620002c4565b620002cd565b620002c4565b9050919050565b5f819050919050565b6200031183620002d6565b620003296200032082620002fd565b8484546200026f565b825550505050565b5f90565b6200033f62000331565b6200034c81848462000306565b505050565b5b818110156200037357620003675f8262000335565b60018101905062000352565b5050565b601f821115620003c2576200038c8162000242565b620003978462000254565b81016020851015620003a7578190505b620003bf620003b68562000254565b83018262000351565b50505b505050565b5f82821c905092915050565b5f620003e45f1984600802620003c7565b1980831691505092915050565b5f620003fe8383620003d3565b9150826002028217905092915050565b6200041982620001aa565b67ffffffffffffffff811115620004355762000434620001b4565b5b6200044182546200020e565b6200044e82828562000377565b5f60209050601f83116001811462000484575f84156200046f578287015190505b6200047b8582620003f1565b865550620004ea565b601f198416620004948662000242565b5f5b82811015620004bd5784890151825560018201915060208501945060208101905062000496565b86831015620004dd5784890151620004d9601f891682620003d3565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200051d82620004f2565b9050919050565b6200052f8162000511565b82525050565b5f6020820190506200054a5f83018462000524565b92915050565b611720806200055e5f395ff3fe608060405234801561000f575f80fd5b506004361061007b575f3560e01c8063b9ed6fca11610059578063b9ed6fca146100c3578063e6505e1e146100df578063ef1d6ddd1461010f578063f2fde38b1461012d5761007b565b80633f06f6e81461007f578063715018a61461009b5780638da5cb5b146100a5575b5f80fd5b61009960048036038101906100949190610cfe565b610149565b005b6100a36102fd565b005b6100ad610310565b6040516100ba9190610ded565b60405180910390f35b6100dd60048036038101906100d89190610e39565b610337565b005b6100f960048036038101906100f49190610e39565b610515565b6040516101069190611013565b60405180910390f35b61011761075c565b604051610124919061115c565b60405180910390f35b610147600480360381019061014291906111a6565b610937565b005b6101516109bb565b60026040518060800160405280600454815260200188888080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f82011690508083019250505050505050815260200186868080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f8201169050808301925050505050505081526020018484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f82011690508083019250505050505050815250908060018154018082558091505060019003905f5260205f2090600402015f909190919091505f820151815f0155602082015181600101908161027f91906113f8565b50604082015181600201908161029591906113f8565b5060608201518160030190805190602001906102b2929190610b0a565b50505060016002805490506102c791906114f4565b60035f60045481526020019081526020015f208190555060045f8154809291906102f090611527565b9190505550505050505050565b6103056109bb565b61030e5f610a42565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61033f6109bb565b5f60035f8381526020019081526020015f205490506002805490508110158061038a575081600282815481106103785761037761156e565b5b905f5260205f2090600402015f015414155b156103cc57816040517ff55dec000000000000000000000000000000000000000000000000000000000081526004016103c391906115aa565b60405180910390fd5b600260016002805490506103e091906114f4565b815481106103f1576103f061156e565b5b905f5260205f209060040201600282815481106104115761041061156e565b5b905f5260205f2090600402015f820154815f01556001820181600101908161043991906115d8565b506002820181600201908161044e91906115d8565b506003820181600301908054610465929190610b55565b509050508060035f600284815481106104815761048061156e565b5b905f5260205f2090600402015f015481526020019081526020015f208190555060028054806104b3576104b26116bd565b5b600190038181905f5260205f2090600402015f8082015f9055600182015f6104db9190610ba3565b600282015f6104ea9190610ba3565b600382015f6104f99190610be0565b5050905560035f8381526020019081526020015f205f90555050565b61051d610bfe565b5f60035f8481526020019081526020015f2054905060028054905081101580610568575082600282815481106105565761055561156e565b5b905f5260205f2090600402015f015414155b156105aa57826040517ff55dec000000000000000000000000000000000000000000000000000000000081526004016105a191906115aa565b60405180910390fd5b600281815481106105be576105bd61156e565b5b905f5260205f2090600402016040518060800160405290815f82015481526020016001820180546105ee9061122b565b80601f016020809104026020016040519081016040528092919081815260200182805461061a9061122b565b80156106655780601f1061063c57610100808354040283529160200191610665565b820191905f5260205f20905b81548152906001019060200180831161064857829003601f168201915b5050505050815260200160028201805461067e9061122b565b80601f01602080910402602001604051908101604052809291908181526020018280546106aa9061122b565b80156106f55780601f106106cc576101008083540402835291602001916106f5565b820191905f5260205f20905b8154815290600101906020018083116106d857829003601f168201915b505050505081526020016003820180548060200260200160405190810160405280929190818152602001828054801561074b57602002820191905f5260205f20905b815481526020019060010190808311610737575b505050505081525050915050919050565b60606002805480602002602001604051908101604052809291908181526020015f905b8282101561092e578382905f5260205f2090600402016040518060800160405290815f82015481526020016001820180546107b99061122b565b80601f01602080910402602001604051908101604052809291908181526020018280546107e59061122b565b80156108305780601f1061080757610100808354040283529160200191610830565b820191905f5260205f20905b81548152906001019060200180831161081357829003601f168201915b505050505081526020016002820180546108499061122b565b80601f01602080910402602001604051908101604052809291908181526020018280546108759061122b565b80156108c05780601f10610897576101008083540402835291602001916108c0565b820191905f5260205f20905b8154815290600101906020018083116108a357829003601f168201915b505050505081526020016003820180548060200260200160405190810160405280929190818152602001828054801561091657602002820191905f5260205f20905b815481526020019060010190808311610902575b5050505050815250508152602001906001019061077f565b50505050905090565b61093f6109bb565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109af575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016109a69190610ded565b60405180910390fd5b6109b881610a42565b50565b6109c3610b03565b73ffffffffffffffffffffffffffffffffffffffff166109e1610310565b73ffffffffffffffffffffffffffffffffffffffff1614610a4057610a04610b03565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a379190610ded565b60405180910390fd5b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b828054828255905f5260205f20908101928215610b44579160200282015b82811115610b43578251825591602001919060010190610b28565b5b509050610b519190610c25565b5090565b828054828255905f5260205f20908101928215610b92575f5260205f209182015b82811115610b91578254825591600101919060010190610b76565b5b509050610b9f9190610c25565b5090565b508054610baf9061122b565b5f825580601f10610bc05750610bdd565b601f0160209004905f5260205f2090810190610bdc9190610c25565b5b50565b5080545f8255905f5260205f2090810190610bfb9190610c25565b50565b60405180608001604052805f81526020016060815260200160608152602001606081525090565b5b80821115610c3c575f815f905550600101610c26565b5090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112610c6957610c68610c48565b5b8235905067ffffffffffffffff811115610c8657610c85610c4c565b5b602083019150836001820283011115610ca257610ca1610c50565b5b9250929050565b5f8083601f840112610cbe57610cbd610c48565b5b8235905067ffffffffffffffff811115610cdb57610cda610c4c565b5b602083019150836020820283011115610cf757610cf6610c50565b5b9250929050565b5f805f805f8060608789031215610d1857610d17610c40565b5b5f87013567ffffffffffffffff811115610d3557610d34610c44565b5b610d4189828a01610c54565b9650965050602087013567ffffffffffffffff811115610d6457610d63610c44565b5b610d7089828a01610c54565b9450945050604087013567ffffffffffffffff811115610d9357610d92610c44565b5b610d9f89828a01610ca9565b92509250509295509295509295565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610dd782610dae565b9050919050565b610de781610dcd565b82525050565b5f602082019050610e005f830184610dde565b92915050565b5f819050919050565b610e1881610e06565b8114610e22575f80fd5b50565b5f81359050610e3381610e0f565b92915050565b5f60208284031215610e4e57610e4d610c40565b5b5f610e5b84828501610e25565b91505092915050565b610e6d81610e06565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015610eaa578082015181840152602081019050610e8f565b5f8484015250505050565b5f601f19601f8301169050919050565b5f610ecf82610e73565b610ed98185610e7d565b9350610ee9818560208601610e8d565b610ef281610eb5565b840191505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f610f318383610e64565b60208301905092915050565b5f602082019050919050565b5f610f5382610efd565b610f5d8185610f07565b9350610f6883610f17565b805f5b83811015610f98578151610f7f8882610f26565b9750610f8a83610f3d565b925050600181019050610f6b565b5085935050505092915050565b5f608083015f830151610fba5f860182610e64565b5060208301518482036020860152610fd28282610ec5565b91505060408301518482036040860152610fec8282610ec5565b915050606083015184820360608601526110068282610f49565b9150508091505092915050565b5f6020820190508181035f83015261102b8184610fa5565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f608083015f8301516110715f860182610e64565b50602083015184820360208601526110898282610ec5565b915050604083015184820360408601526110a38282610ec5565b915050606083015184820360608601526110bd8282610f49565b9150508091505092915050565b5f6110d5838361105c565b905092915050565b5f602082019050919050565b5f6110f382611033565b6110fd818561103d565b93508360208202850161110f8561104d565b805f5b8581101561114a578484038952815161112b85826110ca565b9450611136836110dd565b925060208a01995050600181019050611112565b50829750879550505050505092915050565b5f6020820190508181035f83015261117481846110e9565b905092915050565b61118581610dcd565b811461118f575f80fd5b50565b5f813590506111a08161117c565b92915050565b5f602082840312156111bb576111ba610c40565b5b5f6111c884828501611192565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061124257607f821691505b602082108103611255576112546111fe565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026112b77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261127c565b6112c1868361127c565b95508019841693508086168417925050509392505050565b5f819050919050565b5f6112fc6112f76112f284610e06565b6112d9565b610e06565b9050919050565b5f819050919050565b611315836112e2565b61132961132182611303565b848454611288565b825550505050565b5f90565b61133d611331565b61134881848461130c565b505050565b5b8181101561136b576113605f82611335565b60018101905061134e565b5050565b601f8211156113b0576113818161125b565b61138a8461126d565b81016020851015611399578190505b6113ad6113a58561126d565b83018261134d565b50505b505050565b5f82821c905092915050565b5f6113d05f19846008026113b5565b1980831691505092915050565b5f6113e883836113c1565b9150826002028217905092915050565b61140182610e73565b67ffffffffffffffff81111561141a576114196111d1565b5b611424825461122b565b61142f82828561136f565b5f60209050601f831160018114611460575f841561144e578287015190505b61145885826113dd565b8655506114bf565b601f19841661146e8661125b565b5f5b8281101561149557848901518255600182019150602085019450602081019050611470565b868310156114b257848901516114ae601f8916826113c1565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6114fe82610e06565b915061150983610e06565b9250828203905081811115611521576115206114c7565b5b92915050565b5f61153182610e06565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611563576115626114c7565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b6115a481610e06565b82525050565b5f6020820190506115bd5f83018461159b565b92915050565b5f815490506115d18161122b565b9050919050565b8181036115e65750506116bb565b6115ef826115c3565b67ffffffffffffffff811115611608576116076111d1565b5b611612825461122b565b61161d82828561136f565b5f601f83116001811461164a575f8415611638578287015490505b61164285826113dd565b8655506116b4565b601f1984166116588761125b565b96506116638661125b565b5f5b8281101561168a57848901548255600182019150600185019450602081019050611665565b868310156116a757848901546116a3601f8916826113c1565b8355505b6001600288020188555050505b5050505050505b565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea26469706673582212205b3f5b4806c4e3e1d7955e22949a234ef59899dae53fc08c87b6380fcb7aed3664736f6c63430008140033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x5 DUP2 MSTORE PUSH1 0x20 ADD PUSH32 0x76616C7565000000000000000000000000000000000000000000000000000000 DUP2 MSTORE POP PUSH1 0x1 SWAP1 DUP2 PUSH3 0x4A SWAP2 SWAP1 PUSH3 0x40E JUMP JUMPDEST POP PUSH1 0x1 PUSH1 0x4 SSTORE CALLVALUE DUP1 ISZERO PUSH3 0x5C JUMPI PUSH0 DUP1 REVERT JUMPDEST POP CALLER PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SUB PUSH3 0xD1 JUMPI PUSH0 PUSH1 0x40 MLOAD PUSH32 0x1E4FBDF700000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH3 0xC8 SWAP2 SWAP1 PUSH3 0x535 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH3 0xE2 DUP2 PUSH3 0xE9 PUSH1 0x20 SHL PUSH1 0x20 SHR JUMP JUMPDEST POP PUSH3 0x550 JUMP JUMPDEST PUSH0 DUP1 PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 POP DUP2 PUSH0 DUP1 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MUL NOT AND SWAP1 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND MUL OR SWAP1 SSTORE POP DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 PUSH1 0x40 MLOAD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH3 0x226 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 SUB PUSH3 0x23C JUMPI PUSH3 0x23B PUSH3 0x1E1 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP DUP2 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 PUSH1 0x1F DUP4 ADD DIV SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP3 DUP3 SHL SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x8 DUP4 MUL PUSH3 0x2A0 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 PUSH3 0x263 JUMP JUMPDEST PUSH3 0x2AC DUP7 DUP4 PUSH3 0x263 JUMP JUMPDEST SWAP6 POP DUP1 NOT DUP5 AND SWAP4 POP DUP1 DUP7 AND DUP5 OR SWAP3 POP POP POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH3 0x2F6 PUSH3 0x2F0 PUSH3 0x2EA DUP5 PUSH3 0x2C4 JUMP JUMPDEST PUSH3 0x2CD JUMP JUMPDEST PUSH3 0x2C4 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH3 0x311 DUP4 PUSH3 0x2D6 JUMP JUMPDEST PUSH3 0x329 PUSH3 0x320 DUP3 PUSH3 0x2FD JUMP JUMPDEST DUP5 DUP5 SLOAD PUSH3 0x26F JUMP JUMPDEST DUP3 SSTORE POP POP POP POP JUMP JUMPDEST PUSH0 SWAP1 JUMP JUMPDEST PUSH3 0x33F PUSH3 0x331 JUMP JUMPDEST PUSH3 0x34C DUP2 DUP5 DUP5 PUSH3 0x306 JUMP JUMPDEST POP POP POP JUMP JUMPDEST JUMPDEST DUP2 DUP2 LT ISZERO PUSH3 0x373 JUMPI PUSH3 0x367 PUSH0 DUP3 PUSH3 0x335 JUMP JUMPDEST PUSH1 0x1 DUP2 ADD SWAP1 POP PUSH3 0x352 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x1F DUP3 GT ISZERO PUSH3 0x3C2 JUMPI PUSH3 0x38C DUP2 PUSH3 0x242 JUMP JUMPDEST PUSH3 0x397 DUP5 PUSH3 0x254 JUMP JUMPDEST DUP2 ADD PUSH1 0x20 DUP6 LT ISZERO PUSH3 0x3A7 JUMPI DUP2 SWAP1 POP JUMPDEST PUSH3 0x3BF PUSH3 0x3B6 DUP6 PUSH3 0x254 JUMP JUMPDEST DUP4 ADD DUP3 PUSH3 0x351 JUMP JUMPDEST POP POP JUMPDEST POP POP POP JUMP JUMPDEST PUSH0 DUP3 DUP3 SHR SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH3 0x3E4 PUSH0 NOT DUP5 PUSH1 0x8 MUL PUSH3 0x3C7 JUMP JUMPDEST NOT DUP1 DUP4 AND SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH3 0x3FE DUP4 DUP4 PUSH3 0x3D3 JUMP JUMPDEST SWAP2 POP DUP3 PUSH1 0x2 MUL DUP3 OR SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH3 0x419 DUP3 PUSH3 0x1AA JUMP JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH3 0x435 JUMPI PUSH3 0x434 PUSH3 0x1B4 JUMP JUMPDEST JUMPDEST PUSH3 0x441 DUP3 SLOAD PUSH3 0x20E JUMP JUMPDEST PUSH3 0x44E DUP3 DUP3 DUP6 PUSH3 0x377 JUMP JUMPDEST PUSH0 PUSH1 0x20 SWAP1 POP PUSH1 0x1F DUP4 GT PUSH1 0x1 DUP2 EQ PUSH3 0x484 JUMPI PUSH0 DUP5 ISZERO PUSH3 0x46F JUMPI DUP3 DUP8 ADD MLOAD SWAP1 POP JUMPDEST PUSH3 0x47B DUP6 DUP3 PUSH3 0x3F1 JUMP JUMPDEST DUP7 SSTORE POP PUSH3 0x4EA JUMP JUMPDEST PUSH1 0x1F NOT DUP5 AND PUSH3 0x494 DUP7 PUSH3 0x242 JUMP JUMPDEST PUSH0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH3 0x4BD JUMPI DUP5 DUP10 ADD MLOAD DUP3 SSTORE PUSH1 0x1 DUP3 ADD SWAP2 POP PUSH1 0x20 DUP6 ADD SWAP5 POP PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH3 0x496 JUMP JUMPDEST DUP7 DUP4 LT ISZERO PUSH3 0x4DD JUMPI DUP5 DUP10 ADD MLOAD PUSH3 0x4D9 PUSH1 0x1F DUP10 AND DUP3 PUSH3 0x3D3 JUMP JUMPDEST DUP4 SSTORE POP JUMPDEST PUSH1 0x1 PUSH1 0x2 DUP9 MUL ADD DUP9 SSTORE POP POP POP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH3 0x51D DUP3 PUSH3 0x4F2 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH3 0x52F DUP2 PUSH3 0x511 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH3 0x54A PUSH0 DUP4 ADD DUP5 PUSH3 0x524 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x1720 DUP1 PUSH3 0x55E PUSH0 CODECOPY PUSH0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0xF JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x7B JUMPI PUSH0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xB9ED6FCA GT PUSH2 0x59 JUMPI DUP1 PUSH4 0xB9ED6FCA EQ PUSH2 0xC3 JUMPI DUP1 PUSH4 0xE6505E1E EQ PUSH2 0xDF JUMPI DUP1 PUSH4 0xEF1D6DDD EQ PUSH2 0x10F JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x12D JUMPI PUSH2 0x7B JUMP JUMPDEST DUP1 PUSH4 0x3F06F6E8 EQ PUSH2 0x7F JUMPI DUP1 PUSH4 0x715018A6 EQ PUSH2 0x9B JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0xA5 JUMPI JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH2 0x99 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x94 SWAP2 SWAP1 PUSH2 0xCFE JUMP JUMPDEST PUSH2 0x149 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xA3 PUSH2 0x2FD JUMP JUMPDEST STOP JUMPDEST PUSH2 0xAD PUSH2 0x310 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xBA SWAP2 SWAP1 PUSH2 0xDED JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xDD PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xD8 SWAP2 SWAP1 PUSH2 0xE39 JUMP JUMPDEST PUSH2 0x337 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xF9 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xF4 SWAP2 SWAP1 PUSH2 0xE39 JUMP JUMPDEST PUSH2 0x515 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x106 SWAP2 SWAP1 PUSH2 0x1013 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x117 PUSH2 0x75C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x124 SWAP2 SWAP1 PUSH2 0x115C JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x147 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x142 SWAP2 SWAP1 PUSH2 0x11A6 JUMP JUMPDEST PUSH2 0x937 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x151 PUSH2 0x9BB JUMP JUMPDEST PUSH1 0x2 PUSH1 0x40 MLOAD DUP1 PUSH1 0x80 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x4 SLOAD DUP2 MSTORE PUSH1 0x20 ADD DUP9 DUP9 DUP1 DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 DUP1 DUP3 DUP5 CALLDATACOPY PUSH0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP POP POP POP POP DUP2 MSTORE PUSH1 0x20 ADD DUP7 DUP7 DUP1 DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 DUP1 DUP3 DUP5 CALLDATACOPY PUSH0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP POP POP POP POP DUP2 MSTORE PUSH1 0x20 ADD DUP5 DUP5 DUP1 DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 PUSH1 0x20 MUL DUP1 DUP3 DUP5 CALLDATACOPY PUSH0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP POP POP POP POP DUP2 MSTORE POP SWAP1 DUP1 PUSH1 0x1 DUP2 SLOAD ADD DUP1 DUP3 SSTORE DUP1 SWAP2 POP POP PUSH1 0x1 SWAP1 SUB SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH0 SWAP1 SWAP2 SWAP1 SWAP2 SWAP1 SWAP2 POP PUSH0 DUP3 ADD MLOAD DUP2 PUSH0 ADD SSTORE PUSH1 0x20 DUP3 ADD MLOAD DUP2 PUSH1 0x1 ADD SWAP1 DUP2 PUSH2 0x27F SWAP2 SWAP1 PUSH2 0x13F8 JUMP JUMPDEST POP PUSH1 0x40 DUP3 ADD MLOAD DUP2 PUSH1 0x2 ADD SWAP1 DUP2 PUSH2 0x295 SWAP2 SWAP1 PUSH2 0x13F8 JUMP JUMPDEST POP PUSH1 0x60 DUP3 ADD MLOAD DUP2 PUSH1 0x3 ADD SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x2B2 SWAP3 SWAP2 SWAP1 PUSH2 0xB0A JUMP JUMPDEST POP POP POP PUSH1 0x1 PUSH1 0x2 DUP1 SLOAD SWAP1 POP PUSH2 0x2C7 SWAP2 SWAP1 PUSH2 0x14F4 JUMP JUMPDEST PUSH1 0x3 PUSH0 PUSH1 0x4 SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 DUP2 SWAP1 SSTORE POP PUSH1 0x4 PUSH0 DUP2 SLOAD DUP1 SWAP3 SWAP2 SWAP1 PUSH2 0x2F0 SWAP1 PUSH2 0x1527 JUMP JUMPDEST SWAP2 SWAP1 POP SSTORE POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0x305 PUSH2 0x9BB JUMP JUMPDEST PUSH2 0x30E PUSH0 PUSH2 0xA42 JUMP JUMPDEST JUMP JUMPDEST PUSH0 DUP1 PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 POP SWAP1 JUMP JUMPDEST PUSH2 0x33F PUSH2 0x9BB JUMP JUMPDEST PUSH0 PUSH1 0x3 PUSH0 DUP4 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 SLOAD SWAP1 POP PUSH1 0x2 DUP1 SLOAD SWAP1 POP DUP2 LT ISZERO DUP1 PUSH2 0x38A JUMPI POP DUP2 PUSH1 0x2 DUP3 DUP2 SLOAD DUP2 LT PUSH2 0x378 JUMPI PUSH2 0x377 PUSH2 0x156E JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH0 ADD SLOAD EQ ISZERO JUMPDEST ISZERO PUSH2 0x3CC JUMPI DUP2 PUSH1 0x40 MLOAD PUSH32 0xF55DEC0000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x3C3 SWAP2 SWAP1 PUSH2 0x15AA JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x2 PUSH1 0x1 PUSH1 0x2 DUP1 SLOAD SWAP1 POP PUSH2 0x3E0 SWAP2 SWAP1 PUSH2 0x14F4 JUMP JUMPDEST DUP2 SLOAD DUP2 LT PUSH2 0x3F1 JUMPI PUSH2 0x3F0 PUSH2 0x156E JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH1 0x2 DUP3 DUP2 SLOAD DUP2 LT PUSH2 0x411 JUMPI PUSH2 0x410 PUSH2 0x156E JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH0 DUP3 ADD SLOAD DUP2 PUSH0 ADD SSTORE PUSH1 0x1 DUP3 ADD DUP2 PUSH1 0x1 ADD SWAP1 DUP2 PUSH2 0x439 SWAP2 SWAP1 PUSH2 0x15D8 JUMP JUMPDEST POP PUSH1 0x2 DUP3 ADD DUP2 PUSH1 0x2 ADD SWAP1 DUP2 PUSH2 0x44E SWAP2 SWAP1 PUSH2 0x15D8 JUMP JUMPDEST POP PUSH1 0x3 DUP3 ADD DUP2 PUSH1 0x3 ADD SWAP1 DUP1 SLOAD PUSH2 0x465 SWAP3 SWAP2 SWAP1 PUSH2 0xB55 JUMP JUMPDEST POP SWAP1 POP POP DUP1 PUSH1 0x3 PUSH0 PUSH1 0x2 DUP5 DUP2 SLOAD DUP2 LT PUSH2 0x481 JUMPI PUSH2 0x480 PUSH2 0x156E JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH0 ADD SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 DUP2 SWAP1 SSTORE POP PUSH1 0x2 DUP1 SLOAD DUP1 PUSH2 0x4B3 JUMPI PUSH2 0x4B2 PUSH2 0x16BD JUMP JUMPDEST JUMPDEST PUSH1 0x1 SWAP1 SUB DUP2 DUP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH0 DUP1 DUP3 ADD PUSH0 SWAP1 SSTORE PUSH1 0x1 DUP3 ADD PUSH0 PUSH2 0x4DB SWAP2 SWAP1 PUSH2 0xBA3 JUMP JUMPDEST PUSH1 0x2 DUP3 ADD PUSH0 PUSH2 0x4EA SWAP2 SWAP1 PUSH2 0xBA3 JUMP JUMPDEST PUSH1 0x3 DUP3 ADD PUSH0 PUSH2 0x4F9 SWAP2 SWAP1 PUSH2 0xBE0 JUMP JUMPDEST POP POP SWAP1 SSTORE PUSH1 0x3 PUSH0 DUP4 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 PUSH0 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH2 0x51D PUSH2 0xBFE JUMP JUMPDEST PUSH0 PUSH1 0x3 PUSH0 DUP5 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 SLOAD SWAP1 POP PUSH1 0x2 DUP1 SLOAD SWAP1 POP DUP2 LT ISZERO DUP1 PUSH2 0x568 JUMPI POP DUP3 PUSH1 0x2 DUP3 DUP2 SLOAD DUP2 LT PUSH2 0x556 JUMPI PUSH2 0x555 PUSH2 0x156E JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH0 ADD SLOAD EQ ISZERO JUMPDEST ISZERO PUSH2 0x5AA JUMPI DUP3 PUSH1 0x40 MLOAD PUSH32 0xF55DEC0000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x5A1 SWAP2 SWAP1 PUSH2 0x15AA JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x2 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x5BE JUMPI PUSH2 0x5BD PUSH2 0x156E JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH1 0x40 MLOAD DUP1 PUSH1 0x80 ADD PUSH1 0x40 MSTORE SWAP1 DUP2 PUSH0 DUP3 ADD SLOAD DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x1 DUP3 ADD DUP1 SLOAD PUSH2 0x5EE SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x61A SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 ISZERO PUSH2 0x665 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x63C JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x665 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x648 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x2 DUP3 ADD DUP1 SLOAD PUSH2 0x67E SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x6AA SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 ISZERO PUSH2 0x6F5 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x6CC JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x6F5 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x6D8 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x3 DUP3 ADD DUP1 SLOAD DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD DUP1 ISZERO PUSH2 0x74B JUMPI PUSH1 0x20 MUL DUP3 ADD SWAP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 DUP1 DUP4 GT PUSH2 0x737 JUMPI JUMPDEST POP POP POP POP POP DUP2 MSTORE POP POP SWAP2 POP POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x60 PUSH1 0x2 DUP1 SLOAD DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 SWAP1 JUMPDEST DUP3 DUP3 LT ISZERO PUSH2 0x92E JUMPI DUP4 DUP3 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH1 0x40 MLOAD DUP1 PUSH1 0x80 ADD PUSH1 0x40 MSTORE SWAP1 DUP2 PUSH0 DUP3 ADD SLOAD DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x1 DUP3 ADD DUP1 SLOAD PUSH2 0x7B9 SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x7E5 SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 ISZERO PUSH2 0x830 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x807 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x830 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x813 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x2 DUP3 ADD DUP1 SLOAD PUSH2 0x849 SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x875 SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 ISZERO PUSH2 0x8C0 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x897 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x8C0 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x8A3 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x3 DUP3 ADD DUP1 SLOAD DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD DUP1 ISZERO PUSH2 0x916 JUMPI PUSH1 0x20 MUL DUP3 ADD SWAP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 DUP1 DUP4 GT PUSH2 0x902 JUMPI JUMPDEST POP POP POP POP POP DUP2 MSTORE POP POP DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x77F JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH2 0x93F PUSH2 0x9BB JUMP JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SUB PUSH2 0x9AF JUMPI PUSH0 PUSH1 0x40 MLOAD PUSH32 0x1E4FBDF700000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x9A6 SWAP2 SWAP1 PUSH2 0xDED JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH2 0x9B8 DUP2 PUSH2 0xA42 JUMP JUMPDEST POP JUMP JUMPDEST PUSH2 0x9C3 PUSH2 0xB03 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x9E1 PUSH2 0x310 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0xA40 JUMPI PUSH2 0xA04 PUSH2 0xB03 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0x118CDAA700000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0xA37 SWAP2 SWAP1 PUSH2 0xDED JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST JUMP JUMPDEST PUSH0 DUP1 PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 POP DUP2 PUSH0 DUP1 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MUL NOT AND SWAP1 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND MUL OR SWAP1 SSTORE POP DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 PUSH1 0x40 MLOAD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH0 CALLER SWAP1 POP SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD DUP3 DUP3 SSTORE SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 DUP2 ADD SWAP3 DUP3 ISZERO PUSH2 0xB44 JUMPI SWAP2 PUSH1 0x20 MUL DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0xB43 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0xB28 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0xB51 SWAP2 SWAP1 PUSH2 0xC25 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD DUP3 DUP3 SSTORE SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 DUP2 ADD SWAP3 DUP3 ISZERO PUSH2 0xB92 JUMPI PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0xB91 JUMPI DUP3 SLOAD DUP3 SSTORE SWAP2 PUSH1 0x1 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0xB76 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0xB9F SWAP2 SWAP1 PUSH2 0xC25 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST POP DUP1 SLOAD PUSH2 0xBAF SWAP1 PUSH2 0x122B JUMP JUMPDEST PUSH0 DUP3 SSTORE DUP1 PUSH1 0x1F LT PUSH2 0xBC0 JUMPI POP PUSH2 0xBDD JUMP JUMPDEST PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 DUP2 ADD SWAP1 PUSH2 0xBDC SWAP2 SWAP1 PUSH2 0xC25 JUMP JUMPDEST JUMPDEST POP JUMP JUMPDEST POP DUP1 SLOAD PUSH0 DUP3 SSTORE SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 DUP2 ADD SWAP1 PUSH2 0xBFB SWAP2 SWAP1 PUSH2 0xC25 JUMP JUMPDEST POP JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x80 ADD PUSH1 0x40 MSTORE DUP1 PUSH0 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0xC3C JUMPI PUSH0 DUP2 PUSH0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0xC26 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0xC69 JUMPI PUSH2 0xC68 PUSH2 0xC48 JUMP JUMPDEST JUMPDEST DUP3 CALLDATALOAD SWAP1 POP PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xC86 JUMPI PUSH2 0xC85 PUSH2 0xC4C JUMP JUMPDEST JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x1 DUP3 MUL DUP4 ADD GT ISZERO PUSH2 0xCA2 JUMPI PUSH2 0xCA1 PUSH2 0xC50 JUMP JUMPDEST JUMPDEST SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0xCBE JUMPI PUSH2 0xCBD PUSH2 0xC48 JUMP JUMPDEST JUMPDEST DUP3 CALLDATALOAD SWAP1 POP PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xCDB JUMPI PUSH2 0xCDA PUSH2 0xC4C JUMP JUMPDEST JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x20 DUP3 MUL DUP4 ADD GT ISZERO PUSH2 0xCF7 JUMPI PUSH2 0xCF6 PUSH2 0xC50 JUMP JUMPDEST JUMPDEST SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH0 DUP1 PUSH0 DUP1 PUSH0 DUP1 PUSH1 0x60 DUP8 DUP10 SUB SLT ISZERO PUSH2 0xD18 JUMPI PUSH2 0xD17 PUSH2 0xC40 JUMP JUMPDEST JUMPDEST PUSH0 DUP8 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xD35 JUMPI PUSH2 0xD34 PUSH2 0xC44 JUMP JUMPDEST JUMPDEST PUSH2 0xD41 DUP10 DUP3 DUP11 ADD PUSH2 0xC54 JUMP JUMPDEST SWAP7 POP SWAP7 POP POP PUSH1 0x20 DUP8 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xD64 JUMPI PUSH2 0xD63 PUSH2 0xC44 JUMP JUMPDEST JUMPDEST PUSH2 0xD70 DUP10 DUP3 DUP11 ADD PUSH2 0xC54 JUMP JUMPDEST SWAP5 POP SWAP5 POP POP PUSH1 0x40 DUP8 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xD93 JUMPI PUSH2 0xD92 PUSH2 0xC44 JUMP JUMPDEST JUMPDEST PUSH2 0xD9F DUP10 DUP3 DUP11 ADD PUSH2 0xCA9 JUMP JUMPDEST SWAP3 POP SWAP3 POP POP SWAP3 SWAP6 POP SWAP3 SWAP6 POP SWAP3 SWAP6 JUMP JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0xDD7 DUP3 PUSH2 0xDAE JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0xDE7 DUP2 PUSH2 0xDCD JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0xE00 PUSH0 DUP4 ADD DUP5 PUSH2 0xDDE JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0xE18 DUP2 PUSH2 0xE06 JUMP JUMPDEST DUP2 EQ PUSH2 0xE22 JUMPI PUSH0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0xE33 DUP2 PUSH2 0xE0F JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xE4E JUMPI PUSH2 0xE4D PUSH2 0xC40 JUMP JUMPDEST JUMPDEST PUSH0 PUSH2 0xE5B DUP5 DUP3 DUP6 ADD PUSH2 0xE25 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0xE6D DUP2 PUSH2 0xE06 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xEAA JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0xE8F JUMP JUMPDEST PUSH0 DUP5 DUP5 ADD MSTORE POP POP POP POP JUMP JUMPDEST PUSH0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0xECF DUP3 PUSH2 0xE73 JUMP JUMPDEST PUSH2 0xED9 DUP2 DUP6 PUSH2 0xE7D JUMP JUMPDEST SWAP4 POP PUSH2 0xEE9 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0xE8D JUMP JUMPDEST PUSH2 0xEF2 DUP2 PUSH2 0xEB5 JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0xF31 DUP4 DUP4 PUSH2 0xE64 JUMP JUMPDEST PUSH1 0x20 DUP4 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0xF53 DUP3 PUSH2 0xEFD JUMP JUMPDEST PUSH2 0xF5D DUP2 DUP6 PUSH2 0xF07 JUMP JUMPDEST SWAP4 POP PUSH2 0xF68 DUP4 PUSH2 0xF17 JUMP JUMPDEST DUP1 PUSH0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xF98 JUMPI DUP2 MLOAD PUSH2 0xF7F DUP9 DUP3 PUSH2 0xF26 JUMP JUMPDEST SWAP8 POP PUSH2 0xF8A DUP4 PUSH2 0xF3D JUMP JUMPDEST SWAP3 POP POP PUSH1 0x1 DUP2 ADD SWAP1 POP PUSH2 0xF6B JUMP JUMPDEST POP DUP6 SWAP4 POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x80 DUP4 ADD PUSH0 DUP4 ADD MLOAD PUSH2 0xFBA PUSH0 DUP7 ADD DUP3 PUSH2 0xE64 JUMP JUMPDEST POP PUSH1 0x20 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x20 DUP7 ADD MSTORE PUSH2 0xFD2 DUP3 DUP3 PUSH2 0xEC5 JUMP JUMPDEST SWAP2 POP POP PUSH1 0x40 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x40 DUP7 ADD MSTORE PUSH2 0xFEC DUP3 DUP3 PUSH2 0xEC5 JUMP JUMPDEST SWAP2 POP POP PUSH1 0x60 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x60 DUP7 ADD MSTORE PUSH2 0x1006 DUP3 DUP3 PUSH2 0xF49 JUMP JUMPDEST SWAP2 POP POP DUP1 SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0x102B DUP2 DUP5 PUSH2 0xFA5 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x80 DUP4 ADD PUSH0 DUP4 ADD MLOAD PUSH2 0x1071 PUSH0 DUP7 ADD DUP3 PUSH2 0xE64 JUMP JUMPDEST POP PUSH1 0x20 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x20 DUP7 ADD MSTORE PUSH2 0x1089 DUP3 DUP3 PUSH2 0xEC5 JUMP JUMPDEST SWAP2 POP POP PUSH1 0x40 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x40 DUP7 ADD MSTORE PUSH2 0x10A3 DUP3 DUP3 PUSH2 0xEC5 JUMP JUMPDEST SWAP2 POP POP PUSH1 0x60 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x60 DUP7 ADD MSTORE PUSH2 0x10BD DUP3 DUP3 PUSH2 0xF49 JUMP JUMPDEST SWAP2 POP POP DUP1 SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH2 0x10D5 DUP4 DUP4 PUSH2 0x105C JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0x10F3 DUP3 PUSH2 0x1033 JUMP JUMPDEST PUSH2 0x10FD DUP2 DUP6 PUSH2 0x103D JUMP JUMPDEST SWAP4 POP DUP4 PUSH1 0x20 DUP3 MUL DUP6 ADD PUSH2 0x110F DUP6 PUSH2 0x104D JUMP JUMPDEST DUP1 PUSH0 JUMPDEST DUP6 DUP2 LT ISZERO PUSH2 0x114A JUMPI DUP5 DUP5 SUB DUP10 MSTORE DUP2 MLOAD PUSH2 0x112B DUP6 DUP3 PUSH2 0x10CA JUMP JUMPDEST SWAP5 POP PUSH2 0x1136 DUP4 PUSH2 0x10DD JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP11 ADD SWAP10 POP POP PUSH1 0x1 DUP2 ADD SWAP1 POP PUSH2 0x1112 JUMP JUMPDEST POP DUP3 SWAP8 POP DUP8 SWAP6 POP POP POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0x1174 DUP2 DUP5 PUSH2 0x10E9 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x1185 DUP2 PUSH2 0xDCD JUMP JUMPDEST DUP2 EQ PUSH2 0x118F JUMPI PUSH0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x11A0 DUP2 PUSH2 0x117C JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x11BB JUMPI PUSH2 0x11BA PUSH2 0xC40 JUMP JUMPDEST JUMPDEST PUSH0 PUSH2 0x11C8 DUP5 DUP3 DUP6 ADD PUSH2 0x1192 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x1242 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 SUB PUSH2 0x1255 JUMPI PUSH2 0x1254 PUSH2 0x11FE JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP DUP2 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 PUSH1 0x1F DUP4 ADD DIV SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP3 DUP3 SHL SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x8 DUP4 MUL PUSH2 0x12B7 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 PUSH2 0x127C JUMP JUMPDEST PUSH2 0x12C1 DUP7 DUP4 PUSH2 0x127C JUMP JUMPDEST SWAP6 POP DUP1 NOT DUP5 AND SWAP4 POP DUP1 DUP7 AND DUP5 OR SWAP3 POP POP POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0x12FC PUSH2 0x12F7 PUSH2 0x12F2 DUP5 PUSH2 0xE06 JUMP JUMPDEST PUSH2 0x12D9 JUMP JUMPDEST PUSH2 0xE06 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x1315 DUP4 PUSH2 0x12E2 JUMP JUMPDEST PUSH2 0x1329 PUSH2 0x1321 DUP3 PUSH2 0x1303 JUMP JUMPDEST DUP5 DUP5 SLOAD PUSH2 0x1288 JUMP JUMPDEST DUP3 SSTORE POP POP POP POP JUMP JUMPDEST PUSH0 SWAP1 JUMP JUMPDEST PUSH2 0x133D PUSH2 0x1331 JUMP JUMPDEST PUSH2 0x1348 DUP2 DUP5 DUP5 PUSH2 0x130C JUMP JUMPDEST POP POP POP JUMP JUMPDEST JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x136B JUMPI PUSH2 0x1360 PUSH0 DUP3 PUSH2 0x1335 JUMP JUMPDEST PUSH1 0x1 DUP2 ADD SWAP1 POP PUSH2 0x134E JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x1F DUP3 GT ISZERO PUSH2 0x13B0 JUMPI PUSH2 0x1381 DUP2 PUSH2 0x125B JUMP JUMPDEST PUSH2 0x138A DUP5 PUSH2 0x126D JUMP JUMPDEST DUP2 ADD PUSH1 0x20 DUP6 LT ISZERO PUSH2 0x1399 JUMPI DUP2 SWAP1 POP JUMPDEST PUSH2 0x13AD PUSH2 0x13A5 DUP6 PUSH2 0x126D JUMP JUMPDEST DUP4 ADD DUP3 PUSH2 0x134D JUMP JUMPDEST POP POP JUMPDEST POP POP POP JUMP JUMPDEST PUSH0 DUP3 DUP3 SHR SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH2 0x13D0 PUSH0 NOT DUP5 PUSH1 0x8 MUL PUSH2 0x13B5 JUMP JUMPDEST NOT DUP1 DUP4 AND SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH2 0x13E8 DUP4 DUP4 PUSH2 0x13C1 JUMP JUMPDEST SWAP2 POP DUP3 PUSH1 0x2 MUL DUP3 OR SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x1401 DUP3 PUSH2 0xE73 JUMP JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x141A JUMPI PUSH2 0x1419 PUSH2 0x11D1 JUMP JUMPDEST JUMPDEST PUSH2 0x1424 DUP3 SLOAD PUSH2 0x122B JUMP JUMPDEST PUSH2 0x142F DUP3 DUP3 DUP6 PUSH2 0x136F JUMP JUMPDEST PUSH0 PUSH1 0x20 SWAP1 POP PUSH1 0x1F DUP4 GT PUSH1 0x1 DUP2 EQ PUSH2 0x1460 JUMPI PUSH0 DUP5 ISZERO PUSH2 0x144E JUMPI DUP3 DUP8 ADD MLOAD SWAP1 POP JUMPDEST PUSH2 0x1458 DUP6 DUP3 PUSH2 0x13DD JUMP JUMPDEST DUP7 SSTORE POP PUSH2 0x14BF JUMP JUMPDEST PUSH1 0x1F NOT DUP5 AND PUSH2 0x146E DUP7 PUSH2 0x125B JUMP JUMPDEST PUSH0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x1495 JUMPI DUP5 DUP10 ADD MLOAD DUP3 SSTORE PUSH1 0x1 DUP3 ADD SWAP2 POP PUSH1 0x20 DUP6 ADD SWAP5 POP PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x1470 JUMP JUMPDEST DUP7 DUP4 LT ISZERO PUSH2 0x14B2 JUMPI DUP5 DUP10 ADD MLOAD PUSH2 0x14AE PUSH1 0x1F DUP10 AND DUP3 PUSH2 0x13C1 JUMP JUMPDEST DUP4 SSTORE POP JUMPDEST PUSH1 0x1 PUSH1 0x2 DUP9 MUL ADD DUP9 SSTORE POP POP POP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH0 PUSH2 0x14FE DUP3 PUSH2 0xE06 JUMP JUMPDEST SWAP2 POP PUSH2 0x1509 DUP4 PUSH2 0xE06 JUMP JUMPDEST SWAP3 POP DUP3 DUP3 SUB SWAP1 POP DUP2 DUP2 GT ISZERO PUSH2 0x1521 JUMPI PUSH2 0x1520 PUSH2 0x14C7 JUMP JUMPDEST JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH2 0x1531 DUP3 PUSH2 0xE06 JUMP JUMPDEST SWAP2 POP PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 SUB PUSH2 0x1563 JUMPI PUSH2 0x1562 PUSH2 0x14C7 JUMP JUMPDEST JUMPDEST PUSH1 0x1 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH2 0x15A4 DUP2 PUSH2 0xE06 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x15BD PUSH0 DUP4 ADD DUP5 PUSH2 0x159B JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 SLOAD SWAP1 POP PUSH2 0x15D1 DUP2 PUSH2 0x122B JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP2 DUP2 SUB PUSH2 0x15E6 JUMPI POP POP PUSH2 0x16BB JUMP JUMPDEST PUSH2 0x15EF DUP3 PUSH2 0x15C3 JUMP JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1608 JUMPI PUSH2 0x1607 PUSH2 0x11D1 JUMP JUMPDEST JUMPDEST PUSH2 0x1612 DUP3 SLOAD PUSH2 0x122B JUMP JUMPDEST PUSH2 0x161D DUP3 DUP3 DUP6 PUSH2 0x136F JUMP JUMPDEST PUSH0 PUSH1 0x1F DUP4 GT PUSH1 0x1 DUP2 EQ PUSH2 0x164A JUMPI PUSH0 DUP5 ISZERO PUSH2 0x1638 JUMPI DUP3 DUP8 ADD SLOAD SWAP1 POP JUMPDEST PUSH2 0x1642 DUP6 DUP3 PUSH2 0x13DD JUMP JUMPDEST DUP7 SSTORE POP PUSH2 0x16B4 JUMP JUMPDEST PUSH1 0x1F NOT DUP5 AND PUSH2 0x1658 DUP8 PUSH2 0x125B JUMP JUMPDEST SWAP7 POP PUSH2 0x1663 DUP7 PUSH2 0x125B JUMP JUMPDEST PUSH0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x168A JUMPI DUP5 DUP10 ADD SLOAD DUP3 SSTORE PUSH1 0x1 DUP3 ADD SWAP2 POP PUSH1 0x1 DUP6 ADD SWAP5 POP PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x1665 JUMP JUMPDEST DUP7 DUP4 LT ISZERO PUSH2 0x16A7 JUMPI DUP5 DUP10 ADD SLOAD PUSH2 0x16A3 PUSH1 0x1F DUP10 AND DUP3 PUSH2 0x13C1 JUMP JUMPDEST DUP4 SSTORE POP JUMPDEST PUSH1 0x1 PUSH1 0x2 DUP9 MUL ADD DUP9 SSTORE POP POP POP JUMPDEST POP POP POP POP POP POP JUMPDEST JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x31 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 JUMPDEST EXTCODEHASH JUMPDEST BASEFEE MOD 0xC4 0xE3 0xE1 0xD7 SWAP6 0x5E 0x22 SWAP5 SWAP11 0x23 0x4E CREATE2 SWAP9 SWAP10 0xDA 0xE5 EXTCODEHASH 0xC0 DUP13 DUP8 0xB6 CODESIZE 0xF 0xCB PUSH27 0xED3664736F6C634300081400330000000000000000000000000000 ",
"sourceMap": "116:2862:2:-:0;;;220:29;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;878:1;856:23;;116:2862;;;;;;;;;;148:10;1297:1:0;1273:26;;:12;:26;;;1269:95;;1350:1;1322:31;;;;;;;;;;;:::i;:::-;;;;;;;;1269:95;1373:32;1392:12;1373:18;;;:32;;:::i;:::-;1225:187;116:2862:2;;2912:187:0;2985:16;3004:6;;;;;;;;;;;2985:25;;3029:8;3020:6;;:17;;;;;;;;;;;;;;;;;;3083:8;3052:40;;3073:8;3052:40;;;;;;;;;;;;2975:124;2912:187;:::o;7:99:3:-;59:6;93:5;87:12;77:22;;7:99;;;:::o;112:180::-;160:77;157:1;150:88;257:4;254:1;247:15;281:4;278:1;271:15;298:180;346:77;343:1;336:88;443:4;440:1;433:15;467:4;464:1;457:15;484:320;528:6;565:1;559:4;555:12;545:22;;612:1;606:4;602:12;633:18;623:81;;689:4;681:6;677:17;667:27;;623:81;751:2;743:6;740:14;720:18;717:38;714:84;;770:18;;:::i;:::-;714:84;535:269;484:320;;;:::o;810:141::-;859:4;882:3;874:11;;905:3;902:1;895:14;939:4;936:1;926:18;918:26;;810:141;;;:::o;957:93::-;994:6;1041:2;1036;1029:5;1025:14;1021:23;1011:33;;957:93;;;:::o;1056:107::-;1100:8;1150:5;1144:4;1140:16;1119:37;;1056:107;;;;:::o;1169:393::-;1238:6;1288:1;1276:10;1272:18;1311:97;1341:66;1330:9;1311:97;:::i;:::-;1429:39;1459:8;1448:9;1429:39;:::i;:::-;1417:51;;1501:4;1497:9;1490:5;1486:21;1477:30;;1550:4;1540:8;1536:19;1529:5;1526:30;1516:40;;1245:317;;1169:393;;;;;:::o;1568:77::-;1605:7;1634:5;1623:16;;1568:77;;;:::o;1651:60::-;1679:3;1700:5;1693:12;;1651:60;;;:::o;1717:142::-;1767:9;1800:53;1818:34;1827:24;1845:5;1827:24;:::i;:::-;1818:34;:::i;:::-;1800:53;:::i;:::-;1787:66;;1717:142;;;:::o;1865:75::-;1908:3;1929:5;1922:12;;1865:75;;;:::o;1946:269::-;2056:39;2087:7;2056:39;:::i;:::-;2117:91;2166:41;2190:16;2166:41;:::i;:::-;2158:6;2151:4;2145:11;2117:91;:::i;:::-;2111:4;2104:105;2022:193;1946:269;;;:::o;2221:73::-;2266:3;2221:73;:::o;2300:189::-;2377:32;;:::i;:::-;2418:65;2476:6;2468;2462:4;2418:65;:::i;:::-;2353:136;2300:189;;:::o;2495:186::-;2555:120;2572:3;2565:5;2562:14;2555:120;;;2626:39;2663:1;2656:5;2626:39;:::i;:::-;2599:1;2592:5;2588:13;2579:22;;2555:120;;;2495:186;;:::o;2687:543::-;2788:2;2783:3;2780:11;2777:446;;;2822:38;2854:5;2822:38;:::i;:::-;2906:29;2924:10;2906:29;:::i;:::-;2896:8;2892:44;3089:2;3077:10;3074:18;3071:49;;;3110:8;3095:23;;3071:49;3133:80;3189:22;3207:3;3189:22;:::i;:::-;3179:8;3175:37;3162:11;3133:80;:::i;:::-;2792:431;;2777:446;2687:543;;;:::o;3236:117::-;3290:8;3340:5;3334:4;3330:16;3309:37;;3236:117;;;;:::o;3359:169::-;3403:6;3436:51;3484:1;3480:6;3472:5;3469:1;3465:13;3436:51;:::i;:::-;3432:56;3517:4;3511;3507:15;3497:25;;3410:118;3359:169;;;;:::o;3533:295::-;3609:4;3755:29;3780:3;3774:4;3755:29;:::i;:::-;3747:37;;3817:3;3814:1;3810:11;3804:4;3801:21;3793:29;;3533:295;;;;:::o;3833:1395::-;3950:37;3983:3;3950:37;:::i;:::-;4052:18;4044:6;4041:30;4038:56;;;4074:18;;:::i;:::-;4038:56;4118:38;4150:4;4144:11;4118:38;:::i;:::-;4203:67;4263:6;4255;4249:4;4203:67;:::i;:::-;4297:1;4321:4;4308:17;;4353:2;4345:6;4342:14;4370:1;4365:618;;;;5027:1;5044:6;5041:77;;;5093:9;5088:3;5084:19;5078:26;5069:35;;5041:77;5144:67;5204:6;5197:5;5144:67;:::i;:::-;5138:4;5131:81;5000:222;4335:887;;4365:618;4417:4;4413:9;4405:6;4401:22;4451:37;4483:4;4451:37;:::i;:::-;4510:1;4524:208;4538:7;4535:1;4532:14;4524:208;;;4617:9;4612:3;4608:19;4602:26;4594:6;4587:42;4668:1;4660:6;4656:14;4646:24;;4715:2;4704:9;4700:18;4687:31;;4561:4;4558:1;4554:12;4549:17;;4524:208;;;4760:6;4751:7;4748:19;4745:179;;;4818:9;4813:3;4809:19;4803:26;4861:48;4903:4;4895:6;4891:17;4880:9;4861:48;:::i;:::-;4853:6;4846:64;4768:156;4745:179;4970:1;4966;4958:6;4954:14;4950:22;4944:4;4937:36;4372:611;;;4335:887;;3925:1303;;;3833:1395;;:::o;5234:126::-;5271:7;5311:42;5304:5;5300:54;5289:65;;5234:126;;;:::o;5366:96::-;5403:7;5432:24;5450:5;5432:24;:::i;:::-;5421:35;;5366:96;;;:::o;5468:118::-;5555:24;5573:5;5555:24;:::i;:::-;5550:3;5543:37;5468:118;;:::o;5592:222::-;5685:4;5723:2;5712:9;5708:18;5700:26;;5736:71;5804:1;5793:9;5789:17;5780:6;5736:71;:::i;:::-;5592:222;;;;:::o;116:2862:2:-;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {
"@_checkOwner_84": {
"entryPoint": 2491,
"id": 84,
"parameterSlots": 0,
"returnSlots": 0
},
"@_msgSender_159": {
"entryPoint": 2819,
"id": 159,
"parameterSlots": 0,
"returnSlots": 1
},
"@_transferOwnership_146": {
"entryPoint": 2626,
"id": 146,
"parameterSlots": 1,
"returnSlots": 0
},
"@addContact_248": {
"entryPoint": 329,
"id": 248,
"parameterSlots": 6,
"returnSlots": 0
},
"@deleteContact_308": {
"entryPoint": 823,
"id": 308,
"parameterSlots": 1,
"returnSlots": 0
},
"@getAllContacts_353": {
"entryPoint": 1884,
"id": 353,
"parameterSlots": 0,
"returnSlots": 1
},
"@getContact_343": {
"entryPoint": 1301,
"id": 343,
"parameterSlots": 1,
"returnSlots": 1
},
"@owner_67": {
"entryPoint": 784,
"id": 67,
"parameterSlots": 0,
"returnSlots": 1
},
"@renounceOwnership_98": {
"entryPoint": 765,
"id": 98,
"parameterSlots": 0,
"returnSlots": 0
},
"@transferOwnership_126": {
"entryPoint": 2359,
"id": 126,
"parameterSlots": 1,
"returnSlots": 0
},
"abi_decode_t_address": {
"entryPoint": 4498,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_t_array$_t_uint256_$dyn_calldata_ptr": {
"entryPoint": 3241,
"id": null,
"parameterSlots": 2,
"returnSlots": 2
},
"abi_decode_t_string_calldata_ptr": {
"entryPoint": 3156,
"id": null,
"parameterSlots": 2,
"returnSlots": 2
},
"abi_decode_t_uint256": {
"entryPoint": 3621,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_address": {
"entryPoint": 4518,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_string_calldata_ptrt_string_calldata_ptrt_array$_t_uint256_$dyn_calldata_ptr": {
"entryPoint": 3326,
"id": null,
"parameterSlots": 2,
"returnSlots": 6
},
"abi_decode_tuple_t_uint256": {
"entryPoint": 3641,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encodeUpdatedPos_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr": {
"entryPoint": 4298,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encodeUpdatedPos_t_uint256_to_t_uint256": {
"entryPoint": 3878,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_address_to_t_address_fromStack": {
"entryPoint": 3550,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_fromStack": {
"entryPoint": 4329,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr": {
"entryPoint": 3913,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_string_memory_ptr_to_t_string_memory_ptr": {
"entryPoint": 3781,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr": {
"entryPoint": 4188,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr_fromStack": {
"entryPoint": 4005,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_uint256_to_t_uint256": {
"entryPoint": 3684,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_uint256_to_t_uint256_fromStack": {
"entryPoint": 5531,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_tuple_t_address__to_t_address__fromStack_reversed": {
"entryPoint": 3565,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr__to_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr__fromStack_reversed": {
"entryPoint": 4444,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_struct$_Contact_$197_memory_ptr__to_t_struct$_Contact_$197_memory_ptr__fromStack_reversed": {
"entryPoint": 4115,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": {
"entryPoint": 5546,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": null,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_dataslot_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr": {
"entryPoint": 4173,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_dataslot_t_array$_t_uint256_$dyn_memory_ptr": {
"entryPoint": 3863,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_dataslot_t_string_storage": {
"entryPoint": 4699,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_length_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr": {
"entryPoint": 4147,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_length_t_array$_t_uint256_$dyn_memory_ptr": {
"entryPoint": 3837,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_length_t_string_memory_ptr": {
"entryPoint": 3699,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_length_t_string_storage": {
"entryPoint": 5571,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_nextElement_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr": {
"entryPoint": 4317,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_nextElement_t_array$_t_uint256_$dyn_memory_ptr": {
"entryPoint": 3901,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_fromStack": {
"entryPoint": 4157,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_array$_t_uint256_$dyn_memory_ptr": {
"entryPoint": 3847,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr": {
"entryPoint": 3709,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"checked_sub_t_uint256": {
"entryPoint": 5364,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"clean_up_bytearray_end_slots_t_string_storage": {
"entryPoint": 4975,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"cleanup_t_address": {
"entryPoint": 3533,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint160": {
"entryPoint": 3502,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint256": {
"entryPoint": 3590,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"clear_storage_range_t_bytes1": {
"entryPoint": 4941,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"convert_t_uint256_to_t_uint256": {
"entryPoint": 4834,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage": {
"entryPoint": 5112,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"copy_byte_array_to_storage_from_t_string_storage_to_t_string_storage": {
"entryPoint": 5592,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"copy_memory_to_memory_with_cleanup": {
"entryPoint": 3725,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"divide_by_32_ceil": {
"entryPoint": 4717,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"extract_byte_array_length": {
"entryPoint": 4651,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"extract_used_part_and_set_length_of_short_byte_array": {
"entryPoint": 5085,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"identity": {
"entryPoint": 4825,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"increment_t_uint256": {
"entryPoint": 5415,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"mask_bytes_dynamic": {
"entryPoint": 5057,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"panic_error_0x11": {
"entryPoint": 5319,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x22": {
"entryPoint": 4606,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x31": {
"entryPoint": 5821,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x32": {
"entryPoint": 5486,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x41": {
"entryPoint": 4561,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"prepare_store_t_uint256": {
"entryPoint": 4867,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"revert_error_15abf5612cd996bc235ba1e55a4a30ac60e6bb601ff7ba4ad3f179b6be8d0490": {
"entryPoint": 3148,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d": {
"entryPoint": 3144,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef": {
"entryPoint": 3152,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": 3140,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 3136,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"round_up_to_mul_of_32": {
"entryPoint": 3765,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"shift_left_dynamic": {
"entryPoint": 4732,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"shift_right_unsigned_dynamic": {
"entryPoint": 5045,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"storage_set_to_zero_t_uint256": {
"entryPoint": 4917,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"update_byte_slice_dynamic32": {
"entryPoint": 4744,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"update_storage_value_t_uint256_to_t_uint256": {
"entryPoint": 4876,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"validator_revert_t_address": {
"entryPoint": 4476,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"validator_revert_t_uint256": {
"entryPoint": 3599,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"zero_value_for_split_t_uint256": {
"entryPoint": 4913,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:20957:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "47:35:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "57:19:3",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "73:2:3",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "67:5:3"
},
"nodeType": "YulFunctionCall",
"src": "67:9:3"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "57:6:3"
}
]
}
]
},
"name": "allocate_unbounded",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "40:6:3",
"type": ""
}
],
"src": "7:75:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "177:28:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "194:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "197:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "187:6:3"
},
"nodeType": "YulFunctionCall",
"src": "187:12:3"
},
"nodeType": "YulExpressionStatement",
"src": "187:12:3"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulFunctionDefinition",
"src": "88:117:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "300:28:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "317:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "320:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "310:6:3"
},
"nodeType": "YulFunctionCall",
"src": "310:12:3"
},
"nodeType": "YulExpressionStatement",
"src": "310:12:3"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulFunctionDefinition",
"src": "211:117:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "423:28:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "440:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "443:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "433:6:3"
},
"nodeType": "YulFunctionCall",
"src": "433:12:3"
},
"nodeType": "YulExpressionStatement",
"src": "433:12:3"
}
]
},
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulFunctionDefinition",
"src": "334:117:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "546:28:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "563:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "566:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "556:6:3"
},
"nodeType": "YulFunctionCall",
"src": "556:12:3"
},
"nodeType": "YulExpressionStatement",
"src": "556:12:3"
}
]
},
"name": "revert_error_15abf5612cd996bc235ba1e55a4a30ac60e6bb601ff7ba4ad3f179b6be8d0490",
"nodeType": "YulFunctionDefinition",
"src": "457:117:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "669:28:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "686:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "689:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "679:6:3"
},
"nodeType": "YulFunctionCall",
"src": "679:12:3"
},
"nodeType": "YulExpressionStatement",
"src": "679:12:3"
}
]
},
"name": "revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef",
"nodeType": "YulFunctionDefinition",
"src": "580:117:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "792:478:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "841:83:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulIdentifier",
"src": "843:77:3"
},
"nodeType": "YulFunctionCall",
"src": "843:79:3"
},
"nodeType": "YulExpressionStatement",
"src": "843:79:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "820:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "828:4:3",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "816:3:3"
},
"nodeType": "YulFunctionCall",
"src": "816:17:3"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "835:3:3"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "812:3:3"
},
"nodeType": "YulFunctionCall",
"src": "812:27:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "805:6:3"
},
"nodeType": "YulFunctionCall",
"src": "805:35:3"
},
"nodeType": "YulIf",
"src": "802:122:3"
},
{
"nodeType": "YulAssignment",
"src": "933:30:3",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "956:6:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "943:12:3"
},
"nodeType": "YulFunctionCall",
"src": "943:20:3"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "933:6:3"
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1006:83:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_15abf5612cd996bc235ba1e55a4a30ac60e6bb601ff7ba4ad3f179b6be8d0490",
"nodeType": "YulIdentifier",
"src": "1008:77:3"
},
"nodeType": "YulFunctionCall",
"src": "1008:79:3"
},
"nodeType": "YulExpressionStatement",
"src": "1008:79:3"
}
]
},
"condition": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "978:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "986:18:3",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "975:2:3"
},
"nodeType": "YulFunctionCall",
"src": "975:30:3"
},
"nodeType": "YulIf",
"src": "972:117:3"
},
{
"nodeType": "YulAssignment",
"src": "1098:29:3",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1114:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1122:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1110:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1110:17:3"
},
"variableNames": [
{
"name": "arrayPos",
"nodeType": "YulIdentifier",
"src": "1098:8:3"
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1181:83:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef",
"nodeType": "YulIdentifier",
"src": "1183:77:3"
},
"nodeType": "YulFunctionCall",
"src": "1183:79:3"
},
"nodeType": "YulExpressionStatement",
"src": "1183:79:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "arrayPos",
"nodeType": "YulIdentifier",
"src": "1146:8:3"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1160:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1168:4:3",
"type": "",
"value": "0x01"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "1156:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1156:17:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1142:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1142:32:3"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "1176:3:3"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "1139:2:3"
},
"nodeType": "YulFunctionCall",
"src": "1139:41:3"
},
"nodeType": "YulIf",
"src": "1136:128:3"
}
]
},
"name": "abi_decode_t_string_calldata_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "759:6:3",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "767:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "arrayPos",
"nodeType": "YulTypedName",
"src": "775:8:3",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "785:6:3",
"type": ""
}
],
"src": "717:553:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1383:478:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1432:83:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulIdentifier",
"src": "1434:77:3"
},
"nodeType": "YulFunctionCall",
"src": "1434:79:3"
},
"nodeType": "YulExpressionStatement",
"src": "1434:79:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1411:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1419:4:3",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1407:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1407:17:3"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "1426:3:3"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "1403:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1403:27:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "1396:6:3"
},
"nodeType": "YulFunctionCall",
"src": "1396:35:3"
},
"nodeType": "YulIf",
"src": "1393:122:3"
},
{
"nodeType": "YulAssignment",
"src": "1524:30:3",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1547:6:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "1534:12:3"
},
"nodeType": "YulFunctionCall",
"src": "1534:20:3"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1524:6:3"
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1597:83:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_15abf5612cd996bc235ba1e55a4a30ac60e6bb601ff7ba4ad3f179b6be8d0490",
"nodeType": "YulIdentifier",
"src": "1599:77:3"
},
"nodeType": "YulFunctionCall",
"src": "1599:79:3"
},
"nodeType": "YulExpressionStatement",
"src": "1599:79:3"
}
]
},
"condition": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1569:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1577:18:3",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "1566:2:3"
},
"nodeType": "YulFunctionCall",
"src": "1566:30:3"
},
"nodeType": "YulIf",
"src": "1563:117:3"
},
{
"nodeType": "YulAssignment",
"src": "1689:29:3",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "1705:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1713:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1701:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1701:17:3"
},
"variableNames": [
{
"name": "arrayPos",
"nodeType": "YulIdentifier",
"src": "1689:8:3"
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1772:83:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef",
"nodeType": "YulIdentifier",
"src": "1774:77:3"
},
"nodeType": "YulFunctionCall",
"src": "1774:79:3"
},
"nodeType": "YulExpressionStatement",
"src": "1774:79:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "arrayPos",
"nodeType": "YulIdentifier",
"src": "1737:8:3"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1751:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1759:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "1747:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1747:17:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1733:3:3"
},
"nodeType": "YulFunctionCall",
"src": "1733:32:3"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "1767:3:3"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "1730:2:3"
},
"nodeType": "YulFunctionCall",
"src": "1730:41:3"
},
"nodeType": "YulIf",
"src": "1727:128:3"
}
]
},
"name": "abi_decode_t_array$_t_uint256_$dyn_calldata_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1350:6:3",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "1358:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "arrayPos",
"nodeType": "YulTypedName",
"src": "1366:8:3",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "1376:6:3",
"type": ""
}
],
"src": "1293:568:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2042:1074:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2088:83:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "2090:77:3"
},
"nodeType": "YulFunctionCall",
"src": "2090:79:3"
},
"nodeType": "YulExpressionStatement",
"src": "2090:79:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2063:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2072:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "2059:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2059:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2084:2:3",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "2055:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2055:32:3"
},
"nodeType": "YulIf",
"src": "2052:119:3"
},
{
"nodeType": "YulBlock",
"src": "2181:297:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2196:45:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2227:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2238:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2223:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2223:17:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "2210:12:3"
},
"nodeType": "YulFunctionCall",
"src": "2210:31:3"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "2200:6:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "2288:83:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulIdentifier",
"src": "2290:77:3"
},
"nodeType": "YulFunctionCall",
"src": "2290:79:3"
},
"nodeType": "YulExpressionStatement",
"src": "2290:79:3"
}
]
},
"condition": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2260:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2268:18:3",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "2257:2:3"
},
"nodeType": "YulFunctionCall",
"src": "2257:30:3"
},
"nodeType": "YulIf",
"src": "2254:117:3"
},
{
"nodeType": "YulAssignment",
"src": "2385:83:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2440:9:3"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2451:6:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2436:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2436:22:3"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2460:7:3"
}
],
"functionName": {
"name": "abi_decode_t_string_calldata_ptr",
"nodeType": "YulIdentifier",
"src": "2403:32:3"
},
"nodeType": "YulFunctionCall",
"src": "2403:65:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2385:6:3"
},
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "2393:6:3"
}
]
}
]
},
{
"nodeType": "YulBlock",
"src": "2488:298:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2503:46:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2534:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2545:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2530:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2530:18:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "2517:12:3"
},
"nodeType": "YulFunctionCall",
"src": "2517:32:3"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "2507:6:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "2596:83:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulIdentifier",
"src": "2598:77:3"
},
"nodeType": "YulFunctionCall",
"src": "2598:79:3"
},
"nodeType": "YulExpressionStatement",
"src": "2598:79:3"
}
]
},
"condition": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2568:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2576:18:3",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "2565:2:3"
},
"nodeType": "YulFunctionCall",
"src": "2565:30:3"
},
"nodeType": "YulIf",
"src": "2562:117:3"
},
{
"nodeType": "YulAssignment",
"src": "2693:83:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2748:9:3"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2759:6:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2744:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2744:22:3"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2768:7:3"
}
],
"functionName": {
"name": "abi_decode_t_string_calldata_ptr",
"nodeType": "YulIdentifier",
"src": "2711:32:3"
},
"nodeType": "YulFunctionCall",
"src": "2711:65:3"
},
"variableNames": [
{
"name": "value2",
"nodeType": "YulIdentifier",
"src": "2693:6:3"
},
{
"name": "value3",
"nodeType": "YulIdentifier",
"src": "2701:6:3"
}
]
}
]
},
{
"nodeType": "YulBlock",
"src": "2796:313:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2811:46:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2842:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2853:2:3",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2838:3:3"
},
"nodeType": "YulFunctionCall",
"src": "2838:18:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "2825:12:3"
},
"nodeType": "YulFunctionCall",
"src": "2825:32:3"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "2815:6:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "2904:83:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulIdentifier",
"src": "2906:77:3"
},
"nodeType": "YulFunctionCall",
"src": "2906:79:3"
},
"nodeType": "YulExpressionStatement",
"src": "2906:79:3"
}
]
},
"condition": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2876:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2884:18:3",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "2873:2:3"
},
"nodeType": "YulFunctionCall",
"src": "2873:30:3"
},
"nodeType": "YulIf",
"src": "2870:117:3"
},
{
"nodeType": "YulAssignment",
"src": "3001:98:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3071:9:3"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "3082:6:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3067:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3067:22:3"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "3091:7:3"
}
],
"functionName": {
"name": "abi_decode_t_array$_t_uint256_$dyn_calldata_ptr",
"nodeType": "YulIdentifier",
"src": "3019:47:3"
},
"nodeType": "YulFunctionCall",
"src": "3019:80:3"
},
"variableNames": [
{
"name": "value4",
"nodeType": "YulIdentifier",
"src": "3001:6:3"
},
{
"name": "value5",
"nodeType": "YulIdentifier",
"src": "3009:6:3"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_string_calldata_ptrt_string_calldata_ptrt_array$_t_uint256_$dyn_calldata_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1972:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "1983:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1995:6:3",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "2003:6:3",
"type": ""
},
{
"name": "value2",
"nodeType": "YulTypedName",
"src": "2011:6:3",
"type": ""
},
{
"name": "value3",
"nodeType": "YulTypedName",
"src": "2019:6:3",
"type": ""
},
{
"name": "value4",
"nodeType": "YulTypedName",
"src": "2027:6:3",
"type": ""
},
{
"name": "value5",
"nodeType": "YulTypedName",
"src": "2035:6:3",
"type": ""
}
],
"src": "1867:1249:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3167:81:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3177:65:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3192:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3199:42:3",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "3188:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3188:54:3"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "3177:7:3"
}
]
}
]
},
"name": "cleanup_t_uint160",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3149:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "3159:7:3",
"type": ""
}
],
"src": "3122:126:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3299:51:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3309:35:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3338:5:3"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nodeType": "YulIdentifier",
"src": "3320:17:3"
},
"nodeType": "YulFunctionCall",
"src": "3320:24:3"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "3309:7:3"
}
]
}
]
},
"name": "cleanup_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3281:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "3291:7:3",
"type": ""
}
],
"src": "3254:96:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3421:53:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "3438:3:3"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3461:5:3"
}
],
"functionName": {
"name": "cleanup_t_address",
"nodeType": "YulIdentifier",
"src": "3443:17:3"
},
"nodeType": "YulFunctionCall",
"src": "3443:24:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3431:6:3"
},
"nodeType": "YulFunctionCall",
"src": "3431:37:3"
},
"nodeType": "YulExpressionStatement",
"src": "3431:37:3"
}
]
},
"name": "abi_encode_t_address_to_t_address_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3409:5:3",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "3416:3:3",
"type": ""
}
],
"src": "3356:118:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3578:124:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3588:26:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3600:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3611:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3596:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3596:18:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "3588:4:3"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3668:6:3"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3681:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3692:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3677:3:3"
},
"nodeType": "YulFunctionCall",
"src": "3677:17:3"
}
],
"functionName": {
"name": "abi_encode_t_address_to_t_address_fromStack",
"nodeType": "YulIdentifier",
"src": "3624:43:3"
},
"nodeType": "YulFunctionCall",
"src": "3624:71:3"
},
"nodeType": "YulExpressionStatement",
"src": "3624:71:3"
}
]
},
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3550:9:3",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "3562:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "3573:4:3",
"type": ""
}
],
"src": "3480:222:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3753:32:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3763:16:3",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "3774:5:3"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "3763:7:3"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3735:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "3745:7:3",
"type": ""
}
],
"src": "3708:77:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3834:79:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "3891:16:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3900:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3903:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3893:6:3"
},
"nodeType": "YulFunctionCall",
"src": "3893:12:3"
},
"nodeType": "YulExpressionStatement",
"src": "3893:12:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3857:5:3"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3882:5:3"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "3864:17:3"
},
"nodeType": "YulFunctionCall",
"src": "3864:24:3"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "3854:2:3"
},
"nodeType": "YulFunctionCall",
"src": "3854:35:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "3847:6:3"
},
"nodeType": "YulFunctionCall",
"src": "3847:43:3"
},
"nodeType": "YulIf",
"src": "3844:63:3"
}
]
},
"name": "validator_revert_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3827:5:3",
"type": ""
}
],
"src": "3791:122:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3971:87:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3981:29:3",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "4003:6:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "3990:12:3"
},
"nodeType": "YulFunctionCall",
"src": "3990:20:3"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3981:5:3"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "4046:5:3"
}
],
"functionName": {
"name": "validator_revert_t_uint256",
"nodeType": "YulIdentifier",
"src": "4019:26:3"
},
"nodeType": "YulFunctionCall",
"src": "4019:33:3"
},
"nodeType": "YulExpressionStatement",
"src": "4019:33:3"
}
]
},
"name": "abi_decode_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "3949:6:3",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "3957:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3965:5:3",
"type": ""
}
],
"src": "3919:139:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4130:263:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4176:83:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "4178:77:3"
},
"nodeType": "YulFunctionCall",
"src": "4178:79:3"
},
"nodeType": "YulExpressionStatement",
"src": "4178:79:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "4151:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4160:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "4147:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4147:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4172:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "4143:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4143:32:3"
},
"nodeType": "YulIf",
"src": "4140:119:3"
},
{
"nodeType": "YulBlock",
"src": "4269:117:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "4284:15:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "4298:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "4288:6:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "4313:63:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4348:9:3"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "4359:6:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4344:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4344:22:3"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "4368:7:3"
}
],
"functionName": {
"name": "abi_decode_t_uint256",
"nodeType": "YulIdentifier",
"src": "4323:20:3"
},
"nodeType": "YulFunctionCall",
"src": "4323:53:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "4313:6:3"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "4100:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "4111:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "4123:6:3",
"type": ""
}
],
"src": "4064:329:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4454:53:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "4471:3:3"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "4494:5:3"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "4476:17:3"
},
"nodeType": "YulFunctionCall",
"src": "4476:24:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4464:6:3"
},
"nodeType": "YulFunctionCall",
"src": "4464:37:3"
},
"nodeType": "YulExpressionStatement",
"src": "4464:37:3"
}
]
},
"name": "abi_encode_t_uint256_to_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "4442:5:3",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "4449:3:3",
"type": ""
}
],
"src": "4399:108:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4572:40:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4583:22:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "4599:5:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "4593:5:3"
},
"nodeType": "YulFunctionCall",
"src": "4593:12:3"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4583:6:3"
}
]
}
]
},
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "4555:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4565:6:3",
"type": ""
}
],
"src": "4513:99:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4704:73:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "4721:3:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4726:6:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4714:6:3"
},
"nodeType": "YulFunctionCall",
"src": "4714:19:3"
},
"nodeType": "YulExpressionStatement",
"src": "4714:19:3"
},
{
"nodeType": "YulAssignment",
"src": "4742:29:3",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "4761:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4766:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4757:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4757:14:3"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "4742:11:3"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "4676:3:3",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4681:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "4692:11:3",
"type": ""
}
],
"src": "4618:159:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4845:184:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "4855:10:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "4864:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "4859:1:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "4924:63:3",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "4949:3:3"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4954:1:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4945:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4945:11:3"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "4968:3:3"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4973:1:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4964:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4964:11:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "4958:5:3"
},
"nodeType": "YulFunctionCall",
"src": "4958:18:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4938:6:3"
},
"nodeType": "YulFunctionCall",
"src": "4938:39:3"
},
"nodeType": "YulExpressionStatement",
"src": "4938:39:3"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4885:1:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4888:6:3"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "4882:2:3"
},
"nodeType": "YulFunctionCall",
"src": "4882:13:3"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "4896:19:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4898:15:3",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4907:1:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4910:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4903:3:3"
},
"nodeType": "YulFunctionCall",
"src": "4903:10:3"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4898:1:3"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "4878:3:3",
"statements": []
},
"src": "4874:113:3"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "5007:3:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5012:6:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5003:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5003:16:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5021:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "4996:6:3"
},
"nodeType": "YulFunctionCall",
"src": "4996:27:3"
},
"nodeType": "YulExpressionStatement",
"src": "4996:27:3"
}
]
},
"name": "copy_memory_to_memory_with_cleanup",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "4827:3:3",
"type": ""
},
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "4832:3:3",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4837:6:3",
"type": ""
}
],
"src": "4783:246:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5083:54:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5093:38:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5111:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5118:2:3",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5107:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5107:14:3"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5127:2:3",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "5123:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5123:7:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "5103:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5103:28:3"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "5093:6:3"
}
]
}
]
},
"name": "round_up_to_mul_of_32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5066:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "5076:6:3",
"type": ""
}
],
"src": "5035:102:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5225:275:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "5235:53:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5282:5:3"
}
],
"functionName": {
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "5249:32:3"
},
"nodeType": "YulFunctionCall",
"src": "5249:39:3"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "5239:6:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "5297:68:3",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5353:3:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5358:6:3"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "5304:48:3"
},
"nodeType": "YulFunctionCall",
"src": "5304:61:3"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5297:3:3"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5413:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5420:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5409:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5409:16:3"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5427:3:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5432:6:3"
}
],
"functionName": {
"name": "copy_memory_to_memory_with_cleanup",
"nodeType": "YulIdentifier",
"src": "5374:34:3"
},
"nodeType": "YulFunctionCall",
"src": "5374:65:3"
},
"nodeType": "YulExpressionStatement",
"src": "5374:65:3"
},
{
"nodeType": "YulAssignment",
"src": "5448:46:3",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5459:3:3"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5486:6:3"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "5464:21:3"
},
"nodeType": "YulFunctionCall",
"src": "5464:29:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5455:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5455:39:3"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "5448:3:3"
}
]
}
]
},
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5206:5:3",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "5213:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "5221:3:3",
"type": ""
}
],
"src": "5143:357:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5580:40:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5591:22:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5607:5:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "5601:5:3"
},
"nodeType": "YulFunctionCall",
"src": "5601:12:3"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5591:6:3"
}
]
}
]
},
"name": "array_length_t_array$_t_uint256_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5563:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "5573:6:3",
"type": ""
}
],
"src": "5506:114:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5727:73:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5744:3:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "5749:6:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5737:6:3"
},
"nodeType": "YulFunctionCall",
"src": "5737:19:3"
},
"nodeType": "YulExpressionStatement",
"src": "5737:19:3"
},
{
"nodeType": "YulAssignment",
"src": "5765:29:3",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5784:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5789:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5780:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5780:14:3"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "5765:11:3"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_array$_t_uint256_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "5699:3:3",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "5704:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "5715:11:3",
"type": ""
}
],
"src": "5626:174:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5878:60:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5888:11:3",
"value": {
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "5896:3:3"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "5888:4:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "5909:22:3",
"value": {
"arguments": [
{
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "5921:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5926:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5917:3:3"
},
"nodeType": "YulFunctionCall",
"src": "5917:14:3"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "5909:4:3"
}
]
}
]
},
"name": "array_dataslot_t_array$_t_uint256_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "ptr",
"nodeType": "YulTypedName",
"src": "5865:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "5873:4:3",
"type": ""
}
],
"src": "5806:132:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6024:99:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "6068:6:3"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "6076:3:3"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256",
"nodeType": "YulIdentifier",
"src": "6034:33:3"
},
"nodeType": "YulFunctionCall",
"src": "6034:46:3"
},
"nodeType": "YulExpressionStatement",
"src": "6034:46:3"
},
{
"nodeType": "YulAssignment",
"src": "6089:28:3",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "6107:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6112:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "6103:3:3"
},
"nodeType": "YulFunctionCall",
"src": "6103:14:3"
},
"variableNames": [
{
"name": "updatedPos",
"nodeType": "YulIdentifier",
"src": "6089:10:3"
}
]
}
]
},
"name": "abi_encodeUpdatedPos_t_uint256_to_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "5997:6:3",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "6005:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "updatedPos",
"nodeType": "YulTypedName",
"src": "6013:10:3",
"type": ""
}
],
"src": "5944:179:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6204:38:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "6214:22:3",
"value": {
"arguments": [
{
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "6226:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6231:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "6222:3:3"
},
"nodeType": "YulFunctionCall",
"src": "6222:14:3"
},
"variableNames": [
{
"name": "next",
"nodeType": "YulIdentifier",
"src": "6214:4:3"
}
]
}
]
},
"name": "array_nextElement_t_array$_t_uint256_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "ptr",
"nodeType": "YulTypedName",
"src": "6191:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "next",
"nodeType": "YulTypedName",
"src": "6199:4:3",
"type": ""
}
],
"src": "6129:113:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6392:598:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "6402:68:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6464:5:3"
}
],
"functionName": {
"name": "array_length_t_array$_t_uint256_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "6416:47:3"
},
"nodeType": "YulFunctionCall",
"src": "6416:54:3"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "6406:6:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "6479:83:3",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "6550:3:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "6555:6:3"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_array$_t_uint256_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "6486:63:3"
},
"nodeType": "YulFunctionCall",
"src": "6486:76:3"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "6479:3:3"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "6571:71:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "6636:5:3"
}
],
"functionName": {
"name": "array_dataslot_t_array$_t_uint256_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "6586:49:3"
},
"nodeType": "YulFunctionCall",
"src": "6586:56:3"
},
"variables": [
{
"name": "baseRef",
"nodeType": "YulTypedName",
"src": "6575:7:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "6651:21:3",
"value": {
"name": "baseRef",
"nodeType": "YulIdentifier",
"src": "6665:7:3"
},
"variables": [
{
"name": "srcPtr",
"nodeType": "YulTypedName",
"src": "6655:6:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "6741:224:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "6755:34:3",
"value": {
"arguments": [
{
"name": "srcPtr",
"nodeType": "YulIdentifier",
"src": "6782:6:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "6776:5:3"
},
"nodeType": "YulFunctionCall",
"src": "6776:13:3"
},
"variables": [
{
"name": "elementValue0",
"nodeType": "YulTypedName",
"src": "6759:13:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "6802:70:3",
"value": {
"arguments": [
{
"name": "elementValue0",
"nodeType": "YulIdentifier",
"src": "6853:13:3"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "6868:3:3"
}
],
"functionName": {
"name": "abi_encodeUpdatedPos_t_uint256_to_t_uint256",
"nodeType": "YulIdentifier",
"src": "6809:43:3"
},
"nodeType": "YulFunctionCall",
"src": "6809:63:3"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "6802:3:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "6885:70:3",
"value": {
"arguments": [
{
"name": "srcPtr",
"nodeType": "YulIdentifier",
"src": "6948:6:3"
}
],
"functionName": {
"name": "array_nextElement_t_array$_t_uint256_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "6895:52:3"
},
"nodeType": "YulFunctionCall",
"src": "6895:60:3"
},
"variableNames": [
{
"name": "srcPtr",
"nodeType": "YulIdentifier",
"src": "6885:6:3"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "6703:1:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "6706:6:3"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "6700:2:3"
},
"nodeType": "YulFunctionCall",
"src": "6700:13:3"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "6714:18:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "6716:14:3",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "6725:1:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6728:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "6721:3:3"
},
"nodeType": "YulFunctionCall",
"src": "6721:9:3"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "6716:1:3"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "6685:14:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "6687:10:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "6696:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "6691:1:3",
"type": ""
}
]
}
]
},
"src": "6681:284:3"
},
{
"nodeType": "YulAssignment",
"src": "6974:10:3",
"value": {
"name": "pos",
"nodeType": "YulIdentifier",
"src": "6981:3:3"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "6974:3:3"
}
]
}
]
},
"name": "abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "6371:5:3",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "6378:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "6387:3:3",
"type": ""
}
],
"src": "6278:712:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "7182:1017:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "7192:26:3",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "7208:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7213:4:3",
"type": "",
"value": "0x80"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7204:3:3"
},
"nodeType": "YulFunctionCall",
"src": "7204:14:3"
},
"variables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "7196:4:3",
"type": ""
}
]
},
{
"nodeType": "YulBlock",
"src": "7228:162:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "7261:43:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "7291:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7298:4:3",
"type": "",
"value": "0x00"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7287:3:3"
},
"nodeType": "YulFunctionCall",
"src": "7287:16:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "7281:5:3"
},
"nodeType": "YulFunctionCall",
"src": "7281:23:3"
},
"variables": [
{
"name": "memberValue0",
"nodeType": "YulTypedName",
"src": "7265:12:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "memberValue0",
"nodeType": "YulIdentifier",
"src": "7351:12:3"
},
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "7369:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7374:4:3",
"type": "",
"value": "0x00"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7365:3:3"
},
"nodeType": "YulFunctionCall",
"src": "7365:14:3"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256",
"nodeType": "YulIdentifier",
"src": "7317:33:3"
},
"nodeType": "YulFunctionCall",
"src": "7317:63:3"
},
"nodeType": "YulExpressionStatement",
"src": "7317:63:3"
}
]
},
{
"nodeType": "YulBlock",
"src": "7400:240:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "7440:43:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "7470:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7477:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7466:3:3"
},
"nodeType": "YulFunctionCall",
"src": "7466:16:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "7460:5:3"
},
"nodeType": "YulFunctionCall",
"src": "7460:23:3"
},
"variables": [
{
"name": "memberValue0",
"nodeType": "YulTypedName",
"src": "7444:12:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "7508:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7513:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7504:3:3"
},
"nodeType": "YulFunctionCall",
"src": "7504:14:3"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "7524:4:3"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "7530:3:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "7520:3:3"
},
"nodeType": "YulFunctionCall",
"src": "7520:14:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "7497:6:3"
},
"nodeType": "YulFunctionCall",
"src": "7497:38:3"
},
"nodeType": "YulExpressionStatement",
"src": "7497:38:3"
},
{
"nodeType": "YulAssignment",
"src": "7548:81:3",
"value": {
"arguments": [
{
"name": "memberValue0",
"nodeType": "YulIdentifier",
"src": "7610:12:3"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "7624:4:3"
}
],
"functionName": {
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "7556:53:3"
},
"nodeType": "YulFunctionCall",
"src": "7556:73:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "7548:4:3"
}
]
}
]
},
{
"nodeType": "YulBlock",
"src": "7650:239:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "7689:43:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "7719:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7726:4:3",
"type": "",
"value": "0x40"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7715:3:3"
},
"nodeType": "YulFunctionCall",
"src": "7715:16:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "7709:5:3"
},
"nodeType": "YulFunctionCall",
"src": "7709:23:3"
},
"variables": [
{
"name": "memberValue0",
"nodeType": "YulTypedName",
"src": "7693:12:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "7757:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7762:4:3",
"type": "",
"value": "0x40"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7753:3:3"
},
"nodeType": "YulFunctionCall",
"src": "7753:14:3"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "7773:4:3"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "7779:3:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "7769:3:3"
},
"nodeType": "YulFunctionCall",
"src": "7769:14:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "7746:6:3"
},
"nodeType": "YulFunctionCall",
"src": "7746:38:3"
},
"nodeType": "YulExpressionStatement",
"src": "7746:38:3"
},
{
"nodeType": "YulAssignment",
"src": "7797:81:3",
"value": {
"arguments": [
{
"name": "memberValue0",
"nodeType": "YulIdentifier",
"src": "7859:12:3"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "7873:4:3"
}
],
"functionName": {
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "7805:53:3"
},
"nodeType": "YulFunctionCall",
"src": "7805:73:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "7797:4:3"
}
]
}
]
},
{
"nodeType": "YulBlock",
"src": "7899:273:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "7942:43:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "7972:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "7979:4:3",
"type": "",
"value": "0x60"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "7968:3:3"
},
"nodeType": "YulFunctionCall",
"src": "7968:16:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "7962:5:3"
},
"nodeType": "YulFunctionCall",
"src": "7962:23:3"
},
"variables": [
{
"name": "memberValue0",
"nodeType": "YulTypedName",
"src": "7946:12:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "8010:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "8015:4:3",
"type": "",
"value": "0x60"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "8006:3:3"
},
"nodeType": "YulFunctionCall",
"src": "8006:14:3"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "8026:4:3"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "8032:3:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "8022:3:3"
},
"nodeType": "YulFunctionCall",
"src": "8022:14:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "7999:6:3"
},
"nodeType": "YulFunctionCall",
"src": "7999:38:3"
},
"nodeType": "YulExpressionStatement",
"src": "7999:38:3"
},
{
"nodeType": "YulAssignment",
"src": "8050:111:3",
"value": {
"arguments": [
{
"name": "memberValue0",
"nodeType": "YulIdentifier",
"src": "8142:12:3"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "8156:4:3"
}
],
"functionName": {
"name": "abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "8058:83:3"
},
"nodeType": "YulFunctionCall",
"src": "8058:103:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "8050:4:3"
}
]
}
]
},
{
"nodeType": "YulAssignment",
"src": "8182:11:3",
"value": {
"name": "tail",
"nodeType": "YulIdentifier",
"src": "8189:4:3"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "8182:3:3"
}
]
}
]
},
"name": "abi_encode_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "7161:5:3",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "7168:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "7177:3:3",
"type": ""
}
],
"src": "7060:1139:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "8351:223:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "8361:26:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "8373:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "8384:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "8369:3:3"
},
"nodeType": "YulFunctionCall",
"src": "8369:18:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "8361:4:3"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "8408:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "8419:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "8404:3:3"
},
"nodeType": "YulFunctionCall",
"src": "8404:17:3"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "8427:4:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "8433:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "8423:3:3"
},
"nodeType": "YulFunctionCall",
"src": "8423:20:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "8397:6:3"
},
"nodeType": "YulFunctionCall",
"src": "8397:47:3"
},
"nodeType": "YulExpressionStatement",
"src": "8397:47:3"
},
{
"nodeType": "YulAssignment",
"src": "8453:114:3",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "8553:6:3"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "8562:4:3"
}
],
"functionName": {
"name": "abi_encode_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "8461:91:3"
},
"nodeType": "YulFunctionCall",
"src": "8461:106:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "8453:4:3"
}
]
}
]
},
"name": "abi_encode_tuple_t_struct$_Contact_$197_memory_ptr__to_t_struct$_Contact_$197_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "8323:9:3",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "8335:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "8346:4:3",
"type": ""
}
],
"src": "8205:369:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "8678:40:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "8689:22:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "8705:5:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "8699:5:3"
},
"nodeType": "YulFunctionCall",
"src": "8699:12:3"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "8689:6:3"
}
]
}
]
},
"name": "array_length_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "8661:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "8671:6:3",
"type": ""
}
],
"src": "8580:138:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "8859:73:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "8876:3:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "8881:6:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "8869:6:3"
},
"nodeType": "YulFunctionCall",
"src": "8869:19:3"
},
"nodeType": "YulExpressionStatement",
"src": "8869:19:3"
},
{
"nodeType": "YulAssignment",
"src": "8897:29:3",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "8916:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "8921:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "8912:3:3"
},
"nodeType": "YulFunctionCall",
"src": "8912:14:3"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "8897:11:3"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "8831:3:3",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "8836:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "8847:11:3",
"type": ""
}
],
"src": "8724:208:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "9034:60:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "9044:11:3",
"value": {
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "9052:3:3"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "9044:4:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "9065:22:3",
"value": {
"arguments": [
{
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "9077:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "9082:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "9073:3:3"
},
"nodeType": "YulFunctionCall",
"src": "9073:14:3"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "9065:4:3"
}
]
}
]
},
"name": "array_dataslot_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "ptr",
"nodeType": "YulTypedName",
"src": "9021:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "9029:4:3",
"type": ""
}
],
"src": "8938:156:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "9276:1017:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "9286:26:3",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "9302:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "9307:4:3",
"type": "",
"value": "0x80"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "9298:3:3"
},
"nodeType": "YulFunctionCall",
"src": "9298:14:3"
},
"variables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "9290:4:3",
"type": ""
}
]
},
{
"nodeType": "YulBlock",
"src": "9322:162:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "9355:43:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "9385:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "9392:4:3",
"type": "",
"value": "0x00"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "9381:3:3"
},
"nodeType": "YulFunctionCall",
"src": "9381:16:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "9375:5:3"
},
"nodeType": "YulFunctionCall",
"src": "9375:23:3"
},
"variables": [
{
"name": "memberValue0",
"nodeType": "YulTypedName",
"src": "9359:12:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "memberValue0",
"nodeType": "YulIdentifier",
"src": "9445:12:3"
},
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "9463:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "9468:4:3",
"type": "",
"value": "0x00"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "9459:3:3"
},
"nodeType": "YulFunctionCall",
"src": "9459:14:3"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256",
"nodeType": "YulIdentifier",
"src": "9411:33:3"
},
"nodeType": "YulFunctionCall",
"src": "9411:63:3"
},
"nodeType": "YulExpressionStatement",
"src": "9411:63:3"
}
]
},
{
"nodeType": "YulBlock",
"src": "9494:240:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "9534:43:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "9564:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "9571:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "9560:3:3"
},
"nodeType": "YulFunctionCall",
"src": "9560:16:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "9554:5:3"
},
"nodeType": "YulFunctionCall",
"src": "9554:23:3"
},
"variables": [
{
"name": "memberValue0",
"nodeType": "YulTypedName",
"src": "9538:12:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "9602:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "9607:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "9598:3:3"
},
"nodeType": "YulFunctionCall",
"src": "9598:14:3"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "9618:4:3"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "9624:3:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "9614:3:3"
},
"nodeType": "YulFunctionCall",
"src": "9614:14:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "9591:6:3"
},
"nodeType": "YulFunctionCall",
"src": "9591:38:3"
},
"nodeType": "YulExpressionStatement",
"src": "9591:38:3"
},
{
"nodeType": "YulAssignment",
"src": "9642:81:3",
"value": {
"arguments": [
{
"name": "memberValue0",
"nodeType": "YulIdentifier",
"src": "9704:12:3"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "9718:4:3"
}
],
"functionName": {
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "9650:53:3"
},
"nodeType": "YulFunctionCall",
"src": "9650:73:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "9642:4:3"
}
]
}
]
},
{
"nodeType": "YulBlock",
"src": "9744:239:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "9783:43:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "9813:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "9820:4:3",
"type": "",
"value": "0x40"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "9809:3:3"
},
"nodeType": "YulFunctionCall",
"src": "9809:16:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "9803:5:3"
},
"nodeType": "YulFunctionCall",
"src": "9803:23:3"
},
"variables": [
{
"name": "memberValue0",
"nodeType": "YulTypedName",
"src": "9787:12:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "9851:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "9856:4:3",
"type": "",
"value": "0x40"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "9847:3:3"
},
"nodeType": "YulFunctionCall",
"src": "9847:14:3"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "9867:4:3"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "9873:3:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "9863:3:3"
},
"nodeType": "YulFunctionCall",
"src": "9863:14:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "9840:6:3"
},
"nodeType": "YulFunctionCall",
"src": "9840:38:3"
},
"nodeType": "YulExpressionStatement",
"src": "9840:38:3"
},
{
"nodeType": "YulAssignment",
"src": "9891:81:3",
"value": {
"arguments": [
{
"name": "memberValue0",
"nodeType": "YulIdentifier",
"src": "9953:12:3"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "9967:4:3"
}
],
"functionName": {
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "9899:53:3"
},
"nodeType": "YulFunctionCall",
"src": "9899:73:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "9891:4:3"
}
]
}
]
},
{
"nodeType": "YulBlock",
"src": "9993:273:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "10036:43:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "10066:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "10073:4:3",
"type": "",
"value": "0x60"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "10062:3:3"
},
"nodeType": "YulFunctionCall",
"src": "10062:16:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "10056:5:3"
},
"nodeType": "YulFunctionCall",
"src": "10056:23:3"
},
"variables": [
{
"name": "memberValue0",
"nodeType": "YulTypedName",
"src": "10040:12:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "10104:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "10109:4:3",
"type": "",
"value": "0x60"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "10100:3:3"
},
"nodeType": "YulFunctionCall",
"src": "10100:14:3"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "10120:4:3"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "10126:3:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "10116:3:3"
},
"nodeType": "YulFunctionCall",
"src": "10116:14:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "10093:6:3"
},
"nodeType": "YulFunctionCall",
"src": "10093:38:3"
},
"nodeType": "YulExpressionStatement",
"src": "10093:38:3"
},
{
"nodeType": "YulAssignment",
"src": "10144:111:3",
"value": {
"arguments": [
{
"name": "memberValue0",
"nodeType": "YulIdentifier",
"src": "10236:12:3"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "10250:4:3"
}
],
"functionName": {
"name": "abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "10152:83:3"
},
"nodeType": "YulFunctionCall",
"src": "10152:103:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "10144:4:3"
}
]
}
]
},
{
"nodeType": "YulAssignment",
"src": "10276:11:3",
"value": {
"name": "tail",
"nodeType": "YulIdentifier",
"src": "10283:4:3"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "10276:3:3"
}
]
}
]
},
"name": "abi_encode_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "9255:5:3",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "9262:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "9271:3:3",
"type": ""
}
],
"src": "9164:1129:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "10427:124:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "10437:108:3",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "10533:6:3"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "10541:3:3"
}
],
"functionName": {
"name": "abi_encode_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr",
"nodeType": "YulIdentifier",
"src": "10451:81:3"
},
"nodeType": "YulFunctionCall",
"src": "10451:94:3"
},
"variableNames": [
{
"name": "updatedPos",
"nodeType": "YulIdentifier",
"src": "10437:10:3"
}
]
}
]
},
"name": "abi_encodeUpdatedPos_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "10400:6:3",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "10408:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "updatedPos",
"nodeType": "YulTypedName",
"src": "10416:10:3",
"type": ""
}
],
"src": "10299:252:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "10656:38:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "10666:22:3",
"value": {
"arguments": [
{
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "10678:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "10683:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "10674:3:3"
},
"nodeType": "YulFunctionCall",
"src": "10674:14:3"
},
"variableNames": [
{
"name": "next",
"nodeType": "YulIdentifier",
"src": "10666:4:3"
}
]
}
]
},
"name": "array_nextElement_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "ptr",
"nodeType": "YulTypedName",
"src": "10643:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "next",
"nodeType": "YulTypedName",
"src": "10651:4:3",
"type": ""
}
],
"src": "10557:137:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "10940:931:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "10950:92:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "11036:5:3"
}
],
"functionName": {
"name": "array_length_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "10964:71:3"
},
"nodeType": "YulFunctionCall",
"src": "10964:78:3"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "10954:6:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "11051:117:3",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "11156:3:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "11161:6:3"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "11058:97:3"
},
"nodeType": "YulFunctionCall",
"src": "11058:110:3"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "11051:3:3"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "11177:20:3",
"value": {
"name": "pos",
"nodeType": "YulIdentifier",
"src": "11194:3:3"
},
"variables": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "11181:9:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "11206:39:3",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "11222:3:3"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "11231:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "11239:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "11227:3:3"
},
"nodeType": "YulFunctionCall",
"src": "11227:17:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "11218:3:3"
},
"nodeType": "YulFunctionCall",
"src": "11218:27:3"
},
"variables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "11210:4:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "11254:95:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "11343:5:3"
}
],
"functionName": {
"name": "array_dataslot_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "11269:73:3"
},
"nodeType": "YulFunctionCall",
"src": "11269:80:3"
},
"variables": [
{
"name": "baseRef",
"nodeType": "YulTypedName",
"src": "11258:7:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "11358:21:3",
"value": {
"name": "baseRef",
"nodeType": "YulIdentifier",
"src": "11372:7:3"
},
"variables": [
{
"name": "srcPtr",
"nodeType": "YulTypedName",
"src": "11362:6:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "11448:378:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "11469:3:3"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "11478:4:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "11484:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "11474:3:3"
},
"nodeType": "YulFunctionCall",
"src": "11474:20:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "11462:6:3"
},
"nodeType": "YulFunctionCall",
"src": "11462:33:3"
},
"nodeType": "YulExpressionStatement",
"src": "11462:33:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "11508:34:3",
"value": {
"arguments": [
{
"name": "srcPtr",
"nodeType": "YulIdentifier",
"src": "11535:6:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "11529:5:3"
},
"nodeType": "YulFunctionCall",
"src": "11529:13:3"
},
"variables": [
{
"name": "elementValue0",
"nodeType": "YulTypedName",
"src": "11512:13:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "11555:120:3",
"value": {
"arguments": [
{
"name": "elementValue0",
"nodeType": "YulIdentifier",
"src": "11655:13:3"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "11670:4:3"
}
],
"functionName": {
"name": "abi_encodeUpdatedPos_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr",
"nodeType": "YulIdentifier",
"src": "11563:91:3"
},
"nodeType": "YulFunctionCall",
"src": "11563:112:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "11555:4:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "11688:94:3",
"value": {
"arguments": [
{
"name": "srcPtr",
"nodeType": "YulIdentifier",
"src": "11775:6:3"
}
],
"functionName": {
"name": "array_nextElement_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr",
"nodeType": "YulIdentifier",
"src": "11698:76:3"
},
"nodeType": "YulFunctionCall",
"src": "11698:84:3"
},
"variableNames": [
{
"name": "srcPtr",
"nodeType": "YulIdentifier",
"src": "11688:6:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "11795:21:3",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "11806:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "11811:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "11802:3:3"
},
"nodeType": "YulFunctionCall",
"src": "11802:14:3"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "11795:3:3"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "11410:1:3"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "11413:6:3"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "11407:2:3"
},
"nodeType": "YulFunctionCall",
"src": "11407:13:3"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "11421:18:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "11423:14:3",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "11432:1:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "11435:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "11428:3:3"
},
"nodeType": "YulFunctionCall",
"src": "11428:9:3"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "11423:1:3"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "11392:14:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "11394:10:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "11403:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "11398:1:3",
"type": ""
}
]
}
]
},
"src": "11388:438:3"
},
{
"nodeType": "YulAssignment",
"src": "11835:11:3",
"value": {
"name": "tail",
"nodeType": "YulIdentifier",
"src": "11842:4:3"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "11835:3:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "11855:10:3",
"value": {
"name": "pos",
"nodeType": "YulIdentifier",
"src": "11862:3:3"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "11855:3:3"
}
]
}
]
},
"name": "abi_encode_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "10919:5:3",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "10926:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "10935:3:3",
"type": ""
}
],
"src": "10768:1103:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "12073:273:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "12083:26:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "12095:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "12106:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "12091:3:3"
},
"nodeType": "YulFunctionCall",
"src": "12091:18:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "12083:4:3"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "12130:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "12141:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "12126:3:3"
},
"nodeType": "YulFunctionCall",
"src": "12126:17:3"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "12149:4:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "12155:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "12145:3:3"
},
"nodeType": "YulFunctionCall",
"src": "12145:20:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "12119:6:3"
},
"nodeType": "YulFunctionCall",
"src": "12119:47:3"
},
"nodeType": "YulExpressionStatement",
"src": "12119:47:3"
},
{
"nodeType": "YulAssignment",
"src": "12175:164:3",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "12325:6:3"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "12334:4:3"
}
],
"functionName": {
"name": "abi_encode_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "12183:141:3"
},
"nodeType": "YulFunctionCall",
"src": "12183:156:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "12175:4:3"
}
]
}
]
},
"name": "abi_encode_tuple_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr__to_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "12045:9:3",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "12057:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "12068:4:3",
"type": ""
}
],
"src": "11877:469:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "12395:79:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "12452:16:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "12461:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "12464:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "12454:6:3"
},
"nodeType": "YulFunctionCall",
"src": "12454:12:3"
},
"nodeType": "YulExpressionStatement",
"src": "12454:12:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "12418:5:3"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "12443:5:3"
}
],
"functionName": {
"name": "cleanup_t_address",
"nodeType": "YulIdentifier",
"src": "12425:17:3"
},
"nodeType": "YulFunctionCall",
"src": "12425:24:3"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "12415:2:3"
},
"nodeType": "YulFunctionCall",
"src": "12415:35:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "12408:6:3"
},
"nodeType": "YulFunctionCall",
"src": "12408:43:3"
},
"nodeType": "YulIf",
"src": "12405:63:3"
}
]
},
"name": "validator_revert_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "12388:5:3",
"type": ""
}
],
"src": "12352:122:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "12532:87:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "12542:29:3",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "12564:6:3"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "12551:12:3"
},
"nodeType": "YulFunctionCall",
"src": "12551:20:3"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "12542:5:3"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "12607:5:3"
}
],
"functionName": {
"name": "validator_revert_t_address",
"nodeType": "YulIdentifier",
"src": "12580:26:3"
},
"nodeType": "YulFunctionCall",
"src": "12580:33:3"
},
"nodeType": "YulExpressionStatement",
"src": "12580:33:3"
}
]
},
"name": "abi_decode_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "12510:6:3",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "12518:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "12526:5:3",
"type": ""
}
],
"src": "12480:139:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "12691:263:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "12737:83:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "12739:77:3"
},
"nodeType": "YulFunctionCall",
"src": "12739:79:3"
},
"nodeType": "YulExpressionStatement",
"src": "12739:79:3"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "12712:7:3"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "12721:9:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "12708:3:3"
},
"nodeType": "YulFunctionCall",
"src": "12708:23:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "12733:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "12704:3:3"
},
"nodeType": "YulFunctionCall",
"src": "12704:32:3"
},
"nodeType": "YulIf",
"src": "12701:119:3"
},
{
"nodeType": "YulBlock",
"src": "12830:117:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "12845:15:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "12859:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "12849:6:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "12874:63:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "12909:9:3"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "12920:6:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "12905:3:3"
},
"nodeType": "YulFunctionCall",
"src": "12905:22:3"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "12929:7:3"
}
],
"functionName": {
"name": "abi_decode_t_address",
"nodeType": "YulIdentifier",
"src": "12884:20:3"
},
"nodeType": "YulFunctionCall",
"src": "12884:53:3"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "12874:6:3"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "12661:9:3",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "12672:7:3",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "12684:6:3",
"type": ""
}
],
"src": "12625:329:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "12988:152:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13005:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13008:77:3",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "12998:6:3"
},
"nodeType": "YulFunctionCall",
"src": "12998:88:3"
},
"nodeType": "YulExpressionStatement",
"src": "12998:88:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13102:1:3",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13105:4:3",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "13095:6:3"
},
"nodeType": "YulFunctionCall",
"src": "13095:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "13095:15:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13126:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13129:4:3",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "13119:6:3"
},
"nodeType": "YulFunctionCall",
"src": "13119:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "13119:15:3"
}
]
},
"name": "panic_error_0x41",
"nodeType": "YulFunctionDefinition",
"src": "12960:180:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "13174:152:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13191:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13194:77:3",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "13184:6:3"
},
"nodeType": "YulFunctionCall",
"src": "13184:88:3"
},
"nodeType": "YulExpressionStatement",
"src": "13184:88:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13288:1:3",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13291:4:3",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "13281:6:3"
},
"nodeType": "YulFunctionCall",
"src": "13281:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "13281:15:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13312:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13315:4:3",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "13305:6:3"
},
"nodeType": "YulFunctionCall",
"src": "13305:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "13305:15:3"
}
]
},
"name": "panic_error_0x22",
"nodeType": "YulFunctionDefinition",
"src": "13146:180:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "13383:269:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "13393:22:3",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "13407:4:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13413:1:3",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "13403:3:3"
},
"nodeType": "YulFunctionCall",
"src": "13403:12:3"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "13393:6:3"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "13424:38:3",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "13454:4:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13460:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "13450:3:3"
},
"nodeType": "YulFunctionCall",
"src": "13450:12:3"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulTypedName",
"src": "13428:18:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "13501:51:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "13515:27:3",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "13529:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13537:4:3",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "13525:3:3"
},
"nodeType": "YulFunctionCall",
"src": "13525:17:3"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "13515:6:3"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "13481:18:3"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "13474:6:3"
},
"nodeType": "YulFunctionCall",
"src": "13474:26:3"
},
"nodeType": "YulIf",
"src": "13471:81:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "13604:42:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nodeType": "YulIdentifier",
"src": "13618:16:3"
},
"nodeType": "YulFunctionCall",
"src": "13618:18:3"
},
"nodeType": "YulExpressionStatement",
"src": "13618:18:3"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "13568:18:3"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "13591:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13599:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "13588:2:3"
},
"nodeType": "YulFunctionCall",
"src": "13588:14:3"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "13565:2:3"
},
"nodeType": "YulFunctionCall",
"src": "13565:38:3"
},
"nodeType": "YulIf",
"src": "13562:84:3"
}
]
},
"name": "extract_byte_array_length",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "13367:4:3",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "13376:6:3",
"type": ""
}
],
"src": "13332:320:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "13712:87:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "13722:11:3",
"value": {
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "13730:3:3"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "13722:4:3"
}
]
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13750:1:3",
"type": "",
"value": "0"
},
{
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "13753:3:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "13743:6:3"
},
"nodeType": "YulFunctionCall",
"src": "13743:14:3"
},
"nodeType": "YulExpressionStatement",
"src": "13743:14:3"
},
{
"nodeType": "YulAssignment",
"src": "13766:26:3",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13784:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13787:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "keccak256",
"nodeType": "YulIdentifier",
"src": "13774:9:3"
},
"nodeType": "YulFunctionCall",
"src": "13774:18:3"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "13766:4:3"
}
]
}
]
},
"name": "array_dataslot_t_string_storage",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "ptr",
"nodeType": "YulTypedName",
"src": "13699:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "13707:4:3",
"type": ""
}
],
"src": "13658:141:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "13849:49:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "13859:33:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "13877:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13884:2:3",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "13873:3:3"
},
"nodeType": "YulFunctionCall",
"src": "13873:14:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "13889:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "13869:3:3"
},
"nodeType": "YulFunctionCall",
"src": "13869:23:3"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "13859:6:3"
}
]
}
]
},
"name": "divide_by_32_ceil",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "13832:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "13842:6:3",
"type": ""
}
],
"src": "13805:93:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "13957:54:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "13967:37:3",
"value": {
"arguments": [
{
"name": "bits",
"nodeType": "YulIdentifier",
"src": "13992:4:3"
},
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "13998:5:3"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "13988:3:3"
},
"nodeType": "YulFunctionCall",
"src": "13988:16:3"
},
"variableNames": [
{
"name": "newValue",
"nodeType": "YulIdentifier",
"src": "13967:8:3"
}
]
}
]
},
"name": "shift_left_dynamic",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "bits",
"nodeType": "YulTypedName",
"src": "13932:4:3",
"type": ""
},
{
"name": "value",
"nodeType": "YulTypedName",
"src": "13938:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "newValue",
"nodeType": "YulTypedName",
"src": "13948:8:3",
"type": ""
}
],
"src": "13904:107:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "14093:317:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "14103:35:3",
"value": {
"arguments": [
{
"name": "shiftBytes",
"nodeType": "YulIdentifier",
"src": "14124:10:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "14136:1:3",
"type": "",
"value": "8"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "14120:3:3"
},
"nodeType": "YulFunctionCall",
"src": "14120:18:3"
},
"variables": [
{
"name": "shiftBits",
"nodeType": "YulTypedName",
"src": "14107:9:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "14147:109:3",
"value": {
"arguments": [
{
"name": "shiftBits",
"nodeType": "YulIdentifier",
"src": "14178:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "14189:66:3",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "shift_left_dynamic",
"nodeType": "YulIdentifier",
"src": "14159:18:3"
},
"nodeType": "YulFunctionCall",
"src": "14159:97:3"
},
"variables": [
{
"name": "mask",
"nodeType": "YulTypedName",
"src": "14151:4:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "14265:51:3",
"value": {
"arguments": [
{
"name": "shiftBits",
"nodeType": "YulIdentifier",
"src": "14296:9:3"
},
{
"name": "toInsert",
"nodeType": "YulIdentifier",
"src": "14307:8:3"
}
],
"functionName": {
"name": "shift_left_dynamic",
"nodeType": "YulIdentifier",
"src": "14277:18:3"
},
"nodeType": "YulFunctionCall",
"src": "14277:39:3"
},
"variableNames": [
{
"name": "toInsert",
"nodeType": "YulIdentifier",
"src": "14265:8:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "14325:30:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "14338:5:3"
},
{
"arguments": [
{
"name": "mask",
"nodeType": "YulIdentifier",
"src": "14349:4:3"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "14345:3:3"
},
"nodeType": "YulFunctionCall",
"src": "14345:9:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "14334:3:3"
},
"nodeType": "YulFunctionCall",
"src": "14334:21:3"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "14325:5:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "14364:40:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "14377:5:3"
},
{
"arguments": [
{
"name": "toInsert",
"nodeType": "YulIdentifier",
"src": "14388:8:3"
},
{
"name": "mask",
"nodeType": "YulIdentifier",
"src": "14398:4:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "14384:3:3"
},
"nodeType": "YulFunctionCall",
"src": "14384:19:3"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "14374:2:3"
},
"nodeType": "YulFunctionCall",
"src": "14374:30:3"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "14364:6:3"
}
]
}
]
},
"name": "update_byte_slice_dynamic32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "14054:5:3",
"type": ""
},
{
"name": "shiftBytes",
"nodeType": "YulTypedName",
"src": "14061:10:3",
"type": ""
},
{
"name": "toInsert",
"nodeType": "YulTypedName",
"src": "14073:8:3",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "14086:6:3",
"type": ""
}
],
"src": "14017:393:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "14448:28:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "14458:12:3",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "14465:5:3"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "14458:3:3"
}
]
}
]
},
"name": "identity",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "14434:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "14444:3:3",
"type": ""
}
],
"src": "14416:60:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "14542:82:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "14552:66:3",
"value": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "14610:5:3"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "14592:17:3"
},
"nodeType": "YulFunctionCall",
"src": "14592:24:3"
}
],
"functionName": {
"name": "identity",
"nodeType": "YulIdentifier",
"src": "14583:8:3"
},
"nodeType": "YulFunctionCall",
"src": "14583:34:3"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "14565:17:3"
},
"nodeType": "YulFunctionCall",
"src": "14565:53:3"
},
"variableNames": [
{
"name": "converted",
"nodeType": "YulIdentifier",
"src": "14552:9:3"
}
]
}
]
},
"name": "convert_t_uint256_to_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "14522:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "converted",
"nodeType": "YulTypedName",
"src": "14532:9:3",
"type": ""
}
],
"src": "14482:142:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "14677:28:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "14687:12:3",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "14694:5:3"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "14687:3:3"
}
]
}
]
},
"name": "prepare_store_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "14663:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "14673:3:3",
"type": ""
}
],
"src": "14630:75:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "14787:193:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "14797:63:3",
"value": {
"arguments": [
{
"name": "value_0",
"nodeType": "YulIdentifier",
"src": "14852:7:3"
}
],
"functionName": {
"name": "convert_t_uint256_to_t_uint256",
"nodeType": "YulIdentifier",
"src": "14821:30:3"
},
"nodeType": "YulFunctionCall",
"src": "14821:39:3"
},
"variables": [
{
"name": "convertedValue_0",
"nodeType": "YulTypedName",
"src": "14801:16:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "14876:4:3"
},
{
"arguments": [
{
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "14916:4:3"
}
],
"functionName": {
"name": "sload",
"nodeType": "YulIdentifier",
"src": "14910:5:3"
},
"nodeType": "YulFunctionCall",
"src": "14910:11:3"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "14923:6:3"
},
{
"arguments": [
{
"name": "convertedValue_0",
"nodeType": "YulIdentifier",
"src": "14955:16:3"
}
],
"functionName": {
"name": "prepare_store_t_uint256",
"nodeType": "YulIdentifier",
"src": "14931:23:3"
},
"nodeType": "YulFunctionCall",
"src": "14931:41:3"
}
],
"functionName": {
"name": "update_byte_slice_dynamic32",
"nodeType": "YulIdentifier",
"src": "14882:27:3"
},
"nodeType": "YulFunctionCall",
"src": "14882:91:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "14869:6:3"
},
"nodeType": "YulFunctionCall",
"src": "14869:105:3"
},
"nodeType": "YulExpressionStatement",
"src": "14869:105:3"
}
]
},
"name": "update_storage_value_t_uint256_to_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "slot",
"nodeType": "YulTypedName",
"src": "14764:4:3",
"type": ""
},
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "14770:6:3",
"type": ""
},
{
"name": "value_0",
"nodeType": "YulTypedName",
"src": "14778:7:3",
"type": ""
}
],
"src": "14711:269:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "15035:24:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "15045:8:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "15052:1:3",
"type": "",
"value": "0"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "15045:3:3"
}
]
}
]
},
"name": "zero_value_for_split_t_uint256",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "15031:3:3",
"type": ""
}
],
"src": "14986:73:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "15118:136:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "15128:46:3",
"value": {
"arguments": [],
"functionName": {
"name": "zero_value_for_split_t_uint256",
"nodeType": "YulIdentifier",
"src": "15142:30:3"
},
"nodeType": "YulFunctionCall",
"src": "15142:32:3"
},
"variables": [
{
"name": "zero_0",
"nodeType": "YulTypedName",
"src": "15132:6:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "15227:4:3"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "15233:6:3"
},
{
"name": "zero_0",
"nodeType": "YulIdentifier",
"src": "15241:6:3"
}
],
"functionName": {
"name": "update_storage_value_t_uint256_to_t_uint256",
"nodeType": "YulIdentifier",
"src": "15183:43:3"
},
"nodeType": "YulFunctionCall",
"src": "15183:65:3"
},
"nodeType": "YulExpressionStatement",
"src": "15183:65:3"
}
]
},
"name": "storage_set_to_zero_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "slot",
"nodeType": "YulTypedName",
"src": "15104:4:3",
"type": ""
},
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "15110:6:3",
"type": ""
}
],
"src": "15065:189:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "15310:136:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "15377:63:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "start",
"nodeType": "YulIdentifier",
"src": "15421:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "15428:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "storage_set_to_zero_t_uint256",
"nodeType": "YulIdentifier",
"src": "15391:29:3"
},
"nodeType": "YulFunctionCall",
"src": "15391:39:3"
},
"nodeType": "YulExpressionStatement",
"src": "15391:39:3"
}
]
},
"condition": {
"arguments": [
{
"name": "start",
"nodeType": "YulIdentifier",
"src": "15330:5:3"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "15337:3:3"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "15327:2:3"
},
"nodeType": "YulFunctionCall",
"src": "15327:14:3"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "15342:26:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "15344:22:3",
"value": {
"arguments": [
{
"name": "start",
"nodeType": "YulIdentifier",
"src": "15357:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "15364:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "15353:3:3"
},
"nodeType": "YulFunctionCall",
"src": "15353:13:3"
},
"variableNames": [
{
"name": "start",
"nodeType": "YulIdentifier",
"src": "15344:5:3"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "15324:2:3",
"statements": []
},
"src": "15320:120:3"
}
]
},
"name": "clear_storage_range_t_bytes1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "start",
"nodeType": "YulTypedName",
"src": "15298:5:3",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "15305:3:3",
"type": ""
}
],
"src": "15260:186:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "15531:464:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "15557:431:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "15571:54:3",
"value": {
"arguments": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "15619:5:3"
}
],
"functionName": {
"name": "array_dataslot_t_string_storage",
"nodeType": "YulIdentifier",
"src": "15587:31:3"
},
"nodeType": "YulFunctionCall",
"src": "15587:38:3"
},
"variables": [
{
"name": "dataArea",
"nodeType": "YulTypedName",
"src": "15575:8:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "15638:63:3",
"value": {
"arguments": [
{
"name": "dataArea",
"nodeType": "YulIdentifier",
"src": "15661:8:3"
},
{
"arguments": [
{
"name": "startIndex",
"nodeType": "YulIdentifier",
"src": "15689:10:3"
}
],
"functionName": {
"name": "divide_by_32_ceil",
"nodeType": "YulIdentifier",
"src": "15671:17:3"
},
"nodeType": "YulFunctionCall",
"src": "15671:29:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "15657:3:3"
},
"nodeType": "YulFunctionCall",
"src": "15657:44:3"
},
"variables": [
{
"name": "deleteStart",
"nodeType": "YulTypedName",
"src": "15642:11:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "15858:27:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "15860:23:3",
"value": {
"name": "dataArea",
"nodeType": "YulIdentifier",
"src": "15875:8:3"
},
"variableNames": [
{
"name": "deleteStart",
"nodeType": "YulIdentifier",
"src": "15860:11:3"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "startIndex",
"nodeType": "YulIdentifier",
"src": "15842:10:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "15854:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "15839:2:3"
},
"nodeType": "YulFunctionCall",
"src": "15839:18:3"
},
"nodeType": "YulIf",
"src": "15836:49:3"
},
{
"expression": {
"arguments": [
{
"name": "deleteStart",
"nodeType": "YulIdentifier",
"src": "15927:11:3"
},
{
"arguments": [
{
"name": "dataArea",
"nodeType": "YulIdentifier",
"src": "15944:8:3"
},
{
"arguments": [
{
"name": "len",
"nodeType": "YulIdentifier",
"src": "15972:3:3"
}
],
"functionName": {
"name": "divide_by_32_ceil",
"nodeType": "YulIdentifier",
"src": "15954:17:3"
},
"nodeType": "YulFunctionCall",
"src": "15954:22:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "15940:3:3"
},
"nodeType": "YulFunctionCall",
"src": "15940:37:3"
}
],
"functionName": {
"name": "clear_storage_range_t_bytes1",
"nodeType": "YulIdentifier",
"src": "15898:28:3"
},
"nodeType": "YulFunctionCall",
"src": "15898:80:3"
},
"nodeType": "YulExpressionStatement",
"src": "15898:80:3"
}
]
},
"condition": {
"arguments": [
{
"name": "len",
"nodeType": "YulIdentifier",
"src": "15548:3:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "15553:2:3",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "15545:2:3"
},
"nodeType": "YulFunctionCall",
"src": "15545:11:3"
},
"nodeType": "YulIf",
"src": "15542:446:3"
}
]
},
"name": "clean_up_bytearray_end_slots_t_string_storage",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "array",
"nodeType": "YulTypedName",
"src": "15507:5:3",
"type": ""
},
{
"name": "len",
"nodeType": "YulTypedName",
"src": "15514:3:3",
"type": ""
},
{
"name": "startIndex",
"nodeType": "YulTypedName",
"src": "15519:10:3",
"type": ""
}
],
"src": "15452:543:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "16064:54:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "16074:37:3",
"value": {
"arguments": [
{
"name": "bits",
"nodeType": "YulIdentifier",
"src": "16099:4:3"
},
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "16105:5:3"
}
],
"functionName": {
"name": "shr",
"nodeType": "YulIdentifier",
"src": "16095:3:3"
},
"nodeType": "YulFunctionCall",
"src": "16095:16:3"
},
"variableNames": [
{
"name": "newValue",
"nodeType": "YulIdentifier",
"src": "16074:8:3"
}
]
}
]
},
"name": "shift_right_unsigned_dynamic",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "bits",
"nodeType": "YulTypedName",
"src": "16039:4:3",
"type": ""
},
{
"name": "value",
"nodeType": "YulTypedName",
"src": "16045:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "newValue",
"nodeType": "YulTypedName",
"src": "16055:8:3",
"type": ""
}
],
"src": "16001:117:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "16175:118:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "16185:68:3",
"value": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "16234:1:3",
"type": "",
"value": "8"
},
{
"name": "bytes",
"nodeType": "YulIdentifier",
"src": "16237:5:3"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "16230:3:3"
},
"nodeType": "YulFunctionCall",
"src": "16230:13:3"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "16249:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "16245:3:3"
},
"nodeType": "YulFunctionCall",
"src": "16245:6:3"
}
],
"functionName": {
"name": "shift_right_unsigned_dynamic",
"nodeType": "YulIdentifier",
"src": "16201:28:3"
},
"nodeType": "YulFunctionCall",
"src": "16201:51:3"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "16197:3:3"
},
"nodeType": "YulFunctionCall",
"src": "16197:56:3"
},
"variables": [
{
"name": "mask",
"nodeType": "YulTypedName",
"src": "16189:4:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "16262:25:3",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "16276:4:3"
},
{
"name": "mask",
"nodeType": "YulIdentifier",
"src": "16282:4:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "16272:3:3"
},
"nodeType": "YulFunctionCall",
"src": "16272:15:3"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "16262:6:3"
}
]
}
]
},
"name": "mask_bytes_dynamic",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "16152:4:3",
"type": ""
},
{
"name": "bytes",
"nodeType": "YulTypedName",
"src": "16158:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "16168:6:3",
"type": ""
}
],
"src": "16124:169:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "16379:214:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "16512:37:3",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "16539:4:3"
},
{
"name": "len",
"nodeType": "YulIdentifier",
"src": "16545:3:3"
}
],
"functionName": {
"name": "mask_bytes_dynamic",
"nodeType": "YulIdentifier",
"src": "16520:18:3"
},
"nodeType": "YulFunctionCall",
"src": "16520:29:3"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "16512:4:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "16558:29:3",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "16569:4:3"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "16579:1:3",
"type": "",
"value": "2"
},
{
"name": "len",
"nodeType": "YulIdentifier",
"src": "16582:3:3"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "16575:3:3"
},
"nodeType": "YulFunctionCall",
"src": "16575:11:3"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "16566:2:3"
},
"nodeType": "YulFunctionCall",
"src": "16566:21:3"
},
"variableNames": [
{
"name": "used",
"nodeType": "YulIdentifier",
"src": "16558:4:3"
}
]
}
]
},
"name": "extract_used_part_and_set_length_of_short_byte_array",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "16360:4:3",
"type": ""
},
{
"name": "len",
"nodeType": "YulTypedName",
"src": "16366:3:3",
"type": ""
}
],
"returnVariables": [
{
"name": "used",
"nodeType": "YulTypedName",
"src": "16374:4:3",
"type": ""
}
],
"src": "16298:295:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "16690:1303:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "16701:51:3",
"value": {
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "16748:3:3"
}
],
"functionName": {
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "16715:32:3"
},
"nodeType": "YulFunctionCall",
"src": "16715:37:3"
},
"variables": [
{
"name": "newLen",
"nodeType": "YulTypedName",
"src": "16705:6:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "16837:22:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "16839:16:3"
},
"nodeType": "YulFunctionCall",
"src": "16839:18:3"
},
"nodeType": "YulExpressionStatement",
"src": "16839:18:3"
}
]
},
"condition": {
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "16809:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "16817:18:3",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "16806:2:3"
},
"nodeType": "YulFunctionCall",
"src": "16806:30:3"
},
"nodeType": "YulIf",
"src": "16803:56:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "16869:52:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "16915:4:3"
}
],
"functionName": {
"name": "sload",
"nodeType": "YulIdentifier",
"src": "16909:5:3"
},
"nodeType": "YulFunctionCall",
"src": "16909:11:3"
}
],
"functionName": {
"name": "extract_byte_array_length",
"nodeType": "YulIdentifier",
"src": "16883:25:3"
},
"nodeType": "YulFunctionCall",
"src": "16883:38:3"
},
"variables": [
{
"name": "oldLen",
"nodeType": "YulTypedName",
"src": "16873:6:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "17014:4:3"
},
{
"name": "oldLen",
"nodeType": "YulIdentifier",
"src": "17020:6:3"
},
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "17028:6:3"
}
],
"functionName": {
"name": "clean_up_bytearray_end_slots_t_string_storage",
"nodeType": "YulIdentifier",
"src": "16968:45:3"
},
"nodeType": "YulFunctionCall",
"src": "16968:67:3"
},
"nodeType": "YulExpressionStatement",
"src": "16968:67:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "17045:18:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "17062:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "srcOffset",
"nodeType": "YulTypedName",
"src": "17049:9:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "17073:17:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "17086:4:3",
"type": "",
"value": "0x20"
},
"variableNames": [
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "17073:9:3"
}
]
},
{
"cases": [
{
"body": {
"nodeType": "YulBlock",
"src": "17137:611:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "17151:37:3",
"value": {
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "17170:6:3"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "17182:4:3",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "17178:3:3"
},
"nodeType": "YulFunctionCall",
"src": "17178:9:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "17166:3:3"
},
"nodeType": "YulFunctionCall",
"src": "17166:22:3"
},
"variables": [
{
"name": "loopEnd",
"nodeType": "YulTypedName",
"src": "17155:7:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "17202:51:3",
"value": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "17248:4:3"
}
],
"functionName": {
"name": "array_dataslot_t_string_storage",
"nodeType": "YulIdentifier",
"src": "17216:31:3"
},
"nodeType": "YulFunctionCall",
"src": "17216:37:3"
},
"variables": [
{
"name": "dstPtr",
"nodeType": "YulTypedName",
"src": "17206:6:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "17266:10:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "17275:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "17270:1:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "17334:163:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "17359:6:3"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "17377:3:3"
},
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "17382:9:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "17373:3:3"
},
"nodeType": "YulFunctionCall",
"src": "17373:19:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "17367:5:3"
},
"nodeType": "YulFunctionCall",
"src": "17367:26:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "17352:6:3"
},
"nodeType": "YulFunctionCall",
"src": "17352:42:3"
},
"nodeType": "YulExpressionStatement",
"src": "17352:42:3"
},
{
"nodeType": "YulAssignment",
"src": "17411:24:3",
"value": {
"arguments": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "17425:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "17433:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "17421:3:3"
},
"nodeType": "YulFunctionCall",
"src": "17421:14:3"
},
"variableNames": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "17411:6:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "17452:31:3",
"value": {
"arguments": [
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "17469:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "17480:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "17465:3:3"
},
"nodeType": "YulFunctionCall",
"src": "17465:18:3"
},
"variableNames": [
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "17452:9:3"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "17300:1:3"
},
{
"name": "loopEnd",
"nodeType": "YulIdentifier",
"src": "17303:7:3"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "17297:2:3"
},
"nodeType": "YulFunctionCall",
"src": "17297:14:3"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "17312:21:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "17314:17:3",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "17323:1:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "17326:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "17319:3:3"
},
"nodeType": "YulFunctionCall",
"src": "17319:12:3"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "17314:1:3"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "17293:3:3",
"statements": []
},
"src": "17289:208:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "17533:156:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "17551:43:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "17578:3:3"
},
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "17583:9:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "17574:3:3"
},
"nodeType": "YulFunctionCall",
"src": "17574:19:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "17568:5:3"
},
"nodeType": "YulFunctionCall",
"src": "17568:26:3"
},
"variables": [
{
"name": "lastValue",
"nodeType": "YulTypedName",
"src": "17555:9:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "17618:6:3"
},
{
"arguments": [
{
"name": "lastValue",
"nodeType": "YulIdentifier",
"src": "17645:9:3"
},
{
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "17660:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "17668:4:3",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "17656:3:3"
},
"nodeType": "YulFunctionCall",
"src": "17656:17:3"
}
],
"functionName": {
"name": "mask_bytes_dynamic",
"nodeType": "YulIdentifier",
"src": "17626:18:3"
},
"nodeType": "YulFunctionCall",
"src": "17626:48:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "17611:6:3"
},
"nodeType": "YulFunctionCall",
"src": "17611:64:3"
},
"nodeType": "YulExpressionStatement",
"src": "17611:64:3"
}
]
},
"condition": {
"arguments": [
{
"name": "loopEnd",
"nodeType": "YulIdentifier",
"src": "17516:7:3"
},
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "17525:6:3"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "17513:2:3"
},
"nodeType": "YulFunctionCall",
"src": "17513:19:3"
},
"nodeType": "YulIf",
"src": "17510:179:3"
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "17709:4:3"
},
{
"arguments": [
{
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "17723:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "17731:1:3",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "17719:3:3"
},
"nodeType": "YulFunctionCall",
"src": "17719:14:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "17735:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "17715:3:3"
},
"nodeType": "YulFunctionCall",
"src": "17715:22:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "17702:6:3"
},
"nodeType": "YulFunctionCall",
"src": "17702:36:3"
},
"nodeType": "YulExpressionStatement",
"src": "17702:36:3"
}
]
},
"nodeType": "YulCase",
"src": "17130:618:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "17135:1:3",
"type": "",
"value": "1"
}
},
{
"body": {
"nodeType": "YulBlock",
"src": "17765:222:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "17779:14:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "17792:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "17783:5:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "17816:67:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "17834:35:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "17853:3:3"
},
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "17858:9:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "17849:3:3"
},
"nodeType": "YulFunctionCall",
"src": "17849:19:3"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "17843:5:3"
},
"nodeType": "YulFunctionCall",
"src": "17843:26:3"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "17834:5:3"
}
]
}
]
},
"condition": {
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "17809:6:3"
},
"nodeType": "YulIf",
"src": "17806:77:3"
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "17903:4:3"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "17962:5:3"
},
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "17969:6:3"
}
],
"functionName": {
"name": "extract_used_part_and_set_length_of_short_byte_array",
"nodeType": "YulIdentifier",
"src": "17909:52:3"
},
"nodeType": "YulFunctionCall",
"src": "17909:67:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "17896:6:3"
},
"nodeType": "YulFunctionCall",
"src": "17896:81:3"
},
"nodeType": "YulExpressionStatement",
"src": "17896:81:3"
}
]
},
"nodeType": "YulCase",
"src": "17757:230:3",
"value": "default"
}
],
"expression": {
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "17110:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "17118:2:3",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "17107:2:3"
},
"nodeType": "YulFunctionCall",
"src": "17107:14:3"
},
"nodeType": "YulSwitch",
"src": "17100:887:3"
}
]
},
"name": "copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "slot",
"nodeType": "YulTypedName",
"src": "16679:4:3",
"type": ""
},
{
"name": "src",
"nodeType": "YulTypedName",
"src": "16685:3:3",
"type": ""
}
],
"src": "16598:1395:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "18027:152:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18044:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18047:77:3",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "18037:6:3"
},
"nodeType": "YulFunctionCall",
"src": "18037:88:3"
},
"nodeType": "YulExpressionStatement",
"src": "18037:88:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18141:1:3",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18144:4:3",
"type": "",
"value": "0x11"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "18134:6:3"
},
"nodeType": "YulFunctionCall",
"src": "18134:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "18134:15:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18165:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18168:4:3",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "18158:6:3"
},
"nodeType": "YulFunctionCall",
"src": "18158:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "18158:15:3"
}
]
},
"name": "panic_error_0x11",
"nodeType": "YulFunctionDefinition",
"src": "17999:180:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "18230:149:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "18240:25:3",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "18263:1:3"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "18245:17:3"
},
"nodeType": "YulFunctionCall",
"src": "18245:20:3"
},
"variableNames": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "18240:1:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "18274:25:3",
"value": {
"arguments": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "18297:1:3"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "18279:17:3"
},
"nodeType": "YulFunctionCall",
"src": "18279:20:3"
},
"variableNames": [
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "18274:1:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "18308:17:3",
"value": {
"arguments": [
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "18320:1:3"
},
{
"name": "y",
"nodeType": "YulIdentifier",
"src": "18323:1:3"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "18316:3:3"
},
"nodeType": "YulFunctionCall",
"src": "18316:9:3"
},
"variableNames": [
{
"name": "diff",
"nodeType": "YulIdentifier",
"src": "18308:4:3"
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "18350:22:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "18352:16:3"
},
"nodeType": "YulFunctionCall",
"src": "18352:18:3"
},
"nodeType": "YulExpressionStatement",
"src": "18352:18:3"
}
]
},
"condition": {
"arguments": [
{
"name": "diff",
"nodeType": "YulIdentifier",
"src": "18341:4:3"
},
{
"name": "x",
"nodeType": "YulIdentifier",
"src": "18347:1:3"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "18338:2:3"
},
"nodeType": "YulFunctionCall",
"src": "18338:11:3"
},
"nodeType": "YulIf",
"src": "18335:37:3"
}
]
},
"name": "checked_sub_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nodeType": "YulTypedName",
"src": "18216:1:3",
"type": ""
},
{
"name": "y",
"nodeType": "YulTypedName",
"src": "18219:1:3",
"type": ""
}
],
"returnVariables": [
{
"name": "diff",
"nodeType": "YulTypedName",
"src": "18225:4:3",
"type": ""
}
],
"src": "18185:194:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "18428:190:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "18438:33:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "18465:5:3"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "18447:17:3"
},
"nodeType": "YulFunctionCall",
"src": "18447:24:3"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "18438:5:3"
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "18561:22:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nodeType": "YulIdentifier",
"src": "18563:16:3"
},
"nodeType": "YulFunctionCall",
"src": "18563:18:3"
},
"nodeType": "YulExpressionStatement",
"src": "18563:18:3"
}
]
},
"condition": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "18486:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18493:66:3",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "18483:2:3"
},
"nodeType": "YulFunctionCall",
"src": "18483:77:3"
},
"nodeType": "YulIf",
"src": "18480:103:3"
},
{
"nodeType": "YulAssignment",
"src": "18592:20:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "18603:5:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18610:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "18599:3:3"
},
"nodeType": "YulFunctionCall",
"src": "18599:13:3"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "18592:3:3"
}
]
}
]
},
"name": "increment_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "18414:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "18424:3:3",
"type": ""
}
],
"src": "18385:233:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "18652:152:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18669:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18672:77:3",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "18662:6:3"
},
"nodeType": "YulFunctionCall",
"src": "18662:88:3"
},
"nodeType": "YulExpressionStatement",
"src": "18662:88:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18766:1:3",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18769:4:3",
"type": "",
"value": "0x32"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "18759:6:3"
},
"nodeType": "YulFunctionCall",
"src": "18759:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "18759:15:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18790:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "18793:4:3",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "18783:6:3"
},
"nodeType": "YulFunctionCall",
"src": "18783:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "18783:15:3"
}
]
},
"name": "panic_error_0x32",
"nodeType": "YulFunctionDefinition",
"src": "18624:180:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "18875:53:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "18892:3:3"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "18915:5:3"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "18897:17:3"
},
"nodeType": "YulFunctionCall",
"src": "18897:24:3"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "18885:6:3"
},
"nodeType": "YulFunctionCall",
"src": "18885:37:3"
},
"nodeType": "YulExpressionStatement",
"src": "18885:37:3"
}
]
},
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "18863:5:3",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "18870:3:3",
"type": ""
}
],
"src": "18810:118:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "19032:124:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "19042:26:3",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "19054:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "19065:2:3",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "19050:3:3"
},
"nodeType": "YulFunctionCall",
"src": "19050:18:3"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "19042:4:3"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "19122:6:3"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "19135:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "19146:1:3",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "19131:3:3"
},
"nodeType": "YulFunctionCall",
"src": "19131:17:3"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulIdentifier",
"src": "19078:43:3"
},
"nodeType": "YulFunctionCall",
"src": "19078:71:3"
},
"nodeType": "YulExpressionStatement",
"src": "19078:71:3"
}
]
},
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "19004:9:3",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "19016:6:3",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "19027:4:3",
"type": ""
}
],
"src": "18934:222:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "19218:93:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "19229:22:3",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "19245:5:3"
}
],
"functionName": {
"name": "sload",
"nodeType": "YulIdentifier",
"src": "19239:5:3"
},
"nodeType": "YulFunctionCall",
"src": "19239:12:3"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "19229:6:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "19261:43:3",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "19297:6:3"
}
],
"functionName": {
"name": "extract_byte_array_length",
"nodeType": "YulIdentifier",
"src": "19271:25:3"
},
"nodeType": "YulFunctionCall",
"src": "19271:33:3"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "19261:6:3"
}
]
}
]
},
"name": "array_length_t_string_storage",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "19201:5:3",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "19211:6:3",
"type": ""
}
],
"src": "19162:149:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "19406:1362:3",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "19433:9:3",
"statements": [
{
"nodeType": "YulLeave",
"src": "19435:5:3"
}
]
},
"condition": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "19422:4:3"
},
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "19428:3:3"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "19419:2:3"
},
"nodeType": "YulFunctionCall",
"src": "19419:13:3"
},
"nodeType": "YulIf",
"src": "19416:26:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "19452:48:3",
"value": {
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "19496:3:3"
}
],
"functionName": {
"name": "array_length_t_string_storage",
"nodeType": "YulIdentifier",
"src": "19466:29:3"
},
"nodeType": "YulFunctionCall",
"src": "19466:34:3"
},
"variables": [
{
"name": "newLen",
"nodeType": "YulTypedName",
"src": "19456:6:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "19585:22:3",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "19587:16:3"
},
"nodeType": "YulFunctionCall",
"src": "19587:18:3"
},
"nodeType": "YulExpressionStatement",
"src": "19587:18:3"
}
]
},
"condition": {
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "19557:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "19565:18:3",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "19554:2:3"
},
"nodeType": "YulFunctionCall",
"src": "19554:30:3"
},
"nodeType": "YulIf",
"src": "19551:56:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "19617:52:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "19663:4:3"
}
],
"functionName": {
"name": "sload",
"nodeType": "YulIdentifier",
"src": "19657:5:3"
},
"nodeType": "YulFunctionCall",
"src": "19657:11:3"
}
],
"functionName": {
"name": "extract_byte_array_length",
"nodeType": "YulIdentifier",
"src": "19631:25:3"
},
"nodeType": "YulFunctionCall",
"src": "19631:38:3"
},
"variables": [
{
"name": "oldLen",
"nodeType": "YulTypedName",
"src": "19621:6:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "19762:4:3"
},
{
"name": "oldLen",
"nodeType": "YulIdentifier",
"src": "19768:6:3"
},
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "19776:6:3"
}
],
"functionName": {
"name": "clean_up_bytearray_end_slots_t_string_storage",
"nodeType": "YulIdentifier",
"src": "19716:45:3"
},
"nodeType": "YulFunctionCall",
"src": "19716:67:3"
},
"nodeType": "YulExpressionStatement",
"src": "19716:67:3"
},
{
"nodeType": "YulVariableDeclaration",
"src": "19793:18:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "19810:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "srcOffset",
"nodeType": "YulTypedName",
"src": "19797:9:3",
"type": ""
}
]
},
{
"cases": [
{
"body": {
"nodeType": "YulBlock",
"src": "19858:665:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "19872:37:3",
"value": {
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "19891:6:3"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "19903:4:3",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "19899:3:3"
},
"nodeType": "YulFunctionCall",
"src": "19899:9:3"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "19887:3:3"
},
"nodeType": "YulFunctionCall",
"src": "19887:22:3"
},
"variables": [
{
"name": "loopEnd",
"nodeType": "YulTypedName",
"src": "19876:7:3",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "19922:43:3",
"value": {
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "19961:3:3"
}
],
"functionName": {
"name": "array_dataslot_t_string_storage",
"nodeType": "YulIdentifier",
"src": "19929:31:3"
},
"nodeType": "YulFunctionCall",
"src": "19929:36:3"
},
"variableNames": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "19922:3:3"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "19978:51:3",
"value": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "20024:4:3"
}
],
"functionName": {
"name": "array_dataslot_t_string_storage",
"nodeType": "YulIdentifier",
"src": "19992:31:3"
},
"nodeType": "YulFunctionCall",
"src": "19992:37:3"
},
"variables": [
{
"name": "dstPtr",
"nodeType": "YulTypedName",
"src": "19982:6:3",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "20042:10:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "20051:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "20046:1:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "20110:162:3",
"statements": [
{
"expression": {
"arguments": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "20135:6:3"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "20153:3:3"
},
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "20158:9:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "20149:3:3"
},
"nodeType": "YulFunctionCall",
"src": "20149:19:3"
}
],
"functionName": {
"name": "sload",
"nodeType": "YulIdentifier",
"src": "20143:5:3"
},
"nodeType": "YulFunctionCall",
"src": "20143:26:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "20128:6:3"
},
"nodeType": "YulFunctionCall",
"src": "20128:42:3"
},
"nodeType": "YulExpressionStatement",
"src": "20128:42:3"
},
{
"nodeType": "YulAssignment",
"src": "20187:24:3",
"value": {
"arguments": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "20201:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "20209:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "20197:3:3"
},
"nodeType": "YulFunctionCall",
"src": "20197:14:3"
},
"variableNames": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "20187:6:3"
}
]
},
{
"nodeType": "YulAssignment",
"src": "20228:30:3",
"value": {
"arguments": [
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "20245:9:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "20256:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "20241:3:3"
},
"nodeType": "YulFunctionCall",
"src": "20241:17:3"
},
"variableNames": [
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "20228:9:3"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "20076:1:3"
},
{
"name": "loopEnd",
"nodeType": "YulIdentifier",
"src": "20079:7:3"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "20073:2:3"
},
"nodeType": "YulFunctionCall",
"src": "20073:14:3"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "20088:21:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "20090:17:3",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "20099:1:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "20102:4:3",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "20095:3:3"
},
"nodeType": "YulFunctionCall",
"src": "20095:12:3"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "20090:1:3"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "20069:3:3",
"statements": []
},
"src": "20065:207:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "20308:156:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "20326:43:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "20353:3:3"
},
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "20358:9:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "20349:3:3"
},
"nodeType": "YulFunctionCall",
"src": "20349:19:3"
}
],
"functionName": {
"name": "sload",
"nodeType": "YulIdentifier",
"src": "20343:5:3"
},
"nodeType": "YulFunctionCall",
"src": "20343:26:3"
},
"variables": [
{
"name": "lastValue",
"nodeType": "YulTypedName",
"src": "20330:9:3",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "20393:6:3"
},
{
"arguments": [
{
"name": "lastValue",
"nodeType": "YulIdentifier",
"src": "20420:9:3"
},
{
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "20435:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "20443:4:3",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "20431:3:3"
},
"nodeType": "YulFunctionCall",
"src": "20431:17:3"
}
],
"functionName": {
"name": "mask_bytes_dynamic",
"nodeType": "YulIdentifier",
"src": "20401:18:3"
},
"nodeType": "YulFunctionCall",
"src": "20401:48:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "20386:6:3"
},
"nodeType": "YulFunctionCall",
"src": "20386:64:3"
},
"nodeType": "YulExpressionStatement",
"src": "20386:64:3"
}
]
},
"condition": {
"arguments": [
{
"name": "loopEnd",
"nodeType": "YulIdentifier",
"src": "20291:7:3"
},
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "20300:6:3"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "20288:2:3"
},
"nodeType": "YulFunctionCall",
"src": "20288:19:3"
},
"nodeType": "YulIf",
"src": "20285:179:3"
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "20484:4:3"
},
{
"arguments": [
{
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "20498:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "20506:1:3",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "20494:3:3"
},
"nodeType": "YulFunctionCall",
"src": "20494:14:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "20510:1:3",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "20490:3:3"
},
"nodeType": "YulFunctionCall",
"src": "20490:22:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "20477:6:3"
},
"nodeType": "YulFunctionCall",
"src": "20477:36:3"
},
"nodeType": "YulExpressionStatement",
"src": "20477:36:3"
}
]
},
"nodeType": "YulCase",
"src": "19851:672:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "19856:1:3",
"type": "",
"value": "1"
}
},
{
"body": {
"nodeType": "YulBlock",
"src": "20540:222:3",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "20554:14:3",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "20567:1:3",
"type": "",
"value": "0"
},
"variables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "20558:5:3",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "20591:67:3",
"statements": [
{
"nodeType": "YulAssignment",
"src": "20609:35:3",
"value": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "20628:3:3"
},
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "20633:9:3"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "20624:3:3"
},
"nodeType": "YulFunctionCall",
"src": "20624:19:3"
}
],
"functionName": {
"name": "sload",
"nodeType": "YulIdentifier",
"src": "20618:5:3"
},
"nodeType": "YulFunctionCall",
"src": "20618:26:3"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "20609:5:3"
}
]
}
]
},
"condition": {
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "20584:6:3"
},
"nodeType": "YulIf",
"src": "20581:77:3"
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "20678:4:3"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "20737:5:3"
},
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "20744:6:3"
}
],
"functionName": {
"name": "extract_used_part_and_set_length_of_short_byte_array",
"nodeType": "YulIdentifier",
"src": "20684:52:3"
},
"nodeType": "YulFunctionCall",
"src": "20684:67:3"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "20671:6:3"
},
"nodeType": "YulFunctionCall",
"src": "20671:81:3"
},
"nodeType": "YulExpressionStatement",
"src": "20671:81:3"
}
]
},
"nodeType": "YulCase",
"src": "20532:230:3",
"value": "default"
}
],
"expression": {
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "19831:6:3"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "19839:2:3",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "19828:2:3"
},
"nodeType": "YulFunctionCall",
"src": "19828:14:3"
},
"nodeType": "YulSwitch",
"src": "19821:941:3"
}
]
},
"name": "copy_byte_array_to_storage_from_t_string_storage_to_t_string_storage",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "slot",
"nodeType": "YulTypedName",
"src": "19395:4:3",
"type": ""
},
{
"name": "src",
"nodeType": "YulTypedName",
"src": "19401:3:3",
"type": ""
}
],
"src": "19317:1451:3"
},
{
"body": {
"nodeType": "YulBlock",
"src": "20802:152:3",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "20819:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "20822:77:3",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "20812:6:3"
},
"nodeType": "YulFunctionCall",
"src": "20812:88:3"
},
"nodeType": "YulExpressionStatement",
"src": "20812:88:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "20916:1:3",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "20919:4:3",
"type": "",
"value": "0x31"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "20909:6:3"
},
"nodeType": "YulFunctionCall",
"src": "20909:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "20909:15:3"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "20940:1:3",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "20943:4:3",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "20933:6:3"
},
"nodeType": "YulFunctionCall",
"src": "20933:15:3"
},
"nodeType": "YulExpressionStatement",
"src": "20933:15:3"
}
]
},
"name": "panic_error_0x31",
"nodeType": "YulFunctionDefinition",
"src": "20774:180:3"
}
]
},
"contents": "{\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() {\n revert(0, 0)\n }\n\n function revert_error_15abf5612cd996bc235ba1e55a4a30ac60e6bb601ff7ba4ad3f179b6be8d0490() {\n revert(0, 0)\n }\n\n function revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef() {\n revert(0, 0)\n }\n\n // string\n function abi_decode_t_string_calldata_ptr(offset, end) -> arrayPos, length {\n if iszero(slt(add(offset, 0x1f), end)) { revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() }\n length := calldataload(offset)\n if gt(length, 0xffffffffffffffff) { revert_error_15abf5612cd996bc235ba1e55a4a30ac60e6bb601ff7ba4ad3f179b6be8d0490() }\n arrayPos := add(offset, 0x20)\n if gt(add(arrayPos, mul(length, 0x01)), end) { revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef() }\n }\n\n // uint256[]\n function abi_decode_t_array$_t_uint256_$dyn_calldata_ptr(offset, end) -> arrayPos, length {\n if iszero(slt(add(offset, 0x1f), end)) { revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() }\n length := calldataload(offset)\n if gt(length, 0xffffffffffffffff) { revert_error_15abf5612cd996bc235ba1e55a4a30ac60e6bb601ff7ba4ad3f179b6be8d0490() }\n arrayPos := add(offset, 0x20)\n if gt(add(arrayPos, mul(length, 0x20)), end) { revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef() }\n }\n\n function abi_decode_tuple_t_string_calldata_ptrt_string_calldata_ptrt_array$_t_uint256_$dyn_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5 {\n if slt(sub(dataEnd, headStart), 96) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := calldataload(add(headStart, 0))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value0, value1 := abi_decode_t_string_calldata_ptr(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := calldataload(add(headStart, 32))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value2, value3 := abi_decode_t_string_calldata_ptr(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := calldataload(add(headStart, 64))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value4, value5 := abi_decode_t_array$_t_uint256_$dyn_calldata_ptr(add(headStart, offset), dataEnd)\n }\n\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function abi_encode_t_address_to_t_address_fromStack(value, pos) {\n mstore(pos, cleanup_t_address(value))\n }\n\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_address_to_t_address_fromStack(value0, add(headStart, 0))\n\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_uint256(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_uint256(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_encode_t_uint256_to_t_uint256(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function array_length_t_string_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function copy_memory_to_memory_with_cleanup(src, dst, length) {\n let i := 0\n for { } lt(i, length) { i := add(i, 32) }\n {\n mstore(add(dst, i), mload(add(src, i)))\n }\n mstore(add(dst, length), 0)\n }\n\n function round_up_to_mul_of_32(value) -> result {\n result := and(add(value, 31), not(31))\n }\n\n function abi_encode_t_string_memory_ptr_to_t_string_memory_ptr(value, pos) -> end {\n let length := array_length_t_string_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_string_memory_ptr(pos, length)\n copy_memory_to_memory_with_cleanup(add(value, 0x20), pos, length)\n end := add(pos, round_up_to_mul_of_32(length))\n }\n\n function array_length_t_array$_t_uint256_$dyn_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_array$_t_uint256_$dyn_memory_ptr(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function array_dataslot_t_array$_t_uint256_$dyn_memory_ptr(ptr) -> data {\n data := ptr\n\n data := add(ptr, 0x20)\n\n }\n\n function abi_encodeUpdatedPos_t_uint256_to_t_uint256(value0, pos) -> updatedPos {\n abi_encode_t_uint256_to_t_uint256(value0, pos)\n updatedPos := add(pos, 0x20)\n }\n\n function array_nextElement_t_array$_t_uint256_$dyn_memory_ptr(ptr) -> next {\n next := add(ptr, 0x20)\n }\n\n // uint256[] -> uint256[]\n function abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr(value, pos) -> end {\n let length := array_length_t_array$_t_uint256_$dyn_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_array$_t_uint256_$dyn_memory_ptr(pos, length)\n let baseRef := array_dataslot_t_array$_t_uint256_$dyn_memory_ptr(value)\n let srcPtr := baseRef\n for { let i := 0 } lt(i, length) { i := add(i, 1) }\n {\n let elementValue0 := mload(srcPtr)\n pos := abi_encodeUpdatedPos_t_uint256_to_t_uint256(elementValue0, pos)\n srcPtr := array_nextElement_t_array$_t_uint256_$dyn_memory_ptr(srcPtr)\n }\n end := pos\n }\n\n // struct AddressBook.Contact -> struct AddressBook.Contact\n function abi_encode_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr_fromStack(value, pos) -> end {\n let tail := add(pos, 0x80)\n\n {\n // id\n\n let memberValue0 := mload(add(value, 0x00))\n abi_encode_t_uint256_to_t_uint256(memberValue0, add(pos, 0x00))\n }\n\n {\n // firstName\n\n let memberValue0 := mload(add(value, 0x20))\n\n mstore(add(pos, 0x20), sub(tail, pos))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr(memberValue0, tail)\n\n }\n\n {\n // lastName\n\n let memberValue0 := mload(add(value, 0x40))\n\n mstore(add(pos, 0x40), sub(tail, pos))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr(memberValue0, tail)\n\n }\n\n {\n // phoneNumbers\n\n let memberValue0 := mload(add(value, 0x60))\n\n mstore(add(pos, 0x60), sub(tail, pos))\n tail := abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr(memberValue0, tail)\n\n }\n\n end := tail\n }\n\n function abi_encode_tuple_t_struct$_Contact_$197_memory_ptr__to_t_struct$_Contact_$197_memory_ptr__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr_fromStack(value0, tail)\n\n }\n\n function array_length_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function array_storeLengthForEncoding_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function array_dataslot_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr(ptr) -> data {\n data := ptr\n\n data := add(ptr, 0x20)\n\n }\n\n // struct AddressBook.Contact -> struct AddressBook.Contact\n function abi_encode_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr(value, pos) -> end {\n let tail := add(pos, 0x80)\n\n {\n // id\n\n let memberValue0 := mload(add(value, 0x00))\n abi_encode_t_uint256_to_t_uint256(memberValue0, add(pos, 0x00))\n }\n\n {\n // firstName\n\n let memberValue0 := mload(add(value, 0x20))\n\n mstore(add(pos, 0x20), sub(tail, pos))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr(memberValue0, tail)\n\n }\n\n {\n // lastName\n\n let memberValue0 := mload(add(value, 0x40))\n\n mstore(add(pos, 0x40), sub(tail, pos))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr(memberValue0, tail)\n\n }\n\n {\n // phoneNumbers\n\n let memberValue0 := mload(add(value, 0x60))\n\n mstore(add(pos, 0x60), sub(tail, pos))\n tail := abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr(memberValue0, tail)\n\n }\n\n end := tail\n }\n\n function abi_encodeUpdatedPos_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr(value0, pos) -> updatedPos {\n updatedPos := abi_encode_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr(value0, pos)\n }\n\n function array_nextElement_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr(ptr) -> next {\n next := add(ptr, 0x20)\n }\n\n // struct AddressBook.Contact[] -> struct AddressBook.Contact[]\n function abi_encode_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_fromStack(pos, length)\n let headStart := pos\n let tail := add(pos, mul(length, 0x20))\n let baseRef := array_dataslot_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr(value)\n let srcPtr := baseRef\n for { let i := 0 } lt(i, length) { i := add(i, 1) }\n {\n mstore(pos, sub(tail, headStart))\n let elementValue0 := mload(srcPtr)\n tail := abi_encodeUpdatedPos_t_struct$_Contact_$197_memory_ptr_to_t_struct$_Contact_$197_memory_ptr(elementValue0, tail)\n srcPtr := array_nextElement_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr(srcPtr)\n pos := add(pos, 0x20)\n }\n pos := tail\n end := pos\n }\n\n function abi_encode_tuple_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr__to_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_to_t_array$_t_struct$_Contact_$197_memory_ptr_$dyn_memory_ptr_fromStack(value0, tail)\n\n }\n\n function validator_revert_t_address(value) {\n if iszero(eq(value, cleanup_t_address(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_address(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_address(value)\n }\n\n function abi_decode_tuple_t_address(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_address(add(headStart, offset), dataEnd)\n }\n\n }\n\n function panic_error_0x41() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n\n function panic_error_0x22() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n\n function extract_byte_array_length(data) -> length {\n length := div(data, 2)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) {\n length := and(length, 0x7f)\n }\n\n if eq(outOfPlaceEncoding, lt(length, 32)) {\n panic_error_0x22()\n }\n }\n\n function array_dataslot_t_string_storage(ptr) -> data {\n data := ptr\n\n mstore(0, ptr)\n data := keccak256(0, 0x20)\n\n }\n\n function divide_by_32_ceil(value) -> result {\n result := div(add(value, 31), 32)\n }\n\n function shift_left_dynamic(bits, value) -> newValue {\n newValue :=\n\n shl(bits, value)\n\n }\n\n function update_byte_slice_dynamic32(value, shiftBytes, toInsert) -> result {\n let shiftBits := mul(shiftBytes, 8)\n let mask := shift_left_dynamic(shiftBits, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)\n toInsert := shift_left_dynamic(shiftBits, toInsert)\n value := and(value, not(mask))\n result := or(value, and(toInsert, mask))\n }\n\n function identity(value) -> ret {\n ret := value\n }\n\n function convert_t_uint256_to_t_uint256(value) -> converted {\n converted := cleanup_t_uint256(identity(cleanup_t_uint256(value)))\n }\n\n function prepare_store_t_uint256(value) -> ret {\n ret := value\n }\n\n function update_storage_value_t_uint256_to_t_uint256(slot, offset, value_0) {\n let convertedValue_0 := convert_t_uint256_to_t_uint256(value_0)\n sstore(slot, update_byte_slice_dynamic32(sload(slot), offset, prepare_store_t_uint256(convertedValue_0)))\n }\n\n function zero_value_for_split_t_uint256() -> ret {\n ret := 0\n }\n\n function storage_set_to_zero_t_uint256(slot, offset) {\n let zero_0 := zero_value_for_split_t_uint256()\n update_storage_value_t_uint256_to_t_uint256(slot, offset, zero_0)\n }\n\n function clear_storage_range_t_bytes1(start, end) {\n for {} lt(start, end) { start := add(start, 1) }\n {\n storage_set_to_zero_t_uint256(start, 0)\n }\n }\n\n function clean_up_bytearray_end_slots_t_string_storage(array, len, startIndex) {\n\n if gt(len, 31) {\n let dataArea := array_dataslot_t_string_storage(array)\n let deleteStart := add(dataArea, divide_by_32_ceil(startIndex))\n // If we are clearing array to be short byte array, we want to clear only data starting from array data area.\n if lt(startIndex, 32) { deleteStart := dataArea }\n clear_storage_range_t_bytes1(deleteStart, add(dataArea, divide_by_32_ceil(len)))\n }\n\n }\n\n function shift_right_unsigned_dynamic(bits, value) -> newValue {\n newValue :=\n\n shr(bits, value)\n\n }\n\n function mask_bytes_dynamic(data, bytes) -> result {\n let mask := not(shift_right_unsigned_dynamic(mul(8, bytes), not(0)))\n result := and(data, mask)\n }\n function extract_used_part_and_set_length_of_short_byte_array(data, len) -> used {\n // we want to save only elements that are part of the array after resizing\n // others should be set to zero\n data := mask_bytes_dynamic(data, len)\n used := or(data, mul(2, len))\n }\n function copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage(slot, src) {\n\n let newLen := array_length_t_string_memory_ptr(src)\n // Make sure array length is sane\n if gt(newLen, 0xffffffffffffffff) { panic_error_0x41() }\n\n let oldLen := extract_byte_array_length(sload(slot))\n\n // potentially truncate data\n clean_up_bytearray_end_slots_t_string_storage(slot, oldLen, newLen)\n\n let srcOffset := 0\n\n srcOffset := 0x20\n\n switch gt(newLen, 31)\n case 1 {\n let loopEnd := and(newLen, not(0x1f))\n\n let dstPtr := array_dataslot_t_string_storage(slot)\n let i := 0\n for { } lt(i, loopEnd) { i := add(i, 0x20) } {\n sstore(dstPtr, mload(add(src, srcOffset)))\n dstPtr := add(dstPtr, 1)\n srcOffset := add(srcOffset, 32)\n }\n if lt(loopEnd, newLen) {\n let lastValue := mload(add(src, srcOffset))\n sstore(dstPtr, mask_bytes_dynamic(lastValue, and(newLen, 0x1f)))\n }\n sstore(slot, add(mul(newLen, 2), 1))\n }\n default {\n let value := 0\n if newLen {\n value := mload(add(src, srcOffset))\n }\n sstore(slot, extract_used_part_and_set_length_of_short_byte_array(value, newLen))\n }\n }\n\n function panic_error_0x11() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n\n function checked_sub_t_uint256(x, y) -> diff {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n diff := sub(x, y)\n\n if gt(diff, x) { panic_error_0x11() }\n\n }\n\n function increment_t_uint256(value) -> ret {\n value := cleanup_t_uint256(value)\n if eq(value, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) { panic_error_0x11() }\n ret := add(value, 1)\n }\n\n function panic_error_0x32() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x32)\n revert(0, 0x24)\n }\n\n function abi_encode_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n }\n\n function array_length_t_string_storage(value) -> length {\n\n length := sload(value)\n\n length := extract_byte_array_length(length)\n\n }\n\n function copy_byte_array_to_storage_from_t_string_storage_to_t_string_storage(slot, src) {\n if eq(slot, src) { leave }\n\n let newLen := array_length_t_string_storage(src)\n // Make sure array length is sane\n if gt(newLen, 0xffffffffffffffff) { panic_error_0x41() }\n\n let oldLen := extract_byte_array_length(sload(slot))\n\n // potentially truncate data\n clean_up_bytearray_end_slots_t_string_storage(slot, oldLen, newLen)\n\n let srcOffset := 0\n\n switch gt(newLen, 31)\n case 1 {\n let loopEnd := and(newLen, not(0x1f))\n src := array_dataslot_t_string_storage(src)\n let dstPtr := array_dataslot_t_string_storage(slot)\n let i := 0\n for { } lt(i, loopEnd) { i := add(i, 0x20) } {\n sstore(dstPtr, sload(add(src, srcOffset)))\n dstPtr := add(dstPtr, 1)\n srcOffset := add(srcOffset, 1)\n }\n if lt(loopEnd, newLen) {\n let lastValue := sload(add(src, srcOffset))\n sstore(dstPtr, mask_bytes_dynamic(lastValue, and(newLen, 0x1f)))\n }\n sstore(slot, add(mul(newLen, 2), 1))\n }\n default {\n let value := 0\n if newLen {\n value := sload(add(src, srcOffset))\n }\n sstore(slot, extract_used_part_and_set_length_of_short_byte_array(value, newLen))\n }\n }\n\n function panic_error_0x31() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x31)\n revert(0, 0x24)\n }\n\n}\n",
"id": 3,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "608060405234801561000f575f80fd5b506004361061007b575f3560e01c8063b9ed6fca11610059578063b9ed6fca146100c3578063e6505e1e146100df578063ef1d6ddd1461010f578063f2fde38b1461012d5761007b565b80633f06f6e81461007f578063715018a61461009b5780638da5cb5b146100a5575b5f80fd5b61009960048036038101906100949190610cfe565b610149565b005b6100a36102fd565b005b6100ad610310565b6040516100ba9190610ded565b60405180910390f35b6100dd60048036038101906100d89190610e39565b610337565b005b6100f960048036038101906100f49190610e39565b610515565b6040516101069190611013565b60405180910390f35b61011761075c565b604051610124919061115c565b60405180910390f35b610147600480360381019061014291906111a6565b610937565b005b6101516109bb565b60026040518060800160405280600454815260200188888080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f82011690508083019250505050505050815260200186868080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f8201169050808301925050505050505081526020018484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f82011690508083019250505050505050815250908060018154018082558091505060019003905f5260205f2090600402015f909190919091505f820151815f0155602082015181600101908161027f91906113f8565b50604082015181600201908161029591906113f8565b5060608201518160030190805190602001906102b2929190610b0a565b50505060016002805490506102c791906114f4565b60035f60045481526020019081526020015f208190555060045f8154809291906102f090611527565b9190505550505050505050565b6103056109bb565b61030e5f610a42565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61033f6109bb565b5f60035f8381526020019081526020015f205490506002805490508110158061038a575081600282815481106103785761037761156e565b5b905f5260205f2090600402015f015414155b156103cc57816040517ff55dec000000000000000000000000000000000000000000000000000000000081526004016103c391906115aa565b60405180910390fd5b600260016002805490506103e091906114f4565b815481106103f1576103f061156e565b5b905f5260205f209060040201600282815481106104115761041061156e565b5b905f5260205f2090600402015f820154815f01556001820181600101908161043991906115d8565b506002820181600201908161044e91906115d8565b506003820181600301908054610465929190610b55565b509050508060035f600284815481106104815761048061156e565b5b905f5260205f2090600402015f015481526020019081526020015f208190555060028054806104b3576104b26116bd565b5b600190038181905f5260205f2090600402015f8082015f9055600182015f6104db9190610ba3565b600282015f6104ea9190610ba3565b600382015f6104f99190610be0565b5050905560035f8381526020019081526020015f205f90555050565b61051d610bfe565b5f60035f8481526020019081526020015f2054905060028054905081101580610568575082600282815481106105565761055561156e565b5b905f5260205f2090600402015f015414155b156105aa57826040517ff55dec000000000000000000000000000000000000000000000000000000000081526004016105a191906115aa565b60405180910390fd5b600281815481106105be576105bd61156e565b5b905f5260205f2090600402016040518060800160405290815f82015481526020016001820180546105ee9061122b565b80601f016020809104026020016040519081016040528092919081815260200182805461061a9061122b565b80156106655780601f1061063c57610100808354040283529160200191610665565b820191905f5260205f20905b81548152906001019060200180831161064857829003601f168201915b5050505050815260200160028201805461067e9061122b565b80601f01602080910402602001604051908101604052809291908181526020018280546106aa9061122b565b80156106f55780601f106106cc576101008083540402835291602001916106f5565b820191905f5260205f20905b8154815290600101906020018083116106d857829003601f168201915b505050505081526020016003820180548060200260200160405190810160405280929190818152602001828054801561074b57602002820191905f5260205f20905b815481526020019060010190808311610737575b505050505081525050915050919050565b60606002805480602002602001604051908101604052809291908181526020015f905b8282101561092e578382905f5260205f2090600402016040518060800160405290815f82015481526020016001820180546107b99061122b565b80601f01602080910402602001604051908101604052809291908181526020018280546107e59061122b565b80156108305780601f1061080757610100808354040283529160200191610830565b820191905f5260205f20905b81548152906001019060200180831161081357829003601f168201915b505050505081526020016002820180546108499061122b565b80601f01602080910402602001604051908101604052809291908181526020018280546108759061122b565b80156108c05780601f10610897576101008083540402835291602001916108c0565b820191905f5260205f20905b8154815290600101906020018083116108a357829003601f168201915b505050505081526020016003820180548060200260200160405190810160405280929190818152602001828054801561091657602002820191905f5260205f20905b815481526020019060010190808311610902575b5050505050815250508152602001906001019061077f565b50505050905090565b61093f6109bb565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109af575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016109a69190610ded565b60405180910390fd5b6109b881610a42565b50565b6109c3610b03565b73ffffffffffffffffffffffffffffffffffffffff166109e1610310565b73ffffffffffffffffffffffffffffffffffffffff1614610a4057610a04610b03565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a379190610ded565b60405180910390fd5b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b828054828255905f5260205f20908101928215610b44579160200282015b82811115610b43578251825591602001919060010190610b28565b5b509050610b519190610c25565b5090565b828054828255905f5260205f20908101928215610b92575f5260205f209182015b82811115610b91578254825591600101919060010190610b76565b5b509050610b9f9190610c25565b5090565b508054610baf9061122b565b5f825580601f10610bc05750610bdd565b601f0160209004905f5260205f2090810190610bdc9190610c25565b5b50565b5080545f8255905f5260205f2090810190610bfb9190610c25565b50565b60405180608001604052805f81526020016060815260200160608152602001606081525090565b5b80821115610c3c575f815f905550600101610c26565b5090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112610c6957610c68610c48565b5b8235905067ffffffffffffffff811115610c8657610c85610c4c565b5b602083019150836001820283011115610ca257610ca1610c50565b5b9250929050565b5f8083601f840112610cbe57610cbd610c48565b5b8235905067ffffffffffffffff811115610cdb57610cda610c4c565b5b602083019150836020820283011115610cf757610cf6610c50565b5b9250929050565b5f805f805f8060608789031215610d1857610d17610c40565b5b5f87013567ffffffffffffffff811115610d3557610d34610c44565b5b610d4189828a01610c54565b9650965050602087013567ffffffffffffffff811115610d6457610d63610c44565b5b610d7089828a01610c54565b9450945050604087013567ffffffffffffffff811115610d9357610d92610c44565b5b610d9f89828a01610ca9565b92509250509295509295509295565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610dd782610dae565b9050919050565b610de781610dcd565b82525050565b5f602082019050610e005f830184610dde565b92915050565b5f819050919050565b610e1881610e06565b8114610e22575f80fd5b50565b5f81359050610e3381610e0f565b92915050565b5f60208284031215610e4e57610e4d610c40565b5b5f610e5b84828501610e25565b91505092915050565b610e6d81610e06565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015610eaa578082015181840152602081019050610e8f565b5f8484015250505050565b5f601f19601f8301169050919050565b5f610ecf82610e73565b610ed98185610e7d565b9350610ee9818560208601610e8d565b610ef281610eb5565b840191505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f610f318383610e64565b60208301905092915050565b5f602082019050919050565b5f610f5382610efd565b610f5d8185610f07565b9350610f6883610f17565b805f5b83811015610f98578151610f7f8882610f26565b9750610f8a83610f3d565b925050600181019050610f6b565b5085935050505092915050565b5f608083015f830151610fba5f860182610e64565b5060208301518482036020860152610fd28282610ec5565b91505060408301518482036040860152610fec8282610ec5565b915050606083015184820360608601526110068282610f49565b9150508091505092915050565b5f6020820190508181035f83015261102b8184610fa5565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f608083015f8301516110715f860182610e64565b50602083015184820360208601526110898282610ec5565b915050604083015184820360408601526110a38282610ec5565b915050606083015184820360608601526110bd8282610f49565b9150508091505092915050565b5f6110d5838361105c565b905092915050565b5f602082019050919050565b5f6110f382611033565b6110fd818561103d565b93508360208202850161110f8561104d565b805f5b8581101561114a578484038952815161112b85826110ca565b9450611136836110dd565b925060208a01995050600181019050611112565b50829750879550505050505092915050565b5f6020820190508181035f83015261117481846110e9565b905092915050565b61118581610dcd565b811461118f575f80fd5b50565b5f813590506111a08161117c565b92915050565b5f602082840312156111bb576111ba610c40565b5b5f6111c884828501611192565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061124257607f821691505b602082108103611255576112546111fe565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026112b77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261127c565b6112c1868361127c565b95508019841693508086168417925050509392505050565b5f819050919050565b5f6112fc6112f76112f284610e06565b6112d9565b610e06565b9050919050565b5f819050919050565b611315836112e2565b61132961132182611303565b848454611288565b825550505050565b5f90565b61133d611331565b61134881848461130c565b505050565b5b8181101561136b576113605f82611335565b60018101905061134e565b5050565b601f8211156113b0576113818161125b565b61138a8461126d565b81016020851015611399578190505b6113ad6113a58561126d565b83018261134d565b50505b505050565b5f82821c905092915050565b5f6113d05f19846008026113b5565b1980831691505092915050565b5f6113e883836113c1565b9150826002028217905092915050565b61140182610e73565b67ffffffffffffffff81111561141a576114196111d1565b5b611424825461122b565b61142f82828561136f565b5f60209050601f831160018114611460575f841561144e578287015190505b61145885826113dd565b8655506114bf565b601f19841661146e8661125b565b5f5b8281101561149557848901518255600182019150602085019450602081019050611470565b868310156114b257848901516114ae601f8916826113c1565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6114fe82610e06565b915061150983610e06565b9250828203905081811115611521576115206114c7565b5b92915050565b5f61153182610e06565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611563576115626114c7565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b6115a481610e06565b82525050565b5f6020820190506115bd5f83018461159b565b92915050565b5f815490506115d18161122b565b9050919050565b8181036115e65750506116bb565b6115ef826115c3565b67ffffffffffffffff811115611608576116076111d1565b5b611612825461122b565b61161d82828561136f565b5f601f83116001811461164a575f8415611638578287015490505b61164285826113dd565b8655506116b4565b601f1984166116588761125b565b96506116638661125b565b5f5b8281101561168a57848901548255600182019150600185019450602081019050611665565b868310156116a757848901546116a3601f8916826113c1565b8355505b6001600288020188555050505b5050505050505b565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffdfea26469706673582212205b3f5b4806c4e3e1d7955e22949a234ef59899dae53fc08c87b6380fcb7aed3664736f6c63430008140033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0xF JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x7B JUMPI PUSH0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0xB9ED6FCA GT PUSH2 0x59 JUMPI DUP1 PUSH4 0xB9ED6FCA EQ PUSH2 0xC3 JUMPI DUP1 PUSH4 0xE6505E1E EQ PUSH2 0xDF JUMPI DUP1 PUSH4 0xEF1D6DDD EQ PUSH2 0x10F JUMPI DUP1 PUSH4 0xF2FDE38B EQ PUSH2 0x12D JUMPI PUSH2 0x7B JUMP JUMPDEST DUP1 PUSH4 0x3F06F6E8 EQ PUSH2 0x7F JUMPI DUP1 PUSH4 0x715018A6 EQ PUSH2 0x9B JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0xA5 JUMPI JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH2 0x99 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x94 SWAP2 SWAP1 PUSH2 0xCFE JUMP JUMPDEST PUSH2 0x149 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xA3 PUSH2 0x2FD JUMP JUMPDEST STOP JUMPDEST PUSH2 0xAD PUSH2 0x310 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xBA SWAP2 SWAP1 PUSH2 0xDED JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xDD PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xD8 SWAP2 SWAP1 PUSH2 0xE39 JUMP JUMPDEST PUSH2 0x337 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xF9 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xF4 SWAP2 SWAP1 PUSH2 0xE39 JUMP JUMPDEST PUSH2 0x515 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x106 SWAP2 SWAP1 PUSH2 0x1013 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x117 PUSH2 0x75C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x124 SWAP2 SWAP1 PUSH2 0x115C JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x147 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x142 SWAP2 SWAP1 PUSH2 0x11A6 JUMP JUMPDEST PUSH2 0x937 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x151 PUSH2 0x9BB JUMP JUMPDEST PUSH1 0x2 PUSH1 0x40 MLOAD DUP1 PUSH1 0x80 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x4 SLOAD DUP2 MSTORE PUSH1 0x20 ADD DUP9 DUP9 DUP1 DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 DUP1 DUP3 DUP5 CALLDATACOPY PUSH0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP POP POP POP POP DUP2 MSTORE PUSH1 0x20 ADD DUP7 DUP7 DUP1 DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 DUP1 DUP3 DUP5 CALLDATACOPY PUSH0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP POP POP POP POP DUP2 MSTORE PUSH1 0x20 ADD DUP5 DUP5 DUP1 DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP4 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP4 DUP4 PUSH1 0x20 MUL DUP1 DUP3 DUP5 CALLDATACOPY PUSH0 DUP2 DUP5 ADD MSTORE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND SWAP1 POP DUP1 DUP4 ADD SWAP3 POP POP POP POP POP POP POP DUP2 MSTORE POP SWAP1 DUP1 PUSH1 0x1 DUP2 SLOAD ADD DUP1 DUP3 SSTORE DUP1 SWAP2 POP POP PUSH1 0x1 SWAP1 SUB SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH0 SWAP1 SWAP2 SWAP1 SWAP2 SWAP1 SWAP2 POP PUSH0 DUP3 ADD MLOAD DUP2 PUSH0 ADD SSTORE PUSH1 0x20 DUP3 ADD MLOAD DUP2 PUSH1 0x1 ADD SWAP1 DUP2 PUSH2 0x27F SWAP2 SWAP1 PUSH2 0x13F8 JUMP JUMPDEST POP PUSH1 0x40 DUP3 ADD MLOAD DUP2 PUSH1 0x2 ADD SWAP1 DUP2 PUSH2 0x295 SWAP2 SWAP1 PUSH2 0x13F8 JUMP JUMPDEST POP PUSH1 0x60 DUP3 ADD MLOAD DUP2 PUSH1 0x3 ADD SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x2B2 SWAP3 SWAP2 SWAP1 PUSH2 0xB0A JUMP JUMPDEST POP POP POP PUSH1 0x1 PUSH1 0x2 DUP1 SLOAD SWAP1 POP PUSH2 0x2C7 SWAP2 SWAP1 PUSH2 0x14F4 JUMP JUMPDEST PUSH1 0x3 PUSH0 PUSH1 0x4 SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 DUP2 SWAP1 SSTORE POP PUSH1 0x4 PUSH0 DUP2 SLOAD DUP1 SWAP3 SWAP2 SWAP1 PUSH2 0x2F0 SWAP1 PUSH2 0x1527 JUMP JUMPDEST SWAP2 SWAP1 POP SSTORE POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0x305 PUSH2 0x9BB JUMP JUMPDEST PUSH2 0x30E PUSH0 PUSH2 0xA42 JUMP JUMPDEST JUMP JUMPDEST PUSH0 DUP1 PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 POP SWAP1 JUMP JUMPDEST PUSH2 0x33F PUSH2 0x9BB JUMP JUMPDEST PUSH0 PUSH1 0x3 PUSH0 DUP4 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 SLOAD SWAP1 POP PUSH1 0x2 DUP1 SLOAD SWAP1 POP DUP2 LT ISZERO DUP1 PUSH2 0x38A JUMPI POP DUP2 PUSH1 0x2 DUP3 DUP2 SLOAD DUP2 LT PUSH2 0x378 JUMPI PUSH2 0x377 PUSH2 0x156E JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH0 ADD SLOAD EQ ISZERO JUMPDEST ISZERO PUSH2 0x3CC JUMPI DUP2 PUSH1 0x40 MLOAD PUSH32 0xF55DEC0000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x3C3 SWAP2 SWAP1 PUSH2 0x15AA JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x2 PUSH1 0x1 PUSH1 0x2 DUP1 SLOAD SWAP1 POP PUSH2 0x3E0 SWAP2 SWAP1 PUSH2 0x14F4 JUMP JUMPDEST DUP2 SLOAD DUP2 LT PUSH2 0x3F1 JUMPI PUSH2 0x3F0 PUSH2 0x156E JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH1 0x2 DUP3 DUP2 SLOAD DUP2 LT PUSH2 0x411 JUMPI PUSH2 0x410 PUSH2 0x156E JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH0 DUP3 ADD SLOAD DUP2 PUSH0 ADD SSTORE PUSH1 0x1 DUP3 ADD DUP2 PUSH1 0x1 ADD SWAP1 DUP2 PUSH2 0x439 SWAP2 SWAP1 PUSH2 0x15D8 JUMP JUMPDEST POP PUSH1 0x2 DUP3 ADD DUP2 PUSH1 0x2 ADD SWAP1 DUP2 PUSH2 0x44E SWAP2 SWAP1 PUSH2 0x15D8 JUMP JUMPDEST POP PUSH1 0x3 DUP3 ADD DUP2 PUSH1 0x3 ADD SWAP1 DUP1 SLOAD PUSH2 0x465 SWAP3 SWAP2 SWAP1 PUSH2 0xB55 JUMP JUMPDEST POP SWAP1 POP POP DUP1 PUSH1 0x3 PUSH0 PUSH1 0x2 DUP5 DUP2 SLOAD DUP2 LT PUSH2 0x481 JUMPI PUSH2 0x480 PUSH2 0x156E JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH0 ADD SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 DUP2 SWAP1 SSTORE POP PUSH1 0x2 DUP1 SLOAD DUP1 PUSH2 0x4B3 JUMPI PUSH2 0x4B2 PUSH2 0x16BD JUMP JUMPDEST JUMPDEST PUSH1 0x1 SWAP1 SUB DUP2 DUP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH0 DUP1 DUP3 ADD PUSH0 SWAP1 SSTORE PUSH1 0x1 DUP3 ADD PUSH0 PUSH2 0x4DB SWAP2 SWAP1 PUSH2 0xBA3 JUMP JUMPDEST PUSH1 0x2 DUP3 ADD PUSH0 PUSH2 0x4EA SWAP2 SWAP1 PUSH2 0xBA3 JUMP JUMPDEST PUSH1 0x3 DUP3 ADD PUSH0 PUSH2 0x4F9 SWAP2 SWAP1 PUSH2 0xBE0 JUMP JUMPDEST POP POP SWAP1 SSTORE PUSH1 0x3 PUSH0 DUP4 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 PUSH0 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH2 0x51D PUSH2 0xBFE JUMP JUMPDEST PUSH0 PUSH1 0x3 PUSH0 DUP5 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 SLOAD SWAP1 POP PUSH1 0x2 DUP1 SLOAD SWAP1 POP DUP2 LT ISZERO DUP1 PUSH2 0x568 JUMPI POP DUP3 PUSH1 0x2 DUP3 DUP2 SLOAD DUP2 LT PUSH2 0x556 JUMPI PUSH2 0x555 PUSH2 0x156E JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH0 ADD SLOAD EQ ISZERO JUMPDEST ISZERO PUSH2 0x5AA JUMPI DUP3 PUSH1 0x40 MLOAD PUSH32 0xF55DEC0000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x5A1 SWAP2 SWAP1 PUSH2 0x15AA JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x2 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x5BE JUMPI PUSH2 0x5BD PUSH2 0x156E JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH1 0x40 MLOAD DUP1 PUSH1 0x80 ADD PUSH1 0x40 MSTORE SWAP1 DUP2 PUSH0 DUP3 ADD SLOAD DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x1 DUP3 ADD DUP1 SLOAD PUSH2 0x5EE SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x61A SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 ISZERO PUSH2 0x665 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x63C JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x665 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x648 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x2 DUP3 ADD DUP1 SLOAD PUSH2 0x67E SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x6AA SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 ISZERO PUSH2 0x6F5 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x6CC JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x6F5 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x6D8 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x3 DUP3 ADD DUP1 SLOAD DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD DUP1 ISZERO PUSH2 0x74B JUMPI PUSH1 0x20 MUL DUP3 ADD SWAP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 DUP1 DUP4 GT PUSH2 0x737 JUMPI JUMPDEST POP POP POP POP POP DUP2 MSTORE POP POP SWAP2 POP POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x60 PUSH1 0x2 DUP1 SLOAD DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 SWAP1 JUMPDEST DUP3 DUP3 LT ISZERO PUSH2 0x92E JUMPI DUP4 DUP3 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x4 MUL ADD PUSH1 0x40 MLOAD DUP1 PUSH1 0x80 ADD PUSH1 0x40 MSTORE SWAP1 DUP2 PUSH0 DUP3 ADD SLOAD DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x1 DUP3 ADD DUP1 SLOAD PUSH2 0x7B9 SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x7E5 SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 ISZERO PUSH2 0x830 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x807 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x830 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x813 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x2 DUP3 ADD DUP1 SLOAD PUSH2 0x849 SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x875 SWAP1 PUSH2 0x122B JUMP JUMPDEST DUP1 ISZERO PUSH2 0x8C0 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x897 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x8C0 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x8A3 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x3 DUP3 ADD DUP1 SLOAD DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD DUP1 ISZERO PUSH2 0x916 JUMPI PUSH1 0x20 MUL DUP3 ADD SWAP2 SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 DUP1 DUP4 GT PUSH2 0x902 JUMPI JUMPDEST POP POP POP POP POP DUP2 MSTORE POP POP DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x77F JUMP JUMPDEST POP POP POP POP SWAP1 POP SWAP1 JUMP JUMPDEST PUSH2 0x93F PUSH2 0x9BB JUMP JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SUB PUSH2 0x9AF JUMPI PUSH0 PUSH1 0x40 MLOAD PUSH32 0x1E4FBDF700000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x9A6 SWAP2 SWAP1 PUSH2 0xDED JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH2 0x9B8 DUP2 PUSH2 0xA42 JUMP JUMPDEST POP JUMP JUMPDEST PUSH2 0x9C3 PUSH2 0xB03 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x9E1 PUSH2 0x310 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0xA40 JUMPI PUSH2 0xA04 PUSH2 0xB03 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0x118CDAA700000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0xA37 SWAP2 SWAP1 PUSH2 0xDED JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST JUMP JUMPDEST PUSH0 DUP1 PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 POP DUP2 PUSH0 DUP1 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MUL NOT AND SWAP1 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND MUL OR SWAP1 SSTORE POP DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0x8BE0079C531659141344CD1FD0A4F28419497F9722A3DAAFE3B4186F6B6457E0 PUSH1 0x40 MLOAD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG3 POP POP JUMP JUMPDEST PUSH0 CALLER SWAP1 POP SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD DUP3 DUP3 SSTORE SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 DUP2 ADD SWAP3 DUP3 ISZERO PUSH2 0xB44 JUMPI SWAP2 PUSH1 0x20 MUL DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0xB43 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0xB28 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0xB51 SWAP2 SWAP1 PUSH2 0xC25 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD DUP3 DUP3 SSTORE SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 DUP2 ADD SWAP3 DUP3 ISZERO PUSH2 0xB92 JUMPI PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0xB91 JUMPI DUP3 SLOAD DUP3 SSTORE SWAP2 PUSH1 0x1 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0xB76 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0xB9F SWAP2 SWAP1 PUSH2 0xC25 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST POP DUP1 SLOAD PUSH2 0xBAF SWAP1 PUSH2 0x122B JUMP JUMPDEST PUSH0 DUP3 SSTORE DUP1 PUSH1 0x1F LT PUSH2 0xBC0 JUMPI POP PUSH2 0xBDD JUMP JUMPDEST PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 DUP2 ADD SWAP1 PUSH2 0xBDC SWAP2 SWAP1 PUSH2 0xC25 JUMP JUMPDEST JUMPDEST POP JUMP JUMPDEST POP DUP1 SLOAD PUSH0 DUP3 SSTORE SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 DUP2 ADD SWAP1 PUSH2 0xBFB SWAP2 SWAP1 PUSH2 0xC25 JUMP JUMPDEST POP JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 PUSH1 0x80 ADD PUSH1 0x40 MSTORE DUP1 PUSH0 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD PUSH1 0x60 DUP2 MSTORE POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0xC3C JUMPI PUSH0 DUP2 PUSH0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0xC26 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0xC69 JUMPI PUSH2 0xC68 PUSH2 0xC48 JUMP JUMPDEST JUMPDEST DUP3 CALLDATALOAD SWAP1 POP PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xC86 JUMPI PUSH2 0xC85 PUSH2 0xC4C JUMP JUMPDEST JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x1 DUP3 MUL DUP4 ADD GT ISZERO PUSH2 0xCA2 JUMPI PUSH2 0xCA1 PUSH2 0xC50 JUMP JUMPDEST JUMPDEST SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0xCBE JUMPI PUSH2 0xCBD PUSH2 0xC48 JUMP JUMPDEST JUMPDEST DUP3 CALLDATALOAD SWAP1 POP PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xCDB JUMPI PUSH2 0xCDA PUSH2 0xC4C JUMP JUMPDEST JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x20 DUP3 MUL DUP4 ADD GT ISZERO PUSH2 0xCF7 JUMPI PUSH2 0xCF6 PUSH2 0xC50 JUMP JUMPDEST JUMPDEST SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH0 DUP1 PUSH0 DUP1 PUSH0 DUP1 PUSH1 0x60 DUP8 DUP10 SUB SLT ISZERO PUSH2 0xD18 JUMPI PUSH2 0xD17 PUSH2 0xC40 JUMP JUMPDEST JUMPDEST PUSH0 DUP8 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xD35 JUMPI PUSH2 0xD34 PUSH2 0xC44 JUMP JUMPDEST JUMPDEST PUSH2 0xD41 DUP10 DUP3 DUP11 ADD PUSH2 0xC54 JUMP JUMPDEST SWAP7 POP SWAP7 POP POP PUSH1 0x20 DUP8 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xD64 JUMPI PUSH2 0xD63 PUSH2 0xC44 JUMP JUMPDEST JUMPDEST PUSH2 0xD70 DUP10 DUP3 DUP11 ADD PUSH2 0xC54 JUMP JUMPDEST SWAP5 POP SWAP5 POP POP PUSH1 0x40 DUP8 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0xD93 JUMPI PUSH2 0xD92 PUSH2 0xC44 JUMP JUMPDEST JUMPDEST PUSH2 0xD9F DUP10 DUP3 DUP11 ADD PUSH2 0xCA9 JUMP JUMPDEST SWAP3 POP SWAP3 POP POP SWAP3 SWAP6 POP SWAP3 SWAP6 POP SWAP3 SWAP6 JUMP JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0xDD7 DUP3 PUSH2 0xDAE JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0xDE7 DUP2 PUSH2 0xDCD JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0xE00 PUSH0 DUP4 ADD DUP5 PUSH2 0xDDE JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0xE18 DUP2 PUSH2 0xE06 JUMP JUMPDEST DUP2 EQ PUSH2 0xE22 JUMPI PUSH0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0xE33 DUP2 PUSH2 0xE0F JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xE4E JUMPI PUSH2 0xE4D PUSH2 0xC40 JUMP JUMPDEST JUMPDEST PUSH0 PUSH2 0xE5B DUP5 DUP3 DUP6 ADD PUSH2 0xE25 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0xE6D DUP2 PUSH2 0xE06 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xEAA JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0xE8F JUMP JUMPDEST PUSH0 DUP5 DUP5 ADD MSTORE POP POP POP POP JUMP JUMPDEST PUSH0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0xECF DUP3 PUSH2 0xE73 JUMP JUMPDEST PUSH2 0xED9 DUP2 DUP6 PUSH2 0xE7D JUMP JUMPDEST SWAP4 POP PUSH2 0xEE9 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0xE8D JUMP JUMPDEST PUSH2 0xEF2 DUP2 PUSH2 0xEB5 JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0xF31 DUP4 DUP4 PUSH2 0xE64 JUMP JUMPDEST PUSH1 0x20 DUP4 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0xF53 DUP3 PUSH2 0xEFD JUMP JUMPDEST PUSH2 0xF5D DUP2 DUP6 PUSH2 0xF07 JUMP JUMPDEST SWAP4 POP PUSH2 0xF68 DUP4 PUSH2 0xF17 JUMP JUMPDEST DUP1 PUSH0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0xF98 JUMPI DUP2 MLOAD PUSH2 0xF7F DUP9 DUP3 PUSH2 0xF26 JUMP JUMPDEST SWAP8 POP PUSH2 0xF8A DUP4 PUSH2 0xF3D JUMP JUMPDEST SWAP3 POP POP PUSH1 0x1 DUP2 ADD SWAP1 POP PUSH2 0xF6B JUMP JUMPDEST POP DUP6 SWAP4 POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x80 DUP4 ADD PUSH0 DUP4 ADD MLOAD PUSH2 0xFBA PUSH0 DUP7 ADD DUP3 PUSH2 0xE64 JUMP JUMPDEST POP PUSH1 0x20 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x20 DUP7 ADD MSTORE PUSH2 0xFD2 DUP3 DUP3 PUSH2 0xEC5 JUMP JUMPDEST SWAP2 POP POP PUSH1 0x40 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x40 DUP7 ADD MSTORE PUSH2 0xFEC DUP3 DUP3 PUSH2 0xEC5 JUMP JUMPDEST SWAP2 POP POP PUSH1 0x60 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x60 DUP7 ADD MSTORE PUSH2 0x1006 DUP3 DUP3 PUSH2 0xF49 JUMP JUMPDEST SWAP2 POP POP DUP1 SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0x102B DUP2 DUP5 PUSH2 0xFA5 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 MLOAD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x80 DUP4 ADD PUSH0 DUP4 ADD MLOAD PUSH2 0x1071 PUSH0 DUP7 ADD DUP3 PUSH2 0xE64 JUMP JUMPDEST POP PUSH1 0x20 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x20 DUP7 ADD MSTORE PUSH2 0x1089 DUP3 DUP3 PUSH2 0xEC5 JUMP JUMPDEST SWAP2 POP POP PUSH1 0x40 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x40 DUP7 ADD MSTORE PUSH2 0x10A3 DUP3 DUP3 PUSH2 0xEC5 JUMP JUMPDEST SWAP2 POP POP PUSH1 0x60 DUP4 ADD MLOAD DUP5 DUP3 SUB PUSH1 0x60 DUP7 ADD MSTORE PUSH2 0x10BD DUP3 DUP3 PUSH2 0xF49 JUMP JUMPDEST SWAP2 POP POP DUP1 SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH2 0x10D5 DUP4 DUP4 PUSH2 0x105C JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0x10F3 DUP3 PUSH2 0x1033 JUMP JUMPDEST PUSH2 0x10FD DUP2 DUP6 PUSH2 0x103D JUMP JUMPDEST SWAP4 POP DUP4 PUSH1 0x20 DUP3 MUL DUP6 ADD PUSH2 0x110F DUP6 PUSH2 0x104D JUMP JUMPDEST DUP1 PUSH0 JUMPDEST DUP6 DUP2 LT ISZERO PUSH2 0x114A JUMPI DUP5 DUP5 SUB DUP10 MSTORE DUP2 MLOAD PUSH2 0x112B DUP6 DUP3 PUSH2 0x10CA JUMP JUMPDEST SWAP5 POP PUSH2 0x1136 DUP4 PUSH2 0x10DD JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP11 ADD SWAP10 POP POP PUSH1 0x1 DUP2 ADD SWAP1 POP PUSH2 0x1112 JUMP JUMPDEST POP DUP3 SWAP8 POP DUP8 SWAP6 POP POP POP POP POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0x1174 DUP2 DUP5 PUSH2 0x10E9 JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x1185 DUP2 PUSH2 0xDCD JUMP JUMPDEST DUP2 EQ PUSH2 0x118F JUMPI PUSH0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x11A0 DUP2 PUSH2 0x117C JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x11BB JUMPI PUSH2 0x11BA PUSH2 0xC40 JUMP JUMPDEST JUMPDEST PUSH0 PUSH2 0x11C8 DUP5 DUP3 DUP6 ADD PUSH2 0x1192 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x1242 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 SUB PUSH2 0x1255 JUMPI PUSH2 0x1254 PUSH2 0x11FE JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP DUP2 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 PUSH1 0x1F DUP4 ADD DIV SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP3 DUP3 SHL SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x8 DUP4 MUL PUSH2 0x12B7 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 PUSH2 0x127C JUMP JUMPDEST PUSH2 0x12C1 DUP7 DUP4 PUSH2 0x127C JUMP JUMPDEST SWAP6 POP DUP1 NOT DUP5 AND SWAP4 POP DUP1 DUP7 AND DUP5 OR SWAP3 POP POP POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0x12FC PUSH2 0x12F7 PUSH2 0x12F2 DUP5 PUSH2 0xE06 JUMP JUMPDEST PUSH2 0x12D9 JUMP JUMPDEST PUSH2 0xE06 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x1315 DUP4 PUSH2 0x12E2 JUMP JUMPDEST PUSH2 0x1329 PUSH2 0x1321 DUP3 PUSH2 0x1303 JUMP JUMPDEST DUP5 DUP5 SLOAD PUSH2 0x1288 JUMP JUMPDEST DUP3 SSTORE POP POP POP POP JUMP JUMPDEST PUSH0 SWAP1 JUMP JUMPDEST PUSH2 0x133D PUSH2 0x1331 JUMP JUMPDEST PUSH2 0x1348 DUP2 DUP5 DUP5 PUSH2 0x130C JUMP JUMPDEST POP POP POP JUMP JUMPDEST JUMPDEST DUP2 DUP2 LT ISZERO PUSH2 0x136B JUMPI PUSH2 0x1360 PUSH0 DUP3 PUSH2 0x1335 JUMP JUMPDEST PUSH1 0x1 DUP2 ADD SWAP1 POP PUSH2 0x134E JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x1F DUP3 GT ISZERO PUSH2 0x13B0 JUMPI PUSH2 0x1381 DUP2 PUSH2 0x125B JUMP JUMPDEST PUSH2 0x138A DUP5 PUSH2 0x126D JUMP JUMPDEST DUP2 ADD PUSH1 0x20 DUP6 LT ISZERO PUSH2 0x1399 JUMPI DUP2 SWAP1 POP JUMPDEST PUSH2 0x13AD PUSH2 0x13A5 DUP6 PUSH2 0x126D JUMP JUMPDEST DUP4 ADD DUP3 PUSH2 0x134D JUMP JUMPDEST POP POP JUMPDEST POP POP POP JUMP JUMPDEST PUSH0 DUP3 DUP3 SHR SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH2 0x13D0 PUSH0 NOT DUP5 PUSH1 0x8 MUL PUSH2 0x13B5 JUMP JUMPDEST NOT DUP1 DUP4 AND SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH2 0x13E8 DUP4 DUP4 PUSH2 0x13C1 JUMP JUMPDEST SWAP2 POP DUP3 PUSH1 0x2 MUL DUP3 OR SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x1401 DUP3 PUSH2 0xE73 JUMP JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x141A JUMPI PUSH2 0x1419 PUSH2 0x11D1 JUMP JUMPDEST JUMPDEST PUSH2 0x1424 DUP3 SLOAD PUSH2 0x122B JUMP JUMPDEST PUSH2 0x142F DUP3 DUP3 DUP6 PUSH2 0x136F JUMP JUMPDEST PUSH0 PUSH1 0x20 SWAP1 POP PUSH1 0x1F DUP4 GT PUSH1 0x1 DUP2 EQ PUSH2 0x1460 JUMPI PUSH0 DUP5 ISZERO PUSH2 0x144E JUMPI DUP3 DUP8 ADD MLOAD SWAP1 POP JUMPDEST PUSH2 0x1458 DUP6 DUP3 PUSH2 0x13DD JUMP JUMPDEST DUP7 SSTORE POP PUSH2 0x14BF JUMP JUMPDEST PUSH1 0x1F NOT DUP5 AND PUSH2 0x146E DUP7 PUSH2 0x125B JUMP JUMPDEST PUSH0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x1495 JUMPI DUP5 DUP10 ADD MLOAD DUP3 SSTORE PUSH1 0x1 DUP3 ADD SWAP2 POP PUSH1 0x20 DUP6 ADD SWAP5 POP PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x1470 JUMP JUMPDEST DUP7 DUP4 LT ISZERO PUSH2 0x14B2 JUMPI DUP5 DUP10 ADD MLOAD PUSH2 0x14AE PUSH1 0x1F DUP10 AND DUP3 PUSH2 0x13C1 JUMP JUMPDEST DUP4 SSTORE POP JUMPDEST PUSH1 0x1 PUSH1 0x2 DUP9 MUL ADD DUP9 SSTORE POP POP POP JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH0 PUSH2 0x14FE DUP3 PUSH2 0xE06 JUMP JUMPDEST SWAP2 POP PUSH2 0x1509 DUP4 PUSH2 0xE06 JUMP JUMPDEST SWAP3 POP DUP3 DUP3 SUB SWAP1 POP DUP2 DUP2 GT ISZERO PUSH2 0x1521 JUMPI PUSH2 0x1520 PUSH2 0x14C7 JUMP JUMPDEST JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH2 0x1531 DUP3 PUSH2 0xE06 JUMP JUMPDEST SWAP2 POP PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 SUB PUSH2 0x1563 JUMPI PUSH2 0x1562 PUSH2 0x14C7 JUMP JUMPDEST JUMPDEST PUSH1 0x1 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH2 0x15A4 DUP2 PUSH2 0xE06 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x15BD PUSH0 DUP4 ADD DUP5 PUSH2 0x159B JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 SLOAD SWAP1 POP PUSH2 0x15D1 DUP2 PUSH2 0x122B JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP2 DUP2 SUB PUSH2 0x15E6 JUMPI POP POP PUSH2 0x16BB JUMP JUMPDEST PUSH2 0x15EF DUP3 PUSH2 0x15C3 JUMP JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1608 JUMPI PUSH2 0x1607 PUSH2 0x11D1 JUMP JUMPDEST JUMPDEST PUSH2 0x1612 DUP3 SLOAD PUSH2 0x122B JUMP JUMPDEST PUSH2 0x161D DUP3 DUP3 DUP6 PUSH2 0x136F JUMP JUMPDEST PUSH0 PUSH1 0x1F DUP4 GT PUSH1 0x1 DUP2 EQ PUSH2 0x164A JUMPI PUSH0 DUP5 ISZERO PUSH2 0x1638 JUMPI DUP3 DUP8 ADD SLOAD SWAP1 POP JUMPDEST PUSH2 0x1642 DUP6 DUP3 PUSH2 0x13DD JUMP JUMPDEST DUP7 SSTORE POP PUSH2 0x16B4 JUMP JUMPDEST PUSH1 0x1F NOT DUP5 AND PUSH2 0x1658 DUP8 PUSH2 0x125B JUMP JUMPDEST SWAP7 POP PUSH2 0x1663 DUP7 PUSH2 0x125B JUMP JUMPDEST PUSH0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x168A JUMPI DUP5 DUP10 ADD SLOAD DUP3 SSTORE PUSH1 0x1 DUP3 ADD SWAP2 POP PUSH1 0x1 DUP6 ADD SWAP5 POP PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x1665 JUMP JUMPDEST DUP7 DUP4 LT ISZERO PUSH2 0x16A7 JUMPI DUP5 DUP10 ADD SLOAD PUSH2 0x16A3 PUSH1 0x1F DUP10 AND DUP3 PUSH2 0x13C1 JUMP JUMPDEST DUP4 SSTORE POP JUMPDEST PUSH1 0x1 PUSH1 0x2 DUP9 MUL ADD DUP9 SSTORE POP POP POP JUMPDEST POP POP POP POP POP POP JUMPDEST JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x31 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 JUMPDEST EXTCODEHASH JUMPDEST BASEFEE MOD 0xC4 0xE3 0xE1 0xD7 SWAP6 0x5E 0x22 SWAP5 SWAP11 0x23 0x4E CREATE2 SWAP9 SWAP10 0xDA 0xE5 EXTCODEHASH 0xC0 DUP13 DUP8 0xB6 CODESIZE 0xF 0xCB PUSH27 0xED3664736F6C634300081400330000000000000000000000000000 ",
"sourceMap": "116:2862:2:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1018:489;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;2293:101:0;;;:::i;:::-;;1638:85;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1562:752:2;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;2371:408;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2829:146;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2543:215:0;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1018:489:2;1531:13:0;:11;:13::i;:::-;1243:8:2::1;1257:50;;;;;;;;1265:6;;1257:50;;;;1273:9;;1257:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1284:8;;1257:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1294:12;;1257:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;1243:65:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;1425:1;1407:8;:15;;;;:19;;;;:::i;:::-;1387:9;:17;1397:6;;1387:17;;;;;;;;;;;:39;;;;1491:6;;:8;;;;;;;;;:::i;:::-;;;;;;1018:489:::0;;;;;;:::o;2293:101:0:-;1531:13;:11;:13::i;:::-;2357:30:::1;2384:1;2357:18;:30::i;:::-;2293:101::o:0;1638:85::-;1684:7;1710:6;;;;;;;;;;;1703:13;;1638:85;:::o;1562:752:2:-;1531:13:0;:11;:13::i;:::-;1679:10:2::1;1692:9;:13;1702:2;1692:13;;;;;;;;;;;;1679:26;;1816:8;:15;;;;1807:5;:24;;:52;;;;1857:2;1835:8;1844:5;1835:15;;;;;;;;:::i;:::-;;;;;;;;;;;;:18;;;:24;;1807:52;1803:84;;;1884:2;1868:19;;;;;;;;;;;:::i;:::-;;;;;;;;1803:84;1999:8;2026:1;2008:8;:15;;;;:19;;;;:::i;:::-;1999:29;;;;;;;;:::i;:::-;;;;;;;;;;;;1981:8;1990:5;1981:15;;;;;;;;:::i;:::-;;;;;;;;;;;;:47;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;:::i;:::-;;;;;2130:5;2098:9;:29;2108:8;2117:5;2108:15;;;;;;;;:::i;:::-;;;;;;;;;;;;:18;;;2098:29;;;;;;;;;;;:37;;;;2197:8;:14;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;2293:9;:13;2303:2;2293:13;;;;;;;;;;;2286:20;;;1613:701;1562:752:::0;:::o;2371:408::-;2423:14;;:::i;:::-;2491:10;2504:9;:13;2514:2;2504:13;;;;;;;;;;;;2491:26;;2628:8;:15;;;;2619:5;:24;;:52;;;;2669:2;2647:8;2656:5;2647:15;;;;;;;;:::i;:::-;;;;;;;;;;;;:18;;;:24;;2619:52;2615:84;;;2696:2;2680:19;;;;;;;;;;;:::i;:::-;;;;;;;;2615:84;2756:8;2765:5;2756:15;;;;;;;;:::i;:::-;;;;;;;;;;;;2749:22;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2371:408;;;:::o;2829:146::-;2878:16;2959:8;2952:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2829:146;:::o;2543:215:0:-;1531:13;:11;:13::i;:::-;2647:1:::1;2627:22;;:8;:22;;::::0;2623:91:::1;;2700:1;2672:31;;;;;;;;;;;:::i;:::-;;;;;;;;2623:91;2723:28;2742:8;2723:18;:28::i;:::-;2543:215:::0;:::o;1796:162::-;1866:12;:10;:12::i;:::-;1855:23;;:7;:5;:7::i;:::-;:23;;;1851:101;;1928:12;:10;:12::i;:::-;1901:40;;;;;;;;;;;:::i;:::-;;;;;;;;1851:101;1796:162::o;2912:187::-;2985:16;3004:6;;;;;;;;;;;2985:25;;3029:8;3020:6;;:17;;;;;;;;;;;;;;;;;;3083:8;3052:40;;3073:8;3052:40;;;;;;;;;;;;2975:124;2912:187;:::o;656:96:1:-;709:7;735:10;728:17;;656:96;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;88:117:3:-;197:1;194;187:12;211:117;320:1;317;310:12;334:117;443:1;440;433:12;457:117;566:1;563;556:12;580:117;689:1;686;679:12;717:553;775:8;785:6;835:3;828:4;820:6;816:17;812:27;802:122;;843:79;;:::i;:::-;802:122;956:6;943:20;933:30;;986:18;978:6;975:30;972:117;;;1008:79;;:::i;:::-;972:117;1122:4;1114:6;1110:17;1098:29;;1176:3;1168:4;1160:6;1156:17;1146:8;1142:32;1139:41;1136:128;;;1183:79;;:::i;:::-;1136:128;717:553;;;;;:::o;1293:568::-;1366:8;1376:6;1426:3;1419:4;1411:6;1407:17;1403:27;1393:122;;1434:79;;:::i;:::-;1393:122;1547:6;1534:20;1524:30;;1577:18;1569:6;1566:30;1563:117;;;1599:79;;:::i;:::-;1563:117;1713:4;1705:6;1701:17;1689:29;;1767:3;1759:4;1751:6;1747:17;1737:8;1733:32;1730:41;1727:128;;;1774:79;;:::i;:::-;1727:128;1293:568;;;;;:::o;1867:1249::-;1995:6;2003;2011;2019;2027;2035;2084:2;2072:9;2063:7;2059:23;2055:32;2052:119;;;2090:79;;:::i;:::-;2052:119;2238:1;2227:9;2223:17;2210:31;2268:18;2260:6;2257:30;2254:117;;;2290:79;;:::i;:::-;2254:117;2403:65;2460:7;2451:6;2440:9;2436:22;2403:65;:::i;:::-;2385:83;;;;2181:297;2545:2;2534:9;2530:18;2517:32;2576:18;2568:6;2565:30;2562:117;;;2598:79;;:::i;:::-;2562:117;2711:65;2768:7;2759:6;2748:9;2744:22;2711:65;:::i;:::-;2693:83;;;;2488:298;2853:2;2842:9;2838:18;2825:32;2884:18;2876:6;2873:30;2870:117;;;2906:79;;:::i;:::-;2870:117;3019:80;3091:7;3082:6;3071:9;3067:22;3019:80;:::i;:::-;3001:98;;;;2796:313;1867:1249;;;;;;;;:::o;3122:126::-;3159:7;3199:42;3192:5;3188:54;3177:65;;3122:126;;;:::o;3254:96::-;3291:7;3320:24;3338:5;3320:24;:::i;:::-;3309:35;;3254:96;;;:::o;3356:118::-;3443:24;3461:5;3443:24;:::i;:::-;3438:3;3431:37;3356:118;;:::o;3480:222::-;3573:4;3611:2;3600:9;3596:18;3588:26;;3624:71;3692:1;3681:9;3677:17;3668:6;3624:71;:::i;:::-;3480:222;;;;:::o;3708:77::-;3745:7;3774:5;3763:16;;3708:77;;;:::o;3791:122::-;3864:24;3882:5;3864:24;:::i;:::-;3857:5;3854:35;3844:63;;3903:1;3900;3893:12;3844:63;3791:122;:::o;3919:139::-;3965:5;4003:6;3990:20;3981:29;;4019:33;4046:5;4019:33;:::i;:::-;3919:139;;;;:::o;4064:329::-;4123:6;4172:2;4160:9;4151:7;4147:23;4143:32;4140:119;;;4178:79;;:::i;:::-;4140:119;4298:1;4323:53;4368:7;4359:6;4348:9;4344:22;4323:53;:::i;:::-;4313:63;;4269:117;4064:329;;;;:::o;4399:108::-;4476:24;4494:5;4476:24;:::i;:::-;4471:3;4464:37;4399:108;;:::o;4513:99::-;4565:6;4599:5;4593:12;4583:22;;4513:99;;;:::o;4618:159::-;4692:11;4726:6;4721:3;4714:19;4766:4;4761:3;4757:14;4742:29;;4618:159;;;;:::o;4783:246::-;4864:1;4874:113;4888:6;4885:1;4882:13;4874:113;;;4973:1;4968:3;4964:11;4958:18;4954:1;4949:3;4945:11;4938:39;4910:2;4907:1;4903:10;4898:15;;4874:113;;;5021:1;5012:6;5007:3;5003:16;4996:27;4845:184;4783:246;;;:::o;5035:102::-;5076:6;5127:2;5123:7;5118:2;5111:5;5107:14;5103:28;5093:38;;5035:102;;;:::o;5143:357::-;5221:3;5249:39;5282:5;5249:39;:::i;:::-;5304:61;5358:6;5353:3;5304:61;:::i;:::-;5297:68;;5374:65;5432:6;5427:3;5420:4;5413:5;5409:16;5374:65;:::i;:::-;5464:29;5486:6;5464:29;:::i;:::-;5459:3;5455:39;5448:46;;5225:275;5143:357;;;;:::o;5506:114::-;5573:6;5607:5;5601:12;5591:22;;5506:114;;;:::o;5626:174::-;5715:11;5749:6;5744:3;5737:19;5789:4;5784:3;5780:14;5765:29;;5626:174;;;;:::o;5806:132::-;5873:4;5896:3;5888:11;;5926:4;5921:3;5917:14;5909:22;;5806:132;;;:::o;5944:179::-;6013:10;6034:46;6076:3;6068:6;6034:46;:::i;:::-;6112:4;6107:3;6103:14;6089:28;;5944:179;;;;:::o;6129:113::-;6199:4;6231;6226:3;6222:14;6214:22;;6129:113;;;:::o;6278:712::-;6387:3;6416:54;6464:5;6416:54;:::i;:::-;6486:76;6555:6;6550:3;6486:76;:::i;:::-;6479:83;;6586:56;6636:5;6586:56;:::i;:::-;6665:7;6696:1;6681:284;6706:6;6703:1;6700:13;6681:284;;;6782:6;6776:13;6809:63;6868:3;6853:13;6809:63;:::i;:::-;6802:70;;6895:60;6948:6;6895:60;:::i;:::-;6885:70;;6741:224;6728:1;6725;6721:9;6716:14;;6681:284;;;6685:14;6981:3;6974:10;;6392:598;;;6278:712;;;;:::o;7060:1139::-;7177:3;7213:4;7208:3;7204:14;7298:4;7291:5;7287:16;7281:23;7317:63;7374:4;7369:3;7365:14;7351:12;7317:63;:::i;:::-;7228:162;7477:4;7470:5;7466:16;7460:23;7530:3;7524:4;7520:14;7513:4;7508:3;7504:14;7497:38;7556:73;7624:4;7610:12;7556:73;:::i;:::-;7548:81;;7400:240;7726:4;7719:5;7715:16;7709:23;7779:3;7773:4;7769:14;7762:4;7757:3;7753:14;7746:38;7805:73;7873:4;7859:12;7805:73;:::i;:::-;7797:81;;7650:239;7979:4;7972:5;7968:16;7962:23;8032:3;8026:4;8022:14;8015:4;8010:3;8006:14;7999:38;8058:103;8156:4;8142:12;8058:103;:::i;:::-;8050:111;;7899:273;8189:4;8182:11;;7182:1017;7060:1139;;;;:::o;8205:369::-;8346:4;8384:2;8373:9;8369:18;8361:26;;8433:9;8427:4;8423:20;8419:1;8408:9;8404:17;8397:47;8461:106;8562:4;8553:6;8461:106;:::i;:::-;8453:114;;8205:369;;;;:::o;8580:138::-;8671:6;8705:5;8699:12;8689:22;;8580:138;;;:::o;8724:208::-;8847:11;8881:6;8876:3;8869:19;8921:4;8916:3;8912:14;8897:29;;8724:208;;;;:::o;8938:156::-;9029:4;9052:3;9044:11;;9082:4;9077:3;9073:14;9065:22;;8938:156;;;:::o;9164:1129::-;9271:3;9307:4;9302:3;9298:14;9392:4;9385:5;9381:16;9375:23;9411:63;9468:4;9463:3;9459:14;9445:12;9411:63;:::i;:::-;9322:162;9571:4;9564:5;9560:16;9554:23;9624:3;9618:4;9614:14;9607:4;9602:3;9598:14;9591:38;9650:73;9718:4;9704:12;9650:73;:::i;:::-;9642:81;;9494:240;9820:4;9813:5;9809:16;9803:23;9873:3;9867:4;9863:14;9856:4;9851:3;9847:14;9840:38;9899:73;9967:4;9953:12;9899:73;:::i;:::-;9891:81;;9744:239;10073:4;10066:5;10062:16;10056:23;10126:3;10120:4;10116:14;10109:4;10104:3;10100:14;10093:38;10152:103;10250:4;10236:12;10152:103;:::i;:::-;10144:111;;9993:273;10283:4;10276:11;;9276:1017;9164:1129;;;;:::o;10299:252::-;10416:10;10451:94;10541:3;10533:6;10451:94;:::i;:::-;10437:108;;10299:252;;;;:::o;10557:137::-;10651:4;10683;10678:3;10674:14;10666:22;;10557:137;;;:::o;10768:1103::-;10935:3;10964:78;11036:5;10964:78;:::i;:::-;11058:110;11161:6;11156:3;11058:110;:::i;:::-;11051:117;;11194:3;11239:4;11231:6;11227:17;11222:3;11218:27;11269:80;11343:5;11269:80;:::i;:::-;11372:7;11403:1;11388:438;11413:6;11410:1;11407:13;11388:438;;;11484:9;11478:4;11474:20;11469:3;11462:33;11535:6;11529:13;11563:112;11670:4;11655:13;11563:112;:::i;:::-;11555:120;;11698:84;11775:6;11698:84;:::i;:::-;11688:94;;11811:4;11806:3;11802:14;11795:21;;11448:378;11435:1;11432;11428:9;11423:14;;11388:438;;;11392:14;11842:4;11835:11;;11862:3;11855:10;;10940:931;;;;;10768:1103;;;;:::o;11877:469::-;12068:4;12106:2;12095:9;12091:18;12083:26;;12155:9;12149:4;12145:20;12141:1;12130:9;12126:17;12119:47;12183:156;12334:4;12325:6;12183:156;:::i;:::-;12175:164;;11877:469;;;;:::o;12352:122::-;12425:24;12443:5;12425:24;:::i;:::-;12418:5;12415:35;12405:63;;12464:1;12461;12454:12;12405:63;12352:122;:::o;12480:139::-;12526:5;12564:6;12551:20;12542:29;;12580:33;12607:5;12580:33;:::i;:::-;12480:139;;;;:::o;12625:329::-;12684:6;12733:2;12721:9;12712:7;12708:23;12704:32;12701:119;;;12739:79;;:::i;:::-;12701:119;12859:1;12884:53;12929:7;12920:6;12909:9;12905:22;12884:53;:::i;:::-;12874:63;;12830:117;12625:329;;;;:::o;12960:180::-;13008:77;13005:1;12998:88;13105:4;13102:1;13095:15;13129:4;13126:1;13119:15;13146:180;13194:77;13191:1;13184:88;13291:4;13288:1;13281:15;13315:4;13312:1;13305:15;13332:320;13376:6;13413:1;13407:4;13403:12;13393:22;;13460:1;13454:4;13450:12;13481:18;13471:81;;13537:4;13529:6;13525:17;13515:27;;13471:81;13599:2;13591:6;13588:14;13568:18;13565:38;13562:84;;13618:18;;:::i;:::-;13562:84;13383:269;13332:320;;;:::o;13658:141::-;13707:4;13730:3;13722:11;;13753:3;13750:1;13743:14;13787:4;13784:1;13774:18;13766:26;;13658:141;;;:::o;13805:93::-;13842:6;13889:2;13884;13877:5;13873:14;13869:23;13859:33;;13805:93;;;:::o;13904:107::-;13948:8;13998:5;13992:4;13988:16;13967:37;;13904:107;;;;:::o;14017:393::-;14086:6;14136:1;14124:10;14120:18;14159:97;14189:66;14178:9;14159:97;:::i;:::-;14277:39;14307:8;14296:9;14277:39;:::i;:::-;14265:51;;14349:4;14345:9;14338:5;14334:21;14325:30;;14398:4;14388:8;14384:19;14377:5;14374:30;14364:40;;14093:317;;14017:393;;;;;:::o;14416:60::-;14444:3;14465:5;14458:12;;14416:60;;;:::o;14482:142::-;14532:9;14565:53;14583:34;14592:24;14610:5;14592:24;:::i;:::-;14583:34;:::i;:::-;14565:53;:::i;:::-;14552:66;;14482:142;;;:::o;14630:75::-;14673:3;14694:5;14687:12;;14630:75;;;:::o;14711:269::-;14821:39;14852:7;14821:39;:::i;:::-;14882:91;14931:41;14955:16;14931:41;:::i;:::-;14923:6;14916:4;14910:11;14882:91;:::i;:::-;14876:4;14869:105;14787:193;14711:269;;;:::o;14986:73::-;15031:3;14986:73;:::o;15065:189::-;15142:32;;:::i;:::-;15183:65;15241:6;15233;15227:4;15183:65;:::i;:::-;15118:136;15065:189;;:::o;15260:186::-;15320:120;15337:3;15330:5;15327:14;15320:120;;;15391:39;15428:1;15421:5;15391:39;:::i;:::-;15364:1;15357:5;15353:13;15344:22;;15320:120;;;15260:186;;:::o;15452:543::-;15553:2;15548:3;15545:11;15542:446;;;15587:38;15619:5;15587:38;:::i;:::-;15671:29;15689:10;15671:29;:::i;:::-;15661:8;15657:44;15854:2;15842:10;15839:18;15836:49;;;15875:8;15860:23;;15836:49;15898:80;15954:22;15972:3;15954:22;:::i;:::-;15944:8;15940:37;15927:11;15898:80;:::i;:::-;15557:431;;15542:446;15452:543;;;:::o;16001:117::-;16055:8;16105:5;16099:4;16095:16;16074:37;;16001:117;;;;:::o;16124:169::-;16168:6;16201:51;16249:1;16245:6;16237:5;16234:1;16230:13;16201:51;:::i;:::-;16197:56;16282:4;16276;16272:15;16262:25;;16175:118;16124:169;;;;:::o;16298:295::-;16374:4;16520:29;16545:3;16539:4;16520:29;:::i;:::-;16512:37;;16582:3;16579:1;16575:11;16569:4;16566:21;16558:29;;16298:295;;;;:::o;16598:1395::-;16715:37;16748:3;16715:37;:::i;:::-;16817:18;16809:6;16806:30;16803:56;;;16839:18;;:::i;:::-;16803:56;16883:38;16915:4;16909:11;16883:38;:::i;:::-;16968:67;17028:6;17020;17014:4;16968:67;:::i;:::-;17062:1;17086:4;17073:17;;17118:2;17110:6;17107:14;17135:1;17130:618;;;;17792:1;17809:6;17806:77;;;17858:9;17853:3;17849:19;17843:26;17834:35;;17806:77;17909:67;17969:6;17962:5;17909:67;:::i;:::-;17903:4;17896:81;17765:222;17100:887;;17130:618;17182:4;17178:9;17170:6;17166:22;17216:37;17248:4;17216:37;:::i;:::-;17275:1;17289:208;17303:7;17300:1;17297:14;17289:208;;;17382:9;17377:3;17373:19;17367:26;17359:6;17352:42;17433:1;17425:6;17421:14;17411:24;;17480:2;17469:9;17465:18;17452:31;;17326:4;17323:1;17319:12;17314:17;;17289:208;;;17525:6;17516:7;17513:19;17510:179;;;17583:9;17578:3;17574:19;17568:26;17626:48;17668:4;17660:6;17656:17;17645:9;17626:48;:::i;:::-;17618:6;17611:64;17533:156;17510:179;17735:1;17731;17723:6;17719:14;17715:22;17709:4;17702:36;17137:611;;;17100:887;;16690:1303;;;16598:1395;;:::o;17999:180::-;18047:77;18044:1;18037:88;18144:4;18141:1;18134:15;18168:4;18165:1;18158:15;18185:194;18225:4;18245:20;18263:1;18245:20;:::i;:::-;18240:25;;18279:20;18297:1;18279:20;:::i;:::-;18274:25;;18323:1;18320;18316:9;18308:17;;18347:1;18341:4;18338:11;18335:37;;;18352:18;;:::i;:::-;18335:37;18185:194;;;;:::o;18385:233::-;18424:3;18447:24;18465:5;18447:24;:::i;:::-;18438:33;;18493:66;18486:5;18483:77;18480:103;;18563:18;;:::i;:::-;18480:103;18610:1;18603:5;18599:13;18592:20;;18385:233;;;:::o;18624:180::-;18672:77;18669:1;18662:88;18769:4;18766:1;18759:15;18793:4;18790:1;18783:15;18810:118;18897:24;18915:5;18897:24;:::i;:::-;18892:3;18885:37;18810:118;;:::o;18934:222::-;19027:4;19065:2;19054:9;19050:18;19042:26;;19078:71;19146:1;19135:9;19131:17;19122:6;19078:71;:::i;:::-;18934:222;;;;:::o;19162:149::-;19211:6;19245:5;19239:12;19229:22;;19271:33;19297:6;19271:33;:::i;:::-;19261:43;;19162:149;;;:::o;19317:1451::-;19428:3;19422:4;19419:13;19416:26;;19435:5;;;;19416:26;19466:34;19496:3;19466:34;:::i;:::-;19565:18;19557:6;19554:30;19551:56;;;19587:18;;:::i;:::-;19551:56;19631:38;19663:4;19657:11;19631:38;:::i;:::-;19716:67;19776:6;19768;19762:4;19716:67;:::i;:::-;19810:1;19839:2;19831:6;19828:14;19856:1;19851:672;;;;20567:1;20584:6;20581:77;;;20633:9;20628:3;20624:19;20618:26;20609:35;;20581:77;20684:67;20744:6;20737:5;20684:67;:::i;:::-;20678:4;20671:81;20540:222;19821:941;;19851:672;19903:4;19899:9;19891:6;19887:22;19929:36;19961:3;19929:36;:::i;:::-;19922:43;;19992:37;20024:4;19992:37;:::i;:::-;20051:1;20065:207;20079:7;20076:1;20073:14;20065:207;;;20158:9;20153:3;20149:19;20143:26;20135:6;20128:42;20209:1;20201:6;20197:14;20187:24;;20256:1;20245:9;20241:17;20228:30;;20102:4;20099:1;20095:12;20090:17;;20065:207;;;20300:6;20291:7;20288:19;20285:179;;;20358:9;20353:3;20349:19;20343:26;20401:48;20443:4;20435:6;20431:17;20420:9;20401:48;:::i;:::-;20393:6;20386:64;20308:156;20285:179;20510:1;20506;20498:6;20494:14;20490:22;20484:4;20477:36;19858:665;;;19821:941;;19406:1362;;;19317:1451;;;:::o;20774:180::-;20822:77;20819:1;20812:88;20919:4;20916:1;20909:15;20943:4;20940:1;20933:15"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "1184000",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"addContact(string,string,uint256[])": "infinite",
"deleteContact(uint256)": "infinite",
"getAllContacts()": "infinite",
"getContact(uint256)": "infinite",
"owner()": "2560",
"renounceOwnership()": "infinite",
"transferOwnership(address)": "infinite"
}
},
"methodIdentifiers": {
"addContact(string,string,uint256[])": "3f06f6e8",
"deleteContact(uint256)": "b9ed6fca",
"getAllContacts()": "ef1d6ddd",
"getContact(uint256)": "e6505e1e",
"owner()": "8da5cb5b",
"renounceOwnership()": "715018a6",
"transferOwnership(address)": "f2fde38b"
}
},
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "ContactNotFound",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "OwnableInvalidOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [
{
"internalType": "string",
"name": "firstName",
"type": "string"
},
{
"internalType": "string",
"name": "lastName",
"type": "string"
},
{
"internalType": "uint256[]",
"name": "phoneNumbers",
"type": "uint256[]"
}
],
"name": "addContact",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "deleteContact",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getAllContacts",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "firstName",
"type": "string"
},
{
"internalType": "string",
"name": "lastName",
"type": "string"
},
{
"internalType": "uint256[]",
"name": "phoneNumbers",
"type": "uint256[]"
}
],
"internalType": "struct AddressBook.Contact[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "getContact",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "firstName",
"type": "string"
},
{
"internalType": "string",
"name": "lastName",
"type": "string"
},
{
"internalType": "uint256[]",
"name": "phoneNumbers",
"type": "uint256[]"
}
],
"internalType": "struct AddressBook.Contact",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract BasicMath {
uint256 constant MAX_INT = type(uint256).max;
function adder(uint256 _a, uint256 _b) external pure returns (uint256 sum, bool error) {
if (_b > MAX_INT - _a) {
return (0, true); // Overflow occurred
}
return (_a + _b, false);
}
function subtractor(uint256 _a, uint256 _b) external pure returns (uint256 difference, bool error) {
if (_b > _a) {
return (0, true); // Underflow occurred
}
return (_a - _b, false);
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
contract ControlStructures {
// Define custom errors for use within the contract
error AfterHours(uint256 time);
error AtLunch();
// Function to determine the response based on the input number
function fizzBuzz(uint256 _number) public pure returns (string memory response) {
// Check if the number is divisible by both 3 and 5
if (_number % 3 == 0 && _number % 5 == 0) {
return "FizzBuzz"; // Return "FizzBuzz" if divisible by both 3 and 5
}
// Check if the number is divisible by 3
else if (_number % 3 == 0) {
return "Fizz"; // Return "Fizz" if divisible by 3
}
// Check if the number is divisible by 5
else if (_number % 5 == 0) {
return "Buzz"; // Return "Buzz" if divisible by 5
}
// If none of the above conditions are met
else {
return "Splat"; // Return "Splat" if none of the conditions are met
}
}
// Function to determine the response based on the input time
function doNotDisturb(uint256 _time) public pure returns (string memory result) {
// Ensure the input time is within valid bounds (less than 2400)
assert(_time < 2400);
// Check different time ranges and return appropriate responses or revert with errors
if (_time > 2200 || _time < 800) {
revert AfterHours(_time); // Revert with custom error if it's after 10:00 PM or before 8:00 AM
}
else if (_time >= 1200 && _time <= 1299) {
revert AtLunch(); // Revert with custom error if it's between 12:00 PM and 1:00 PM
}
else if (_time >= 800 && _time <= 1199) {
return "Morning!"; // Return "Morning!" if it's between 8:00 AM and 11:59 AM
}
else if (_time >= 1300 && _time <= 1799) {
return "Afternoon!"; // Return "Afternoon!" if it's between 1:00 PM and 5:59 PM
}
else if (_time >= 1800 && _time <= 2200) {
return "Evening!"; // Return "Evening!" if it's between 6:00 PM and 10:00 PM
}
}
}
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;
// Importing OpenZeppelin contracts for ERC20 and EnumerableSet functionalities
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
// Contract for weighted voting using ERC20 token
contract WeightedVoting is ERC20 {
string private salt = "value"; // A private string variable
using EnumerableSet for EnumerableSet.AddressSet; // Importing EnumerableSet for address set functionality
// Custom errors
error TokensClaimed(); // Error for attempting to claim tokens again
error AllTokensClaimed(); // Error for attempting to claim tokens when all are already claimed
error NoTokensHeld(); // Error for attempting to perform an action without holding tokens
error QuorumTooHigh(); // Error for setting a quorum higher than total supply
error AlreadyVoted(); // Error for attempting to vote more than once
error VotingClosed(); // Error for attempting to vote on a closed issue
// Struct to represent an issue
struct Issue {
EnumerableSet.AddressSet voters; // Set of voters
string issueDesc; // Description of the issue
uint256 quorum; // Quorum required to close the issue
uint256 totalVotes; // Total number of votes casted
uint256 votesFor; // Total number of votes in favor
uint256 votesAgainst; // Total number of votes against
uint256 votesAbstain; // Total number of abstained votes
bool passed; // Flag indicating if the issue passed
bool closed; // Flag indicating if the issue is closed
}
// Struct to represent a serialized issue
struct SerializedIssue {
address[] voters; // Array of voters
string issueDesc; // Description of the issue
uint256 quorum; // Quorum required to close the issue
uint256 totalVotes; // Total number of votes casted
uint256 votesFor; // Total number of votes in favor
uint256 votesAgainst; // Total number of votes against
uint256 votesAbstain; // Total number of abstained votes
bool passed; // Flag indicating if the issue passed
bool closed; // Flag indicating if the issue is closed
}
// Enum to represent different vote options
enum Vote {
AGAINST,
FOR,
ABSTAIN
}
// Array to store all issues
Issue[] internal issues;
// Mapping to track if tokens are claimed by an address
mapping(address => bool) public tokensClaimed;
uint256 public maxSupply = 1000000; // Maximum supply of tokens
uint256 public claimAmount = 100; // Amount of tokens to be claimed
string saltt = "any"; // Another string variable
// Constructor to initialize ERC20 token with a name and symbol
constructor(string memory _name, string memory _symbol)
ERC20(_name, _symbol)
{
issues.push(); // Pushing an empty issue to start from index 1
}
// Function to claim tokens
function claim() public {
// Check if all tokens have been claimed
if (totalSupply() + claimAmount > maxSupply) {
revert AllTokensClaimed();
}
// Check if the caller has already claimed tokens
if (tokensClaimed[msg.sender]) {
revert TokensClaimed();
}
// Mint tokens to the caller
_mint(msg.sender, claimAmount);
tokensClaimed[msg.sender] = true; // Mark tokens as claimed
}
// Function to create a new voting issue
function createIssue(string calldata _issueDesc, uint256 _quorum)
external
returns (uint256)
{
// Check if the caller holds any tokens
if (balanceOf(msg.sender) == 0) {
revert NoTokensHeld();
}
// Check if the specified quorum is higher than total supply
if (_quorum > totalSupply()) {
revert QuorumTooHigh();
}
// Create a new issue and return its index
Issue storage _issue = issues.push();
_issue.issueDesc = _issueDesc;
_issue.quorum = _quorum;
return issues.length - 1;
}
// Function to get details of a voting issue
function getIssue(uint256 _issueId)
external
view
returns (SerializedIssue memory)
{
Issue storage _issue = issues[_issueId];
return
SerializedIssue({
voters: _issue.voters.values(),
issueDesc: _issue.issueDesc,
quorum: _issue.quorum,
totalVotes: _issue.totalVotes,
votesFor: _issue.votesFor,
votesAgainst: _issue.votesAgainst,
votesAbstain: _issue.votesAbstain,
passed: _issue.passed,
closed: _issue.closed
});
}
// Function to cast a vote on a voting issue
function vote(uint256 _issueId, Vote _vote) public {
Issue storage _issue = issues[_issueId];
// Check if the issue is closed
if (_issue.closed) {
revert VotingClosed();
}
// Check if the caller has already voted
if (_issue.voters.contains(msg.sender)) {
revert AlreadyVoted();
}
uint256 nTokens = balanceOf(msg.sender);
// Check if the caller holds any tokens
if (nTokens == 0) {
revert NoTokensHeld();
}
// Update vote counts based on the vote option
if (_vote == Vote.AGAINST) {
_issue.votesAgainst += nTokens;
} else if (_vote == Vote.FOR) {
_issue.votesFor += nTokens;
} else {
_issue.votesAbstain += nTokens;
}
// Add the caller to the list of voters and update total votes count
_issue.voters.add(msg.sender);
_issue.totalVotes += nTokens;
// Close the issue if quorum is reached and determine if it passed
if (_issue.totalVotes >= _issue.quorum) {
_issue.closed = true;
if (_issue.votesFor > _issue.votesAgainst) {
_issue.passed = true;
}
}
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Importing OpenZeppelin ERC721 contract
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol";
// Interface for interacting with a submission contract
interface ISubmission {
// Struct representing a haiku
struct Haiku {
address author; // Address of the haiku author
string line1; // First line of the haiku
string line2; // Second line of the haiku
string line3; // Third line of the haiku
}
// Function to mint a new haiku
function mintHaiku(
string memory _line1,
string memory _line2,
string memory _line3
) external;
// Function to get the total number of haikus
function counter() external view returns (uint256);
// Function to share a haiku with another address
function shareHaiku(uint256 _id, address _to) external;
// Function to get haikus shared with the caller
function getMySharedHaikus() external view returns (Haiku[] memory);
}
// Contract for managing Haiku NFTs
contract HaikuNFT is ERC721, ISubmission {
Haiku[] public haikus; // Array to store haikus
mapping(address => mapping(uint256 => bool)) public sharedHaikus; // Mapping to track shared haikus
uint256 public haikuCounter; // Counter for total haikus minted
// Constructor to initialize the ERC721 contract
constructor() ERC721("HaikuNFT", "HAIKU") {
haikuCounter = 1; // Initialize haiku counter
}
string salt = "value"; // A private string variable
// Function to get the total number of haikus
function counter() external view override returns (uint256) {
return haikuCounter;
}
// Function to mint a new haiku
function mintHaiku(
string memory _line1,
string memory _line2,
string memory _line3
) external override {
// Check if the haiku is unique
string[3] memory haikusStrings = [_line1, _line2, _line3];
for (uint256 li = 0; li < haikusStrings.length; li++) {
string memory newLine = haikusStrings[li];
for (uint256 i = 0; i < haikus.length; i++) {
Haiku memory existingHaiku = haikus[i];
string[3] memory existingHaikuStrings = [
existingHaiku.line1,
existingHaiku.line2,
existingHaiku.line3
];
for (uint256 eHsi = 0; eHsi < 3; eHsi++) {
string memory existingHaikuString = existingHaikuStrings[
eHsi
];
if (
keccak256(abi.encodePacked(existingHaikuString)) ==
keccak256(abi.encodePacked(newLine))
) {
revert HaikuNotUnique();
}
}
}
}
// Mint the haiku NFT
_safeMint(msg.sender, haikuCounter);
haikus.push(Haiku(msg.sender, _line1, _line2, _line3));
haikuCounter++;
}
// Function to share a haiku with another address
function shareHaiku(uint256 _id, address _to) external override {
require(_id > 0 && _id <= haikuCounter, "Invalid haiku ID");
Haiku memory haikuToShare = haikus[_id - 1];
require(haikuToShare.author == msg.sender, "NotYourHaiku");
sharedHaikus[_to][_id] = true;
}
// Function to get haikus shared with the caller
function getMySharedHaikus()
external
view
override
returns (Haiku[] memory)
{
uint256 sharedHaikuCount;
for (uint256 i = 0; i < haikus.length; i++) {
if (sharedHaikus[msg.sender][i + 1]) {
sharedHaikuCount++;
}
}
Haiku[] memory result = new Haiku[](sharedHaikuCount);
uint256 currentIndex;
for (uint256 i = 0; i < haikus.length; i++) {
if (sharedHaikus[msg.sender][i + 1]) {
result[currentIndex] = haikus[i];
currentIndex++;
}
}
if (sharedHaikuCount == 0) {
revert NoHaikusShared();
}
return result;
}
// Custom errors
error HaikuNotUnique(); // Error for attempting to mint a non-unique haiku
error NotYourHaiku(); // Error for attempting to share a haiku not owned by the caller
error NoHaikusShared(); // Error for no haikus shared with the caller
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
contract ErrorTriageExercise {
/**
* @dev Finds the difference between each uint with its neighbor (a to b, b to c, etc.)
* and returns a uint array with the absolute integer difference of each pairing.
*
* @param _a The first unsigned integer.
* @param _b The second unsigned integer.
* @param _c The third unsigned integer.
* @param _d The fourth unsigned integer.
*
* @return results An array containing the absolute differences between each pair of integers.
*/
function diffWithNeighbor(
uint _a,
uint _b,
uint _c,
uint _d
) public pure returns (uint[] memory) {
// Initialize an array to store the differences
uint[] memory results = new uint[](3);
// Calculate the absolute difference between each pair of integers and store it in the results array
results[0] = _a > _b ? _a - _b : _b - _a;
results[1] = _b > _c ? _b - _c : _c - _b;
results[2] = _c > _d ? _c - _d : _d - _c;
// Return the array of differences
return results;
}
/**
* @dev Changes the base by the value of the modifier. Base is always >= 1000. Modifiers can be
* between positive and negative 100.
*
* @param _base The base value to be modified.
* @param _modifier The value by which the base should be modified.
*
* @return returnValue The modified value of the base.
*/
function applyModifier(
uint _base,
int _modifier
) public pure returns (uint returnValue) {
// Apply the modifier to the base value
if(_modifier > 0) {
return _base + uint(_modifier);
}
return _base - uint(-_modifier);
}
uint[] arr;
function popWithReturn() public returns (uint returnNum) {
if(arr.length > 0) {
uint result = arr[arr.length - 1];
arr.pop();
return result;
}
}
// The utility functions below are working as expected
function addToArr(uint _num) public {
arr.push(_num);
}
function getArr() public view returns (uint[] memory) {
return arr;
}
function resetArr() public {
delete arr;
}
}
// SPDX-License-Identifier: MIT
// Importing the SillyStringUtils library
import "./SillyStringUtils.sol";
pragma solidity 0.8.17;
contract ImportsExercise {
// Using the SillyStringUtils library for string manipulation
using SillyStringUtils for string;
// Declaring a public variable to store a Haiku
SillyStringUtils.Haiku public haiku;
// Function to save a Haiku
function saveHaiku(string memory _line1, string memory _line2, string memory _line3) public {
haiku.line1 = _line1;
haiku.line2 = _line2;
haiku.line3 = _line3;
}
// Function to retrieve the saved Haiku
function getHaiku() public view returns (SillyStringUtils.Haiku memory) {
return haiku;
}
// Function to append a shrugging emoji to the third line of the Haiku
function shruggieHaiku() public view returns (SillyStringUtils.Haiku memory) {
// Creating a copy of the Haiku
SillyStringUtils.Haiku memory newHaiku = haiku;
// Appending the shrugging emoji to the third line using the shruggie function from the SillyStringUtils library
newHaiku.line3 = newHaiku.line3.shruggie();
return newHaiku;
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
/**
* @title Employee
* @dev Abstract contract defining common properties and behavior for employees.
*/
abstract contract Employee {
uint public idNumber; // Unique identifier for the employee
uint public managerId; // Identifier of the manager overseeing the employee
/**
* @dev Constructor to initialize idNumber and managerId.
* @param _idNumber The unique identifier for the employee.
* @param _managerId The identifier of the manager overseeing the employee.
*/
constructor(uint _idNumber, uint _managerId) {
idNumber = _idNumber;
managerId = _managerId;
}
/**
* @dev Abstract function to be implemented by derived contracts to get the annual cost of the employee.
* @return The annual cost of the employee.
*/
function getAnnualCost() public virtual returns (uint);
}
/**
* @title Salaried
* @dev Contract representing employees who are paid an annual salary.
*/
contract Salaried is Employee {
uint public annualSalary; // The annual salary of the employee
/**
* @dev Constructor to initialize the Salaried contract.
* @param _idNumber The unique identifier for the employee.
* @param _managerId The identifier of the manager overseeing the employee.
* @param _annualSalary The annual salary of the employee.
*/
constructor(uint _idNumber, uint _managerId, uint _annualSalary) Employee(_idNumber, _managerId) {
annualSalary = _annualSalary;
}
/**
* @dev Overrides the getAnnualCost function to return the annual salary of the employee.
* @return The annual salary of the employee.
*/
function getAnnualCost() public override view returns (uint) {
return annualSalary;
}
}
/**
* @title Hourly
* @dev Contract representing employees who are paid an hourly rate.
*/
contract Hourly is Employee {
uint public hourlyRate; // The hourly rate of the employee
/**
* @dev Constructor to initialize the Hourly contract.
* @param _idNumber The unique identifier for the employee.
* @param _managerId The identifier of the manager overseeing the employee.
* @param _hourlyRate The hourly rate of the employee.
*/
constructor(uint _idNumber, uint _managerId, uint _hourlyRate) Employee(_idNumber, _managerId) {
hourlyRate = _hourlyRate;
}
/**
* @dev Overrides the getAnnualCost function to calculate the annual cost based on the hourly rate.
* Assuming a full-time workload of 2080 hours per year.
* @return The annual cost of the employee.
*/
function getAnnualCost() public override view returns (uint) {
return hourlyRate * 2080;
}
}
/**
* @title Manager
* @dev Contract managing a list of employee IDs.
*/
contract Manager {
uint[] public employeeIds; // List of employee IDs
/**
* @dev Function to add a new employee ID to the list.
* @param _reportId The ID of the employee to be added.
*/
function addReport(uint _reportId) public {
employeeIds.push(_reportId);
}
/**
* @dev Function to reset the list of employee IDs.
*/
function resetReports() public {
delete employeeIds;
}
}
/**
* @title Salesperson
* @dev Contract representing salespeople who are paid hourly.
*/
contract Salesperson is Hourly {
/**
* @dev Constructor to initialize the Salesperson contract.
* @param _idNumber The unique identifier for the employee.
* @param _managerId The identifier of the manager overseeing the employee.
* @param _hourlyRate The hourly rate of the employee.
*/
constructor(uint _idNumber, uint _managerId, uint _hourlyRate)
Hourly(_idNumber, _managerId, _hourlyRate) {}
}
/**
* @title EngineeringManager
* @dev Contract representing engineering managers who are paid an annual salary and have managerial responsibilities.
*/
contract EngineeringManager is Salaried, Manager {
/**
* @dev Constructor to initialize the EngineeringManager contract.
* @param _idNumber The unique identifier for the employee.
* @param _managerId The identifier of the manager overseeing the employee.
* @param _annualSalary The annual salary of the employee.
*/
constructor(uint _idNumber, uint _managerId, uint _annualSalary)
Salaried(_idNumber, _managerId, _annualSalary) {}
}
/**
* @title InheritanceSubmission
* @dev Contract for deploying instances of Salesperson and EngineeringManager.
*/
contract InheritanceSubmission {
address public salesPerson; // Address of the deployed Salesperson instance
address public engineeringManager; // Address of the deployed EngineeringManager instance
/**
* @dev Constructor to initialize the InheritanceSubmission contract.
* @param _salesPerson Address of the deployed Salesperson instance.
* @param _engineeringManager Address of the deployed EngineeringManager instance.
*/
constructor(address _salesPerson, address _engineeringManager) {
salesPerson = _salesPerson;
engineeringManager = _engineeringManager;
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
/**
* @title FavoriteRecords
* @dev Contract to manage a list of approved music records and allow users to add them to their favorites
*/
contract FavoriteRecords {
// Mapping to store whether a record is approved
mapping(string => bool) private approvedRecords;
// Array to store the index of approved records
string[] private approvedRecordsIndex;
// Mapping to store user's favorite records
mapping(address => mapping(string => bool)) public userFavorites;
// Mapping to store the index of user's favorite records
mapping(address => string[]) private userFavoritesIndex;
// Custom error to handle unapproved records
error NotApproved(string albumName);
/**
* @dev Constructor that initializes the approved records list
*/
constructor() {
// Predefined list of approved records
approvedRecordsIndex = [
"Thriller",
"Back in Black",
"The Bodyguard",
"The Dark Side of the Moon",
"Their Greatest Hits (1971-1975)",
"Hotel California",
"Come On Over",
"Rumours",
"Saturday Night Fever"
];
// Initialize the approved records mapping
for (uint i = 0; i < approvedRecordsIndex.length; i++) {
approvedRecords[approvedRecordsIndex[i]] = true;
}
}
/**
* @dev Returns the list of approved records
* @return An array of approved record names
*/
function getApprovedRecords() public view returns (string[] memory) {
return approvedRecordsIndex;
}
/**
* @dev Adds an approved record to the user's favorites
* @param _albumName The name of the album to be added
*/
function addRecord(string memory _albumName) public {
// Check if the record is approved
if (!approvedRecords[_albumName]) {
revert NotApproved({albumName: _albumName});
}
// Check if the record is not already in the user's favorites
if (!userFavorites[msg.sender][_albumName]) {
// Add the record to the user's favorites
userFavorites[msg.sender][_albumName] = true;
// Add the record to the user's favorites index
userFavoritesIndex[msg.sender].push(_albumName);
}
}
/**
* @dev Returns the list of a user's favorite records
* @param _address The address of the user
* @return An array of user's favorite record names
*/
function getUserFavorites(address _address) public view returns (string[] memory) {
return userFavoritesIndex[_address];
}
/**
* @dev Resets the caller's list of favorite records
*/
function resetUserFavorites() public {
// Iterate through the user's favorite records
for (uint i = 0; i < userFavoritesIndex[msg.sender].length; i++) {
// Delete each record from the user's favorites mapping
delete userFavorites[msg.sender][userFavoritesIndex[msg.sender][i]];
}
// Delete the user's favorites index
delete userFavoritesIndex[msg.sender];
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Contract for an unburnable token
contract UnburnableToken {
string private salt = "12345"; // A private string variable
// Mapping to track token balances of addresses
mapping(address => uint256) public balances;
uint256 public totalSupply; // Total supply of tokens
uint256 public totalClaimed; // Total number of tokens claimed
mapping(address => bool) private claimed; // Mapping to track whether an address has claimed tokens
// Custom errors
error TokensClaimed(); // Error for attempting to claim tokens again
error AllTokensClaimed(); // Error for attempting to claim tokens when all are already claimed
error UnsafeTransfer(address _to); // Error for unsafe token transfer
// Constructor to set the total supply of tokens
constructor() {
totalSupply = 100000000; // Set the total supply of tokens
}
// Public function to claim tokens
function claim() public {
// Check if all tokens have been claimed
if (totalClaimed >= totalSupply) revert AllTokensClaimed();
// Check if the caller has already claimed tokens
if (claimed[msg.sender]) revert TokensClaimed();
// Update balances and claimed status
balances[msg.sender] += 1000;
totalClaimed += 1000;
claimed[msg.sender] = true;
}
// Public function for safe token transfer
function safeTransfer(address _to, uint256 _amount) public {
// Check for unsafe transfer conditions, including if the target address has a non-zero ether balance
if (_to == address(0) || _to.balance == 0) revert UnsafeTransfer(_to);
// Ensure the sender has enough balance to transfer
require(balances[msg.sender] >= _amount, "Insufficient balance");
// Perform the transfer
balances[msg.sender] -= _amount;
balances[_to] += _amount;
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;
// Import the AddressBook contract to interact with it
import "./AddressBook.sol";
// Contract for creating new instances of AddressBook
contract AddressBookFactory {
// Define a private salt value for internal use
string private salt = "value";
// Function to deploy a new instance of AddressBook
function deploy() external returns (AddressBook) {
// Create a new instance of AddressBook
AddressBook newAddressBook = new AddressBook();
// Transfer ownership of the new AddressBook contract to the caller of this function
newAddressBook.transferOwnership(msg.sender);
// Return the newly created AddressBook contract
return newAddressBook;
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
library SillyStringUtils {
struct Haiku {
string line1;
string line2;
string line3;
}
function shruggie(string memory _input) internal pure returns (string memory) {
return string.concat(_input, unicode" 🤷");
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
contract EmployeeStorage {
// Declare private state variables to store employee data
uint16 private shares; // Number of shares owned by the employee (private to contract)
uint32 private salary; // Monthly salary of the employee (private to contract)
uint256 public idNumber; // Unique identification number of the employee (publicly accessible)
string public name; // Name of the employee (publicly accessible)
// Constructor to initialize employee data when contract is deployed
constructor(uint16 _shares, string memory _name, uint32 _salary, uint _idNumber) {
shares = _shares; // Initialize shares
name = _name; // Initialize name
salary = _salary; // Initialize salary
idNumber = _idNumber; // Initialize idNumber
}
// View function to retrieve the number of shares owned by the employee
function viewShares() public view returns (uint16) {
return shares;
}
// View function to retrieve the monthly salary of the employee
function viewSalary() public view returns (uint32) {
return salary;
}
// Custom error declaration
error TooManyShares(uint16 _shares);
// Function to grant additional shares to the employee
function grantShares(uint16 _newShares) public {
// Check if the requested shares exceed the limit
if (_newShares > 5000) {
revert("Too many shares"); // Revert with error message
} else if (shares + _newShares > 5000) {
revert TooManyShares(shares + _newShares); // Revert with custom error message
}
shares += _newShares; // Grant the new shares
}
// Function used for testing packing of storage variables (not relevant to main functionality)
function checkForPacking(uint _slot) public view returns (uint r) {
assembly {
r := sload (_slot)
}
}
// Function to reset shares for debugging purposes (not relevant to main functionality)
function debugResetShares() public {
shares = 1000; // Reset shares to 1000
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
/**
* @title GarageManager
* @dev Contract to manage a garage of cars for each user
*/
contract GarageManager {
// Mapping to store the garage of cars for each user
mapping(address => Car[]) private garages;
// Struct to represent a car
struct Car {
string make; // Make of the car
string model; // Model of the car
string color; // Color of the car
uint numberOfDoors; // Number of doors of the car
}
// Custom error for handling invalid car index
error BadCarIndex(uint256 index);
/**
* @dev Adds a new car to the caller's garage
* @param _make The make of the car
* @param _model The model of the car
* @param _color The color of the car
* @param _numberOfDoors The number of doors of the car
*/
function addCar(string memory _make, string memory _model, string memory _color, uint _numberOfDoors) external {
// Push a new car struct with the provided details to the caller's garage
garages[msg.sender].push(Car(_make, _model, _color, _numberOfDoors));
}
/**
* @dev Retrieves the caller's array of cars
* @return An array of `Car` structs
*/
function getMyCars() external view returns (Car[] memory) {
// Return the array of cars stored in the caller's garage
return garages[msg.sender];
}
/**
* @dev Retrieves a specific user's array of cars
* @param _user The address of the user
* @return An array of `Car` structs
*/
function getUserCars(address _user) external view returns (Car[] memory) {
// Return the array of cars stored in the garage of the specified user
return garages[_user];
}
/**
* @dev Updates a specific car in the caller's garage
* @param _index The index of the car in the garage array
* @param _make The new make of the car
* @param _model The new model of the car
* @param _color The new color of the car
* @param _numberOfDoors The new number of doors of the car
*/
function updateCar(uint256 _index, string memory _make, string memory _model, string memory _color, uint _numberOfDoors) external {
// Check if the provided index is valid
if (_index >= garages[msg.sender].length) {
revert BadCarIndex({index: _index}); // Revert with custom error if the index is invalid
}
// Update the specified car with the new details
garages[msg.sender][_index] = Car(_make, _model, _color, _numberOfDoors);
}
/**
* @dev Deletes all cars in the caller's garage
*/
function resetMyGarage() external {
// Delete all cars from the caller's garage
delete garages[msg.sender];
}
}
View raw

(Sorry about that, but we can’t show files that are this big right now.)

This file has been truncated, but you can view the full file.
{
"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": {
"array_dataslot_t_string_storage": {
"entryPoint": 237,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_length_t_string_memory_ptr": {
"entryPoint": 89,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"clean_up_bytearray_end_slots_t_string_storage": {
"entryPoint": 522,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"cleanup_t_uint256": {
"entryPoint": 363,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"clear_storage_range_t_bytes1": {
"entryPoint": 488,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"convert_t_uint256_to_t_uint256": {
"entryPoint": 381,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage": {
"entryPoint": 659,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"divide_by_32_ceil": {
"entryPoint": 255,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"extract_byte_array_length": {
"entryPoint": 189,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"extract_used_part_and_set_length_of_short_byte_array": {
"entryPoint": 632,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"identity": {
"entryPoint": 372,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"mask_bytes_dynamic": {
"entryPoint": 604,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"panic_error_0x22": {
"entryPoint": 144,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x41": {
"entryPoint": 99,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"prepare_store_t_uint256": {
"entryPoint": 414,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"shift_left_dynamic": {
"entryPoint": 270,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"shift_right_unsigned_dynamic": {
"entryPoint": 592,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"storage_set_to_zero_t_uint256": {
"entryPoint": 464,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"update_byte_slice_dynamic32": {
"entryPoint": 282,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"update_storage_value_t_uint256_to_t_uint256": {
"entryPoint": 423,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"zero_value_for_split_t_uint256": {
"entryPoint": 460,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:5231:4",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "66:40:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "77:22:4",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "93:5:4"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "87:5:4"
},
"nodeType": "YulFunctionCall",
"src": "87:12:4"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "77:6:4"
}
]
}
]
},
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "49:5:4",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "59:6:4",
"type": ""
}
],
"src": "7:99:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "140:152:4",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "157:1:4",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "160:77:4",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "150:6:4"
},
"nodeType": "YulFunctionCall",
"src": "150:88:4"
},
"nodeType": "YulExpressionStatement",
"src": "150:88:4"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "254:1:4",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "257:4:4",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "247:6:4"
},
"nodeType": "YulFunctionCall",
"src": "247:15:4"
},
"nodeType": "YulExpressionStatement",
"src": "247:15:4"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "278:1:4",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "281:4:4",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "271:6:4"
},
"nodeType": "YulFunctionCall",
"src": "271:15:4"
},
"nodeType": "YulExpressionStatement",
"src": "271:15:4"
}
]
},
"name": "panic_error_0x41",
"nodeType": "YulFunctionDefinition",
"src": "112:180:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "326:152:4",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "343:1:4",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "346:77:4",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "336:6:4"
},
"nodeType": "YulFunctionCall",
"src": "336:88:4"
},
"nodeType": "YulExpressionStatement",
"src": "336:88:4"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "440:1:4",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "443:4:4",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "433:6:4"
},
"nodeType": "YulFunctionCall",
"src": "433:15:4"
},
"nodeType": "YulExpressionStatement",
"src": "433:15:4"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "464:1:4",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "467:4:4",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "457:6:4"
},
"nodeType": "YulFunctionCall",
"src": "457:15:4"
},
"nodeType": "YulExpressionStatement",
"src": "457:15:4"
}
]
},
"name": "panic_error_0x22",
"nodeType": "YulFunctionDefinition",
"src": "298:180:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "535:269:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "545:22:4",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "559:4:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "565:1:4",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "555:3:4"
},
"nodeType": "YulFunctionCall",
"src": "555:12:4"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "545:6:4"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "576:38:4",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "606:4:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "612:1:4",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "602:3:4"
},
"nodeType": "YulFunctionCall",
"src": "602:12:4"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulTypedName",
"src": "580:18:4",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "653:51:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "667:27:4",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "681:6:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "689:4:4",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "677:3:4"
},
"nodeType": "YulFunctionCall",
"src": "677:17:4"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "667:6:4"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "633:18:4"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "626:6:4"
},
"nodeType": "YulFunctionCall",
"src": "626:26:4"
},
"nodeType": "YulIf",
"src": "623:81:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "756:42:4",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nodeType": "YulIdentifier",
"src": "770:16:4"
},
"nodeType": "YulFunctionCall",
"src": "770:18:4"
},
"nodeType": "YulExpressionStatement",
"src": "770:18:4"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "720:18:4"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "743:6:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "751:2:4",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "740:2:4"
},
"nodeType": "YulFunctionCall",
"src": "740:14:4"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "717:2:4"
},
"nodeType": "YulFunctionCall",
"src": "717:38:4"
},
"nodeType": "YulIf",
"src": "714:84:4"
}
]
},
"name": "extract_byte_array_length",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "519:4:4",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "528:6:4",
"type": ""
}
],
"src": "484:320:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "864:87:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "874:11:4",
"value": {
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "882:3:4"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "874:4:4"
}
]
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "902:1:4",
"type": "",
"value": "0"
},
{
"name": "ptr",
"nodeType": "YulIdentifier",
"src": "905:3:4"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "895:6:4"
},
"nodeType": "YulFunctionCall",
"src": "895:14:4"
},
"nodeType": "YulExpressionStatement",
"src": "895:14:4"
},
{
"nodeType": "YulAssignment",
"src": "918:26:4",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "936:1:4",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "939:4:4",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "keccak256",
"nodeType": "YulIdentifier",
"src": "926:9:4"
},
"nodeType": "YulFunctionCall",
"src": "926:18:4"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "918:4:4"
}
]
}
]
},
"name": "array_dataslot_t_string_storage",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "ptr",
"nodeType": "YulTypedName",
"src": "851:3:4",
"type": ""
}
],
"returnVariables": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "859:4:4",
"type": ""
}
],
"src": "810:141:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1001:49:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1011:33:4",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1029:5:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1036:2:4",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1025:3:4"
},
"nodeType": "YulFunctionCall",
"src": "1025:14:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1041:2:4",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "1021:3:4"
},
"nodeType": "YulFunctionCall",
"src": "1021:23:4"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "1011:6:4"
}
]
}
]
},
"name": "divide_by_32_ceil",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "984:5:4",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "994:6:4",
"type": ""
}
],
"src": "957:93:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1109:54:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1119:37:4",
"value": {
"arguments": [
{
"name": "bits",
"nodeType": "YulIdentifier",
"src": "1144:4:4"
},
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1150:5:4"
}
],
"functionName": {
"name": "shl",
"nodeType": "YulIdentifier",
"src": "1140:3:4"
},
"nodeType": "YulFunctionCall",
"src": "1140:16:4"
},
"variableNames": [
{
"name": "newValue",
"nodeType": "YulIdentifier",
"src": "1119:8:4"
}
]
}
]
},
"name": "shift_left_dynamic",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "bits",
"nodeType": "YulTypedName",
"src": "1084:4:4",
"type": ""
},
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1090:5:4",
"type": ""
}
],
"returnVariables": [
{
"name": "newValue",
"nodeType": "YulTypedName",
"src": "1100:8:4",
"type": ""
}
],
"src": "1056:107:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1245:317:4",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "1255:35:4",
"value": {
"arguments": [
{
"name": "shiftBytes",
"nodeType": "YulIdentifier",
"src": "1276:10:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1288:1:4",
"type": "",
"value": "8"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "1272:3:4"
},
"nodeType": "YulFunctionCall",
"src": "1272:18:4"
},
"variables": [
{
"name": "shiftBits",
"nodeType": "YulTypedName",
"src": "1259:9:4",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "1299:109:4",
"value": {
"arguments": [
{
"name": "shiftBits",
"nodeType": "YulIdentifier",
"src": "1330:9:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1341:66:4",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "shift_left_dynamic",
"nodeType": "YulIdentifier",
"src": "1311:18:4"
},
"nodeType": "YulFunctionCall",
"src": "1311:97:4"
},
"variables": [
{
"name": "mask",
"nodeType": "YulTypedName",
"src": "1303:4:4",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "1417:51:4",
"value": {
"arguments": [
{
"name": "shiftBits",
"nodeType": "YulIdentifier",
"src": "1448:9:4"
},
{
"name": "toInsert",
"nodeType": "YulIdentifier",
"src": "1459:8:4"
}
],
"functionName": {
"name": "shift_left_dynamic",
"nodeType": "YulIdentifier",
"src": "1429:18:4"
},
"nodeType": "YulFunctionCall",
"src": "1429:39:4"
},
"variableNames": [
{
"name": "toInsert",
"nodeType": "YulIdentifier",
"src": "1417:8:4"
}
]
},
{
"nodeType": "YulAssignment",
"src": "1477:30:4",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1490:5:4"
},
{
"arguments": [
{
"name": "mask",
"nodeType": "YulIdentifier",
"src": "1501:4:4"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "1497:3:4"
},
"nodeType": "YulFunctionCall",
"src": "1497:9:4"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "1486:3:4"
},
"nodeType": "YulFunctionCall",
"src": "1486:21:4"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1477:5:4"
}
]
},
{
"nodeType": "YulAssignment",
"src": "1516:40:4",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1529:5:4"
},
{
"arguments": [
{
"name": "toInsert",
"nodeType": "YulIdentifier",
"src": "1540:8:4"
},
{
"name": "mask",
"nodeType": "YulIdentifier",
"src": "1550:4:4"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "1536:3:4"
},
"nodeType": "YulFunctionCall",
"src": "1536:19:4"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "1526:2:4"
},
"nodeType": "YulFunctionCall",
"src": "1526:30:4"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "1516:6:4"
}
]
}
]
},
"name": "update_byte_slice_dynamic32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1206:5:4",
"type": ""
},
{
"name": "shiftBytes",
"nodeType": "YulTypedName",
"src": "1213:10:4",
"type": ""
},
{
"name": "toInsert",
"nodeType": "YulTypedName",
"src": "1225:8:4",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "1238:6:4",
"type": ""
}
],
"src": "1169:393:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1613:32:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1623:16:4",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "1634:5:4"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "1623:7:4"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1595:5:4",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "1605:7:4",
"type": ""
}
],
"src": "1568:77:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1683:28:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1693:12:4",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "1700:5:4"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "1693:3:4"
}
]
}
]
},
"name": "identity",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1669:5:4",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "1679:3:4",
"type": ""
}
],
"src": "1651:60:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1777:82:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1787:66:4",
"value": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1845:5:4"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "1827:17:4"
},
"nodeType": "YulFunctionCall",
"src": "1827:24:4"
}
],
"functionName": {
"name": "identity",
"nodeType": "YulIdentifier",
"src": "1818:8:4"
},
"nodeType": "YulFunctionCall",
"src": "1818:34:4"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "1800:17:4"
},
"nodeType": "YulFunctionCall",
"src": "1800:53:4"
},
"variableNames": [
{
"name": "converted",
"nodeType": "YulIdentifier",
"src": "1787:9:4"
}
]
}
]
},
"name": "convert_t_uint256_to_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1757:5:4",
"type": ""
}
],
"returnVariables": [
{
"name": "converted",
"nodeType": "YulTypedName",
"src": "1767:9:4",
"type": ""
}
],
"src": "1717:142:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1912:28:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1922:12:4",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "1929:5:4"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "1922:3:4"
}
]
}
]
},
"name": "prepare_store_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1898:5:4",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "1908:3:4",
"type": ""
}
],
"src": "1865:75:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2022:193:4",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2032:63:4",
"value": {
"arguments": [
{
"name": "value_0",
"nodeType": "YulIdentifier",
"src": "2087:7:4"
}
],
"functionName": {
"name": "convert_t_uint256_to_t_uint256",
"nodeType": "YulIdentifier",
"src": "2056:30:4"
},
"nodeType": "YulFunctionCall",
"src": "2056:39:4"
},
"variables": [
{
"name": "convertedValue_0",
"nodeType": "YulTypedName",
"src": "2036:16:4",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "2111:4:4"
},
{
"arguments": [
{
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "2151:4:4"
}
],
"functionName": {
"name": "sload",
"nodeType": "YulIdentifier",
"src": "2145:5:4"
},
"nodeType": "YulFunctionCall",
"src": "2145:11:4"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2158:6:4"
},
{
"arguments": [
{
"name": "convertedValue_0",
"nodeType": "YulIdentifier",
"src": "2190:16:4"
}
],
"functionName": {
"name": "prepare_store_t_uint256",
"nodeType": "YulIdentifier",
"src": "2166:23:4"
},
"nodeType": "YulFunctionCall",
"src": "2166:41:4"
}
],
"functionName": {
"name": "update_byte_slice_dynamic32",
"nodeType": "YulIdentifier",
"src": "2117:27:4"
},
"nodeType": "YulFunctionCall",
"src": "2117:91:4"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "2104:6:4"
},
"nodeType": "YulFunctionCall",
"src": "2104:105:4"
},
"nodeType": "YulExpressionStatement",
"src": "2104:105:4"
}
]
},
"name": "update_storage_value_t_uint256_to_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "slot",
"nodeType": "YulTypedName",
"src": "1999:4:4",
"type": ""
},
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "2005:6:4",
"type": ""
},
{
"name": "value_0",
"nodeType": "YulTypedName",
"src": "2013:7:4",
"type": ""
}
],
"src": "1946:269:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2270:24:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2280:8:4",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "2287:1:4",
"type": "",
"value": "0"
},
"variableNames": [
{
"name": "ret",
"nodeType": "YulIdentifier",
"src": "2280:3:4"
}
]
}
]
},
"name": "zero_value_for_split_t_uint256",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "ret",
"nodeType": "YulTypedName",
"src": "2266:3:4",
"type": ""
}
],
"src": "2221:73:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2353:136:4",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2363:46:4",
"value": {
"arguments": [],
"functionName": {
"name": "zero_value_for_split_t_uint256",
"nodeType": "YulIdentifier",
"src": "2377:30:4"
},
"nodeType": "YulFunctionCall",
"src": "2377:32:4"
},
"variables": [
{
"name": "zero_0",
"nodeType": "YulTypedName",
"src": "2367:6:4",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "2462:4:4"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2468:6:4"
},
{
"name": "zero_0",
"nodeType": "YulIdentifier",
"src": "2476:6:4"
}
],
"functionName": {
"name": "update_storage_value_t_uint256_to_t_uint256",
"nodeType": "YulIdentifier",
"src": "2418:43:4"
},
"nodeType": "YulFunctionCall",
"src": "2418:65:4"
},
"nodeType": "YulExpressionStatement",
"src": "2418:65:4"
}
]
},
"name": "storage_set_to_zero_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "slot",
"nodeType": "YulTypedName",
"src": "2339:4:4",
"type": ""
},
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "2345:6:4",
"type": ""
}
],
"src": "2300:189:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2545:136:4",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2612:63:4",
"statements": [
{
"expression": {
"arguments": [
{
"name": "start",
"nodeType": "YulIdentifier",
"src": "2656:5:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2663:1:4",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "storage_set_to_zero_t_uint256",
"nodeType": "YulIdentifier",
"src": "2626:29:4"
},
"nodeType": "YulFunctionCall",
"src": "2626:39:4"
},
"nodeType": "YulExpressionStatement",
"src": "2626:39:4"
}
]
},
"condition": {
"arguments": [
{
"name": "start",
"nodeType": "YulIdentifier",
"src": "2565:5:4"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "2572:3:4"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "2562:2:4"
},
"nodeType": "YulFunctionCall",
"src": "2562:14:4"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "2577:26:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2579:22:4",
"value": {
"arguments": [
{
"name": "start",
"nodeType": "YulIdentifier",
"src": "2592:5:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2599:1:4",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2588:3:4"
},
"nodeType": "YulFunctionCall",
"src": "2588:13:4"
},
"variableNames": [
{
"name": "start",
"nodeType": "YulIdentifier",
"src": "2579:5:4"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "2559:2:4",
"statements": []
},
"src": "2555:120:4"
}
]
},
"name": "clear_storage_range_t_bytes1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "start",
"nodeType": "YulTypedName",
"src": "2533:5:4",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "2540:3:4",
"type": ""
}
],
"src": "2495:186:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2766:464:4",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2792:431:4",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2806:54:4",
"value": {
"arguments": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "2854:5:4"
}
],
"functionName": {
"name": "array_dataslot_t_string_storage",
"nodeType": "YulIdentifier",
"src": "2822:31:4"
},
"nodeType": "YulFunctionCall",
"src": "2822:38:4"
},
"variables": [
{
"name": "dataArea",
"nodeType": "YulTypedName",
"src": "2810:8:4",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "2873:63:4",
"value": {
"arguments": [
{
"name": "dataArea",
"nodeType": "YulIdentifier",
"src": "2896:8:4"
},
{
"arguments": [
{
"name": "startIndex",
"nodeType": "YulIdentifier",
"src": "2924:10:4"
}
],
"functionName": {
"name": "divide_by_32_ceil",
"nodeType": "YulIdentifier",
"src": "2906:17:4"
},
"nodeType": "YulFunctionCall",
"src": "2906:29:4"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2892:3:4"
},
"nodeType": "YulFunctionCall",
"src": "2892:44:4"
},
"variables": [
{
"name": "deleteStart",
"nodeType": "YulTypedName",
"src": "2877:11:4",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "3093:27:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3095:23:4",
"value": {
"name": "dataArea",
"nodeType": "YulIdentifier",
"src": "3110:8:4"
},
"variableNames": [
{
"name": "deleteStart",
"nodeType": "YulIdentifier",
"src": "3095:11:4"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "startIndex",
"nodeType": "YulIdentifier",
"src": "3077:10:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3089:2:4",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "3074:2:4"
},
"nodeType": "YulFunctionCall",
"src": "3074:18:4"
},
"nodeType": "YulIf",
"src": "3071:49:4"
},
{
"expression": {
"arguments": [
{
"name": "deleteStart",
"nodeType": "YulIdentifier",
"src": "3162:11:4"
},
{
"arguments": [
{
"name": "dataArea",
"nodeType": "YulIdentifier",
"src": "3179:8:4"
},
{
"arguments": [
{
"name": "len",
"nodeType": "YulIdentifier",
"src": "3207:3:4"
}
],
"functionName": {
"name": "divide_by_32_ceil",
"nodeType": "YulIdentifier",
"src": "3189:17:4"
},
"nodeType": "YulFunctionCall",
"src": "3189:22:4"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3175:3:4"
},
"nodeType": "YulFunctionCall",
"src": "3175:37:4"
}
],
"functionName": {
"name": "clear_storage_range_t_bytes1",
"nodeType": "YulIdentifier",
"src": "3133:28:4"
},
"nodeType": "YulFunctionCall",
"src": "3133:80:4"
},
"nodeType": "YulExpressionStatement",
"src": "3133:80:4"
}
]
},
"condition": {
"arguments": [
{
"name": "len",
"nodeType": "YulIdentifier",
"src": "2783:3:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2788:2:4",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "2780:2:4"
},
"nodeType": "YulFunctionCall",
"src": "2780:11:4"
},
"nodeType": "YulIf",
"src": "2777:446:4"
}
]
},
"name": "clean_up_bytearray_end_slots_t_string_storage",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "array",
"nodeType": "YulTypedName",
"src": "2742:5:4",
"type": ""
},
{
"name": "len",
"nodeType": "YulTypedName",
"src": "2749:3:4",
"type": ""
},
{
"name": "startIndex",
"nodeType": "YulTypedName",
"src": "2754:10:4",
"type": ""
}
],
"src": "2687:543:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3299:54:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3309:37:4",
"value": {
"arguments": [
{
"name": "bits",
"nodeType": "YulIdentifier",
"src": "3334:4:4"
},
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "3340:5:4"
}
],
"functionName": {
"name": "shr",
"nodeType": "YulIdentifier",
"src": "3330:3:4"
},
"nodeType": "YulFunctionCall",
"src": "3330:16:4"
},
"variableNames": [
{
"name": "newValue",
"nodeType": "YulIdentifier",
"src": "3309:8:4"
}
]
}
]
},
"name": "shift_right_unsigned_dynamic",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "bits",
"nodeType": "YulTypedName",
"src": "3274:4:4",
"type": ""
},
{
"name": "value",
"nodeType": "YulTypedName",
"src": "3280:5:4",
"type": ""
}
],
"returnVariables": [
{
"name": "newValue",
"nodeType": "YulTypedName",
"src": "3290:8:4",
"type": ""
}
],
"src": "3236:117:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3410:118:4",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "3420:68:4",
"value": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3469:1:4",
"type": "",
"value": "8"
},
{
"name": "bytes",
"nodeType": "YulIdentifier",
"src": "3472:5:4"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "3465:3:4"
},
"nodeType": "YulFunctionCall",
"src": "3465:13:4"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3484:1:4",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "3480:3:4"
},
"nodeType": "YulFunctionCall",
"src": "3480:6:4"
}
],
"functionName": {
"name": "shift_right_unsigned_dynamic",
"nodeType": "YulIdentifier",
"src": "3436:28:4"
},
"nodeType": "YulFunctionCall",
"src": "3436:51:4"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "3432:3:4"
},
"nodeType": "YulFunctionCall",
"src": "3432:56:4"
},
"variables": [
{
"name": "mask",
"nodeType": "YulTypedName",
"src": "3424:4:4",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "3497:25:4",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "3511:4:4"
},
{
"name": "mask",
"nodeType": "YulIdentifier",
"src": "3517:4:4"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "3507:3:4"
},
"nodeType": "YulFunctionCall",
"src": "3507:15:4"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "3497:6:4"
}
]
}
]
},
"name": "mask_bytes_dynamic",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "3387:4:4",
"type": ""
},
{
"name": "bytes",
"nodeType": "YulTypedName",
"src": "3393:5:4",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "3403:6:4",
"type": ""
}
],
"src": "3359:169:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3614:214:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3747:37:4",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "3774:4:4"
},
{
"name": "len",
"nodeType": "YulIdentifier",
"src": "3780:3:4"
}
],
"functionName": {
"name": "mask_bytes_dynamic",
"nodeType": "YulIdentifier",
"src": "3755:18:4"
},
"nodeType": "YulFunctionCall",
"src": "3755:29:4"
},
"variableNames": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "3747:4:4"
}
]
},
{
"nodeType": "YulAssignment",
"src": "3793:29:4",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "3804:4:4"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3814:1:4",
"type": "",
"value": "2"
},
{
"name": "len",
"nodeType": "YulIdentifier",
"src": "3817:3:4"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "3810:3:4"
},
"nodeType": "YulFunctionCall",
"src": "3810:11:4"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "3801:2:4"
},
"nodeType": "YulFunctionCall",
"src": "3801:21:4"
},
"variableNames": [
{
"name": "used",
"nodeType": "YulIdentifier",
"src": "3793:4:4"
}
]
}
]
},
"name": "extract_used_part_and_set_length_of_short_byte_array",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "3595:4:4",
"type": ""
},
{
"name": "len",
"nodeType": "YulTypedName",
"src": "3601:3:4",
"type": ""
}
],
"returnVariables": [
{
"name": "used",
"nodeType": "YulTypedName",
"src": "3609:4:4",
"type": ""
}
],
"src": "3533:295:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3925:1303:4",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "3936:51:4",
"value": {
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "3983:3:4"
}
],
"functionName": {
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "3950:32:4"
},
"nodeType": "YulFunctionCall",
"src": "3950:37:4"
},
"variables": [
{
"name": "newLen",
"nodeType": "YulTypedName",
"src": "3940:6:4",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "4072:22:4",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "4074:16:4"
},
"nodeType": "YulFunctionCall",
"src": "4074:18:4"
},
"nodeType": "YulExpressionStatement",
"src": "4074:18:4"
}
]
},
"condition": {
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4044:6:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4052:18:4",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "4041:2:4"
},
"nodeType": "YulFunctionCall",
"src": "4041:30:4"
},
"nodeType": "YulIf",
"src": "4038:56:4"
},
{
"nodeType": "YulVariableDeclaration",
"src": "4104:52:4",
"value": {
"arguments": [
{
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "4150:4:4"
}
],
"functionName": {
"name": "sload",
"nodeType": "YulIdentifier",
"src": "4144:5:4"
},
"nodeType": "YulFunctionCall",
"src": "4144:11:4"
}
],
"functionName": {
"name": "extract_byte_array_length",
"nodeType": "YulIdentifier",
"src": "4118:25:4"
},
"nodeType": "YulFunctionCall",
"src": "4118:38:4"
},
"variables": [
{
"name": "oldLen",
"nodeType": "YulTypedName",
"src": "4108:6:4",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "4249:4:4"
},
{
"name": "oldLen",
"nodeType": "YulIdentifier",
"src": "4255:6:4"
},
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4263:6:4"
}
],
"functionName": {
"name": "clean_up_bytearray_end_slots_t_string_storage",
"nodeType": "YulIdentifier",
"src": "4203:45:4"
},
"nodeType": "YulFunctionCall",
"src": "4203:67:4"
},
"nodeType": "YulExpressionStatement",
"src": "4203:67:4"
},
{
"nodeType": "YulVariableDeclaration",
"src": "4280:18:4",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "4297:1:4",
"type": "",
"value": "0"
},
"variables": [
{
"name": "srcOffset",
"nodeType": "YulTypedName",
"src": "4284:9:4",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "4308:17:4",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "4321:4:4",
"type": "",
"value": "0x20"
},
"variableNames": [
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "4308:9:4"
}
]
},
{
"cases": [
{
"body": {
"nodeType": "YulBlock",
"src": "4372:611:4",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "4386:37:4",
"value": {
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4405:6:4"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4417:4:4",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "4413:3:4"
},
"nodeType": "YulFunctionCall",
"src": "4413:9:4"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4401:3:4"
},
"nodeType": "YulFunctionCall",
"src": "4401:22:4"
},
"variables": [
{
"name": "loopEnd",
"nodeType": "YulTypedName",
"src": "4390:7:4",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "4437:51:4",
"value": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "4483:4:4"
}
],
"functionName": {
"name": "array_dataslot_t_string_storage",
"nodeType": "YulIdentifier",
"src": "4451:31:4"
},
"nodeType": "YulFunctionCall",
"src": "4451:37:4"
},
"variables": [
{
"name": "dstPtr",
"nodeType": "YulTypedName",
"src": "4441:6:4",
"type": ""
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "4501:10:4",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "4510:1:4",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "4505:1:4",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "4569:163:4",
"statements": [
{
"expression": {
"arguments": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "4594:6:4"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "4612:3:4"
},
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "4617:9:4"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4608:3:4"
},
"nodeType": "YulFunctionCall",
"src": "4608:19:4"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "4602:5:4"
},
"nodeType": "YulFunctionCall",
"src": "4602:26:4"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "4587:6:4"
},
"nodeType": "YulFunctionCall",
"src": "4587:42:4"
},
"nodeType": "YulExpressionStatement",
"src": "4587:42:4"
},
{
"nodeType": "YulAssignment",
"src": "4646:24:4",
"value": {
"arguments": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "4660:6:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4668:1:4",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4656:3:4"
},
"nodeType": "YulFunctionCall",
"src": "4656:14:4"
},
"variableNames": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "4646:6:4"
}
]
},
{
"nodeType": "YulAssignment",
"src": "4687:31:4",
"value": {
"arguments": [
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "4704:9:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4715:2:4",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4700:3:4"
},
"nodeType": "YulFunctionCall",
"src": "4700:18:4"
},
"variableNames": [
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "4687:9:4"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4535:1:4"
},
{
"name": "loopEnd",
"nodeType": "YulIdentifier",
"src": "4538:7:4"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "4532:2:4"
},
"nodeType": "YulFunctionCall",
"src": "4532:14:4"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "4547:21:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4549:17:4",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4558:1:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4561:4:4",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4554:3:4"
},
"nodeType": "YulFunctionCall",
"src": "4554:12:4"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "4549:1:4"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "4528:3:4",
"statements": []
},
"src": "4524:208:4"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4768:156:4",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "4786:43:4",
"value": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "4813:3:4"
},
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "4818:9:4"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4809:3:4"
},
"nodeType": "YulFunctionCall",
"src": "4809:19:4"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "4803:5:4"
},
"nodeType": "YulFunctionCall",
"src": "4803:26:4"
},
"variables": [
{
"name": "lastValue",
"nodeType": "YulTypedName",
"src": "4790:9:4",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "dstPtr",
"nodeType": "YulIdentifier",
"src": "4853:6:4"
},
{
"arguments": [
{
"name": "lastValue",
"nodeType": "YulIdentifier",
"src": "4880:9:4"
},
{
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4895:6:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4903:4:4",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4891:3:4"
},
"nodeType": "YulFunctionCall",
"src": "4891:17:4"
}
],
"functionName": {
"name": "mask_bytes_dynamic",
"nodeType": "YulIdentifier",
"src": "4861:18:4"
},
"nodeType": "YulFunctionCall",
"src": "4861:48:4"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "4846:6:4"
},
"nodeType": "YulFunctionCall",
"src": "4846:64:4"
},
"nodeType": "YulExpressionStatement",
"src": "4846:64:4"
}
]
},
"condition": {
"arguments": [
{
"name": "loopEnd",
"nodeType": "YulIdentifier",
"src": "4751:7:4"
},
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4760:6:4"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "4748:2:4"
},
"nodeType": "YulFunctionCall",
"src": "4748:19:4"
},
"nodeType": "YulIf",
"src": "4745:179:4"
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "4944:4:4"
},
{
"arguments": [
{
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4958:6:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4966:1:4",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "mul",
"nodeType": "YulIdentifier",
"src": "4954:3:4"
},
"nodeType": "YulFunctionCall",
"src": "4954:14:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4970:1:4",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4950:3:4"
},
"nodeType": "YulFunctionCall",
"src": "4950:22:4"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "4937:6:4"
},
"nodeType": "YulFunctionCall",
"src": "4937:36:4"
},
"nodeType": "YulExpressionStatement",
"src": "4937:36:4"
}
]
},
"nodeType": "YulCase",
"src": "4365:618:4",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "4370:1:4",
"type": "",
"value": "1"
}
},
{
"body": {
"nodeType": "YulBlock",
"src": "5000:222:4",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "5014:14:4",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "5027:1:4",
"type": "",
"value": "0"
},
"variables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5018:5:4",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "5051:67:4",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5069:35:4",
"value": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "5088:3:4"
},
{
"name": "srcOffset",
"nodeType": "YulIdentifier",
"src": "5093:9:4"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5084:3:4"
},
"nodeType": "YulFunctionCall",
"src": "5084:19:4"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "5078:5:4"
},
"nodeType": "YulFunctionCall",
"src": "5078:26:4"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5069:5:4"
}
]
}
]
},
"condition": {
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "5044:6:4"
},
"nodeType": "YulIf",
"src": "5041:77:4"
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nodeType": "YulIdentifier",
"src": "5138:4:4"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5197:5:4"
},
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "5204:6:4"
}
],
"functionName": {
"name": "extract_used_part_and_set_length_of_short_byte_array",
"nodeType": "YulIdentifier",
"src": "5144:52:4"
},
"nodeType": "YulFunctionCall",
"src": "5144:67:4"
}
],
"functionName": {
"name": "sstore",
"nodeType": "YulIdentifier",
"src": "5131:6:4"
},
"nodeType": "YulFunctionCall",
"src": "5131:81:4"
},
"nodeType": "YulExpressionStatement",
"src": "5131:81:4"
}
]
},
"nodeType": "YulCase",
"src": "4992:230:4",
"value": "default"
}
],
"expression": {
"arguments": [
{
"name": "newLen",
"nodeType": "YulIdentifier",
"src": "4345:6:4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4353:2:4",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "4342:2:4"
},
"nodeType": "YulFunctionCall",
"src": "4342:14:4"
},
"nodeType": "YulSwitch",
"src": "4335:887:4"
}
]
},
"name": "copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "slot",
"nodeType": "YulTypedName",
"src": "3914:4:4",
"type": ""
},
{
"name": "src",
"nodeType": "YulTypedName",
"src": "3920:3:4",
"type": ""
}
],
"src": "3833:1395:4"
}
]
},
"contents": "{\n\n function array_length_t_string_memory_ptr(value) -> length {\n\n length := mload(value)\n\n }\n\n function panic_error_0x41() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n\n function panic_error_0x22() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n\n function extract_byte_array_length(data) -> length {\n length := div(data, 2)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) {\n length := and(length, 0x7f)\n }\n\n if eq(outOfPlaceEncoding, lt(length, 32)) {\n panic_error_0x22()\n }\n }\n\n function array_dataslot_t_string_storage(ptr) -> data {\n data := ptr\n\n mstore(0, ptr)\n data := keccak256(0, 0x20)\n\n }\n\n function divide_by_32_ceil(value) -> result {\n result := div(add(value, 31), 32)\n }\n\n function shift_left_dynamic(bits, value) -> newValue {\n newValue :=\n\n shl(bits, value)\n\n }\n\n function update_byte_slice_dynamic32(value, shiftBytes, toInsert) -> result {\n let shiftBits := mul(shiftBytes, 8)\n let mask := shift_left_dynamic(shiftBits, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)\n toInsert := shift_left_dynamic(shiftBits, toInsert)\n value := and(value, not(mask))\n result := or(value, and(toInsert, mask))\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function identity(value) -> ret {\n ret := value\n }\n\n function convert_t_uint256_to_t_uint256(value) -> converted {\n converted := cleanup_t_uint256(identity(cleanup_t_uint256(value)))\n }\n\n function prepare_store_t_uint256(value) -> ret {\n ret := value\n }\n\n function update_storage_value_t_uint256_to_t_uint256(slot, offset, value_0) {\n let convertedValue_0 := convert_t_uint256_to_t_uint256(value_0)\n sstore(slot, update_byte_slice_dynamic32(sload(slot), offset, prepare_store_t_uint256(convertedValue_0)))\n }\n\n function zero_value_for_split_t_uint256() -> ret {\n ret := 0\n }\n\n function storage_set_to_zero_t_uint256(slot, offset) {\n let zero_0 := zero_value_for_split_t_uint256()\n update_storage_value_t_uint256_to_t_uint256(slot, offset, zero_0)\n }\n\n function clear_storage_range_t_bytes1(start, end) {\n for {} lt(start, end) { start := add(start, 1) }\n {\n storage_set_to_zero_t_uint256(start, 0)\n }\n }\n\n function clean_up_bytearray_end_slots_t_string_storage(array, len, startIndex) {\n\n if gt(len, 31) {\n let dataArea := array_dataslot_t_string_storage(array)\n let deleteStart := add(dataArea, divide_by_32_ceil(startIndex))\n // If we are clearing array to be short byte array, we want to clear only data starting from array data area.\n if lt(startIndex, 32) { deleteStart := dataArea }\n clear_storage_range_t_bytes1(deleteStart, add(dataArea, divide_by_32_ceil(len)))\n }\n\n }\n\n function shift_right_unsigned_dynamic(bits, value) -> newValue {\n newValue :=\n\n shr(bits, value)\n\n }\n\n function mask_bytes_dynamic(data, bytes) -> result {\n let mask := not(shift_right_unsigned_dynamic(mul(8, bytes), not(0)))\n result := and(data, mask)\n }\n function extract_used_part_and_set_length_of_short_byte_array(data, len) -> used {\n // we want to save only elements that are part of the array after resizing\n // others should be set to zero\n data := mask_bytes_dynamic(data, len)\n used := or(data, mul(2, len))\n }\n function copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage(slot, src) {\n\n let newLen := array_length_t_string_memory_ptr(src)\n // Make sure array length is sane\n if gt(newLen, 0xffffffffffffffff) { panic_error_0x41() }\n\n let oldLen := extract_byte_array_length(sload(slot))\n\n // potentially truncate data\n clean_up_bytearray_end_slots_t_string_storage(slot, oldLen, newLen)\n\n let srcOffset := 0\n\n srcOffset := 0x20\n\n switch gt(newLen, 31)\n case 1 {\n let loopEnd := and(newLen, not(0x1f))\n\n let dstPtr := array_dataslot_t_string_storage(slot)\n let i := 0\n for { } lt(i, loopEnd) { i := add(i, 0x20) } {\n sstore(dstPtr, mload(add(src, srcOffset)))\n dstPtr := add(dstPtr, 1)\n srcOffset := add(srcOffset, 32)\n }\n if lt(loopEnd, newLen) {\n let lastValue := mload(add(src, srcOffset))\n sstore(dstPtr, mask_bytes_dynamic(lastValue, and(newLen, 0x1f)))\n }\n sstore(slot, add(mul(newLen, 2), 1))\n }\n default {\n let value := 0\n if newLen {\n value := mload(add(src, srcOffset))\n }\n sstore(slot, extract_used_part_and_set_length_of_short_byte_array(value, newLen))\n }\n }\n\n}\n",
"id": 4,
"language": "Yul",
"name": "#utility.yul"
}
],
"linkReferences": {},
"object": "60806040526040518060400160405280600581526020017f76616c75650000000000000000000000000000000000000000000000000000008152505f90816100479190610293565b50348015610053575f80fd5b50610362565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806100d457607f821691505b6020821081036100e7576100e6610090565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026101497fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261010e565b610153868361010e565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f61019761019261018d8461016b565b610174565b61016b565b9050919050565b5f819050919050565b6101b08361017d565b6101c46101bc8261019e565b84845461011a565b825550505050565b5f90565b6101d86101cc565b6101e38184846101a7565b505050565b5b81811015610206576101fb5f826101d0565b6001810190506101e9565b5050565b601f82111561024b5761021c816100ed565b610225846100ff565b81016020851015610234578190505b610248610240856100ff565b8301826101e8565b50505b505050565b5f82821c905092915050565b5f61026b5f1984600802610250565b1980831691505092915050565b5f610283838361025c565b9150826002028217905092915050565b61029c82610059565b67ffffffffffffffff8111156102b5576102b4610063565b5b6102bf82546100bd565b6102ca82828561020a565b5f60209050601f8311600181146102fb575f84156102e9578287015190505b6102f38582610278565b86555061035a565b601f198416610309866100ed565b5f5b828110156103305784890151825560018201915060208501945060208101905061030b565b8683101561034d5784890151610349601f89168261025c565b8355505b6001600288020188555050505b505050505050565b611e6f8061036f5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063775c300c1461002d575b5f80fd5b61003561004b565b6040516100429190610169565b60405180910390f35b5f80604051610059906100e2565b604051809103905ff080158015610072573d5f803e3d5ffd5b5090508073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b336040518263ffffffff1660e01b81526004016100ae91906101a2565b5f604051808303815f87803b1580156100c5575f80fd5b505af11580156100d7573d5f803e3d5ffd5b505050508091505090565b611c7e806101bc83390190565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61013161012c610127846100ef565b61010e565b6100ef565b9050919050565b5f61014282610117565b9050919050565b5f61015382610138565b9050919050565b61016381610149565b82525050565b5f60208201905061017c5f83018461015a565b92915050565b5f61018c826100ef565b9050919050565b61019c81610182565b82525050565b5f6020820190506101b55f830184610193565b9291505056fe60806040526040518060400160405280600581526020017f76616c7565000000000000000000000000000000000000000000000000000000815250600190816200004a91906200040e565b5060016004553480156200005c575f80fd5b50335f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000d1575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000c8919062000535565b60405180910390fd5b620000e281620000e960201b60201c565b5062000550565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200022657607f821691505b6020821081036200023c576200023b620001e1565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620002a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000263565b620002ac868362000263565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f620002f6620002f0620002ea84620002c4565b620002cd565b620002c4565b9050919050565b5f819050919050565b6200031183620002d6565b620003296200032082620002fd565b8484546200026f565b825550505050565b5f90565b6200033f62000331565b6200034c81848462000306565b505050565b5b818110156200037357620003675f8262000335565b60018101905062000352565b5050565b601f821115620003c2576200038c8162000242565b620003978462000254565b81016020851015620003a7578190505b620003bf620003b68562000254565b83018262000351565b50505b505050565b5f82821c905092915050565b5f620003e45f1984600802620003c7565b1980831691505092915050565b5f620003fe8383620003d3565b9150826002028217905092915050565b6200041982620001aa565b67ffffffffffffffff811115620004355762000434620001b4565b5b6200044182546200020e565b6200044e82828562000377565b5f60209050601f83116001811462000484575f84156200046f578287015190505b6200047b8582620003f1565b865550620004ea565b601f198416620004948662000242565b5f5b82811015620004bd5784890151825560018201915060208501945060208101905062000496565b86831015620004dd5784890151620004d9601f891682620003d3565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200051d82620004f2565b9050919050565b6200052f8162000511565b82525050565b5f6020820190506200054a5f83018462000524565b92915050565b611720806200055e5f395ff3fe608060405234801561000f575f80fd5b506004361061007b575f3560e01c8063b9ed6fca11610059578063b9ed6fca146100c3578063e6505e1e146100df578063ef1d6ddd1461010f578063f2fde38b1461012d5761007b565b80633f06f6e81461007f578063715018a61461009b5780638da5cb5b146100a5575b5f80fd5b61009960048036038101906100949190610cfe565b610149565b005b6100a36102fd565b005b6100ad610310565b6040516100ba9190610ded565b60405180910390f35b6100dd60048036038101906100d89190610e39565b610337565b005b6100f960048036038101906100f49190610e39565b610515565b6040516101069190611013565b60405180910390f35b61011761075c565b604051610124919061115c565b60405180910390f35b610147600480360381019061014291906111a6565b610937565b005b6101516109bb565b60026040518060800160405280600454815260200188888080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f82011690508083019250505050505050815260200186868080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f8201169050808301925050505050505081526020018484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f82011690508083019250505050505050815250908060018154018082558091505060019003905f5260205f2090600402015f909190919091505f820151815f0155602082015181600101908161027f91906113f8565b50604082015181600201908161029591906113f8565b5060608201518160030190805190602001906102b2929190610b0a565b50505060016002805490506102c791906114f4565b60035f60045481526020019081526020015f208190555060045f8154809291906102f090611527565b9190505550505050505050565b6103056109bb565b61030e5f610a42565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61033f6109bb565b5f60035f8381526020019081526020015f205490506002805490508110158061038a575081600282815481106103785761037761156e565b5b905f5260205f2090600402015f015414155b156103cc57816040517ff55dec000000000000000000000000000000000000000000000000000000000081526004016103c391906115aa565b60405180910390fd5b600260016002805490506103e091906114f4565b815481106103f1576103f061156e565b5b905f5260205f209060040201600282815481106104115761041061156e565b5b905f5260205f2090600402015f820154815f01556001820181600101908161043991906115d8565b506002820181600201908161044e91906115d8565b506003820181600301908054610465929190610b55565b509050508060035f600284815481106104815761048061156e565b5b905f5260205f2090600402015f015481526020019081526020015f208190555060028054806104b3576104b26116bd565b5b600190038181905f5260205f2090600402015f8082015f9055600182015f6104db9190610ba3565b600282015f6104ea9190610ba3565b600382015f6104f99190610be0565b5050905560035f8381526020019081526020015f205f90555050565b61051d610bfe565b5f60035f8481526020019081526020015f2054905060028054905081101580610568575082600282815481106105565761055561156e565b5b905f5260205f2090600402015f015414155b156105aa57826040517ff55dec000000000000000000000000000000000000000000000000000000000081526004016105a191906115aa565b60405180910390fd5b600281815481106105be576105bd61156e565b5b905f5260205f2090600402016040518060800160405290815f82015481526020016001820180546105ee9061122b565b80601f016020809104026020016040519081016040528092919081815260200182805461061a9061122b565b80156106655780601f1061063c57610100808354040283529160200191610665565b820191905f5260205f20905b81548152906001019060200180831161064857829003601f168201915b5050505050815260200160028201805461067e9061122b565b80601f01602080910402602001604051908101604052809291908181526020018280546106aa9061122b565b80156106f55780601f106106cc576101008083540402835291602001916106f5565b820191905f5260205f20905b8154815290600101906020018083116106d857829003601f168201915b505050505081526020016003820180548060200260200160405190810160405280929190818152602001828054801561074b57602002820191905f5260205f20905b815481526020019060010190808311610737575b505050505081525050915050919050565b60606002805480602002602001604051908101604052809291908181526020015f905b8282101561092e578382905f5260205f2090600402016040518060800160405290815f82015481526020016001820180546107b99061122b565b80601f01602080910402602001604051908101604052809291908181526020018280546107e59061122b565b80156108305780601f1061080757610100808354040283529160200191610830565b820191905f5260205f20905b81548152906001019060200180831161081357829003601f168201915b505050505081526020016002820180546108499061122b565b80601f01602080910402602001604051908101604052809291908181526020018280546108759061122b565b80156108c05780601f10610897576101008083540402835291602001916108c0565b820191905f5260205f20905b8154815290600101906020018083116108a357829003601f168201915b505050505081526020016003820180548060200260200160405190810160405280929190818152602001828054801561091657602002820191905f5260205f20905b815481526020019060010190808311610902575b5050505050815250508152602001906001019061077f565b50505050905090565b61093f6109bb565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109af575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016109a69190610ded565b60405180910390fd5b6109b881610a42565b50565b6109c3610b03565b73ffffffffffffffffffffffffffffffffffffffff166109e1610310565b73ffffffffffffffffffffffffffffffffffffffff1614610a4057610a04610b03565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a379190610ded565b60405180910390fd5b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b828054828255905f5260205f20908101928215610b44579160200282015b82811115610b43578251825591602001919060010190610b28565b5b509050610b519190610c25565b5090565b828054828255905f5260205f20908101928215610b92575f5260205f209182015b82811115610b91578254825591600101919060010190610b76565b5b509050610b9f9190610c25565b5090565b508054610baf9061122b565b5f825580601f10610bc05750610bdd565b601f0160209004905f5260205f2090810190610bdc9190610c25565b5b50565b5080545f8255905f5260205f2090810190610bfb9190610c25565b50565b60405180608001604052805f81526020016060815260200160608152602001606081525090565b5b80821115610c3c575f815f905550600101610c26565b5090565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112610c6957610c68610c48565b5b8235905067ffffffffffffffff811115610c8657610c85610c4c565b5b602083019150836001820283011115610ca257610ca1610c50565b5b92509290505
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment