Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jether2011/9c174b70b7a752cb2ede46e53cebdbf7 to your computer and use it in GitHub Desktop.
Save jether2011/9c174b70b7a752cb2ede46e53cebdbf7 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.19+commit.7dd6d404.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol)
pragma solidity ^0.8.20;
import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {ERC165} from "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```solidity
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```solidity
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
* to enforce additional security measures for this role.
*/
abstract contract AccessControl is Context, IAccessControl, ERC165 {
struct RoleData {
mapping(address account => bool) hasRole;
bytes32 adminRole;
}
mapping(bytes32 role => RoleData) private _roles;
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with an {AccessControlUnauthorizedAccount} error including the required role.
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual returns (bool) {
return _roles[role].hasRole[account];
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
* is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
* is missing `role`.
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert AccessControlUnauthorizedAccount(account, role);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
return _roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address callerConfirmation) public virtual {
if (callerConfirmation != _msgSender()) {
revert AccessControlBadConfirmation();
}
_revokeRole(role, callerConfirmation);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
bytes32 previousAdminRole = getRoleAdmin(role);
_roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
if (!hasRole(role, account)) {
_roles[role].hasRole[account] = true;
emit RoleGranted(role, account, _msgSender());
return true;
} else {
return false;
}
}
/**
* @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
if (hasRole(role, account)) {
_roles[role].hasRole[account] = false;
emit RoleRevoked(role, account, _msgSender());
return true;
} else {
return false;
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol)
pragma solidity ^0.8.20;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev The `account` is missing a role.
*/
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);
/**
* @dev The caller of a function is not the expected one.
*
* NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
*/
error AccessControlBadConfirmation();
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted signaling this.
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call, an admin role
* bearer except when using {AccessControl-_setupRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*/
function renounceRole(bytes32 role, address callerConfirmation) external;
}
// 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) (interfaces/IERC5267.sol)
pragma solidity ^0.8.20;
interface IERC5267 {
/**
* @dev MAY be emitted to signal that the domain could have changed.
*/
event EIP712DomainChanged();
/**
* @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
* signature.
*/
function eip712Domain()
external
view
returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
);
}
// 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/ERC20Permit.sol)
pragma solidity ^0.8.20;
import {IERC20Permit} from "./IERC20Permit.sol";
import {ERC20} from "../ERC20.sol";
import {ECDSA} from "../../../utils/cryptography/ECDSA.sol";
import {EIP712} from "../../../utils/cryptography/EIP712.sol";
import {Nonces} from "../../../utils/Nonces.sol";
/**
* @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712, Nonces {
bytes32 private constant PERMIT_TYPEHASH =
keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
/**
* @dev Permit deadline has expired.
*/
error ERC2612ExpiredSignature(uint256 deadline);
/**
* @dev Mismatched signature.
*/
error ERC2612InvalidSigner(address signer, address owner);
/**
* @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
*
* It's a good idea to use the same `name` that is defined as the ERC20 token name.
*/
constructor(string memory name) EIP712(name, "1") {}
/**
* @inheritdoc IERC20Permit
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) public virtual {
if (block.timestamp > deadline) {
revert ERC2612ExpiredSignature(deadline);
}
bytes32 structHash = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));
bytes32 hash = _hashTypedDataV4(structHash);
address signer = ECDSA.recover(hash, v, r, s);
if (signer != owner) {
revert ERC2612InvalidSigner(signer, owner);
}
_approve(owner, spender, value);
}
/**
* @inheritdoc IERC20Permit
*/
function nonces(address owner) public view virtual override(IERC20Permit, Nonces) returns (uint256) {
return super.nonces(owner);
}
/**
* @inheritdoc IERC20Permit
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view virtual returns (bytes32) {
return _domainSeparatorV4();
}
}
// 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/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated 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.0) (utils/Base64.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides a set of functions to operate with Base64 strings.
*/
library Base64 {
/**
* @dev Base64 Encoding/Decoding Table
*/
string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/**
* @dev Converts a `bytes` to its Bytes64 `string` representation.
*/
function encode(bytes memory data) internal pure returns (string memory) {
/**
* Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
* https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
*/
if (data.length == 0) return "";
// Loads the table into memory
string memory table = _TABLE;
// Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
// and split into 4 numbers of 6 bits.
// The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
// - `data.length + 2` -> Round up
// - `/ 3` -> Number of 3-bytes chunks
// - `4 *` -> 4 characters for each chunk
string memory result = new string(4 * ((data.length + 2) / 3));
/// @solidity memory-safe-assembly
assembly {
// Prepare the lookup table (skip the first "length" byte)
let tablePtr := add(table, 1)
// Prepare result pointer, jump over length
let resultPtr := add(result, 32)
// Run over the input, 3 bytes at a time
for {
let dataPtr := data
let endPtr := add(data, mload(data))
} lt(dataPtr, endPtr) {
} {
// Advance 3 bytes
dataPtr := add(dataPtr, 3)
let input := mload(dataPtr)
// To write each character, shift the 3 bytes (18 bits) chunk
// 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
// and apply logical AND with 0x3F which is the number of
// the previous character in the ASCII table prior to the Base64 Table
// The result is then added to the table to get the character to write,
// and finally write it in the result pointer but with a left shift
// of 256 (1 byte) - 8 (1 ASCII char) = 248 bits
mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
resultPtr := add(resultPtr, 1) // Advance
}
// When data `bytes` is not exactly 3 bytes long
// it is padded with `=` characters at the end
switch mod(mload(data), 3)
case 1 {
mstore8(sub(resultPtr, 1), 0x3d)
mstore8(sub(resultPtr, 2), 0x3d)
}
case 2 {
mstore8(sub(resultPtr, 1), 0x3d)
}
}
return result;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (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;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.20;
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS
}
/**
* @dev The signature derives the `address(0)`.
*/
error ECDSAInvalidSignature();
/**
* @dev The signature has an invalid length.
*/
error ECDSAInvalidSignatureLength(uint256 length);
/**
* @dev The signature has an S value that is in the upper half order.
*/
error ECDSAInvalidSignatureS(bytes32 s);
/**
* @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not
* return address(0) without also returning an error description. Errors are documented using an enum (error type)
* and a bytes32 providing additional information about the error.
*
* If no error is returned, then the address can be used for verification purposes.
*
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
/// @solidity memory-safe-assembly
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else {
return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*/
function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
unchecked {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
// We do not check for an overflow here since the shift operation results in 0 or 1.
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*/
function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError, bytes32) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS, s);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature, bytes32(0));
}
return (signer, RecoverError.NoError, bytes32(0));
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
*/
function _throwError(RecoverError error, bytes32 errorArg) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert ECDSAInvalidSignature();
} else if (error == RecoverError.InvalidSignatureLength) {
revert ECDSAInvalidSignatureLength(uint256(errorArg));
} else if (error == RecoverError.InvalidSignatureS) {
revert ECDSAInvalidSignatureS(errorArg);
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/EIP712.sol)
pragma solidity ^0.8.20;
import {MessageHashUtils} from "./MessageHashUtils.sol";
import {ShortStrings, ShortString} from "../ShortStrings.sol";
import {IERC5267} from "../../interfaces/IERC5267.sol";
/**
* @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
*
* The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose
* encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract
* does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to
* produce the hash of their typed data using a combination of `abi.encode` and `keccak256`.
*
* This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
* scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
* ({_hashTypedDataV4}).
*
* The implementation of the domain separator was designed to be as efficient as possible while still properly updating
* the chain id to protect against replay attacks on an eventual fork of the chain.
*
* NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
* https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
*
* NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
* separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the
* separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
*
* @custom:oz-upgrades-unsafe-allow state-variable-immutable
*/
abstract contract EIP712 is IERC5267 {
using ShortStrings for *;
bytes32 private constant TYPE_HASH =
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
// Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
// invalidate the cached domain separator if the chain id changes.
bytes32 private immutable _cachedDomainSeparator;
uint256 private immutable _cachedChainId;
address private immutable _cachedThis;
bytes32 private immutable _hashedName;
bytes32 private immutable _hashedVersion;
ShortString private immutable _name;
ShortString private immutable _version;
string private _nameFallback;
string private _versionFallback;
/**
* @dev Initializes the domain separator and parameter caches.
*
* The meaning of `name` and `version` is specified in
* https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
*
* - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
* - `version`: the current major version of the signing domain.
*
* NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
* contract upgrade].
*/
constructor(string memory name, string memory version) {
_name = name.toShortStringWithFallback(_nameFallback);
_version = version.toShortStringWithFallback(_versionFallback);
_hashedName = keccak256(bytes(name));
_hashedVersion = keccak256(bytes(version));
_cachedChainId = block.chainid;
_cachedDomainSeparator = _buildDomainSeparator();
_cachedThis = address(this);
}
/**
* @dev Returns the domain separator for the current chain.
*/
function _domainSeparatorV4() internal view returns (bytes32) {
if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
return _cachedDomainSeparator;
} else {
return _buildDomainSeparator();
}
}
function _buildDomainSeparator() private view returns (bytes32) {
return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
}
/**
* @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
* function returns the hash of the fully encoded EIP712 message for this domain.
*
* This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
*
* ```solidity
* bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
* keccak256("Mail(address to,string contents)"),
* mailTo,
* keccak256(bytes(mailContents))
* )));
* address signer = ECDSA.recover(digest, signature);
* ```
*/
function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);
}
/**
* @dev See {IERC-5267}.
*/
function eip712Domain()
public
view
virtual
returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
)
{
return (
hex"0f", // 01111
_EIP712Name(),
_EIP712Version(),
block.chainid,
address(this),
bytes32(0),
new uint256[](0)
);
}
/**
* @dev The name parameter for the EIP712 domain.
*
* NOTE: By default this function reads _name which is an immutable value.
* It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
*/
// solhint-disable-next-line func-name-mixedcase
function _EIP712Name() internal view returns (string memory) {
return _name.toStringWithFallback(_nameFallback);
}
/**
* @dev The version parameter for the EIP712 domain.
*
* NOTE: By default this function reads _version which is an immutable value.
* It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
*/
// solhint-disable-next-line func-name-mixedcase
function _EIP712Version() internal view returns (string memory) {
return _version.toStringWithFallback(_versionFallback);
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)
pragma solidity ^0.8.20;
import {Strings} from "../Strings.sol";
/**
* @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
*
* The library provides methods for generating a hash of a message that conforms to the
* https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
* specifications.
*/
library MessageHashUtils {
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x45` (`personal_sign` messages).
*
* The digest is calculated by prefixing a bytes32 `messageHash` with
* `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
*
* NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
* keccak256, although any bytes32 value can be safely used because the final digest will
* be re-hashed.
*
* See {ECDSA-recover}.
*/
function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
}
}
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x45` (`personal_sign` messages).
*
* The digest is calculated by prefixing an arbitrary `message` with
* `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
*
* See {ECDSA-recover}.
*/
function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
return
keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
}
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x00` (data with intended validator).
*
* The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
* `validator` address. Then hashing the result.
*
* See {ECDSA-recover}.
*/
function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
return keccak256(abi.encodePacked(hex"19_00", validator, data));
}
/**
* @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).
*
* The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
* `\x19\x01` and hashing the result. It corresponds to the hash signed by the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
*
* See {ECDSA-recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
/// @solidity memory-safe-assembly
assembly {
let ptr := mload(0x40)
mstore(ptr, hex"19_01")
mstore(add(ptr, 0x02), domainSeparator)
mstore(add(ptr, 0x22), structHash)
digest := keccak256(ptr, 0x42)
}
}
}
// 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 ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*/
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 ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Muldiv operation overflow.
*/
error MathOverflowedMulDiv();
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 overflow flag.
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
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 division by zero flag.
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds 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.
return a / b;
}
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
* denominator == 0.
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
* Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0 = 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^256. Also prevents denominator == 0.
if (denominator <= prod1) {
revert MathOverflowedMulDiv();
}
///////////////////////////////////////////////
// 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^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
// works in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
* towards zero.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
}
}
/**
* @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;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
}
}
/**
* @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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
}
}
/**
* @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;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
}
}
/**
* @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/SignedMath.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Nonces.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides tracking nonces for addresses. Nonces will only increment.
*/
abstract contract Nonces {
/**
* @dev The nonce used for an `account` is not the expected current nonce.
*/
error InvalidAccountNonce(address account, uint256 currentNonce);
mapping(address account => uint256) private _nonces;
/**
* @dev Returns the next unused nonce for an address.
*/
function nonces(address owner) public view virtual returns (uint256) {
return _nonces[owner];
}
/**
* @dev Consumes a nonce.
*
* Returns the current value and increments nonce.
*/
function _useNonce(address owner) internal virtual returns (uint256) {
// For each account, the nonce has an initial value of 0, can only be incremented by one, and cannot be
// decremented or reset. This guarantees that the nonce never overflows.
unchecked {
// It is important to do x++ and not ++x here.
return _nonces[owner]++;
}
}
/**
* @dev Same as {_useNonce} but checking that `nonce` is the next valid for `owner`.
*/
function _useCheckedNonce(address owner, uint256 nonce) internal virtual {
uint256 current = _useNonce(owner);
if (nonce != current) {
revert InvalidAccountNonce(owner, current);
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ShortStrings.sol)
pragma solidity ^0.8.20;
import {StorageSlot} from "./StorageSlot.sol";
// | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
// | length | 0x BB |
type ShortString is bytes32;
/**
* @dev This library provides functions to convert short memory strings
* into a `ShortString` type that can be used as an immutable variable.
*
* Strings of arbitrary length can be optimized using this library if
* they are short enough (up to 31 bytes) by packing them with their
* length (1 byte) in a single EVM word (32 bytes). Additionally, a
* fallback mechanism can be used for every other case.
*
* Usage example:
*
* ```solidity
* contract Named {
* using ShortStrings for *;
*
* ShortString private immutable _name;
* string private _nameFallback;
*
* constructor(string memory contractName) {
* _name = contractName.toShortStringWithFallback(_nameFallback);
* }
*
* function name() external view returns (string memory) {
* return _name.toStringWithFallback(_nameFallback);
* }
* }
* ```
*/
library ShortStrings {
// Used as an identifier for strings longer than 31 bytes.
bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;
error StringTooLong(string str);
error InvalidShortString();
/**
* @dev Encode a string of at most 31 chars into a `ShortString`.
*
* This will trigger a `StringTooLong` error is the input string is too long.
*/
function toShortString(string memory str) internal pure returns (ShortString) {
bytes memory bstr = bytes(str);
if (bstr.length > 31) {
revert StringTooLong(str);
}
return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
}
/**
* @dev Decode a `ShortString` back to a "normal" string.
*/
function toString(ShortString sstr) internal pure returns (string memory) {
uint256 len = byteLength(sstr);
// using `new string(len)` would work locally but is not memory safe.
string memory str = new string(32);
/// @solidity memory-safe-assembly
assembly {
mstore(str, len)
mstore(add(str, 0x20), sstr)
}
return str;
}
/**
* @dev Return the length of a `ShortString`.
*/
function byteLength(ShortString sstr) internal pure returns (uint256) {
uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
if (result > 31) {
revert InvalidShortString();
}
return result;
}
/**
* @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
*/
function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
if (bytes(value).length < 32) {
return toShortString(value);
} else {
StorageSlot.getStringSlot(store).value = value;
return ShortString.wrap(FALLBACK_SENTINEL);
}
}
/**
* @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
*/
function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
return toString(value);
} else {
return store;
}
}
/**
* @dev Return the length of a string that was encoded to `ShortString` or written to storage using
* {setWithFallback}.
*
* WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
* actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
*/
function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
return byteLength(value);
} else {
return bytes(store).length;
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
pragma solidity ^0.8.20;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```solidity
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(newImplementation.code.length > 0);
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
bytes value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` representation of the string storage pointer `store`.
*/
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
/**
* @dev Returns an `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
*/
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
}
// 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 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 v4.6.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overridden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), 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 virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)
pragma solidity ^0.8.0;
import "../ERC721.sol";
/**
* @dev ERC721 token with storage based token URI management.
*/
abstract contract ERC721URIStorage is ERC721 {
using Strings for uint256;
// Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs;
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");
string memory _tokenURI = _tokenURIs[tokenId];
string memory base = _baseURI();
// If there is no base URI, return the token URI.
if (bytes(base).length == 0) {
return _tokenURI;
}
// If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
if (bytes(_tokenURI).length > 0) {
return string(abi.encodePacked(base, _tokenURI));
}
return super.tokenURI(tokenId);
}
/**
* @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
_tokenURIs[tokenId] = _tokenURI;
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual override {
super._burn(tokenId);
if (bytes(_tokenURIs[tokenId]).length != 0) {
delete _tokenURIs[tokenId];
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be 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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
// 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.
{
"id": "59b6e944b9030a6f4d479e8d1527d870",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.22",
"solcLongVersion": "0.8.22+commit.4fc1097e",
"input": {
"language": "Solidity",
"sources": {
"TokenTransferFujiToSepolia.sol": {
"content": ""
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
}
}
},
"output": {
"errors": [
{
"component": "general",
"errorCode": "1878",
"formattedMessage": "Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.\n--> TokenTransferFujiToSepolia.sol\n\n",
"message": "SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.",
"severity": "warning",
"sourceLocation": {
"end": -1,
"file": "TokenTransferFujiToSepolia.sol",
"start": -1
},
"type": "Warning"
},
{
"component": "general",
"errorCode": "3420",
"formattedMessage": "Warning: Source file does not specify required compiler version! Consider adding \"pragma solidity ^0.8.22;\"\n--> TokenTransferFujiToSepolia.sol\n\n",
"message": "Source file does not specify required compiler version! Consider adding \"pragma solidity ^0.8.22;\"",
"severity": "warning",
"sourceLocation": {
"end": -1,
"file": "TokenTransferFujiToSepolia.sol",
"start": -1
},
"type": "Warning"
}
],
"sources": {
"TokenTransferFujiToSepolia.sol": {
"ast": {
"absolutePath": "TokenTransferFujiToSepolia.sol",
"exportedSymbols": {},
"id": 1,
"nodeType": "SourceUnit",
"nodes": [],
"src": "0:0:0"
},
"id": 0
}
}
}
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"goerli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"functionDebugData": {
"@_71": {
"entryPoint": null,
"id": 71,
"parameterSlots": 1,
"returnSlots": 0
},
"abi_decode_available_length_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory": {
"entryPoint": 633,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_decode_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory": {
"entryPoint": 748,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_t_bytes32_fromMemory": {
"entryPoint": 611,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory": {
"entryPoint": 798,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"allocate_memory": {
"entryPoint": 497,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": 361,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_allocation_size_t_array$_t_bytes32_$dyn_memory_ptr": {
"entryPoint": 527,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_bytes32": {
"entryPoint": 577,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"finalize_allocation": {
"entryPoint": 443,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"panic_error_0x32": {
"entryPoint": 877,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x41": {
"entryPoint": 398,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d": {
"entryPoint": 378,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef": {
"entryPoint": 573,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": 374,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 370,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"round_up_to_mul_of_32": {
"entryPoint": 382,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"validator_revert_t_bytes32": {
"entryPoint": 586,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nativeSrc": "0:3879:1",
"nodeType": "YulBlock",
"src": "0:3879:1",
"statements": [
{
"body": {
"nativeSrc": "47:35:1",
"nodeType": "YulBlock",
"src": "47:35:1",
"statements": [
{
"nativeSrc": "57:19:1",
"nodeType": "YulAssignment",
"src": "57:19:1",
"value": {
"arguments": [
{
"kind": "number",
"nativeSrc": "73:2:1",
"nodeType": "YulLiteral",
"src": "73:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "67:5:1",
"nodeType": "YulIdentifier",
"src": "67:5:1"
},
"nativeSrc": "67:9:1",
"nodeType": "YulFunctionCall",
"src": "67:9:1"
},
"variableNames": [
{
"name": "memPtr",
"nativeSrc": "57:6:1",
"nodeType": "YulIdentifier",
"src": "57:6:1"
}
]
}
]
},
"name": "allocate_unbounded",
"nativeSrc": "7:75:1",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nativeSrc": "40:6:1",
"nodeType": "YulTypedName",
"src": "40:6:1",
"type": ""
}
],
"src": "7:75:1"
},
{
"body": {
"nativeSrc": "177:28:1",
"nodeType": "YulBlock",
"src": "177:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "194:1:1",
"nodeType": "YulLiteral",
"src": "194:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "197:1:1",
"nodeType": "YulLiteral",
"src": "197:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "187:6:1",
"nodeType": "YulIdentifier",
"src": "187:6:1"
},
"nativeSrc": "187:12:1",
"nodeType": "YulFunctionCall",
"src": "187:12:1"
},
"nativeSrc": "187:12:1",
"nodeType": "YulExpressionStatement",
"src": "187:12:1"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nativeSrc": "88:117:1",
"nodeType": "YulFunctionDefinition",
"src": "88:117:1"
},
{
"body": {
"nativeSrc": "300:28:1",
"nodeType": "YulBlock",
"src": "300:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "317:1:1",
"nodeType": "YulLiteral",
"src": "317:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "320:1:1",
"nodeType": "YulLiteral",
"src": "320:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "310:6:1",
"nodeType": "YulIdentifier",
"src": "310:6:1"
},
"nativeSrc": "310:12:1",
"nodeType": "YulFunctionCall",
"src": "310:12:1"
},
"nativeSrc": "310:12:1",
"nodeType": "YulExpressionStatement",
"src": "310:12:1"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nativeSrc": "211:117:1",
"nodeType": "YulFunctionDefinition",
"src": "211:117:1"
},
{
"body": {
"nativeSrc": "423:28:1",
"nodeType": "YulBlock",
"src": "423:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "440:1:1",
"nodeType": "YulLiteral",
"src": "440:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "443:1:1",
"nodeType": "YulLiteral",
"src": "443:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "433:6:1",
"nodeType": "YulIdentifier",
"src": "433:6:1"
},
"nativeSrc": "433:12:1",
"nodeType": "YulFunctionCall",
"src": "433:12:1"
},
"nativeSrc": "433:12:1",
"nodeType": "YulExpressionStatement",
"src": "433:12:1"
}
]
},
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nativeSrc": "334:117:1",
"nodeType": "YulFunctionDefinition",
"src": "334:117:1"
},
{
"body": {
"nativeSrc": "505:54:1",
"nodeType": "YulBlock",
"src": "505:54:1",
"statements": [
{
"nativeSrc": "515:38:1",
"nodeType": "YulAssignment",
"src": "515:38:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nativeSrc": "533:5:1",
"nodeType": "YulIdentifier",
"src": "533:5:1"
},
{
"kind": "number",
"nativeSrc": "540:2:1",
"nodeType": "YulLiteral",
"src": "540:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nativeSrc": "529:3:1",
"nodeType": "YulIdentifier",
"src": "529:3:1"
},
"nativeSrc": "529:14:1",
"nodeType": "YulFunctionCall",
"src": "529:14:1"
},
{
"arguments": [
{
"kind": "number",
"nativeSrc": "549:2:1",
"nodeType": "YulLiteral",
"src": "549:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nativeSrc": "545:3:1",
"nodeType": "YulIdentifier",
"src": "545:3:1"
},
"nativeSrc": "545:7:1",
"nodeType": "YulFunctionCall",
"src": "545:7:1"
}
],
"functionName": {
"name": "and",
"nativeSrc": "525:3:1",
"nodeType": "YulIdentifier",
"src": "525:3:1"
},
"nativeSrc": "525:28:1",
"nodeType": "YulFunctionCall",
"src": "525:28:1"
},
"variableNames": [
{
"name": "result",
"nativeSrc": "515:6:1",
"nodeType": "YulIdentifier",
"src": "515:6:1"
}
]
}
]
},
"name": "round_up_to_mul_of_32",
"nativeSrc": "457:102:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "488:5:1",
"nodeType": "YulTypedName",
"src": "488:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nativeSrc": "498:6:1",
"nodeType": "YulTypedName",
"src": "498:6:1",
"type": ""
}
],
"src": "457:102:1"
},
{
"body": {
"nativeSrc": "593:152:1",
"nodeType": "YulBlock",
"src": "593:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "610:1:1",
"nodeType": "YulLiteral",
"src": "610:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "613:77:1",
"nodeType": "YulLiteral",
"src": "613:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "603:6:1",
"nodeType": "YulIdentifier",
"src": "603:6:1"
},
"nativeSrc": "603:88:1",
"nodeType": "YulFunctionCall",
"src": "603:88:1"
},
"nativeSrc": "603:88:1",
"nodeType": "YulExpressionStatement",
"src": "603:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "707:1:1",
"nodeType": "YulLiteral",
"src": "707:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nativeSrc": "710:4:1",
"nodeType": "YulLiteral",
"src": "710:4:1",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "700:6:1",
"nodeType": "YulIdentifier",
"src": "700:6:1"
},
"nativeSrc": "700:15:1",
"nodeType": "YulFunctionCall",
"src": "700:15:1"
},
"nativeSrc": "700:15:1",
"nodeType": "YulExpressionStatement",
"src": "700:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "731:1:1",
"nodeType": "YulLiteral",
"src": "731:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "734:4:1",
"nodeType": "YulLiteral",
"src": "734:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "724:6:1",
"nodeType": "YulIdentifier",
"src": "724:6:1"
},
"nativeSrc": "724:15:1",
"nodeType": "YulFunctionCall",
"src": "724:15:1"
},
"nativeSrc": "724:15:1",
"nodeType": "YulExpressionStatement",
"src": "724:15:1"
}
]
},
"name": "panic_error_0x41",
"nativeSrc": "565:180:1",
"nodeType": "YulFunctionDefinition",
"src": "565:180:1"
},
{
"body": {
"nativeSrc": "794:238:1",
"nodeType": "YulBlock",
"src": "794:238:1",
"statements": [
{
"nativeSrc": "804:58:1",
"nodeType": "YulVariableDeclaration",
"src": "804:58:1",
"value": {
"arguments": [
{
"name": "memPtr",
"nativeSrc": "826:6:1",
"nodeType": "YulIdentifier",
"src": "826:6:1"
},
{
"arguments": [
{
"name": "size",
"nativeSrc": "856:4:1",
"nodeType": "YulIdentifier",
"src": "856:4:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nativeSrc": "834:21:1",
"nodeType": "YulIdentifier",
"src": "834:21:1"
},
"nativeSrc": "834:27:1",
"nodeType": "YulFunctionCall",
"src": "834:27:1"
}
],
"functionName": {
"name": "add",
"nativeSrc": "822:3:1",
"nodeType": "YulIdentifier",
"src": "822:3:1"
},
"nativeSrc": "822:40:1",
"nodeType": "YulFunctionCall",
"src": "822:40:1"
},
"variables": [
{
"name": "newFreePtr",
"nativeSrc": "808:10:1",
"nodeType": "YulTypedName",
"src": "808:10:1",
"type": ""
}
]
},
{
"body": {
"nativeSrc": "973:22:1",
"nodeType": "YulBlock",
"src": "973:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nativeSrc": "975:16:1",
"nodeType": "YulIdentifier",
"src": "975:16:1"
},
"nativeSrc": "975:18:1",
"nodeType": "YulFunctionCall",
"src": "975:18:1"
},
"nativeSrc": "975:18:1",
"nodeType": "YulExpressionStatement",
"src": "975:18:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "newFreePtr",
"nativeSrc": "916:10:1",
"nodeType": "YulIdentifier",
"src": "916:10:1"
},
{
"kind": "number",
"nativeSrc": "928:18:1",
"nodeType": "YulLiteral",
"src": "928:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nativeSrc": "913:2:1",
"nodeType": "YulIdentifier",
"src": "913:2:1"
},
"nativeSrc": "913:34:1",
"nodeType": "YulFunctionCall",
"src": "913:34:1"
},
{
"arguments": [
{
"name": "newFreePtr",
"nativeSrc": "952:10:1",
"nodeType": "YulIdentifier",
"src": "952:10:1"
},
{
"name": "memPtr",
"nativeSrc": "964:6:1",
"nodeType": "YulIdentifier",
"src": "964:6:1"
}
],
"functionName": {
"name": "lt",
"nativeSrc": "949:2:1",
"nodeType": "YulIdentifier",
"src": "949:2:1"
},
"nativeSrc": "949:22:1",
"nodeType": "YulFunctionCall",
"src": "949:22:1"
}
],
"functionName": {
"name": "or",
"nativeSrc": "910:2:1",
"nodeType": "YulIdentifier",
"src": "910:2:1"
},
"nativeSrc": "910:62:1",
"nodeType": "YulFunctionCall",
"src": "910:62:1"
},
"nativeSrc": "907:88:1",
"nodeType": "YulIf",
"src": "907:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "1011:2:1",
"nodeType": "YulLiteral",
"src": "1011:2:1",
"type": "",
"value": "64"
},
{
"name": "newFreePtr",
"nativeSrc": "1015:10:1",
"nodeType": "YulIdentifier",
"src": "1015:10:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "1004:6:1",
"nodeType": "YulIdentifier",
"src": "1004:6:1"
},
"nativeSrc": "1004:22:1",
"nodeType": "YulFunctionCall",
"src": "1004:22:1"
},
"nativeSrc": "1004:22:1",
"nodeType": "YulExpressionStatement",
"src": "1004:22:1"
}
]
},
"name": "finalize_allocation",
"nativeSrc": "751:281:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "780:6:1",
"nodeType": "YulTypedName",
"src": "780:6:1",
"type": ""
},
{
"name": "size",
"nativeSrc": "788:4:1",
"nodeType": "YulTypedName",
"src": "788:4:1",
"type": ""
}
],
"src": "751:281:1"
},
{
"body": {
"nativeSrc": "1079:88:1",
"nodeType": "YulBlock",
"src": "1079:88:1",
"statements": [
{
"nativeSrc": "1089:30:1",
"nodeType": "YulAssignment",
"src": "1089:30:1",
"value": {
"arguments": [],
"functionName": {
"name": "allocate_unbounded",
"nativeSrc": "1099:18:1",
"nodeType": "YulIdentifier",
"src": "1099:18:1"
},
"nativeSrc": "1099:20:1",
"nodeType": "YulFunctionCall",
"src": "1099:20:1"
},
"variableNames": [
{
"name": "memPtr",
"nativeSrc": "1089:6:1",
"nodeType": "YulIdentifier",
"src": "1089:6:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "memPtr",
"nativeSrc": "1148:6:1",
"nodeType": "YulIdentifier",
"src": "1148:6:1"
},
{
"name": "size",
"nativeSrc": "1156:4:1",
"nodeType": "YulIdentifier",
"src": "1156:4:1"
}
],
"functionName": {
"name": "finalize_allocation",
"nativeSrc": "1128:19:1",
"nodeType": "YulIdentifier",
"src": "1128:19:1"
},
"nativeSrc": "1128:33:1",
"nodeType": "YulFunctionCall",
"src": "1128:33:1"
},
"nativeSrc": "1128:33:1",
"nodeType": "YulExpressionStatement",
"src": "1128:33:1"
}
]
},
"name": "allocate_memory",
"nativeSrc": "1038:129:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "size",
"nativeSrc": "1063:4:1",
"nodeType": "YulTypedName",
"src": "1063:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "memPtr",
"nativeSrc": "1072:6:1",
"nodeType": "YulTypedName",
"src": "1072:6:1",
"type": ""
}
],
"src": "1038:129:1"
},
{
"body": {
"nativeSrc": "1255:229:1",
"nodeType": "YulBlock",
"src": "1255:229:1",
"statements": [
{
"body": {
"nativeSrc": "1360:22:1",
"nodeType": "YulBlock",
"src": "1360:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nativeSrc": "1362:16:1",
"nodeType": "YulIdentifier",
"src": "1362:16:1"
},
"nativeSrc": "1362:18:1",
"nodeType": "YulFunctionCall",
"src": "1362:18:1"
},
"nativeSrc": "1362:18:1",
"nodeType": "YulExpressionStatement",
"src": "1362:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "length",
"nativeSrc": "1332:6:1",
"nodeType": "YulIdentifier",
"src": "1332:6:1"
},
{
"kind": "number",
"nativeSrc": "1340:18:1",
"nodeType": "YulLiteral",
"src": "1340:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nativeSrc": "1329:2:1",
"nodeType": "YulIdentifier",
"src": "1329:2:1"
},
"nativeSrc": "1329:30:1",
"nodeType": "YulFunctionCall",
"src": "1329:30:1"
},
"nativeSrc": "1326:56:1",
"nodeType": "YulIf",
"src": "1326:56:1"
},
{
"nativeSrc": "1392:25:1",
"nodeType": "YulAssignment",
"src": "1392:25:1",
"value": {
"arguments": [
{
"name": "length",
"nativeSrc": "1404:6:1",
"nodeType": "YulIdentifier",
"src": "1404:6:1"
},
{
"kind": "number",
"nativeSrc": "1412:4:1",
"nodeType": "YulLiteral",
"src": "1412:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "mul",
"nativeSrc": "1400:3:1",
"nodeType": "YulIdentifier",
"src": "1400:3:1"
},
"nativeSrc": "1400:17:1",
"nodeType": "YulFunctionCall",
"src": "1400:17:1"
},
"variableNames": [
{
"name": "size",
"nativeSrc": "1392:4:1",
"nodeType": "YulIdentifier",
"src": "1392:4:1"
}
]
},
{
"nativeSrc": "1454:23:1",
"nodeType": "YulAssignment",
"src": "1454:23:1",
"value": {
"arguments": [
{
"name": "size",
"nativeSrc": "1466:4:1",
"nodeType": "YulIdentifier",
"src": "1466:4:1"
},
{
"kind": "number",
"nativeSrc": "1472:4:1",
"nodeType": "YulLiteral",
"src": "1472:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nativeSrc": "1462:3:1",
"nodeType": "YulIdentifier",
"src": "1462:3:1"
},
"nativeSrc": "1462:15:1",
"nodeType": "YulFunctionCall",
"src": "1462:15:1"
},
"variableNames": [
{
"name": "size",
"nativeSrc": "1454:4:1",
"nodeType": "YulIdentifier",
"src": "1454:4:1"
}
]
}
]
},
"name": "array_allocation_size_t_array$_t_bytes32_$dyn_memory_ptr",
"nativeSrc": "1173:311:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "length",
"nativeSrc": "1239:6:1",
"nodeType": "YulTypedName",
"src": "1239:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "size",
"nativeSrc": "1250:4:1",
"nodeType": "YulTypedName",
"src": "1250:4:1",
"type": ""
}
],
"src": "1173:311:1"
},
{
"body": {
"nativeSrc": "1579:28:1",
"nodeType": "YulBlock",
"src": "1579:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "1596:1:1",
"nodeType": "YulLiteral",
"src": "1596:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "1599:1:1",
"nodeType": "YulLiteral",
"src": "1599:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "1589:6:1",
"nodeType": "YulIdentifier",
"src": "1589:6:1"
},
"nativeSrc": "1589:12:1",
"nodeType": "YulFunctionCall",
"src": "1589:12:1"
},
"nativeSrc": "1589:12:1",
"nodeType": "YulExpressionStatement",
"src": "1589:12:1"
}
]
},
"name": "revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef",
"nativeSrc": "1490:117:1",
"nodeType": "YulFunctionDefinition",
"src": "1490:117:1"
},
{
"body": {
"nativeSrc": "1658:32:1",
"nodeType": "YulBlock",
"src": "1658:32:1",
"statements": [
{
"nativeSrc": "1668:16:1",
"nodeType": "YulAssignment",
"src": "1668:16:1",
"value": {
"name": "value",
"nativeSrc": "1679:5:1",
"nodeType": "YulIdentifier",
"src": "1679:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nativeSrc": "1668:7:1",
"nodeType": "YulIdentifier",
"src": "1668:7:1"
}
]
}
]
},
"name": "cleanup_t_bytes32",
"nativeSrc": "1613:77:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "1640:5:1",
"nodeType": "YulTypedName",
"src": "1640:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nativeSrc": "1650:7:1",
"nodeType": "YulTypedName",
"src": "1650:7:1",
"type": ""
}
],
"src": "1613:77:1"
},
{
"body": {
"nativeSrc": "1739:79:1",
"nodeType": "YulBlock",
"src": "1739:79:1",
"statements": [
{
"body": {
"nativeSrc": "1796:16:1",
"nodeType": "YulBlock",
"src": "1796:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "1805:1:1",
"nodeType": "YulLiteral",
"src": "1805:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "1808:1:1",
"nodeType": "YulLiteral",
"src": "1808:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "1798:6:1",
"nodeType": "YulIdentifier",
"src": "1798:6:1"
},
"nativeSrc": "1798:12:1",
"nodeType": "YulFunctionCall",
"src": "1798:12:1"
},
"nativeSrc": "1798:12:1",
"nodeType": "YulExpressionStatement",
"src": "1798:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nativeSrc": "1762:5:1",
"nodeType": "YulIdentifier",
"src": "1762:5:1"
},
{
"arguments": [
{
"name": "value",
"nativeSrc": "1787:5:1",
"nodeType": "YulIdentifier",
"src": "1787:5:1"
}
],
"functionName": {
"name": "cleanup_t_bytes32",
"nativeSrc": "1769:17:1",
"nodeType": "YulIdentifier",
"src": "1769:17:1"
},
"nativeSrc": "1769:24:1",
"nodeType": "YulFunctionCall",
"src": "1769:24:1"
}
],
"functionName": {
"name": "eq",
"nativeSrc": "1759:2:1",
"nodeType": "YulIdentifier",
"src": "1759:2:1"
},
"nativeSrc": "1759:35:1",
"nodeType": "YulFunctionCall",
"src": "1759:35:1"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "1752:6:1",
"nodeType": "YulIdentifier",
"src": "1752:6:1"
},
"nativeSrc": "1752:43:1",
"nodeType": "YulFunctionCall",
"src": "1752:43:1"
},
"nativeSrc": "1749:63:1",
"nodeType": "YulIf",
"src": "1749:63:1"
}
]
},
"name": "validator_revert_t_bytes32",
"nativeSrc": "1696:122:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "1732:5:1",
"nodeType": "YulTypedName",
"src": "1732:5:1",
"type": ""
}
],
"src": "1696:122:1"
},
{
"body": {
"nativeSrc": "1887:80:1",
"nodeType": "YulBlock",
"src": "1887:80:1",
"statements": [
{
"nativeSrc": "1897:22:1",
"nodeType": "YulAssignment",
"src": "1897:22:1",
"value": {
"arguments": [
{
"name": "offset",
"nativeSrc": "1912:6:1",
"nodeType": "YulIdentifier",
"src": "1912:6:1"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "1906:5:1",
"nodeType": "YulIdentifier",
"src": "1906:5:1"
},
"nativeSrc": "1906:13:1",
"nodeType": "YulFunctionCall",
"src": "1906:13:1"
},
"variableNames": [
{
"name": "value",
"nativeSrc": "1897:5:1",
"nodeType": "YulIdentifier",
"src": "1897:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nativeSrc": "1955:5:1",
"nodeType": "YulIdentifier",
"src": "1955:5:1"
}
],
"functionName": {
"name": "validator_revert_t_bytes32",
"nativeSrc": "1928:26:1",
"nodeType": "YulIdentifier",
"src": "1928:26:1"
},
"nativeSrc": "1928:33:1",
"nodeType": "YulFunctionCall",
"src": "1928:33:1"
},
"nativeSrc": "1928:33:1",
"nodeType": "YulExpressionStatement",
"src": "1928:33:1"
}
]
},
"name": "abi_decode_t_bytes32_fromMemory",
"nativeSrc": "1824:143:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nativeSrc": "1865:6:1",
"nodeType": "YulTypedName",
"src": "1865:6:1",
"type": ""
},
{
"name": "end",
"nativeSrc": "1873:3:1",
"nodeType": "YulTypedName",
"src": "1873:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nativeSrc": "1881:5:1",
"nodeType": "YulTypedName",
"src": "1881:5:1",
"type": ""
}
],
"src": "1824:143:1"
},
{
"body": {
"nativeSrc": "2103:619:1",
"nodeType": "YulBlock",
"src": "2103:619:1",
"statements": [
{
"nativeSrc": "2113:90:1",
"nodeType": "YulAssignment",
"src": "2113:90:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "length",
"nativeSrc": "2195:6:1",
"nodeType": "YulIdentifier",
"src": "2195:6:1"
}
],
"functionName": {
"name": "array_allocation_size_t_array$_t_bytes32_$dyn_memory_ptr",
"nativeSrc": "2138:56:1",
"nodeType": "YulIdentifier",
"src": "2138:56:1"
},
"nativeSrc": "2138:64:1",
"nodeType": "YulFunctionCall",
"src": "2138:64:1"
}
],
"functionName": {
"name": "allocate_memory",
"nativeSrc": "2122:15:1",
"nodeType": "YulIdentifier",
"src": "2122:15:1"
},
"nativeSrc": "2122:81:1",
"nodeType": "YulFunctionCall",
"src": "2122:81:1"
},
"variableNames": [
{
"name": "array",
"nativeSrc": "2113:5:1",
"nodeType": "YulIdentifier",
"src": "2113:5:1"
}
]
},
{
"nativeSrc": "2212:16:1",
"nodeType": "YulVariableDeclaration",
"src": "2212:16:1",
"value": {
"name": "array",
"nativeSrc": "2223:5:1",
"nodeType": "YulIdentifier",
"src": "2223:5:1"
},
"variables": [
{
"name": "dst",
"nativeSrc": "2216:3:1",
"nodeType": "YulTypedName",
"src": "2216:3:1",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "array",
"nativeSrc": "2245:5:1",
"nodeType": "YulIdentifier",
"src": "2245:5:1"
},
{
"name": "length",
"nativeSrc": "2252:6:1",
"nodeType": "YulIdentifier",
"src": "2252:6:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "2238:6:1",
"nodeType": "YulIdentifier",
"src": "2238:6:1"
},
"nativeSrc": "2238:21:1",
"nodeType": "YulFunctionCall",
"src": "2238:21:1"
},
"nativeSrc": "2238:21:1",
"nodeType": "YulExpressionStatement",
"src": "2238:21:1"
},
{
"nativeSrc": "2268:23:1",
"nodeType": "YulAssignment",
"src": "2268:23:1",
"value": {
"arguments": [
{
"name": "array",
"nativeSrc": "2279:5:1",
"nodeType": "YulIdentifier",
"src": "2279:5:1"
},
{
"kind": "number",
"nativeSrc": "2286:4:1",
"nodeType": "YulLiteral",
"src": "2286:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2275:3:1",
"nodeType": "YulIdentifier",
"src": "2275:3:1"
},
"nativeSrc": "2275:16:1",
"nodeType": "YulFunctionCall",
"src": "2275:16:1"
},
"variableNames": [
{
"name": "dst",
"nativeSrc": "2268:3:1",
"nodeType": "YulIdentifier",
"src": "2268:3:1"
}
]
},
{
"nativeSrc": "2301:44:1",
"nodeType": "YulVariableDeclaration",
"src": "2301:44:1",
"value": {
"arguments": [
{
"name": "offset",
"nativeSrc": "2319:6:1",
"nodeType": "YulIdentifier",
"src": "2319:6:1"
},
{
"arguments": [
{
"name": "length",
"nativeSrc": "2331:6:1",
"nodeType": "YulIdentifier",
"src": "2331:6:1"
},
{
"kind": "number",
"nativeSrc": "2339:4:1",
"nodeType": "YulLiteral",
"src": "2339:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "mul",
"nativeSrc": "2327:3:1",
"nodeType": "YulIdentifier",
"src": "2327:3:1"
},
"nativeSrc": "2327:17:1",
"nodeType": "YulFunctionCall",
"src": "2327:17:1"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2315:3:1",
"nodeType": "YulIdentifier",
"src": "2315:3:1"
},
"nativeSrc": "2315:30:1",
"nodeType": "YulFunctionCall",
"src": "2315:30:1"
},
"variables": [
{
"name": "srcEnd",
"nativeSrc": "2305:6:1",
"nodeType": "YulTypedName",
"src": "2305:6:1",
"type": ""
}
]
},
{
"body": {
"nativeSrc": "2373:103:1",
"nodeType": "YulBlock",
"src": "2373:103:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef",
"nativeSrc": "2387:77:1",
"nodeType": "YulIdentifier",
"src": "2387:77:1"
},
"nativeSrc": "2387:79:1",
"nodeType": "YulFunctionCall",
"src": "2387:79:1"
},
"nativeSrc": "2387:79:1",
"nodeType": "YulExpressionStatement",
"src": "2387:79:1"
}
]
},
"condition": {
"arguments": [
{
"name": "srcEnd",
"nativeSrc": "2360:6:1",
"nodeType": "YulIdentifier",
"src": "2360:6:1"
},
{
"name": "end",
"nativeSrc": "2368:3:1",
"nodeType": "YulIdentifier",
"src": "2368:3:1"
}
],
"functionName": {
"name": "gt",
"nativeSrc": "2357:2:1",
"nodeType": "YulIdentifier",
"src": "2357:2:1"
},
"nativeSrc": "2357:15:1",
"nodeType": "YulFunctionCall",
"src": "2357:15:1"
},
"nativeSrc": "2354:122:1",
"nodeType": "YulIf",
"src": "2354:122:1"
},
{
"body": {
"nativeSrc": "2561:155:1",
"nodeType": "YulBlock",
"src": "2561:155:1",
"statements": [
{
"nativeSrc": "2576:21:1",
"nodeType": "YulVariableDeclaration",
"src": "2576:21:1",
"value": {
"name": "src",
"nativeSrc": "2594:3:1",
"nodeType": "YulIdentifier",
"src": "2594:3:1"
},
"variables": [
{
"name": "elementPos",
"nativeSrc": "2580:10:1",
"nodeType": "YulTypedName",
"src": "2580:10:1",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "dst",
"nativeSrc": "2618:3:1",
"nodeType": "YulIdentifier",
"src": "2618:3:1"
},
{
"arguments": [
{
"name": "elementPos",
"nativeSrc": "2655:10:1",
"nodeType": "YulIdentifier",
"src": "2655:10:1"
},
{
"name": "end",
"nativeSrc": "2667:3:1",
"nodeType": "YulIdentifier",
"src": "2667:3:1"
}
],
"functionName": {
"name": "abi_decode_t_bytes32_fromMemory",
"nativeSrc": "2623:31:1",
"nodeType": "YulIdentifier",
"src": "2623:31:1"
},
"nativeSrc": "2623:48:1",
"nodeType": "YulFunctionCall",
"src": "2623:48:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "2611:6:1",
"nodeType": "YulIdentifier",
"src": "2611:6:1"
},
"nativeSrc": "2611:61:1",
"nodeType": "YulFunctionCall",
"src": "2611:61:1"
},
"nativeSrc": "2611:61:1",
"nodeType": "YulExpressionStatement",
"src": "2611:61:1"
},
{
"nativeSrc": "2685:21:1",
"nodeType": "YulAssignment",
"src": "2685:21:1",
"value": {
"arguments": [
{
"name": "dst",
"nativeSrc": "2696:3:1",
"nodeType": "YulIdentifier",
"src": "2696:3:1"
},
{
"kind": "number",
"nativeSrc": "2701:4:1",
"nodeType": "YulLiteral",
"src": "2701:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2692:3:1",
"nodeType": "YulIdentifier",
"src": "2692:3:1"
},
"nativeSrc": "2692:14:1",
"nodeType": "YulFunctionCall",
"src": "2692:14:1"
},
"variableNames": [
{
"name": "dst",
"nativeSrc": "2685:3:1",
"nodeType": "YulIdentifier",
"src": "2685:3:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "src",
"nativeSrc": "2514:3:1",
"nodeType": "YulIdentifier",
"src": "2514:3:1"
},
{
"name": "srcEnd",
"nativeSrc": "2519:6:1",
"nodeType": "YulIdentifier",
"src": "2519:6:1"
}
],
"functionName": {
"name": "lt",
"nativeSrc": "2511:2:1",
"nodeType": "YulIdentifier",
"src": "2511:2:1"
},
"nativeSrc": "2511:15:1",
"nodeType": "YulFunctionCall",
"src": "2511:15:1"
},
"nativeSrc": "2485:231:1",
"nodeType": "YulForLoop",
"post": {
"nativeSrc": "2527:25:1",
"nodeType": "YulBlock",
"src": "2527:25:1",
"statements": [
{
"nativeSrc": "2529:21:1",
"nodeType": "YulAssignment",
"src": "2529:21:1",
"value": {
"arguments": [
{
"name": "src",
"nativeSrc": "2540:3:1",
"nodeType": "YulIdentifier",
"src": "2540:3:1"
},
{
"kind": "number",
"nativeSrc": "2545:4:1",
"nodeType": "YulLiteral",
"src": "2545:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2536:3:1",
"nodeType": "YulIdentifier",
"src": "2536:3:1"
},
"nativeSrc": "2536:14:1",
"nodeType": "YulFunctionCall",
"src": "2536:14:1"
},
"variableNames": [
{
"name": "src",
"nativeSrc": "2529:3:1",
"nodeType": "YulIdentifier",
"src": "2529:3:1"
}
]
}
]
},
"pre": {
"nativeSrc": "2489:21:1",
"nodeType": "YulBlock",
"src": "2489:21:1",
"statements": [
{
"nativeSrc": "2491:17:1",
"nodeType": "YulVariableDeclaration",
"src": "2491:17:1",
"value": {
"name": "offset",
"nativeSrc": "2502:6:1",
"nodeType": "YulIdentifier",
"src": "2502:6:1"
},
"variables": [
{
"name": "src",
"nativeSrc": "2495:3:1",
"nodeType": "YulTypedName",
"src": "2495:3:1",
"type": ""
}
]
}
]
},
"src": "2485:231:1"
}
]
},
"name": "abi_decode_available_length_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory",
"nativeSrc": "1990:732:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nativeSrc": "2073:6:1",
"nodeType": "YulTypedName",
"src": "2073:6:1",
"type": ""
},
{
"name": "length",
"nativeSrc": "2081:6:1",
"nodeType": "YulTypedName",
"src": "2081:6:1",
"type": ""
},
{
"name": "end",
"nativeSrc": "2089:3:1",
"nodeType": "YulTypedName",
"src": "2089:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "array",
"nativeSrc": "2097:5:1",
"nodeType": "YulTypedName",
"src": "2097:5:1",
"type": ""
}
],
"src": "1990:732:1"
},
{
"body": {
"nativeSrc": "2833:297:1",
"nodeType": "YulBlock",
"src": "2833:297:1",
"statements": [
{
"body": {
"nativeSrc": "2882:83:1",
"nodeType": "YulBlock",
"src": "2882:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nativeSrc": "2884:77:1",
"nodeType": "YulIdentifier",
"src": "2884:77:1"
},
"nativeSrc": "2884:79:1",
"nodeType": "YulFunctionCall",
"src": "2884:79:1"
},
"nativeSrc": "2884:79:1",
"nodeType": "YulExpressionStatement",
"src": "2884:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "offset",
"nativeSrc": "2861:6:1",
"nodeType": "YulIdentifier",
"src": "2861:6:1"
},
{
"kind": "number",
"nativeSrc": "2869:4:1",
"nodeType": "YulLiteral",
"src": "2869:4:1",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2857:3:1",
"nodeType": "YulIdentifier",
"src": "2857:3:1"
},
"nativeSrc": "2857:17:1",
"nodeType": "YulFunctionCall",
"src": "2857:17:1"
},
{
"name": "end",
"nativeSrc": "2876:3:1",
"nodeType": "YulIdentifier",
"src": "2876:3:1"
}
],
"functionName": {
"name": "slt",
"nativeSrc": "2853:3:1",
"nodeType": "YulIdentifier",
"src": "2853:3:1"
},
"nativeSrc": "2853:27:1",
"nodeType": "YulFunctionCall",
"src": "2853:27:1"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "2846:6:1",
"nodeType": "YulIdentifier",
"src": "2846:6:1"
},
"nativeSrc": "2846:35:1",
"nodeType": "YulFunctionCall",
"src": "2846:35:1"
},
"nativeSrc": "2843:122:1",
"nodeType": "YulIf",
"src": "2843:122:1"
},
{
"nativeSrc": "2974:27:1",
"nodeType": "YulVariableDeclaration",
"src": "2974:27:1",
"value": {
"arguments": [
{
"name": "offset",
"nativeSrc": "2994:6:1",
"nodeType": "YulIdentifier",
"src": "2994:6:1"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "2988:5:1",
"nodeType": "YulIdentifier",
"src": "2988:5:1"
},
"nativeSrc": "2988:13:1",
"nodeType": "YulFunctionCall",
"src": "2988:13:1"
},
"variables": [
{
"name": "length",
"nativeSrc": "2978:6:1",
"nodeType": "YulTypedName",
"src": "2978:6:1",
"type": ""
}
]
},
{
"nativeSrc": "3010:114:1",
"nodeType": "YulAssignment",
"src": "3010:114:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "offset",
"nativeSrc": "3097:6:1",
"nodeType": "YulIdentifier",
"src": "3097:6:1"
},
{
"kind": "number",
"nativeSrc": "3105:4:1",
"nodeType": "YulLiteral",
"src": "3105:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3093:3:1",
"nodeType": "YulIdentifier",
"src": "3093:3:1"
},
"nativeSrc": "3093:17:1",
"nodeType": "YulFunctionCall",
"src": "3093:17:1"
},
{
"name": "length",
"nativeSrc": "3112:6:1",
"nodeType": "YulIdentifier",
"src": "3112:6:1"
},
{
"name": "end",
"nativeSrc": "3120:3:1",
"nodeType": "YulIdentifier",
"src": "3120:3:1"
}
],
"functionName": {
"name": "abi_decode_available_length_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory",
"nativeSrc": "3019:73:1",
"nodeType": "YulIdentifier",
"src": "3019:73:1"
},
"nativeSrc": "3019:105:1",
"nodeType": "YulFunctionCall",
"src": "3019:105:1"
},
"variableNames": [
{
"name": "array",
"nativeSrc": "3010:5:1",
"nodeType": "YulIdentifier",
"src": "3010:5:1"
}
]
}
]
},
"name": "abi_decode_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory",
"nativeSrc": "2745:385:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nativeSrc": "2811:6:1",
"nodeType": "YulTypedName",
"src": "2811:6:1",
"type": ""
},
{
"name": "end",
"nativeSrc": "2819:3:1",
"nodeType": "YulTypedName",
"src": "2819:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "array",
"nativeSrc": "2827:5:1",
"nodeType": "YulTypedName",
"src": "2827:5:1",
"type": ""
}
],
"src": "2745:385:1"
},
{
"body": {
"nativeSrc": "3238:452:1",
"nodeType": "YulBlock",
"src": "3238:452:1",
"statements": [
{
"body": {
"nativeSrc": "3284:83:1",
"nodeType": "YulBlock",
"src": "3284:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nativeSrc": "3286:77:1",
"nodeType": "YulIdentifier",
"src": "3286:77:1"
},
"nativeSrc": "3286:79:1",
"nodeType": "YulFunctionCall",
"src": "3286:79:1"
},
"nativeSrc": "3286:79:1",
"nodeType": "YulExpressionStatement",
"src": "3286:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nativeSrc": "3259:7:1",
"nodeType": "YulIdentifier",
"src": "3259:7:1"
},
{
"name": "headStart",
"nativeSrc": "3268:9:1",
"nodeType": "YulIdentifier",
"src": "3268:9:1"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "3255:3:1",
"nodeType": "YulIdentifier",
"src": "3255:3:1"
},
"nativeSrc": "3255:23:1",
"nodeType": "YulFunctionCall",
"src": "3255:23:1"
},
{
"kind": "number",
"nativeSrc": "3280:2:1",
"nodeType": "YulLiteral",
"src": "3280:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nativeSrc": "3251:3:1",
"nodeType": "YulIdentifier",
"src": "3251:3:1"
},
"nativeSrc": "3251:32:1",
"nodeType": "YulFunctionCall",
"src": "3251:32:1"
},
"nativeSrc": "3248:119:1",
"nodeType": "YulIf",
"src": "3248:119:1"
},
{
"nativeSrc": "3377:306:1",
"nodeType": "YulBlock",
"src": "3377:306:1",
"statements": [
{
"nativeSrc": "3392:38:1",
"nodeType": "YulVariableDeclaration",
"src": "3392:38:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "3416:9:1",
"nodeType": "YulIdentifier",
"src": "3416:9:1"
},
{
"kind": "number",
"nativeSrc": "3427:1:1",
"nodeType": "YulLiteral",
"src": "3427:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3412:3:1",
"nodeType": "YulIdentifier",
"src": "3412:3:1"
},
"nativeSrc": "3412:17:1",
"nodeType": "YulFunctionCall",
"src": "3412:17:1"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "3406:5:1",
"nodeType": "YulIdentifier",
"src": "3406:5:1"
},
"nativeSrc": "3406:24:1",
"nodeType": "YulFunctionCall",
"src": "3406:24:1"
},
"variables": [
{
"name": "offset",
"nativeSrc": "3396:6:1",
"nodeType": "YulTypedName",
"src": "3396:6:1",
"type": ""
}
]
},
{
"body": {
"nativeSrc": "3477:83:1",
"nodeType": "YulBlock",
"src": "3477:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nativeSrc": "3479:77:1",
"nodeType": "YulIdentifier",
"src": "3479:77:1"
},
"nativeSrc": "3479:79:1",
"nodeType": "YulFunctionCall",
"src": "3479:79:1"
},
"nativeSrc": "3479:79:1",
"nodeType": "YulExpressionStatement",
"src": "3479:79:1"
}
]
},
"condition": {
"arguments": [
{
"name": "offset",
"nativeSrc": "3449:6:1",
"nodeType": "YulIdentifier",
"src": "3449:6:1"
},
{
"kind": "number",
"nativeSrc": "3457:18:1",
"nodeType": "YulLiteral",
"src": "3457:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nativeSrc": "3446:2:1",
"nodeType": "YulIdentifier",
"src": "3446:2:1"
},
"nativeSrc": "3446:30:1",
"nodeType": "YulFunctionCall",
"src": "3446:30:1"
},
"nativeSrc": "3443:117:1",
"nodeType": "YulIf",
"src": "3443:117:1"
},
{
"nativeSrc": "3574:99:1",
"nodeType": "YulAssignment",
"src": "3574:99:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "3645:9:1",
"nodeType": "YulIdentifier",
"src": "3645:9:1"
},
{
"name": "offset",
"nativeSrc": "3656:6:1",
"nodeType": "YulIdentifier",
"src": "3656:6:1"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3641:3:1",
"nodeType": "YulIdentifier",
"src": "3641:3:1"
},
"nativeSrc": "3641:22:1",
"nodeType": "YulFunctionCall",
"src": "3641:22:1"
},
{
"name": "dataEnd",
"nativeSrc": "3665:7:1",
"nodeType": "YulIdentifier",
"src": "3665:7:1"
}
],
"functionName": {
"name": "abi_decode_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory",
"nativeSrc": "3584:56:1",
"nodeType": "YulIdentifier",
"src": "3584:56:1"
},
"nativeSrc": "3584:89:1",
"nodeType": "YulFunctionCall",
"src": "3584:89:1"
},
"variableNames": [
{
"name": "value0",
"nativeSrc": "3574:6:1",
"nodeType": "YulIdentifier",
"src": "3574:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory",
"nativeSrc": "3136:554:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "3208:9:1",
"nodeType": "YulTypedName",
"src": "3208:9:1",
"type": ""
},
{
"name": "dataEnd",
"nativeSrc": "3219:7:1",
"nodeType": "YulTypedName",
"src": "3219:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nativeSrc": "3231:6:1",
"nodeType": "YulTypedName",
"src": "3231:6:1",
"type": ""
}
],
"src": "3136:554:1"
},
{
"body": {
"nativeSrc": "3724:152:1",
"nodeType": "YulBlock",
"src": "3724:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "3741:1:1",
"nodeType": "YulLiteral",
"src": "3741:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "3744:77:1",
"nodeType": "YulLiteral",
"src": "3744:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "3734:6:1",
"nodeType": "YulIdentifier",
"src": "3734:6:1"
},
"nativeSrc": "3734:88:1",
"nodeType": "YulFunctionCall",
"src": "3734:88:1"
},
"nativeSrc": "3734:88:1",
"nodeType": "YulExpressionStatement",
"src": "3734:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "3838:1:1",
"nodeType": "YulLiteral",
"src": "3838:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nativeSrc": "3841:4:1",
"nodeType": "YulLiteral",
"src": "3841:4:1",
"type": "",
"value": "0x32"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "3831:6:1",
"nodeType": "YulIdentifier",
"src": "3831:6:1"
},
"nativeSrc": "3831:15:1",
"nodeType": "YulFunctionCall",
"src": "3831:15:1"
},
"nativeSrc": "3831:15:1",
"nodeType": "YulExpressionStatement",
"src": "3831:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "3862:1:1",
"nodeType": "YulLiteral",
"src": "3862:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "3865:4:1",
"nodeType": "YulLiteral",
"src": "3865:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "3855:6:1",
"nodeType": "YulIdentifier",
"src": "3855:6:1"
},
"nativeSrc": "3855:15:1",
"nodeType": "YulFunctionCall",
"src": "3855:15:1"
},
"nativeSrc": "3855:15:1",
"nodeType": "YulExpressionStatement",
"src": "3855:15:1"
}
]
},
"name": "panic_error_0x32",
"nativeSrc": "3696:180:1",
"nodeType": "YulFunctionDefinition",
"src": "3696:180:1"
}
]
},
"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 round_up_to_mul_of_32(value) -> result {\n result := and(add(value, 31), not(31))\n }\n\n function panic_error_0x41() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n\n function finalize_allocation(memPtr, size) {\n let newFreePtr := add(memPtr, round_up_to_mul_of_32(size))\n // protect against overflow\n if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }\n mstore(64, newFreePtr)\n }\n\n function allocate_memory(size) -> memPtr {\n memPtr := allocate_unbounded()\n finalize_allocation(memPtr, size)\n }\n\n function array_allocation_size_t_array$_t_bytes32_$dyn_memory_ptr(length) -> size {\n // Make sure we can allocate memory without overflow\n if gt(length, 0xffffffffffffffff) { panic_error_0x41() }\n\n size := mul(length, 0x20)\n\n // add length slot\n size := add(size, 0x20)\n\n }\n\n function revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef() {\n revert(0, 0)\n }\n\n function cleanup_t_bytes32(value) -> cleaned {\n cleaned := value\n }\n\n function validator_revert_t_bytes32(value) {\n if iszero(eq(value, cleanup_t_bytes32(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_bytes32_fromMemory(offset, end) -> value {\n value := mload(offset)\n validator_revert_t_bytes32(value)\n }\n\n // bytes32[]\n function abi_decode_available_length_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory(offset, length, end) -> array {\n array := allocate_memory(array_allocation_size_t_array$_t_bytes32_$dyn_memory_ptr(length))\n let dst := array\n\n mstore(array, length)\n dst := add(array, 0x20)\n\n let srcEnd := add(offset, mul(length, 0x20))\n if gt(srcEnd, end) {\n revert_error_81385d8c0b31fffe14be1da910c8bd3a80be4cfa248e04f42ec0faea3132a8ef()\n }\n for { let src := offset } lt(src, srcEnd) { src := add(src, 0x20) }\n {\n\n let elementPos := src\n\n mstore(dst, abi_decode_t_bytes32_fromMemory(elementPos, end))\n dst := add(dst, 0x20)\n }\n }\n\n // bytes32[]\n function abi_decode_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory(offset, end) -> array {\n if iszero(slt(add(offset, 0x1f), end)) { revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() }\n let length := mload(offset)\n array := abi_decode_available_length_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory(add(offset, 0x20), length, end)\n }\n\n function abi_decode_tuple_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := mload(add(headStart, 0))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value0 := abi_decode_t_array$_t_bytes32_$dyn_memory_ptr_fromMemory(add(headStart, offset), dataEnd)\n }\n\n }\n\n function panic_error_0x32() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x32)\n revert(0, 0x24)\n }\n\n}\n",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"linkReferences": {},
"object": "608060405234801562000010575f80fd5b50604051620012c1380380620012c183398181016040528101906200003691906200031e565b335f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001805f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f01819055505f5b81518110156200016157600260405180604001604052808484815181106200010857620001076200036d565b5b602002602001015181526020015f815250908060018154018082558091505060019003905f5260205f2090600202015f909190919091505f820151815f01556020820151816001015550508080600101915050620000db565b50506200039a565b5f604051905090565b5f80fd5b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b620001c6826200017e565b810181811067ffffffffffffffff82111715620001e857620001e76200018e565b5b80604052505050565b5f620001fc62000169565b90506200020a8282620001bb565b919050565b5f67ffffffffffffffff8211156200022c576200022b6200018e565b5b602082029050602081019050919050565b5f80fd5b5f819050919050565b620002558162000241565b811462000260575f80fd5b50565b5f8151905062000273816200024a565b92915050565b5f6200028f62000289846200020f565b620001f1565b90508083825260208201905060208402830185811115620002b557620002b46200023d565b5b835b81811015620002e25780620002cd888262000263565b845260208401935050602081019050620002b7565b5050509392505050565b5f82601f8301126200030357620003026200017a565b5b81516200031584826020860162000279565b91505092915050565b5f6020828403121562000336576200033562000172565b5b5f82015167ffffffffffffffff81111562000356576200035562000176565b5b6200036484828501620002ec565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b610f1980620003a85f395ff3fe608060405234801561000f575f80fd5b5060043610610086575f3560e01c8063609ff1bd11610059578063609ff1bd146101115780639e7b8d611461012f578063a3ec138d1461014b578063e2ba53f01461017e57610086565b80630121b93f1461008a578063013cf08b146100a65780632e4176cf146100d75780635c19a95c146100f5575b5f80fd5b6100a4600480360381019061009f9190610993565b61019c565b005b6100c060048036038101906100bb9190610993565b6102d7565b6040516100ce9291906109e5565b60405180910390f35b6100df610306565b6040516100ec9190610a4b565b60405180910390f35b61010f600480360381019061010a9190610a8e565b610329565b005b6101196106ae565b6040516101269190610ab9565b60405180910390f35b61014960048036038101906101449190610a8e565b610729565b005b61016560048036038101906101609190610a8e565b6108d4565b6040516101759493929190610aec565b60405180910390f35b61018661092c565b6040516101939190610b2f565b60405180910390f35b5f60015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f015403610221576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021890610ba2565b60405180910390fd5b806001015f9054906101000a900460ff1615610272576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026990610c0a565b60405180910390fd5b6001816001015f6101000a81548160ff021916908315150217905550818160020181905550805f0154600283815481106102af576102ae610c28565b5b905f5260205f2090600202016001015f8282546102cc9190610c82565b925050819055505050565b600281815481106102e6575f80fd5b905f5260205f2090600202015f91509050805f0154908060010154905082565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f209050806001015f9054906101000a900460ff16156103ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103b190610cff565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161041f90610d67565b60405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff1660015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146105925760015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691503373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361058d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058490610dcf565b60405180910390fd5b610429565b6001816001015f6101000a81548160ff021916908315150217905550818160010160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f209050806001015f9054906101000a900460ff161561068c57815f0154600282600201548154811061066357610662610c28565b5b905f5260205f2090600202016001015f8282546106809190610c82565b925050819055506106a9565b815f0154815f015f8282546106a19190610c82565b925050819055505b505050565b5f805f90505f5b6002805490508110156107245781600282815481106106d7576106d6610c28565b5b905f5260205f209060020201600101541115610717576002818154811061070157610700610c28565b5b905f5260205f2090600202016001015491508092505b80806001019150506106b5565b505090565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ad90610e5d565b60405180910390fd5b60015f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001015f9054906101000a900460ff1615610843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083a90610ec5565b60405180910390fd5b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f01541461088d575f80fd5b6001805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f018190555050565b6001602052805f5260405f205f91509050805f015490806001015f9054906101000a900460ff16908060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154905084565b5f60026109376106ae565b8154811061094857610947610c28565b5b905f5260205f2090600202015f0154905090565b5f80fd5b5f819050919050565b61097281610960565b811461097c575f80fd5b50565b5f8135905061098d81610969565b92915050565b5f602082840312156109a8576109a761095c565b5b5f6109b58482850161097f565b91505092915050565b5f819050919050565b6109d0816109be565b82525050565b6109df81610960565b82525050565b5f6040820190506109f85f8301856109c7565b610a0560208301846109d6565b9392505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610a3582610a0c565b9050919050565b610a4581610a2b565b82525050565b5f602082019050610a5e5f830184610a3c565b92915050565b610a6d81610a2b565b8114610a77575f80fd5b50565b5f81359050610a8881610a64565b92915050565b5f60208284031215610aa357610aa261095c565b5b5f610ab084828501610a7a565b91505092915050565b5f602082019050610acc5f8301846109d6565b92915050565b5f8115159050919050565b610ae681610ad2565b82525050565b5f608082019050610aff5f8301876109d6565b610b0c6020830186610add565b610b196040830185610a3c565b610b2660608301846109d6565b95945050505050565b5f602082019050610b425f8301846109c7565b92915050565b5f82825260208201905092915050565b7f486173206e6f20726967687420746f20766f74650000000000000000000000005f82015250565b5f610b8c601483610b48565b9150610b9782610b58565b602082019050919050565b5f6020820190508181035f830152610bb981610b80565b9050919050565b7f416c726561647920766f7465642e0000000000000000000000000000000000005f82015250565b5f610bf4600e83610b48565b9150610bff82610bc0565b602082019050919050565b5f6020820190508181035f830152610c2181610be8565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610c8c82610960565b9150610c9783610960565b9250828201905080821115610caf57610cae610c55565b5b92915050565b7f596f7520616c726561647920766f7465642e00000000000000000000000000005f82015250565b5f610ce9601283610b48565b9150610cf482610cb5565b602082019050919050565b5f6020820190508181035f830152610d1681610cdd565b9050919050565b7f53656c662d64656c65676174696f6e20697320646973616c6c6f7765642e00005f82015250565b5f610d51601e83610b48565b9150610d5c82610d1d565b602082019050919050565b5f6020820190508181035f830152610d7e81610d45565b9050919050565b7f466f756e64206c6f6f7020696e2064656c65676174696f6e2e000000000000005f82015250565b5f610db9601983610b48565b9150610dc482610d85565b602082019050919050565b5f6020820190508181035f830152610de681610dad565b9050919050565b7f4f6e6c79206368616972706572736f6e2063616e2067697665207269676874205f8201527f746f20766f74652e000000000000000000000000000000000000000000000000602082015250565b5f610e47602883610b48565b9150610e5282610ded565b604082019050919050565b5f6020820190508181035f830152610e7481610e3b565b9050919050565b7f54686520766f74657220616c726561647920766f7465642e00000000000000005f82015250565b5f610eaf601883610b48565b9150610eba82610e7b565b602082019050919050565b5f6020820190508181035f830152610edc81610ea3565b905091905056fea264697066735822122055d5e9b440e95cce5652e7057d51f64f4dd1c78387e400f8619575891971308c64736f6c63430008160033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x10 JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0x12C1 CODESIZE SUB DUP1 PUSH3 0x12C1 DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE DUP2 ADD SWAP1 PUSH3 0x36 SWAP2 SWAP1 PUSH3 0x31E JUMP JUMPDEST CALLER PUSH0 DUP1 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MUL NOT AND SWAP1 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND MUL OR SWAP1 SSTORE POP PUSH1 0x1 DUP1 PUSH0 DUP1 PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 PUSH0 ADD DUP2 SWAP1 SSTORE POP PUSH0 JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH3 0x161 JUMPI PUSH1 0x2 PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 DUP5 DUP5 DUP2 MLOAD DUP2 LT PUSH3 0x108 JUMPI PUSH3 0x107 PUSH3 0x36D JUMP JUMPDEST JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD MLOAD DUP2 MSTORE PUSH1 0x20 ADD PUSH0 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 0x2 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 SSTORE POP POP DUP1 DUP1 PUSH1 0x1 ADD SWAP2 POP POP PUSH3 0xDB JUMP JUMPDEST POP POP PUSH3 0x39A JUMP JUMPDEST PUSH0 PUSH1 0x40 MLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH3 0x1C6 DUP3 PUSH3 0x17E JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH3 0x1E8 JUMPI PUSH3 0x1E7 PUSH3 0x18E JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP JUMPDEST PUSH0 PUSH3 0x1FC PUSH3 0x169 JUMP JUMPDEST SWAP1 POP PUSH3 0x20A DUP3 DUP3 PUSH3 0x1BB JUMP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH3 0x22C JUMPI PUSH3 0x22B PUSH3 0x18E JUMP JUMPDEST JUMPDEST PUSH1 0x20 DUP3 MUL SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH3 0x255 DUP2 PUSH3 0x241 JUMP JUMPDEST DUP2 EQ PUSH3 0x260 JUMPI PUSH0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH0 DUP2 MLOAD SWAP1 POP PUSH3 0x273 DUP2 PUSH3 0x24A JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH3 0x28F PUSH3 0x289 DUP5 PUSH3 0x20F JUMP JUMPDEST PUSH3 0x1F1 JUMP JUMPDEST SWAP1 POP DUP1 DUP4 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH1 0x20 DUP5 MUL DUP4 ADD DUP6 DUP2 GT ISZERO PUSH3 0x2B5 JUMPI PUSH3 0x2B4 PUSH3 0x23D JUMP JUMPDEST JUMPDEST DUP4 JUMPDEST DUP2 DUP2 LT ISZERO PUSH3 0x2E2 JUMPI DUP1 PUSH3 0x2CD DUP9 DUP3 PUSH3 0x263 JUMP JUMPDEST DUP5 MSTORE PUSH1 0x20 DUP5 ADD SWAP4 POP POP PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH3 0x2B7 JUMP JUMPDEST POP POP POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x303 JUMPI PUSH3 0x302 PUSH3 0x17A JUMP JUMPDEST JUMPDEST DUP2 MLOAD PUSH3 0x315 DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH3 0x279 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH3 0x336 JUMPI PUSH3 0x335 PUSH3 0x172 JUMP JUMPDEST JUMPDEST PUSH0 DUP3 ADD MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH3 0x356 JUMPI PUSH3 0x355 PUSH3 0x176 JUMP JUMPDEST JUMPDEST PUSH3 0x364 DUP5 DUP3 DUP6 ADD PUSH3 0x2EC JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH2 0xF19 DUP1 PUSH3 0x3A8 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 0x86 JUMPI PUSH0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x609FF1BD GT PUSH2 0x59 JUMPI DUP1 PUSH4 0x609FF1BD EQ PUSH2 0x111 JUMPI DUP1 PUSH4 0x9E7B8D61 EQ PUSH2 0x12F JUMPI DUP1 PUSH4 0xA3EC138D EQ PUSH2 0x14B JUMPI DUP1 PUSH4 0xE2BA53F0 EQ PUSH2 0x17E JUMPI PUSH2 0x86 JUMP JUMPDEST DUP1 PUSH4 0x121B93F EQ PUSH2 0x8A JUMPI DUP1 PUSH4 0x13CF08B EQ PUSH2 0xA6 JUMPI DUP1 PUSH4 0x2E4176CF EQ PUSH2 0xD7 JUMPI DUP1 PUSH4 0x5C19A95C EQ PUSH2 0xF5 JUMPI JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH2 0xA4 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x9F SWAP2 SWAP1 PUSH2 0x993 JUMP JUMPDEST PUSH2 0x19C JUMP JUMPDEST STOP JUMPDEST PUSH2 0xC0 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xBB SWAP2 SWAP1 PUSH2 0x993 JUMP JUMPDEST PUSH2 0x2D7 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xCE SWAP3 SWAP2 SWAP1 PUSH2 0x9E5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xDF PUSH2 0x306 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xEC SWAP2 SWAP1 PUSH2 0xA4B JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x10F PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x10A SWAP2 SWAP1 PUSH2 0xA8E JUMP JUMPDEST PUSH2 0x329 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x119 PUSH2 0x6AE JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x126 SWAP2 SWAP1 PUSH2 0xAB9 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x149 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x144 SWAP2 SWAP1 PUSH2 0xA8E JUMP JUMPDEST PUSH2 0x729 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x165 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x160 SWAP2 SWAP1 PUSH2 0xA8E JUMP JUMPDEST PUSH2 0x8D4 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x175 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0xAEC JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x186 PUSH2 0x92C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x193 SWAP2 SWAP1 PUSH2 0xB2F JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH0 PUSH1 0x1 PUSH0 CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 SWAP1 POP PUSH0 DUP2 PUSH0 ADD SLOAD SUB PUSH2 0x221 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x218 SWAP1 PUSH2 0xBA2 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST DUP1 PUSH1 0x1 ADD PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH1 0xFF AND ISZERO PUSH2 0x272 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x269 SWAP1 PUSH2 0xC0A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x1 DUP2 PUSH1 0x1 ADD PUSH0 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH1 0xFF MUL NOT AND SWAP1 DUP4 ISZERO ISZERO MUL OR SWAP1 SSTORE POP DUP2 DUP2 PUSH1 0x2 ADD DUP2 SWAP1 SSTORE POP DUP1 PUSH0 ADD SLOAD PUSH1 0x2 DUP4 DUP2 SLOAD DUP2 LT PUSH2 0x2AF JUMPI PUSH2 0x2AE PUSH2 0xC28 JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD PUSH0 DUP3 DUP3 SLOAD PUSH2 0x2CC SWAP2 SWAP1 PUSH2 0xC82 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP POP POP JUMP JUMPDEST PUSH1 0x2 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x2E6 JUMPI PUSH0 DUP1 REVERT JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH0 SWAP2 POP SWAP1 POP DUP1 PUSH0 ADD SLOAD SWAP1 DUP1 PUSH1 0x1 ADD SLOAD SWAP1 POP DUP3 JUMP JUMPDEST PUSH0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH0 PUSH1 0x1 PUSH0 CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 SWAP1 POP DUP1 PUSH1 0x1 ADD PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH1 0xFF AND ISZERO PUSH2 0x3BA JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x3B1 SWAP1 PUSH2 0xCFF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SUB PUSH2 0x428 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x41F SWAP1 PUSH2 0xD67 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x1 PUSH0 DUP5 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 PUSH1 0x1 ADD PUSH1 0x1 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0x592 JUMPI PUSH1 0x1 PUSH0 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 PUSH1 0x1 ADD PUSH1 0x1 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP2 POP CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SUB PUSH2 0x58D JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x584 SWAP1 PUSH2 0xDCF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH2 0x429 JUMP JUMPDEST PUSH1 0x1 DUP2 PUSH1 0x1 ADD PUSH0 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH1 0xFF MUL NOT AND SWAP1 DUP4 ISZERO ISZERO MUL OR SWAP1 SSTORE POP DUP2 DUP2 PUSH1 0x1 ADD PUSH1 0x1 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MUL NOT AND SWAP1 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND MUL OR SWAP1 SSTORE POP PUSH0 PUSH1 0x1 PUSH0 DUP5 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 SWAP1 POP DUP1 PUSH1 0x1 ADD PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH1 0xFF AND ISZERO PUSH2 0x68C JUMPI DUP2 PUSH0 ADD SLOAD PUSH1 0x2 DUP3 PUSH1 0x2 ADD SLOAD DUP2 SLOAD DUP2 LT PUSH2 0x663 JUMPI PUSH2 0x662 PUSH2 0xC28 JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD PUSH0 DUP3 DUP3 SLOAD PUSH2 0x680 SWAP2 SWAP1 PUSH2 0xC82 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP PUSH2 0x6A9 JUMP JUMPDEST DUP2 PUSH0 ADD SLOAD DUP2 PUSH0 ADD PUSH0 DUP3 DUP3 SLOAD PUSH2 0x6A1 SWAP2 SWAP1 PUSH2 0xC82 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMPDEST POP POP POP JUMP JUMPDEST PUSH0 DUP1 PUSH0 SWAP1 POP PUSH0 JUMPDEST PUSH1 0x2 DUP1 SLOAD SWAP1 POP DUP2 LT ISZERO PUSH2 0x724 JUMPI DUP2 PUSH1 0x2 DUP3 DUP2 SLOAD DUP2 LT PUSH2 0x6D7 JUMPI PUSH2 0x6D6 PUSH2 0xC28 JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD SLOAD GT ISZERO PUSH2 0x717 JUMPI PUSH1 0x2 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x701 JUMPI PUSH2 0x700 PUSH2 0xC28 JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD SLOAD SWAP2 POP DUP1 SWAP3 POP JUMPDEST DUP1 DUP1 PUSH1 0x1 ADD SWAP2 POP POP PUSH2 0x6B5 JUMP JUMPDEST POP POP SWAP1 JUMP JUMPDEST PUSH0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0x7B6 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x7AD SWAP1 PUSH2 0xE5D JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x1 PUSH0 DUP3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 PUSH1 0x1 ADD PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH1 0xFF AND ISZERO PUSH2 0x843 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x83A SWAP1 PUSH2 0xEC5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH0 PUSH1 0x1 PUSH0 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 PUSH0 ADD SLOAD EQ PUSH2 0x88D JUMPI PUSH0 DUP1 REVERT JUMPDEST PUSH1 0x1 DUP1 PUSH0 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 PUSH0 ADD DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x20 MSTORE DUP1 PUSH0 MSTORE PUSH1 0x40 PUSH0 KECCAK256 PUSH0 SWAP2 POP SWAP1 POP DUP1 PUSH0 ADD SLOAD SWAP1 DUP1 PUSH1 0x1 ADD PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH1 0xFF AND SWAP1 DUP1 PUSH1 0x1 ADD PUSH1 0x1 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 DUP1 PUSH1 0x2 ADD SLOAD SWAP1 POP DUP5 JUMP JUMPDEST PUSH0 PUSH1 0x2 PUSH2 0x937 PUSH2 0x6AE JUMP JUMPDEST DUP2 SLOAD DUP2 LT PUSH2 0x948 JUMPI PUSH2 0x947 PUSH2 0xC28 JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH0 ADD SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x972 DUP2 PUSH2 0x960 JUMP JUMPDEST DUP2 EQ PUSH2 0x97C JUMPI PUSH0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x98D DUP2 PUSH2 0x969 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x9A8 JUMPI PUSH2 0x9A7 PUSH2 0x95C JUMP JUMPDEST JUMPDEST PUSH0 PUSH2 0x9B5 DUP5 DUP3 DUP6 ADD PUSH2 0x97F JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x9D0 DUP2 PUSH2 0x9BE JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH2 0x9DF DUP2 PUSH2 0x960 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 PUSH1 0x40 DUP3 ADD SWAP1 POP PUSH2 0x9F8 PUSH0 DUP4 ADD DUP6 PUSH2 0x9C7 JUMP JUMPDEST PUSH2 0xA05 PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0x9D6 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0xA35 DUP3 PUSH2 0xA0C JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0xA45 DUP2 PUSH2 0xA2B JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0xA5E PUSH0 DUP4 ADD DUP5 PUSH2 0xA3C JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0xA6D DUP2 PUSH2 0xA2B JUMP JUMPDEST DUP2 EQ PUSH2 0xA77 JUMPI PUSH0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0xA88 DUP2 PUSH2 0xA64 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xAA3 JUMPI PUSH2 0xAA2 PUSH2 0x95C JUMP JUMPDEST JUMPDEST PUSH0 PUSH2 0xAB0 DUP5 DUP3 DUP6 ADD PUSH2 0xA7A JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0xACC PUSH0 DUP4 ADD DUP5 PUSH2 0x9D6 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 ISZERO ISZERO SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0xAE6 DUP2 PUSH2 0xAD2 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 PUSH1 0x80 DUP3 ADD SWAP1 POP PUSH2 0xAFF PUSH0 DUP4 ADD DUP8 PUSH2 0x9D6 JUMP JUMPDEST PUSH2 0xB0C PUSH1 0x20 DUP4 ADD DUP7 PUSH2 0xADD JUMP JUMPDEST PUSH2 0xB19 PUSH1 0x40 DUP4 ADD DUP6 PUSH2 0xA3C JUMP JUMPDEST PUSH2 0xB26 PUSH1 0x60 DUP4 ADD DUP5 PUSH2 0x9D6 JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0xB42 PUSH0 DUP4 ADD DUP5 PUSH2 0x9C7 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x486173206E6F20726967687420746F20766F7465000000000000000000000000 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xB8C PUSH1 0x14 DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xB97 DUP3 PUSH2 0xB58 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xBB9 DUP2 PUSH2 0xB80 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x416C726561647920766F7465642E000000000000000000000000000000000000 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xBF4 PUSH1 0xE DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xBFF DUP3 PUSH2 0xBC0 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xC21 DUP2 PUSH2 0xBE8 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH0 PUSH2 0xC8C DUP3 PUSH2 0x960 JUMP JUMPDEST SWAP2 POP PUSH2 0xC97 DUP4 PUSH2 0x960 JUMP JUMPDEST SWAP3 POP DUP3 DUP3 ADD SWAP1 POP DUP1 DUP3 GT ISZERO PUSH2 0xCAF JUMPI PUSH2 0xCAE PUSH2 0xC55 JUMP JUMPDEST JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x596F7520616C726561647920766F7465642E0000000000000000000000000000 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xCE9 PUSH1 0x12 DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xCF4 DUP3 PUSH2 0xCB5 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xD16 DUP2 PUSH2 0xCDD JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x53656C662D64656C65676174696F6E20697320646973616C6C6F7765642E0000 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xD51 PUSH1 0x1E DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xD5C DUP3 PUSH2 0xD1D JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xD7E DUP2 PUSH2 0xD45 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x466F756E64206C6F6F7020696E2064656C65676174696F6E2E00000000000000 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xDB9 PUSH1 0x19 DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xDC4 DUP3 PUSH2 0xD85 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xDE6 DUP2 PUSH2 0xDAD JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4F6E6C79206368616972706572736F6E2063616E206769766520726967687420 PUSH0 DUP3 ADD MSTORE PUSH32 0x746F20766F74652E000000000000000000000000000000000000000000000000 PUSH1 0x20 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xE47 PUSH1 0x28 DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xE52 DUP3 PUSH2 0xDED JUMP JUMPDEST PUSH1 0x40 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xE74 DUP2 PUSH2 0xE3B JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x54686520766F74657220616C726561647920766F7465642E0000000000000000 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xEAF PUSH1 0x18 DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xEBA DUP3 PUSH2 0xE7B JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xEDC DUP2 PUSH2 0xEA3 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SSTORE 0xD5 0xE9 0xB4 BLOCKHASH 0xE9 0x5C 0xCE JUMP MSTORE 0xE7 SDIV PUSH30 0x51F64F4DD1C78387E400F8619575891971308C64736F6C63430008160033 ",
"sourceMap": "157:4355:0:-:0;;;955:481;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1023:10;1009:11;;:24;;;;;;;;;;;;;;;;;;1072:1;1043:6;:19;1050:11;;;;;;;;;;;1043:19;;;;;;;;;;;;;;;:26;;:30;;;;1089:6;1084:346;1105:13;:20;1101:1;:24;1084:346;;;1309:9;1324:94;;;;;;;;1357:13;1371:1;1357:16;;;;;;;;:::i;:::-;;;;;;;;1324:94;;;;1402:1;1324:94;;;1309:110;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1127:3;;;;;;;1084:346;;;;955:481;157:4355;;7:75:1;40:6;73:2;67:9;57:19;;7:75;:::o;88:117::-;197:1;194;187:12;211:117;320:1;317;310:12;334:117;443:1;440;433:12;457:102;498:6;549:2;545:7;540:2;533:5;529:14;525:28;515:38;;457:102;;;:::o;565:180::-;613:77;610:1;603:88;710:4;707:1;700:15;734:4;731:1;724:15;751:281;834:27;856:4;834:27;:::i;:::-;826:6;822:40;964:6;952:10;949:22;928:18;916:10;913:34;910:62;907:88;;;975:18;;:::i;:::-;907:88;1015:10;1011:2;1004:22;794:238;751:281;;:::o;1038:129::-;1072:6;1099:20;;:::i;:::-;1089:30;;1128:33;1156:4;1148:6;1128:33;:::i;:::-;1038:129;;;:::o;1173:311::-;1250:4;1340:18;1332:6;1329:30;1326:56;;;1362:18;;:::i;:::-;1326:56;1412:4;1404:6;1400:17;1392:25;;1472:4;1466;1462:15;1454:23;;1173:311;;;:::o;1490:117::-;1599:1;1596;1589:12;1613:77;1650:7;1679:5;1668:16;;1613:77;;;:::o;1696:122::-;1769:24;1787:5;1769:24;:::i;:::-;1762:5;1759:35;1749:63;;1808:1;1805;1798:12;1749:63;1696:122;:::o;1824:143::-;1881:5;1912:6;1906:13;1897:22;;1928:33;1955:5;1928:33;:::i;:::-;1824:143;;;;:::o;1990:732::-;2097:5;2122:81;2138:64;2195:6;2138:64;:::i;:::-;2122:81;:::i;:::-;2113:90;;2223:5;2252:6;2245:5;2238:21;2286:4;2279:5;2275:16;2268:23;;2339:4;2331:6;2327:17;2319:6;2315:30;2368:3;2360:6;2357:15;2354:122;;;2387:79;;:::i;:::-;2354:122;2502:6;2485:231;2519:6;2514:3;2511:15;2485:231;;;2594:3;2623:48;2667:3;2655:10;2623:48;:::i;:::-;2618:3;2611:61;2701:4;2696:3;2692:14;2685:21;;2561:155;2545:4;2540:3;2536:14;2529:21;;2485:231;;;2489:21;2103:619;;1990:732;;;;;:::o;2745:385::-;2827:5;2876:3;2869:4;2861:6;2857:17;2853:27;2843:122;;2884:79;;:::i;:::-;2843:122;2994:6;2988:13;3019:105;3120:3;3112:6;3105:4;3097:6;3093:17;3019:105;:::i;:::-;3010:114;;2833:297;2745:385;;;;:::o;3136:554::-;3231:6;3280:2;3268:9;3259:7;3255:23;3251:32;3248:119;;;3286:79;;:::i;:::-;3248:119;3427:1;3416:9;3412:17;3406:24;3457:18;3449:6;3446:30;3443:117;;;3479:79;;:::i;:::-;3443:117;3584:89;3665:7;3656:6;3645:9;3641:22;3584:89;:::i;:::-;3574:99;;3377:306;3136:554;;;;:::o;3696:180::-;3744:77;3741:1;3734:88;3841:4;3838:1;3831:15;3865:4;3862:1;3855:15;157:4355:0;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {
"@chairperson_18": {
"entryPoint": 774,
"id": 18,
"parameterSlots": 0,
"returnSlots": 0
},
"@delegate_207": {
"entryPoint": 809,
"id": 207,
"parameterSlots": 1,
"returnSlots": 0
},
"@giveRightToVote_111": {
"entryPoint": 1833,
"id": 111,
"parameterSlots": 1,
"returnSlots": 0
},
"@proposals_27": {
"entryPoint": 727,
"id": 27,
"parameterSlots": 0,
"returnSlots": 0
},
"@vote_257": {
"entryPoint": 412,
"id": 257,
"parameterSlots": 1,
"returnSlots": 0
},
"@voters_23": {
"entryPoint": 2260,
"id": 23,
"parameterSlots": 0,
"returnSlots": 0
},
"@winnerName_315": {
"entryPoint": 2348,
"id": 315,
"parameterSlots": 0,
"returnSlots": 1
},
"@winningProposal_300": {
"entryPoint": 1710,
"id": 300,
"parameterSlots": 0,
"returnSlots": 1
},
"abi_decode_t_address": {
"entryPoint": 2682,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_t_uint256": {
"entryPoint": 2431,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_address": {
"entryPoint": 2702,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_uint256": {
"entryPoint": 2451,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_address_to_t_address_fromStack": {
"entryPoint": 2620,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_bool_to_t_bool_fromStack": {
"entryPoint": 2781,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_bytes32_to_t_bytes32_fromStack": {
"entryPoint": 2503,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_stringliteral_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e_to_t_string_memory_ptr_fromStack": {
"entryPoint": 2944,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84_to_t_string_memory_ptr_fromStack": {
"entryPoint": 3048,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f_to_t_string_memory_ptr_fromStack": {
"entryPoint": 3293,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95_to_t_string_memory_ptr_fromStack": {
"entryPoint": 3643,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c_to_t_string_memory_ptr_fromStack": {
"entryPoint": 3501,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d_to_t_string_memory_ptr_fromStack": {
"entryPoint": 3747,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947_to_t_string_memory_ptr_fromStack": {
"entryPoint": 3397,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_uint256_to_t_uint256_fromStack": {
"entryPoint": 2518,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_tuple_t_address__to_t_address__fromStack_reversed": {
"entryPoint": 2635,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed": {
"entryPoint": 2863,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_bytes32_t_uint256__to_t_bytes32_t_uint256__fromStack_reversed": {
"entryPoint": 2533,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 2978,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 3082,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 3327,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 3677,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 3535,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 3781,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 3431,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": {
"entryPoint": 2745,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_uint256_t_bool_t_address_t_uint256__to_t_uint256_t_bool_t_address_t_uint256__fromStack_reversed": {
"entryPoint": 2796,
"id": null,
"parameterSlots": 5,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": null,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_fromStack": {
"entryPoint": 2888,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"checked_add_t_uint256": {
"entryPoint": 3202,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"cleanup_t_address": {
"entryPoint": 2603,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_bool": {
"entryPoint": 2770,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_bytes32": {
"entryPoint": 2494,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint160": {
"entryPoint": 2572,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint256": {
"entryPoint": 2400,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"panic_error_0x11": {
"entryPoint": 3157,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x32": {
"entryPoint": 3112,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": null,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 2396,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"store_literal_in_memory_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e": {
"entryPoint": 2904,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84": {
"entryPoint": 3008,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f": {
"entryPoint": 3253,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95": {
"entryPoint": 3565,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c": {
"entryPoint": 3461,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d": {
"entryPoint": 3707,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947": {
"entryPoint": 3357,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"validator_revert_t_address": {
"entryPoint": 2660,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"validator_revert_t_uint256": {
"entryPoint": 2409,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nativeSrc": "0:11722:1",
"nodeType": "YulBlock",
"src": "0:11722:1",
"statements": [
{
"body": {
"nativeSrc": "47:35:1",
"nodeType": "YulBlock",
"src": "47:35:1",
"statements": [
{
"nativeSrc": "57:19:1",
"nodeType": "YulAssignment",
"src": "57:19:1",
"value": {
"arguments": [
{
"kind": "number",
"nativeSrc": "73:2:1",
"nodeType": "YulLiteral",
"src": "73:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "67:5:1",
"nodeType": "YulIdentifier",
"src": "67:5:1"
},
"nativeSrc": "67:9:1",
"nodeType": "YulFunctionCall",
"src": "67:9:1"
},
"variableNames": [
{
"name": "memPtr",
"nativeSrc": "57:6:1",
"nodeType": "YulIdentifier",
"src": "57:6:1"
}
]
}
]
},
"name": "allocate_unbounded",
"nativeSrc": "7:75:1",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nativeSrc": "40:6:1",
"nodeType": "YulTypedName",
"src": "40:6:1",
"type": ""
}
],
"src": "7:75:1"
},
{
"body": {
"nativeSrc": "177:28:1",
"nodeType": "YulBlock",
"src": "177:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "194:1:1",
"nodeType": "YulLiteral",
"src": "194:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "197:1:1",
"nodeType": "YulLiteral",
"src": "197:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "187:6:1",
"nodeType": "YulIdentifier",
"src": "187:6:1"
},
"nativeSrc": "187:12:1",
"nodeType": "YulFunctionCall",
"src": "187:12:1"
},
"nativeSrc": "187:12:1",
"nodeType": "YulExpressionStatement",
"src": "187:12:1"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nativeSrc": "88:117:1",
"nodeType": "YulFunctionDefinition",
"src": "88:117:1"
},
{
"body": {
"nativeSrc": "300:28:1",
"nodeType": "YulBlock",
"src": "300:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "317:1:1",
"nodeType": "YulLiteral",
"src": "317:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "320:1:1",
"nodeType": "YulLiteral",
"src": "320:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "310:6:1",
"nodeType": "YulIdentifier",
"src": "310:6:1"
},
"nativeSrc": "310:12:1",
"nodeType": "YulFunctionCall",
"src": "310:12:1"
},
"nativeSrc": "310:12:1",
"nodeType": "YulExpressionStatement",
"src": "310:12:1"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nativeSrc": "211:117:1",
"nodeType": "YulFunctionDefinition",
"src": "211:117:1"
},
{
"body": {
"nativeSrc": "379:32:1",
"nodeType": "YulBlock",
"src": "379:32:1",
"statements": [
{
"nativeSrc": "389:16:1",
"nodeType": "YulAssignment",
"src": "389:16:1",
"value": {
"name": "value",
"nativeSrc": "400:5:1",
"nodeType": "YulIdentifier",
"src": "400:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nativeSrc": "389:7:1",
"nodeType": "YulIdentifier",
"src": "389:7:1"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nativeSrc": "334:77:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "361:5:1",
"nodeType": "YulTypedName",
"src": "361:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nativeSrc": "371:7:1",
"nodeType": "YulTypedName",
"src": "371:7:1",
"type": ""
}
],
"src": "334:77:1"
},
{
"body": {
"nativeSrc": "460:79:1",
"nodeType": "YulBlock",
"src": "460:79:1",
"statements": [
{
"body": {
"nativeSrc": "517:16:1",
"nodeType": "YulBlock",
"src": "517:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "526:1:1",
"nodeType": "YulLiteral",
"src": "526:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "529:1:1",
"nodeType": "YulLiteral",
"src": "529:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "519:6:1",
"nodeType": "YulIdentifier",
"src": "519:6:1"
},
"nativeSrc": "519:12:1",
"nodeType": "YulFunctionCall",
"src": "519:12:1"
},
"nativeSrc": "519:12:1",
"nodeType": "YulExpressionStatement",
"src": "519:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nativeSrc": "483:5:1",
"nodeType": "YulIdentifier",
"src": "483:5:1"
},
{
"arguments": [
{
"name": "value",
"nativeSrc": "508:5:1",
"nodeType": "YulIdentifier",
"src": "508:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "490:17:1",
"nodeType": "YulIdentifier",
"src": "490:17:1"
},
"nativeSrc": "490:24:1",
"nodeType": "YulFunctionCall",
"src": "490:24:1"
}
],
"functionName": {
"name": "eq",
"nativeSrc": "480:2:1",
"nodeType": "YulIdentifier",
"src": "480:2:1"
},
"nativeSrc": "480:35:1",
"nodeType": "YulFunctionCall",
"src": "480:35:1"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "473:6:1",
"nodeType": "YulIdentifier",
"src": "473:6:1"
},
"nativeSrc": "473:43:1",
"nodeType": "YulFunctionCall",
"src": "473:43:1"
},
"nativeSrc": "470:63:1",
"nodeType": "YulIf",
"src": "470:63:1"
}
]
},
"name": "validator_revert_t_uint256",
"nativeSrc": "417:122:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "453:5:1",
"nodeType": "YulTypedName",
"src": "453:5:1",
"type": ""
}
],
"src": "417:122:1"
},
{
"body": {
"nativeSrc": "597:87:1",
"nodeType": "YulBlock",
"src": "597:87:1",
"statements": [
{
"nativeSrc": "607:29:1",
"nodeType": "YulAssignment",
"src": "607:29:1",
"value": {
"arguments": [
{
"name": "offset",
"nativeSrc": "629:6:1",
"nodeType": "YulIdentifier",
"src": "629:6:1"
}
],
"functionName": {
"name": "calldataload",
"nativeSrc": "616:12:1",
"nodeType": "YulIdentifier",
"src": "616:12:1"
},
"nativeSrc": "616:20:1",
"nodeType": "YulFunctionCall",
"src": "616:20:1"
},
"variableNames": [
{
"name": "value",
"nativeSrc": "607:5:1",
"nodeType": "YulIdentifier",
"src": "607:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nativeSrc": "672:5:1",
"nodeType": "YulIdentifier",
"src": "672:5:1"
}
],
"functionName": {
"name": "validator_revert_t_uint256",
"nativeSrc": "645:26:1",
"nodeType": "YulIdentifier",
"src": "645:26:1"
},
"nativeSrc": "645:33:1",
"nodeType": "YulFunctionCall",
"src": "645:33:1"
},
"nativeSrc": "645:33:1",
"nodeType": "YulExpressionStatement",
"src": "645:33:1"
}
]
},
"name": "abi_decode_t_uint256",
"nativeSrc": "545:139:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nativeSrc": "575:6:1",
"nodeType": "YulTypedName",
"src": "575:6:1",
"type": ""
},
{
"name": "end",
"nativeSrc": "583:3:1",
"nodeType": "YulTypedName",
"src": "583:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nativeSrc": "591:5:1",
"nodeType": "YulTypedName",
"src": "591:5:1",
"type": ""
}
],
"src": "545:139:1"
},
{
"body": {
"nativeSrc": "756:263:1",
"nodeType": "YulBlock",
"src": "756:263:1",
"statements": [
{
"body": {
"nativeSrc": "802:83:1",
"nodeType": "YulBlock",
"src": "802:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nativeSrc": "804:77:1",
"nodeType": "YulIdentifier",
"src": "804:77:1"
},
"nativeSrc": "804:79:1",
"nodeType": "YulFunctionCall",
"src": "804:79:1"
},
"nativeSrc": "804:79:1",
"nodeType": "YulExpressionStatement",
"src": "804:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nativeSrc": "777:7:1",
"nodeType": "YulIdentifier",
"src": "777:7:1"
},
{
"name": "headStart",
"nativeSrc": "786:9:1",
"nodeType": "YulIdentifier",
"src": "786:9:1"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "773:3:1",
"nodeType": "YulIdentifier",
"src": "773:3:1"
},
"nativeSrc": "773:23:1",
"nodeType": "YulFunctionCall",
"src": "773:23:1"
},
{
"kind": "number",
"nativeSrc": "798:2:1",
"nodeType": "YulLiteral",
"src": "798:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nativeSrc": "769:3:1",
"nodeType": "YulIdentifier",
"src": "769:3:1"
},
"nativeSrc": "769:32:1",
"nodeType": "YulFunctionCall",
"src": "769:32:1"
},
"nativeSrc": "766:119:1",
"nodeType": "YulIf",
"src": "766:119:1"
},
{
"nativeSrc": "895:117:1",
"nodeType": "YulBlock",
"src": "895:117:1",
"statements": [
{
"nativeSrc": "910:15:1",
"nodeType": "YulVariableDeclaration",
"src": "910:15:1",
"value": {
"kind": "number",
"nativeSrc": "924:1:1",
"nodeType": "YulLiteral",
"src": "924:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nativeSrc": "914:6:1",
"nodeType": "YulTypedName",
"src": "914:6:1",
"type": ""
}
]
},
{
"nativeSrc": "939:63:1",
"nodeType": "YulAssignment",
"src": "939:63:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "974:9:1",
"nodeType": "YulIdentifier",
"src": "974:9:1"
},
{
"name": "offset",
"nativeSrc": "985:6:1",
"nodeType": "YulIdentifier",
"src": "985:6:1"
}
],
"functionName": {
"name": "add",
"nativeSrc": "970:3:1",
"nodeType": "YulIdentifier",
"src": "970:3:1"
},
"nativeSrc": "970:22:1",
"nodeType": "YulFunctionCall",
"src": "970:22:1"
},
{
"name": "dataEnd",
"nativeSrc": "994:7:1",
"nodeType": "YulIdentifier",
"src": "994:7:1"
}
],
"functionName": {
"name": "abi_decode_t_uint256",
"nativeSrc": "949:20:1",
"nodeType": "YulIdentifier",
"src": "949:20:1"
},
"nativeSrc": "949:53:1",
"nodeType": "YulFunctionCall",
"src": "949:53:1"
},
"variableNames": [
{
"name": "value0",
"nativeSrc": "939:6:1",
"nodeType": "YulIdentifier",
"src": "939:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_uint256",
"nativeSrc": "690:329:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "726:9:1",
"nodeType": "YulTypedName",
"src": "726:9:1",
"type": ""
},
{
"name": "dataEnd",
"nativeSrc": "737:7:1",
"nodeType": "YulTypedName",
"src": "737:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nativeSrc": "749:6:1",
"nodeType": "YulTypedName",
"src": "749:6:1",
"type": ""
}
],
"src": "690:329:1"
},
{
"body": {
"nativeSrc": "1070:32:1",
"nodeType": "YulBlock",
"src": "1070:32:1",
"statements": [
{
"nativeSrc": "1080:16:1",
"nodeType": "YulAssignment",
"src": "1080:16:1",
"value": {
"name": "value",
"nativeSrc": "1091:5:1",
"nodeType": "YulIdentifier",
"src": "1091:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nativeSrc": "1080:7:1",
"nodeType": "YulIdentifier",
"src": "1080:7:1"
}
]
}
]
},
"name": "cleanup_t_bytes32",
"nativeSrc": "1025:77:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "1052:5:1",
"nodeType": "YulTypedName",
"src": "1052:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nativeSrc": "1062:7:1",
"nodeType": "YulTypedName",
"src": "1062:7:1",
"type": ""
}
],
"src": "1025:77:1"
},
{
"body": {
"nativeSrc": "1173:53:1",
"nodeType": "YulBlock",
"src": "1173:53:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "1190:3:1",
"nodeType": "YulIdentifier",
"src": "1190:3:1"
},
{
"arguments": [
{
"name": "value",
"nativeSrc": "1213:5:1",
"nodeType": "YulIdentifier",
"src": "1213:5:1"
}
],
"functionName": {
"name": "cleanup_t_bytes32",
"nativeSrc": "1195:17:1",
"nodeType": "YulIdentifier",
"src": "1195:17:1"
},
"nativeSrc": "1195:24:1",
"nodeType": "YulFunctionCall",
"src": "1195:24:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "1183:6:1",
"nodeType": "YulIdentifier",
"src": "1183:6:1"
},
"nativeSrc": "1183:37:1",
"nodeType": "YulFunctionCall",
"src": "1183:37:1"
},
"nativeSrc": "1183:37:1",
"nodeType": "YulExpressionStatement",
"src": "1183:37:1"
}
]
},
"name": "abi_encode_t_bytes32_to_t_bytes32_fromStack",
"nativeSrc": "1108:118:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "1161:5:1",
"nodeType": "YulTypedName",
"src": "1161:5:1",
"type": ""
},
{
"name": "pos",
"nativeSrc": "1168:3:1",
"nodeType": "YulTypedName",
"src": "1168:3:1",
"type": ""
}
],
"src": "1108:118:1"
},
{
"body": {
"nativeSrc": "1297:53:1",
"nodeType": "YulBlock",
"src": "1297:53:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "1314:3:1",
"nodeType": "YulIdentifier",
"src": "1314:3:1"
},
{
"arguments": [
{
"name": "value",
"nativeSrc": "1337:5:1",
"nodeType": "YulIdentifier",
"src": "1337:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "1319:17:1",
"nodeType": "YulIdentifier",
"src": "1319:17:1"
},
"nativeSrc": "1319:24:1",
"nodeType": "YulFunctionCall",
"src": "1319:24:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "1307:6:1",
"nodeType": "YulIdentifier",
"src": "1307:6:1"
},
"nativeSrc": "1307:37:1",
"nodeType": "YulFunctionCall",
"src": "1307:37:1"
},
"nativeSrc": "1307:37:1",
"nodeType": "YulExpressionStatement",
"src": "1307:37:1"
}
]
},
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nativeSrc": "1232:118:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "1285:5:1",
"nodeType": "YulTypedName",
"src": "1285:5:1",
"type": ""
},
{
"name": "pos",
"nativeSrc": "1292:3:1",
"nodeType": "YulTypedName",
"src": "1292:3:1",
"type": ""
}
],
"src": "1232:118:1"
},
{
"body": {
"nativeSrc": "1482:206:1",
"nodeType": "YulBlock",
"src": "1482:206:1",
"statements": [
{
"nativeSrc": "1492:26:1",
"nodeType": "YulAssignment",
"src": "1492:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "1504:9:1",
"nodeType": "YulIdentifier",
"src": "1504:9:1"
},
{
"kind": "number",
"nativeSrc": "1515:2:1",
"nodeType": "YulLiteral",
"src": "1515:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nativeSrc": "1500:3:1",
"nodeType": "YulIdentifier",
"src": "1500:3:1"
},
"nativeSrc": "1500:18:1",
"nodeType": "YulFunctionCall",
"src": "1500:18:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "1492:4:1",
"nodeType": "YulIdentifier",
"src": "1492:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nativeSrc": "1572:6:1",
"nodeType": "YulIdentifier",
"src": "1572:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "1585:9:1",
"nodeType": "YulIdentifier",
"src": "1585:9:1"
},
{
"kind": "number",
"nativeSrc": "1596:1:1",
"nodeType": "YulLiteral",
"src": "1596:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "1581:3:1",
"nodeType": "YulIdentifier",
"src": "1581:3:1"
},
"nativeSrc": "1581:17:1",
"nodeType": "YulFunctionCall",
"src": "1581:17:1"
}
],
"functionName": {
"name": "abi_encode_t_bytes32_to_t_bytes32_fromStack",
"nativeSrc": "1528:43:1",
"nodeType": "YulIdentifier",
"src": "1528:43:1"
},
"nativeSrc": "1528:71:1",
"nodeType": "YulFunctionCall",
"src": "1528:71:1"
},
"nativeSrc": "1528:71:1",
"nodeType": "YulExpressionStatement",
"src": "1528:71:1"
},
{
"expression": {
"arguments": [
{
"name": "value1",
"nativeSrc": "1653:6:1",
"nodeType": "YulIdentifier",
"src": "1653:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "1666:9:1",
"nodeType": "YulIdentifier",
"src": "1666:9:1"
},
{
"kind": "number",
"nativeSrc": "1677:2:1",
"nodeType": "YulLiteral",
"src": "1677:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "1662:3:1",
"nodeType": "YulIdentifier",
"src": "1662:3:1"
},
"nativeSrc": "1662:18:1",
"nodeType": "YulFunctionCall",
"src": "1662:18:1"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nativeSrc": "1609:43:1",
"nodeType": "YulIdentifier",
"src": "1609:43:1"
},
"nativeSrc": "1609:72:1",
"nodeType": "YulFunctionCall",
"src": "1609:72:1"
},
"nativeSrc": "1609:72:1",
"nodeType": "YulExpressionStatement",
"src": "1609:72:1"
}
]
},
"name": "abi_encode_tuple_t_bytes32_t_uint256__to_t_bytes32_t_uint256__fromStack_reversed",
"nativeSrc": "1356:332:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "1446:9:1",
"nodeType": "YulTypedName",
"src": "1446:9:1",
"type": ""
},
{
"name": "value1",
"nativeSrc": "1458:6:1",
"nodeType": "YulTypedName",
"src": "1458:6:1",
"type": ""
},
{
"name": "value0",
"nativeSrc": "1466:6:1",
"nodeType": "YulTypedName",
"src": "1466:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "1477:4:1",
"nodeType": "YulTypedName",
"src": "1477:4:1",
"type": ""
}
],
"src": "1356:332:1"
},
{
"body": {
"nativeSrc": "1739:81:1",
"nodeType": "YulBlock",
"src": "1739:81:1",
"statements": [
{
"nativeSrc": "1749:65:1",
"nodeType": "YulAssignment",
"src": "1749:65:1",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "1764:5:1",
"nodeType": "YulIdentifier",
"src": "1764:5:1"
},
{
"kind": "number",
"nativeSrc": "1771:42:1",
"nodeType": "YulLiteral",
"src": "1771:42:1",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nativeSrc": "1760:3:1",
"nodeType": "YulIdentifier",
"src": "1760:3:1"
},
"nativeSrc": "1760:54:1",
"nodeType": "YulFunctionCall",
"src": "1760:54:1"
},
"variableNames": [
{
"name": "cleaned",
"nativeSrc": "1749:7:1",
"nodeType": "YulIdentifier",
"src": "1749:7:1"
}
]
}
]
},
"name": "cleanup_t_uint160",
"nativeSrc": "1694:126:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "1721:5:1",
"nodeType": "YulTypedName",
"src": "1721:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nativeSrc": "1731:7:1",
"nodeType": "YulTypedName",
"src": "1731:7:1",
"type": ""
}
],
"src": "1694:126:1"
},
{
"body": {
"nativeSrc": "1871:51:1",
"nodeType": "YulBlock",
"src": "1871:51:1",
"statements": [
{
"nativeSrc": "1881:35:1",
"nodeType": "YulAssignment",
"src": "1881:35:1",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "1910:5:1",
"nodeType": "YulIdentifier",
"src": "1910:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nativeSrc": "1892:17:1",
"nodeType": "YulIdentifier",
"src": "1892:17:1"
},
"nativeSrc": "1892:24:1",
"nodeType": "YulFunctionCall",
"src": "1892:24:1"
},
"variableNames": [
{
"name": "cleaned",
"nativeSrc": "1881:7:1",
"nodeType": "YulIdentifier",
"src": "1881:7:1"
}
]
}
]
},
"name": "cleanup_t_address",
"nativeSrc": "1826:96:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "1853:5:1",
"nodeType": "YulTypedName",
"src": "1853:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nativeSrc": "1863:7:1",
"nodeType": "YulTypedName",
"src": "1863:7:1",
"type": ""
}
],
"src": "1826:96:1"
},
{
"body": {
"nativeSrc": "1993:53:1",
"nodeType": "YulBlock",
"src": "1993:53:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "2010:3:1",
"nodeType": "YulIdentifier",
"src": "2010:3:1"
},
{
"arguments": [
{
"name": "value",
"nativeSrc": "2033:5:1",
"nodeType": "YulIdentifier",
"src": "2033:5:1"
}
],
"functionName": {
"name": "cleanup_t_address",
"nativeSrc": "2015:17:1",
"nodeType": "YulIdentifier",
"src": "2015:17:1"
},
"nativeSrc": "2015:24:1",
"nodeType": "YulFunctionCall",
"src": "2015:24:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "2003:6:1",
"nodeType": "YulIdentifier",
"src": "2003:6:1"
},
"nativeSrc": "2003:37:1",
"nodeType": "YulFunctionCall",
"src": "2003:37:1"
},
"nativeSrc": "2003:37:1",
"nodeType": "YulExpressionStatement",
"src": "2003:37:1"
}
]
},
"name": "abi_encode_t_address_to_t_address_fromStack",
"nativeSrc": "1928:118:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "1981:5:1",
"nodeType": "YulTypedName",
"src": "1981:5:1",
"type": ""
},
{
"name": "pos",
"nativeSrc": "1988:3:1",
"nodeType": "YulTypedName",
"src": "1988:3:1",
"type": ""
}
],
"src": "1928:118:1"
},
{
"body": {
"nativeSrc": "2150:124:1",
"nodeType": "YulBlock",
"src": "2150:124:1",
"statements": [
{
"nativeSrc": "2160:26:1",
"nodeType": "YulAssignment",
"src": "2160:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "2172:9:1",
"nodeType": "YulIdentifier",
"src": "2172:9:1"
},
{
"kind": "number",
"nativeSrc": "2183:2:1",
"nodeType": "YulLiteral",
"src": "2183:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2168:3:1",
"nodeType": "YulIdentifier",
"src": "2168:3:1"
},
"nativeSrc": "2168:18:1",
"nodeType": "YulFunctionCall",
"src": "2168:18:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "2160:4:1",
"nodeType": "YulIdentifier",
"src": "2160:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nativeSrc": "2240:6:1",
"nodeType": "YulIdentifier",
"src": "2240:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "2253:9:1",
"nodeType": "YulIdentifier",
"src": "2253:9:1"
},
{
"kind": "number",
"nativeSrc": "2264:1:1",
"nodeType": "YulLiteral",
"src": "2264:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2249:3:1",
"nodeType": "YulIdentifier",
"src": "2249:3:1"
},
"nativeSrc": "2249:17:1",
"nodeType": "YulFunctionCall",
"src": "2249:17:1"
}
],
"functionName": {
"name": "abi_encode_t_address_to_t_address_fromStack",
"nativeSrc": "2196:43:1",
"nodeType": "YulIdentifier",
"src": "2196:43:1"
},
"nativeSrc": "2196:71:1",
"nodeType": "YulFunctionCall",
"src": "2196:71:1"
},
"nativeSrc": "2196:71:1",
"nodeType": "YulExpressionStatement",
"src": "2196:71:1"
}
]
},
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
"nativeSrc": "2052:222:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "2122:9:1",
"nodeType": "YulTypedName",
"src": "2122:9:1",
"type": ""
},
{
"name": "value0",
"nativeSrc": "2134:6:1",
"nodeType": "YulTypedName",
"src": "2134:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "2145:4:1",
"nodeType": "YulTypedName",
"src": "2145:4:1",
"type": ""
}
],
"src": "2052:222:1"
},
{
"body": {
"nativeSrc": "2323:79:1",
"nodeType": "YulBlock",
"src": "2323:79:1",
"statements": [
{
"body": {
"nativeSrc": "2380:16:1",
"nodeType": "YulBlock",
"src": "2380:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "2389:1:1",
"nodeType": "YulLiteral",
"src": "2389:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "2392:1:1",
"nodeType": "YulLiteral",
"src": "2392:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "2382:6:1",
"nodeType": "YulIdentifier",
"src": "2382:6:1"
},
"nativeSrc": "2382:12:1",
"nodeType": "YulFunctionCall",
"src": "2382:12:1"
},
"nativeSrc": "2382:12:1",
"nodeType": "YulExpressionStatement",
"src": "2382:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nativeSrc": "2346:5:1",
"nodeType": "YulIdentifier",
"src": "2346:5:1"
},
{
"arguments": [
{
"name": "value",
"nativeSrc": "2371:5:1",
"nodeType": "YulIdentifier",
"src": "2371:5:1"
}
],
"functionName": {
"name": "cleanup_t_address",
"nativeSrc": "2353:17:1",
"nodeType": "YulIdentifier",
"src": "2353:17:1"
},
"nativeSrc": "2353:24:1",
"nodeType": "YulFunctionCall",
"src": "2353:24:1"
}
],
"functionName": {
"name": "eq",
"nativeSrc": "2343:2:1",
"nodeType": "YulIdentifier",
"src": "2343:2:1"
},
"nativeSrc": "2343:35:1",
"nodeType": "YulFunctionCall",
"src": "2343:35:1"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "2336:6:1",
"nodeType": "YulIdentifier",
"src": "2336:6:1"
},
"nativeSrc": "2336:43:1",
"nodeType": "YulFunctionCall",
"src": "2336:43:1"
},
"nativeSrc": "2333:63:1",
"nodeType": "YulIf",
"src": "2333:63:1"
}
]
},
"name": "validator_revert_t_address",
"nativeSrc": "2280:122:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "2316:5:1",
"nodeType": "YulTypedName",
"src": "2316:5:1",
"type": ""
}
],
"src": "2280:122:1"
},
{
"body": {
"nativeSrc": "2460:87:1",
"nodeType": "YulBlock",
"src": "2460:87:1",
"statements": [
{
"nativeSrc": "2470:29:1",
"nodeType": "YulAssignment",
"src": "2470:29:1",
"value": {
"arguments": [
{
"name": "offset",
"nativeSrc": "2492:6:1",
"nodeType": "YulIdentifier",
"src": "2492:6:1"
}
],
"functionName": {
"name": "calldataload",
"nativeSrc": "2479:12:1",
"nodeType": "YulIdentifier",
"src": "2479:12:1"
},
"nativeSrc": "2479:20:1",
"nodeType": "YulFunctionCall",
"src": "2479:20:1"
},
"variableNames": [
{
"name": "value",
"nativeSrc": "2470:5:1",
"nodeType": "YulIdentifier",
"src": "2470:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nativeSrc": "2535:5:1",
"nodeType": "YulIdentifier",
"src": "2535:5:1"
}
],
"functionName": {
"name": "validator_revert_t_address",
"nativeSrc": "2508:26:1",
"nodeType": "YulIdentifier",
"src": "2508:26:1"
},
"nativeSrc": "2508:33:1",
"nodeType": "YulFunctionCall",
"src": "2508:33:1"
},
"nativeSrc": "2508:33:1",
"nodeType": "YulExpressionStatement",
"src": "2508:33:1"
}
]
},
"name": "abi_decode_t_address",
"nativeSrc": "2408:139:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nativeSrc": "2438:6:1",
"nodeType": "YulTypedName",
"src": "2438:6:1",
"type": ""
},
{
"name": "end",
"nativeSrc": "2446:3:1",
"nodeType": "YulTypedName",
"src": "2446:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nativeSrc": "2454:5:1",
"nodeType": "YulTypedName",
"src": "2454:5:1",
"type": ""
}
],
"src": "2408:139:1"
},
{
"body": {
"nativeSrc": "2619:263:1",
"nodeType": "YulBlock",
"src": "2619:263:1",
"statements": [
{
"body": {
"nativeSrc": "2665:83:1",
"nodeType": "YulBlock",
"src": "2665:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nativeSrc": "2667:77:1",
"nodeType": "YulIdentifier",
"src": "2667:77:1"
},
"nativeSrc": "2667:79:1",
"nodeType": "YulFunctionCall",
"src": "2667:79:1"
},
"nativeSrc": "2667:79:1",
"nodeType": "YulExpressionStatement",
"src": "2667:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nativeSrc": "2640:7:1",
"nodeType": "YulIdentifier",
"src": "2640:7:1"
},
{
"name": "headStart",
"nativeSrc": "2649:9:1",
"nodeType": "YulIdentifier",
"src": "2649:9:1"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "2636:3:1",
"nodeType": "YulIdentifier",
"src": "2636:3:1"
},
"nativeSrc": "2636:23:1",
"nodeType": "YulFunctionCall",
"src": "2636:23:1"
},
{
"kind": "number",
"nativeSrc": "2661:2:1",
"nodeType": "YulLiteral",
"src": "2661:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nativeSrc": "2632:3:1",
"nodeType": "YulIdentifier",
"src": "2632:3:1"
},
"nativeSrc": "2632:32:1",
"nodeType": "YulFunctionCall",
"src": "2632:32:1"
},
"nativeSrc": "2629:119:1",
"nodeType": "YulIf",
"src": "2629:119:1"
},
{
"nativeSrc": "2758:117:1",
"nodeType": "YulBlock",
"src": "2758:117:1",
"statements": [
{
"nativeSrc": "2773:15:1",
"nodeType": "YulVariableDeclaration",
"src": "2773:15:1",
"value": {
"kind": "number",
"nativeSrc": "2787:1:1",
"nodeType": "YulLiteral",
"src": "2787:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nativeSrc": "2777:6:1",
"nodeType": "YulTypedName",
"src": "2777:6:1",
"type": ""
}
]
},
{
"nativeSrc": "2802:63:1",
"nodeType": "YulAssignment",
"src": "2802:63:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "2837:9:1",
"nodeType": "YulIdentifier",
"src": "2837:9:1"
},
{
"name": "offset",
"nativeSrc": "2848:6:1",
"nodeType": "YulIdentifier",
"src": "2848:6:1"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2833:3:1",
"nodeType": "YulIdentifier",
"src": "2833:3:1"
},
"nativeSrc": "2833:22:1",
"nodeType": "YulFunctionCall",
"src": "2833:22:1"
},
{
"name": "dataEnd",
"nativeSrc": "2857:7:1",
"nodeType": "YulIdentifier",
"src": "2857:7:1"
}
],
"functionName": {
"name": "abi_decode_t_address",
"nativeSrc": "2812:20:1",
"nodeType": "YulIdentifier",
"src": "2812:20:1"
},
"nativeSrc": "2812:53:1",
"nodeType": "YulFunctionCall",
"src": "2812:53:1"
},
"variableNames": [
{
"name": "value0",
"nativeSrc": "2802:6:1",
"nodeType": "YulIdentifier",
"src": "2802:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_address",
"nativeSrc": "2553:329:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "2589:9:1",
"nodeType": "YulTypedName",
"src": "2589:9:1",
"type": ""
},
{
"name": "dataEnd",
"nativeSrc": "2600:7:1",
"nodeType": "YulTypedName",
"src": "2600:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nativeSrc": "2612:6:1",
"nodeType": "YulTypedName",
"src": "2612:6:1",
"type": ""
}
],
"src": "2553:329:1"
},
{
"body": {
"nativeSrc": "2986:124:1",
"nodeType": "YulBlock",
"src": "2986:124:1",
"statements": [
{
"nativeSrc": "2996:26:1",
"nodeType": "YulAssignment",
"src": "2996:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "3008:9:1",
"nodeType": "YulIdentifier",
"src": "3008:9:1"
},
{
"kind": "number",
"nativeSrc": "3019:2:1",
"nodeType": "YulLiteral",
"src": "3019:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3004:3:1",
"nodeType": "YulIdentifier",
"src": "3004:3:1"
},
"nativeSrc": "3004:18:1",
"nodeType": "YulFunctionCall",
"src": "3004:18:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "2996:4:1",
"nodeType": "YulIdentifier",
"src": "2996:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nativeSrc": "3076:6:1",
"nodeType": "YulIdentifier",
"src": "3076:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "3089:9:1",
"nodeType": "YulIdentifier",
"src": "3089:9:1"
},
{
"kind": "number",
"nativeSrc": "3100:1:1",
"nodeType": "YulLiteral",
"src": "3100:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3085:3:1",
"nodeType": "YulIdentifier",
"src": "3085:3:1"
},
"nativeSrc": "3085:17:1",
"nodeType": "YulFunctionCall",
"src": "3085:17:1"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nativeSrc": "3032:43:1",
"nodeType": "YulIdentifier",
"src": "3032:43:1"
},
"nativeSrc": "3032:71:1",
"nodeType": "YulFunctionCall",
"src": "3032:71:1"
},
"nativeSrc": "3032:71:1",
"nodeType": "YulExpressionStatement",
"src": "3032:71:1"
}
]
},
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
"nativeSrc": "2888:222:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "2958:9:1",
"nodeType": "YulTypedName",
"src": "2958:9:1",
"type": ""
},
{
"name": "value0",
"nativeSrc": "2970:6:1",
"nodeType": "YulTypedName",
"src": "2970:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "2981:4:1",
"nodeType": "YulTypedName",
"src": "2981:4:1",
"type": ""
}
],
"src": "2888:222:1"
},
{
"body": {
"nativeSrc": "3158:48:1",
"nodeType": "YulBlock",
"src": "3158:48:1",
"statements": [
{
"nativeSrc": "3168:32:1",
"nodeType": "YulAssignment",
"src": "3168:32:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nativeSrc": "3193:5:1",
"nodeType": "YulIdentifier",
"src": "3193:5:1"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "3186:6:1",
"nodeType": "YulIdentifier",
"src": "3186:6:1"
},
"nativeSrc": "3186:13:1",
"nodeType": "YulFunctionCall",
"src": "3186:13:1"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "3179:6:1",
"nodeType": "YulIdentifier",
"src": "3179:6:1"
},
"nativeSrc": "3179:21:1",
"nodeType": "YulFunctionCall",
"src": "3179:21:1"
},
"variableNames": [
{
"name": "cleaned",
"nativeSrc": "3168:7:1",
"nodeType": "YulIdentifier",
"src": "3168:7:1"
}
]
}
]
},
"name": "cleanup_t_bool",
"nativeSrc": "3116:90:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "3140:5:1",
"nodeType": "YulTypedName",
"src": "3140:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nativeSrc": "3150:7:1",
"nodeType": "YulTypedName",
"src": "3150:7:1",
"type": ""
}
],
"src": "3116:90:1"
},
{
"body": {
"nativeSrc": "3271:50:1",
"nodeType": "YulBlock",
"src": "3271:50:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "3288:3:1",
"nodeType": "YulIdentifier",
"src": "3288:3:1"
},
{
"arguments": [
{
"name": "value",
"nativeSrc": "3308:5:1",
"nodeType": "YulIdentifier",
"src": "3308:5:1"
}
],
"functionName": {
"name": "cleanup_t_bool",
"nativeSrc": "3293:14:1",
"nodeType": "YulIdentifier",
"src": "3293:14:1"
},
"nativeSrc": "3293:21:1",
"nodeType": "YulFunctionCall",
"src": "3293:21:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "3281:6:1",
"nodeType": "YulIdentifier",
"src": "3281:6:1"
},
"nativeSrc": "3281:34:1",
"nodeType": "YulFunctionCall",
"src": "3281:34:1"
},
"nativeSrc": "3281:34:1",
"nodeType": "YulExpressionStatement",
"src": "3281:34:1"
}
]
},
"name": "abi_encode_t_bool_to_t_bool_fromStack",
"nativeSrc": "3212:109:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "3259:5:1",
"nodeType": "YulTypedName",
"src": "3259:5:1",
"type": ""
},
{
"name": "pos",
"nativeSrc": "3266:3:1",
"nodeType": "YulTypedName",
"src": "3266:3:1",
"type": ""
}
],
"src": "3212:109:1"
},
{
"body": {
"nativeSrc": "3503:365:1",
"nodeType": "YulBlock",
"src": "3503:365:1",
"statements": [
{
"nativeSrc": "3513:27:1",
"nodeType": "YulAssignment",
"src": "3513:27:1",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "3525:9:1",
"nodeType": "YulIdentifier",
"src": "3525:9:1"
},
{
"kind": "number",
"nativeSrc": "3536:3:1",
"nodeType": "YulLiteral",
"src": "3536:3:1",
"type": "",
"value": "128"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3521:3:1",
"nodeType": "YulIdentifier",
"src": "3521:3:1"
},
"nativeSrc": "3521:19:1",
"nodeType": "YulFunctionCall",
"src": "3521:19:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "3513:4:1",
"nodeType": "YulIdentifier",
"src": "3513:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nativeSrc": "3594:6:1",
"nodeType": "YulIdentifier",
"src": "3594:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "3607:9:1",
"nodeType": "YulIdentifier",
"src": "3607:9:1"
},
{
"kind": "number",
"nativeSrc": "3618:1:1",
"nodeType": "YulLiteral",
"src": "3618:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3603:3:1",
"nodeType": "YulIdentifier",
"src": "3603:3:1"
},
"nativeSrc": "3603:17:1",
"nodeType": "YulFunctionCall",
"src": "3603:17:1"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nativeSrc": "3550:43:1",
"nodeType": "YulIdentifier",
"src": "3550:43:1"
},
"nativeSrc": "3550:71:1",
"nodeType": "YulFunctionCall",
"src": "3550:71:1"
},
"nativeSrc": "3550:71:1",
"nodeType": "YulExpressionStatement",
"src": "3550:71:1"
},
{
"expression": {
"arguments": [
{
"name": "value1",
"nativeSrc": "3669:6:1",
"nodeType": "YulIdentifier",
"src": "3669:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "3682:9:1",
"nodeType": "YulIdentifier",
"src": "3682:9:1"
},
{
"kind": "number",
"nativeSrc": "3693:2:1",
"nodeType": "YulLiteral",
"src": "3693:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3678:3:1",
"nodeType": "YulIdentifier",
"src": "3678:3:1"
},
"nativeSrc": "3678:18:1",
"nodeType": "YulFunctionCall",
"src": "3678:18:1"
}
],
"functionName": {
"name": "abi_encode_t_bool_to_t_bool_fromStack",
"nativeSrc": "3631:37:1",
"nodeType": "YulIdentifier",
"src": "3631:37:1"
},
"nativeSrc": "3631:66:1",
"nodeType": "YulFunctionCall",
"src": "3631:66:1"
},
"nativeSrc": "3631:66:1",
"nodeType": "YulExpressionStatement",
"src": "3631:66:1"
},
{
"expression": {
"arguments": [
{
"name": "value2",
"nativeSrc": "3751:6:1",
"nodeType": "YulIdentifier",
"src": "3751:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "3764:9:1",
"nodeType": "YulIdentifier",
"src": "3764:9:1"
},
{
"kind": "number",
"nativeSrc": "3775:2:1",
"nodeType": "YulLiteral",
"src": "3775:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3760:3:1",
"nodeType": "YulIdentifier",
"src": "3760:3:1"
},
"nativeSrc": "3760:18:1",
"nodeType": "YulFunctionCall",
"src": "3760:18:1"
}
],
"functionName": {
"name": "abi_encode_t_address_to_t_address_fromStack",
"nativeSrc": "3707:43:1",
"nodeType": "YulIdentifier",
"src": "3707:43:1"
},
"nativeSrc": "3707:72:1",
"nodeType": "YulFunctionCall",
"src": "3707:72:1"
},
"nativeSrc": "3707:72:1",
"nodeType": "YulExpressionStatement",
"src": "3707:72:1"
},
{
"expression": {
"arguments": [
{
"name": "value3",
"nativeSrc": "3833:6:1",
"nodeType": "YulIdentifier",
"src": "3833:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "3846:9:1",
"nodeType": "YulIdentifier",
"src": "3846:9:1"
},
{
"kind": "number",
"nativeSrc": "3857:2:1",
"nodeType": "YulLiteral",
"src": "3857:2:1",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3842:3:1",
"nodeType": "YulIdentifier",
"src": "3842:3:1"
},
"nativeSrc": "3842:18:1",
"nodeType": "YulFunctionCall",
"src": "3842:18:1"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nativeSrc": "3789:43:1",
"nodeType": "YulIdentifier",
"src": "3789:43:1"
},
"nativeSrc": "3789:72:1",
"nodeType": "YulFunctionCall",
"src": "3789:72:1"
},
"nativeSrc": "3789:72:1",
"nodeType": "YulExpressionStatement",
"src": "3789:72:1"
}
]
},
"name": "abi_encode_tuple_t_uint256_t_bool_t_address_t_uint256__to_t_uint256_t_bool_t_address_t_uint256__fromStack_reversed",
"nativeSrc": "3327:541:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "3451:9:1",
"nodeType": "YulTypedName",
"src": "3451:9:1",
"type": ""
},
{
"name": "value3",
"nativeSrc": "3463:6:1",
"nodeType": "YulTypedName",
"src": "3463:6:1",
"type": ""
},
{
"name": "value2",
"nativeSrc": "3471:6:1",
"nodeType": "YulTypedName",
"src": "3471:6:1",
"type": ""
},
{
"name": "value1",
"nativeSrc": "3479:6:1",
"nodeType": "YulTypedName",
"src": "3479:6:1",
"type": ""
},
{
"name": "value0",
"nativeSrc": "3487:6:1",
"nodeType": "YulTypedName",
"src": "3487:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "3498:4:1",
"nodeType": "YulTypedName",
"src": "3498:4:1",
"type": ""
}
],
"src": "3327:541:1"
},
{
"body": {
"nativeSrc": "3972:124:1",
"nodeType": "YulBlock",
"src": "3972:124:1",
"statements": [
{
"nativeSrc": "3982:26:1",
"nodeType": "YulAssignment",
"src": "3982:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "3994:9:1",
"nodeType": "YulIdentifier",
"src": "3994:9:1"
},
{
"kind": "number",
"nativeSrc": "4005:2:1",
"nodeType": "YulLiteral",
"src": "4005:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3990:3:1",
"nodeType": "YulIdentifier",
"src": "3990:3:1"
},
"nativeSrc": "3990:18:1",
"nodeType": "YulFunctionCall",
"src": "3990:18:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "3982:4:1",
"nodeType": "YulIdentifier",
"src": "3982:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nativeSrc": "4062:6:1",
"nodeType": "YulIdentifier",
"src": "4062:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "4075:9:1",
"nodeType": "YulIdentifier",
"src": "4075:9:1"
},
{
"kind": "number",
"nativeSrc": "4086:1:1",
"nodeType": "YulLiteral",
"src": "4086:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "4071:3:1",
"nodeType": "YulIdentifier",
"src": "4071:3:1"
},
"nativeSrc": "4071:17:1",
"nodeType": "YulFunctionCall",
"src": "4071:17:1"
}
],
"functionName": {
"name": "abi_encode_t_bytes32_to_t_bytes32_fromStack",
"nativeSrc": "4018:43:1",
"nodeType": "YulIdentifier",
"src": "4018:43:1"
},
"nativeSrc": "4018:71:1",
"nodeType": "YulFunctionCall",
"src": "4018:71:1"
},
"nativeSrc": "4018:71:1",
"nodeType": "YulExpressionStatement",
"src": "4018:71:1"
}
]
},
"name": "abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed",
"nativeSrc": "3874:222:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "3944:9:1",
"nodeType": "YulTypedName",
"src": "3944:9:1",
"type": ""
},
{
"name": "value0",
"nativeSrc": "3956:6:1",
"nodeType": "YulTypedName",
"src": "3956:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "3967:4:1",
"nodeType": "YulTypedName",
"src": "3967:4:1",
"type": ""
}
],
"src": "3874:222:1"
},
{
"body": {
"nativeSrc": "4198:73:1",
"nodeType": "YulBlock",
"src": "4198:73:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "4215:3:1",
"nodeType": "YulIdentifier",
"src": "4215:3:1"
},
{
"name": "length",
"nativeSrc": "4220:6:1",
"nodeType": "YulIdentifier",
"src": "4220:6:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "4208:6:1",
"nodeType": "YulIdentifier",
"src": "4208:6:1"
},
"nativeSrc": "4208:19:1",
"nodeType": "YulFunctionCall",
"src": "4208:19:1"
},
"nativeSrc": "4208:19:1",
"nodeType": "YulExpressionStatement",
"src": "4208:19:1"
},
{
"nativeSrc": "4236:29:1",
"nodeType": "YulAssignment",
"src": "4236:29:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "4255:3:1",
"nodeType": "YulIdentifier",
"src": "4255:3:1"
},
{
"kind": "number",
"nativeSrc": "4260:4:1",
"nodeType": "YulLiteral",
"src": "4260:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nativeSrc": "4251:3:1",
"nodeType": "YulIdentifier",
"src": "4251:3:1"
},
"nativeSrc": "4251:14:1",
"nodeType": "YulFunctionCall",
"src": "4251:14:1"
},
"variableNames": [
{
"name": "updated_pos",
"nativeSrc": "4236:11:1",
"nodeType": "YulIdentifier",
"src": "4236:11:1"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "4102:169:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "4170:3:1",
"nodeType": "YulTypedName",
"src": "4170:3:1",
"type": ""
},
{
"name": "length",
"nativeSrc": "4175:6:1",
"nodeType": "YulTypedName",
"src": "4175:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nativeSrc": "4186:11:1",
"nodeType": "YulTypedName",
"src": "4186:11:1",
"type": ""
}
],
"src": "4102:169:1"
},
{
"body": {
"nativeSrc": "4383:64:1",
"nodeType": "YulBlock",
"src": "4383:64:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "4405:6:1",
"nodeType": "YulIdentifier",
"src": "4405:6:1"
},
{
"kind": "number",
"nativeSrc": "4413:1:1",
"nodeType": "YulLiteral",
"src": "4413:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "4401:3:1",
"nodeType": "YulIdentifier",
"src": "4401:3:1"
},
"nativeSrc": "4401:14:1",
"nodeType": "YulFunctionCall",
"src": "4401:14:1"
},
{
"hexValue": "486173206e6f20726967687420746f20766f7465",
"kind": "string",
"nativeSrc": "4417:22:1",
"nodeType": "YulLiteral",
"src": "4417:22:1",
"type": "",
"value": "Has no right to vote"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "4394:6:1",
"nodeType": "YulIdentifier",
"src": "4394:6:1"
},
"nativeSrc": "4394:46:1",
"nodeType": "YulFunctionCall",
"src": "4394:46:1"
},
"nativeSrc": "4394:46:1",
"nodeType": "YulExpressionStatement",
"src": "4394:46:1"
}
]
},
"name": "store_literal_in_memory_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e",
"nativeSrc": "4277:170:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "4375:6:1",
"nodeType": "YulTypedName",
"src": "4375:6:1",
"type": ""
}
],
"src": "4277:170:1"
},
{
"body": {
"nativeSrc": "4599:220:1",
"nodeType": "YulBlock",
"src": "4599:220:1",
"statements": [
{
"nativeSrc": "4609:74:1",
"nodeType": "YulAssignment",
"src": "4609:74:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "4675:3:1",
"nodeType": "YulIdentifier",
"src": "4675:3:1"
},
{
"kind": "number",
"nativeSrc": "4680:2:1",
"nodeType": "YulLiteral",
"src": "4680:2:1",
"type": "",
"value": "20"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "4616:58:1",
"nodeType": "YulIdentifier",
"src": "4616:58:1"
},
"nativeSrc": "4616:67:1",
"nodeType": "YulFunctionCall",
"src": "4616:67:1"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "4609:3:1",
"nodeType": "YulIdentifier",
"src": "4609:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "4781:3:1",
"nodeType": "YulIdentifier",
"src": "4781:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e",
"nativeSrc": "4692:88:1",
"nodeType": "YulIdentifier",
"src": "4692:88:1"
},
"nativeSrc": "4692:93:1",
"nodeType": "YulFunctionCall",
"src": "4692:93:1"
},
"nativeSrc": "4692:93:1",
"nodeType": "YulExpressionStatement",
"src": "4692:93:1"
},
{
"nativeSrc": "4794:19:1",
"nodeType": "YulAssignment",
"src": "4794:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "4805:3:1",
"nodeType": "YulIdentifier",
"src": "4805:3:1"
},
{
"kind": "number",
"nativeSrc": "4810:2:1",
"nodeType": "YulLiteral",
"src": "4810:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "4801:3:1",
"nodeType": "YulIdentifier",
"src": "4801:3:1"
},
"nativeSrc": "4801:12:1",
"nodeType": "YulFunctionCall",
"src": "4801:12:1"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "4794:3:1",
"nodeType": "YulIdentifier",
"src": "4794:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e_to_t_string_memory_ptr_fromStack",
"nativeSrc": "4453:366:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "4587:3:1",
"nodeType": "YulTypedName",
"src": "4587:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "4595:3:1",
"nodeType": "YulTypedName",
"src": "4595:3:1",
"type": ""
}
],
"src": "4453:366:1"
},
{
"body": {
"nativeSrc": "4996:248:1",
"nodeType": "YulBlock",
"src": "4996:248:1",
"statements": [
{
"nativeSrc": "5006:26:1",
"nodeType": "YulAssignment",
"src": "5006:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "5018:9:1",
"nodeType": "YulIdentifier",
"src": "5018:9:1"
},
{
"kind": "number",
"nativeSrc": "5029:2:1",
"nodeType": "YulLiteral",
"src": "5029:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "5014:3:1",
"nodeType": "YulIdentifier",
"src": "5014:3:1"
},
"nativeSrc": "5014:18:1",
"nodeType": "YulFunctionCall",
"src": "5014:18:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "5006:4:1",
"nodeType": "YulIdentifier",
"src": "5006:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "5053:9:1",
"nodeType": "YulIdentifier",
"src": "5053:9:1"
},
{
"kind": "number",
"nativeSrc": "5064:1:1",
"nodeType": "YulLiteral",
"src": "5064:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "5049:3:1",
"nodeType": "YulIdentifier",
"src": "5049:3:1"
},
"nativeSrc": "5049:17:1",
"nodeType": "YulFunctionCall",
"src": "5049:17:1"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "5072:4:1",
"nodeType": "YulIdentifier",
"src": "5072:4:1"
},
{
"name": "headStart",
"nativeSrc": "5078:9:1",
"nodeType": "YulIdentifier",
"src": "5078:9:1"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "5068:3:1",
"nodeType": "YulIdentifier",
"src": "5068:3:1"
},
"nativeSrc": "5068:20:1",
"nodeType": "YulFunctionCall",
"src": "5068:20:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "5042:6:1",
"nodeType": "YulIdentifier",
"src": "5042:6:1"
},
"nativeSrc": "5042:47:1",
"nodeType": "YulFunctionCall",
"src": "5042:47:1"
},
"nativeSrc": "5042:47:1",
"nodeType": "YulExpressionStatement",
"src": "5042:47:1"
},
{
"nativeSrc": "5098:139:1",
"nodeType": "YulAssignment",
"src": "5098:139:1",
"value": {
"arguments": [
{
"name": "tail",
"nativeSrc": "5232:4:1",
"nodeType": "YulIdentifier",
"src": "5232:4:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e_to_t_string_memory_ptr_fromStack",
"nativeSrc": "5106:124:1",
"nodeType": "YulIdentifier",
"src": "5106:124:1"
},
"nativeSrc": "5106:131:1",
"nodeType": "YulFunctionCall",
"src": "5106:131:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "5098:4:1",
"nodeType": "YulIdentifier",
"src": "5098:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e__to_t_string_memory_ptr__fromStack_reversed",
"nativeSrc": "4825:419:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "4976:9:1",
"nodeType": "YulTypedName",
"src": "4976:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "4991:4:1",
"nodeType": "YulTypedName",
"src": "4991:4:1",
"type": ""
}
],
"src": "4825:419:1"
},
{
"body": {
"nativeSrc": "5356:58:1",
"nodeType": "YulBlock",
"src": "5356:58:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "5378:6:1",
"nodeType": "YulIdentifier",
"src": "5378:6:1"
},
{
"kind": "number",
"nativeSrc": "5386:1:1",
"nodeType": "YulLiteral",
"src": "5386:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "5374:3:1",
"nodeType": "YulIdentifier",
"src": "5374:3:1"
},
"nativeSrc": "5374:14:1",
"nodeType": "YulFunctionCall",
"src": "5374:14:1"
},
{
"hexValue": "416c726561647920766f7465642e",
"kind": "string",
"nativeSrc": "5390:16:1",
"nodeType": "YulLiteral",
"src": "5390:16:1",
"type": "",
"value": "Already voted."
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "5367:6:1",
"nodeType": "YulIdentifier",
"src": "5367:6:1"
},
"nativeSrc": "5367:40:1",
"nodeType": "YulFunctionCall",
"src": "5367:40:1"
},
"nativeSrc": "5367:40:1",
"nodeType": "YulExpressionStatement",
"src": "5367:40:1"
}
]
},
"name": "store_literal_in_memory_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84",
"nativeSrc": "5250:164:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "5348:6:1",
"nodeType": "YulTypedName",
"src": "5348:6:1",
"type": ""
}
],
"src": "5250:164:1"
},
{
"body": {
"nativeSrc": "5566:220:1",
"nodeType": "YulBlock",
"src": "5566:220:1",
"statements": [
{
"nativeSrc": "5576:74:1",
"nodeType": "YulAssignment",
"src": "5576:74:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "5642:3:1",
"nodeType": "YulIdentifier",
"src": "5642:3:1"
},
{
"kind": "number",
"nativeSrc": "5647:2:1",
"nodeType": "YulLiteral",
"src": "5647:2:1",
"type": "",
"value": "14"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "5583:58:1",
"nodeType": "YulIdentifier",
"src": "5583:58:1"
},
"nativeSrc": "5583:67:1",
"nodeType": "YulFunctionCall",
"src": "5583:67:1"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "5576:3:1",
"nodeType": "YulIdentifier",
"src": "5576:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "5748:3:1",
"nodeType": "YulIdentifier",
"src": "5748:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84",
"nativeSrc": "5659:88:1",
"nodeType": "YulIdentifier",
"src": "5659:88:1"
},
"nativeSrc": "5659:93:1",
"nodeType": "YulFunctionCall",
"src": "5659:93:1"
},
"nativeSrc": "5659:93:1",
"nodeType": "YulExpressionStatement",
"src": "5659:93:1"
},
{
"nativeSrc": "5761:19:1",
"nodeType": "YulAssignment",
"src": "5761:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "5772:3:1",
"nodeType": "YulIdentifier",
"src": "5772:3:1"
},
{
"kind": "number",
"nativeSrc": "5777:2:1",
"nodeType": "YulLiteral",
"src": "5777:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "5768:3:1",
"nodeType": "YulIdentifier",
"src": "5768:3:1"
},
"nativeSrc": "5768:12:1",
"nodeType": "YulFunctionCall",
"src": "5768:12:1"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "5761:3:1",
"nodeType": "YulIdentifier",
"src": "5761:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84_to_t_string_memory_ptr_fromStack",
"nativeSrc": "5420:366:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "5554:3:1",
"nodeType": "YulTypedName",
"src": "5554:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "5562:3:1",
"nodeType": "YulTypedName",
"src": "5562:3:1",
"type": ""
}
],
"src": "5420:366:1"
},
{
"body": {
"nativeSrc": "5963:248:1",
"nodeType": "YulBlock",
"src": "5963:248:1",
"statements": [
{
"nativeSrc": "5973:26:1",
"nodeType": "YulAssignment",
"src": "5973:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "5985:9:1",
"nodeType": "YulIdentifier",
"src": "5985:9:1"
},
{
"kind": "number",
"nativeSrc": "5996:2:1",
"nodeType": "YulLiteral",
"src": "5996:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "5981:3:1",
"nodeType": "YulIdentifier",
"src": "5981:3:1"
},
"nativeSrc": "5981:18:1",
"nodeType": "YulFunctionCall",
"src": "5981:18:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "5973:4:1",
"nodeType": "YulIdentifier",
"src": "5973:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "6020:9:1",
"nodeType": "YulIdentifier",
"src": "6020:9:1"
},
{
"kind": "number",
"nativeSrc": "6031:1:1",
"nodeType": "YulLiteral",
"src": "6031:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "6016:3:1",
"nodeType": "YulIdentifier",
"src": "6016:3:1"
},
"nativeSrc": "6016:17:1",
"nodeType": "YulFunctionCall",
"src": "6016:17:1"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "6039:4:1",
"nodeType": "YulIdentifier",
"src": "6039:4:1"
},
{
"name": "headStart",
"nativeSrc": "6045:9:1",
"nodeType": "YulIdentifier",
"src": "6045:9:1"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "6035:3:1",
"nodeType": "YulIdentifier",
"src": "6035:3:1"
},
"nativeSrc": "6035:20:1",
"nodeType": "YulFunctionCall",
"src": "6035:20:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "6009:6:1",
"nodeType": "YulIdentifier",
"src": "6009:6:1"
},
"nativeSrc": "6009:47:1",
"nodeType": "YulFunctionCall",
"src": "6009:47:1"
},
"nativeSrc": "6009:47:1",
"nodeType": "YulExpressionStatement",
"src": "6009:47:1"
},
{
"nativeSrc": "6065:139:1",
"nodeType": "YulAssignment",
"src": "6065:139:1",
"value": {
"arguments": [
{
"name": "tail",
"nativeSrc": "6199:4:1",
"nodeType": "YulIdentifier",
"src": "6199:4:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84_to_t_string_memory_ptr_fromStack",
"nativeSrc": "6073:124:1",
"nodeType": "YulIdentifier",
"src": "6073:124:1"
},
"nativeSrc": "6073:131:1",
"nodeType": "YulFunctionCall",
"src": "6073:131:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "6065:4:1",
"nodeType": "YulIdentifier",
"src": "6065:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84__to_t_string_memory_ptr__fromStack_reversed",
"nativeSrc": "5792:419:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "5943:9:1",
"nodeType": "YulTypedName",
"src": "5943:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "5958:4:1",
"nodeType": "YulTypedName",
"src": "5958:4:1",
"type": ""
}
],
"src": "5792:419:1"
},
{
"body": {
"nativeSrc": "6245:152:1",
"nodeType": "YulBlock",
"src": "6245:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "6262:1:1",
"nodeType": "YulLiteral",
"src": "6262:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "6265:77:1",
"nodeType": "YulLiteral",
"src": "6265:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "6255:6:1",
"nodeType": "YulIdentifier",
"src": "6255:6:1"
},
"nativeSrc": "6255:88:1",
"nodeType": "YulFunctionCall",
"src": "6255:88:1"
},
"nativeSrc": "6255:88:1",
"nodeType": "YulExpressionStatement",
"src": "6255:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "6359:1:1",
"nodeType": "YulLiteral",
"src": "6359:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nativeSrc": "6362:4:1",
"nodeType": "YulLiteral",
"src": "6362:4:1",
"type": "",
"value": "0x32"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "6352:6:1",
"nodeType": "YulIdentifier",
"src": "6352:6:1"
},
"nativeSrc": "6352:15:1",
"nodeType": "YulFunctionCall",
"src": "6352:15:1"
},
"nativeSrc": "6352:15:1",
"nodeType": "YulExpressionStatement",
"src": "6352:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "6383:1:1",
"nodeType": "YulLiteral",
"src": "6383:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "6386:4:1",
"nodeType": "YulLiteral",
"src": "6386:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "6376:6:1",
"nodeType": "YulIdentifier",
"src": "6376:6:1"
},
"nativeSrc": "6376:15:1",
"nodeType": "YulFunctionCall",
"src": "6376:15:1"
},
"nativeSrc": "6376:15:1",
"nodeType": "YulExpressionStatement",
"src": "6376:15:1"
}
]
},
"name": "panic_error_0x32",
"nativeSrc": "6217:180:1",
"nodeType": "YulFunctionDefinition",
"src": "6217:180:1"
},
{
"body": {
"nativeSrc": "6431:152:1",
"nodeType": "YulBlock",
"src": "6431:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "6448:1:1",
"nodeType": "YulLiteral",
"src": "6448:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "6451:77:1",
"nodeType": "YulLiteral",
"src": "6451:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "6441:6:1",
"nodeType": "YulIdentifier",
"src": "6441:6:1"
},
"nativeSrc": "6441:88:1",
"nodeType": "YulFunctionCall",
"src": "6441:88:1"
},
"nativeSrc": "6441:88:1",
"nodeType": "YulExpressionStatement",
"src": "6441:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "6545:1:1",
"nodeType": "YulLiteral",
"src": "6545:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nativeSrc": "6548:4:1",
"nodeType": "YulLiteral",
"src": "6548:4:1",
"type": "",
"value": "0x11"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "6538:6:1",
"nodeType": "YulIdentifier",
"src": "6538:6:1"
},
"nativeSrc": "6538:15:1",
"nodeType": "YulFunctionCall",
"src": "6538:15:1"
},
"nativeSrc": "6538:15:1",
"nodeType": "YulExpressionStatement",
"src": "6538:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "6569:1:1",
"nodeType": "YulLiteral",
"src": "6569:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "6572:4:1",
"nodeType": "YulLiteral",
"src": "6572:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "6562:6:1",
"nodeType": "YulIdentifier",
"src": "6562:6:1"
},
"nativeSrc": "6562:15:1",
"nodeType": "YulFunctionCall",
"src": "6562:15:1"
},
"nativeSrc": "6562:15:1",
"nodeType": "YulExpressionStatement",
"src": "6562:15:1"
}
]
},
"name": "panic_error_0x11",
"nativeSrc": "6403:180:1",
"nodeType": "YulFunctionDefinition",
"src": "6403:180:1"
},
{
"body": {
"nativeSrc": "6633:147:1",
"nodeType": "YulBlock",
"src": "6633:147:1",
"statements": [
{
"nativeSrc": "6643:25:1",
"nodeType": "YulAssignment",
"src": "6643:25:1",
"value": {
"arguments": [
{
"name": "x",
"nativeSrc": "6666:1:1",
"nodeType": "YulIdentifier",
"src": "6666:1:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "6648:17:1",
"nodeType": "YulIdentifier",
"src": "6648:17:1"
},
"nativeSrc": "6648:20:1",
"nodeType": "YulFunctionCall",
"src": "6648:20:1"
},
"variableNames": [
{
"name": "x",
"nativeSrc": "6643:1:1",
"nodeType": "YulIdentifier",
"src": "6643:1:1"
}
]
},
{
"nativeSrc": "6677:25:1",
"nodeType": "YulAssignment",
"src": "6677:25:1",
"value": {
"arguments": [
{
"name": "y",
"nativeSrc": "6700:1:1",
"nodeType": "YulIdentifier",
"src": "6700:1:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "6682:17:1",
"nodeType": "YulIdentifier",
"src": "6682:17:1"
},
"nativeSrc": "6682:20:1",
"nodeType": "YulFunctionCall",
"src": "6682:20:1"
},
"variableNames": [
{
"name": "y",
"nativeSrc": "6677:1:1",
"nodeType": "YulIdentifier",
"src": "6677:1:1"
}
]
},
{
"nativeSrc": "6711:16:1",
"nodeType": "YulAssignment",
"src": "6711:16:1",
"value": {
"arguments": [
{
"name": "x",
"nativeSrc": "6722:1:1",
"nodeType": "YulIdentifier",
"src": "6722:1:1"
},
{
"name": "y",
"nativeSrc": "6725:1:1",
"nodeType": "YulIdentifier",
"src": "6725:1:1"
}
],
"functionName": {
"name": "add",
"nativeSrc": "6718:3:1",
"nodeType": "YulIdentifier",
"src": "6718:3:1"
},
"nativeSrc": "6718:9:1",
"nodeType": "YulFunctionCall",
"src": "6718:9:1"
},
"variableNames": [
{
"name": "sum",
"nativeSrc": "6711:3:1",
"nodeType": "YulIdentifier",
"src": "6711:3:1"
}
]
},
{
"body": {
"nativeSrc": "6751:22:1",
"nodeType": "YulBlock",
"src": "6751:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nativeSrc": "6753:16:1",
"nodeType": "YulIdentifier",
"src": "6753:16:1"
},
"nativeSrc": "6753:18:1",
"nodeType": "YulFunctionCall",
"src": "6753:18:1"
},
"nativeSrc": "6753:18:1",
"nodeType": "YulExpressionStatement",
"src": "6753:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "x",
"nativeSrc": "6743:1:1",
"nodeType": "YulIdentifier",
"src": "6743:1:1"
},
{
"name": "sum",
"nativeSrc": "6746:3:1",
"nodeType": "YulIdentifier",
"src": "6746:3:1"
}
],
"functionName": {
"name": "gt",
"nativeSrc": "6740:2:1",
"nodeType": "YulIdentifier",
"src": "6740:2:1"
},
"nativeSrc": "6740:10:1",
"nodeType": "YulFunctionCall",
"src": "6740:10:1"
},
"nativeSrc": "6737:36:1",
"nodeType": "YulIf",
"src": "6737:36:1"
}
]
},
"name": "checked_add_t_uint256",
"nativeSrc": "6589:191:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nativeSrc": "6620:1:1",
"nodeType": "YulTypedName",
"src": "6620:1:1",
"type": ""
},
{
"name": "y",
"nativeSrc": "6623:1:1",
"nodeType": "YulTypedName",
"src": "6623:1:1",
"type": ""
}
],
"returnVariables": [
{
"name": "sum",
"nativeSrc": "6629:3:1",
"nodeType": "YulTypedName",
"src": "6629:3:1",
"type": ""
}
],
"src": "6589:191:1"
},
{
"body": {
"nativeSrc": "6892:62:1",
"nodeType": "YulBlock",
"src": "6892:62:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "6914:6:1",
"nodeType": "YulIdentifier",
"src": "6914:6:1"
},
{
"kind": "number",
"nativeSrc": "6922:1:1",
"nodeType": "YulLiteral",
"src": "6922:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "6910:3:1",
"nodeType": "YulIdentifier",
"src": "6910:3:1"
},
"nativeSrc": "6910:14:1",
"nodeType": "YulFunctionCall",
"src": "6910:14:1"
},
{
"hexValue": "596f7520616c726561647920766f7465642e",
"kind": "string",
"nativeSrc": "6926:20:1",
"nodeType": "YulLiteral",
"src": "6926:20:1",
"type": "",
"value": "You already voted."
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "6903:6:1",
"nodeType": "YulIdentifier",
"src": "6903:6:1"
},
"nativeSrc": "6903:44:1",
"nodeType": "YulFunctionCall",
"src": "6903:44:1"
},
"nativeSrc": "6903:44:1",
"nodeType": "YulExpressionStatement",
"src": "6903:44:1"
}
]
},
"name": "store_literal_in_memory_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f",
"nativeSrc": "6786:168:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "6884:6:1",
"nodeType": "YulTypedName",
"src": "6884:6:1",
"type": ""
}
],
"src": "6786:168:1"
},
{
"body": {
"nativeSrc": "7106:220:1",
"nodeType": "YulBlock",
"src": "7106:220:1",
"statements": [
{
"nativeSrc": "7116:74:1",
"nodeType": "YulAssignment",
"src": "7116:74:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "7182:3:1",
"nodeType": "YulIdentifier",
"src": "7182:3:1"
},
{
"kind": "number",
"nativeSrc": "7187:2:1",
"nodeType": "YulLiteral",
"src": "7187:2:1",
"type": "",
"value": "18"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "7123:58:1",
"nodeType": "YulIdentifier",
"src": "7123:58:1"
},
"nativeSrc": "7123:67:1",
"nodeType": "YulFunctionCall",
"src": "7123:67:1"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "7116:3:1",
"nodeType": "YulIdentifier",
"src": "7116:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "7288:3:1",
"nodeType": "YulIdentifier",
"src": "7288:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f",
"nativeSrc": "7199:88:1",
"nodeType": "YulIdentifier",
"src": "7199:88:1"
},
"nativeSrc": "7199:93:1",
"nodeType": "YulFunctionCall",
"src": "7199:93:1"
},
"nativeSrc": "7199:93:1",
"nodeType": "YulExpressionStatement",
"src": "7199:93:1"
},
{
"nativeSrc": "7301:19:1",
"nodeType": "YulAssignment",
"src": "7301:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "7312:3:1",
"nodeType": "YulIdentifier",
"src": "7312:3:1"
},
{
"kind": "number",
"nativeSrc": "7317:2:1",
"nodeType": "YulLiteral",
"src": "7317:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "7308:3:1",
"nodeType": "YulIdentifier",
"src": "7308:3:1"
},
"nativeSrc": "7308:12:1",
"nodeType": "YulFunctionCall",
"src": "7308:12:1"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "7301:3:1",
"nodeType": "YulIdentifier",
"src": "7301:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f_to_t_string_memory_ptr_fromStack",
"nativeSrc": "6960:366:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "7094:3:1",
"nodeType": "YulTypedName",
"src": "7094:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "7102:3:1",
"nodeType": "YulTypedName",
"src": "7102:3:1",
"type": ""
}
],
"src": "6960:366:1"
},
{
"body": {
"nativeSrc": "7503:248:1",
"nodeType": "YulBlock",
"src": "7503:248:1",
"statements": [
{
"nativeSrc": "7513:26:1",
"nodeType": "YulAssignment",
"src": "7513:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "7525:9:1",
"nodeType": "YulIdentifier",
"src": "7525:9:1"
},
{
"kind": "number",
"nativeSrc": "7536:2:1",
"nodeType": "YulLiteral",
"src": "7536:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "7521:3:1",
"nodeType": "YulIdentifier",
"src": "7521:3:1"
},
"nativeSrc": "7521:18:1",
"nodeType": "YulFunctionCall",
"src": "7521:18:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "7513:4:1",
"nodeType": "YulIdentifier",
"src": "7513:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "7560:9:1",
"nodeType": "YulIdentifier",
"src": "7560:9:1"
},
{
"kind": "number",
"nativeSrc": "7571:1:1",
"nodeType": "YulLiteral",
"src": "7571:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "7556:3:1",
"nodeType": "YulIdentifier",
"src": "7556:3:1"
},
"nativeSrc": "7556:17:1",
"nodeType": "YulFunctionCall",
"src": "7556:17:1"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "7579:4:1",
"nodeType": "YulIdentifier",
"src": "7579:4:1"
},
{
"name": "headStart",
"nativeSrc": "7585:9:1",
"nodeType": "YulIdentifier",
"src": "7585:9:1"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "7575:3:1",
"nodeType": "YulIdentifier",
"src": "7575:3:1"
},
"nativeSrc": "7575:20:1",
"nodeType": "YulFunctionCall",
"src": "7575:20:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "7549:6:1",
"nodeType": "YulIdentifier",
"src": "7549:6:1"
},
"nativeSrc": "7549:47:1",
"nodeType": "YulFunctionCall",
"src": "7549:47:1"
},
"nativeSrc": "7549:47:1",
"nodeType": "YulExpressionStatement",
"src": "7549:47:1"
},
{
"nativeSrc": "7605:139:1",
"nodeType": "YulAssignment",
"src": "7605:139:1",
"value": {
"arguments": [
{
"name": "tail",
"nativeSrc": "7739:4:1",
"nodeType": "YulIdentifier",
"src": "7739:4:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f_to_t_string_memory_ptr_fromStack",
"nativeSrc": "7613:124:1",
"nodeType": "YulIdentifier",
"src": "7613:124:1"
},
"nativeSrc": "7613:131:1",
"nodeType": "YulFunctionCall",
"src": "7613:131:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "7605:4:1",
"nodeType": "YulIdentifier",
"src": "7605:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f__to_t_string_memory_ptr__fromStack_reversed",
"nativeSrc": "7332:419:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "7483:9:1",
"nodeType": "YulTypedName",
"src": "7483:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "7498:4:1",
"nodeType": "YulTypedName",
"src": "7498:4:1",
"type": ""
}
],
"src": "7332:419:1"
},
{
"body": {
"nativeSrc": "7863:74:1",
"nodeType": "YulBlock",
"src": "7863:74:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "7885:6:1",
"nodeType": "YulIdentifier",
"src": "7885:6:1"
},
{
"kind": "number",
"nativeSrc": "7893:1:1",
"nodeType": "YulLiteral",
"src": "7893:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "7881:3:1",
"nodeType": "YulIdentifier",
"src": "7881:3:1"
},
"nativeSrc": "7881:14:1",
"nodeType": "YulFunctionCall",
"src": "7881:14:1"
},
{
"hexValue": "53656c662d64656c65676174696f6e20697320646973616c6c6f7765642e",
"kind": "string",
"nativeSrc": "7897:32:1",
"nodeType": "YulLiteral",
"src": "7897:32:1",
"type": "",
"value": "Self-delegation is disallowed."
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "7874:6:1",
"nodeType": "YulIdentifier",
"src": "7874:6:1"
},
"nativeSrc": "7874:56:1",
"nodeType": "YulFunctionCall",
"src": "7874:56:1"
},
"nativeSrc": "7874:56:1",
"nodeType": "YulExpressionStatement",
"src": "7874:56:1"
}
]
},
"name": "store_literal_in_memory_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947",
"nativeSrc": "7757:180:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "7855:6:1",
"nodeType": "YulTypedName",
"src": "7855:6:1",
"type": ""
}
],
"src": "7757:180:1"
},
{
"body": {
"nativeSrc": "8089:220:1",
"nodeType": "YulBlock",
"src": "8089:220:1",
"statements": [
{
"nativeSrc": "8099:74:1",
"nodeType": "YulAssignment",
"src": "8099:74:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "8165:3:1",
"nodeType": "YulIdentifier",
"src": "8165:3:1"
},
{
"kind": "number",
"nativeSrc": "8170:2:1",
"nodeType": "YulLiteral",
"src": "8170:2:1",
"type": "",
"value": "30"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "8106:58:1",
"nodeType": "YulIdentifier",
"src": "8106:58:1"
},
"nativeSrc": "8106:67:1",
"nodeType": "YulFunctionCall",
"src": "8106:67:1"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "8099:3:1",
"nodeType": "YulIdentifier",
"src": "8099:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "8271:3:1",
"nodeType": "YulIdentifier",
"src": "8271:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947",
"nativeSrc": "8182:88:1",
"nodeType": "YulIdentifier",
"src": "8182:88:1"
},
"nativeSrc": "8182:93:1",
"nodeType": "YulFunctionCall",
"src": "8182:93:1"
},
"nativeSrc": "8182:93:1",
"nodeType": "YulExpressionStatement",
"src": "8182:93:1"
},
{
"nativeSrc": "8284:19:1",
"nodeType": "YulAssignment",
"src": "8284:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "8295:3:1",
"nodeType": "YulIdentifier",
"src": "8295:3:1"
},
{
"kind": "number",
"nativeSrc": "8300:2:1",
"nodeType": "YulLiteral",
"src": "8300:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "8291:3:1",
"nodeType": "YulIdentifier",
"src": "8291:3:1"
},
"nativeSrc": "8291:12:1",
"nodeType": "YulFunctionCall",
"src": "8291:12:1"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "8284:3:1",
"nodeType": "YulIdentifier",
"src": "8284:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947_to_t_string_memory_ptr_fromStack",
"nativeSrc": "7943:366:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "8077:3:1",
"nodeType": "YulTypedName",
"src": "8077:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "8085:3:1",
"nodeType": "YulTypedName",
"src": "8085:3:1",
"type": ""
}
],
"src": "7943:366:1"
},
{
"body": {
"nativeSrc": "8486:248:1",
"nodeType": "YulBlock",
"src": "8486:248:1",
"statements": [
{
"nativeSrc": "8496:26:1",
"nodeType": "YulAssignment",
"src": "8496:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "8508:9:1",
"nodeType": "YulIdentifier",
"src": "8508:9:1"
},
{
"kind": "number",
"nativeSrc": "8519:2:1",
"nodeType": "YulLiteral",
"src": "8519:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "8504:3:1",
"nodeType": "YulIdentifier",
"src": "8504:3:1"
},
"nativeSrc": "8504:18:1",
"nodeType": "YulFunctionCall",
"src": "8504:18:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "8496:4:1",
"nodeType": "YulIdentifier",
"src": "8496:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "8543:9:1",
"nodeType": "YulIdentifier",
"src": "8543:9:1"
},
{
"kind": "number",
"nativeSrc": "8554:1:1",
"nodeType": "YulLiteral",
"src": "8554:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "8539:3:1",
"nodeType": "YulIdentifier",
"src": "8539:3:1"
},
"nativeSrc": "8539:17:1",
"nodeType": "YulFunctionCall",
"src": "8539:17:1"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "8562:4:1",
"nodeType": "YulIdentifier",
"src": "8562:4:1"
},
{
"name": "headStart",
"nativeSrc": "8568:9:1",
"nodeType": "YulIdentifier",
"src": "8568:9:1"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "8558:3:1",
"nodeType": "YulIdentifier",
"src": "8558:3:1"
},
"nativeSrc": "8558:20:1",
"nodeType": "YulFunctionCall",
"src": "8558:20:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "8532:6:1",
"nodeType": "YulIdentifier",
"src": "8532:6:1"
},
"nativeSrc": "8532:47:1",
"nodeType": "YulFunctionCall",
"src": "8532:47:1"
},
"nativeSrc": "8532:47:1",
"nodeType": "YulExpressionStatement",
"src": "8532:47:1"
},
{
"nativeSrc": "8588:139:1",
"nodeType": "YulAssignment",
"src": "8588:139:1",
"value": {
"arguments": [
{
"name": "tail",
"nativeSrc": "8722:4:1",
"nodeType": "YulIdentifier",
"src": "8722:4:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947_to_t_string_memory_ptr_fromStack",
"nativeSrc": "8596:124:1",
"nodeType": "YulIdentifier",
"src": "8596:124:1"
},
"nativeSrc": "8596:131:1",
"nodeType": "YulFunctionCall",
"src": "8596:131:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "8588:4:1",
"nodeType": "YulIdentifier",
"src": "8588:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947__to_t_string_memory_ptr__fromStack_reversed",
"nativeSrc": "8315:419:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "8466:9:1",
"nodeType": "YulTypedName",
"src": "8466:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "8481:4:1",
"nodeType": "YulTypedName",
"src": "8481:4:1",
"type": ""
}
],
"src": "8315:419:1"
},
{
"body": {
"nativeSrc": "8846:69:1",
"nodeType": "YulBlock",
"src": "8846:69:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "8868:6:1",
"nodeType": "YulIdentifier",
"src": "8868:6:1"
},
{
"kind": "number",
"nativeSrc": "8876:1:1",
"nodeType": "YulLiteral",
"src": "8876:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "8864:3:1",
"nodeType": "YulIdentifier",
"src": "8864:3:1"
},
"nativeSrc": "8864:14:1",
"nodeType": "YulFunctionCall",
"src": "8864:14:1"
},
{
"hexValue": "466f756e64206c6f6f7020696e2064656c65676174696f6e2e",
"kind": "string",
"nativeSrc": "8880:27:1",
"nodeType": "YulLiteral",
"src": "8880:27:1",
"type": "",
"value": "Found loop in delegation."
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "8857:6:1",
"nodeType": "YulIdentifier",
"src": "8857:6:1"
},
"nativeSrc": "8857:51:1",
"nodeType": "YulFunctionCall",
"src": "8857:51:1"
},
"nativeSrc": "8857:51:1",
"nodeType": "YulExpressionStatement",
"src": "8857:51:1"
}
]
},
"name": "store_literal_in_memory_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c",
"nativeSrc": "8740:175:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "8838:6:1",
"nodeType": "YulTypedName",
"src": "8838:6:1",
"type": ""
}
],
"src": "8740:175:1"
},
{
"body": {
"nativeSrc": "9067:220:1",
"nodeType": "YulBlock",
"src": "9067:220:1",
"statements": [
{
"nativeSrc": "9077:74:1",
"nodeType": "YulAssignment",
"src": "9077:74:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "9143:3:1",
"nodeType": "YulIdentifier",
"src": "9143:3:1"
},
{
"kind": "number",
"nativeSrc": "9148:2:1",
"nodeType": "YulLiteral",
"src": "9148:2:1",
"type": "",
"value": "25"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "9084:58:1",
"nodeType": "YulIdentifier",
"src": "9084:58:1"
},
"nativeSrc": "9084:67:1",
"nodeType": "YulFunctionCall",
"src": "9084:67:1"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "9077:3:1",
"nodeType": "YulIdentifier",
"src": "9077:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "9249:3:1",
"nodeType": "YulIdentifier",
"src": "9249:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c",
"nativeSrc": "9160:88:1",
"nodeType": "YulIdentifier",
"src": "9160:88:1"
},
"nativeSrc": "9160:93:1",
"nodeType": "YulFunctionCall",
"src": "9160:93:1"
},
"nativeSrc": "9160:93:1",
"nodeType": "YulExpressionStatement",
"src": "9160:93:1"
},
{
"nativeSrc": "9262:19:1",
"nodeType": "YulAssignment",
"src": "9262:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "9273:3:1",
"nodeType": "YulIdentifier",
"src": "9273:3:1"
},
{
"kind": "number",
"nativeSrc": "9278:2:1",
"nodeType": "YulLiteral",
"src": "9278:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "9269:3:1",
"nodeType": "YulIdentifier",
"src": "9269:3:1"
},
"nativeSrc": "9269:12:1",
"nodeType": "YulFunctionCall",
"src": "9269:12:1"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "9262:3:1",
"nodeType": "YulIdentifier",
"src": "9262:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c_to_t_string_memory_ptr_fromStack",
"nativeSrc": "8921:366:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "9055:3:1",
"nodeType": "YulTypedName",
"src": "9055:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "9063:3:1",
"nodeType": "YulTypedName",
"src": "9063:3:1",
"type": ""
}
],
"src": "8921:366:1"
},
{
"body": {
"nativeSrc": "9464:248:1",
"nodeType": "YulBlock",
"src": "9464:248:1",
"statements": [
{
"nativeSrc": "9474:26:1",
"nodeType": "YulAssignment",
"src": "9474:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "9486:9:1",
"nodeType": "YulIdentifier",
"src": "9486:9:1"
},
{
"kind": "number",
"nativeSrc": "9497:2:1",
"nodeType": "YulLiteral",
"src": "9497:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "9482:3:1",
"nodeType": "YulIdentifier",
"src": "9482:3:1"
},
"nativeSrc": "9482:18:1",
"nodeType": "YulFunctionCall",
"src": "9482:18:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "9474:4:1",
"nodeType": "YulIdentifier",
"src": "9474:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "9521:9:1",
"nodeType": "YulIdentifier",
"src": "9521:9:1"
},
{
"kind": "number",
"nativeSrc": "9532:1:1",
"nodeType": "YulLiteral",
"src": "9532:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "9517:3:1",
"nodeType": "YulIdentifier",
"src": "9517:3:1"
},
"nativeSrc": "9517:17:1",
"nodeType": "YulFunctionCall",
"src": "9517:17:1"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "9540:4:1",
"nodeType": "YulIdentifier",
"src": "9540:4:1"
},
{
"name": "headStart",
"nativeSrc": "9546:9:1",
"nodeType": "YulIdentifier",
"src": "9546:9:1"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "9536:3:1",
"nodeType": "YulIdentifier",
"src": "9536:3:1"
},
"nativeSrc": "9536:20:1",
"nodeType": "YulFunctionCall",
"src": "9536:20:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "9510:6:1",
"nodeType": "YulIdentifier",
"src": "9510:6:1"
},
"nativeSrc": "9510:47:1",
"nodeType": "YulFunctionCall",
"src": "9510:47:1"
},
"nativeSrc": "9510:47:1",
"nodeType": "YulExpressionStatement",
"src": "9510:47:1"
},
{
"nativeSrc": "9566:139:1",
"nodeType": "YulAssignment",
"src": "9566:139:1",
"value": {
"arguments": [
{
"name": "tail",
"nativeSrc": "9700:4:1",
"nodeType": "YulIdentifier",
"src": "9700:4:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c_to_t_string_memory_ptr_fromStack",
"nativeSrc": "9574:124:1",
"nodeType": "YulIdentifier",
"src": "9574:124:1"
},
"nativeSrc": "9574:131:1",
"nodeType": "YulFunctionCall",
"src": "9574:131:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "9566:4:1",
"nodeType": "YulIdentifier",
"src": "9566:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c__to_t_string_memory_ptr__fromStack_reversed",
"nativeSrc": "9293:419:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "9444:9:1",
"nodeType": "YulTypedName",
"src": "9444:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "9459:4:1",
"nodeType": "YulTypedName",
"src": "9459:4:1",
"type": ""
}
],
"src": "9293:419:1"
},
{
"body": {
"nativeSrc": "9824:121:1",
"nodeType": "YulBlock",
"src": "9824:121:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "9846:6:1",
"nodeType": "YulIdentifier",
"src": "9846:6:1"
},
{
"kind": "number",
"nativeSrc": "9854:1:1",
"nodeType": "YulLiteral",
"src": "9854:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "9842:3:1",
"nodeType": "YulIdentifier",
"src": "9842:3:1"
},
"nativeSrc": "9842:14:1",
"nodeType": "YulFunctionCall",
"src": "9842:14:1"
},
{
"hexValue": "4f6e6c79206368616972706572736f6e2063616e206769766520726967687420",
"kind": "string",
"nativeSrc": "9858:34:1",
"nodeType": "YulLiteral",
"src": "9858:34:1",
"type": "",
"value": "Only chairperson can give right "
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "9835:6:1",
"nodeType": "YulIdentifier",
"src": "9835:6:1"
},
"nativeSrc": "9835:58:1",
"nodeType": "YulFunctionCall",
"src": "9835:58:1"
},
"nativeSrc": "9835:58:1",
"nodeType": "YulExpressionStatement",
"src": "9835:58:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "9914:6:1",
"nodeType": "YulIdentifier",
"src": "9914:6:1"
},
{
"kind": "number",
"nativeSrc": "9922:2:1",
"nodeType": "YulLiteral",
"src": "9922:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "9910:3:1",
"nodeType": "YulIdentifier",
"src": "9910:3:1"
},
"nativeSrc": "9910:15:1",
"nodeType": "YulFunctionCall",
"src": "9910:15:1"
},
{
"hexValue": "746f20766f74652e",
"kind": "string",
"nativeSrc": "9927:10:1",
"nodeType": "YulLiteral",
"src": "9927:10:1",
"type": "",
"value": "to vote."
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "9903:6:1",
"nodeType": "YulIdentifier",
"src": "9903:6:1"
},
"nativeSrc": "9903:35:1",
"nodeType": "YulFunctionCall",
"src": "9903:35:1"
},
"nativeSrc": "9903:35:1",
"nodeType": "YulExpressionStatement",
"src": "9903:35:1"
}
]
},
"name": "store_literal_in_memory_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95",
"nativeSrc": "9718:227:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "9816:6:1",
"nodeType": "YulTypedName",
"src": "9816:6:1",
"type": ""
}
],
"src": "9718:227:1"
},
{
"body": {
"nativeSrc": "10097:220:1",
"nodeType": "YulBlock",
"src": "10097:220:1",
"statements": [
{
"nativeSrc": "10107:74:1",
"nodeType": "YulAssignment",
"src": "10107:74:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "10173:3:1",
"nodeType": "YulIdentifier",
"src": "10173:3:1"
},
{
"kind": "number",
"nativeSrc": "10178:2:1",
"nodeType": "YulLiteral",
"src": "10178:2:1",
"type": "",
"value": "40"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "10114:58:1",
"nodeType": "YulIdentifier",
"src": "10114:58:1"
},
"nativeSrc": "10114:67:1",
"nodeType": "YulFunctionCall",
"src": "10114:67:1"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "10107:3:1",
"nodeType": "YulIdentifier",
"src": "10107:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "10279:3:1",
"nodeType": "YulIdentifier",
"src": "10279:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95",
"nativeSrc": "10190:88:1",
"nodeType": "YulIdentifier",
"src": "10190:88:1"
},
"nativeSrc": "10190:93:1",
"nodeType": "YulFunctionCall",
"src": "10190:93:1"
},
"nativeSrc": "10190:93:1",
"nodeType": "YulExpressionStatement",
"src": "10190:93:1"
},
{
"nativeSrc": "10292:19:1",
"nodeType": "YulAssignment",
"src": "10292:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "10303:3:1",
"nodeType": "YulIdentifier",
"src": "10303:3:1"
},
{
"kind": "number",
"nativeSrc": "10308:2:1",
"nodeType": "YulLiteral",
"src": "10308:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nativeSrc": "10299:3:1",
"nodeType": "YulIdentifier",
"src": "10299:3:1"
},
"nativeSrc": "10299:12:1",
"nodeType": "YulFunctionCall",
"src": "10299:12:1"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "10292:3:1",
"nodeType": "YulIdentifier",
"src": "10292:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95_to_t_string_memory_ptr_fromStack",
"nativeSrc": "9951:366:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "10085:3:1",
"nodeType": "YulTypedName",
"src": "10085:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "10093:3:1",
"nodeType": "YulTypedName",
"src": "10093:3:1",
"type": ""
}
],
"src": "9951:366:1"
},
{
"body": {
"nativeSrc": "10494:248:1",
"nodeType": "YulBlock",
"src": "10494:248:1",
"statements": [
{
"nativeSrc": "10504:26:1",
"nodeType": "YulAssignment",
"src": "10504:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "10516:9:1",
"nodeType": "YulIdentifier",
"src": "10516:9:1"
},
{
"kind": "number",
"nativeSrc": "10527:2:1",
"nodeType": "YulLiteral",
"src": "10527:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "10512:3:1",
"nodeType": "YulIdentifier",
"src": "10512:3:1"
},
"nativeSrc": "10512:18:1",
"nodeType": "YulFunctionCall",
"src": "10512:18:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "10504:4:1",
"nodeType": "YulIdentifier",
"src": "10504:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "10551:9:1",
"nodeType": "YulIdentifier",
"src": "10551:9:1"
},
{
"kind": "number",
"nativeSrc": "10562:1:1",
"nodeType": "YulLiteral",
"src": "10562:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "10547:3:1",
"nodeType": "YulIdentifier",
"src": "10547:3:1"
},
"nativeSrc": "10547:17:1",
"nodeType": "YulFunctionCall",
"src": "10547:17:1"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "10570:4:1",
"nodeType": "YulIdentifier",
"src": "10570:4:1"
},
{
"name": "headStart",
"nativeSrc": "10576:9:1",
"nodeType": "YulIdentifier",
"src": "10576:9:1"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "10566:3:1",
"nodeType": "YulIdentifier",
"src": "10566:3:1"
},
"nativeSrc": "10566:20:1",
"nodeType": "YulFunctionCall",
"src": "10566:20:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "10540:6:1",
"nodeType": "YulIdentifier",
"src": "10540:6:1"
},
"nativeSrc": "10540:47:1",
"nodeType": "YulFunctionCall",
"src": "10540:47:1"
},
"nativeSrc": "10540:47:1",
"nodeType": "YulExpressionStatement",
"src": "10540:47:1"
},
{
"nativeSrc": "10596:139:1",
"nodeType": "YulAssignment",
"src": "10596:139:1",
"value": {
"arguments": [
{
"name": "tail",
"nativeSrc": "10730:4:1",
"nodeType": "YulIdentifier",
"src": "10730:4:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95_to_t_string_memory_ptr_fromStack",
"nativeSrc": "10604:124:1",
"nodeType": "YulIdentifier",
"src": "10604:124:1"
},
"nativeSrc": "10604:131:1",
"nodeType": "YulFunctionCall",
"src": "10604:131:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "10596:4:1",
"nodeType": "YulIdentifier",
"src": "10596:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95__to_t_string_memory_ptr__fromStack_reversed",
"nativeSrc": "10323:419:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "10474:9:1",
"nodeType": "YulTypedName",
"src": "10474:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "10489:4:1",
"nodeType": "YulTypedName",
"src": "10489:4:1",
"type": ""
}
],
"src": "10323:419:1"
},
{
"body": {
"nativeSrc": "10854:68:1",
"nodeType": "YulBlock",
"src": "10854:68:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "10876:6:1",
"nodeType": "YulIdentifier",
"src": "10876:6:1"
},
{
"kind": "number",
"nativeSrc": "10884:1:1",
"nodeType": "YulLiteral",
"src": "10884:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "10872:3:1",
"nodeType": "YulIdentifier",
"src": "10872:3:1"
},
"nativeSrc": "10872:14:1",
"nodeType": "YulFunctionCall",
"src": "10872:14:1"
},
{
"hexValue": "54686520766f74657220616c726561647920766f7465642e",
"kind": "string",
"nativeSrc": "10888:26:1",
"nodeType": "YulLiteral",
"src": "10888:26:1",
"type": "",
"value": "The voter already voted."
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "10865:6:1",
"nodeType": "YulIdentifier",
"src": "10865:6:1"
},
"nativeSrc": "10865:50:1",
"nodeType": "YulFunctionCall",
"src": "10865:50:1"
},
"nativeSrc": "10865:50:1",
"nodeType": "YulExpressionStatement",
"src": "10865:50:1"
}
]
},
"name": "store_literal_in_memory_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d",
"nativeSrc": "10748:174:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "10846:6:1",
"nodeType": "YulTypedName",
"src": "10846:6:1",
"type": ""
}
],
"src": "10748:174:1"
},
{
"body": {
"nativeSrc": "11074:220:1",
"nodeType": "YulBlock",
"src": "11074:220:1",
"statements": [
{
"nativeSrc": "11084:74:1",
"nodeType": "YulAssignment",
"src": "11084:74:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "11150:3:1",
"nodeType": "YulIdentifier",
"src": "11150:3:1"
},
{
"kind": "number",
"nativeSrc": "11155:2:1",
"nodeType": "YulLiteral",
"src": "11155:2:1",
"type": "",
"value": "24"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "11091:58:1",
"nodeType": "YulIdentifier",
"src": "11091:58:1"
},
"nativeSrc": "11091:67:1",
"nodeType": "YulFunctionCall",
"src": "11091:67:1"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "11084:3:1",
"nodeType": "YulIdentifier",
"src": "11084:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "11256:3:1",
"nodeType": "YulIdentifier",
"src": "11256:3:1"
}
],
"functionName": {
"name": "store_literal_in_memory_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d",
"nativeSrc": "11167:88:1",
"nodeType": "YulIdentifier",
"src": "11167:88:1"
},
"nativeSrc": "11167:93:1",
"nodeType": "YulFunctionCall",
"src": "11167:93:1"
},
"nativeSrc": "11167:93:1",
"nodeType": "YulExpressionStatement",
"src": "11167:93:1"
},
{
"nativeSrc": "11269:19:1",
"nodeType": "YulAssignment",
"src": "11269:19:1",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "11280:3:1",
"nodeType": "YulIdentifier",
"src": "11280:3:1"
},
{
"kind": "number",
"nativeSrc": "11285:2:1",
"nodeType": "YulLiteral",
"src": "11285:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "11276:3:1",
"nodeType": "YulIdentifier",
"src": "11276:3:1"
},
"nativeSrc": "11276:12:1",
"nodeType": "YulFunctionCall",
"src": "11276:12:1"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "11269:3:1",
"nodeType": "YulIdentifier",
"src": "11269:3:1"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d_to_t_string_memory_ptr_fromStack",
"nativeSrc": "10928:366:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "11062:3:1",
"nodeType": "YulTypedName",
"src": "11062:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "11070:3:1",
"nodeType": "YulTypedName",
"src": "11070:3:1",
"type": ""
}
],
"src": "10928:366:1"
},
{
"body": {
"nativeSrc": "11471:248:1",
"nodeType": "YulBlock",
"src": "11471:248:1",
"statements": [
{
"nativeSrc": "11481:26:1",
"nodeType": "YulAssignment",
"src": "11481:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "11493:9:1",
"nodeType": "YulIdentifier",
"src": "11493:9:1"
},
{
"kind": "number",
"nativeSrc": "11504:2:1",
"nodeType": "YulLiteral",
"src": "11504:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "11489:3:1",
"nodeType": "YulIdentifier",
"src": "11489:3:1"
},
"nativeSrc": "11489:18:1",
"nodeType": "YulFunctionCall",
"src": "11489:18:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "11481:4:1",
"nodeType": "YulIdentifier",
"src": "11481:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "11528:9:1",
"nodeType": "YulIdentifier",
"src": "11528:9:1"
},
{
"kind": "number",
"nativeSrc": "11539:1:1",
"nodeType": "YulLiteral",
"src": "11539:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "11524:3:1",
"nodeType": "YulIdentifier",
"src": "11524:3:1"
},
"nativeSrc": "11524:17:1",
"nodeType": "YulFunctionCall",
"src": "11524:17:1"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "11547:4:1",
"nodeType": "YulIdentifier",
"src": "11547:4:1"
},
{
"name": "headStart",
"nativeSrc": "11553:9:1",
"nodeType": "YulIdentifier",
"src": "11553:9:1"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "11543:3:1",
"nodeType": "YulIdentifier",
"src": "11543:3:1"
},
"nativeSrc": "11543:20:1",
"nodeType": "YulFunctionCall",
"src": "11543:20:1"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "11517:6:1",
"nodeType": "YulIdentifier",
"src": "11517:6:1"
},
"nativeSrc": "11517:47:1",
"nodeType": "YulFunctionCall",
"src": "11517:47:1"
},
"nativeSrc": "11517:47:1",
"nodeType": "YulExpressionStatement",
"src": "11517:47:1"
},
{
"nativeSrc": "11573:139:1",
"nodeType": "YulAssignment",
"src": "11573:139:1",
"value": {
"arguments": [
{
"name": "tail",
"nativeSrc": "11707:4:1",
"nodeType": "YulIdentifier",
"src": "11707:4:1"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d_to_t_string_memory_ptr_fromStack",
"nativeSrc": "11581:124:1",
"nodeType": "YulIdentifier",
"src": "11581:124:1"
},
"nativeSrc": "11581:131:1",
"nodeType": "YulFunctionCall",
"src": "11581:131:1"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "11573:4:1",
"nodeType": "YulIdentifier",
"src": "11573:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d__to_t_string_memory_ptr__fromStack_reversed",
"nativeSrc": "11300:419:1",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "11451:9:1",
"nodeType": "YulTypedName",
"src": "11451:9:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "11466:4:1",
"nodeType": "YulTypedName",
"src": "11466:4:1",
"type": ""
}
],
"src": "11300:419:1"
}
]
},
"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 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 cleanup_t_bytes32(value) -> cleaned {\n cleaned := value\n }\n\n function abi_encode_t_bytes32_to_t_bytes32_fromStack(value, pos) {\n mstore(pos, cleanup_t_bytes32(value))\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_bytes32_t_uint256__to_t_bytes32_t_uint256__fromStack_reversed(headStart , value1, value0) -> tail {\n tail := add(headStart, 64)\n\n abi_encode_t_bytes32_to_t_bytes32_fromStack(value0, add(headStart, 0))\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value1, add(headStart, 32))\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 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 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 cleanup_t_bool(value) -> cleaned {\n cleaned := iszero(iszero(value))\n }\n\n function abi_encode_t_bool_to_t_bool_fromStack(value, pos) {\n mstore(pos, cleanup_t_bool(value))\n }\n\n function abi_encode_tuple_t_uint256_t_bool_t_address_t_uint256__to_t_uint256_t_bool_t_address_t_uint256__fromStack_reversed(headStart , value3, value2, value1, value0) -> tail {\n tail := add(headStart, 128)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n abi_encode_t_bool_to_t_bool_fromStack(value1, add(headStart, 32))\n\n abi_encode_t_address_to_t_address_fromStack(value2, add(headStart, 64))\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value3, add(headStart, 96))\n\n }\n\n function abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_bytes32_to_t_bytes32_fromStack(value0, add(headStart, 0))\n\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function store_literal_in_memory_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e(memPtr) {\n\n mstore(add(memPtr, 0), \"Has no right to vote\")\n\n }\n\n function abi_encode_t_stringliteral_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 20)\n store_literal_in_memory_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_0dc527e8fa9b76c996eb5eda9ddb749b21540f5509781b94e1e37f7027e7f50e_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84(memPtr) {\n\n mstore(add(memPtr, 0), \"Already voted.\")\n\n }\n\n function abi_encode_t_stringliteral_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 14)\n store_literal_in_memory_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_56aab92b7164a4ea72a098d2d95a5e763b71d07f265e8d46fc7240404017fa84_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function panic_error_0x32() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x32)\n revert(0, 0x24)\n }\n\n function panic_error_0x11() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x11)\n revert(0, 0x24)\n }\n\n function checked_add_t_uint256(x, y) -> sum {\n x := cleanup_t_uint256(x)\n y := cleanup_t_uint256(y)\n sum := add(x, y)\n\n if gt(x, sum) { panic_error_0x11() }\n\n }\n\n function store_literal_in_memory_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f(memPtr) {\n\n mstore(add(memPtr, 0), \"You already voted.\")\n\n }\n\n function abi_encode_t_stringliteral_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 18)\n store_literal_in_memory_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_657c6119c4ed567c60278fba62242b17c2fedf38962e651040dabfb3c9e15a5f_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947(memPtr) {\n\n mstore(add(memPtr, 0), \"Self-delegation is disallowed.\")\n\n }\n\n function abi_encode_t_stringliteral_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 30)\n store_literal_in_memory_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_f37bf1aca80f8fa291a40f639db6aeaa1425ceb0e8c61c8648f0e2efa282a947_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c(memPtr) {\n\n mstore(add(memPtr, 0), \"Found loop in delegation.\")\n\n }\n\n function abi_encode_t_stringliteral_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 25)\n store_literal_in_memory_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_8bd75322489f7ff7ab0b18506f4dcde935a32eca2a506b00f4d21b0becfa093c_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95(memPtr) {\n\n mstore(add(memPtr, 0), \"Only chairperson can give right \")\n\n mstore(add(memPtr, 32), \"to vote.\")\n\n }\n\n function abi_encode_t_stringliteral_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 40)\n store_literal_in_memory_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95(pos)\n end := add(pos, 64)\n }\n\n function abi_encode_tuple_t_stringliteral_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_80126ce3251ab2b6e4ade14fe5b2bc11f593510cbe9e3550c09bff1989e33b95_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function store_literal_in_memory_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d(memPtr) {\n\n mstore(add(memPtr, 0), \"The voter already voted.\")\n\n }\n\n function abi_encode_t_stringliteral_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 24)\n store_literal_in_memory_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_tuple_t_stringliteral_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_d39b1db28626750c546703ffb72f30ea3facdfed1bebd47408e22ef18a76ba2d_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n}\n",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {},
"linkReferences": {},
"object": "608060405234801561000f575f80fd5b5060043610610086575f3560e01c8063609ff1bd11610059578063609ff1bd146101115780639e7b8d611461012f578063a3ec138d1461014b578063e2ba53f01461017e57610086565b80630121b93f1461008a578063013cf08b146100a65780632e4176cf146100d75780635c19a95c146100f5575b5f80fd5b6100a4600480360381019061009f9190610993565b61019c565b005b6100c060048036038101906100bb9190610993565b6102d7565b6040516100ce9291906109e5565b60405180910390f35b6100df610306565b6040516100ec9190610a4b565b60405180910390f35b61010f600480360381019061010a9190610a8e565b610329565b005b6101196106ae565b6040516101269190610ab9565b60405180910390f35b61014960048036038101906101449190610a8e565b610729565b005b61016560048036038101906101609190610a8e565b6108d4565b6040516101759493929190610aec565b60405180910390f35b61018661092c565b6040516101939190610b2f565b60405180910390f35b5f60015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f815f015403610221576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021890610ba2565b60405180910390fd5b806001015f9054906101000a900460ff1615610272576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161026990610c0a565b60405180910390fd5b6001816001015f6101000a81548160ff021916908315150217905550818160020181905550805f0154600283815481106102af576102ae610c28565b5b905f5260205f2090600202016001015f8282546102cc9190610c82565b925050819055505050565b600281815481106102e6575f80fd5b905f5260205f2090600202015f91509050805f0154908060010154905082565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60015f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f209050806001015f9054906101000a900460ff16156103ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103b190610cff565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161041f90610d67565b60405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff1660015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146105925760015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691503373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361058d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058490610dcf565b60405180910390fd5b610429565b6001816001015f6101000a81548160ff021916908315150217905550818160010160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f209050806001015f9054906101000a900460ff161561068c57815f0154600282600201548154811061066357610662610c28565b5b905f5260205f2090600202016001015f8282546106809190610c82565b925050819055506106a9565b815f0154815f015f8282546106a19190610c82565b925050819055505b505050565b5f805f90505f5b6002805490508110156107245781600282815481106106d7576106d6610c28565b5b905f5260205f209060020201600101541115610717576002818154811061070157610700610c28565b5b905f5260205f2090600202016001015491508092505b80806001019150506106b5565b505090565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ad90610e5d565b60405180910390fd5b60015f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206001015f9054906101000a900460ff1615610843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083a90610ec5565b60405180910390fd5b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f01541461088d575f80fd5b6001805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f018190555050565b6001602052805f5260405f205f91509050805f015490806001015f9054906101000a900460ff16908060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154905084565b5f60026109376106ae565b8154811061094857610947610c28565b5b905f5260205f2090600202015f0154905090565b5f80fd5b5f819050919050565b61097281610960565b811461097c575f80fd5b50565b5f8135905061098d81610969565b92915050565b5f602082840312156109a8576109a761095c565b5b5f6109b58482850161097f565b91505092915050565b5f819050919050565b6109d0816109be565b82525050565b6109df81610960565b82525050565b5f6040820190506109f85f8301856109c7565b610a0560208301846109d6565b9392505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610a3582610a0c565b9050919050565b610a4581610a2b565b82525050565b5f602082019050610a5e5f830184610a3c565b92915050565b610a6d81610a2b565b8114610a77575f80fd5b50565b5f81359050610a8881610a64565b92915050565b5f60208284031215610aa357610aa261095c565b5b5f610ab084828501610a7a565b91505092915050565b5f602082019050610acc5f8301846109d6565b92915050565b5f8115159050919050565b610ae681610ad2565b82525050565b5f608082019050610aff5f8301876109d6565b610b0c6020830186610add565b610b196040830185610a3c565b610b2660608301846109d6565b95945050505050565b5f602082019050610b425f8301846109c7565b92915050565b5f82825260208201905092915050565b7f486173206e6f20726967687420746f20766f74650000000000000000000000005f82015250565b5f610b8c601483610b48565b9150610b9782610b58565b602082019050919050565b5f6020820190508181035f830152610bb981610b80565b9050919050565b7f416c726561647920766f7465642e0000000000000000000000000000000000005f82015250565b5f610bf4600e83610b48565b9150610bff82610bc0565b602082019050919050565b5f6020820190508181035f830152610c2181610be8565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f610c8c82610960565b9150610c9783610960565b9250828201905080821115610caf57610cae610c55565b5b92915050565b7f596f7520616c726561647920766f7465642e00000000000000000000000000005f82015250565b5f610ce9601283610b48565b9150610cf482610cb5565b602082019050919050565b5f6020820190508181035f830152610d1681610cdd565b9050919050565b7f53656c662d64656c65676174696f6e20697320646973616c6c6f7765642e00005f82015250565b5f610d51601e83610b48565b9150610d5c82610d1d565b602082019050919050565b5f6020820190508181035f830152610d7e81610d45565b9050919050565b7f466f756e64206c6f6f7020696e2064656c65676174696f6e2e000000000000005f82015250565b5f610db9601983610b48565b9150610dc482610d85565b602082019050919050565b5f6020820190508181035f830152610de681610dad565b9050919050565b7f4f6e6c79206368616972706572736f6e2063616e2067697665207269676874205f8201527f746f20766f74652e000000000000000000000000000000000000000000000000602082015250565b5f610e47602883610b48565b9150610e5282610ded565b604082019050919050565b5f6020820190508181035f830152610e7481610e3b565b9050919050565b7f54686520766f74657220616c726561647920766f7465642e00000000000000005f82015250565b5f610eaf601883610b48565b9150610eba82610e7b565b602082019050919050565b5f6020820190508181035f830152610edc81610ea3565b905091905056fea264697066735822122055d5e9b440e95cce5652e7057d51f64f4dd1c78387e400f8619575891971308c64736f6c63430008160033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0xF JUMPI PUSH0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x86 JUMPI PUSH0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x609FF1BD GT PUSH2 0x59 JUMPI DUP1 PUSH4 0x609FF1BD EQ PUSH2 0x111 JUMPI DUP1 PUSH4 0x9E7B8D61 EQ PUSH2 0x12F JUMPI DUP1 PUSH4 0xA3EC138D EQ PUSH2 0x14B JUMPI DUP1 PUSH4 0xE2BA53F0 EQ PUSH2 0x17E JUMPI PUSH2 0x86 JUMP JUMPDEST DUP1 PUSH4 0x121B93F EQ PUSH2 0x8A JUMPI DUP1 PUSH4 0x13CF08B EQ PUSH2 0xA6 JUMPI DUP1 PUSH4 0x2E4176CF EQ PUSH2 0xD7 JUMPI DUP1 PUSH4 0x5C19A95C EQ PUSH2 0xF5 JUMPI JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH2 0xA4 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x9F SWAP2 SWAP1 PUSH2 0x993 JUMP JUMPDEST PUSH2 0x19C JUMP JUMPDEST STOP JUMPDEST PUSH2 0xC0 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xBB SWAP2 SWAP1 PUSH2 0x993 JUMP JUMPDEST PUSH2 0x2D7 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xCE SWAP3 SWAP2 SWAP1 PUSH2 0x9E5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xDF PUSH2 0x306 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xEC SWAP2 SWAP1 PUSH2 0xA4B JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x10F PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x10A SWAP2 SWAP1 PUSH2 0xA8E JUMP JUMPDEST PUSH2 0x329 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x119 PUSH2 0x6AE JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x126 SWAP2 SWAP1 PUSH2 0xAB9 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x149 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x144 SWAP2 SWAP1 PUSH2 0xA8E JUMP JUMPDEST PUSH2 0x729 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x165 PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x160 SWAP2 SWAP1 PUSH2 0xA8E JUMP JUMPDEST PUSH2 0x8D4 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x175 SWAP5 SWAP4 SWAP3 SWAP2 SWAP1 PUSH2 0xAEC JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x186 PUSH2 0x92C JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x193 SWAP2 SWAP1 PUSH2 0xB2F JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH0 PUSH1 0x1 PUSH0 CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 SWAP1 POP PUSH0 DUP2 PUSH0 ADD SLOAD SUB PUSH2 0x221 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x218 SWAP1 PUSH2 0xBA2 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST DUP1 PUSH1 0x1 ADD PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH1 0xFF AND ISZERO PUSH2 0x272 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x269 SWAP1 PUSH2 0xC0A JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x1 DUP2 PUSH1 0x1 ADD PUSH0 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH1 0xFF MUL NOT AND SWAP1 DUP4 ISZERO ISZERO MUL OR SWAP1 SSTORE POP DUP2 DUP2 PUSH1 0x2 ADD DUP2 SWAP1 SSTORE POP DUP1 PUSH0 ADD SLOAD PUSH1 0x2 DUP4 DUP2 SLOAD DUP2 LT PUSH2 0x2AF JUMPI PUSH2 0x2AE PUSH2 0xC28 JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD PUSH0 DUP3 DUP3 SLOAD PUSH2 0x2CC SWAP2 SWAP1 PUSH2 0xC82 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP POP POP JUMP JUMPDEST PUSH1 0x2 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x2E6 JUMPI PUSH0 DUP1 REVERT JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH0 SWAP2 POP SWAP1 POP DUP1 PUSH0 ADD SLOAD SWAP1 DUP1 PUSH1 0x1 ADD SLOAD SWAP1 POP DUP3 JUMP JUMPDEST PUSH0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 JUMP JUMPDEST PUSH0 PUSH1 0x1 PUSH0 CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 SWAP1 POP DUP1 PUSH1 0x1 ADD PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH1 0xFF AND ISZERO PUSH2 0x3BA JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x3B1 SWAP1 PUSH2 0xCFF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SUB PUSH2 0x428 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x41F SWAP1 PUSH2 0xD67 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x1 PUSH0 DUP5 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 PUSH1 0x1 ADD PUSH1 0x1 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0x592 JUMPI PUSH1 0x1 PUSH0 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 PUSH1 0x1 ADD PUSH1 0x1 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP2 POP CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SUB PUSH2 0x58D JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x584 SWAP1 PUSH2 0xDCF JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH2 0x429 JUMP JUMPDEST PUSH1 0x1 DUP2 PUSH1 0x1 ADD PUSH0 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH1 0xFF MUL NOT AND SWAP1 DUP4 ISZERO ISZERO MUL OR SWAP1 SSTORE POP DUP2 DUP2 PUSH1 0x1 ADD PUSH1 0x1 PUSH2 0x100 EXP DUP2 SLOAD DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MUL NOT AND SWAP1 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND MUL OR SWAP1 SSTORE POP PUSH0 PUSH1 0x1 PUSH0 DUP5 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 SWAP1 POP DUP1 PUSH1 0x1 ADD PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH1 0xFF AND ISZERO PUSH2 0x68C JUMPI DUP2 PUSH0 ADD SLOAD PUSH1 0x2 DUP3 PUSH1 0x2 ADD SLOAD DUP2 SLOAD DUP2 LT PUSH2 0x663 JUMPI PUSH2 0x662 PUSH2 0xC28 JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD PUSH0 DUP3 DUP3 SLOAD PUSH2 0x680 SWAP2 SWAP1 PUSH2 0xC82 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP PUSH2 0x6A9 JUMP JUMPDEST DUP2 PUSH0 ADD SLOAD DUP2 PUSH0 ADD PUSH0 DUP3 DUP3 SLOAD PUSH2 0x6A1 SWAP2 SWAP1 PUSH2 0xC82 JUMP JUMPDEST SWAP3 POP POP DUP2 SWAP1 SSTORE POP JUMPDEST POP POP POP JUMP JUMPDEST PUSH0 DUP1 PUSH0 SWAP1 POP PUSH0 JUMPDEST PUSH1 0x2 DUP1 SLOAD SWAP1 POP DUP2 LT ISZERO PUSH2 0x724 JUMPI DUP2 PUSH1 0x2 DUP3 DUP2 SLOAD DUP2 LT PUSH2 0x6D7 JUMPI PUSH2 0x6D6 PUSH2 0xC28 JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD SLOAD GT ISZERO PUSH2 0x717 JUMPI PUSH1 0x2 DUP2 DUP2 SLOAD DUP2 LT PUSH2 0x701 JUMPI PUSH2 0x700 PUSH2 0xC28 JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH1 0x1 ADD SLOAD SWAP2 POP DUP1 SWAP3 POP JUMPDEST DUP1 DUP1 PUSH1 0x1 ADD SWAP2 POP POP PUSH2 0x6B5 JUMP JUMPDEST POP POP SWAP1 JUMP JUMPDEST PUSH0 DUP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0x7B6 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x7AD SWAP1 PUSH2 0xE5D JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x1 PUSH0 DUP3 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 PUSH1 0x1 ADD PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH1 0xFF AND ISZERO PUSH2 0x843 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x83A SWAP1 PUSH2 0xEC5 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH0 PUSH1 0x1 PUSH0 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 PUSH0 ADD SLOAD EQ PUSH2 0x88D JUMPI PUSH0 DUP1 REVERT JUMPDEST PUSH1 0x1 DUP1 PUSH0 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE PUSH1 0x20 ADD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH0 KECCAK256 PUSH0 ADD DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST PUSH1 0x1 PUSH1 0x20 MSTORE DUP1 PUSH0 MSTORE PUSH1 0x40 PUSH0 KECCAK256 PUSH0 SWAP2 POP SWAP1 POP DUP1 PUSH0 ADD SLOAD SWAP1 DUP1 PUSH1 0x1 ADD PUSH0 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH1 0xFF AND SWAP1 DUP1 PUSH1 0x1 ADD PUSH1 0x1 SWAP1 SLOAD SWAP1 PUSH2 0x100 EXP SWAP1 DIV PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 DUP1 PUSH1 0x2 ADD SLOAD SWAP1 POP DUP5 JUMP JUMPDEST PUSH0 PUSH1 0x2 PUSH2 0x937 PUSH2 0x6AE JUMP JUMPDEST DUP2 SLOAD DUP2 LT PUSH2 0x948 JUMPI PUSH2 0x947 PUSH2 0xC28 JUMP JUMPDEST JUMPDEST SWAP1 PUSH0 MSTORE PUSH1 0x20 PUSH0 KECCAK256 SWAP1 PUSH1 0x2 MUL ADD PUSH0 ADD SLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH0 DUP1 REVERT JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x972 DUP2 PUSH2 0x960 JUMP JUMPDEST DUP2 EQ PUSH2 0x97C JUMPI PUSH0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x98D DUP2 PUSH2 0x969 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x9A8 JUMPI PUSH2 0x9A7 PUSH2 0x95C JUMP JUMPDEST JUMPDEST PUSH0 PUSH2 0x9B5 DUP5 DUP3 DUP6 ADD PUSH2 0x97F JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x9D0 DUP2 PUSH2 0x9BE JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH2 0x9DF DUP2 PUSH2 0x960 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 PUSH1 0x40 DUP3 ADD SWAP1 POP PUSH2 0x9F8 PUSH0 DUP4 ADD DUP6 PUSH2 0x9C7 JUMP JUMPDEST PUSH2 0xA05 PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0x9D6 JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH2 0xA35 DUP3 PUSH2 0xA0C JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0xA45 DUP2 PUSH2 0xA2B JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0xA5E PUSH0 DUP4 ADD DUP5 PUSH2 0xA3C JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0xA6D DUP2 PUSH2 0xA2B JUMP JUMPDEST DUP2 EQ PUSH2 0xA77 JUMPI PUSH0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0xA88 DUP2 PUSH2 0xA64 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0xAA3 JUMPI PUSH2 0xAA2 PUSH2 0x95C JUMP JUMPDEST JUMPDEST PUSH0 PUSH2 0xAB0 DUP5 DUP3 DUP6 ADD PUSH2 0xA7A JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0xACC PUSH0 DUP4 ADD DUP5 PUSH2 0x9D6 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP2 ISZERO ISZERO SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0xAE6 DUP2 PUSH2 0xAD2 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH0 PUSH1 0x80 DUP3 ADD SWAP1 POP PUSH2 0xAFF PUSH0 DUP4 ADD DUP8 PUSH2 0x9D6 JUMP JUMPDEST PUSH2 0xB0C PUSH1 0x20 DUP4 ADD DUP7 PUSH2 0xADD JUMP JUMPDEST PUSH2 0xB19 PUSH1 0x40 DUP4 ADD DUP6 PUSH2 0xA3C JUMP JUMPDEST PUSH2 0xB26 PUSH1 0x60 DUP4 ADD DUP5 PUSH2 0x9D6 JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0xB42 PUSH0 DUP4 ADD DUP5 PUSH2 0x9C7 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x486173206E6F20726967687420746F20766F7465000000000000000000000000 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xB8C PUSH1 0x14 DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xB97 DUP3 PUSH2 0xB58 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xBB9 DUP2 PUSH2 0xB80 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x416C726561647920766F7465642E000000000000000000000000000000000000 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xBF4 PUSH1 0xE DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xBFF DUP3 PUSH2 0xBC0 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xC21 DUP2 PUSH2 0xBE8 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH0 REVERT JUMPDEST PUSH0 PUSH2 0xC8C DUP3 PUSH2 0x960 JUMP JUMPDEST SWAP2 POP PUSH2 0xC97 DUP4 PUSH2 0x960 JUMP JUMPDEST SWAP3 POP DUP3 DUP3 ADD SWAP1 POP DUP1 DUP3 GT ISZERO PUSH2 0xCAF JUMPI PUSH2 0xCAE PUSH2 0xC55 JUMP JUMPDEST JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x596F7520616C726561647920766F7465642E0000000000000000000000000000 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xCE9 PUSH1 0x12 DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xCF4 DUP3 PUSH2 0xCB5 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xD16 DUP2 PUSH2 0xCDD JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x53656C662D64656C65676174696F6E20697320646973616C6C6F7765642E0000 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xD51 PUSH1 0x1E DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xD5C DUP3 PUSH2 0xD1D JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xD7E DUP2 PUSH2 0xD45 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x466F756E64206C6F6F7020696E2064656C65676174696F6E2E00000000000000 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xDB9 PUSH1 0x19 DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xDC4 DUP3 PUSH2 0xD85 JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xDE6 DUP2 PUSH2 0xDAD JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4F6E6C79206368616972706572736F6E2063616E206769766520726967687420 PUSH0 DUP3 ADD MSTORE PUSH32 0x746F20766F74652E000000000000000000000000000000000000000000000000 PUSH1 0x20 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xE47 PUSH1 0x28 DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xE52 DUP3 PUSH2 0xDED JUMP JUMPDEST PUSH1 0x40 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xE74 DUP2 PUSH2 0xE3B JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x54686520766F74657220616C726561647920766F7465642E0000000000000000 PUSH0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH0 PUSH2 0xEAF PUSH1 0x18 DUP4 PUSH2 0xB48 JUMP JUMPDEST SWAP2 POP PUSH2 0xEBA DUP3 PUSH2 0xE7B JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH0 DUP4 ADD MSTORE PUSH2 0xEDC DUP2 PUSH2 0xEA3 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 SSTORE 0xD5 0xE9 0xB4 BLOCKHASH 0xE9 0x5C 0xCE JUMP MSTORE 0xE7 SDIV PUSH30 0x51F64F4DD1C78387E400F8619575891971308C64736F6C63430008160033 ",
"sourceMap": "157:4355:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3166:458;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;791:27;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;712:26;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2071:907;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;3810:365;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1592:355;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;745:39;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;4366:144;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3166:458;3212:20;3235:6;:18;3242:10;3235:18;;;;;;;;;;;;;;;3212:41;;3288:1;3271:6;:13;;;:18;3263:51;;;;;;;;;;;;:::i;:::-;;;;;;;;;3333:6;:12;;;;;;;;;;;;3332:13;3324:40;;;;;;;;;;;;:::i;:::-;;;;;;;;;3389:4;3374:6;:12;;;:19;;;;;;;;;;;;;;;;;;3417:8;3403:6;:11;;:22;;;;3604:6;:13;;;3571:9;3581:8;3571:19;;;;;;;;:::i;:::-;;;;;;;;;;;;:29;;;:46;;;;;;;:::i;:::-;;;;;;;;3202:422;3166:458;:::o;791:27::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;712:26::-;;;;;;;;;;;;:::o;2071:907::-;2118:20;2141:6;:18;2148:10;2141:18;;;;;;;;;;;;;;;2118:41;;2178:6;:12;;;;;;;;;;;;2177:13;2169:44;;;;;;;;;;;;:::i;:::-;;;;;;;;;2237:10;2231:16;;:2;:16;;;2223:59;;;;;;;;;;;;:::i;:::-;;;;;;;;;2293:223;2331:1;2300:33;;:6;:10;2307:2;2300:10;;;;;;;;;;;;;;;:19;;;;;;;;;;;;:33;;;2293:223;;2354:6;:10;2361:2;2354:10;;;;;;;;;;;;;;;:19;;;;;;;;;;;;2349:24;;2465:10;2459:16;;:2;:16;;;2451:54;;;;;;;;;;;;:::i;:::-;;;;;;;;;2293:223;;;2540:4;2525:6;:12;;;:19;;;;;;;;;;;;;;;;;;2572:2;2554:6;:15;;;:20;;;;;;;;;;;;;;;;;;2584:23;2610:6;:10;2617:2;2610:10;;;;;;;;;;;;;;;2584:36;;2634:9;:15;;;;;;;;;;;;2630:342;;;2801:6;:13;;;2762:9;2772;:14;;;2762:25;;;;;;;;:::i;:::-;;;;;;;;;;;;:35;;;:52;;;;;;;:::i;:::-;;;;;;;;2630:342;;;2948:6;:13;;;2928:9;:16;;;:33;;;;;;;:::i;:::-;;;;;;;;2630:342;2108:870;;2071:907;:::o;3810:365::-;3870:21;3907;3931:1;3907:25;;3947:6;3942:227;3963:9;:16;;;;3959:1;:20;3942:227;;;4029:16;4004:9;4014:1;4004:12;;;;;;;;:::i;:::-;;;;;;;;;;;;:22;;;:41;4000:159;;;4084:9;4094:1;4084:12;;;;;;;;:::i;:::-;;;;;;;;;;;;:22;;;4065:41;;4143:1;4124:20;;4000:159;3981:3;;;;;;;3942:227;;;;3897:278;3810:365;:::o;1592:355::-;1684:11;;;;;;;;;;1670:25;;:10;:25;;;1649:112;;;;;;;;;;;;:::i;:::-;;;;;;;;;1793:6;:13;1800:5;1793:13;;;;;;;;;;;;;;;:19;;;;;;;;;;;;1792:20;1771:91;;;;;;;;;;;;:::i;:::-;;;;;;;;;1904:1;1880:6;:13;1887:5;1880:13;;;;;;;;;;;;;;;:20;;;:25;1872:34;;;;;;1939:1;1916:6;:13;1923:5;1916:13;;;;;;;;;;;;;;;:20;;:24;;;;1592:355;:::o;745:39::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;4366:144::-;4421:19;4470:9;4480:17;:15;:17::i;:::-;4470:28;;;;;;;;:::i;:::-;;;;;;;;;;;;:33;;;4456:47;;4366:144;:::o;88:117:1:-;197:1;194;187:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:139::-;591:5;629:6;616:20;607:29;;645:33;672:5;645:33;:::i;:::-;545:139;;;;:::o;690:329::-;749:6;798:2;786:9;777:7;773:23;769:32;766:119;;;804:79;;:::i;:::-;766:119;924:1;949:53;994:7;985:6;974:9;970:22;949:53;:::i;:::-;939:63;;895:117;690:329;;;;:::o;1025:77::-;1062:7;1091:5;1080:16;;1025:77;;;:::o;1108:118::-;1195:24;1213:5;1195:24;:::i;:::-;1190:3;1183:37;1108:118;;:::o;1232:::-;1319:24;1337:5;1319:24;:::i;:::-;1314:3;1307:37;1232:118;;:::o;1356:332::-;1477:4;1515:2;1504:9;1500:18;1492:26;;1528:71;1596:1;1585:9;1581:17;1572:6;1528:71;:::i;:::-;1609:72;1677:2;1666:9;1662:18;1653:6;1609:72;:::i;:::-;1356:332;;;;;:::o;1694:126::-;1731:7;1771:42;1764:5;1760:54;1749:65;;1694:126;;;:::o;1826:96::-;1863:7;1892:24;1910:5;1892:24;:::i;:::-;1881:35;;1826:96;;;:::o;1928:118::-;2015:24;2033:5;2015:24;:::i;:::-;2010:3;2003:37;1928:118;;:::o;2052:222::-;2145:4;2183:2;2172:9;2168:18;2160:26;;2196:71;2264:1;2253:9;2249:17;2240:6;2196:71;:::i;:::-;2052:222;;;;:::o;2280:122::-;2353:24;2371:5;2353:24;:::i;:::-;2346:5;2343:35;2333:63;;2392:1;2389;2382:12;2333:63;2280:122;:::o;2408:139::-;2454:5;2492:6;2479:20;2470:29;;2508:33;2535:5;2508:33;:::i;:::-;2408:139;;;;:::o;2553:329::-;2612:6;2661:2;2649:9;2640:7;2636:23;2632:32;2629:119;;;2667:79;;:::i;:::-;2629:119;2787:1;2812:53;2857:7;2848:6;2837:9;2833:22;2812:53;:::i;:::-;2802:63;;2758:117;2553:329;;;;:::o;2888:222::-;2981:4;3019:2;3008:9;3004:18;2996:26;;3032:71;3100:1;3089:9;3085:17;3076:6;3032:71;:::i;:::-;2888:222;;;;:::o;3116:90::-;3150:7;3193:5;3186:13;3179:21;3168:32;;3116:90;;;:::o;3212:109::-;3293:21;3308:5;3293:21;:::i;:::-;3288:3;3281:34;3212:109;;:::o;3327:541::-;3498:4;3536:3;3525:9;3521:19;3513:27;;3550:71;3618:1;3607:9;3603:17;3594:6;3550:71;:::i;:::-;3631:66;3693:2;3682:9;3678:18;3669:6;3631:66;:::i;:::-;3707:72;3775:2;3764:9;3760:18;3751:6;3707:72;:::i;:::-;3789;3857:2;3846:9;3842:18;3833:6;3789:72;:::i;:::-;3327:541;;;;;;;:::o;3874:222::-;3967:4;4005:2;3994:9;3990:18;3982:26;;4018:71;4086:1;4075:9;4071:17;4062:6;4018:71;:::i;:::-;3874:222;;;;:::o;4102:169::-;4186:11;4220:6;4215:3;4208:19;4260:4;4255:3;4251:14;4236:29;;4102:169;;;;:::o;4277:170::-;4417:22;4413:1;4405:6;4401:14;4394:46;4277:170;:::o;4453:366::-;4595:3;4616:67;4680:2;4675:3;4616:67;:::i;:::-;4609:74;;4692:93;4781:3;4692:93;:::i;:::-;4810:2;4805:3;4801:12;4794:19;;4453:366;;;:::o;4825:419::-;4991:4;5029:2;5018:9;5014:18;5006:26;;5078:9;5072:4;5068:20;5064:1;5053:9;5049:17;5042:47;5106:131;5232:4;5106:131;:::i;:::-;5098:139;;4825:419;;;:::o;5250:164::-;5390:16;5386:1;5378:6;5374:14;5367:40;5250:164;:::o;5420:366::-;5562:3;5583:67;5647:2;5642:3;5583:67;:::i;:::-;5576:74;;5659:93;5748:3;5659:93;:::i;:::-;5777:2;5772:3;5768:12;5761:19;;5420:366;;;:::o;5792:419::-;5958:4;5996:2;5985:9;5981:18;5973:26;;6045:9;6039:4;6035:20;6031:1;6020:9;6016:17;6009:47;6073:131;6199:4;6073:131;:::i;:::-;6065:139;;5792:419;;;:::o;6217:180::-;6265:77;6262:1;6255:88;6362:4;6359:1;6352:15;6386:4;6383:1;6376:15;6403:180;6451:77;6448:1;6441:88;6548:4;6545:1;6538:15;6572:4;6569:1;6562:15;6589:191;6629:3;6648:20;6666:1;6648:20;:::i;:::-;6643:25;;6682:20;6700:1;6682:20;:::i;:::-;6677:25;;6725:1;6722;6718:9;6711:16;;6746:3;6743:1;6740:10;6737:36;;;6753:18;;:::i;:::-;6737:36;6589:191;;;;:::o;6786:168::-;6926:20;6922:1;6914:6;6910:14;6903:44;6786:168;:::o;6960:366::-;7102:3;7123:67;7187:2;7182:3;7123:67;:::i;:::-;7116:74;;7199:93;7288:3;7199:93;:::i;:::-;7317:2;7312:3;7308:12;7301:19;;6960:366;;;:::o;7332:419::-;7498:4;7536:2;7525:9;7521:18;7513:26;;7585:9;7579:4;7575:20;7571:1;7560:9;7556:17;7549:47;7613:131;7739:4;7613:131;:::i;:::-;7605:139;;7332:419;;;:::o;7757:180::-;7897:32;7893:1;7885:6;7881:14;7874:56;7757:180;:::o;7943:366::-;8085:3;8106:67;8170:2;8165:3;8106:67;:::i;:::-;8099:74;;8182:93;8271:3;8182:93;:::i;:::-;8300:2;8295:3;8291:12;8284:19;;7943:366;;;:::o;8315:419::-;8481:4;8519:2;8508:9;8504:18;8496:26;;8568:9;8562:4;8558:20;8554:1;8543:9;8539:17;8532:47;8596:131;8722:4;8596:131;:::i;:::-;8588:139;;8315:419;;;:::o;8740:175::-;8880:27;8876:1;8868:6;8864:14;8857:51;8740:175;:::o;8921:366::-;9063:3;9084:67;9148:2;9143:3;9084:67;:::i;:::-;9077:74;;9160:93;9249:3;9160:93;:::i;:::-;9278:2;9273:3;9269:12;9262:19;;8921:366;;;:::o;9293:419::-;9459:4;9497:2;9486:9;9482:18;9474:26;;9546:9;9540:4;9536:20;9532:1;9521:9;9517:17;9510:47;9574:131;9700:4;9574:131;:::i;:::-;9566:139;;9293:419;;;:::o;9718:227::-;9858:34;9854:1;9846:6;9842:14;9835:58;9927:10;9922:2;9914:6;9910:15;9903:35;9718:227;:::o;9951:366::-;10093:3;10114:67;10178:2;10173:3;10114:67;:::i;:::-;10107:74;;10190:93;10279:3;10190:93;:::i;:::-;10308:2;10303:3;10299:12;10292:19;;9951:366;;;:::o;10323:419::-;10489:4;10527:2;10516:9;10512:18;10504:26;;10576:9;10570:4;10566:20;10562:1;10551:9;10547:17;10540:47;10604:131;10730:4;10604:131;:::i;:::-;10596:139;;10323:419;;;:::o;10748:174::-;10888:26;10884:1;10876:6;10872:14;10865:50;10748:174;:::o;10928:366::-;11070:3;11091:67;11155:2;11150:3;11091:67;:::i;:::-;11084:74;;11167:93;11256:3;11167:93;:::i;:::-;11285:2;11280:3;11276:12;11269:19;;10928:366;;;:::o;11300:419::-;11466:4;11504:2;11493:9;11489:18;11481:26;;11553:9;11547:4;11543:20;11539:1;11528:9;11524:17;11517:47;11581:131;11707:4;11581:131;:::i;:::-;11573:139;;11300:419;;;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "773000",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"chairperson()": "2550",
"delegate(address)": "infinite",
"giveRightToVote(address)": "29308",
"proposals(uint256)": "infinite",
"vote(uint256)": "infinite",
"voters(address)": "infinite",
"winnerName()": "infinite",
"winningProposal()": "infinite"
}
},
"methodIdentifiers": {
"chairperson()": "2e4176cf",
"delegate(address)": "5c19a95c",
"giveRightToVote(address)": "9e7b8d61",
"proposals(uint256)": "013cf08b",
"vote(uint256)": "0121b93f",
"voters(address)": "a3ec138d",
"winnerName()": "e2ba53f0",
"winningProposal()": "609ff1bd"
}
},
"abi": [
{
"inputs": [
{
"internalType": "bytes32[]",
"name": "proposalNames",
"type": "bytes32[]"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "chairperson",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "delegate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "voter",
"type": "address"
}
],
"name": "giveRightToVote",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "proposals",
"outputs": [
{
"internalType": "bytes32",
"name": "name",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "voteCount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "proposal",
"type": "uint256"
}
],
"name": "vote",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "voters",
"outputs": [
{
"internalType": "uint256",
"name": "weight",
"type": "uint256"
},
{
"internalType": "bool",
"name": "voted",
"type": "bool"
},
{
"internalType": "address",
"name": "delegate",
"type": "address"
},
{
"internalType": "uint256",
"name": "vote",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "winnerName",
"outputs": [
{
"internalType": "bytes32",
"name": "winnerName_",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "winningProposal",
"outputs": [
{
"internalType": "uint256",
"name": "winningProposal_",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.22+commit.4fc1097e"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "bytes32[]",
"name": "proposalNames",
"type": "bytes32[]"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "chairperson",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "delegate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "voter",
"type": "address"
}
],
"name": "giveRightToVote",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "proposals",
"outputs": [
{
"internalType": "bytes32",
"name": "name",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "voteCount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "proposal",
"type": "uint256"
}
],
"name": "vote",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "voters",
"outputs": [
{
"internalType": "uint256",
"name": "weight",
"type": "uint256"
},
{
"internalType": "bool",
"name": "voted",
"type": "bool"
},
{
"internalType": "address",
"name": "delegate",
"type": "address"
},
{
"internalType": "uint256",
"name": "vote",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "winnerName",
"outputs": [
{
"internalType": "bytes32",
"name": "winnerName_",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "winningProposal",
"outputs": [
{
"internalType": "uint256",
"name": "winningProposal_",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"details": "Implements voting process along with vote delegation",
"kind": "dev",
"methods": {
"constructor": {
"details": "Create a new ballot to choose one of 'proposalNames'.",
"params": {
"proposalNames": "names of proposals"
}
},
"delegate(address)": {
"details": "Delegate your vote to the voter 'to'.",
"params": {
"to": "address to which vote is delegated"
}
},
"giveRightToVote(address)": {
"details": "Give 'voter' the right to vote on this ballot. May only be called by 'chairperson'.",
"params": {
"voter": "address of voter"
}
},
"vote(uint256)": {
"details": "Give your vote (including votes delegated to you) to proposal 'proposals[proposal].name'.",
"params": {
"proposal": "index of proposal in the proposals array"
}
},
"winnerName()": {
"details": "Calls winningProposal() function to get the index of the winner contained in the proposals array and then",
"returns": {
"winnerName_": "the name of the winner"
}
},
"winningProposal()": {
"details": "Computes the winning proposal taking all previous votes into account.",
"returns": {
"winningProposal_": "index of winning proposal in the proposals array"
}
}
},
"title": "Ballot",
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/3_Ballot.sol": "Ballot"
},
"evmVersion": "shanghai",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/3_Ballot.sol": {
"keccak256": "0x83fe6b367c140a5c7678c420da454c8c3866ccae12da149c5da3ce6568d29b6c",
"license": "GPL-3.0",
"urls": [
"bzz-raw://5902f2f468a1f776b8f2cb9d584371af88e181954298af92402fca01d0dba3e7",
"dweb:/ipfs/QmSUodhSvoorFL5m5CNqve8YvmuBpjCq17NbTf4GUX8ydw"
]
}
},
"version": 1
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
import "@openzeppelin/[email protected]/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
contract ChainlinkNFT is ERC721URIStorage {
using Strings for uint256;
uint256 internal tokenId;
//Runners NFT
string[] characters = [
"https://ipfs.io/ipfs/QmTgqnhFBMkfT9s8PHKcdXBn1f5bG3Q5hmBaR4U6hoTvb1?filename=Chainlink_Elf.png",
"https://ipfs.io/ipfs/QmZGQA92ri1jfzSu61JRaNQXYg1bLuM7p8YT83DzFA2KLH?filename=Chainlink_Knight.png",
"https://ipfs.io/ipfs/QmW1toapYs7M29rzLXTENn3pbvwe8ioikX1PwzACzjfdHP?filename=Chainlink_Orc.png",
"https://ipfs.io/ipfs/QmPMwQtFpEdKrUjpQJfoTeZS1aVSeuJT6Mof7uV29AcUpF?filename=Chainlink_Witch.png"
];
constructor() ERC721("Chainlink Constellation Bootcamp 2023", "CBC") {
mint(msg.sender);
}
function mint(address to) public {
uint256 charId = tokenId % 4;
string memory uri = Base64.encode(
bytes(
string(
abi.encodePacked(
'{"name": "Chainlink NFT",',
'"description": "This is your Chainlink NFT",',
'"image": "', characters[charId], '",'
'"attributes": [',
']}'
)
)
)
);
// Create token URI
string memory finalTokenURI = string(
abi.encodePacked("data:application/json;base64,", uri)
);
_safeMint(to, tokenId);
_setTokenURI(tokenId, finalTokenURI);
unchecked {
tokenId++;
}
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
import {CCIPReceiver} from "@chainlink/contracts-ccip/src/v0.8/ccip/applications/CCIPReceiver.sol";
import {Client} from "@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol";
import {ChainlinkNFT} from "./ChainlinkNFT.sol";
/**
* THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY.
* THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE.
* DO NOT USE THIS CODE IN PRODUCTION.
*/
contract DestinationMinter is CCIPReceiver {
ChainlinkNFT public nft;
event MintCallSuccessfull();
// https://docs.chain.link/ccip/supported-networks#ethereum-sepolia
address routerSepolia = 0xD0daae2231E9CB96b94C8512223533293C3693Bf;
constructor(address nftAddress) CCIPReceiver(routerSepolia) {
nft = ChainlinkNFT(nftAddress);
}
function _ccipReceive(
Client.Any2EVMMessage memory message
) internal override {
(bool success, ) = address(nft).call(message.data);
require(success);
emit MintCallSuccessfull();
}
function testMint() external {
nft.mint(msg.sender);
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
/// @custom:security-contact [email protected]
contract IsaBijuToken is ERC20, AccessControl, ERC20Permit {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
constructor(address defaultAdmin, address minter)
ERC20("IsaBijuToken", "ISABJTK")
ERC20Permit("IsaBijuToken")
{
_mint(msg.sender, 1000 * 10 ** decimals());
_grantRole(DEFAULT_ADMIN_ROLE, defaultAdmin);
_grantRole(MINTER_ROLE, minter);
}
function mint(address to, uint256 amount) public onlyRole(MINTER_ROLE) {
_mint(to, amount);
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
interface IERC20Minter {
function mint(address account, uint256 amount) external;
}
contract IsaBijuTokenShop {
AggregatorV3Interface internal priceFeed;
IERC20Minter public token;
uint256 public tokenPrice = 200; //1 token = 2.00 usd, with 2 decimal places
address public owner;
constructor(address tokenAddress) {
token = IERC20Minter(tokenAddress);
/**
* Network: Sepolia
* Aggregator: ETH/USD
* Address: 0x694AA1769357215DE4FAC081bf1f309aDC325306
*/
priceFeed = AggregatorV3Interface(0x694AA1769357215DE4FAC081bf1f309aDC325306);
owner = msg.sender;
}
/**
* Returns the latest price
*/
function getChainlinkDataFeedLatestAnswer() public view returns (int) {
(
/*uint80 roundID*/,
int price,
/*uint startedAt*/,
/*uint timeStamp*/,
/*uint80 answeredInRound*/
) = priceFeed.latestRoundData();
return price;
}
function tokenAmount(uint256 amountETH) public view returns (uint256) {
//Sent amountETH, how many usd I have
uint256 ethUsd = uint256(getChainlinkDataFeedLatestAnswer()); //with 8 decimal places
uint256 amountUSD = amountETH * ethUsd / 10**18; //ETH = 18 decimal places
uint256 amountToken = amountUSD / tokenPrice / 10**(8/2); //8 decimal places from ETHUSD / 2 decimal places from token
return amountToken;
}
receive() external payable {
uint256 amountToken = tokenAmount(msg.value);
token.mint(msg.sender, amountToken);
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function withdraw() external onlyOwner {
payable(owner).transfer(address(this).balance);
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
contract Payable {
// Payable address can send Ether via transfer or send
address payable public owner;
// Payable constructor can receive Ether
constructor() payable {
owner = payable(msg.sender);
}
// Function to deposit Ether into this contract.
// Call this function along with some Ether.
// The balance of this contract will be automatically updated.
function deposit() public payable {}
// Call this function along with some Ether.
// The function will throw an error since this function is not payable.
function notPayable() public {}
// Function to withdraw all Ether from this contract.
function withdraw() public {
// get the amount of Ether stored in this contract
uint amount = address(this).balance;
require(owner == msg.sender, "Only owner can do a withdraw!");
// send all Ether to owner
(bool success, ) = owner.call{value: amount}("");
require(success, "Failed to send Ether");
}
// Function to transfer Ether from this contract to address from input
function transfer(address payable _to, uint _amount) public {
// Note that "to" is declared as payable
(bool success, ) = _to.call{value: _amount}("");
require(success, "Failed to send Ether");
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
contract Register {
string private storedInfo;
function setInfo(string memory myInfo) external {
storedInfo = myInfo;
}
function getInfo() external view returns (string memory) {
return storedInfo;
}
}
//SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
contract RegisterAccessControl {
string[] private info;
address public owner;
mapping (address => bool) public whiteList;
constructor() {
owner = msg.sender;
whiteList[msg.sender] = true;
}
event InfoChange(string oldInfo, string newInfo);
modifier onlyOwner {
require(msg.sender == owner, "Only owner");
_;
}
modifier onlyWhitelist {
require(whiteList[msg.sender] == true, "Only whitelist");
_;
}
function getInfo(uint index) public view returns (string memory) {
return info[index];
}
function setInfo(uint index, string memory _info) public onlyWhitelist {
emit InfoChange (info[index], _info);
info[index] = _info;
}
function addInfo(string memory _info) public onlyWhitelist returns (uint index) {
info.push (_info);
index = info.length -1;
}
function listInfo() public view returns (string[] memory) {
return info;
}
function addMember (address _member) public onlyOwner {
whiteList[_member] = true;
}
function delMember (address _member) public onlyOwner {
whiteList[_member] = false;
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
import {IRouterClient} from "@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol";
import {Client} from "@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol";
import {LinkTokenInterface} from "@chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol";
/**
* THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY.
* THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE.
* DO NOT USE THIS CODE IN PRODUCTION.
*/
contract SourceMinter {
// Custom errors to provide more descriptive revert messages.
error NotEnoughBalance(uint256 currentBalance, uint256 calculatedFees); // Used to make sure contract has enough balance to cover the fees.
error NothingToWithdraw(); // Used when trying to withdraw Ether but there's nothing to withdraw.
error FailedToWithdrawEth(address owner, address target, uint256 value); // Used when the withdrawal of Ether fails.
IRouterClient public router;
LinkTokenInterface public linkToken;
uint64 public destinationChainSelector;
address public owner;
address public destinationMinter;
event MessageSent(bytes32 messageId);
constructor(address destMinterAddress) {
owner = msg.sender;
// from Fuji
// https://docs.chain.link/ccip/supported-networks#avalanche-fuji
address routerAddressFuji = 0x554472a2720E5E7D5D3C817529aBA05EEd5F82D8;
router = IRouterClient(routerAddressFuji);
linkToken = LinkTokenInterface(0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846);
linkToken.approve(routerAddressFuji, type(uint256).max);
// to Sepolia
// https://docs.chain.link/ccip/supported-networks#ethereum-sepolia
destinationChainSelector = 16015286601757825753;
destinationMinter = destMinterAddress;
}
function mintOnSepolia() external {
Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({
receiver: abi.encode(destinationMinter),
data: abi.encodeWithSignature("mint(address)", msg.sender),
tokenAmounts: new Client.EVMTokenAmount[](0),
extraArgs: Client._argsToBytes(
Client.EVMExtraArgsV1({gasLimit: 500_000, strict: false})
),
feeToken: address(linkToken)
});
//data: abi.encodeWithSignature("mint(address)", msg.sender),
// Get the fee required to send the message
uint256 fees = router.getFee(destinationChainSelector, message);
if (fees > linkToken.balanceOf(address(this)))
revert NotEnoughBalance(linkToken.balanceOf(address(this)), fees);
bytes32 messageId;
// Send the message through the router and store the returned message ID
messageId = router.ccipSend(destinationChainSelector, message);
emit MessageSent(messageId);
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function linkBalance (address account) public view returns (uint256) {
return linkToken.balanceOf(account);
}
function withdrawLINK(
address beneficiary
) public onlyOwner {
uint256 amount = linkToken.balanceOf(address(this));
if (amount == 0) revert NothingToWithdraw();
linkToken.transfer(beneficiary, amount);
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
contract IsaBijuToken is ERC20, AccessControl {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
constructor()
ERC20("IsaBijuToken", "ISABJTK")
{
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
_grantRole(MINTER_ROLE, msg.sender);
}
function mint(address to, uint256 amount) public onlyRole(MINTER_ROLE) {
_mint(to, amount);
}
function decimals() public pure override returns (uint8) {
return 2;
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
import {IRouterClient} from "@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol";
import {OwnerIsCreator} from "@chainlink/contracts-ccip/src/v0.8/shared/access/OwnerIsCreator.sol";
import {Client} from "@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol";
import {IERC20} from "@chainlink/contracts-ccip/src/v0.8/vendor/openzeppelin-solidity/v4.8.0/token/ERC20/IERC20.sol";
import {LinkTokenInterface} from "@chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol";
/**
* THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY.
* THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE.
* DO NOT USE THIS CODE IN PRODUCTION.
*/
contract TokenTransferFujiToSepolia is OwnerIsCreator {
// Custom errors to provide more descriptive revert messages.
error NotEnoughBalance(uint256 currentBalance, uint256 calculatedFees); // Used to make sure contract has enough balance to cover the fees.
error NothingToWithdraw(); // Used when trying to withdraw Ether but there's nothing to withdraw.
error FailedToWithdrawEth(address owner, address target, uint256 value); // Used when the withdrawal of Ether fails.
error DestinationChainNotWhitelisted(uint64 destinationChainSelector); // Used when the destination chain has not been whitelisted by the contract owner.
// Event emitted when the tokens are transferred to an account on another chain.
event TokensTransferred(
bytes32 indexed messageId, // The unique ID of the message.
uint64 indexed destinationChainSelector, // The chain selector of the destination chain.
address receiver, // The address of the receiver on the destination chain.
address token, // The token address that was transferred.
uint256 tokenAmount, // The token amount that was transferred.
address feeToken, // the token address used to pay CCIP fees.
uint256 fees // The fees paid for sending the message.
);
// Mapping to keep track of whitelisted destination chains.
mapping(uint64 => bool) public whitelistedChains;
IRouterClient public router;
LinkTokenInterface public linkToken;
address public ccipTestTokenAddress;
IccipToken public ccipTestToken;
uint64 public destinationChainSelector;
constructor() {
//on Fuji
router = IRouterClient(0x554472a2720E5E7D5D3C817529aBA05EEd5F82D8);
linkToken = LinkTokenInterface(0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846);
ccipTestTokenAddress = 0xD21341536c5cF5EB1bcb58f6723cE26e8D8E90e4;
ccipTestToken = IccipToken(ccipTestTokenAddress);
//to Sepolia
destinationChainSelector = 16015286601757825753;
whitelistedChains[destinationChainSelector] = true;
}
/// @dev Modifier that checks if the chain with the given destinationChainSelector is whitelisted.
/// @param _destinationChainSelector The selector of the destination chain.
modifier onlyWhitelistedChain(uint64 _destinationChainSelector) {
if (!whitelistedChains[_destinationChainSelector])
revert DestinationChainNotWhitelisted(_destinationChainSelector);
_;
}
function fundAccount (address account) public {
ccipTestToken.drip(account);
}
function balanceOfCCIPTestToken (address account) public view returns (uint256) {
uint256 amount = ccipTestToken.balanceOf(account);
return amount;
}
function balanceOfLinkToken (address account) public view returns (uint256) {
uint256 amount = linkToken.balanceOf(account);
return amount;
}
function exampleTransferTokens (address receiver) external {
address myContract = address(this);
fundAccount(myContract);
//uint256 amount = balanceOfCCIPTestToken(myContract);
uint256 amount = 100;
transferTokensPayLINK(destinationChainSelector, receiver, ccipTestTokenAddress, amount );
}
/// @notice Transfer tokens to receiver on the destination chain.
/// @notice pay in LINK.
/// @notice the token must be in the list of supported tokens.
/// @notice This function can only be called by the owner.
/// @dev Assumes your contract has sufficient LINK tokens to pay for the fees.
/// @param _destinationChainSelector The identifier (aka selector) for the destination blockchain.
/// @param _receiver The address of the recipient on the destination blockchain.
/// @param _token token address.
/// @param _amount token amount.
/// @return messageId The ID of the message that was sent.
function transferTokensPayLINK(
uint64 _destinationChainSelector,
address _receiver,
address _token,
uint256 _amount
)
public
onlyOwner
onlyWhitelistedChain(_destinationChainSelector)
returns (bytes32 messageId)
{
// Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message
// address(linkToken) means fees are paid in LINK
Client.EVM2AnyMessage memory evm2AnyMessage = _buildCCIPMessage(
_receiver,
_token,
_amount,
address(linkToken)
);
// Get the fee required to send the message
uint256 fees = router.getFee(_destinationChainSelector, evm2AnyMessage);
if (fees > linkToken.balanceOf(address(this)))
revert NotEnoughBalance(linkToken.balanceOf(address(this)), fees);
// approve the Router to transfer LINK tokens on contract's behalf. It will spend the fees in LINK
linkToken.approve(address(router), fees);
// approve the Router to spend tokens on contract's behalf. It will spend the amount of the given token
IERC20(_token).approve(address(router), _amount);
// Send the message through the router and store the returned message ID
messageId = router.ccipSend(_destinationChainSelector, evm2AnyMessage);
// Emit an event with message details
emit TokensTransferred(
messageId,
_destinationChainSelector,
_receiver,
_token,
_amount,
address(linkToken),
fees
);
// Return the message ID
return messageId;
}
/// @notice Transfer tokens to receiver on the destination chain.
/// @notice Pay in native gas such as ETH on Ethereum or MATIC on Polgon.
/// @notice the token must be in the list of supported tokens.
/// @notice This function can only be called by the owner.
/// @dev Assumes your contract has sufficient native gas like ETH on Ethereum or MATIC on Polygon.
/// @param _destinationChainSelector The identifier (aka selector) for the destination blockchain.
/// @param _receiver The address of the recipient on the destination blockchain.
/// @param _token token address.
/// @param _amount token amount.
/// @return messageId The ID of the message that was sent.
function transferTokensPayNative(
uint64 _destinationChainSelector,
address _receiver,
address _token,
uint256 _amount
)
external
onlyOwner
onlyWhitelistedChain(_destinationChainSelector)
returns (bytes32 messageId)
{
// Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message
// address(0) means fees are paid in native gas
Client.EVM2AnyMessage memory evm2AnyMessage = _buildCCIPMessage(
_receiver,
_token,
_amount,
address(0)
);
// Get the fee required to send the message
uint256 fees = router.getFee(_destinationChainSelector, evm2AnyMessage);
if (fees > address(this).balance)
revert NotEnoughBalance(address(this).balance, fees);
// approve the Router to spend tokens on contract's behalf. It will spend the amount of the given token
IERC20(_token).approve(address(router), _amount);
// Send the message through the router and store the returned message ID
messageId = router.ccipSend{value: fees}(
_destinationChainSelector,
evm2AnyMessage
);
// Emit an event with message details
emit TokensTransferred(
messageId,
_destinationChainSelector,
_receiver,
_token,
_amount,
address(0),
fees
);
// Return the message ID
return messageId;
}
/// @notice Construct a CCIP message.
/// @dev This function will create an EVM2AnyMessage struct with all the necessary information for tokens transfer.
/// @param _receiver The address of the receiver.
/// @param _token The token to be transferred.
/// @param _amount The amount of the token to be transferred.
/// @param _feeTokenAddress The address of the token used for fees. Set address(0) for native gas.
/// @return Client.EVM2AnyMessage Returns an EVM2AnyMessage struct which contains information for sending a CCIP message.
function _buildCCIPMessage(
address _receiver,
address _token,
uint256 _amount,
address _feeTokenAddress
) internal pure returns (Client.EVM2AnyMessage memory) {
// Set the token amounts
Client.EVMTokenAmount[]
memory tokenAmounts = new Client.EVMTokenAmount[](1);
Client.EVMTokenAmount memory tokenAmount = Client.EVMTokenAmount({
token: _token,
amount: _amount
});
tokenAmounts[0] = tokenAmount;
// Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message
Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({
receiver: abi.encode(_receiver), // ABI-encoded receiver address
data: "", // No data
tokenAmounts: tokenAmounts, // The amount and type of token being transferred
extraArgs: Client._argsToBytes(
// Additional arguments, setting gas limit to 0 as we are not sending any data and non-strict sequencing mode
Client.EVMExtraArgsV1({gasLimit: 0, strict: false})
),
// Set the feeToken to a feeTokenAddress, indicating specific asset will be used for fees
feeToken: _feeTokenAddress
});
return evm2AnyMessage;
}
/// @notice Fallback function to allow the contract to receive Ether.
/// @dev This function has no function body, making it a default function for receiving Ether.
/// It is automatically called when Ether is transferred to the contract without any data.
receive() external payable {}
/// @notice Allows the contract owner to withdraw the entire balance of Ether from the contract.
/// @dev This function reverts if there are no funds to withdraw or if the transfer fails.
/// It should only be callable by the owner of the contract.
/// @param _beneficiary The address to which the Ether should be transferred.
function withdraw(address _beneficiary) public onlyOwner {
// Retrieve the balance of this contract
uint256 amount = address(this).balance;
// Revert if there is nothing to withdraw
if (amount == 0) revert NothingToWithdraw();
// Attempt to send the funds, capturing the success status and discarding any return data
(bool sent, ) = _beneficiary.call{value: amount}("");
// Revert if the send failed, with information about the attempted transfer
if (!sent) revert FailedToWithdrawEth(msg.sender, _beneficiary, amount);
}
/// @notice Allows the owner of the contract to withdraw all tokens of a specific ERC20 token.
/// @dev This function reverts with a 'NothingToWithdraw' error if there are no tokens to withdraw.
/// @param _beneficiary The address to which the tokens will be sent.
/// @param _token The contract address of the ERC20 token to be withdrawn.
function withdrawToken(
address _beneficiary,
address _token
) public onlyOwner {
// Retrieve the balance of this contract
uint256 amount = IERC20(_token).balanceOf(address(this));
// Revert if there is nothing to withdraw
if (amount == 0) revert NothingToWithdraw();
IERC20(_token).transfer(_beneficiary, amount);
}
}
// https://docs.chain.link/ccip/test-tokens#mint-test-tokens
interface IccipToken {
function drip(address to) external;
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 value) external returns(bool);
function approve(address spender, uint256 value) external returns(bool);
function transferFrom(address from, address to, uint256 value) external returns(bool);
}
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.)

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": {
"@_109": {
"entryPoint": null,
"id": 109,
"parameterSlots": 2,
"returnSlots": 0
},
"@_1789": {
"entryPoint": null,
"id": 1789,
"parameterSlots": 0,
"returnSlots": 0
},
"@_afterTokenTransfer_911": {
"entryPoint": 2167,
"id": 911,
"parameterSlots": 3,
"returnSlots": 0
},
"@_beforeTokenTransfer_900": {
"entryPoint": 2162,
"id": 900,
"parameterSlots": 3,
"returnSlots": 0
},
"@_checkOnERC721Received_889": {
"entryPoint": 1747,
"id": 889,
"parameterSlots": 4,
"returnSlots": 1
},
"@_exists_485": {
"entryPoint": 1148,
"id": 485,
"parameterSlots": 1,
"returnSlots": 1
},
"@_mint_636": {
"entryPoint": 1252,
"id": 636,
"parameterSlots": 2,
"returnSlots": 0
},
"@_msgSender_1508": {
"entryPoint": 2206,
"id": 1508,
"parameterSlots": 0,
"returnSlots": 1
},
"@_safeMint_541": {
"entryPoint": 882,
"id": 541,
"parameterSlots": 2,
"returnSlots": 0
},
"@_safeMint_570": {
"entryPoint": 1039,
"id": 570,
"parameterSlots": 3,
"returnSlots": 0
},
"@_setTokenURI_1143": {
"entryPoint": 919,
"id": 1143,
"parameterSlots": 2,
"returnSlots": 0
},
"@encode_45": {
"entryPoint": 512,
"id": 45,
"parameterSlots": 1,
"returnSlots": 1
},
"@isContract_1219": {
"entryPoint": 2172,
"id": 1219,
"parameterSlots": 1,
"returnSlots": 1
},
"@mint_1849": {
"entryPoint": 309,
"id": 1849,
"parameterSlots": 1,
"returnSlots": 0
},
"abi_decode_t_bytes4_fromMemory": {
"entryPoint": 5413,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_bytes4_fromMemory": {
"entryPoint": 5435,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_address_to_t_address_fromStack": {
"entryPoint": 5119,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_bytes_memory_ptr_to_t_bytes_memory_ptr_fromStack": {
"entryPoint": 5195,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 4214,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_string_storage_to_t_string_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 3709,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_stringliteral_0f5701b76401cee5189505c11653cb5112557e23d04f3aecfe0d8d3fe1fe1646_to_t_string_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 3889,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_1e766a06da43a53d0f4c380e06e5a342e14d5af1bf8501996c844905530ca84e_to_t_string_memory_ptr_fromStack": {
"entryPoint": 4779,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_2a63ce106ef95058ed21fd07c42a10f11dc5c32ac13a4e847923f7759f635d57_to_t_string_memory_ptr_fromStack": {
"entryPoint": 4999,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_5d122e7f752369396a481637eea3a06d7b98fd00c9de0f63349f9caf41596a5e_to_t_string_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 3593,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_6b2acff6a59a72cf3c2cb957b2f24312cc7f84355e26b391f6ab52fac2989f29_to_t_string_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 3477,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_7521de1f20ce4d7bb86b61090bad73a87315a1f4baff36cc352901c7777280c4_to_t_string_memory_ptr_fromStack": {
"entryPoint": 4631,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_8a66f4bb6512ffbfcc3db9b42318eb65f26ac15163eaa9a1e5cfa7bee9d1c7c6_to_t_string_memory_ptr_fromStack": {
"entryPoint": 4889,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_ab149d31dbf8c3ed1cc7ba15c88205185e426c492b6b350058945b7266ec7e76_to_t_string_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 3967,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_bccab2d885f86fda81bfd84dd4248d31f8073b473d187111d36536db073076fa_to_t_string_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 4134,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_stringliteral_dee71bd900939e5251fa52ed0e7fadcfe3990bd7a5ea546147c85d1b972c64b6_to_t_string_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 3671,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_t_uint256_to_t_uint256_fromStack": {
"entryPoint": 5136,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_tuple_packed_t_stringliteral_6b2acff6a59a72cf3c2cb957b2f24312cc7f84355e26b391f6ab52fac2989f29_t_stringliteral_5d122e7f752369396a481637eea3a06d7b98fd00c9de0f63349f9caf41596a5e_t_stringliteral_dee71bd900939e5251fa52ed0e7fadcfe3990bd7a5ea546147c85d1b972c64b6_t_string_storage_t_stringliteral_0f5701b76401cee5189505c11653cb5112557e23d04f3aecfe0d8d3fe1fe1646_t_stringliteral_ab149d31dbf8c3ed1cc7ba15c88205185e426c492b6b350058945b7266ec7e76__to_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr__nonPadded_inplace_fromStack_reversed": {
"entryPoint": 4005,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_packed_t_stringliteral_bccab2d885f86fda81bfd84dd4248d31f8073b473d187111d36536db073076fa_t_string_memory_ptr__to_t_string_memory_ptr_t_string_memory_ptr__nonPadded_inplace_fromStack_reversed": {
"entryPoint": 4268,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_address_t_address_t_uint256_t_bytes_memory_ptr__to_t_address_t_address_t_uint256_t_bytes_memory_ptr__fromStack_reversed": {
"entryPoint": 5259,
"id": null,
"parameterSlots": 5,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_1e766a06da43a53d0f4c380e06e5a342e14d5af1bf8501996c844905530ca84e__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 4817,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_2a63ce106ef95058ed21fd07c42a10f11dc5c32ac13a4e847923f7759f635d57__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 5037,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_7521de1f20ce4d7bb86b61090bad73a87315a1f4baff36cc352901c7777280c4__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 4669,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"abi_encode_tuple_t_stringliteral_8a66f4bb6512ffbfcc3db9b42318eb65f26ac15163eaa9a1e5cfa7bee9d1c7c6__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 4927,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": null,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_dataslot_t_string_storage": {
"entryPoint": 2594,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_length_t_bytes_memory_ptr": {
"entryPoint": 5153,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_length_t_string_memory_ptr": {
"entryPoint": 2442,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_bytes_memory_ptr_fromStack": {
"entryPoint": 5163,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_fromStack": {
"entryPoint": 4537,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack": {
"entryPoint": 3427,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"checked_add_t_uint256": {
"entryPoint": 4350,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"checked_div_t_uint256": {
"entryPoint": 4408,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"checked_mul_t_uint256": {
"entryPoint": 4463,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"clean_up_bytearray_end_slots_t_string_storage": {
"entryPoint": 2903,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"cleanup_t_address": {
"entryPoint": 5100,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_bytes4": {
"entryPoint": 5345,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint160": {
"entryPoint": 5069,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint256": {
"entryPoint": 2724,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"clear_storage_range_t_bytes1": {
"entryPoint": 2865,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"convert_t_uint256_to_t_uint256": {
"entryPoint": 2742,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage": {
"entryPoint": 3054,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"copy_memory_to_memory_with_cleanup": {
"entryPoint": 4172,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"divide_by_32_ceil": {
"entryPoint": 2612,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"extract_byte_array_length": {
"entryPoint": 2542,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"extract_used_part_and_set_length_of_short_byte_array": {
"entryPoint": 3025,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"identity": {
"entryPoint": 2733,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"mask_bytes_dynamic": {
"entryPoint": 2995,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"mod_t_uint256": {
"entryPoint": 3327,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"panic_error_0x11": {
"entryPoint": 4305,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x12": {
"entryPoint": 3282,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x22": {
"entryPoint": 2497,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x32": {
"entryPoint": 3382,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x41": {
"entryPoint": 2452,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"prepare_store_t_uint256": {
"entryPoint": 2781,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": null,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 5341,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"round_up_to_mul_of_32": {
"entryPoint": 5179,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"shift_left_dynamic": {
"entryPoint": 2627,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"shift_right_unsigned_dynamic": {
"entryPoint": 2983,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"storage_set_to_zero_t_uint256": {
"entryPoint": 2837,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"store_literal_in_memory_0f5701b76401cee5189505c11653cb5112557e23d04f3aecfe0d8d3fe1fe1646": {
"entryPoint": 3849,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_1e766a06da43a53d0f4c380e06e5a342e14d5af1bf8501996c844905530ca84e": {
"entryPoint": 4701,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_2a63ce106ef95058ed21fd07c42a10f11dc5c32ac13a4e847923f7759f635d57": {
"entryPoint": 4959,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_5d122e7f752369396a481637eea3a06d7b98fd00c9de0f63349f9caf41596a5e": {
"entryPoint": 3515,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_6b2acff6a59a72cf3c2cb957b2f24312cc7f84355e26b391f6ab52fac2989f29": {
"entryPoint": 3437,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_7521de1f20ce4d7bb86b61090bad73a87315a1f4baff36cc352901c7777280c4": {
"entryPoint": 4553,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_8a66f4bb6512ffbfcc3db9b42318eb65f26ac15163eaa9a1e5cfa7bee9d1c7c6": {
"entryPoint": 4849,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_ab149d31dbf8c3ed1cc7ba15c88205185e426c492b6b350058945b7266ec7e76": {
"entryPoint": 3927,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_bccab2d885f86fda81bfd84dd4248d31f8073b473d187111d36536db073076fa": {
"entryPoint": 4094,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"store_literal_in_memory_dee71bd900939e5251fa52ed0e7fadcfe3990bd7a5ea546147c85d1b972c64b6": {
"entryPoint": 3631,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"update_byte_slice_dynamic32": {
"entryPoint": 2639,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"update_storage_value_t_uint256_to_t_uint256": {
"entryPoint": 2790,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"validator_revert_t_bytes4": {
"entryPoint": 5388,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
},
"zero_value_for_split_t_uint256": {
"entryPoint": 2833,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
}
},
"generatedSources": [
{
"ast": {
"nativeSrc": "0:20851:12",
"nodeType": "YulBlock",
"src": "0:20851:12",
"statements": [
{
"body": {
"nativeSrc": "66:40:12",
"nodeType": "YulBlock",
"src": "66:40:12",
"statements": [
{
"nativeSrc": "77:22:12",
"nodeType": "YulAssignment",
"src": "77:22:12",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "93:5:12",
"nodeType": "YulIdentifier",
"src": "93:5:12"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "87:5:12",
"nodeType": "YulIdentifier",
"src": "87:5:12"
},
"nativeSrc": "87:12:12",
"nodeType": "YulFunctionCall",
"src": "87:12:12"
},
"variableNames": [
{
"name": "length",
"nativeSrc": "77:6:12",
"nodeType": "YulIdentifier",
"src": "77:6:12"
}
]
}
]
},
"name": "array_length_t_string_memory_ptr",
"nativeSrc": "7:99:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "49:5:12",
"nodeType": "YulTypedName",
"src": "49:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nativeSrc": "59:6:12",
"nodeType": "YulTypedName",
"src": "59:6:12",
"type": ""
}
],
"src": "7:99:12"
},
{
"body": {
"nativeSrc": "140:152:12",
"nodeType": "YulBlock",
"src": "140:152:12",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "157:1:12",
"nodeType": "YulLiteral",
"src": "157:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "160:77:12",
"nodeType": "YulLiteral",
"src": "160:77:12",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "150:6:12",
"nodeType": "YulIdentifier",
"src": "150:6:12"
},
"nativeSrc": "150:88:12",
"nodeType": "YulFunctionCall",
"src": "150:88:12"
},
"nativeSrc": "150:88:12",
"nodeType": "YulExpressionStatement",
"src": "150:88:12"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "254:1:12",
"nodeType": "YulLiteral",
"src": "254:1:12",
"type": "",
"value": "4"
},
{
"kind": "number",
"nativeSrc": "257:4:12",
"nodeType": "YulLiteral",
"src": "257:4:12",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "247:6:12",
"nodeType": "YulIdentifier",
"src": "247:6:12"
},
"nativeSrc": "247:15:12",
"nodeType": "YulFunctionCall",
"src": "247:15:12"
},
"nativeSrc": "247:15:12",
"nodeType": "YulExpressionStatement",
"src": "247:15:12"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "278:1:12",
"nodeType": "YulLiteral",
"src": "278:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "281:4:12",
"nodeType": "YulLiteral",
"src": "281:4:12",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "271:6:12",
"nodeType": "YulIdentifier",
"src": "271:6:12"
},
"nativeSrc": "271:15:12",
"nodeType": "YulFunctionCall",
"src": "271:15:12"
},
"nativeSrc": "271:15:12",
"nodeType": "YulExpressionStatement",
"src": "271:15:12"
}
]
},
"name": "panic_error_0x41",
"nativeSrc": "112:180:12",
"nodeType": "YulFunctionDefinition",
"src": "112:180:12"
},
{
"body": {
"nativeSrc": "326:152:12",
"nodeType": "YulBlock",
"src": "326:152:12",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "343:1:12",
"nodeType": "YulLiteral",
"src": "343:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "346:77:12",
"nodeType": "YulLiteral",
"src": "346:77:12",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "336:6:12",
"nodeType": "YulIdentifier",
"src": "336:6:12"
},
"nativeSrc": "336:88:12",
"nodeType": "YulFunctionCall",
"src": "336:88:12"
},
"nativeSrc": "336:88:12",
"nodeType": "YulExpressionStatement",
"src": "336:88:12"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "440:1:12",
"nodeType": "YulLiteral",
"src": "440:1:12",
"type": "",
"value": "4"
},
{
"kind": "number",
"nativeSrc": "443:4:12",
"nodeType": "YulLiteral",
"src": "443:4:12",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "433:6:12",
"nodeType": "YulIdentifier",
"src": "433:6:12"
},
"nativeSrc": "433:15:12",
"nodeType": "YulFunctionCall",
"src": "433:15:12"
},
"nativeSrc": "433:15:12",
"nodeType": "YulExpressionStatement",
"src": "433:15:12"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "464:1:12",
"nodeType": "YulLiteral",
"src": "464:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "467:4:12",
"nodeType": "YulLiteral",
"src": "467:4:12",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "457:6:12",
"nodeType": "YulIdentifier",
"src": "457:6:12"
},
"nativeSrc": "457:15:12",
"nodeType": "YulFunctionCall",
"src": "457:15:12"
},
"nativeSrc": "457:15:12",
"nodeType": "YulExpressionStatement",
"src": "457:15:12"
}
]
},
"name": "panic_error_0x22",
"nativeSrc": "298:180:12",
"nodeType": "YulFunctionDefinition",
"src": "298:180:12"
},
{
"body": {
"nativeSrc": "535:269:12",
"nodeType": "YulBlock",
"src": "535:269:12",
"statements": [
{
"nativeSrc": "545:22:12",
"nodeType": "YulAssignment",
"src": "545:22:12",
"value": {
"arguments": [
{
"name": "data",
"nativeSrc": "559:4:12",
"nodeType": "YulIdentifier",
"src": "559:4:12"
},
{
"kind": "number",
"nativeSrc": "565:1:12",
"nodeType": "YulLiteral",
"src": "565:1:12",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nativeSrc": "555:3:12",
"nodeType": "YulIdentifier",
"src": "555:3:12"
},
"nativeSrc": "555:12:12",
"nodeType": "YulFunctionCall",
"src": "555:12:12"
},
"variableNames": [
{
"name": "length",
"nativeSrc": "545:6:12",
"nodeType": "YulIdentifier",
"src": "545:6:12"
}
]
},
{
"nativeSrc": "576:38:12",
"nodeType": "YulVariableDeclaration",
"src": "576:38:12",
"value": {
"arguments": [
{
"name": "data",
"nativeSrc": "606:4:12",
"nodeType": "YulIdentifier",
"src": "606:4:12"
},
{
"kind": "number",
"nativeSrc": "612:1:12",
"nodeType": "YulLiteral",
"src": "612:1:12",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nativeSrc": "602:3:12",
"nodeType": "YulIdentifier",
"src": "602:3:12"
},
"nativeSrc": "602:12:12",
"nodeType": "YulFunctionCall",
"src": "602:12:12"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nativeSrc": "580:18:12",
"nodeType": "YulTypedName",
"src": "580:18:12",
"type": ""
}
]
},
{
"body": {
"nativeSrc": "653:51:12",
"nodeType": "YulBlock",
"src": "653:51:12",
"statements": [
{
"nativeSrc": "667:27:12",
"nodeType": "YulAssignment",
"src": "667:27:12",
"value": {
"arguments": [
{
"name": "length",
"nativeSrc": "681:6:12",
"nodeType": "YulIdentifier",
"src": "681:6:12"
},
{
"kind": "number",
"nativeSrc": "689:4:12",
"nodeType": "YulLiteral",
"src": "689:4:12",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nativeSrc": "677:3:12",
"nodeType": "YulIdentifier",
"src": "677:3:12"
},
"nativeSrc": "677:17:12",
"nodeType": "YulFunctionCall",
"src": "677:17:12"
},
"variableNames": [
{
"name": "length",
"nativeSrc": "667:6:12",
"nodeType": "YulIdentifier",
"src": "667:6:12"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nativeSrc": "633:18:12",
"nodeType": "YulIdentifier",
"src": "633:18:12"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "626:6:12",
"nodeType": "YulIdentifier",
"src": "626:6:12"
},
"nativeSrc": "626:26:12",
"nodeType": "YulFunctionCall",
"src": "626:26:12"
},
"nativeSrc": "623:81:12",
"nodeType": "YulIf",
"src": "623:81:12"
},
{
"body": {
"nativeSrc": "756:42:12",
"nodeType": "YulBlock",
"src": "756:42:12",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nativeSrc": "770:16:12",
"nodeType": "YulIdentifier",
"src": "770:16:12"
},
"nativeSrc": "770:18:12",
"nodeType": "YulFunctionCall",
"src": "770:18:12"
},
"nativeSrc": "770:18:12",
"nodeType": "YulExpressionStatement",
"src": "770:18:12"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nativeSrc": "720:18:12",
"nodeType": "YulIdentifier",
"src": "720:18:12"
},
{
"arguments": [
{
"name": "length",
"nativeSrc": "743:6:12",
"nodeType": "YulIdentifier",
"src": "743:6:12"
},
{
"kind": "number",
"nativeSrc": "751:2:12",
"nodeType": "YulLiteral",
"src": "751:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nativeSrc": "740:2:12",
"nodeType": "YulIdentifier",
"src": "740:2:12"
},
"nativeSrc": "740:14:12",
"nodeType": "YulFunctionCall",
"src": "740:14:12"
}
],
"functionName": {
"name": "eq",
"nativeSrc": "717:2:12",
"nodeType": "YulIdentifier",
"src": "717:2:12"
},
"nativeSrc": "717:38:12",
"nodeType": "YulFunctionCall",
"src": "717:38:12"
},
"nativeSrc": "714:84:12",
"nodeType": "YulIf",
"src": "714:84:12"
}
]
},
"name": "extract_byte_array_length",
"nativeSrc": "484:320:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nativeSrc": "519:4:12",
"nodeType": "YulTypedName",
"src": "519:4:12",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nativeSrc": "528:6:12",
"nodeType": "YulTypedName",
"src": "528:6:12",
"type": ""
}
],
"src": "484:320:12"
},
{
"body": {
"nativeSrc": "864:87:12",
"nodeType": "YulBlock",
"src": "864:87:12",
"statements": [
{
"nativeSrc": "874:11:12",
"nodeType": "YulAssignment",
"src": "874:11:12",
"value": {
"name": "ptr",
"nativeSrc": "882:3:12",
"nodeType": "YulIdentifier",
"src": "882:3:12"
},
"variableNames": [
{
"name": "data",
"nativeSrc": "874:4:12",
"nodeType": "YulIdentifier",
"src": "874:4:12"
}
]
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "902:1:12",
"nodeType": "YulLiteral",
"src": "902:1:12",
"type": "",
"value": "0"
},
{
"name": "ptr",
"nativeSrc": "905:3:12",
"nodeType": "YulIdentifier",
"src": "905:3:12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "895:6:12",
"nodeType": "YulIdentifier",
"src": "895:6:12"
},
"nativeSrc": "895:14:12",
"nodeType": "YulFunctionCall",
"src": "895:14:12"
},
"nativeSrc": "895:14:12",
"nodeType": "YulExpressionStatement",
"src": "895:14:12"
},
{
"nativeSrc": "918:26:12",
"nodeType": "YulAssignment",
"src": "918:26:12",
"value": {
"arguments": [
{
"kind": "number",
"nativeSrc": "936:1:12",
"nodeType": "YulLiteral",
"src": "936:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "939:4:12",
"nodeType": "YulLiteral",
"src": "939:4:12",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "keccak256",
"nativeSrc": "926:9:12",
"nodeType": "YulIdentifier",
"src": "926:9:12"
},
"nativeSrc": "926:18:12",
"nodeType": "YulFunctionCall",
"src": "926:18:12"
},
"variableNames": [
{
"name": "data",
"nativeSrc": "918:4:12",
"nodeType": "YulIdentifier",
"src": "918:4:12"
}
]
}
]
},
"name": "array_dataslot_t_string_storage",
"nativeSrc": "810:141:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "ptr",
"nativeSrc": "851:3:12",
"nodeType": "YulTypedName",
"src": "851:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "data",
"nativeSrc": "859:4:12",
"nodeType": "YulTypedName",
"src": "859:4:12",
"type": ""
}
],
"src": "810:141:12"
},
{
"body": {
"nativeSrc": "1001:49:12",
"nodeType": "YulBlock",
"src": "1001:49:12",
"statements": [
{
"nativeSrc": "1011:33:12",
"nodeType": "YulAssignment",
"src": "1011:33:12",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nativeSrc": "1029:5:12",
"nodeType": "YulIdentifier",
"src": "1029:5:12"
},
{
"kind": "number",
"nativeSrc": "1036:2:12",
"nodeType": "YulLiteral",
"src": "1036:2:12",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nativeSrc": "1025:3:12",
"nodeType": "YulIdentifier",
"src": "1025:3:12"
},
"nativeSrc": "1025:14:12",
"nodeType": "YulFunctionCall",
"src": "1025:14:12"
},
{
"kind": "number",
"nativeSrc": "1041:2:12",
"nodeType": "YulLiteral",
"src": "1041:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "div",
"nativeSrc": "1021:3:12",
"nodeType": "YulIdentifier",
"src": "1021:3:12"
},
"nativeSrc": "1021:23:12",
"nodeType": "YulFunctionCall",
"src": "1021:23:12"
},
"variableNames": [
{
"name": "result",
"nativeSrc": "1011:6:12",
"nodeType": "YulIdentifier",
"src": "1011:6:12"
}
]
}
]
},
"name": "divide_by_32_ceil",
"nativeSrc": "957:93:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "984:5:12",
"nodeType": "YulTypedName",
"src": "984:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nativeSrc": "994:6:12",
"nodeType": "YulTypedName",
"src": "994:6:12",
"type": ""
}
],
"src": "957:93:12"
},
{
"body": {
"nativeSrc": "1109:54:12",
"nodeType": "YulBlock",
"src": "1109:54:12",
"statements": [
{
"nativeSrc": "1119:37:12",
"nodeType": "YulAssignment",
"src": "1119:37:12",
"value": {
"arguments": [
{
"name": "bits",
"nativeSrc": "1144:4:12",
"nodeType": "YulIdentifier",
"src": "1144:4:12"
},
{
"name": "value",
"nativeSrc": "1150:5:12",
"nodeType": "YulIdentifier",
"src": "1150:5:12"
}
],
"functionName": {
"name": "shl",
"nativeSrc": "1140:3:12",
"nodeType": "YulIdentifier",
"src": "1140:3:12"
},
"nativeSrc": "1140:16:12",
"nodeType": "YulFunctionCall",
"src": "1140:16:12"
},
"variableNames": [
{
"name": "newValue",
"nativeSrc": "1119:8:12",
"nodeType": "YulIdentifier",
"src": "1119:8:12"
}
]
}
]
},
"name": "shift_left_dynamic",
"nativeSrc": "1056:107:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "bits",
"nativeSrc": "1084:4:12",
"nodeType": "YulTypedName",
"src": "1084:4:12",
"type": ""
},
{
"name": "value",
"nativeSrc": "1090:5:12",
"nodeType": "YulTypedName",
"src": "1090:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "newValue",
"nativeSrc": "1100:8:12",
"nodeType": "YulTypedName",
"src": "1100:8:12",
"type": ""
}
],
"src": "1056:107:12"
},
{
"body": {
"nativeSrc": "1245:317:12",
"nodeType": "YulBlock",
"src": "1245:317:12",
"statements": [
{
"nativeSrc": "1255:35:12",
"nodeType": "YulVariableDeclaration",
"src": "1255:35:12",
"value": {
"arguments": [
{
"name": "shiftBytes",
"nativeSrc": "1276:10:12",
"nodeType": "YulIdentifier",
"src": "1276:10:12"
},
{
"kind": "number",
"nativeSrc": "1288:1:12",
"nodeType": "YulLiteral",
"src": "1288:1:12",
"type": "",
"value": "8"
}
],
"functionName": {
"name": "mul",
"nativeSrc": "1272:3:12",
"nodeType": "YulIdentifier",
"src": "1272:3:12"
},
"nativeSrc": "1272:18:12",
"nodeType": "YulFunctionCall",
"src": "1272:18:12"
},
"variables": [
{
"name": "shiftBits",
"nativeSrc": "1259:9:12",
"nodeType": "YulTypedName",
"src": "1259:9:12",
"type": ""
}
]
},
{
"nativeSrc": "1299:109:12",
"nodeType": "YulVariableDeclaration",
"src": "1299:109:12",
"value": {
"arguments": [
{
"name": "shiftBits",
"nativeSrc": "1330:9:12",
"nodeType": "YulIdentifier",
"src": "1330:9:12"
},
{
"kind": "number",
"nativeSrc": "1341:66:12",
"nodeType": "YulLiteral",
"src": "1341:66:12",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "shift_left_dynamic",
"nativeSrc": "1311:18:12",
"nodeType": "YulIdentifier",
"src": "1311:18:12"
},
"nativeSrc": "1311:97:12",
"nodeType": "YulFunctionCall",
"src": "1311:97:12"
},
"variables": [
{
"name": "mask",
"nativeSrc": "1303:4:12",
"nodeType": "YulTypedName",
"src": "1303:4:12",
"type": ""
}
]
},
{
"nativeSrc": "1417:51:12",
"nodeType": "YulAssignment",
"src": "1417:51:12",
"value": {
"arguments": [
{
"name": "shiftBits",
"nativeSrc": "1448:9:12",
"nodeType": "YulIdentifier",
"src": "1448:9:12"
},
{
"name": "toInsert",
"nativeSrc": "1459:8:12",
"nodeType": "YulIdentifier",
"src": "1459:8:12"
}
],
"functionName": {
"name": "shift_left_dynamic",
"nativeSrc": "1429:18:12",
"nodeType": "YulIdentifier",
"src": "1429:18:12"
},
"nativeSrc": "1429:39:12",
"nodeType": "YulFunctionCall",
"src": "1429:39:12"
},
"variableNames": [
{
"name": "toInsert",
"nativeSrc": "1417:8:12",
"nodeType": "YulIdentifier",
"src": "1417:8:12"
}
]
},
{
"nativeSrc": "1477:30:12",
"nodeType": "YulAssignment",
"src": "1477:30:12",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "1490:5:12",
"nodeType": "YulIdentifier",
"src": "1490:5:12"
},
{
"arguments": [
{
"name": "mask",
"nativeSrc": "1501:4:12",
"nodeType": "YulIdentifier",
"src": "1501:4:12"
}
],
"functionName": {
"name": "not",
"nativeSrc": "1497:3:12",
"nodeType": "YulIdentifier",
"src": "1497:3:12"
},
"nativeSrc": "1497:9:12",
"nodeType": "YulFunctionCall",
"src": "1497:9:12"
}
],
"functionName": {
"name": "and",
"nativeSrc": "1486:3:12",
"nodeType": "YulIdentifier",
"src": "1486:3:12"
},
"nativeSrc": "1486:21:12",
"nodeType": "YulFunctionCall",
"src": "1486:21:12"
},
"variableNames": [
{
"name": "value",
"nativeSrc": "1477:5:12",
"nodeType": "YulIdentifier",
"src": "1477:5:12"
}
]
},
{
"nativeSrc": "1516:40:12",
"nodeType": "YulAssignment",
"src": "1516:40:12",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "1529:5:12",
"nodeType": "YulIdentifier",
"src": "1529:5:12"
},
{
"arguments": [
{
"name": "toInsert",
"nativeSrc": "1540:8:12",
"nodeType": "YulIdentifier",
"src": "1540:8:12"
},
{
"name": "mask",
"nativeSrc": "1550:4:12",
"nodeType": "YulIdentifier",
"src": "1550:4:12"
}
],
"functionName": {
"name": "and",
"nativeSrc": "1536:3:12",
"nodeType": "YulIdentifier",
"src": "1536:3:12"
},
"nativeSrc": "1536:19:12",
"nodeType": "YulFunctionCall",
"src": "1536:19:12"
}
],
"functionName": {
"name": "or",
"nativeSrc": "1526:2:12",
"nodeType": "YulIdentifier",
"src": "1526:2:12"
},
"nativeSrc": "1526:30:12",
"nodeType": "YulFunctionCall",
"src": "1526:30:12"
},
"variableNames": [
{
"name": "result",
"nativeSrc": "1516:6:12",
"nodeType": "YulIdentifier",
"src": "1516:6:12"
}
]
}
]
},
"name": "update_byte_slice_dynamic32",
"nativeSrc": "1169:393:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "1206:5:12",
"nodeType": "YulTypedName",
"src": "1206:5:12",
"type": ""
},
{
"name": "shiftBytes",
"nativeSrc": "1213:10:12",
"nodeType": "YulTypedName",
"src": "1213:10:12",
"type": ""
},
{
"name": "toInsert",
"nativeSrc": "1225:8:12",
"nodeType": "YulTypedName",
"src": "1225:8:12",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nativeSrc": "1238:6:12",
"nodeType": "YulTypedName",
"src": "1238:6:12",
"type": ""
}
],
"src": "1169:393:12"
},
{
"body": {
"nativeSrc": "1613:32:12",
"nodeType": "YulBlock",
"src": "1613:32:12",
"statements": [
{
"nativeSrc": "1623:16:12",
"nodeType": "YulAssignment",
"src": "1623:16:12",
"value": {
"name": "value",
"nativeSrc": "1634:5:12",
"nodeType": "YulIdentifier",
"src": "1634:5:12"
},
"variableNames": [
{
"name": "cleaned",
"nativeSrc": "1623:7:12",
"nodeType": "YulIdentifier",
"src": "1623:7:12"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nativeSrc": "1568:77:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "1595:5:12",
"nodeType": "YulTypedName",
"src": "1595:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nativeSrc": "1605:7:12",
"nodeType": "YulTypedName",
"src": "1605:7:12",
"type": ""
}
],
"src": "1568:77:12"
},
{
"body": {
"nativeSrc": "1683:28:12",
"nodeType": "YulBlock",
"src": "1683:28:12",
"statements": [
{
"nativeSrc": "1693:12:12",
"nodeType": "YulAssignment",
"src": "1693:12:12",
"value": {
"name": "value",
"nativeSrc": "1700:5:12",
"nodeType": "YulIdentifier",
"src": "1700:5:12"
},
"variableNames": [
{
"name": "ret",
"nativeSrc": "1693:3:12",
"nodeType": "YulIdentifier",
"src": "1693:3:12"
}
]
}
]
},
"name": "identity",
"nativeSrc": "1651:60:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "1669:5:12",
"nodeType": "YulTypedName",
"src": "1669:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nativeSrc": "1679:3:12",
"nodeType": "YulTypedName",
"src": "1679:3:12",
"type": ""
}
],
"src": "1651:60:12"
},
{
"body": {
"nativeSrc": "1777:82:12",
"nodeType": "YulBlock",
"src": "1777:82:12",
"statements": [
{
"nativeSrc": "1787:66:12",
"nodeType": "YulAssignment",
"src": "1787:66:12",
"value": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "value",
"nativeSrc": "1845:5:12",
"nodeType": "YulIdentifier",
"src": "1845:5:12"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "1827:17:12",
"nodeType": "YulIdentifier",
"src": "1827:17:12"
},
"nativeSrc": "1827:24:12",
"nodeType": "YulFunctionCall",
"src": "1827:24:12"
}
],
"functionName": {
"name": "identity",
"nativeSrc": "1818:8:12",
"nodeType": "YulIdentifier",
"src": "1818:8:12"
},
"nativeSrc": "1818:34:12",
"nodeType": "YulFunctionCall",
"src": "1818:34:12"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "1800:17:12",
"nodeType": "YulIdentifier",
"src": "1800:17:12"
},
"nativeSrc": "1800:53:12",
"nodeType": "YulFunctionCall",
"src": "1800:53:12"
},
"variableNames": [
{
"name": "converted",
"nativeSrc": "1787:9:12",
"nodeType": "YulIdentifier",
"src": "1787:9:12"
}
]
}
]
},
"name": "convert_t_uint256_to_t_uint256",
"nativeSrc": "1717:142:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "1757:5:12",
"nodeType": "YulTypedName",
"src": "1757:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "converted",
"nativeSrc": "1767:9:12",
"nodeType": "YulTypedName",
"src": "1767:9:12",
"type": ""
}
],
"src": "1717:142:12"
},
{
"body": {
"nativeSrc": "1912:28:12",
"nodeType": "YulBlock",
"src": "1912:28:12",
"statements": [
{
"nativeSrc": "1922:12:12",
"nodeType": "YulAssignment",
"src": "1922:12:12",
"value": {
"name": "value",
"nativeSrc": "1929:5:12",
"nodeType": "YulIdentifier",
"src": "1929:5:12"
},
"variableNames": [
{
"name": "ret",
"nativeSrc": "1922:3:12",
"nodeType": "YulIdentifier",
"src": "1922:3:12"
}
]
}
]
},
"name": "prepare_store_t_uint256",
"nativeSrc": "1865:75:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "1898:5:12",
"nodeType": "YulTypedName",
"src": "1898:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nativeSrc": "1908:3:12",
"nodeType": "YulTypedName",
"src": "1908:3:12",
"type": ""
}
],
"src": "1865:75:12"
},
{
"body": {
"nativeSrc": "2022:193:12",
"nodeType": "YulBlock",
"src": "2022:193:12",
"statements": [
{
"nativeSrc": "2032:63:12",
"nodeType": "YulVariableDeclaration",
"src": "2032:63:12",
"value": {
"arguments": [
{
"name": "value_0",
"nativeSrc": "2087:7:12",
"nodeType": "YulIdentifier",
"src": "2087:7:12"
}
],
"functionName": {
"name": "convert_t_uint256_to_t_uint256",
"nativeSrc": "2056:30:12",
"nodeType": "YulIdentifier",
"src": "2056:30:12"
},
"nativeSrc": "2056:39:12",
"nodeType": "YulFunctionCall",
"src": "2056:39:12"
},
"variables": [
{
"name": "convertedValue_0",
"nativeSrc": "2036:16:12",
"nodeType": "YulTypedName",
"src": "2036:16:12",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nativeSrc": "2111:4:12",
"nodeType": "YulIdentifier",
"src": "2111:4:12"
},
{
"arguments": [
{
"arguments": [
{
"name": "slot",
"nativeSrc": "2151:4:12",
"nodeType": "YulIdentifier",
"src": "2151:4:12"
}
],
"functionName": {
"name": "sload",
"nativeSrc": "2145:5:12",
"nodeType": "YulIdentifier",
"src": "2145:5:12"
},
"nativeSrc": "2145:11:12",
"nodeType": "YulFunctionCall",
"src": "2145:11:12"
},
{
"name": "offset",
"nativeSrc": "2158:6:12",
"nodeType": "YulIdentifier",
"src": "2158:6:12"
},
{
"arguments": [
{
"name": "convertedValue_0",
"nativeSrc": "2190:16:12",
"nodeType": "YulIdentifier",
"src": "2190:16:12"
}
],
"functionName": {
"name": "prepare_store_t_uint256",
"nativeSrc": "2166:23:12",
"nodeType": "YulIdentifier",
"src": "2166:23:12"
},
"nativeSrc": "2166:41:12",
"nodeType": "YulFunctionCall",
"src": "2166:41:12"
}
],
"functionName": {
"name": "update_byte_slice_dynamic32",
"nativeSrc": "2117:27:12",
"nodeType": "YulIdentifier",
"src": "2117:27:12"
},
"nativeSrc": "2117:91:12",
"nodeType": "YulFunctionCall",
"src": "2117:91:12"
}
],
"functionName": {
"name": "sstore",
"nativeSrc": "2104:6:12",
"nodeType": "YulIdentifier",
"src": "2104:6:12"
},
"nativeSrc": "2104:105:12",
"nodeType": "YulFunctionCall",
"src": "2104:105:12"
},
"nativeSrc": "2104:105:12",
"nodeType": "YulExpressionStatement",
"src": "2104:105:12"
}
]
},
"name": "update_storage_value_t_uint256_to_t_uint256",
"nativeSrc": "1946:269:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "slot",
"nativeSrc": "1999:4:12",
"nodeType": "YulTypedName",
"src": "1999:4:12",
"type": ""
},
{
"name": "offset",
"nativeSrc": "2005:6:12",
"nodeType": "YulTypedName",
"src": "2005:6:12",
"type": ""
},
{
"name": "value_0",
"nativeSrc": "2013:7:12",
"nodeType": "YulTypedName",
"src": "2013:7:12",
"type": ""
}
],
"src": "1946:269:12"
},
{
"body": {
"nativeSrc": "2270:24:12",
"nodeType": "YulBlock",
"src": "2270:24:12",
"statements": [
{
"nativeSrc": "2280:8:12",
"nodeType": "YulAssignment",
"src": "2280:8:12",
"value": {
"kind": "number",
"nativeSrc": "2287:1:12",
"nodeType": "YulLiteral",
"src": "2287:1:12",
"type": "",
"value": "0"
},
"variableNames": [
{
"name": "ret",
"nativeSrc": "2280:3:12",
"nodeType": "YulIdentifier",
"src": "2280:3:12"
}
]
}
]
},
"name": "zero_value_for_split_t_uint256",
"nativeSrc": "2221:73:12",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "ret",
"nativeSrc": "2266:3:12",
"nodeType": "YulTypedName",
"src": "2266:3:12",
"type": ""
}
],
"src": "2221:73:12"
},
{
"body": {
"nativeSrc": "2353:136:12",
"nodeType": "YulBlock",
"src": "2353:136:12",
"statements": [
{
"nativeSrc": "2363:46:12",
"nodeType": "YulVariableDeclaration",
"src": "2363:46:12",
"value": {
"arguments": [],
"functionName": {
"name": "zero_value_for_split_t_uint256",
"nativeSrc": "2377:30:12",
"nodeType": "YulIdentifier",
"src": "2377:30:12"
},
"nativeSrc": "2377:32:12",
"nodeType": "YulFunctionCall",
"src": "2377:32:12"
},
"variables": [
{
"name": "zero_0",
"nativeSrc": "2367:6:12",
"nodeType": "YulTypedName",
"src": "2367:6:12",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nativeSrc": "2462:4:12",
"nodeType": "YulIdentifier",
"src": "2462:4:12"
},
{
"name": "offset",
"nativeSrc": "2468:6:12",
"nodeType": "YulIdentifier",
"src": "2468:6:12"
},
{
"name": "zero_0",
"nativeSrc": "2476:6:12",
"nodeType": "YulIdentifier",
"src": "2476:6:12"
}
],
"functionName": {
"name": "update_storage_value_t_uint256_to_t_uint256",
"nativeSrc": "2418:43:12",
"nodeType": "YulIdentifier",
"src": "2418:43:12"
},
"nativeSrc": "2418:65:12",
"nodeType": "YulFunctionCall",
"src": "2418:65:12"
},
"nativeSrc": "2418:65:12",
"nodeType": "YulExpressionStatement",
"src": "2418:65:12"
}
]
},
"name": "storage_set_to_zero_t_uint256",
"nativeSrc": "2300:189:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "slot",
"nativeSrc": "2339:4:12",
"nodeType": "YulTypedName",
"src": "2339:4:12",
"type": ""
},
{
"name": "offset",
"nativeSrc": "2345:6:12",
"nodeType": "YulTypedName",
"src": "2345:6:12",
"type": ""
}
],
"src": "2300:189:12"
},
{
"body": {
"nativeSrc": "2545:136:12",
"nodeType": "YulBlock",
"src": "2545:136:12",
"statements": [
{
"body": {
"nativeSrc": "2612:63:12",
"nodeType": "YulBlock",
"src": "2612:63:12",
"statements": [
{
"expression": {
"arguments": [
{
"name": "start",
"nativeSrc": "2656:5:12",
"nodeType": "YulIdentifier",
"src": "2656:5:12"
},
{
"kind": "number",
"nativeSrc": "2663:1:12",
"nodeType": "YulLiteral",
"src": "2663:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "storage_set_to_zero_t_uint256",
"nativeSrc": "2626:29:12",
"nodeType": "YulIdentifier",
"src": "2626:29:12"
},
"nativeSrc": "2626:39:12",
"nodeType": "YulFunctionCall",
"src": "2626:39:12"
},
"nativeSrc": "2626:39:12",
"nodeType": "YulExpressionStatement",
"src": "2626:39:12"
}
]
},
"condition": {
"arguments": [
{
"name": "start",
"nativeSrc": "2565:5:12",
"nodeType": "YulIdentifier",
"src": "2565:5:12"
},
{
"name": "end",
"nativeSrc": "2572:3:12",
"nodeType": "YulIdentifier",
"src": "2572:3:12"
}
],
"functionName": {
"name": "lt",
"nativeSrc": "2562:2:12",
"nodeType": "YulIdentifier",
"src": "2562:2:12"
},
"nativeSrc": "2562:14:12",
"nodeType": "YulFunctionCall",
"src": "2562:14:12"
},
"nativeSrc": "2555:120:12",
"nodeType": "YulForLoop",
"post": {
"nativeSrc": "2577:26:12",
"nodeType": "YulBlock",
"src": "2577:26:12",
"statements": [
{
"nativeSrc": "2579:22:12",
"nodeType": "YulAssignment",
"src": "2579:22:12",
"value": {
"arguments": [
{
"name": "start",
"nativeSrc": "2592:5:12",
"nodeType": "YulIdentifier",
"src": "2592:5:12"
},
{
"kind": "number",
"nativeSrc": "2599:1:12",
"nodeType": "YulLiteral",
"src": "2599:1:12",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2588:3:12",
"nodeType": "YulIdentifier",
"src": "2588:3:12"
},
"nativeSrc": "2588:13:12",
"nodeType": "YulFunctionCall",
"src": "2588:13:12"
},
"variableNames": [
{
"name": "start",
"nativeSrc": "2579:5:12",
"nodeType": "YulIdentifier",
"src": "2579:5:12"
}
]
}
]
},
"pre": {
"nativeSrc": "2559:2:12",
"nodeType": "YulBlock",
"src": "2559:2:12",
"statements": []
},
"src": "2555:120:12"
}
]
},
"name": "clear_storage_range_t_bytes1",
"nativeSrc": "2495:186:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "start",
"nativeSrc": "2533:5:12",
"nodeType": "YulTypedName",
"src": "2533:5:12",
"type": ""
},
{
"name": "end",
"nativeSrc": "2540:3:12",
"nodeType": "YulTypedName",
"src": "2540:3:12",
"type": ""
}
],
"src": "2495:186:12"
},
{
"body": {
"nativeSrc": "2766:464:12",
"nodeType": "YulBlock",
"src": "2766:464:12",
"statements": [
{
"body": {
"nativeSrc": "2792:431:12",
"nodeType": "YulBlock",
"src": "2792:431:12",
"statements": [
{
"nativeSrc": "2806:54:12",
"nodeType": "YulVariableDeclaration",
"src": "2806:54:12",
"value": {
"arguments": [
{
"name": "array",
"nativeSrc": "2854:5:12",
"nodeType": "YulIdentifier",
"src": "2854:5:12"
}
],
"functionName": {
"name": "array_dataslot_t_string_storage",
"nativeSrc": "2822:31:12",
"nodeType": "YulIdentifier",
"src": "2822:31:12"
},
"nativeSrc": "2822:38:12",
"nodeType": "YulFunctionCall",
"src": "2822:38:12"
},
"variables": [
{
"name": "dataArea",
"nativeSrc": "2810:8:12",
"nodeType": "YulTypedName",
"src": "2810:8:12",
"type": ""
}
]
},
{
"nativeSrc": "2873:63:12",
"nodeType": "YulVariableDeclaration",
"src": "2873:63:12",
"value": {
"arguments": [
{
"name": "dataArea",
"nativeSrc": "2896:8:12",
"nodeType": "YulIdentifier",
"src": "2896:8:12"
},
{
"arguments": [
{
"name": "startIndex",
"nativeSrc": "2924:10:12",
"nodeType": "YulIdentifier",
"src": "2924:10:12"
}
],
"functionName": {
"name": "divide_by_32_ceil",
"nativeSrc": "2906:17:12",
"nodeType": "YulIdentifier",
"src": "2906:17:12"
},
"nativeSrc": "2906:29:12",
"nodeType": "YulFunctionCall",
"src": "2906:29:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "2892:3:12",
"nodeType": "YulIdentifier",
"src": "2892:3:12"
},
"nativeSrc": "2892:44:12",
"nodeType": "YulFunctionCall",
"src": "2892:44:12"
},
"variables": [
{
"name": "deleteStart",
"nativeSrc": "2877:11:12",
"nodeType": "YulTypedName",
"src": "2877:11:12",
"type": ""
}
]
},
{
"body": {
"nativeSrc": "3093:27:12",
"nodeType": "YulBlock",
"src": "3093:27:12",
"statements": [
{
"nativeSrc": "3095:23:12",
"nodeType": "YulAssignment",
"src": "3095:23:12",
"value": {
"name": "dataArea",
"nativeSrc": "3110:8:12",
"nodeType": "YulIdentifier",
"src": "3110:8:12"
},
"variableNames": [
{
"name": "deleteStart",
"nativeSrc": "3095:11:12",
"nodeType": "YulIdentifier",
"src": "3095:11:12"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "startIndex",
"nativeSrc": "3077:10:12",
"nodeType": "YulIdentifier",
"src": "3077:10:12"
},
{
"kind": "number",
"nativeSrc": "3089:2:12",
"nodeType": "YulLiteral",
"src": "3089:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nativeSrc": "3074:2:12",
"nodeType": "YulIdentifier",
"src": "3074:2:12"
},
"nativeSrc": "3074:18:12",
"nodeType": "YulFunctionCall",
"src": "3074:18:12"
},
"nativeSrc": "3071:49:12",
"nodeType": "YulIf",
"src": "3071:49:12"
},
{
"expression": {
"arguments": [
{
"name": "deleteStart",
"nativeSrc": "3162:11:12",
"nodeType": "YulIdentifier",
"src": "3162:11:12"
},
{
"arguments": [
{
"name": "dataArea",
"nativeSrc": "3179:8:12",
"nodeType": "YulIdentifier",
"src": "3179:8:12"
},
{
"arguments": [
{
"name": "len",
"nativeSrc": "3207:3:12",
"nodeType": "YulIdentifier",
"src": "3207:3:12"
}
],
"functionName": {
"name": "divide_by_32_ceil",
"nativeSrc": "3189:17:12",
"nodeType": "YulIdentifier",
"src": "3189:17:12"
},
"nativeSrc": "3189:22:12",
"nodeType": "YulFunctionCall",
"src": "3189:22:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "3175:3:12",
"nodeType": "YulIdentifier",
"src": "3175:3:12"
},
"nativeSrc": "3175:37:12",
"nodeType": "YulFunctionCall",
"src": "3175:37:12"
}
],
"functionName": {
"name": "clear_storage_range_t_bytes1",
"nativeSrc": "3133:28:12",
"nodeType": "YulIdentifier",
"src": "3133:28:12"
},
"nativeSrc": "3133:80:12",
"nodeType": "YulFunctionCall",
"src": "3133:80:12"
},
"nativeSrc": "3133:80:12",
"nodeType": "YulExpressionStatement",
"src": "3133:80:12"
}
]
},
"condition": {
"arguments": [
{
"name": "len",
"nativeSrc": "2783:3:12",
"nodeType": "YulIdentifier",
"src": "2783:3:12"
},
{
"kind": "number",
"nativeSrc": "2788:2:12",
"nodeType": "YulLiteral",
"src": "2788:2:12",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "gt",
"nativeSrc": "2780:2:12",
"nodeType": "YulIdentifier",
"src": "2780:2:12"
},
"nativeSrc": "2780:11:12",
"nodeType": "YulFunctionCall",
"src": "2780:11:12"
},
"nativeSrc": "2777:446:12",
"nodeType": "YulIf",
"src": "2777:446:12"
}
]
},
"name": "clean_up_bytearray_end_slots_t_string_storage",
"nativeSrc": "2687:543:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "array",
"nativeSrc": "2742:5:12",
"nodeType": "YulTypedName",
"src": "2742:5:12",
"type": ""
},
{
"name": "len",
"nativeSrc": "2749:3:12",
"nodeType": "YulTypedName",
"src": "2749:3:12",
"type": ""
},
{
"name": "startIndex",
"nativeSrc": "2754:10:12",
"nodeType": "YulTypedName",
"src": "2754:10:12",
"type": ""
}
],
"src": "2687:543:12"
},
{
"body": {
"nativeSrc": "3299:54:12",
"nodeType": "YulBlock",
"src": "3299:54:12",
"statements": [
{
"nativeSrc": "3309:37:12",
"nodeType": "YulAssignment",
"src": "3309:37:12",
"value": {
"arguments": [
{
"name": "bits",
"nativeSrc": "3334:4:12",
"nodeType": "YulIdentifier",
"src": "3334:4:12"
},
{
"name": "value",
"nativeSrc": "3340:5:12",
"nodeType": "YulIdentifier",
"src": "3340:5:12"
}
],
"functionName": {
"name": "shr",
"nativeSrc": "3330:3:12",
"nodeType": "YulIdentifier",
"src": "3330:3:12"
},
"nativeSrc": "3330:16:12",
"nodeType": "YulFunctionCall",
"src": "3330:16:12"
},
"variableNames": [
{
"name": "newValue",
"nativeSrc": "3309:8:12",
"nodeType": "YulIdentifier",
"src": "3309:8:12"
}
]
}
]
},
"name": "shift_right_unsigned_dynamic",
"nativeSrc": "3236:117:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "bits",
"nativeSrc": "3274:4:12",
"nodeType": "YulTypedName",
"src": "3274:4:12",
"type": ""
},
{
"name": "value",
"nativeSrc": "3280:5:12",
"nodeType": "YulTypedName",
"src": "3280:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "newValue",
"nativeSrc": "3290:8:12",
"nodeType": "YulTypedName",
"src": "3290:8:12",
"type": ""
}
],
"src": "3236:117:12"
},
{
"body": {
"nativeSrc": "3410:118:12",
"nodeType": "YulBlock",
"src": "3410:118:12",
"statements": [
{
"nativeSrc": "3420:68:12",
"nodeType": "YulVariableDeclaration",
"src": "3420:68:12",
"value": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"kind": "number",
"nativeSrc": "3469:1:12",
"nodeType": "YulLiteral",
"src": "3469:1:12",
"type": "",
"value": "8"
},
{
"name": "bytes",
"nativeSrc": "3472:5:12",
"nodeType": "YulIdentifier",
"src": "3472:5:12"
}
],
"functionName": {
"name": "mul",
"nativeSrc": "3465:3:12",
"nodeType": "YulIdentifier",
"src": "3465:3:12"
},
"nativeSrc": "3465:13:12",
"nodeType": "YulFunctionCall",
"src": "3465:13:12"
},
{
"arguments": [
{
"kind": "number",
"nativeSrc": "3484:1:12",
"nodeType": "YulLiteral",
"src": "3484:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "not",
"nativeSrc": "3480:3:12",
"nodeType": "YulIdentifier",
"src": "3480:3:12"
},
"nativeSrc": "3480:6:12",
"nodeType": "YulFunctionCall",
"src": "3480:6:12"
}
],
"functionName": {
"name": "shift_right_unsigned_dynamic",
"nativeSrc": "3436:28:12",
"nodeType": "YulIdentifier",
"src": "3436:28:12"
},
"nativeSrc": "3436:51:12",
"nodeType": "YulFunctionCall",
"src": "3436:51:12"
}
],
"functionName": {
"name": "not",
"nativeSrc": "3432:3:12",
"nodeType": "YulIdentifier",
"src": "3432:3:12"
},
"nativeSrc": "3432:56:12",
"nodeType": "YulFunctionCall",
"src": "3432:56:12"
},
"variables": [
{
"name": "mask",
"nativeSrc": "3424:4:12",
"nodeType": "YulTypedName",
"src": "3424:4:12",
"type": ""
}
]
},
{
"nativeSrc": "3497:25:12",
"nodeType": "YulAssignment",
"src": "3497:25:12",
"value": {
"arguments": [
{
"name": "data",
"nativeSrc": "3511:4:12",
"nodeType": "YulIdentifier",
"src": "3511:4:12"
},
{
"name": "mask",
"nativeSrc": "3517:4:12",
"nodeType": "YulIdentifier",
"src": "3517:4:12"
}
],
"functionName": {
"name": "and",
"nativeSrc": "3507:3:12",
"nodeType": "YulIdentifier",
"src": "3507:3:12"
},
"nativeSrc": "3507:15:12",
"nodeType": "YulFunctionCall",
"src": "3507:15:12"
},
"variableNames": [
{
"name": "result",
"nativeSrc": "3497:6:12",
"nodeType": "YulIdentifier",
"src": "3497:6:12"
}
]
}
]
},
"name": "mask_bytes_dynamic",
"nativeSrc": "3359:169:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nativeSrc": "3387:4:12",
"nodeType": "YulTypedName",
"src": "3387:4:12",
"type": ""
},
{
"name": "bytes",
"nativeSrc": "3393:5:12",
"nodeType": "YulTypedName",
"src": "3393:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nativeSrc": "3403:6:12",
"nodeType": "YulTypedName",
"src": "3403:6:12",
"type": ""
}
],
"src": "3359:169:12"
},
{
"body": {
"nativeSrc": "3614:214:12",
"nodeType": "YulBlock",
"src": "3614:214:12",
"statements": [
{
"nativeSrc": "3747:37:12",
"nodeType": "YulAssignment",
"src": "3747:37:12",
"value": {
"arguments": [
{
"name": "data",
"nativeSrc": "3774:4:12",
"nodeType": "YulIdentifier",
"src": "3774:4:12"
},
{
"name": "len",
"nativeSrc": "3780:3:12",
"nodeType": "YulIdentifier",
"src": "3780:3:12"
}
],
"functionName": {
"name": "mask_bytes_dynamic",
"nativeSrc": "3755:18:12",
"nodeType": "YulIdentifier",
"src": "3755:18:12"
},
"nativeSrc": "3755:29:12",
"nodeType": "YulFunctionCall",
"src": "3755:29:12"
},
"variableNames": [
{
"name": "data",
"nativeSrc": "3747:4:12",
"nodeType": "YulIdentifier",
"src": "3747:4:12"
}
]
},
{
"nativeSrc": "3793:29:12",
"nodeType": "YulAssignment",
"src": "3793:29:12",
"value": {
"arguments": [
{
"name": "data",
"nativeSrc": "3804:4:12",
"nodeType": "YulIdentifier",
"src": "3804:4:12"
},
{
"arguments": [
{
"kind": "number",
"nativeSrc": "3814:1:12",
"nodeType": "YulLiteral",
"src": "3814:1:12",
"type": "",
"value": "2"
},
{
"name": "len",
"nativeSrc": "3817:3:12",
"nodeType": "YulIdentifier",
"src": "3817:3:12"
}
],
"functionName": {
"name": "mul",
"nativeSrc": "3810:3:12",
"nodeType": "YulIdentifier",
"src": "3810:3:12"
},
"nativeSrc": "3810:11:12",
"nodeType": "YulFunctionCall",
"src": "3810:11:12"
}
],
"functionName": {
"name": "or",
"nativeSrc": "3801:2:12",
"nodeType": "YulIdentifier",
"src": "3801:2:12"
},
"nativeSrc": "3801:21:12",
"nodeType": "YulFunctionCall",
"src": "3801:21:12"
},
"variableNames": [
{
"name": "used",
"nativeSrc": "3793:4:12",
"nodeType": "YulIdentifier",
"src": "3793:4:12"
}
]
}
]
},
"name": "extract_used_part_and_set_length_of_short_byte_array",
"nativeSrc": "3533:295:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nativeSrc": "3595:4:12",
"nodeType": "YulTypedName",
"src": "3595:4:12",
"type": ""
},
{
"name": "len",
"nativeSrc": "3601:3:12",
"nodeType": "YulTypedName",
"src": "3601:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "used",
"nativeSrc": "3609:4:12",
"nodeType": "YulTypedName",
"src": "3609:4:12",
"type": ""
}
],
"src": "3533:295:12"
},
{
"body": {
"nativeSrc": "3925:1303:12",
"nodeType": "YulBlock",
"src": "3925:1303:12",
"statements": [
{
"nativeSrc": "3936:51:12",
"nodeType": "YulVariableDeclaration",
"src": "3936:51:12",
"value": {
"arguments": [
{
"name": "src",
"nativeSrc": "3983:3:12",
"nodeType": "YulIdentifier",
"src": "3983:3:12"
}
],
"functionName": {
"name": "array_length_t_string_memory_ptr",
"nativeSrc": "3950:32:12",
"nodeType": "YulIdentifier",
"src": "3950:32:12"
},
"nativeSrc": "3950:37:12",
"nodeType": "YulFunctionCall",
"src": "3950:37:12"
},
"variables": [
{
"name": "newLen",
"nativeSrc": "3940:6:12",
"nodeType": "YulTypedName",
"src": "3940:6:12",
"type": ""
}
]
},
{
"body": {
"nativeSrc": "4072:22:12",
"nodeType": "YulBlock",
"src": "4072:22:12",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nativeSrc": "4074:16:12",
"nodeType": "YulIdentifier",
"src": "4074:16:12"
},
"nativeSrc": "4074:18:12",
"nodeType": "YulFunctionCall",
"src": "4074:18:12"
},
"nativeSrc": "4074:18:12",
"nodeType": "YulExpressionStatement",
"src": "4074:18:12"
}
]
},
"condition": {
"arguments": [
{
"name": "newLen",
"nativeSrc": "4044:6:12",
"nodeType": "YulIdentifier",
"src": "4044:6:12"
},
{
"kind": "number",
"nativeSrc": "4052:18:12",
"nodeType": "YulLiteral",
"src": "4052:18:12",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nativeSrc": "4041:2:12",
"nodeType": "YulIdentifier",
"src": "4041:2:12"
},
"nativeSrc": "4041:30:12",
"nodeType": "YulFunctionCall",
"src": "4041:30:12"
},
"nativeSrc": "4038:56:12",
"nodeType": "YulIf",
"src": "4038:56:12"
},
{
"nativeSrc": "4104:52:12",
"nodeType": "YulVariableDeclaration",
"src": "4104:52:12",
"value": {
"arguments": [
{
"arguments": [
{
"name": "slot",
"nativeSrc": "4150:4:12",
"nodeType": "YulIdentifier",
"src": "4150:4:12"
}
],
"functionName": {
"name": "sload",
"nativeSrc": "4144:5:12",
"nodeType": "YulIdentifier",
"src": "4144:5:12"
},
"nativeSrc": "4144:11:12",
"nodeType": "YulFunctionCall",
"src": "4144:11:12"
}
],
"functionName": {
"name": "extract_byte_array_length",
"nativeSrc": "4118:25:12",
"nodeType": "YulIdentifier",
"src": "4118:25:12"
},
"nativeSrc": "4118:38:12",
"nodeType": "YulFunctionCall",
"src": "4118:38:12"
},
"variables": [
{
"name": "oldLen",
"nativeSrc": "4108:6:12",
"nodeType": "YulTypedName",
"src": "4108:6:12",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nativeSrc": "4249:4:12",
"nodeType": "YulIdentifier",
"src": "4249:4:12"
},
{
"name": "oldLen",
"nativeSrc": "4255:6:12",
"nodeType": "YulIdentifier",
"src": "4255:6:12"
},
{
"name": "newLen",
"nativeSrc": "4263:6:12",
"nodeType": "YulIdentifier",
"src": "4263:6:12"
}
],
"functionName": {
"name": "clean_up_bytearray_end_slots_t_string_storage",
"nativeSrc": "4203:45:12",
"nodeType": "YulIdentifier",
"src": "4203:45:12"
},
"nativeSrc": "4203:67:12",
"nodeType": "YulFunctionCall",
"src": "4203:67:12"
},
"nativeSrc": "4203:67:12",
"nodeType": "YulExpressionStatement",
"src": "4203:67:12"
},
{
"nativeSrc": "4280:18:12",
"nodeType": "YulVariableDeclaration",
"src": "4280:18:12",
"value": {
"kind": "number",
"nativeSrc": "4297:1:12",
"nodeType": "YulLiteral",
"src": "4297:1:12",
"type": "",
"value": "0"
},
"variables": [
{
"name": "srcOffset",
"nativeSrc": "4284:9:12",
"nodeType": "YulTypedName",
"src": "4284:9:12",
"type": ""
}
]
},
{
"nativeSrc": "4308:17:12",
"nodeType": "YulAssignment",
"src": "4308:17:12",
"value": {
"kind": "number",
"nativeSrc": "4321:4:12",
"nodeType": "YulLiteral",
"src": "4321:4:12",
"type": "",
"value": "0x20"
},
"variableNames": [
{
"name": "srcOffset",
"nativeSrc": "4308:9:12",
"nodeType": "YulIdentifier",
"src": "4308:9:12"
}
]
},
{
"cases": [
{
"body": {
"nativeSrc": "4372:611:12",
"nodeType": "YulBlock",
"src": "4372:611:12",
"statements": [
{
"nativeSrc": "4386:37:12",
"nodeType": "YulVariableDeclaration",
"src": "4386:37:12",
"value": {
"arguments": [
{
"name": "newLen",
"nativeSrc": "4405:6:12",
"nodeType": "YulIdentifier",
"src": "4405:6:12"
},
{
"arguments": [
{
"kind": "number",
"nativeSrc": "4417:4:12",
"nodeType": "YulLiteral",
"src": "4417:4:12",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "not",
"nativeSrc": "4413:3:12",
"nodeType": "YulIdentifier",
"src": "4413:3:12"
},
"nativeSrc": "4413:9:12",
"nodeType": "YulFunctionCall",
"src": "4413:9:12"
}
],
"functionName": {
"name": "and",
"nativeSrc": "4401:3:12",
"nodeType": "YulIdentifier",
"src": "4401:3:12"
},
"nativeSrc": "4401:22:12",
"nodeType": "YulFunctionCall",
"src": "4401:22:12"
},
"variables": [
{
"name": "loopEnd",
"nativeSrc": "4390:7:12",
"nodeType": "YulTypedName",
"src": "4390:7:12",
"type": ""
}
]
},
{
"nativeSrc": "4437:51:12",
"nodeType": "YulVariableDeclaration",
"src": "4437:51:12",
"value": {
"arguments": [
{
"name": "slot",
"nativeSrc": "4483:4:12",
"nodeType": "YulIdentifier",
"src": "4483:4:12"
}
],
"functionName": {
"name": "array_dataslot_t_string_storage",
"nativeSrc": "4451:31:12",
"nodeType": "YulIdentifier",
"src": "4451:31:12"
},
"nativeSrc": "4451:37:12",
"nodeType": "YulFunctionCall",
"src": "4451:37:12"
},
"variables": [
{
"name": "dstPtr",
"nativeSrc": "4441:6:12",
"nodeType": "YulTypedName",
"src": "4441:6:12",
"type": ""
}
]
},
{
"nativeSrc": "4501:10:12",
"nodeType": "YulVariableDeclaration",
"src": "4501:10:12",
"value": {
"kind": "number",
"nativeSrc": "4510:1:12",
"nodeType": "YulLiteral",
"src": "4510:1:12",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nativeSrc": "4505:1:12",
"nodeType": "YulTypedName",
"src": "4505:1:12",
"type": ""
}
]
},
{
"body": {
"nativeSrc": "4569:163:12",
"nodeType": "YulBlock",
"src": "4569:163:12",
"statements": [
{
"expression": {
"arguments": [
{
"name": "dstPtr",
"nativeSrc": "4594:6:12",
"nodeType": "YulIdentifier",
"src": "4594:6:12"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nativeSrc": "4612:3:12",
"nodeType": "YulIdentifier",
"src": "4612:3:12"
},
{
"name": "srcOffset",
"nativeSrc": "4617:9:12",
"nodeType": "YulIdentifier",
"src": "4617:9:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "4608:3:12",
"nodeType": "YulIdentifier",
"src": "4608:3:12"
},
"nativeSrc": "4608:19:12",
"nodeType": "YulFunctionCall",
"src": "4608:19:12"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "4602:5:12",
"nodeType": "YulIdentifier",
"src": "4602:5:12"
},
"nativeSrc": "4602:26:12",
"nodeType": "YulFunctionCall",
"src": "4602:26:12"
}
],
"functionName": {
"name": "sstore",
"nativeSrc": "4587:6:12",
"nodeType": "YulIdentifier",
"src": "4587:6:12"
},
"nativeSrc": "4587:42:12",
"nodeType": "YulFunctionCall",
"src": "4587:42:12"
},
"nativeSrc": "4587:42:12",
"nodeType": "YulExpressionStatement",
"src": "4587:42:12"
},
{
"nativeSrc": "4646:24:12",
"nodeType": "YulAssignment",
"src": "4646:24:12",
"value": {
"arguments": [
{
"name": "dstPtr",
"nativeSrc": "4660:6:12",
"nodeType": "YulIdentifier",
"src": "4660:6:12"
},
{
"kind": "number",
"nativeSrc": "4668:1:12",
"nodeType": "YulLiteral",
"src": "4668:1:12",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nativeSrc": "4656:3:12",
"nodeType": "YulIdentifier",
"src": "4656:3:12"
},
"nativeSrc": "4656:14:12",
"nodeType": "YulFunctionCall",
"src": "4656:14:12"
},
"variableNames": [
{
"name": "dstPtr",
"nativeSrc": "4646:6:12",
"nodeType": "YulIdentifier",
"src": "4646:6:12"
}
]
},
{
"nativeSrc": "4687:31:12",
"nodeType": "YulAssignment",
"src": "4687:31:12",
"value": {
"arguments": [
{
"name": "srcOffset",
"nativeSrc": "4704:9:12",
"nodeType": "YulIdentifier",
"src": "4704:9:12"
},
{
"kind": "number",
"nativeSrc": "4715:2:12",
"nodeType": "YulLiteral",
"src": "4715:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "4700:3:12",
"nodeType": "YulIdentifier",
"src": "4700:3:12"
},
"nativeSrc": "4700:18:12",
"nodeType": "YulFunctionCall",
"src": "4700:18:12"
},
"variableNames": [
{
"name": "srcOffset",
"nativeSrc": "4687:9:12",
"nodeType": "YulIdentifier",
"src": "4687:9:12"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nativeSrc": "4535:1:12",
"nodeType": "YulIdentifier",
"src": "4535:1:12"
},
{
"name": "loopEnd",
"nativeSrc": "4538:7:12",
"nodeType": "YulIdentifier",
"src": "4538:7:12"
}
],
"functionName": {
"name": "lt",
"nativeSrc": "4532:2:12",
"nodeType": "YulIdentifier",
"src": "4532:2:12"
},
"nativeSrc": "4532:14:12",
"nodeType": "YulFunctionCall",
"src": "4532:14:12"
},
"nativeSrc": "4524:208:12",
"nodeType": "YulForLoop",
"post": {
"nativeSrc": "4547:21:12",
"nodeType": "YulBlock",
"src": "4547:21:12",
"statements": [
{
"nativeSrc": "4549:17:12",
"nodeType": "YulAssignment",
"src": "4549:17:12",
"value": {
"arguments": [
{
"name": "i",
"nativeSrc": "4558:1:12",
"nodeType": "YulIdentifier",
"src": "4558:1:12"
},
{
"kind": "number",
"nativeSrc": "4561:4:12",
"nodeType": "YulLiteral",
"src": "4561:4:12",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nativeSrc": "4554:3:12",
"nodeType": "YulIdentifier",
"src": "4554:3:12"
},
"nativeSrc": "4554:12:12",
"nodeType": "YulFunctionCall",
"src": "4554:12:12"
},
"variableNames": [
{
"name": "i",
"nativeSrc": "4549:1:12",
"nodeType": "YulIdentifier",
"src": "4549:1:12"
}
]
}
]
},
"pre": {
"nativeSrc": "4528:3:12",
"nodeType": "YulBlock",
"src": "4528:3:12",
"statements": []
},
"src": "4524:208:12"
},
{
"body": {
"nativeSrc": "4768:156:12",
"nodeType": "YulBlock",
"src": "4768:156:12",
"statements": [
{
"nativeSrc": "4786:43:12",
"nodeType": "YulVariableDeclaration",
"src": "4786:43:12",
"value": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nativeSrc": "4813:3:12",
"nodeType": "YulIdentifier",
"src": "4813:3:12"
},
{
"name": "srcOffset",
"nativeSrc": "4818:9:12",
"nodeType": "YulIdentifier",
"src": "4818:9:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "4809:3:12",
"nodeType": "YulIdentifier",
"src": "4809:3:12"
},
"nativeSrc": "4809:19:12",
"nodeType": "YulFunctionCall",
"src": "4809:19:12"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "4803:5:12",
"nodeType": "YulIdentifier",
"src": "4803:5:12"
},
"nativeSrc": "4803:26:12",
"nodeType": "YulFunctionCall",
"src": "4803:26:12"
},
"variables": [
{
"name": "lastValue",
"nativeSrc": "4790:9:12",
"nodeType": "YulTypedName",
"src": "4790:9:12",
"type": ""
}
]
},
{
"expression": {
"arguments": [
{
"name": "dstPtr",
"nativeSrc": "4853:6:12",
"nodeType": "YulIdentifier",
"src": "4853:6:12"
},
{
"arguments": [
{
"name": "lastValue",
"nativeSrc": "4880:9:12",
"nodeType": "YulIdentifier",
"src": "4880:9:12"
},
{
"arguments": [
{
"name": "newLen",
"nativeSrc": "4895:6:12",
"nodeType": "YulIdentifier",
"src": "4895:6:12"
},
{
"kind": "number",
"nativeSrc": "4903:4:12",
"nodeType": "YulLiteral",
"src": "4903:4:12",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "and",
"nativeSrc": "4891:3:12",
"nodeType": "YulIdentifier",
"src": "4891:3:12"
},
"nativeSrc": "4891:17:12",
"nodeType": "YulFunctionCall",
"src": "4891:17:12"
}
],
"functionName": {
"name": "mask_bytes_dynamic",
"nativeSrc": "4861:18:12",
"nodeType": "YulIdentifier",
"src": "4861:18:12"
},
"nativeSrc": "4861:48:12",
"nodeType": "YulFunctionCall",
"src": "4861:48:12"
}
],
"functionName": {
"name": "sstore",
"nativeSrc": "4846:6:12",
"nodeType": "YulIdentifier",
"src": "4846:6:12"
},
"nativeSrc": "4846:64:12",
"nodeType": "YulFunctionCall",
"src": "4846:64:12"
},
"nativeSrc": "4846:64:12",
"nodeType": "YulExpressionStatement",
"src": "4846:64:12"
}
]
},
"condition": {
"arguments": [
{
"name": "loopEnd",
"nativeSrc": "4751:7:12",
"nodeType": "YulIdentifier",
"src": "4751:7:12"
},
{
"name": "newLen",
"nativeSrc": "4760:6:12",
"nodeType": "YulIdentifier",
"src": "4760:6:12"
}
],
"functionName": {
"name": "lt",
"nativeSrc": "4748:2:12",
"nodeType": "YulIdentifier",
"src": "4748:2:12"
},
"nativeSrc": "4748:19:12",
"nodeType": "YulFunctionCall",
"src": "4748:19:12"
},
"nativeSrc": "4745:179:12",
"nodeType": "YulIf",
"src": "4745:179:12"
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nativeSrc": "4944:4:12",
"nodeType": "YulIdentifier",
"src": "4944:4:12"
},
{
"arguments": [
{
"arguments": [
{
"name": "newLen",
"nativeSrc": "4958:6:12",
"nodeType": "YulIdentifier",
"src": "4958:6:12"
},
{
"kind": "number",
"nativeSrc": "4966:1:12",
"nodeType": "YulLiteral",
"src": "4966:1:12",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "mul",
"nativeSrc": "4954:3:12",
"nodeType": "YulIdentifier",
"src": "4954:3:12"
},
"nativeSrc": "4954:14:12",
"nodeType": "YulFunctionCall",
"src": "4954:14:12"
},
{
"kind": "number",
"nativeSrc": "4970:1:12",
"nodeType": "YulLiteral",
"src": "4970:1:12",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nativeSrc": "4950:3:12",
"nodeType": "YulIdentifier",
"src": "4950:3:12"
},
"nativeSrc": "4950:22:12",
"nodeType": "YulFunctionCall",
"src": "4950:22:12"
}
],
"functionName": {
"name": "sstore",
"nativeSrc": "4937:6:12",
"nodeType": "YulIdentifier",
"src": "4937:6:12"
},
"nativeSrc": "4937:36:12",
"nodeType": "YulFunctionCall",
"src": "4937:36:12"
},
"nativeSrc": "4937:36:12",
"nodeType": "YulExpressionStatement",
"src": "4937:36:12"
}
]
},
"nativeSrc": "4365:618:12",
"nodeType": "YulCase",
"src": "4365:618:12",
"value": {
"kind": "number",
"nativeSrc": "4370:1:12",
"nodeType": "YulLiteral",
"src": "4370:1:12",
"type": "",
"value": "1"
}
},
{
"body": {
"nativeSrc": "5000:222:12",
"nodeType": "YulBlock",
"src": "5000:222:12",
"statements": [
{
"nativeSrc": "5014:14:12",
"nodeType": "YulVariableDeclaration",
"src": "5014:14:12",
"value": {
"kind": "number",
"nativeSrc": "5027:1:12",
"nodeType": "YulLiteral",
"src": "5027:1:12",
"type": "",
"value": "0"
},
"variables": [
{
"name": "value",
"nativeSrc": "5018:5:12",
"nodeType": "YulTypedName",
"src": "5018:5:12",
"type": ""
}
]
},
{
"body": {
"nativeSrc": "5051:67:12",
"nodeType": "YulBlock",
"src": "5051:67:12",
"statements": [
{
"nativeSrc": "5069:35:12",
"nodeType": "YulAssignment",
"src": "5069:35:12",
"value": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nativeSrc": "5088:3:12",
"nodeType": "YulIdentifier",
"src": "5088:3:12"
},
{
"name": "srcOffset",
"nativeSrc": "5093:9:12",
"nodeType": "YulIdentifier",
"src": "5093:9:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "5084:3:12",
"nodeType": "YulIdentifier",
"src": "5084:3:12"
},
"nativeSrc": "5084:19:12",
"nodeType": "YulFunctionCall",
"src": "5084:19:12"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "5078:5:12",
"nodeType": "YulIdentifier",
"src": "5078:5:12"
},
"nativeSrc": "5078:26:12",
"nodeType": "YulFunctionCall",
"src": "5078:26:12"
},
"variableNames": [
{
"name": "value",
"nativeSrc": "5069:5:12",
"nodeType": "YulIdentifier",
"src": "5069:5:12"
}
]
}
]
},
"condition": {
"name": "newLen",
"nativeSrc": "5044:6:12",
"nodeType": "YulIdentifier",
"src": "5044:6:12"
},
"nativeSrc": "5041:77:12",
"nodeType": "YulIf",
"src": "5041:77:12"
},
{
"expression": {
"arguments": [
{
"name": "slot",
"nativeSrc": "5138:4:12",
"nodeType": "YulIdentifier",
"src": "5138:4:12"
},
{
"arguments": [
{
"name": "value",
"nativeSrc": "5197:5:12",
"nodeType": "YulIdentifier",
"src": "5197:5:12"
},
{
"name": "newLen",
"nativeSrc": "5204:6:12",
"nodeType": "YulIdentifier",
"src": "5204:6:12"
}
],
"functionName": {
"name": "extract_used_part_and_set_length_of_short_byte_array",
"nativeSrc": "5144:52:12",
"nodeType": "YulIdentifier",
"src": "5144:52:12"
},
"nativeSrc": "5144:67:12",
"nodeType": "YulFunctionCall",
"src": "5144:67:12"
}
],
"functionName": {
"name": "sstore",
"nativeSrc": "5131:6:12",
"nodeType": "YulIdentifier",
"src": "5131:6:12"
},
"nativeSrc": "5131:81:12",
"nodeType": "YulFunctionCall",
"src": "5131:81:12"
},
"nativeSrc": "5131:81:12",
"nodeType": "YulExpressionStatement",
"src": "5131:81:12"
}
]
},
"nativeSrc": "4992:230:12",
"nodeType": "YulCase",
"src": "4992:230:12",
"value": "default"
}
],
"expression": {
"arguments": [
{
"name": "newLen",
"nativeSrc": "4345:6:12",
"nodeType": "YulIdentifier",
"src": "4345:6:12"
},
{
"kind": "number",
"nativeSrc": "4353:2:12",
"nodeType": "YulLiteral",
"src": "4353:2:12",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "gt",
"nativeSrc": "4342:2:12",
"nodeType": "YulIdentifier",
"src": "4342:2:12"
},
"nativeSrc": "4342:14:12",
"nodeType": "YulFunctionCall",
"src": "4342:14:12"
},
"nativeSrc": "4335:887:12",
"nodeType": "YulSwitch",
"src": "4335:887:12"
}
]
},
"name": "copy_byte_array_to_storage_from_t_string_memory_ptr_to_t_string_storage",
"nativeSrc": "3833:1395:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "slot",
"nativeSrc": "3914:4:12",
"nodeType": "YulTypedName",
"src": "3914:4:12",
"type": ""
},
{
"name": "src",
"nativeSrc": "3920:3:12",
"nodeType": "YulTypedName",
"src": "3920:3:12",
"type": ""
}
],
"src": "3833:1395:12"
},
{
"body": {
"nativeSrc": "5262:152:12",
"nodeType": "YulBlock",
"src": "5262:152:12",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "5279:1:12",
"nodeType": "YulLiteral",
"src": "5279:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "5282:77:12",
"nodeType": "YulLiteral",
"src": "5282:77:12",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "5272:6:12",
"nodeType": "YulIdentifier",
"src": "5272:6:12"
},
"nativeSrc": "5272:88:12",
"nodeType": "YulFunctionCall",
"src": "5272:88:12"
},
"nativeSrc": "5272:88:12",
"nodeType": "YulExpressionStatement",
"src": "5272:88:12"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "5376:1:12",
"nodeType": "YulLiteral",
"src": "5376:1:12",
"type": "",
"value": "4"
},
{
"kind": "number",
"nativeSrc": "5379:4:12",
"nodeType": "YulLiteral",
"src": "5379:4:12",
"type": "",
"value": "0x12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "5369:6:12",
"nodeType": "YulIdentifier",
"src": "5369:6:12"
},
"nativeSrc": "5369:15:12",
"nodeType": "YulFunctionCall",
"src": "5369:15:12"
},
"nativeSrc": "5369:15:12",
"nodeType": "YulExpressionStatement",
"src": "5369:15:12"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "5400:1:12",
"nodeType": "YulLiteral",
"src": "5400:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "5403:4:12",
"nodeType": "YulLiteral",
"src": "5403:4:12",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "5393:6:12",
"nodeType": "YulIdentifier",
"src": "5393:6:12"
},
"nativeSrc": "5393:15:12",
"nodeType": "YulFunctionCall",
"src": "5393:15:12"
},
"nativeSrc": "5393:15:12",
"nodeType": "YulExpressionStatement",
"src": "5393:15:12"
}
]
},
"name": "panic_error_0x12",
"nativeSrc": "5234:180:12",
"nodeType": "YulFunctionDefinition",
"src": "5234:180:12"
},
{
"body": {
"nativeSrc": "5454:142:12",
"nodeType": "YulBlock",
"src": "5454:142:12",
"statements": [
{
"nativeSrc": "5464:25:12",
"nodeType": "YulAssignment",
"src": "5464:25:12",
"value": {
"arguments": [
{
"name": "x",
"nativeSrc": "5487:1:12",
"nodeType": "YulIdentifier",
"src": "5487:1:12"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "5469:17:12",
"nodeType": "YulIdentifier",
"src": "5469:17:12"
},
"nativeSrc": "5469:20:12",
"nodeType": "YulFunctionCall",
"src": "5469:20:12"
},
"variableNames": [
{
"name": "x",
"nativeSrc": "5464:1:12",
"nodeType": "YulIdentifier",
"src": "5464:1:12"
}
]
},
{
"nativeSrc": "5498:25:12",
"nodeType": "YulAssignment",
"src": "5498:25:12",
"value": {
"arguments": [
{
"name": "y",
"nativeSrc": "5521:1:12",
"nodeType": "YulIdentifier",
"src": "5521:1:12"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "5503:17:12",
"nodeType": "YulIdentifier",
"src": "5503:17:12"
},
"nativeSrc": "5503:20:12",
"nodeType": "YulFunctionCall",
"src": "5503:20:12"
},
"variableNames": [
{
"name": "y",
"nativeSrc": "5498:1:12",
"nodeType": "YulIdentifier",
"src": "5498:1:12"
}
]
},
{
"body": {
"nativeSrc": "5545:22:12",
"nodeType": "YulBlock",
"src": "5545:22:12",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x12",
"nativeSrc": "5547:16:12",
"nodeType": "YulIdentifier",
"src": "5547:16:12"
},
"nativeSrc": "5547:18:12",
"nodeType": "YulFunctionCall",
"src": "5547:18:12"
},
"nativeSrc": "5547:18:12",
"nodeType": "YulExpressionStatement",
"src": "5547:18:12"
}
]
},
"condition": {
"arguments": [
{
"name": "y",
"nativeSrc": "5542:1:12",
"nodeType": "YulIdentifier",
"src": "5542:1:12"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "5535:6:12",
"nodeType": "YulIdentifier",
"src": "5535:6:12"
},
"nativeSrc": "5535:9:12",
"nodeType": "YulFunctionCall",
"src": "5535:9:12"
},
"nativeSrc": "5532:35:12",
"nodeType": "YulIf",
"src": "5532:35:12"
},
{
"nativeSrc": "5576:14:12",
"nodeType": "YulAssignment",
"src": "5576:14:12",
"value": {
"arguments": [
{
"name": "x",
"nativeSrc": "5585:1:12",
"nodeType": "YulIdentifier",
"src": "5585:1:12"
},
{
"name": "y",
"nativeSrc": "5588:1:12",
"nodeType": "YulIdentifier",
"src": "5588:1:12"
}
],
"functionName": {
"name": "mod",
"nativeSrc": "5581:3:12",
"nodeType": "YulIdentifier",
"src": "5581:3:12"
},
"nativeSrc": "5581:9:12",
"nodeType": "YulFunctionCall",
"src": "5581:9:12"
},
"variableNames": [
{
"name": "r",
"nativeSrc": "5576:1:12",
"nodeType": "YulIdentifier",
"src": "5576:1:12"
}
]
}
]
},
"name": "mod_t_uint256",
"nativeSrc": "5420:176:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nativeSrc": "5443:1:12",
"nodeType": "YulTypedName",
"src": "5443:1:12",
"type": ""
},
{
"name": "y",
"nativeSrc": "5446:1:12",
"nodeType": "YulTypedName",
"src": "5446:1:12",
"type": ""
}
],
"returnVariables": [
{
"name": "r",
"nativeSrc": "5452:1:12",
"nodeType": "YulTypedName",
"src": "5452:1:12",
"type": ""
}
],
"src": "5420:176:12"
},
{
"body": {
"nativeSrc": "5630:152:12",
"nodeType": "YulBlock",
"src": "5630:152:12",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "5647:1:12",
"nodeType": "YulLiteral",
"src": "5647:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "5650:77:12",
"nodeType": "YulLiteral",
"src": "5650:77:12",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "5640:6:12",
"nodeType": "YulIdentifier",
"src": "5640:6:12"
},
"nativeSrc": "5640:88:12",
"nodeType": "YulFunctionCall",
"src": "5640:88:12"
},
"nativeSrc": "5640:88:12",
"nodeType": "YulExpressionStatement",
"src": "5640:88:12"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "5744:1:12",
"nodeType": "YulLiteral",
"src": "5744:1:12",
"type": "",
"value": "4"
},
{
"kind": "number",
"nativeSrc": "5747:4:12",
"nodeType": "YulLiteral",
"src": "5747:4:12",
"type": "",
"value": "0x32"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "5737:6:12",
"nodeType": "YulIdentifier",
"src": "5737:6:12"
},
"nativeSrc": "5737:15:12",
"nodeType": "YulFunctionCall",
"src": "5737:15:12"
},
"nativeSrc": "5737:15:12",
"nodeType": "YulExpressionStatement",
"src": "5737:15:12"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "5768:1:12",
"nodeType": "YulLiteral",
"src": "5768:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "5771:4:12",
"nodeType": "YulLiteral",
"src": "5771:4:12",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "5761:6:12",
"nodeType": "YulIdentifier",
"src": "5761:6:12"
},
"nativeSrc": "5761:15:12",
"nodeType": "YulFunctionCall",
"src": "5761:15:12"
},
"nativeSrc": "5761:15:12",
"nodeType": "YulExpressionStatement",
"src": "5761:15:12"
}
]
},
"name": "panic_error_0x32",
"nativeSrc": "5602:180:12",
"nodeType": "YulFunctionDefinition",
"src": "5602:180:12"
},
{
"body": {
"nativeSrc": "5902:34:12",
"nodeType": "YulBlock",
"src": "5902:34:12",
"statements": [
{
"nativeSrc": "5912:18:12",
"nodeType": "YulAssignment",
"src": "5912:18:12",
"value": {
"name": "pos",
"nativeSrc": "5927:3:12",
"nodeType": "YulIdentifier",
"src": "5927:3:12"
},
"variableNames": [
{
"name": "updated_pos",
"nativeSrc": "5912:11:12",
"nodeType": "YulIdentifier",
"src": "5912:11:12"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "5788:148:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "5874:3:12",
"nodeType": "YulTypedName",
"src": "5874:3:12",
"type": ""
},
{
"name": "length",
"nativeSrc": "5879:6:12",
"nodeType": "YulTypedName",
"src": "5879:6:12",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nativeSrc": "5890:11:12",
"nodeType": "YulTypedName",
"src": "5890:11:12",
"type": ""
}
],
"src": "5788:148:12"
},
{
"body": {
"nativeSrc": "6048:108:12",
"nodeType": "YulBlock",
"src": "6048:108:12",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "6070:6:12",
"nodeType": "YulIdentifier",
"src": "6070:6:12"
},
{
"kind": "number",
"nativeSrc": "6078:1:12",
"nodeType": "YulLiteral",
"src": "6078:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "6066:3:12",
"nodeType": "YulIdentifier",
"src": "6066:3:12"
},
"nativeSrc": "6066:14:12",
"nodeType": "YulFunctionCall",
"src": "6066:14:12"
},
{
"kind": "number",
"nativeSrc": "6082:66:12",
"nodeType": "YulLiteral",
"src": "6082:66:12",
"type": "",
"value": "0x7b226e616d65223a2022436861696e6c696e6b204e4654222c00000000000000"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "6059:6:12",
"nodeType": "YulIdentifier",
"src": "6059:6:12"
},
"nativeSrc": "6059:90:12",
"nodeType": "YulFunctionCall",
"src": "6059:90:12"
},
"nativeSrc": "6059:90:12",
"nodeType": "YulExpressionStatement",
"src": "6059:90:12"
}
]
},
"name": "store_literal_in_memory_6b2acff6a59a72cf3c2cb957b2f24312cc7f84355e26b391f6ab52fac2989f29",
"nativeSrc": "5942:214:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "6040:6:12",
"nodeType": "YulTypedName",
"src": "6040:6:12",
"type": ""
}
],
"src": "5942:214:12"
},
{
"body": {
"nativeSrc": "6326:238:12",
"nodeType": "YulBlock",
"src": "6326:238:12",
"statements": [
{
"nativeSrc": "6336:92:12",
"nodeType": "YulAssignment",
"src": "6336:92:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "6420:3:12",
"nodeType": "YulIdentifier",
"src": "6420:3:12"
},
{
"kind": "number",
"nativeSrc": "6425:2:12",
"nodeType": "YulLiteral",
"src": "6425:2:12",
"type": "",
"value": "25"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "6343:76:12",
"nodeType": "YulIdentifier",
"src": "6343:76:12"
},
"nativeSrc": "6343:85:12",
"nodeType": "YulFunctionCall",
"src": "6343:85:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "6336:3:12",
"nodeType": "YulIdentifier",
"src": "6336:3:12"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "6526:3:12",
"nodeType": "YulIdentifier",
"src": "6526:3:12"
}
],
"functionName": {
"name": "store_literal_in_memory_6b2acff6a59a72cf3c2cb957b2f24312cc7f84355e26b391f6ab52fac2989f29",
"nativeSrc": "6437:88:12",
"nodeType": "YulIdentifier",
"src": "6437:88:12"
},
"nativeSrc": "6437:93:12",
"nodeType": "YulFunctionCall",
"src": "6437:93:12"
},
"nativeSrc": "6437:93:12",
"nodeType": "YulExpressionStatement",
"src": "6437:93:12"
},
{
"nativeSrc": "6539:19:12",
"nodeType": "YulAssignment",
"src": "6539:19:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "6550:3:12",
"nodeType": "YulIdentifier",
"src": "6550:3:12"
},
{
"kind": "number",
"nativeSrc": "6555:2:12",
"nodeType": "YulLiteral",
"src": "6555:2:12",
"type": "",
"value": "25"
}
],
"functionName": {
"name": "add",
"nativeSrc": "6546:3:12",
"nodeType": "YulIdentifier",
"src": "6546:3:12"
},
"nativeSrc": "6546:12:12",
"nodeType": "YulFunctionCall",
"src": "6546:12:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "6539:3:12",
"nodeType": "YulIdentifier",
"src": "6539:3:12"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_6b2acff6a59a72cf3c2cb957b2f24312cc7f84355e26b391f6ab52fac2989f29_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "6162:402:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "6314:3:12",
"nodeType": "YulTypedName",
"src": "6314:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "6322:3:12",
"nodeType": "YulTypedName",
"src": "6322:3:12",
"type": ""
}
],
"src": "6162:402:12"
},
{
"body": {
"nativeSrc": "6676:209:12",
"nodeType": "YulBlock",
"src": "6676:209:12",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "6698:6:12",
"nodeType": "YulIdentifier",
"src": "6698:6:12"
},
{
"kind": "number",
"nativeSrc": "6706:1:12",
"nodeType": "YulLiteral",
"src": "6706:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "6694:3:12",
"nodeType": "YulIdentifier",
"src": "6694:3:12"
},
"nativeSrc": "6694:14:12",
"nodeType": "YulFunctionCall",
"src": "6694:14:12"
},
{
"kind": "number",
"nativeSrc": "6710:66:12",
"nodeType": "YulLiteral",
"src": "6710:66:12",
"type": "",
"value": "0x226465736372697074696f6e223a20225468697320697320796f757220436861"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "6687:6:12",
"nodeType": "YulIdentifier",
"src": "6687:6:12"
},
"nativeSrc": "6687:90:12",
"nodeType": "YulFunctionCall",
"src": "6687:90:12"
},
"nativeSrc": "6687:90:12",
"nodeType": "YulExpressionStatement",
"src": "6687:90:12"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "6798:6:12",
"nodeType": "YulIdentifier",
"src": "6798:6:12"
},
{
"kind": "number",
"nativeSrc": "6806:2:12",
"nodeType": "YulLiteral",
"src": "6806:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "6794:3:12",
"nodeType": "YulIdentifier",
"src": "6794:3:12"
},
"nativeSrc": "6794:15:12",
"nodeType": "YulFunctionCall",
"src": "6794:15:12"
},
{
"kind": "number",
"nativeSrc": "6811:66:12",
"nodeType": "YulLiteral",
"src": "6811:66:12",
"type": "",
"value": "0x696e6c696e6b204e4654222c0000000000000000000000000000000000000000"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "6787:6:12",
"nodeType": "YulIdentifier",
"src": "6787:6:12"
},
"nativeSrc": "6787:91:12",
"nodeType": "YulFunctionCall",
"src": "6787:91:12"
},
"nativeSrc": "6787:91:12",
"nodeType": "YulExpressionStatement",
"src": "6787:91:12"
}
]
},
"name": "store_literal_in_memory_5d122e7f752369396a481637eea3a06d7b98fd00c9de0f63349f9caf41596a5e",
"nativeSrc": "6570:315:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "6668:6:12",
"nodeType": "YulTypedName",
"src": "6668:6:12",
"type": ""
}
],
"src": "6570:315:12"
},
{
"body": {
"nativeSrc": "7055:238:12",
"nodeType": "YulBlock",
"src": "7055:238:12",
"statements": [
{
"nativeSrc": "7065:92:12",
"nodeType": "YulAssignment",
"src": "7065:92:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "7149:3:12",
"nodeType": "YulIdentifier",
"src": "7149:3:12"
},
{
"kind": "number",
"nativeSrc": "7154:2:12",
"nodeType": "YulLiteral",
"src": "7154:2:12",
"type": "",
"value": "44"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "7072:76:12",
"nodeType": "YulIdentifier",
"src": "7072:76:12"
},
"nativeSrc": "7072:85:12",
"nodeType": "YulFunctionCall",
"src": "7072:85:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "7065:3:12",
"nodeType": "YulIdentifier",
"src": "7065:3:12"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "7255:3:12",
"nodeType": "YulIdentifier",
"src": "7255:3:12"
}
],
"functionName": {
"name": "store_literal_in_memory_5d122e7f752369396a481637eea3a06d7b98fd00c9de0f63349f9caf41596a5e",
"nativeSrc": "7166:88:12",
"nodeType": "YulIdentifier",
"src": "7166:88:12"
},
"nativeSrc": "7166:93:12",
"nodeType": "YulFunctionCall",
"src": "7166:93:12"
},
"nativeSrc": "7166:93:12",
"nodeType": "YulExpressionStatement",
"src": "7166:93:12"
},
{
"nativeSrc": "7268:19:12",
"nodeType": "YulAssignment",
"src": "7268:19:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "7279:3:12",
"nodeType": "YulIdentifier",
"src": "7279:3:12"
},
{
"kind": "number",
"nativeSrc": "7284:2:12",
"nodeType": "YulLiteral",
"src": "7284:2:12",
"type": "",
"value": "44"
}
],
"functionName": {
"name": "add",
"nativeSrc": "7275:3:12",
"nodeType": "YulIdentifier",
"src": "7275:3:12"
},
"nativeSrc": "7275:12:12",
"nodeType": "YulFunctionCall",
"src": "7275:12:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "7268:3:12",
"nodeType": "YulIdentifier",
"src": "7268:3:12"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_5d122e7f752369396a481637eea3a06d7b98fd00c9de0f63349f9caf41596a5e_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "6891:402:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "7043:3:12",
"nodeType": "YulTypedName",
"src": "7043:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "7051:3:12",
"nodeType": "YulTypedName",
"src": "7051:3:12",
"type": ""
}
],
"src": "6891:402:12"
},
{
"body": {
"nativeSrc": "7405:108:12",
"nodeType": "YulBlock",
"src": "7405:108:12",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "7427:6:12",
"nodeType": "YulIdentifier",
"src": "7427:6:12"
},
{
"kind": "number",
"nativeSrc": "7435:1:12",
"nodeType": "YulLiteral",
"src": "7435:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "7423:3:12",
"nodeType": "YulIdentifier",
"src": "7423:3:12"
},
"nativeSrc": "7423:14:12",
"nodeType": "YulFunctionCall",
"src": "7423:14:12"
},
{
"kind": "number",
"nativeSrc": "7439:66:12",
"nodeType": "YulLiteral",
"src": "7439:66:12",
"type": "",
"value": "0x22696d616765223a202200000000000000000000000000000000000000000000"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "7416:6:12",
"nodeType": "YulIdentifier",
"src": "7416:6:12"
},
"nativeSrc": "7416:90:12",
"nodeType": "YulFunctionCall",
"src": "7416:90:12"
},
"nativeSrc": "7416:90:12",
"nodeType": "YulExpressionStatement",
"src": "7416:90:12"
}
]
},
"name": "store_literal_in_memory_dee71bd900939e5251fa52ed0e7fadcfe3990bd7a5ea546147c85d1b972c64b6",
"nativeSrc": "7299:214:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "7397:6:12",
"nodeType": "YulTypedName",
"src": "7397:6:12",
"type": ""
}
],
"src": "7299:214:12"
},
{
"body": {
"nativeSrc": "7683:238:12",
"nodeType": "YulBlock",
"src": "7683:238:12",
"statements": [
{
"nativeSrc": "7693:92:12",
"nodeType": "YulAssignment",
"src": "7693:92:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "7777:3:12",
"nodeType": "YulIdentifier",
"src": "7777:3:12"
},
{
"kind": "number",
"nativeSrc": "7782:2:12",
"nodeType": "YulLiteral",
"src": "7782:2:12",
"type": "",
"value": "10"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "7700:76:12",
"nodeType": "YulIdentifier",
"src": "7700:76:12"
},
"nativeSrc": "7700:85:12",
"nodeType": "YulFunctionCall",
"src": "7700:85:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "7693:3:12",
"nodeType": "YulIdentifier",
"src": "7693:3:12"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "7883:3:12",
"nodeType": "YulIdentifier",
"src": "7883:3:12"
}
],
"functionName": {
"name": "store_literal_in_memory_dee71bd900939e5251fa52ed0e7fadcfe3990bd7a5ea546147c85d1b972c64b6",
"nativeSrc": "7794:88:12",
"nodeType": "YulIdentifier",
"src": "7794:88:12"
},
"nativeSrc": "7794:93:12",
"nodeType": "YulFunctionCall",
"src": "7794:93:12"
},
"nativeSrc": "7794:93:12",
"nodeType": "YulExpressionStatement",
"src": "7794:93:12"
},
{
"nativeSrc": "7896:19:12",
"nodeType": "YulAssignment",
"src": "7896:19:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "7907:3:12",
"nodeType": "YulIdentifier",
"src": "7907:3:12"
},
{
"kind": "number",
"nativeSrc": "7912:2:12",
"nodeType": "YulLiteral",
"src": "7912:2:12",
"type": "",
"value": "10"
}
],
"functionName": {
"name": "add",
"nativeSrc": "7903:3:12",
"nodeType": "YulIdentifier",
"src": "7903:3:12"
},
"nativeSrc": "7903:12:12",
"nodeType": "YulFunctionCall",
"src": "7903:12:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "7896:3:12",
"nodeType": "YulIdentifier",
"src": "7896:3:12"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_dee71bd900939e5251fa52ed0e7fadcfe3990bd7a5ea546147c85d1b972c64b6_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "7519:402:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "7671:3:12",
"nodeType": "YulTypedName",
"src": "7671:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "7679:3:12",
"nodeType": "YulTypedName",
"src": "7679:3:12",
"type": ""
}
],
"src": "7519:402:12"
},
{
"body": {
"nativeSrc": "8058:767:12",
"nodeType": "YulBlock",
"src": "8058:767:12",
"statements": [
{
"nativeSrc": "8068:29:12",
"nodeType": "YulVariableDeclaration",
"src": "8068:29:12",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "8091:5:12",
"nodeType": "YulIdentifier",
"src": "8091:5:12"
}
],
"functionName": {
"name": "sload",
"nativeSrc": "8085:5:12",
"nodeType": "YulIdentifier",
"src": "8085:5:12"
},
"nativeSrc": "8085:12:12",
"nodeType": "YulFunctionCall",
"src": "8085:12:12"
},
"variables": [
{
"name": "slotValue",
"nativeSrc": "8072:9:12",
"nodeType": "YulTypedName",
"src": "8072:9:12",
"type": ""
}
]
},
{
"nativeSrc": "8106:50:12",
"nodeType": "YulVariableDeclaration",
"src": "8106:50:12",
"value": {
"arguments": [
{
"name": "slotValue",
"nativeSrc": "8146:9:12",
"nodeType": "YulIdentifier",
"src": "8146:9:12"
}
],
"functionName": {
"name": "extract_byte_array_length",
"nativeSrc": "8120:25:12",
"nodeType": "YulIdentifier",
"src": "8120:25:12"
},
"nativeSrc": "8120:36:12",
"nodeType": "YulFunctionCall",
"src": "8120:36:12"
},
"variables": [
{
"name": "length",
"nativeSrc": "8110:6:12",
"nodeType": "YulTypedName",
"src": "8110:6:12",
"type": ""
}
]
},
{
"nativeSrc": "8165:96:12",
"nodeType": "YulAssignment",
"src": "8165:96:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "8249:3:12",
"nodeType": "YulIdentifier",
"src": "8249:3:12"
},
{
"name": "length",
"nativeSrc": "8254:6:12",
"nodeType": "YulIdentifier",
"src": "8254:6:12"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "8172:76:12",
"nodeType": "YulIdentifier",
"src": "8172:76:12"
},
"nativeSrc": "8172:89:12",
"nodeType": "YulFunctionCall",
"src": "8172:89:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "8165:3:12",
"nodeType": "YulIdentifier",
"src": "8165:3:12"
}
]
},
{
"cases": [
{
"body": {
"nativeSrc": "8310:159:12",
"nodeType": "YulBlock",
"src": "8310:159:12",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "8363:3:12",
"nodeType": "YulIdentifier",
"src": "8363:3:12"
},
{
"arguments": [
{
"name": "slotValue",
"nativeSrc": "8372:9:12",
"nodeType": "YulIdentifier",
"src": "8372:9:12"
},
{
"arguments": [
{
"kind": "number",
"nativeSrc": "8387:4:12",
"nodeType": "YulLiteral",
"src": "8387:4:12",
"type": "",
"value": "0xff"
}
],
"functionName": {
"name": "not",
"nativeSrc": "8383:3:12",
"nodeType": "YulIdentifier",
"src": "8383:3:12"
},
"nativeSrc": "8383:9:12",
"nodeType": "YulFunctionCall",
"src": "8383:9:12"
}
],
"functionName": {
"name": "and",
"nativeSrc": "8368:3:12",
"nodeType": "YulIdentifier",
"src": "8368:3:12"
},
"nativeSrc": "8368:25:12",
"nodeType": "YulFunctionCall",
"src": "8368:25:12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "8356:6:12",
"nodeType": "YulIdentifier",
"src": "8356:6:12"
},
"nativeSrc": "8356:38:12",
"nodeType": "YulFunctionCall",
"src": "8356:38:12"
},
"nativeSrc": "8356:38:12",
"nodeType": "YulExpressionStatement",
"src": "8356:38:12"
},
{
"nativeSrc": "8407:52:12",
"nodeType": "YulAssignment",
"src": "8407:52:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "8418:3:12",
"nodeType": "YulIdentifier",
"src": "8418:3:12"
},
{
"arguments": [
{
"name": "length",
"nativeSrc": "8427:6:12",
"nodeType": "YulIdentifier",
"src": "8427:6:12"
},
{
"arguments": [
{
"arguments": [
{
"name": "length",
"nativeSrc": "8449:6:12",
"nodeType": "YulIdentifier",
"src": "8449:6:12"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "8442:6:12",
"nodeType": "YulIdentifier",
"src": "8442:6:12"
},
"nativeSrc": "8442:14:12",
"nodeType": "YulFunctionCall",
"src": "8442:14:12"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "8435:6:12",
"nodeType": "YulIdentifier",
"src": "8435:6:12"
},
"nativeSrc": "8435:22:12",
"nodeType": "YulFunctionCall",
"src": "8435:22:12"
}
],
"functionName": {
"name": "mul",
"nativeSrc": "8423:3:12",
"nodeType": "YulIdentifier",
"src": "8423:3:12"
},
"nativeSrc": "8423:35:12",
"nodeType": "YulFunctionCall",
"src": "8423:35:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "8414:3:12",
"nodeType": "YulIdentifier",
"src": "8414:3:12"
},
"nativeSrc": "8414:45:12",
"nodeType": "YulFunctionCall",
"src": "8414:45:12"
},
"variableNames": [
{
"name": "ret",
"nativeSrc": "8407:3:12",
"nodeType": "YulIdentifier",
"src": "8407:3:12"
}
]
}
]
},
"nativeSrc": "8303:166:12",
"nodeType": "YulCase",
"src": "8303:166:12",
"value": {
"kind": "number",
"nativeSrc": "8308:1:12",
"nodeType": "YulLiteral",
"src": "8308:1:12",
"type": "",
"value": "0"
}
},
{
"body": {
"nativeSrc": "8485:334:12",
"nodeType": "YulBlock",
"src": "8485:334:12",
"statements": [
{
"nativeSrc": "8530:53:12",
"nodeType": "YulVariableDeclaration",
"src": "8530:53:12",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "8577:5:12",
"nodeType": "YulIdentifier",
"src": "8577:5:12"
}
],
"functionName": {
"name": "array_dataslot_t_string_storage",
"nativeSrc": "8545:31:12",
"nodeType": "YulIdentifier",
"src": "8545:31:12"
},
"nativeSrc": "8545:38:12",
"nodeType": "YulFunctionCall",
"src": "8545:38:12"
},
"variables": [
{
"name": "dataPos",
"nativeSrc": "8534:7:12",
"nodeType": "YulTypedName",
"src": "8534:7:12",
"type": ""
}
]
},
{
"nativeSrc": "8596:10:12",
"nodeType": "YulVariableDeclaration",
"src": "8596:10:12",
"value": {
"kind": "number",
"nativeSrc": "8605:1:12",
"nodeType": "YulLiteral",
"src": "8605:1:12",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nativeSrc": "8600:1:12",
"nodeType": "YulTypedName",
"src": "8600:1:12",
"type": ""
}
]
},
{
"body": {
"nativeSrc": "8663:110:12",
"nodeType": "YulBlock",
"src": "8663:110:12",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "pos",
"nativeSrc": "8692:3:12",
"nodeType": "YulIdentifier",
"src": "8692:3:12"
},
{
"name": "i",
"nativeSrc": "8697:1:12",
"nodeType": "YulIdentifier",
"src": "8697:1:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "8688:3:12",
"nodeType": "YulIdentifier",
"src": "8688:3:12"
},
"nativeSrc": "8688:11:12",
"nodeType": "YulFunctionCall",
"src": "8688:11:12"
},
{
"arguments": [
{
"name": "dataPos",
"nativeSrc": "8707:7:12",
"nodeType": "YulIdentifier",
"src": "8707:7:12"
}
],
"functionName": {
"name": "sload",
"nativeSrc": "8701:5:12",
"nodeType": "YulIdentifier",
"src": "8701:5:12"
},
"nativeSrc": "8701:14:12",
"nodeType": "YulFunctionCall",
"src": "8701:14:12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "8681:6:12",
"nodeType": "YulIdentifier",
"src": "8681:6:12"
},
"nativeSrc": "8681:35:12",
"nodeType": "YulFunctionCall",
"src": "8681:35:12"
},
"nativeSrc": "8681:35:12",
"nodeType": "YulExpressionStatement",
"src": "8681:35:12"
},
{
"nativeSrc": "8733:26:12",
"nodeType": "YulAssignment",
"src": "8733:26:12",
"value": {
"arguments": [
{
"name": "dataPos",
"nativeSrc": "8748:7:12",
"nodeType": "YulIdentifier",
"src": "8748:7:12"
},
{
"kind": "number",
"nativeSrc": "8757:1:12",
"nodeType": "YulLiteral",
"src": "8757:1:12",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "add",
"nativeSrc": "8744:3:12",
"nodeType": "YulIdentifier",
"src": "8744:3:12"
},
"nativeSrc": "8744:15:12",
"nodeType": "YulFunctionCall",
"src": "8744:15:12"
},
"variableNames": [
{
"name": "dataPos",
"nativeSrc": "8733:7:12",
"nodeType": "YulIdentifier",
"src": "8733:7:12"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nativeSrc": "8630:1:12",
"nodeType": "YulIdentifier",
"src": "8630:1:12"
},
{
"name": "length",
"nativeSrc": "8633:6:12",
"nodeType": "YulIdentifier",
"src": "8633:6:12"
}
],
"functionName": {
"name": "lt",
"nativeSrc": "8627:2:12",
"nodeType": "YulIdentifier",
"src": "8627:2:12"
},
"nativeSrc": "8627:13:12",
"nodeType": "YulFunctionCall",
"src": "8627:13:12"
},
"nativeSrc": "8619:154:12",
"nodeType": "YulForLoop",
"post": {
"nativeSrc": "8641:21:12",
"nodeType": "YulBlock",
"src": "8641:21:12",
"statements": [
{
"nativeSrc": "8643:17:12",
"nodeType": "YulAssignment",
"src": "8643:17:12",
"value": {
"arguments": [
{
"name": "i",
"nativeSrc": "8652:1:12",
"nodeType": "YulIdentifier",
"src": "8652:1:12"
},
{
"kind": "number",
"nativeSrc": "8655:4:12",
"nodeType": "YulLiteral",
"src": "8655:4:12",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nativeSrc": "8648:3:12",
"nodeType": "YulIdentifier",
"src": "8648:3:12"
},
"nativeSrc": "8648:12:12",
"nodeType": "YulFunctionCall",
"src": "8648:12:12"
},
"variableNames": [
{
"name": "i",
"nativeSrc": "8643:1:12",
"nodeType": "YulIdentifier",
"src": "8643:1:12"
}
]
}
]
},
"pre": {
"nativeSrc": "8623:3:12",
"nodeType": "YulBlock",
"src": "8623:3:12",
"statements": []
},
"src": "8619:154:12"
},
{
"nativeSrc": "8786:23:12",
"nodeType": "YulAssignment",
"src": "8786:23:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "8797:3:12",
"nodeType": "YulIdentifier",
"src": "8797:3:12"
},
{
"name": "length",
"nativeSrc": "8802:6:12",
"nodeType": "YulIdentifier",
"src": "8802:6:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "8793:3:12",
"nodeType": "YulIdentifier",
"src": "8793:3:12"
},
"nativeSrc": "8793:16:12",
"nodeType": "YulFunctionCall",
"src": "8793:16:12"
},
"variableNames": [
{
"name": "ret",
"nativeSrc": "8786:3:12",
"nodeType": "YulIdentifier",
"src": "8786:3:12"
}
]
}
]
},
"nativeSrc": "8478:341:12",
"nodeType": "YulCase",
"src": "8478:341:12",
"value": {
"kind": "number",
"nativeSrc": "8483:1:12",
"nodeType": "YulLiteral",
"src": "8483:1:12",
"type": "",
"value": "1"
}
}
],
"expression": {
"arguments": [
{
"name": "slotValue",
"nativeSrc": "8281:9:12",
"nodeType": "YulIdentifier",
"src": "8281:9:12"
},
{
"kind": "number",
"nativeSrc": "8292:1:12",
"nodeType": "YulLiteral",
"src": "8292:1:12",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nativeSrc": "8277:3:12",
"nodeType": "YulIdentifier",
"src": "8277:3:12"
},
"nativeSrc": "8277:17:12",
"nodeType": "YulFunctionCall",
"src": "8277:17:12"
},
"nativeSrc": "8270:549:12",
"nodeType": "YulSwitch",
"src": "8270:549:12"
}
]
},
"name": "abi_encode_t_string_storage_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "7951:874:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "8039:5:12",
"nodeType": "YulTypedName",
"src": "8039:5:12",
"type": ""
},
{
"name": "pos",
"nativeSrc": "8046:3:12",
"nodeType": "YulTypedName",
"src": "8046:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "ret",
"nativeSrc": "8054:3:12",
"nodeType": "YulTypedName",
"src": "8054:3:12",
"type": ""
}
],
"src": "7951:874:12"
},
{
"body": {
"nativeSrc": "8937:108:12",
"nodeType": "YulBlock",
"src": "8937:108:12",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "8959:6:12",
"nodeType": "YulIdentifier",
"src": "8959:6:12"
},
{
"kind": "number",
"nativeSrc": "8967:1:12",
"nodeType": "YulLiteral",
"src": "8967:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "8955:3:12",
"nodeType": "YulIdentifier",
"src": "8955:3:12"
},
"nativeSrc": "8955:14:12",
"nodeType": "YulFunctionCall",
"src": "8955:14:12"
},
{
"kind": "number",
"nativeSrc": "8971:66:12",
"nodeType": "YulLiteral",
"src": "8971:66:12",
"type": "",
"value": "0x222c2261747472696275746573223a205b000000000000000000000000000000"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "8948:6:12",
"nodeType": "YulIdentifier",
"src": "8948:6:12"
},
"nativeSrc": "8948:90:12",
"nodeType": "YulFunctionCall",
"src": "8948:90:12"
},
"nativeSrc": "8948:90:12",
"nodeType": "YulExpressionStatement",
"src": "8948:90:12"
}
]
},
"name": "store_literal_in_memory_0f5701b76401cee5189505c11653cb5112557e23d04f3aecfe0d8d3fe1fe1646",
"nativeSrc": "8831:214:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "8929:6:12",
"nodeType": "YulTypedName",
"src": "8929:6:12",
"type": ""
}
],
"src": "8831:214:12"
},
{
"body": {
"nativeSrc": "9215:238:12",
"nodeType": "YulBlock",
"src": "9215:238:12",
"statements": [
{
"nativeSrc": "9225:92:12",
"nodeType": "YulAssignment",
"src": "9225:92:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "9309:3:12",
"nodeType": "YulIdentifier",
"src": "9309:3:12"
},
{
"kind": "number",
"nativeSrc": "9314:2:12",
"nodeType": "YulLiteral",
"src": "9314:2:12",
"type": "",
"value": "17"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "9232:76:12",
"nodeType": "YulIdentifier",
"src": "9232:76:12"
},
"nativeSrc": "9232:85:12",
"nodeType": "YulFunctionCall",
"src": "9232:85:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "9225:3:12",
"nodeType": "YulIdentifier",
"src": "9225:3:12"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "9415:3:12",
"nodeType": "YulIdentifier",
"src": "9415:3:12"
}
],
"functionName": {
"name": "store_literal_in_memory_0f5701b76401cee5189505c11653cb5112557e23d04f3aecfe0d8d3fe1fe1646",
"nativeSrc": "9326:88:12",
"nodeType": "YulIdentifier",
"src": "9326:88:12"
},
"nativeSrc": "9326:93:12",
"nodeType": "YulFunctionCall",
"src": "9326:93:12"
},
"nativeSrc": "9326:93:12",
"nodeType": "YulExpressionStatement",
"src": "9326:93:12"
},
{
"nativeSrc": "9428:19:12",
"nodeType": "YulAssignment",
"src": "9428:19:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "9439:3:12",
"nodeType": "YulIdentifier",
"src": "9439:3:12"
},
{
"kind": "number",
"nativeSrc": "9444:2:12",
"nodeType": "YulLiteral",
"src": "9444:2:12",
"type": "",
"value": "17"
}
],
"functionName": {
"name": "add",
"nativeSrc": "9435:3:12",
"nodeType": "YulIdentifier",
"src": "9435:3:12"
},
"nativeSrc": "9435:12:12",
"nodeType": "YulFunctionCall",
"src": "9435:12:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "9428:3:12",
"nodeType": "YulIdentifier",
"src": "9428:3:12"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_0f5701b76401cee5189505c11653cb5112557e23d04f3aecfe0d8d3fe1fe1646_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "9051:402:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "9203:3:12",
"nodeType": "YulTypedName",
"src": "9203:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "9211:3:12",
"nodeType": "YulTypedName",
"src": "9211:3:12",
"type": ""
}
],
"src": "9051:402:12"
},
{
"body": {
"nativeSrc": "9565:38:12",
"nodeType": "YulBlock",
"src": "9565:38:12",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "9583:6:12",
"nodeType": "YulIdentifier",
"src": "9583:6:12"
},
{
"kind": "number",
"nativeSrc": "9591:1:12",
"nodeType": "YulLiteral",
"src": "9591:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "9579:3:12",
"nodeType": "YulIdentifier",
"src": "9579:3:12"
},
"nativeSrc": "9579:14:12",
"nodeType": "YulFunctionCall",
"src": "9579:14:12"
},
{
"hexValue": "5d7d",
"kind": "string",
"nativeSrc": "9595:4:12",
"nodeType": "YulLiteral",
"src": "9595:4:12",
"type": "",
"value": "]}"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "9572:6:12",
"nodeType": "YulIdentifier",
"src": "9572:6:12"
},
"nativeSrc": "9572:28:12",
"nodeType": "YulFunctionCall",
"src": "9572:28:12"
},
"nativeSrc": "9572:28:12",
"nodeType": "YulExpressionStatement",
"src": "9572:28:12"
}
]
},
"name": "store_literal_in_memory_ab149d31dbf8c3ed1cc7ba15c88205185e426c492b6b350058945b7266ec7e76",
"nativeSrc": "9459:144:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "9557:6:12",
"nodeType": "YulTypedName",
"src": "9557:6:12",
"type": ""
}
],
"src": "9459:144:12"
},
{
"body": {
"nativeSrc": "9769:220:12",
"nodeType": "YulBlock",
"src": "9769:220:12",
"statements": [
{
"nativeSrc": "9775:91:12",
"nodeType": "YulAssignment",
"src": "9775:91:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "9859:3:12",
"nodeType": "YulIdentifier",
"src": "9859:3:12"
},
{
"kind": "number",
"nativeSrc": "9864:1:12",
"nodeType": "YulLiteral",
"src": "9864:1:12",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "9782:76:12",
"nodeType": "YulIdentifier",
"src": "9782:76:12"
},
"nativeSrc": "9782:84:12",
"nodeType": "YulFunctionCall",
"src": "9782:84:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "9775:3:12",
"nodeType": "YulIdentifier",
"src": "9775:3:12"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "9960:3:12",
"nodeType": "YulIdentifier",
"src": "9960:3:12"
}
],
"functionName": {
"name": "store_literal_in_memory_ab149d31dbf8c3ed1cc7ba15c88205185e426c492b6b350058945b7266ec7e76",
"nativeSrc": "9871:88:12",
"nodeType": "YulIdentifier",
"src": "9871:88:12"
},
"nativeSrc": "9871:93:12",
"nodeType": "YulFunctionCall",
"src": "9871:93:12"
},
"nativeSrc": "9871:93:12",
"nodeType": "YulExpressionStatement",
"src": "9871:93:12"
},
{
"nativeSrc": "9969:18:12",
"nodeType": "YulAssignment",
"src": "9969:18:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "9980:3:12",
"nodeType": "YulIdentifier",
"src": "9980:3:12"
},
{
"kind": "number",
"nativeSrc": "9985:1:12",
"nodeType": "YulLiteral",
"src": "9985:1:12",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "add",
"nativeSrc": "9976:3:12",
"nodeType": "YulIdentifier",
"src": "9976:3:12"
},
"nativeSrc": "9976:11:12",
"nodeType": "YulFunctionCall",
"src": "9976:11:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "9969:3:12",
"nodeType": "YulIdentifier",
"src": "9969:3:12"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_ab149d31dbf8c3ed1cc7ba15c88205185e426c492b6b350058945b7266ec7e76_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "9605:384:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "9757:3:12",
"nodeType": "YulTypedName",
"src": "9757:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "9765:3:12",
"nodeType": "YulTypedName",
"src": "9765:3:12",
"type": ""
}
],
"src": "9605:384:12"
},
{
"body": {
"nativeSrc": "10629:929:12",
"nodeType": "YulBlock",
"src": "10629:929:12",
"statements": [
{
"nativeSrc": "10636:155:12",
"nodeType": "YulAssignment",
"src": "10636:155:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "10787:3:12",
"nodeType": "YulIdentifier",
"src": "10787:3:12"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_6b2acff6a59a72cf3c2cb957b2f24312cc7f84355e26b391f6ab52fac2989f29_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "10643:142:12",
"nodeType": "YulIdentifier",
"src": "10643:142:12"
},
"nativeSrc": "10643:148:12",
"nodeType": "YulFunctionCall",
"src": "10643:148:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "10636:3:12",
"nodeType": "YulIdentifier",
"src": "10636:3:12"
}
]
},
{
"nativeSrc": "10797:155:12",
"nodeType": "YulAssignment",
"src": "10797:155:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "10948:3:12",
"nodeType": "YulIdentifier",
"src": "10948:3:12"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_5d122e7f752369396a481637eea3a06d7b98fd00c9de0f63349f9caf41596a5e_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "10804:142:12",
"nodeType": "YulIdentifier",
"src": "10804:142:12"
},
"nativeSrc": "10804:148:12",
"nodeType": "YulFunctionCall",
"src": "10804:148:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "10797:3:12",
"nodeType": "YulIdentifier",
"src": "10797:3:12"
}
]
},
{
"nativeSrc": "10958:155:12",
"nodeType": "YulAssignment",
"src": "10958:155:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "11109:3:12",
"nodeType": "YulIdentifier",
"src": "11109:3:12"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_dee71bd900939e5251fa52ed0e7fadcfe3990bd7a5ea546147c85d1b972c64b6_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "10965:142:12",
"nodeType": "YulIdentifier",
"src": "10965:142:12"
},
"nativeSrc": "10965:148:12",
"nodeType": "YulFunctionCall",
"src": "10965:148:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "10958:3:12",
"nodeType": "YulIdentifier",
"src": "10958:3:12"
}
]
},
{
"nativeSrc": "11119:99:12",
"nodeType": "YulAssignment",
"src": "11119:99:12",
"value": {
"arguments": [
{
"name": "value0",
"nativeSrc": "11205:6:12",
"nodeType": "YulIdentifier",
"src": "11205:6:12"
},
{
"name": "pos",
"nativeSrc": "11214:3:12",
"nodeType": "YulIdentifier",
"src": "11214:3:12"
}
],
"functionName": {
"name": "abi_encode_t_string_storage_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "11126:78:12",
"nodeType": "YulIdentifier",
"src": "11126:78:12"
},
"nativeSrc": "11126:92:12",
"nodeType": "YulFunctionCall",
"src": "11126:92:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "11119:3:12",
"nodeType": "YulIdentifier",
"src": "11119:3:12"
}
]
},
{
"nativeSrc": "11224:155:12",
"nodeType": "YulAssignment",
"src": "11224:155:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "11375:3:12",
"nodeType": "YulIdentifier",
"src": "11375:3:12"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_0f5701b76401cee5189505c11653cb5112557e23d04f3aecfe0d8d3fe1fe1646_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "11231:142:12",
"nodeType": "YulIdentifier",
"src": "11231:142:12"
},
"nativeSrc": "11231:148:12",
"nodeType": "YulFunctionCall",
"src": "11231:148:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "11224:3:12",
"nodeType": "YulIdentifier",
"src": "11224:3:12"
}
]
},
{
"nativeSrc": "11385:155:12",
"nodeType": "YulAssignment",
"src": "11385:155:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "11536:3:12",
"nodeType": "YulIdentifier",
"src": "11536:3:12"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_ab149d31dbf8c3ed1cc7ba15c88205185e426c492b6b350058945b7266ec7e76_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "11392:142:12",
"nodeType": "YulIdentifier",
"src": "11392:142:12"
},
"nativeSrc": "11392:148:12",
"nodeType": "YulFunctionCall",
"src": "11392:148:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "11385:3:12",
"nodeType": "YulIdentifier",
"src": "11385:3:12"
}
]
},
{
"nativeSrc": "11546:10:12",
"nodeType": "YulAssignment",
"src": "11546:10:12",
"value": {
"name": "pos",
"nativeSrc": "11553:3:12",
"nodeType": "YulIdentifier",
"src": "11553:3:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "11546:3:12",
"nodeType": "YulIdentifier",
"src": "11546:3:12"
}
]
}
]
},
"name": "abi_encode_tuple_packed_t_stringliteral_6b2acff6a59a72cf3c2cb957b2f24312cc7f84355e26b391f6ab52fac2989f29_t_stringliteral_5d122e7f752369396a481637eea3a06d7b98fd00c9de0f63349f9caf41596a5e_t_stringliteral_dee71bd900939e5251fa52ed0e7fadcfe3990bd7a5ea546147c85d1b972c64b6_t_string_storage_t_stringliteral_0f5701b76401cee5189505c11653cb5112557e23d04f3aecfe0d8d3fe1fe1646_t_stringliteral_ab149d31dbf8c3ed1cc7ba15c88205185e426c492b6b350058945b7266ec7e76__to_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr_t_string_memory_ptr__nonPadded_inplace_fromStack_reversed",
"nativeSrc": "9991:1567:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "10608:3:12",
"nodeType": "YulTypedName",
"src": "10608:3:12",
"type": ""
},
{
"name": "value0",
"nativeSrc": "10614:6:12",
"nodeType": "YulTypedName",
"src": "10614:6:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "10625:3:12",
"nodeType": "YulTypedName",
"src": "10625:3:12",
"type": ""
}
],
"src": "9991:1567:12"
},
{
"body": {
"nativeSrc": "11666:65:12",
"nodeType": "YulBlock",
"src": "11666:65:12",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "11684:6:12",
"nodeType": "YulIdentifier",
"src": "11684:6:12"
},
{
"kind": "number",
"nativeSrc": "11692:1:12",
"nodeType": "YulLiteral",
"src": "11692:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "11680:3:12",
"nodeType": "YulIdentifier",
"src": "11680:3:12"
},
"nativeSrc": "11680:14:12",
"nodeType": "YulFunctionCall",
"src": "11680:14:12"
},
{
"hexValue": "646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c",
"kind": "string",
"nativeSrc": "11696:31:12",
"nodeType": "YulLiteral",
"src": "11696:31:12",
"type": "",
"value": "data:application/json;base64,"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "11673:6:12",
"nodeType": "YulIdentifier",
"src": "11673:6:12"
},
"nativeSrc": "11673:55:12",
"nodeType": "YulFunctionCall",
"src": "11673:55:12"
},
"nativeSrc": "11673:55:12",
"nodeType": "YulExpressionStatement",
"src": "11673:55:12"
}
]
},
"name": "store_literal_in_memory_bccab2d885f86fda81bfd84dd4248d31f8073b473d187111d36536db073076fa",
"nativeSrc": "11560:171:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "11658:6:12",
"nodeType": "YulTypedName",
"src": "11658:6:12",
"type": ""
}
],
"src": "11560:171:12"
},
{
"body": {
"nativeSrc": "11897:222:12",
"nodeType": "YulBlock",
"src": "11897:222:12",
"statements": [
{
"nativeSrc": "11903:92:12",
"nodeType": "YulAssignment",
"src": "11903:92:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "11987:3:12",
"nodeType": "YulIdentifier",
"src": "11987:3:12"
},
{
"kind": "number",
"nativeSrc": "11992:2:12",
"nodeType": "YulLiteral",
"src": "11992:2:12",
"type": "",
"value": "29"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "11910:76:12",
"nodeType": "YulIdentifier",
"src": "11910:76:12"
},
"nativeSrc": "11910:85:12",
"nodeType": "YulFunctionCall",
"src": "11910:85:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "11903:3:12",
"nodeType": "YulIdentifier",
"src": "11903:3:12"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "12089:3:12",
"nodeType": "YulIdentifier",
"src": "12089:3:12"
}
],
"functionName": {
"name": "store_literal_in_memory_bccab2d885f86fda81bfd84dd4248d31f8073b473d187111d36536db073076fa",
"nativeSrc": "12000:88:12",
"nodeType": "YulIdentifier",
"src": "12000:88:12"
},
"nativeSrc": "12000:93:12",
"nodeType": "YulFunctionCall",
"src": "12000:93:12"
},
"nativeSrc": "12000:93:12",
"nodeType": "YulExpressionStatement",
"src": "12000:93:12"
},
{
"nativeSrc": "12098:19:12",
"nodeType": "YulAssignment",
"src": "12098:19:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "12109:3:12",
"nodeType": "YulIdentifier",
"src": "12109:3:12"
},
{
"kind": "number",
"nativeSrc": "12114:2:12",
"nodeType": "YulLiteral",
"src": "12114:2:12",
"type": "",
"value": "29"
}
],
"functionName": {
"name": "add",
"nativeSrc": "12105:3:12",
"nodeType": "YulIdentifier",
"src": "12105:3:12"
},
"nativeSrc": "12105:12:12",
"nodeType": "YulFunctionCall",
"src": "12105:12:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "12098:3:12",
"nodeType": "YulIdentifier",
"src": "12098:3:12"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_bccab2d885f86fda81bfd84dd4248d31f8073b473d187111d36536db073076fa_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "11733:386:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "11885:3:12",
"nodeType": "YulTypedName",
"src": "11885:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "11893:3:12",
"nodeType": "YulTypedName",
"src": "11893:3:12",
"type": ""
}
],
"src": "11733:386:12"
},
{
"body": {
"nativeSrc": "12183:156:12",
"nodeType": "YulBlock",
"src": "12183:156:12",
"statements": [
{
"nativeSrc": "12189:10:12",
"nodeType": "YulVariableDeclaration",
"src": "12189:10:12",
"value": {
"kind": "number",
"nativeSrc": "12198:1:12",
"nodeType": "YulLiteral",
"src": "12198:1:12",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nativeSrc": "12193:1:12",
"nodeType": "YulTypedName",
"src": "12193:1:12",
"type": ""
}
]
},
{
"body": {
"nativeSrc": "12250:55:12",
"nodeType": "YulBlock",
"src": "12250:55:12",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nativeSrc": "12271:3:12",
"nodeType": "YulIdentifier",
"src": "12271:3:12"
},
{
"name": "i",
"nativeSrc": "12276:1:12",
"nodeType": "YulIdentifier",
"src": "12276:1:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "12267:3:12",
"nodeType": "YulIdentifier",
"src": "12267:3:12"
},
"nativeSrc": "12267:11:12",
"nodeType": "YulFunctionCall",
"src": "12267:11:12"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nativeSrc": "12290:3:12",
"nodeType": "YulIdentifier",
"src": "12290:3:12"
},
{
"name": "i",
"nativeSrc": "12295:1:12",
"nodeType": "YulIdentifier",
"src": "12295:1:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "12286:3:12",
"nodeType": "YulIdentifier",
"src": "12286:3:12"
},
"nativeSrc": "12286:11:12",
"nodeType": "YulFunctionCall",
"src": "12286:11:12"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "12280:5:12",
"nodeType": "YulIdentifier",
"src": "12280:5:12"
},
"nativeSrc": "12280:18:12",
"nodeType": "YulFunctionCall",
"src": "12280:18:12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "12260:6:12",
"nodeType": "YulIdentifier",
"src": "12260:6:12"
},
"nativeSrc": "12260:39:12",
"nodeType": "YulFunctionCall",
"src": "12260:39:12"
},
"nativeSrc": "12260:39:12",
"nodeType": "YulExpressionStatement",
"src": "12260:39:12"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nativeSrc": "12215:1:12",
"nodeType": "YulIdentifier",
"src": "12215:1:12"
},
{
"name": "length",
"nativeSrc": "12218:6:12",
"nodeType": "YulIdentifier",
"src": "12218:6:12"
}
],
"functionName": {
"name": "lt",
"nativeSrc": "12212:2:12",
"nodeType": "YulIdentifier",
"src": "12212:2:12"
},
"nativeSrc": "12212:13:12",
"nodeType": "YulFunctionCall",
"src": "12212:13:12"
},
"nativeSrc": "12204:101:12",
"nodeType": "YulForLoop",
"post": {
"nativeSrc": "12226:19:12",
"nodeType": "YulBlock",
"src": "12226:19:12",
"statements": [
{
"nativeSrc": "12228:15:12",
"nodeType": "YulAssignment",
"src": "12228:15:12",
"value": {
"arguments": [
{
"name": "i",
"nativeSrc": "12237:1:12",
"nodeType": "YulIdentifier",
"src": "12237:1:12"
},
{
"kind": "number",
"nativeSrc": "12240:2:12",
"nodeType": "YulLiteral",
"src": "12240:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "12233:3:12",
"nodeType": "YulIdentifier",
"src": "12233:3:12"
},
"nativeSrc": "12233:10:12",
"nodeType": "YulFunctionCall",
"src": "12233:10:12"
},
"variableNames": [
{
"name": "i",
"nativeSrc": "12228:1:12",
"nodeType": "YulIdentifier",
"src": "12228:1:12"
}
]
}
]
},
"pre": {
"nativeSrc": "12208:3:12",
"nodeType": "YulBlock",
"src": "12208:3:12",
"statements": []
},
"src": "12204:101:12"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nativeSrc": "12321:3:12",
"nodeType": "YulIdentifier",
"src": "12321:3:12"
},
{
"name": "length",
"nativeSrc": "12326:6:12",
"nodeType": "YulIdentifier",
"src": "12326:6:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "12317:3:12",
"nodeType": "YulIdentifier",
"src": "12317:3:12"
},
"nativeSrc": "12317:16:12",
"nodeType": "YulFunctionCall",
"src": "12317:16:12"
},
{
"kind": "number",
"nativeSrc": "12335:1:12",
"nodeType": "YulLiteral",
"src": "12335:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "12310:6:12",
"nodeType": "YulIdentifier",
"src": "12310:6:12"
},
"nativeSrc": "12310:27:12",
"nodeType": "YulFunctionCall",
"src": "12310:27:12"
},
"nativeSrc": "12310:27:12",
"nodeType": "YulExpressionStatement",
"src": "12310:27:12"
}
]
},
"name": "copy_memory_to_memory_with_cleanup",
"nativeSrc": "12121:218:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nativeSrc": "12165:3:12",
"nodeType": "YulTypedName",
"src": "12165:3:12",
"type": ""
},
{
"name": "dst",
"nativeSrc": "12170:3:12",
"nodeType": "YulTypedName",
"src": "12170:3:12",
"type": ""
},
{
"name": "length",
"nativeSrc": "12175:6:12",
"nodeType": "YulTypedName",
"src": "12175:6:12",
"type": ""
}
],
"src": "12121:218:12"
},
{
"body": {
"nativeSrc": "12451:260:12",
"nodeType": "YulBlock",
"src": "12451:260:12",
"statements": [
{
"nativeSrc": "12457:53:12",
"nodeType": "YulVariableDeclaration",
"src": "12457:53:12",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "12504:5:12",
"nodeType": "YulIdentifier",
"src": "12504:5:12"
}
],
"functionName": {
"name": "array_length_t_string_memory_ptr",
"nativeSrc": "12471:32:12",
"nodeType": "YulIdentifier",
"src": "12471:32:12"
},
"nativeSrc": "12471:39:12",
"nodeType": "YulFunctionCall",
"src": "12471:39:12"
},
"variables": [
{
"name": "length",
"nativeSrc": "12461:6:12",
"nodeType": "YulTypedName",
"src": "12461:6:12",
"type": ""
}
]
},
{
"nativeSrc": "12515:96:12",
"nodeType": "YulAssignment",
"src": "12515:96:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "12599:3:12",
"nodeType": "YulIdentifier",
"src": "12599:3:12"
},
{
"name": "length",
"nativeSrc": "12604:6:12",
"nodeType": "YulIdentifier",
"src": "12604:6:12"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "12522:76:12",
"nodeType": "YulIdentifier",
"src": "12522:76:12"
},
"nativeSrc": "12522:89:12",
"nodeType": "YulFunctionCall",
"src": "12522:89:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "12515:3:12",
"nodeType": "YulIdentifier",
"src": "12515:3:12"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nativeSrc": "12655:5:12",
"nodeType": "YulIdentifier",
"src": "12655:5:12"
},
{
"kind": "number",
"nativeSrc": "12662:4:12",
"nodeType": "YulLiteral",
"src": "12662:4:12",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nativeSrc": "12651:3:12",
"nodeType": "YulIdentifier",
"src": "12651:3:12"
},
"nativeSrc": "12651:16:12",
"nodeType": "YulFunctionCall",
"src": "12651:16:12"
},
{
"name": "pos",
"nativeSrc": "12669:3:12",
"nodeType": "YulIdentifier",
"src": "12669:3:12"
},
{
"name": "length",
"nativeSrc": "12674:6:12",
"nodeType": "YulIdentifier",
"src": "12674:6:12"
}
],
"functionName": {
"name": "copy_memory_to_memory_with_cleanup",
"nativeSrc": "12616:34:12",
"nodeType": "YulIdentifier",
"src": "12616:34:12"
},
"nativeSrc": "12616:65:12",
"nodeType": "YulFunctionCall",
"src": "12616:65:12"
},
"nativeSrc": "12616:65:12",
"nodeType": "YulExpressionStatement",
"src": "12616:65:12"
},
{
"nativeSrc": "12686:23:12",
"nodeType": "YulAssignment",
"src": "12686:23:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "12697:3:12",
"nodeType": "YulIdentifier",
"src": "12697:3:12"
},
{
"name": "length",
"nativeSrc": "12702:6:12",
"nodeType": "YulIdentifier",
"src": "12702:6:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "12693:3:12",
"nodeType": "YulIdentifier",
"src": "12693:3:12"
},
"nativeSrc": "12693:16:12",
"nodeType": "YulFunctionCall",
"src": "12693:16:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "12686:3:12",
"nodeType": "YulIdentifier",
"src": "12686:3:12"
}
]
}
]
},
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "12341:370:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "12432:5:12",
"nodeType": "YulTypedName",
"src": "12432:5:12",
"type": ""
},
{
"name": "pos",
"nativeSrc": "12439:3:12",
"nodeType": "YulTypedName",
"src": "12439:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "12447:3:12",
"nodeType": "YulTypedName",
"src": "12447:3:12",
"type": ""
}
],
"src": "12341:370:12"
},
{
"body": {
"nativeSrc": "12950:288:12",
"nodeType": "YulBlock",
"src": "12950:288:12",
"statements": [
{
"nativeSrc": "12957:155:12",
"nodeType": "YulAssignment",
"src": "12957:155:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "13108:3:12",
"nodeType": "YulIdentifier",
"src": "13108:3:12"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_bccab2d885f86fda81bfd84dd4248d31f8073b473d187111d36536db073076fa_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "12964:142:12",
"nodeType": "YulIdentifier",
"src": "12964:142:12"
},
"nativeSrc": "12964:148:12",
"nodeType": "YulFunctionCall",
"src": "12964:148:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "12957:3:12",
"nodeType": "YulIdentifier",
"src": "12957:3:12"
}
]
},
{
"nativeSrc": "13118:102:12",
"nodeType": "YulAssignment",
"src": "13118:102:12",
"value": {
"arguments": [
{
"name": "value0",
"nativeSrc": "13207:6:12",
"nodeType": "YulIdentifier",
"src": "13207:6:12"
},
{
"name": "pos",
"nativeSrc": "13216:3:12",
"nodeType": "YulIdentifier",
"src": "13216:3:12"
}
],
"functionName": {
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_nonPadded_inplace_fromStack",
"nativeSrc": "13125:81:12",
"nodeType": "YulIdentifier",
"src": "13125:81:12"
},
"nativeSrc": "13125:95:12",
"nodeType": "YulFunctionCall",
"src": "13125:95:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "13118:3:12",
"nodeType": "YulIdentifier",
"src": "13118:3:12"
}
]
},
{
"nativeSrc": "13226:10:12",
"nodeType": "YulAssignment",
"src": "13226:10:12",
"value": {
"name": "pos",
"nativeSrc": "13233:3:12",
"nodeType": "YulIdentifier",
"src": "13233:3:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "13226:3:12",
"nodeType": "YulIdentifier",
"src": "13226:3:12"
}
]
}
]
},
"name": "abi_encode_tuple_packed_t_stringliteral_bccab2d885f86fda81bfd84dd4248d31f8073b473d187111d36536db073076fa_t_string_memory_ptr__to_t_string_memory_ptr_t_string_memory_ptr__nonPadded_inplace_fromStack_reversed",
"nativeSrc": "12713:525:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "12929:3:12",
"nodeType": "YulTypedName",
"src": "12929:3:12",
"type": ""
},
{
"name": "value0",
"nativeSrc": "12935:6:12",
"nodeType": "YulTypedName",
"src": "12935:6:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "12946:3:12",
"nodeType": "YulTypedName",
"src": "12946:3:12",
"type": ""
}
],
"src": "12713:525:12"
},
{
"body": {
"nativeSrc": "13268:136:12",
"nodeType": "YulBlock",
"src": "13268:136:12",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "13281:1:12",
"nodeType": "YulLiteral",
"src": "13281:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "13284:77:12",
"nodeType": "YulLiteral",
"src": "13284:77:12",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "13274:6:12",
"nodeType": "YulIdentifier",
"src": "13274:6:12"
},
"nativeSrc": "13274:88:12",
"nodeType": "YulFunctionCall",
"src": "13274:88:12"
},
"nativeSrc": "13274:88:12",
"nodeType": "YulExpressionStatement",
"src": "13274:88:12"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "13374:1:12",
"nodeType": "YulLiteral",
"src": "13374:1:12",
"type": "",
"value": "4"
},
{
"kind": "number",
"nativeSrc": "13377:4:12",
"nodeType": "YulLiteral",
"src": "13377:4:12",
"type": "",
"value": "0x11"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "13367:6:12",
"nodeType": "YulIdentifier",
"src": "13367:6:12"
},
"nativeSrc": "13367:15:12",
"nodeType": "YulFunctionCall",
"src": "13367:15:12"
},
"nativeSrc": "13367:15:12",
"nodeType": "YulExpressionStatement",
"src": "13367:15:12"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "13394:1:12",
"nodeType": "YulLiteral",
"src": "13394:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "13397:4:12",
"nodeType": "YulLiteral",
"src": "13397:4:12",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "13387:6:12",
"nodeType": "YulIdentifier",
"src": "13387:6:12"
},
"nativeSrc": "13387:15:12",
"nodeType": "YulFunctionCall",
"src": "13387:15:12"
},
"nativeSrc": "13387:15:12",
"nodeType": "YulExpressionStatement",
"src": "13387:15:12"
}
]
},
"name": "panic_error_0x11",
"nativeSrc": "13240:164:12",
"nodeType": "YulFunctionDefinition",
"src": "13240:164:12"
},
{
"body": {
"nativeSrc": "13450:127:12",
"nodeType": "YulBlock",
"src": "13450:127:12",
"statements": [
{
"nativeSrc": "13456:25:12",
"nodeType": "YulAssignment",
"src": "13456:25:12",
"value": {
"arguments": [
{
"name": "x",
"nativeSrc": "13479:1:12",
"nodeType": "YulIdentifier",
"src": "13479:1:12"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "13461:17:12",
"nodeType": "YulIdentifier",
"src": "13461:17:12"
},
"nativeSrc": "13461:20:12",
"nodeType": "YulFunctionCall",
"src": "13461:20:12"
},
"variableNames": [
{
"name": "x",
"nativeSrc": "13456:1:12",
"nodeType": "YulIdentifier",
"src": "13456:1:12"
}
]
},
{
"nativeSrc": "13486:25:12",
"nodeType": "YulAssignment",
"src": "13486:25:12",
"value": {
"arguments": [
{
"name": "y",
"nativeSrc": "13509:1:12",
"nodeType": "YulIdentifier",
"src": "13509:1:12"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "13491:17:12",
"nodeType": "YulIdentifier",
"src": "13491:17:12"
},
"nativeSrc": "13491:20:12",
"nodeType": "YulFunctionCall",
"src": "13491:20:12"
},
"variableNames": [
{
"name": "y",
"nativeSrc": "13486:1:12",
"nodeType": "YulIdentifier",
"src": "13486:1:12"
}
]
},
{
"nativeSrc": "13516:16:12",
"nodeType": "YulAssignment",
"src": "13516:16:12",
"value": {
"arguments": [
{
"name": "x",
"nativeSrc": "13527:1:12",
"nodeType": "YulIdentifier",
"src": "13527:1:12"
},
{
"name": "y",
"nativeSrc": "13530:1:12",
"nodeType": "YulIdentifier",
"src": "13530:1:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "13523:3:12",
"nodeType": "YulIdentifier",
"src": "13523:3:12"
},
"nativeSrc": "13523:9:12",
"nodeType": "YulFunctionCall",
"src": "13523:9:12"
},
"variableNames": [
{
"name": "sum",
"nativeSrc": "13516:3:12",
"nodeType": "YulIdentifier",
"src": "13516:3:12"
}
]
},
{
"body": {
"nativeSrc": "13552:22:12",
"nodeType": "YulBlock",
"src": "13552:22:12",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nativeSrc": "13554:16:12",
"nodeType": "YulIdentifier",
"src": "13554:16:12"
},
"nativeSrc": "13554:18:12",
"nodeType": "YulFunctionCall",
"src": "13554:18:12"
},
"nativeSrc": "13554:18:12",
"nodeType": "YulExpressionStatement",
"src": "13554:18:12"
}
]
},
"condition": {
"arguments": [
{
"name": "x",
"nativeSrc": "13544:1:12",
"nodeType": "YulIdentifier",
"src": "13544:1:12"
},
{
"name": "sum",
"nativeSrc": "13547:3:12",
"nodeType": "YulIdentifier",
"src": "13547:3:12"
}
],
"functionName": {
"name": "gt",
"nativeSrc": "13541:2:12",
"nodeType": "YulIdentifier",
"src": "13541:2:12"
},
"nativeSrc": "13541:10:12",
"nodeType": "YulFunctionCall",
"src": "13541:10:12"
},
"nativeSrc": "13538:36:12",
"nodeType": "YulIf",
"src": "13538:36:12"
}
]
},
"name": "checked_add_t_uint256",
"nativeSrc": "13406:171:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nativeSrc": "13437:1:12",
"nodeType": "YulTypedName",
"src": "13437:1:12",
"type": ""
},
{
"name": "y",
"nativeSrc": "13440:1:12",
"nodeType": "YulTypedName",
"src": "13440:1:12",
"type": ""
}
],
"returnVariables": [
{
"name": "sum",
"nativeSrc": "13446:3:12",
"nodeType": "YulTypedName",
"src": "13446:3:12",
"type": ""
}
],
"src": "13406:171:12"
},
{
"body": {
"nativeSrc": "13621:123:12",
"nodeType": "YulBlock",
"src": "13621:123:12",
"statements": [
{
"nativeSrc": "13627:25:12",
"nodeType": "YulAssignment",
"src": "13627:25:12",
"value": {
"arguments": [
{
"name": "x",
"nativeSrc": "13650:1:12",
"nodeType": "YulIdentifier",
"src": "13650:1:12"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "13632:17:12",
"nodeType": "YulIdentifier",
"src": "13632:17:12"
},
"nativeSrc": "13632:20:12",
"nodeType": "YulFunctionCall",
"src": "13632:20:12"
},
"variableNames": [
{
"name": "x",
"nativeSrc": "13627:1:12",
"nodeType": "YulIdentifier",
"src": "13627:1:12"
}
]
},
{
"nativeSrc": "13657:25:12",
"nodeType": "YulAssignment",
"src": "13657:25:12",
"value": {
"arguments": [
{
"name": "y",
"nativeSrc": "13680:1:12",
"nodeType": "YulIdentifier",
"src": "13680:1:12"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "13662:17:12",
"nodeType": "YulIdentifier",
"src": "13662:17:12"
},
"nativeSrc": "13662:20:12",
"nodeType": "YulFunctionCall",
"src": "13662:20:12"
},
"variableNames": [
{
"name": "y",
"nativeSrc": "13657:1:12",
"nodeType": "YulIdentifier",
"src": "13657:1:12"
}
]
},
{
"body": {
"nativeSrc": "13700:22:12",
"nodeType": "YulBlock",
"src": "13700:22:12",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x12",
"nativeSrc": "13702:16:12",
"nodeType": "YulIdentifier",
"src": "13702:16:12"
},
"nativeSrc": "13702:18:12",
"nodeType": "YulFunctionCall",
"src": "13702:18:12"
},
"nativeSrc": "13702:18:12",
"nodeType": "YulExpressionStatement",
"src": "13702:18:12"
}
]
},
"condition": {
"arguments": [
{
"name": "y",
"nativeSrc": "13697:1:12",
"nodeType": "YulIdentifier",
"src": "13697:1:12"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "13690:6:12",
"nodeType": "YulIdentifier",
"src": "13690:6:12"
},
"nativeSrc": "13690:9:12",
"nodeType": "YulFunctionCall",
"src": "13690:9:12"
},
"nativeSrc": "13687:35:12",
"nodeType": "YulIf",
"src": "13687:35:12"
},
{
"nativeSrc": "13728:14:12",
"nodeType": "YulAssignment",
"src": "13728:14:12",
"value": {
"arguments": [
{
"name": "x",
"nativeSrc": "13737:1:12",
"nodeType": "YulIdentifier",
"src": "13737:1:12"
},
{
"name": "y",
"nativeSrc": "13740:1:12",
"nodeType": "YulIdentifier",
"src": "13740:1:12"
}
],
"functionName": {
"name": "div",
"nativeSrc": "13733:3:12",
"nodeType": "YulIdentifier",
"src": "13733:3:12"
},
"nativeSrc": "13733:9:12",
"nodeType": "YulFunctionCall",
"src": "13733:9:12"
},
"variableNames": [
{
"name": "r",
"nativeSrc": "13728:1:12",
"nodeType": "YulIdentifier",
"src": "13728:1:12"
}
]
}
]
},
"name": "checked_div_t_uint256",
"nativeSrc": "13579:165:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nativeSrc": "13610:1:12",
"nodeType": "YulTypedName",
"src": "13610:1:12",
"type": ""
},
{
"name": "y",
"nativeSrc": "13613:1:12",
"nodeType": "YulTypedName",
"src": "13613:1:12",
"type": ""
}
],
"returnVariables": [
{
"name": "r",
"nativeSrc": "13619:1:12",
"nodeType": "YulTypedName",
"src": "13619:1:12",
"type": ""
}
],
"src": "13579:165:12"
},
{
"body": {
"nativeSrc": "13794:314:12",
"nodeType": "YulBlock",
"src": "13794:314:12",
"statements": [
{
"nativeSrc": "13800:25:12",
"nodeType": "YulAssignment",
"src": "13800:25:12",
"value": {
"arguments": [
{
"name": "x",
"nativeSrc": "13823:1:12",
"nodeType": "YulIdentifier",
"src": "13823:1:12"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "13805:17:12",
"nodeType": "YulIdentifier",
"src": "13805:17:12"
},
"nativeSrc": "13805:20:12",
"nodeType": "YulFunctionCall",
"src": "13805:20:12"
},
"variableNames": [
{
"name": "x",
"nativeSrc": "13800:1:12",
"nodeType": "YulIdentifier",
"src": "13800:1:12"
}
]
},
{
"nativeSrc": "13830:25:12",
"nodeType": "YulAssignment",
"src": "13830:25:12",
"value": {
"arguments": [
{
"name": "y",
"nativeSrc": "13853:1:12",
"nodeType": "YulIdentifier",
"src": "13853:1:12"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "13835:17:12",
"nodeType": "YulIdentifier",
"src": "13835:17:12"
},
"nativeSrc": "13835:20:12",
"nodeType": "YulFunctionCall",
"src": "13835:20:12"
},
"variableNames": [
{
"name": "y",
"nativeSrc": "13830:1:12",
"nodeType": "YulIdentifier",
"src": "13830:1:12"
}
]
},
{
"nativeSrc": "13860:28:12",
"nodeType": "YulVariableDeclaration",
"src": "13860:28:12",
"value": {
"arguments": [
{
"name": "x",
"nativeSrc": "13883:1:12",
"nodeType": "YulIdentifier",
"src": "13883:1:12"
},
{
"name": "y",
"nativeSrc": "13886:1:12",
"nodeType": "YulIdentifier",
"src": "13886:1:12"
}
],
"functionName": {
"name": "mul",
"nativeSrc": "13879:3:12",
"nodeType": "YulIdentifier",
"src": "13879:3:12"
},
"nativeSrc": "13879:9:12",
"nodeType": "YulFunctionCall",
"src": "13879:9:12"
},
"variables": [
{
"name": "product_raw",
"nativeSrc": "13864:11:12",
"nodeType": "YulTypedName",
"src": "13864:11:12",
"type": ""
}
]
},
{
"nativeSrc": "13893:41:12",
"nodeType": "YulAssignment",
"src": "13893:41:12",
"value": {
"arguments": [
{
"name": "product_raw",
"nativeSrc": "13922:11:12",
"nodeType": "YulIdentifier",
"src": "13922:11:12"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "13904:17:12",
"nodeType": "YulIdentifier",
"src": "13904:17:12"
},
"nativeSrc": "13904:30:12",
"nodeType": "YulFunctionCall",
"src": "13904:30:12"
},
"variableNames": [
{
"name": "product",
"nativeSrc": "13893:7:12",
"nodeType": "YulIdentifier",
"src": "13893:7:12"
}
]
},
{
"body": {
"nativeSrc": "14083:22:12",
"nodeType": "YulBlock",
"src": "14083:22:12",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x11",
"nativeSrc": "14085:16:12",
"nodeType": "YulIdentifier",
"src": "14085:16:12"
},
"nativeSrc": "14085:18:12",
"nodeType": "YulFunctionCall",
"src": "14085:18:12"
},
"nativeSrc": "14085:18:12",
"nodeType": "YulExpressionStatement",
"src": "14085:18:12"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "x",
"nativeSrc": "14028:1:12",
"nodeType": "YulIdentifier",
"src": "14028:1:12"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "14021:6:12",
"nodeType": "YulIdentifier",
"src": "14021:6:12"
},
"nativeSrc": "14021:9:12",
"nodeType": "YulFunctionCall",
"src": "14021:9:12"
},
{
"arguments": [
{
"name": "y",
"nativeSrc": "14047:1:12",
"nodeType": "YulIdentifier",
"src": "14047:1:12"
},
{
"arguments": [
{
"name": "product",
"nativeSrc": "14054:7:12",
"nodeType": "YulIdentifier",
"src": "14054:7:12"
},
{
"name": "x",
"nativeSrc": "14063:1:12",
"nodeType": "YulIdentifier",
"src": "14063:1:12"
}
],
"functionName": {
"name": "div",
"nativeSrc": "14050:3:12",
"nodeType": "YulIdentifier",
"src": "14050:3:12"
},
"nativeSrc": "14050:15:12",
"nodeType": "YulFunctionCall",
"src": "14050:15:12"
}
],
"functionName": {
"name": "eq",
"nativeSrc": "14044:2:12",
"nodeType": "YulIdentifier",
"src": "14044:2:12"
},
"nativeSrc": "14044:22:12",
"nodeType": "YulFunctionCall",
"src": "14044:22:12"
}
],
"functionName": {
"name": "or",
"nativeSrc": "14005:2:12",
"nodeType": "YulIdentifier",
"src": "14005:2:12"
},
"nativeSrc": "14005:71:12",
"nodeType": "YulFunctionCall",
"src": "14005:71:12"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "13989:6:12",
"nodeType": "YulIdentifier",
"src": "13989:6:12"
},
"nativeSrc": "13989:93:12",
"nodeType": "YulFunctionCall",
"src": "13989:93:12"
},
"nativeSrc": "13986:119:12",
"nodeType": "YulIf",
"src": "13986:119:12"
}
]
},
"name": "checked_mul_t_uint256",
"nativeSrc": "13746:362:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "x",
"nativeSrc": "13777:1:12",
"nodeType": "YulTypedName",
"src": "13777:1:12",
"type": ""
},
{
"name": "y",
"nativeSrc": "13780:1:12",
"nodeType": "YulTypedName",
"src": "13780:1:12",
"type": ""
}
],
"returnVariables": [
{
"name": "product",
"nativeSrc": "13786:7:12",
"nodeType": "YulTypedName",
"src": "13786:7:12",
"type": ""
}
],
"src": "13746:362:12"
},
{
"body": {
"nativeSrc": "14206:61:12",
"nodeType": "YulBlock",
"src": "14206:61:12",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "14219:3:12",
"nodeType": "YulIdentifier",
"src": "14219:3:12"
},
{
"name": "length",
"nativeSrc": "14224:6:12",
"nodeType": "YulIdentifier",
"src": "14224:6:12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "14212:6:12",
"nodeType": "YulIdentifier",
"src": "14212:6:12"
},
"nativeSrc": "14212:19:12",
"nodeType": "YulFunctionCall",
"src": "14212:19:12"
},
"nativeSrc": "14212:19:12",
"nodeType": "YulExpressionStatement",
"src": "14212:19:12"
},
{
"nativeSrc": "14236:29:12",
"nodeType": "YulAssignment",
"src": "14236:29:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "14255:3:12",
"nodeType": "YulIdentifier",
"src": "14255:3:12"
},
{
"kind": "number",
"nativeSrc": "14260:4:12",
"nodeType": "YulLiteral",
"src": "14260:4:12",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nativeSrc": "14251:3:12",
"nodeType": "YulIdentifier",
"src": "14251:3:12"
},
"nativeSrc": "14251:14:12",
"nodeType": "YulFunctionCall",
"src": "14251:14:12"
},
"variableNames": [
{
"name": "updated_pos",
"nativeSrc": "14236:11:12",
"nodeType": "YulIdentifier",
"src": "14236:11:12"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "14110:157:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "14178:3:12",
"nodeType": "YulTypedName",
"src": "14178:3:12",
"type": ""
},
{
"name": "length",
"nativeSrc": "14183:6:12",
"nodeType": "YulTypedName",
"src": "14183:6:12",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nativeSrc": "14194:11:12",
"nodeType": "YulTypedName",
"src": "14194:11:12",
"type": ""
}
],
"src": "14110:157:12"
},
{
"body": {
"nativeSrc": "14375:115:12",
"nodeType": "YulBlock",
"src": "14375:115:12",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "14393:6:12",
"nodeType": "YulIdentifier",
"src": "14393:6:12"
},
{
"kind": "number",
"nativeSrc": "14401:1:12",
"nodeType": "YulLiteral",
"src": "14401:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "14389:3:12",
"nodeType": "YulIdentifier",
"src": "14389:3:12"
},
"nativeSrc": "14389:14:12",
"nodeType": "YulFunctionCall",
"src": "14389:14:12"
},
{
"hexValue": "45524337323155524953746f726167653a2055524920736574206f66206e6f6e",
"kind": "string",
"nativeSrc": "14405:34:12",
"nodeType": "YulLiteral",
"src": "14405:34:12",
"type": "",
"value": "ERC721URIStorage: URI set of non"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "14382:6:12",
"nodeType": "YulIdentifier",
"src": "14382:6:12"
},
"nativeSrc": "14382:58:12",
"nodeType": "YulFunctionCall",
"src": "14382:58:12"
},
"nativeSrc": "14382:58:12",
"nodeType": "YulExpressionStatement",
"src": "14382:58:12"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "14457:6:12",
"nodeType": "YulIdentifier",
"src": "14457:6:12"
},
{
"kind": "number",
"nativeSrc": "14465:2:12",
"nodeType": "YulLiteral",
"src": "14465:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "14453:3:12",
"nodeType": "YulIdentifier",
"src": "14453:3:12"
},
"nativeSrc": "14453:15:12",
"nodeType": "YulFunctionCall",
"src": "14453:15:12"
},
{
"hexValue": "6578697374656e7420746f6b656e",
"kind": "string",
"nativeSrc": "14470:16:12",
"nodeType": "YulLiteral",
"src": "14470:16:12",
"type": "",
"value": "existent token"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "14446:6:12",
"nodeType": "YulIdentifier",
"src": "14446:6:12"
},
"nativeSrc": "14446:41:12",
"nodeType": "YulFunctionCall",
"src": "14446:41:12"
},
"nativeSrc": "14446:41:12",
"nodeType": "YulExpressionStatement",
"src": "14446:41:12"
}
]
},
"name": "store_literal_in_memory_7521de1f20ce4d7bb86b61090bad73a87315a1f4baff36cc352901c7777280c4",
"nativeSrc": "14269:221:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "14367:6:12",
"nodeType": "YulTypedName",
"src": "14367:6:12",
"type": ""
}
],
"src": "14269:221:12"
},
{
"body": {
"nativeSrc": "14638:204:12",
"nodeType": "YulBlock",
"src": "14638:204:12",
"statements": [
{
"nativeSrc": "14644:74:12",
"nodeType": "YulAssignment",
"src": "14644:74:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "14710:3:12",
"nodeType": "YulIdentifier",
"src": "14710:3:12"
},
{
"kind": "number",
"nativeSrc": "14715:2:12",
"nodeType": "YulLiteral",
"src": "14715:2:12",
"type": "",
"value": "46"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "14651:58:12",
"nodeType": "YulIdentifier",
"src": "14651:58:12"
},
"nativeSrc": "14651:67:12",
"nodeType": "YulFunctionCall",
"src": "14651:67:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "14644:3:12",
"nodeType": "YulIdentifier",
"src": "14644:3:12"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "14812:3:12",
"nodeType": "YulIdentifier",
"src": "14812:3:12"
}
],
"functionName": {
"name": "store_literal_in_memory_7521de1f20ce4d7bb86b61090bad73a87315a1f4baff36cc352901c7777280c4",
"nativeSrc": "14723:88:12",
"nodeType": "YulIdentifier",
"src": "14723:88:12"
},
"nativeSrc": "14723:93:12",
"nodeType": "YulFunctionCall",
"src": "14723:93:12"
},
"nativeSrc": "14723:93:12",
"nodeType": "YulExpressionStatement",
"src": "14723:93:12"
},
{
"nativeSrc": "14821:19:12",
"nodeType": "YulAssignment",
"src": "14821:19:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "14832:3:12",
"nodeType": "YulIdentifier",
"src": "14832:3:12"
},
{
"kind": "number",
"nativeSrc": "14837:2:12",
"nodeType": "YulLiteral",
"src": "14837:2:12",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nativeSrc": "14828:3:12",
"nodeType": "YulIdentifier",
"src": "14828:3:12"
},
"nativeSrc": "14828:12:12",
"nodeType": "YulFunctionCall",
"src": "14828:12:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "14821:3:12",
"nodeType": "YulIdentifier",
"src": "14821:3:12"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_7521de1f20ce4d7bb86b61090bad73a87315a1f4baff36cc352901c7777280c4_to_t_string_memory_ptr_fromStack",
"nativeSrc": "14492:350:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "14626:3:12",
"nodeType": "YulTypedName",
"src": "14626:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "14634:3:12",
"nodeType": "YulTypedName",
"src": "14634:3:12",
"type": ""
}
],
"src": "14492:350:12"
},
{
"body": {
"nativeSrc": "15015:232:12",
"nodeType": "YulBlock",
"src": "15015:232:12",
"statements": [
{
"nativeSrc": "15021:26:12",
"nodeType": "YulAssignment",
"src": "15021:26:12",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "15033:9:12",
"nodeType": "YulIdentifier",
"src": "15033:9:12"
},
{
"kind": "number",
"nativeSrc": "15044:2:12",
"nodeType": "YulLiteral",
"src": "15044:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "15029:3:12",
"nodeType": "YulIdentifier",
"src": "15029:3:12"
},
"nativeSrc": "15029:18:12",
"nodeType": "YulFunctionCall",
"src": "15029:18:12"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "15021:4:12",
"nodeType": "YulIdentifier",
"src": "15021:4:12"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "15064:9:12",
"nodeType": "YulIdentifier",
"src": "15064:9:12"
},
{
"kind": "number",
"nativeSrc": "15075:1:12",
"nodeType": "YulLiteral",
"src": "15075:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "15060:3:12",
"nodeType": "YulIdentifier",
"src": "15060:3:12"
},
"nativeSrc": "15060:17:12",
"nodeType": "YulFunctionCall",
"src": "15060:17:12"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "15083:4:12",
"nodeType": "YulIdentifier",
"src": "15083:4:12"
},
{
"name": "headStart",
"nativeSrc": "15089:9:12",
"nodeType": "YulIdentifier",
"src": "15089:9:12"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "15079:3:12",
"nodeType": "YulIdentifier",
"src": "15079:3:12"
},
"nativeSrc": "15079:20:12",
"nodeType": "YulFunctionCall",
"src": "15079:20:12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "15053:6:12",
"nodeType": "YulIdentifier",
"src": "15053:6:12"
},
"nativeSrc": "15053:47:12",
"nodeType": "YulFunctionCall",
"src": "15053:47:12"
},
"nativeSrc": "15053:47:12",
"nodeType": "YulExpressionStatement",
"src": "15053:47:12"
},
{
"nativeSrc": "15105:139:12",
"nodeType": "YulAssignment",
"src": "15105:139:12",
"value": {
"arguments": [
{
"name": "tail",
"nativeSrc": "15239:4:12",
"nodeType": "YulIdentifier",
"src": "15239:4:12"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_7521de1f20ce4d7bb86b61090bad73a87315a1f4baff36cc352901c7777280c4_to_t_string_memory_ptr_fromStack",
"nativeSrc": "15113:124:12",
"nodeType": "YulIdentifier",
"src": "15113:124:12"
},
"nativeSrc": "15113:131:12",
"nodeType": "YulFunctionCall",
"src": "15113:131:12"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "15105:4:12",
"nodeType": "YulIdentifier",
"src": "15105:4:12"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_7521de1f20ce4d7bb86b61090bad73a87315a1f4baff36cc352901c7777280c4__to_t_string_memory_ptr__fromStack_reversed",
"nativeSrc": "14844:403:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "14995:9:12",
"nodeType": "YulTypedName",
"src": "14995:9:12",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "15010:4:12",
"nodeType": "YulTypedName",
"src": "15010:4:12",
"type": ""
}
],
"src": "14844:403:12"
},
{
"body": {
"nativeSrc": "15355:119:12",
"nodeType": "YulBlock",
"src": "15355:119:12",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "15373:6:12",
"nodeType": "YulIdentifier",
"src": "15373:6:12"
},
{
"kind": "number",
"nativeSrc": "15381:1:12",
"nodeType": "YulLiteral",
"src": "15381:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "15369:3:12",
"nodeType": "YulIdentifier",
"src": "15369:3:12"
},
"nativeSrc": "15369:14:12",
"nodeType": "YulFunctionCall",
"src": "15369:14:12"
},
{
"hexValue": "4552433732313a207472616e7366657220746f206e6f6e204552433732315265",
"kind": "string",
"nativeSrc": "15385:34:12",
"nodeType": "YulLiteral",
"src": "15385:34:12",
"type": "",
"value": "ERC721: transfer to non ERC721Re"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "15362:6:12",
"nodeType": "YulIdentifier",
"src": "15362:6:12"
},
"nativeSrc": "15362:58:12",
"nodeType": "YulFunctionCall",
"src": "15362:58:12"
},
"nativeSrc": "15362:58:12",
"nodeType": "YulExpressionStatement",
"src": "15362:58:12"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "15437:6:12",
"nodeType": "YulIdentifier",
"src": "15437:6:12"
},
{
"kind": "number",
"nativeSrc": "15445:2:12",
"nodeType": "YulLiteral",
"src": "15445:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "15433:3:12",
"nodeType": "YulIdentifier",
"src": "15433:3:12"
},
"nativeSrc": "15433:15:12",
"nodeType": "YulFunctionCall",
"src": "15433:15:12"
},
{
"hexValue": "63656976657220696d706c656d656e746572",
"kind": "string",
"nativeSrc": "15450:20:12",
"nodeType": "YulLiteral",
"src": "15450:20:12",
"type": "",
"value": "ceiver implementer"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "15426:6:12",
"nodeType": "YulIdentifier",
"src": "15426:6:12"
},
"nativeSrc": "15426:45:12",
"nodeType": "YulFunctionCall",
"src": "15426:45:12"
},
"nativeSrc": "15426:45:12",
"nodeType": "YulExpressionStatement",
"src": "15426:45:12"
}
]
},
"name": "store_literal_in_memory_1e766a06da43a53d0f4c380e06e5a342e14d5af1bf8501996c844905530ca84e",
"nativeSrc": "15249:225:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "15347:6:12",
"nodeType": "YulTypedName",
"src": "15347:6:12",
"type": ""
}
],
"src": "15249:225:12"
},
{
"body": {
"nativeSrc": "15622:204:12",
"nodeType": "YulBlock",
"src": "15622:204:12",
"statements": [
{
"nativeSrc": "15628:74:12",
"nodeType": "YulAssignment",
"src": "15628:74:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "15694:3:12",
"nodeType": "YulIdentifier",
"src": "15694:3:12"
},
{
"kind": "number",
"nativeSrc": "15699:2:12",
"nodeType": "YulLiteral",
"src": "15699:2:12",
"type": "",
"value": "50"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "15635:58:12",
"nodeType": "YulIdentifier",
"src": "15635:58:12"
},
"nativeSrc": "15635:67:12",
"nodeType": "YulFunctionCall",
"src": "15635:67:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "15628:3:12",
"nodeType": "YulIdentifier",
"src": "15628:3:12"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "15796:3:12",
"nodeType": "YulIdentifier",
"src": "15796:3:12"
}
],
"functionName": {
"name": "store_literal_in_memory_1e766a06da43a53d0f4c380e06e5a342e14d5af1bf8501996c844905530ca84e",
"nativeSrc": "15707:88:12",
"nodeType": "YulIdentifier",
"src": "15707:88:12"
},
"nativeSrc": "15707:93:12",
"nodeType": "YulFunctionCall",
"src": "15707:93:12"
},
"nativeSrc": "15707:93:12",
"nodeType": "YulExpressionStatement",
"src": "15707:93:12"
},
{
"nativeSrc": "15805:19:12",
"nodeType": "YulAssignment",
"src": "15805:19:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "15816:3:12",
"nodeType": "YulIdentifier",
"src": "15816:3:12"
},
{
"kind": "number",
"nativeSrc": "15821:2:12",
"nodeType": "YulLiteral",
"src": "15821:2:12",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nativeSrc": "15812:3:12",
"nodeType": "YulIdentifier",
"src": "15812:3:12"
},
"nativeSrc": "15812:12:12",
"nodeType": "YulFunctionCall",
"src": "15812:12:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "15805:3:12",
"nodeType": "YulIdentifier",
"src": "15805:3:12"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_1e766a06da43a53d0f4c380e06e5a342e14d5af1bf8501996c844905530ca84e_to_t_string_memory_ptr_fromStack",
"nativeSrc": "15476:350:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "15610:3:12",
"nodeType": "YulTypedName",
"src": "15610:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "15618:3:12",
"nodeType": "YulTypedName",
"src": "15618:3:12",
"type": ""
}
],
"src": "15476:350:12"
},
{
"body": {
"nativeSrc": "15999:232:12",
"nodeType": "YulBlock",
"src": "15999:232:12",
"statements": [
{
"nativeSrc": "16005:26:12",
"nodeType": "YulAssignment",
"src": "16005:26:12",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "16017:9:12",
"nodeType": "YulIdentifier",
"src": "16017:9:12"
},
{
"kind": "number",
"nativeSrc": "16028:2:12",
"nodeType": "YulLiteral",
"src": "16028:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "16013:3:12",
"nodeType": "YulIdentifier",
"src": "16013:3:12"
},
"nativeSrc": "16013:18:12",
"nodeType": "YulFunctionCall",
"src": "16013:18:12"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "16005:4:12",
"nodeType": "YulIdentifier",
"src": "16005:4:12"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "16048:9:12",
"nodeType": "YulIdentifier",
"src": "16048:9:12"
},
{
"kind": "number",
"nativeSrc": "16059:1:12",
"nodeType": "YulLiteral",
"src": "16059:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "16044:3:12",
"nodeType": "YulIdentifier",
"src": "16044:3:12"
},
"nativeSrc": "16044:17:12",
"nodeType": "YulFunctionCall",
"src": "16044:17:12"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "16067:4:12",
"nodeType": "YulIdentifier",
"src": "16067:4:12"
},
{
"name": "headStart",
"nativeSrc": "16073:9:12",
"nodeType": "YulIdentifier",
"src": "16073:9:12"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "16063:3:12",
"nodeType": "YulIdentifier",
"src": "16063:3:12"
},
"nativeSrc": "16063:20:12",
"nodeType": "YulFunctionCall",
"src": "16063:20:12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "16037:6:12",
"nodeType": "YulIdentifier",
"src": "16037:6:12"
},
"nativeSrc": "16037:47:12",
"nodeType": "YulFunctionCall",
"src": "16037:47:12"
},
"nativeSrc": "16037:47:12",
"nodeType": "YulExpressionStatement",
"src": "16037:47:12"
},
{
"nativeSrc": "16089:139:12",
"nodeType": "YulAssignment",
"src": "16089:139:12",
"value": {
"arguments": [
{
"name": "tail",
"nativeSrc": "16223:4:12",
"nodeType": "YulIdentifier",
"src": "16223:4:12"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_1e766a06da43a53d0f4c380e06e5a342e14d5af1bf8501996c844905530ca84e_to_t_string_memory_ptr_fromStack",
"nativeSrc": "16097:124:12",
"nodeType": "YulIdentifier",
"src": "16097:124:12"
},
"nativeSrc": "16097:131:12",
"nodeType": "YulFunctionCall",
"src": "16097:131:12"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "16089:4:12",
"nodeType": "YulIdentifier",
"src": "16089:4:12"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_1e766a06da43a53d0f4c380e06e5a342e14d5af1bf8501996c844905530ca84e__to_t_string_memory_ptr__fromStack_reversed",
"nativeSrc": "15828:403:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "15979:9:12",
"nodeType": "YulTypedName",
"src": "15979:9:12",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "15994:4:12",
"nodeType": "YulTypedName",
"src": "15994:4:12",
"type": ""
}
],
"src": "15828:403:12"
},
{
"body": {
"nativeSrc": "16339:68:12",
"nodeType": "YulBlock",
"src": "16339:68:12",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "16357:6:12",
"nodeType": "YulIdentifier",
"src": "16357:6:12"
},
{
"kind": "number",
"nativeSrc": "16365:1:12",
"nodeType": "YulLiteral",
"src": "16365:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "16353:3:12",
"nodeType": "YulIdentifier",
"src": "16353:3:12"
},
"nativeSrc": "16353:14:12",
"nodeType": "YulFunctionCall",
"src": "16353:14:12"
},
{
"hexValue": "4552433732313a206d696e7420746f20746865207a65726f2061646472657373",
"kind": "string",
"nativeSrc": "16369:34:12",
"nodeType": "YulLiteral",
"src": "16369:34:12",
"type": "",
"value": "ERC721: mint to the zero address"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "16346:6:12",
"nodeType": "YulIdentifier",
"src": "16346:6:12"
},
"nativeSrc": "16346:58:12",
"nodeType": "YulFunctionCall",
"src": "16346:58:12"
},
"nativeSrc": "16346:58:12",
"nodeType": "YulExpressionStatement",
"src": "16346:58:12"
}
]
},
"name": "store_literal_in_memory_8a66f4bb6512ffbfcc3db9b42318eb65f26ac15163eaa9a1e5cfa7bee9d1c7c6",
"nativeSrc": "16233:174:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "16331:6:12",
"nodeType": "YulTypedName",
"src": "16331:6:12",
"type": ""
}
],
"src": "16233:174:12"
},
{
"body": {
"nativeSrc": "16555:204:12",
"nodeType": "YulBlock",
"src": "16555:204:12",
"statements": [
{
"nativeSrc": "16561:74:12",
"nodeType": "YulAssignment",
"src": "16561:74:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "16627:3:12",
"nodeType": "YulIdentifier",
"src": "16627:3:12"
},
{
"kind": "number",
"nativeSrc": "16632:2:12",
"nodeType": "YulLiteral",
"src": "16632:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "16568:58:12",
"nodeType": "YulIdentifier",
"src": "16568:58:12"
},
"nativeSrc": "16568:67:12",
"nodeType": "YulFunctionCall",
"src": "16568:67:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "16561:3:12",
"nodeType": "YulIdentifier",
"src": "16561:3:12"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "16729:3:12",
"nodeType": "YulIdentifier",
"src": "16729:3:12"
}
],
"functionName": {
"name": "store_literal_in_memory_8a66f4bb6512ffbfcc3db9b42318eb65f26ac15163eaa9a1e5cfa7bee9d1c7c6",
"nativeSrc": "16640:88:12",
"nodeType": "YulIdentifier",
"src": "16640:88:12"
},
"nativeSrc": "16640:93:12",
"nodeType": "YulFunctionCall",
"src": "16640:93:12"
},
"nativeSrc": "16640:93:12",
"nodeType": "YulExpressionStatement",
"src": "16640:93:12"
},
{
"nativeSrc": "16738:19:12",
"nodeType": "YulAssignment",
"src": "16738:19:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "16749:3:12",
"nodeType": "YulIdentifier",
"src": "16749:3:12"
},
{
"kind": "number",
"nativeSrc": "16754:2:12",
"nodeType": "YulLiteral",
"src": "16754:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "16745:3:12",
"nodeType": "YulIdentifier",
"src": "16745:3:12"
},
"nativeSrc": "16745:12:12",
"nodeType": "YulFunctionCall",
"src": "16745:12:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "16738:3:12",
"nodeType": "YulIdentifier",
"src": "16738:3:12"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_8a66f4bb6512ffbfcc3db9b42318eb65f26ac15163eaa9a1e5cfa7bee9d1c7c6_to_t_string_memory_ptr_fromStack",
"nativeSrc": "16409:350:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "16543:3:12",
"nodeType": "YulTypedName",
"src": "16543:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "16551:3:12",
"nodeType": "YulTypedName",
"src": "16551:3:12",
"type": ""
}
],
"src": "16409:350:12"
},
{
"body": {
"nativeSrc": "16932:232:12",
"nodeType": "YulBlock",
"src": "16932:232:12",
"statements": [
{
"nativeSrc": "16938:26:12",
"nodeType": "YulAssignment",
"src": "16938:26:12",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "16950:9:12",
"nodeType": "YulIdentifier",
"src": "16950:9:12"
},
{
"kind": "number",
"nativeSrc": "16961:2:12",
"nodeType": "YulLiteral",
"src": "16961:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "16946:3:12",
"nodeType": "YulIdentifier",
"src": "16946:3:12"
},
"nativeSrc": "16946:18:12",
"nodeType": "YulFunctionCall",
"src": "16946:18:12"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "16938:4:12",
"nodeType": "YulIdentifier",
"src": "16938:4:12"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "16981:9:12",
"nodeType": "YulIdentifier",
"src": "16981:9:12"
},
{
"kind": "number",
"nativeSrc": "16992:1:12",
"nodeType": "YulLiteral",
"src": "16992:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "16977:3:12",
"nodeType": "YulIdentifier",
"src": "16977:3:12"
},
"nativeSrc": "16977:17:12",
"nodeType": "YulFunctionCall",
"src": "16977:17:12"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "17000:4:12",
"nodeType": "YulIdentifier",
"src": "17000:4:12"
},
{
"name": "headStart",
"nativeSrc": "17006:9:12",
"nodeType": "YulIdentifier",
"src": "17006:9:12"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "16996:3:12",
"nodeType": "YulIdentifier",
"src": "16996:3:12"
},
"nativeSrc": "16996:20:12",
"nodeType": "YulFunctionCall",
"src": "16996:20:12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "16970:6:12",
"nodeType": "YulIdentifier",
"src": "16970:6:12"
},
"nativeSrc": "16970:47:12",
"nodeType": "YulFunctionCall",
"src": "16970:47:12"
},
"nativeSrc": "16970:47:12",
"nodeType": "YulExpressionStatement",
"src": "16970:47:12"
},
{
"nativeSrc": "17022:139:12",
"nodeType": "YulAssignment",
"src": "17022:139:12",
"value": {
"arguments": [
{
"name": "tail",
"nativeSrc": "17156:4:12",
"nodeType": "YulIdentifier",
"src": "17156:4:12"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_8a66f4bb6512ffbfcc3db9b42318eb65f26ac15163eaa9a1e5cfa7bee9d1c7c6_to_t_string_memory_ptr_fromStack",
"nativeSrc": "17030:124:12",
"nodeType": "YulIdentifier",
"src": "17030:124:12"
},
"nativeSrc": "17030:131:12",
"nodeType": "YulFunctionCall",
"src": "17030:131:12"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "17022:4:12",
"nodeType": "YulIdentifier",
"src": "17022:4:12"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_8a66f4bb6512ffbfcc3db9b42318eb65f26ac15163eaa9a1e5cfa7bee9d1c7c6__to_t_string_memory_ptr__fromStack_reversed",
"nativeSrc": "16761:403:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "16912:9:12",
"nodeType": "YulTypedName",
"src": "16912:9:12",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "16927:4:12",
"nodeType": "YulTypedName",
"src": "16927:4:12",
"type": ""
}
],
"src": "16761:403:12"
},
{
"body": {
"nativeSrc": "17272:64:12",
"nodeType": "YulBlock",
"src": "17272:64:12",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "memPtr",
"nativeSrc": "17290:6:12",
"nodeType": "YulIdentifier",
"src": "17290:6:12"
},
{
"kind": "number",
"nativeSrc": "17298:1:12",
"nodeType": "YulLiteral",
"src": "17298:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "17286:3:12",
"nodeType": "YulIdentifier",
"src": "17286:3:12"
},
"nativeSrc": "17286:14:12",
"nodeType": "YulFunctionCall",
"src": "17286:14:12"
},
{
"hexValue": "4552433732313a20746f6b656e20616c7265616479206d696e746564",
"kind": "string",
"nativeSrc": "17302:30:12",
"nodeType": "YulLiteral",
"src": "17302:30:12",
"type": "",
"value": "ERC721: token already minted"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "17279:6:12",
"nodeType": "YulIdentifier",
"src": "17279:6:12"
},
"nativeSrc": "17279:54:12",
"nodeType": "YulFunctionCall",
"src": "17279:54:12"
},
"nativeSrc": "17279:54:12",
"nodeType": "YulExpressionStatement",
"src": "17279:54:12"
}
]
},
"name": "store_literal_in_memory_2a63ce106ef95058ed21fd07c42a10f11dc5c32ac13a4e847923f7759f635d57",
"nativeSrc": "17166:170:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nativeSrc": "17264:6:12",
"nodeType": "YulTypedName",
"src": "17264:6:12",
"type": ""
}
],
"src": "17166:170:12"
},
{
"body": {
"nativeSrc": "17484:204:12",
"nodeType": "YulBlock",
"src": "17484:204:12",
"statements": [
{
"nativeSrc": "17490:74:12",
"nodeType": "YulAssignment",
"src": "17490:74:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "17556:3:12",
"nodeType": "YulIdentifier",
"src": "17556:3:12"
},
{
"kind": "number",
"nativeSrc": "17561:2:12",
"nodeType": "YulLiteral",
"src": "17561:2:12",
"type": "",
"value": "28"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nativeSrc": "17497:58:12",
"nodeType": "YulIdentifier",
"src": "17497:58:12"
},
"nativeSrc": "17497:67:12",
"nodeType": "YulFunctionCall",
"src": "17497:67:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "17490:3:12",
"nodeType": "YulIdentifier",
"src": "17490:3:12"
}
]
},
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "17658:3:12",
"nodeType": "YulIdentifier",
"src": "17658:3:12"
}
],
"functionName": {
"name": "store_literal_in_memory_2a63ce106ef95058ed21fd07c42a10f11dc5c32ac13a4e847923f7759f635d57",
"nativeSrc": "17569:88:12",
"nodeType": "YulIdentifier",
"src": "17569:88:12"
},
"nativeSrc": "17569:93:12",
"nodeType": "YulFunctionCall",
"src": "17569:93:12"
},
"nativeSrc": "17569:93:12",
"nodeType": "YulExpressionStatement",
"src": "17569:93:12"
},
{
"nativeSrc": "17667:19:12",
"nodeType": "YulAssignment",
"src": "17667:19:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "17678:3:12",
"nodeType": "YulIdentifier",
"src": "17678:3:12"
},
{
"kind": "number",
"nativeSrc": "17683:2:12",
"nodeType": "YulLiteral",
"src": "17683:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "17674:3:12",
"nodeType": "YulIdentifier",
"src": "17674:3:12"
},
"nativeSrc": "17674:12:12",
"nodeType": "YulFunctionCall",
"src": "17674:12:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "17667:3:12",
"nodeType": "YulIdentifier",
"src": "17667:3:12"
}
]
}
]
},
"name": "abi_encode_t_stringliteral_2a63ce106ef95058ed21fd07c42a10f11dc5c32ac13a4e847923f7759f635d57_to_t_string_memory_ptr_fromStack",
"nativeSrc": "17338:350:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "17472:3:12",
"nodeType": "YulTypedName",
"src": "17472:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "17480:3:12",
"nodeType": "YulTypedName",
"src": "17480:3:12",
"type": ""
}
],
"src": "17338:350:12"
},
{
"body": {
"nativeSrc": "17861:232:12",
"nodeType": "YulBlock",
"src": "17861:232:12",
"statements": [
{
"nativeSrc": "17867:26:12",
"nodeType": "YulAssignment",
"src": "17867:26:12",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "17879:9:12",
"nodeType": "YulIdentifier",
"src": "17879:9:12"
},
{
"kind": "number",
"nativeSrc": "17890:2:12",
"nodeType": "YulLiteral",
"src": "17890:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "17875:3:12",
"nodeType": "YulIdentifier",
"src": "17875:3:12"
},
"nativeSrc": "17875:18:12",
"nodeType": "YulFunctionCall",
"src": "17875:18:12"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "17867:4:12",
"nodeType": "YulIdentifier",
"src": "17867:4:12"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "17910:9:12",
"nodeType": "YulIdentifier",
"src": "17910:9:12"
},
{
"kind": "number",
"nativeSrc": "17921:1:12",
"nodeType": "YulLiteral",
"src": "17921:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "17906:3:12",
"nodeType": "YulIdentifier",
"src": "17906:3:12"
},
"nativeSrc": "17906:17:12",
"nodeType": "YulFunctionCall",
"src": "17906:17:12"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "17929:4:12",
"nodeType": "YulIdentifier",
"src": "17929:4:12"
},
{
"name": "headStart",
"nativeSrc": "17935:9:12",
"nodeType": "YulIdentifier",
"src": "17935:9:12"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "17925:3:12",
"nodeType": "YulIdentifier",
"src": "17925:3:12"
},
"nativeSrc": "17925:20:12",
"nodeType": "YulFunctionCall",
"src": "17925:20:12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "17899:6:12",
"nodeType": "YulIdentifier",
"src": "17899:6:12"
},
"nativeSrc": "17899:47:12",
"nodeType": "YulFunctionCall",
"src": "17899:47:12"
},
"nativeSrc": "17899:47:12",
"nodeType": "YulExpressionStatement",
"src": "17899:47:12"
},
{
"nativeSrc": "17951:139:12",
"nodeType": "YulAssignment",
"src": "17951:139:12",
"value": {
"arguments": [
{
"name": "tail",
"nativeSrc": "18085:4:12",
"nodeType": "YulIdentifier",
"src": "18085:4:12"
}
],
"functionName": {
"name": "abi_encode_t_stringliteral_2a63ce106ef95058ed21fd07c42a10f11dc5c32ac13a4e847923f7759f635d57_to_t_string_memory_ptr_fromStack",
"nativeSrc": "17959:124:12",
"nodeType": "YulIdentifier",
"src": "17959:124:12"
},
"nativeSrc": "17959:131:12",
"nodeType": "YulFunctionCall",
"src": "17959:131:12"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "17951:4:12",
"nodeType": "YulIdentifier",
"src": "17951:4:12"
}
]
}
]
},
"name": "abi_encode_tuple_t_stringliteral_2a63ce106ef95058ed21fd07c42a10f11dc5c32ac13a4e847923f7759f635d57__to_t_string_memory_ptr__fromStack_reversed",
"nativeSrc": "17690:403:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "17841:9:12",
"nodeType": "YulTypedName",
"src": "17841:9:12",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "17856:4:12",
"nodeType": "YulTypedName",
"src": "17856:4:12",
"type": ""
}
],
"src": "17690:403:12"
},
{
"body": {
"nativeSrc": "18140:73:12",
"nodeType": "YulBlock",
"src": "18140:73:12",
"statements": [
{
"nativeSrc": "18146:65:12",
"nodeType": "YulAssignment",
"src": "18146:65:12",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "18161:5:12",
"nodeType": "YulIdentifier",
"src": "18161:5:12"
},
{
"kind": "number",
"nativeSrc": "18168:42:12",
"nodeType": "YulLiteral",
"src": "18168:42:12",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nativeSrc": "18157:3:12",
"nodeType": "YulIdentifier",
"src": "18157:3:12"
},
"nativeSrc": "18157:54:12",
"nodeType": "YulFunctionCall",
"src": "18157:54:12"
},
"variableNames": [
{
"name": "cleaned",
"nativeSrc": "18146:7:12",
"nodeType": "YulIdentifier",
"src": "18146:7:12"
}
]
}
]
},
"name": "cleanup_t_uint160",
"nativeSrc": "18095:118:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "18122:5:12",
"nodeType": "YulTypedName",
"src": "18122:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nativeSrc": "18132:7:12",
"nodeType": "YulTypedName",
"src": "18132:7:12",
"type": ""
}
],
"src": "18095:118:12"
},
{
"body": {
"nativeSrc": "18260:43:12",
"nodeType": "YulBlock",
"src": "18260:43:12",
"statements": [
{
"nativeSrc": "18266:35:12",
"nodeType": "YulAssignment",
"src": "18266:35:12",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "18295:5:12",
"nodeType": "YulIdentifier",
"src": "18295:5:12"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nativeSrc": "18277:17:12",
"nodeType": "YulIdentifier",
"src": "18277:17:12"
},
"nativeSrc": "18277:24:12",
"nodeType": "YulFunctionCall",
"src": "18277:24:12"
},
"variableNames": [
{
"name": "cleaned",
"nativeSrc": "18266:7:12",
"nodeType": "YulIdentifier",
"src": "18266:7:12"
}
]
}
]
},
"name": "cleanup_t_address",
"nativeSrc": "18215:88:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "18242:5:12",
"nodeType": "YulTypedName",
"src": "18242:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nativeSrc": "18252:7:12",
"nodeType": "YulTypedName",
"src": "18252:7:12",
"type": ""
}
],
"src": "18215:88:12"
},
{
"body": {
"nativeSrc": "18370:45:12",
"nodeType": "YulBlock",
"src": "18370:45:12",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "18383:3:12",
"nodeType": "YulIdentifier",
"src": "18383:3:12"
},
{
"arguments": [
{
"name": "value",
"nativeSrc": "18406:5:12",
"nodeType": "YulIdentifier",
"src": "18406:5:12"
}
],
"functionName": {
"name": "cleanup_t_address",
"nativeSrc": "18388:17:12",
"nodeType": "YulIdentifier",
"src": "18388:17:12"
},
"nativeSrc": "18388:24:12",
"nodeType": "YulFunctionCall",
"src": "18388:24:12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "18376:6:12",
"nodeType": "YulIdentifier",
"src": "18376:6:12"
},
"nativeSrc": "18376:37:12",
"nodeType": "YulFunctionCall",
"src": "18376:37:12"
},
"nativeSrc": "18376:37:12",
"nodeType": "YulExpressionStatement",
"src": "18376:37:12"
}
]
},
"name": "abi_encode_t_address_to_t_address_fromStack",
"nativeSrc": "18305:110:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "18358:5:12",
"nodeType": "YulTypedName",
"src": "18358:5:12",
"type": ""
},
{
"name": "pos",
"nativeSrc": "18365:3:12",
"nodeType": "YulTypedName",
"src": "18365:3:12",
"type": ""
}
],
"src": "18305:110:12"
},
{
"body": {
"nativeSrc": "18482:45:12",
"nodeType": "YulBlock",
"src": "18482:45:12",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "18495:3:12",
"nodeType": "YulIdentifier",
"src": "18495:3:12"
},
{
"arguments": [
{
"name": "value",
"nativeSrc": "18518:5:12",
"nodeType": "YulIdentifier",
"src": "18518:5:12"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nativeSrc": "18500:17:12",
"nodeType": "YulIdentifier",
"src": "18500:17:12"
},
"nativeSrc": "18500:24:12",
"nodeType": "YulFunctionCall",
"src": "18500:24:12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "18488:6:12",
"nodeType": "YulIdentifier",
"src": "18488:6:12"
},
"nativeSrc": "18488:37:12",
"nodeType": "YulFunctionCall",
"src": "18488:37:12"
},
"nativeSrc": "18488:37:12",
"nodeType": "YulExpressionStatement",
"src": "18488:37:12"
}
]
},
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nativeSrc": "18417:110:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "18470:5:12",
"nodeType": "YulTypedName",
"src": "18470:5:12",
"type": ""
},
{
"name": "pos",
"nativeSrc": "18477:3:12",
"nodeType": "YulTypedName",
"src": "18477:3:12",
"type": ""
}
],
"src": "18417:110:12"
},
{
"body": {
"nativeSrc": "18587:32:12",
"nodeType": "YulBlock",
"src": "18587:32:12",
"statements": [
{
"nativeSrc": "18594:22:12",
"nodeType": "YulAssignment",
"src": "18594:22:12",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "18610:5:12",
"nodeType": "YulIdentifier",
"src": "18610:5:12"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "18604:5:12",
"nodeType": "YulIdentifier",
"src": "18604:5:12"
},
"nativeSrc": "18604:12:12",
"nodeType": "YulFunctionCall",
"src": "18604:12:12"
},
"variableNames": [
{
"name": "length",
"nativeSrc": "18594:6:12",
"nodeType": "YulIdentifier",
"src": "18594:6:12"
}
]
}
]
},
"name": "array_length_t_bytes_memory_ptr",
"nativeSrc": "18529:90:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "18570:5:12",
"nodeType": "YulTypedName",
"src": "18570:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nativeSrc": "18580:6:12",
"nodeType": "YulTypedName",
"src": "18580:6:12",
"type": ""
}
],
"src": "18529:90:12"
},
{
"body": {
"nativeSrc": "18716:61:12",
"nodeType": "YulBlock",
"src": "18716:61:12",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nativeSrc": "18729:3:12",
"nodeType": "YulIdentifier",
"src": "18729:3:12"
},
{
"name": "length",
"nativeSrc": "18734:6:12",
"nodeType": "YulIdentifier",
"src": "18734:6:12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "18722:6:12",
"nodeType": "YulIdentifier",
"src": "18722:6:12"
},
"nativeSrc": "18722:19:12",
"nodeType": "YulFunctionCall",
"src": "18722:19:12"
},
"nativeSrc": "18722:19:12",
"nodeType": "YulExpressionStatement",
"src": "18722:19:12"
},
{
"nativeSrc": "18746:29:12",
"nodeType": "YulAssignment",
"src": "18746:29:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "18765:3:12",
"nodeType": "YulIdentifier",
"src": "18765:3:12"
},
{
"kind": "number",
"nativeSrc": "18770:4:12",
"nodeType": "YulLiteral",
"src": "18770:4:12",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nativeSrc": "18761:3:12",
"nodeType": "YulIdentifier",
"src": "18761:3:12"
},
"nativeSrc": "18761:14:12",
"nodeType": "YulFunctionCall",
"src": "18761:14:12"
},
"variableNames": [
{
"name": "updated_pos",
"nativeSrc": "18746:11:12",
"nodeType": "YulIdentifier",
"src": "18746:11:12"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_bytes_memory_ptr_fromStack",
"nativeSrc": "18621:156:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nativeSrc": "18688:3:12",
"nodeType": "YulTypedName",
"src": "18688:3:12",
"type": ""
},
{
"name": "length",
"nativeSrc": "18693:6:12",
"nodeType": "YulTypedName",
"src": "18693:6:12",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nativeSrc": "18704:11:12",
"nodeType": "YulTypedName",
"src": "18704:11:12",
"type": ""
}
],
"src": "18621:156:12"
},
{
"body": {
"nativeSrc": "18827:46:12",
"nodeType": "YulBlock",
"src": "18827:46:12",
"statements": [
{
"nativeSrc": "18833:38:12",
"nodeType": "YulAssignment",
"src": "18833:38:12",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nativeSrc": "18851:5:12",
"nodeType": "YulIdentifier",
"src": "18851:5:12"
},
{
"kind": "number",
"nativeSrc": "18858:2:12",
"nodeType": "YulLiteral",
"src": "18858:2:12",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nativeSrc": "18847:3:12",
"nodeType": "YulIdentifier",
"src": "18847:3:12"
},
"nativeSrc": "18847:14:12",
"nodeType": "YulFunctionCall",
"src": "18847:14:12"
},
{
"arguments": [
{
"kind": "number",
"nativeSrc": "18867:2:12",
"nodeType": "YulLiteral",
"src": "18867:2:12",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nativeSrc": "18863:3:12",
"nodeType": "YulIdentifier",
"src": "18863:3:12"
},
"nativeSrc": "18863:7:12",
"nodeType": "YulFunctionCall",
"src": "18863:7:12"
}
],
"functionName": {
"name": "and",
"nativeSrc": "18843:3:12",
"nodeType": "YulIdentifier",
"src": "18843:3:12"
},
"nativeSrc": "18843:28:12",
"nodeType": "YulFunctionCall",
"src": "18843:28:12"
},
"variableNames": [
{
"name": "result",
"nativeSrc": "18833:6:12",
"nodeType": "YulIdentifier",
"src": "18833:6:12"
}
]
}
]
},
"name": "round_up_to_mul_of_32",
"nativeSrc": "18779:94:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "18810:5:12",
"nodeType": "YulTypedName",
"src": "18810:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nativeSrc": "18820:6:12",
"nodeType": "YulTypedName",
"src": "18820:6:12",
"type": ""
}
],
"src": "18779:94:12"
},
{
"body": {
"nativeSrc": "18965:263:12",
"nodeType": "YulBlock",
"src": "18965:263:12",
"statements": [
{
"nativeSrc": "18971:52:12",
"nodeType": "YulVariableDeclaration",
"src": "18971:52:12",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "19017:5:12",
"nodeType": "YulIdentifier",
"src": "19017:5:12"
}
],
"functionName": {
"name": "array_length_t_bytes_memory_ptr",
"nativeSrc": "18985:31:12",
"nodeType": "YulIdentifier",
"src": "18985:31:12"
},
"nativeSrc": "18985:38:12",
"nodeType": "YulFunctionCall",
"src": "18985:38:12"
},
"variables": [
{
"name": "length",
"nativeSrc": "18975:6:12",
"nodeType": "YulTypedName",
"src": "18975:6:12",
"type": ""
}
]
},
{
"nativeSrc": "19028:77:12",
"nodeType": "YulAssignment",
"src": "19028:77:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "19093:3:12",
"nodeType": "YulIdentifier",
"src": "19093:3:12"
},
{
"name": "length",
"nativeSrc": "19098:6:12",
"nodeType": "YulIdentifier",
"src": "19098:6:12"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_bytes_memory_ptr_fromStack",
"nativeSrc": "19035:57:12",
"nodeType": "YulIdentifier",
"src": "19035:57:12"
},
"nativeSrc": "19035:70:12",
"nodeType": "YulFunctionCall",
"src": "19035:70:12"
},
"variableNames": [
{
"name": "pos",
"nativeSrc": "19028:3:12",
"nodeType": "YulIdentifier",
"src": "19028:3:12"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nativeSrc": "19149:5:12",
"nodeType": "YulIdentifier",
"src": "19149:5:12"
},
{
"kind": "number",
"nativeSrc": "19156:4:12",
"nodeType": "YulLiteral",
"src": "19156:4:12",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nativeSrc": "19145:3:12",
"nodeType": "YulIdentifier",
"src": "19145:3:12"
},
"nativeSrc": "19145:16:12",
"nodeType": "YulFunctionCall",
"src": "19145:16:12"
},
{
"name": "pos",
"nativeSrc": "19163:3:12",
"nodeType": "YulIdentifier",
"src": "19163:3:12"
},
{
"name": "length",
"nativeSrc": "19168:6:12",
"nodeType": "YulIdentifier",
"src": "19168:6:12"
}
],
"functionName": {
"name": "copy_memory_to_memory_with_cleanup",
"nativeSrc": "19110:34:12",
"nodeType": "YulIdentifier",
"src": "19110:34:12"
},
"nativeSrc": "19110:65:12",
"nodeType": "YulFunctionCall",
"src": "19110:65:12"
},
"nativeSrc": "19110:65:12",
"nodeType": "YulExpressionStatement",
"src": "19110:65:12"
},
{
"nativeSrc": "19180:46:12",
"nodeType": "YulAssignment",
"src": "19180:46:12",
"value": {
"arguments": [
{
"name": "pos",
"nativeSrc": "19191:3:12",
"nodeType": "YulIdentifier",
"src": "19191:3:12"
},
{
"arguments": [
{
"name": "length",
"nativeSrc": "19218:6:12",
"nodeType": "YulIdentifier",
"src": "19218:6:12"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nativeSrc": "19196:21:12",
"nodeType": "YulIdentifier",
"src": "19196:21:12"
},
"nativeSrc": "19196:29:12",
"nodeType": "YulFunctionCall",
"src": "19196:29:12"
}
],
"functionName": {
"name": "add",
"nativeSrc": "19187:3:12",
"nodeType": "YulIdentifier",
"src": "19187:3:12"
},
"nativeSrc": "19187:39:12",
"nodeType": "YulFunctionCall",
"src": "19187:39:12"
},
"variableNames": [
{
"name": "end",
"nativeSrc": "19180:3:12",
"nodeType": "YulIdentifier",
"src": "19180:3:12"
}
]
}
]
},
"name": "abi_encode_t_bytes_memory_ptr_to_t_bytes_memory_ptr_fromStack",
"nativeSrc": "18875:353:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "18946:5:12",
"nodeType": "YulTypedName",
"src": "18946:5:12",
"type": ""
},
{
"name": "pos",
"nativeSrc": "18953:3:12",
"nodeType": "YulTypedName",
"src": "18953:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nativeSrc": "18961:3:12",
"nodeType": "YulTypedName",
"src": "18961:3:12",
"type": ""
}
],
"src": "18875:353:12"
},
{
"body": {
"nativeSrc": "19430:412:12",
"nodeType": "YulBlock",
"src": "19430:412:12",
"statements": [
{
"nativeSrc": "19436:27:12",
"nodeType": "YulAssignment",
"src": "19436:27:12",
"value": {
"arguments": [
{
"name": "headStart",
"nativeSrc": "19448:9:12",
"nodeType": "YulIdentifier",
"src": "19448:9:12"
},
{
"kind": "number",
"nativeSrc": "19459:3:12",
"nodeType": "YulLiteral",
"src": "19459:3:12",
"type": "",
"value": "128"
}
],
"functionName": {
"name": "add",
"nativeSrc": "19444:3:12",
"nodeType": "YulIdentifier",
"src": "19444:3:12"
},
"nativeSrc": "19444:19:12",
"nodeType": "YulFunctionCall",
"src": "19444:19:12"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "19436:4:12",
"nodeType": "YulIdentifier",
"src": "19436:4:12"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nativeSrc": "19513:6:12",
"nodeType": "YulIdentifier",
"src": "19513:6:12"
},
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "19526:9:12",
"nodeType": "YulIdentifier",
"src": "19526:9:12"
},
{
"kind": "number",
"nativeSrc": "19537:1:12",
"nodeType": "YulLiteral",
"src": "19537:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nativeSrc": "19522:3:12",
"nodeType": "YulIdentifier",
"src": "19522:3:12"
},
"nativeSrc": "19522:17:12",
"nodeType": "YulFunctionCall",
"src": "19522:17:12"
}
],
"functionName": {
"name": "abi_encode_t_address_to_t_address_fromStack",
"nativeSrc": "19469:43:12",
"nodeType": "YulIdentifier",
"src": "19469:43:12"
},
"nativeSrc": "19469:71:12",
"nodeType": "YulFunctionCall",
"src": "19469:71:12"
},
"nativeSrc": "19469:71:12",
"nodeType": "YulExpressionStatement",
"src": "19469:71:12"
},
{
"expression": {
"arguments": [
{
"name": "value1",
"nativeSrc": "19590:6:12",
"nodeType": "YulIdentifier",
"src": "19590:6:12"
},
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "19603:9:12",
"nodeType": "YulIdentifier",
"src": "19603:9:12"
},
{
"kind": "number",
"nativeSrc": "19614:2:12",
"nodeType": "YulLiteral",
"src": "19614:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nativeSrc": "19599:3:12",
"nodeType": "YulIdentifier",
"src": "19599:3:12"
},
"nativeSrc": "19599:18:12",
"nodeType": "YulFunctionCall",
"src": "19599:18:12"
}
],
"functionName": {
"name": "abi_encode_t_address_to_t_address_fromStack",
"nativeSrc": "19546:43:12",
"nodeType": "YulIdentifier",
"src": "19546:43:12"
},
"nativeSrc": "19546:72:12",
"nodeType": "YulFunctionCall",
"src": "19546:72:12"
},
"nativeSrc": "19546:72:12",
"nodeType": "YulExpressionStatement",
"src": "19546:72:12"
},
{
"expression": {
"arguments": [
{
"name": "value2",
"nativeSrc": "19668:6:12",
"nodeType": "YulIdentifier",
"src": "19668:6:12"
},
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "19681:9:12",
"nodeType": "YulIdentifier",
"src": "19681:9:12"
},
{
"kind": "number",
"nativeSrc": "19692:2:12",
"nodeType": "YulLiteral",
"src": "19692:2:12",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "add",
"nativeSrc": "19677:3:12",
"nodeType": "YulIdentifier",
"src": "19677:3:12"
},
"nativeSrc": "19677:18:12",
"nodeType": "YulFunctionCall",
"src": "19677:18:12"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nativeSrc": "19624:43:12",
"nodeType": "YulIdentifier",
"src": "19624:43:12"
},
"nativeSrc": "19624:72:12",
"nodeType": "YulFunctionCall",
"src": "19624:72:12"
},
"nativeSrc": "19624:72:12",
"nodeType": "YulExpressionStatement",
"src": "19624:72:12"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nativeSrc": "19713:9:12",
"nodeType": "YulIdentifier",
"src": "19713:9:12"
},
{
"kind": "number",
"nativeSrc": "19724:2:12",
"nodeType": "YulLiteral",
"src": "19724:2:12",
"type": "",
"value": "96"
}
],
"functionName": {
"name": "add",
"nativeSrc": "19709:3:12",
"nodeType": "YulIdentifier",
"src": "19709:3:12"
},
"nativeSrc": "19709:18:12",
"nodeType": "YulFunctionCall",
"src": "19709:18:12"
},
{
"arguments": [
{
"name": "tail",
"nativeSrc": "19733:4:12",
"nodeType": "YulIdentifier",
"src": "19733:4:12"
},
{
"name": "headStart",
"nativeSrc": "19739:9:12",
"nodeType": "YulIdentifier",
"src": "19739:9:12"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "19729:3:12",
"nodeType": "YulIdentifier",
"src": "19729:3:12"
},
"nativeSrc": "19729:20:12",
"nodeType": "YulFunctionCall",
"src": "19729:20:12"
}
],
"functionName": {
"name": "mstore",
"nativeSrc": "19702:6:12",
"nodeType": "YulIdentifier",
"src": "19702:6:12"
},
"nativeSrc": "19702:48:12",
"nodeType": "YulFunctionCall",
"src": "19702:48:12"
},
"nativeSrc": "19702:48:12",
"nodeType": "YulExpressionStatement",
"src": "19702:48:12"
},
{
"nativeSrc": "19755:84:12",
"nodeType": "YulAssignment",
"src": "19755:84:12",
"value": {
"arguments": [
{
"name": "value3",
"nativeSrc": "19825:6:12",
"nodeType": "YulIdentifier",
"src": "19825:6:12"
},
{
"name": "tail",
"nativeSrc": "19834:4:12",
"nodeType": "YulIdentifier",
"src": "19834:4:12"
}
],
"functionName": {
"name": "abi_encode_t_bytes_memory_ptr_to_t_bytes_memory_ptr_fromStack",
"nativeSrc": "19763:61:12",
"nodeType": "YulIdentifier",
"src": "19763:61:12"
},
"nativeSrc": "19763:76:12",
"nodeType": "YulFunctionCall",
"src": "19763:76:12"
},
"variableNames": [
{
"name": "tail",
"nativeSrc": "19755:4:12",
"nodeType": "YulIdentifier",
"src": "19755:4:12"
}
]
}
]
},
"name": "abi_encode_tuple_t_address_t_address_t_uint256_t_bytes_memory_ptr__to_t_address_t_address_t_uint256_t_bytes_memory_ptr__fromStack_reversed",
"nativeSrc": "19230:612:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nativeSrc": "19378:9:12",
"nodeType": "YulTypedName",
"src": "19378:9:12",
"type": ""
},
{
"name": "value3",
"nativeSrc": "19390:6:12",
"nodeType": "YulTypedName",
"src": "19390:6:12",
"type": ""
},
{
"name": "value2",
"nativeSrc": "19398:6:12",
"nodeType": "YulTypedName",
"src": "19398:6:12",
"type": ""
},
{
"name": "value1",
"nativeSrc": "19406:6:12",
"nodeType": "YulTypedName",
"src": "19406:6:12",
"type": ""
},
{
"name": "value0",
"nativeSrc": "19414:6:12",
"nodeType": "YulTypedName",
"src": "19414:6:12",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nativeSrc": "19425:4:12",
"nodeType": "YulTypedName",
"src": "19425:4:12",
"type": ""
}
],
"src": "19230:612:12"
},
{
"body": {
"nativeSrc": "19884:27:12",
"nodeType": "YulBlock",
"src": "19884:27:12",
"statements": [
{
"nativeSrc": "19890:19:12",
"nodeType": "YulAssignment",
"src": "19890:19:12",
"value": {
"arguments": [
{
"kind": "number",
"nativeSrc": "19906:2:12",
"nodeType": "YulLiteral",
"src": "19906:2:12",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "19900:5:12",
"nodeType": "YulIdentifier",
"src": "19900:5:12"
},
"nativeSrc": "19900:9:12",
"nodeType": "YulFunctionCall",
"src": "19900:9:12"
},
"variableNames": [
{
"name": "memPtr",
"nativeSrc": "19890:6:12",
"nodeType": "YulIdentifier",
"src": "19890:6:12"
}
]
}
]
},
"name": "allocate_unbounded",
"nativeSrc": "19844:67:12",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nativeSrc": "19877:6:12",
"nodeType": "YulTypedName",
"src": "19877:6:12",
"type": ""
}
],
"src": "19844:67:12"
},
{
"body": {
"nativeSrc": "20002:20:12",
"nodeType": "YulBlock",
"src": "20002:20:12",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "20015:1:12",
"nodeType": "YulLiteral",
"src": "20015:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "20018:1:12",
"nodeType": "YulLiteral",
"src": "20018:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "20008:6:12",
"nodeType": "YulIdentifier",
"src": "20008:6:12"
},
"nativeSrc": "20008:12:12",
"nodeType": "YulFunctionCall",
"src": "20008:12:12"
},
"nativeSrc": "20008:12:12",
"nodeType": "YulExpressionStatement",
"src": "20008:12:12"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nativeSrc": "19913:109:12",
"nodeType": "YulFunctionDefinition",
"src": "19913:109:12"
},
{
"body": {
"nativeSrc": "20113:20:12",
"nodeType": "YulBlock",
"src": "20113:20:12",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "20126:1:12",
"nodeType": "YulLiteral",
"src": "20126:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "20129:1:12",
"nodeType": "YulLiteral",
"src": "20129:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "20119:6:12",
"nodeType": "YulIdentifier",
"src": "20119:6:12"
},
"nativeSrc": "20119:12:12",
"nodeType": "YulFunctionCall",
"src": "20119:12:12"
},
"nativeSrc": "20119:12:12",
"nodeType": "YulExpressionStatement",
"src": "20119:12:12"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nativeSrc": "20024:109:12",
"nodeType": "YulFunctionDefinition",
"src": "20024:109:12"
},
{
"body": {
"nativeSrc": "20179:97:12",
"nodeType": "YulBlock",
"src": "20179:97:12",
"statements": [
{
"nativeSrc": "20185:89:12",
"nodeType": "YulAssignment",
"src": "20185:89:12",
"value": {
"arguments": [
{
"name": "value",
"nativeSrc": "20200:5:12",
"nodeType": "YulIdentifier",
"src": "20200:5:12"
},
{
"kind": "number",
"nativeSrc": "20207:66:12",
"nodeType": "YulLiteral",
"src": "20207:66:12",
"type": "",
"value": "0xffffffff00000000000000000000000000000000000000000000000000000000"
}
],
"functionName": {
"name": "and",
"nativeSrc": "20196:3:12",
"nodeType": "YulIdentifier",
"src": "20196:3:12"
},
"nativeSrc": "20196:78:12",
"nodeType": "YulFunctionCall",
"src": "20196:78:12"
},
"variableNames": [
{
"name": "cleaned",
"nativeSrc": "20185:7:12",
"nodeType": "YulIdentifier",
"src": "20185:7:12"
}
]
}
]
},
"name": "cleanup_t_bytes4",
"nativeSrc": "20135:141:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "20161:5:12",
"nodeType": "YulTypedName",
"src": "20161:5:12",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nativeSrc": "20171:7:12",
"nodeType": "YulTypedName",
"src": "20171:7:12",
"type": ""
}
],
"src": "20135:141:12"
},
{
"body": {
"nativeSrc": "20320:70:12",
"nodeType": "YulBlock",
"src": "20320:70:12",
"statements": [
{
"body": {
"nativeSrc": "20372:16:12",
"nodeType": "YulBlock",
"src": "20372:16:12",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nativeSrc": "20381:1:12",
"nodeType": "YulLiteral",
"src": "20381:1:12",
"type": "",
"value": "0"
},
{
"kind": "number",
"nativeSrc": "20384:1:12",
"nodeType": "YulLiteral",
"src": "20384:1:12",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nativeSrc": "20374:6:12",
"nodeType": "YulIdentifier",
"src": "20374:6:12"
},
"nativeSrc": "20374:12:12",
"nodeType": "YulFunctionCall",
"src": "20374:12:12"
},
"nativeSrc": "20374:12:12",
"nodeType": "YulExpressionStatement",
"src": "20374:12:12"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nativeSrc": "20339:5:12",
"nodeType": "YulIdentifier",
"src": "20339:5:12"
},
{
"arguments": [
{
"name": "value",
"nativeSrc": "20363:5:12",
"nodeType": "YulIdentifier",
"src": "20363:5:12"
}
],
"functionName": {
"name": "cleanup_t_bytes4",
"nativeSrc": "20346:16:12",
"nodeType": "YulIdentifier",
"src": "20346:16:12"
},
"nativeSrc": "20346:23:12",
"nodeType": "YulFunctionCall",
"src": "20346:23:12"
}
],
"functionName": {
"name": "eq",
"nativeSrc": "20336:2:12",
"nodeType": "YulIdentifier",
"src": "20336:2:12"
},
"nativeSrc": "20336:34:12",
"nodeType": "YulFunctionCall",
"src": "20336:34:12"
}
],
"functionName": {
"name": "iszero",
"nativeSrc": "20329:6:12",
"nodeType": "YulIdentifier",
"src": "20329:6:12"
},
"nativeSrc": "20329:42:12",
"nodeType": "YulFunctionCall",
"src": "20329:42:12"
},
"nativeSrc": "20326:62:12",
"nodeType": "YulIf",
"src": "20326:62:12"
}
]
},
"name": "validator_revert_t_bytes4",
"nativeSrc": "20278:112:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nativeSrc": "20313:5:12",
"nodeType": "YulTypedName",
"src": "20313:5:12",
"type": ""
}
],
"src": "20278:112:12"
},
{
"body": {
"nativeSrc": "20454:67:12",
"nodeType": "YulBlock",
"src": "20454:67:12",
"statements": [
{
"nativeSrc": "20460:22:12",
"nodeType": "YulAssignment",
"src": "20460:22:12",
"value": {
"arguments": [
{
"name": "offset",
"nativeSrc": "20475:6:12",
"nodeType": "YulIdentifier",
"src": "20475:6:12"
}
],
"functionName": {
"name": "mload",
"nativeSrc": "20469:5:12",
"nodeType": "YulIdentifier",
"src": "20469:5:12"
},
"nativeSrc": "20469:13:12",
"nodeType": "YulFunctionCall",
"src": "20469:13:12"
},
"variableNames": [
{
"name": "value",
"nativeSrc": "20460:5:12",
"nodeType": "YulIdentifier",
"src": "20460:5:12"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nativeSrc": "20513:5:12",
"nodeType": "YulIdentifier",
"src": "20513:5:12"
}
],
"functionName": {
"name": "validator_revert_t_bytes4",
"nativeSrc": "20487:25:12",
"nodeType": "YulIdentifier",
"src": "20487:25:12"
},
"nativeSrc": "20487:32:12",
"nodeType": "YulFunctionCall",
"src": "20487:32:12"
},
"nativeSrc": "20487:32:12",
"nodeType": "YulExpressionStatement",
"src": "20487:32:12"
}
]
},
"name": "abi_decode_t_bytes4_fromMemory",
"nativeSrc": "20392:129:12",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nativeSrc": "20432:6:12",
"nodeType": "YulTypedName",
"src": "20432:6:12",
"type": ""
},
{
"name": "end",
"nativeSrc": "20440:3:12",
"nodeType": "YulTypedName",
"src": "20440:3:12",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nativeSrc": "20448:5:12",
"nodeType": "YulTypedName",
"src": "20448:5:12",
"type": ""
}
],
"src": "20392:129:12"
},
{
"body": {
"nativeSrc": "20599:249:12",
"nodeType": "YulBlock",
"src": "20599:249:12",
"statements": [
{
"body": {
"nativeSrc": "20641:83:12",
"nodeType": "YulBlock",
"src": "20641:83:12",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nativeSrc": "20643:77:12",
"nodeType": "YulIdentifier",
"src": "20643:77:12"
},
"nativeSrc": "20643:79:12",
"nodeType": "YulFunctionCall",
"src": "20643:79:12"
},
"nativeSrc": "20643:79:12",
"nodeType": "YulExpressionStatement",
"src": "20643:79:12"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nativeSrc": "20616:7:12",
"nodeType": "YulIdentifier",
"src": "20616:7:12"
},
{
"name": "headStart",
"nativeSrc": "20625:9:12",
"nodeType": "YulIdentifier",
"src": "20625:9:12"
}
],
"functionName": {
"name": "sub",
"nativeSrc": "20612:3:12",
"nodeType": "YulIdentifier",
"src": "20612:3:12"
},
"nativeSrc": "20612:23:12",
"nodeType": "YulFunctionCall",
"src": "20612:23:12"
},
{
"kind": "number",
"nativeSrc": "20637:2:12",
"nodeType": "YulLiteral",
"src": "20637:2:12",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nativeSrc": "20608:3:12",
"nodeType": "YulIdentifier",
"src": "20608:3:12"
},
"nativeSrc": "20608:32:12",
"nodeType": "YulFunctionCall",
"src": "20608:32:12"
},
"nativeSrc": "20605:119:12",
"nodeType": "YulIf",
"src": "20605:119:12"
},
{
"nativeSrc": "20730:115:12",
"nodeTy
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