Created
August 19, 2022 09:16
-
-
Save mverzilli/506bff068172583d4d82ef53ba01e26c to your computer and use it in GitHub Desktop.
compile-artifact
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "1c0394f32c0868f623d0d7a071078ffb", | |
"_format": "hh-sol-build-info-1", | |
"solcVersion": "0.8.2", | |
"solcLongVersion": "0.8.2+commit.661d1103", | |
"input": { | |
"language": "Solidity", | |
"sources": { | |
"contracts/Proxiable.sol": { | |
"content": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary StorageSlot {\n struct AddressSlot { address value; }\n struct BooleanSlot { bool value; }\n struct Bytes32Slot { bytes32 value; }\n struct Uint256Slot { uint256 value; }\n\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { assembly { r.slot := slot } }\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { assembly { r.slot := slot } }\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { assembly { r.slot := slot } }\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { assembly { r.slot := slot } }\n\n // TODO: add other types\n}\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize, which returns 0 for contracts in\n // construction, since the code is only stored at the end of the\n // constructor execution.\n\n uint256 size;\n // solhint-disable-next-line no-inline-assembly\n assembly { size := extcodesize(account) }\n return size > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\n (bool success, ) = recipient.call{ value: amount }(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain`call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCall(target, data, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n require(isContract(target), \"Address: call to non-contract\");\n\n // solhint-disable-next-line avoid-low-level-calls\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\n return _verifyCallResult(success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\n require(isContract(target), \"Address: static call to non-contract\");\n\n // solhint-disable-next-line avoid-low-level-calls\n (bool success, bytes memory returndata) = target.staticcall(data);\n return _verifyCallResult(success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\n require(isContract(target), \"Address: delegate call to non-contract\");\n\n // solhint-disable-next-line avoid-low-level-calls\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return _verifyCallResult(success, returndata, errorMessage);\n }\n\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\n if (success) {\n return returndata;\n } else {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n\n // solhint-disable-next-line no-inline-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n }\n}\n\n\n/**\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\n */\ninterface IBeacon {\n /**\n * @dev Must return an address that can be used as a delegate call target.\n *\n * {BeaconProxy} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n\n/**\n * @dev This abstract contract provide setters and getters for the different\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] storage slots.\n */\nabstract contract ERC1967Storage {\n /**\n * @dev Storage slot with the address of the current implementation.\n * This is the keccak-256 hash of \"eip1967.proxy.implementation\" subtracted by 1, and is\n * validated in the constructor.\n */\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev Returns the current implementation address.\n */\n function _getImplementation() internal view returns (address) {\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n }\n\n /**\n * @dev Stores a new address in the EIP1967 implementation slot.\n */\n function _setImplementation(address newImplementation) internal {\n require(Address.isContract(newImplementation), \"ERC1967: new implementation is not a contract\");\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\n */\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\n\n /**\n * @dev Returns the current beacon.\n */\n function _getBeacon() internal view returns (address) {\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\n }\n\n /**\n * @dev Stores a new beacon in the EIP1967 beacon slot.\n */\n function _setBeacon(address newBeacon) internal {\n require(\n Address.isContract(newBeacon),\n \"ERC1967: new beacon is not a contract\"\n );\n require(\n Address.isContract(IBeacon(newBeacon).implementation()),\n \"ERC1967: beacon implementation is not a contract\"\n );\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\n }\n\n /**\n * @dev Storage slot with the admin of the contract.\n * This is the keccak-256 hash of \"eip1967.proxy.admin\" subtracted by 1, and is\n * validated in the constructor.\n */\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n */\n function _getAdmin() internal view returns (address) {\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\n }\n\n /**\n * @dev Stores a new address in the EIP1967 admin slot.\n */\n function _setAdmin(address newAdmin) internal {\n require(newAdmin != address(0), \"ERC1967: new admin is the zero address\");\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\n }\n}\n\n/**\n * @dev This abstract contract provides event emiting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\n */\nabstract contract ERC1967Upgrade is ERC1967Storage {\n // This is the keccak-256 hash of \"eip1967.proxy.upgradePending\" subtracted by 1\n bytes32 internal constant _UPGRADE_PENDING_SLOT = 0x39c07022fef61edd40345eccc814df883dce06b1b65a92ff48ae275074d292ee;\n\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the beacon is upgraded.\n */\n event BeaconUpgraded(address indexed beacon);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Perform implementation upgrade (with additional setup call)\n *\n * Emits an {Upgraded} event.\n */\n function _upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _upgradeToAndCall(newImplementation, data, false);\n }\n\n function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {\n _setImplementation(newImplementation);\n emit Upgraded(newImplementation);\n if (data.length > 0 || forceCall) {\n Address.functionDelegateCall(newImplementation, data);\n }\n }\n\n /**\n * @dev Perform implementation upgrade (with security checks and additional setup call)\n *\n * Emits an {Upgraded} event.\n */\n function _upgradeToAndCallSecure(address newImplementation, bytes memory data) internal {\n _upgradeToAndCallSecure(newImplementation, data, false);\n }\n\n function _upgradeToAndCallSecure(address newImplementation, bytes memory data, bool forceCall) internal {\n address oldImplementation = _getImplementation();\n // check if nested in an upgrade check\n StorageSlot.BooleanSlot storage upgradePending = StorageSlot.getBooleanSlot(_UPGRADE_PENDING_SLOT);\n // do inital upgrade\n _setImplementation(newImplementation);\n // do setup call\n if (data.length > 0 || forceCall) {\n Address.functionDelegateCall(newImplementation, data);\n }\n if (!upgradePending.value) {\n // trigger upgrade check with flag set to true\n upgradePending.value = true;\n Address.functionDelegateCall(\n newImplementation,\n abi.encodeWithSignature(\n \"upgradeTo(address)\",\n oldImplementation\n )\n );\n upgradePending.value = false;\n // check upgrade was effective\n require(oldImplementation == _getImplementation(), \"ERC1967Upgrade: upgrade breaks further upgrades\");\n // reset upgrade\n _setImplementation(newImplementation);\n // emit event\n emit Upgraded(newImplementation);\n }\n }\n\n /**\n * @dev Perform implementation upgrade (with addition delegate call)\n *\n * Emits an {Upgraded} event.\n */\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _upgradeBeaconToAndCall(newBeacon, data, false);\n }\n\n function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {\n _setBeacon(newBeacon);\n emit BeaconUpgraded(newBeacon);\n if (data.length > 0 || forceCall) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n }\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {AdminChanged} event.\n */\n function _changeAdmin(address newAdmin) internal {\n emit AdminChanged(_getAdmin(), newAdmin);\n _setAdmin(newAdmin);\n }\n}\n\nabstract contract Proxiable is ERC1967Upgrade {\n function upgradeTo(address newImplementation) external virtual {\n _beforeUpgrade(newImplementation);\n _upgradeToAndCallSecure(newImplementation, bytes(\"\"));\n }\n\n function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual {\n _beforeUpgrade(newImplementation);\n _upgradeToAndCallSecure(newImplementation, data, true);\n }\n\n function _beforeUpgrade(address newImplementation) internal virtual;\n}\n\n/**\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\n * be specified by overriding the virtual {_implementation} function.\n *\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\n * different contract through the {_delegate} function.\n *\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\n */\nabstract contract Proxy {\n /**\n * @dev Delegates the current call to `implementation`.\n *\n * This function does not return to its internall call site, it will return directly to the external caller.\n */\n function _delegate(address implementation) internal virtual {\n // solhint-disable-next-line no-inline-assembly\n assembly {\n // Copy msg.data. We take full control of memory in this inline assembly\n // block because it will not return to Solidity code. We overwrite the\n // Solidity scratch pad at memory position 0.\n calldatacopy(0, 0, calldatasize())\n\n // Call the implementation.\n // out and outsize are 0 because we don't know the size yet.\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\n\n // Copy the returned data.\n returndatacopy(0, 0, returndatasize())\n\n switch result\n // delegatecall returns 0 on error.\n case 0 { revert(0, returndatasize()) }\n default { return(0, returndatasize()) }\n }\n }\n\n /**\n * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function\n * and {_fallback} should delegate.\n */\n function _implementation() internal view virtual returns (address);\n\n /**\n * @dev Delegates the current call to the address returned by `_implementation()`.\n *\n * This function does not return to its internall call site, it will return directly to the external caller.\n */\n function _fallback() internal virtual {\n _beforeFallback();\n _delegate(_implementation());\n }\n\n /**\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\n * function in the contract matches the call data.\n */\n fallback () external payable virtual {\n _fallback();\n }\n\n /**\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\n * is empty.\n */\n receive () external payable virtual {\n _fallback();\n }\n\n /**\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\n * call, or as part of the Solidity `fallback` or `receive` functions.\n *\n * If overriden should call `super._beforeFallback()`.\n */\n function _beforeFallback() internal virtual {\n }\n}\n\n\n/**\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\n * implementation address that can be changed. This address is stored in storage in the location specified by\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\n * implementation behind the proxy.\n */\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\n /**\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\n *\n * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded\n * function call, and allows initializating the storage of the proxy like a Solidity constructor.\n */\n constructor(address _logic, bytes memory _data) payable {\n assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256(\"eip1967.proxy.implementation\")) - 1));\n _upgradeToAndCall(_logic, _data);\n }\n\n /**\n * @dev Returns the current implementation address of the associated beacon.\n */\n function _implementation() internal view virtual override returns (address impl) {\n return ERC1967Storage._getImplementation();\n }\n}\n" | |
}, | |
"contracts/VaultUUPS.sol": { | |
"content": "//SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport \"./Proxiable.sol\";\nimport \"./Vault.sol\";\n\ncontract VaultProxiable is Vault, Proxiable {\n function _beforeUpgrade(address newImplementation) internal virtual override onlyAdmin {\n }\n}\n\ncontract VaultProxiableV2 is VaultV2, Proxiable {\n function _beforeUpgrade(address newImplementation) internal virtual override onlyAdmin {\n }\n}\n\ncontract VaultProxiableV3 is VaultV3, Proxiable {\n function _beforeUpgrade(address newImplementation) internal virtual override onlyAdmin {\n }\n}" | |
}, | |
"contracts/Vault.sol": { | |
"content": "//SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ncontract Vault {\n uint256 public feePercentage;\n uint256 public feesCollected;\n address public admin;\n address payable public wallet;\n \n mapping(address => uint256) public balances;\n \n event Sweeped(address wallet, uint256 value);\n event Deposited(address from, uint256 value, uint256 fee);\n event Withdrawn(address to, uint256 value);\n event FeeChanged(uint256 newFee);\n \n modifier onlyAdmin() {\n require(msg.sender == admin, \"Unauthorized\");\n _;\n }\n\n function initialize(uint256 _fee, address _admin, address payable _wallet) public {\n require(admin == address(0), \"Already initialized\");\n wallet = _wallet;\n admin = _admin;\n feePercentage = _fee;\n }\n\n function version() public virtual pure returns (string memory) {\n return \"v1\";\n }\n\n function deposit() public virtual payable {\n uint256 fee = msg.value * feePercentage / 100;\n balances[msg.sender] += (msg.value - fee);\n feesCollected += fee;\n emit Deposited(msg.sender, msg.value, fee);\n }\n\n function withdraw() public virtual {\n uint256 funds = balances[msg.sender];\n balances[msg.sender] = 0;\n payable(msg.sender).transfer(funds);\n emit Withdrawn(msg.sender, funds);\n }\n \n function setFee(uint256 _fee) onlyAdmin public {\n feePercentage = _fee;\n emit FeeChanged(_fee);\n }\n\n function sweep() public {\n wallet.transfer(feesCollected);\n emit Sweeped(wallet, feesCollected);\n feesCollected = 0;\n }\n}\n\ncontract VaultV2 is Vault {\n bool public paused;\n\n event Paused();\n event Unpaused();\n\n modifier whenNotPaused() {\n require(!paused, \"Contract is paused\");\n _;\n }\n\n function version() public override virtual pure returns (string memory) {\n return \"v2\";\n }\n\n function pause() public {\n require(!paused, \"Contract already paused\");\n paused = true;\n emit Paused();\n }\n\n function unpause() public {\n require(paused, \"Contract not paused\");\n paused = false;\n emit Unpaused();\n }\n\n function withdraw() public override whenNotPaused {\n super.withdraw();\n }\n\n function deposit() public payable override whenNotPaused {\n super.deposit();\n }\n}\n\ncontract VaultV3 is VaultV2 {\n function version() public override pure returns (string memory) {\n return \"v3.0\";\n }\n}" | |
} | |
}, | |
"settings": { | |
"optimizer": { | |
"enabled": false, | |
"runs": 200 | |
}, | |
"outputSelection": { | |
"*": { | |
"*": [ | |
"abi", | |
"evm.bytecode", | |
"evm.deployedBytecode", | |
"evm.methodIdentifiers" | |
], | |
"": [ | |
"ast" | |
] | |
} | |
} | |
} | |
}, | |
"output": { | |
"contracts": { | |
"contracts/Proxiable.sol": { | |
"Address": { | |
"abi": [], | |
"evm": { | |
"bytecode": { | |
"generatedSources": [], | |
"linkReferences": {}, | |
"object": "60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220d0e2dc4255e701f21ae2118607929d00898f40e30b4f7ed9670533650b8e9c2664736f6c63430008020033", | |
"opcodes": "PUSH1 0x56 PUSH1 0x50 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x43 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xD0 0xE2 0xDC TIMESTAMP SSTORE 0xE7 ADD CALLCODE BYTE 0xE2 GT DUP7 SMOD SWAP3 SWAP14 STOP DUP10 DUP16 BLOCKHASH 0xE3 SIGNEXTEND 0x4F PUSH31 0xD9670533650B8E9C2664736F6C634300080200330000000000000000000000 ", | |
"sourceMap": "827:7684:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" | |
}, | |
"deployedBytecode": { | |
"generatedSources": [], | |
"immutableReferences": {}, | |
"linkReferences": {}, | |
"object": "73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220d0e2dc4255e701f21ae2118607929d00898f40e30b4f7ed9670533650b8e9c2664736f6c63430008020033", | |
"opcodes": "PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0xD0 0xE2 0xDC TIMESTAMP SSTORE 0xE7 ADD CALLCODE BYTE 0xE2 GT DUP7 SMOD SWAP3 SWAP14 STOP DUP10 DUP16 BLOCKHASH 0xE3 SIGNEXTEND 0x4F PUSH31 0xD9670533650B8E9C2664736F6C634300080200330000000000000000000000 ", | |
"sourceMap": "827:7684:0:-:0;;;;;;;;" | |
}, | |
"methodIdentifiers": {} | |
} | |
}, | |
"ERC1967Proxy": { | |
"abi": [ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "address", | |
"name": "_logic", | |
"type": "address" | |
}, | |
{ | |
"internalType": "bytes", | |
"name": "_data", | |
"type": "bytes" | |
} | |
], | |
"stateMutability": "payable", | |
"type": "constructor" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "address", | |
"name": "previousAdmin", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "address", | |
"name": "newAdmin", | |
"type": "address" | |
} | |
], | |
"name": "AdminChanged", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "beacon", | |
"type": "address" | |
} | |
], | |
"name": "BeaconUpgraded", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "implementation", | |
"type": "address" | |
} | |
], | |
"name": "Upgraded", | |
"type": "event" | |
}, | |
{ | |
"stateMutability": "payable", | |
"type": "fallback" | |
}, | |
{ | |
"stateMutability": "payable", | |
"type": "receive" | |
} | |
], | |
"evm": { | |
"bytecode": { | |
"generatedSources": [ | |
{ | |
"ast": { | |
"nodeType": "YulBlock", | |
"src": "0:7562:3", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "101:258:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "111:74:3", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "177:6:3" | |
} | |
], | |
"functionName": { | |
"name": "array_allocation_size_t_bytes_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "136:40:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "136:48:3" | |
} | |
], | |
"functionName": { | |
"name": "allocate_memory", | |
"nodeType": "YulIdentifier", | |
"src": "120:15:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "120:65:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "array", | |
"nodeType": "YulIdentifier", | |
"src": "111:5:3" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "array", | |
"nodeType": "YulIdentifier", | |
"src": "201:5:3" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "208:6:3" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "194:6:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "194:21:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "194:21:3" | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "224:27:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "array", | |
"nodeType": "YulIdentifier", | |
"src": "239:5:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "246:4:3", | |
"type": "", | |
"value": "0x20" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "235:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "235:16:3" | |
}, | |
"variables": [ | |
{ | |
"name": "dst", | |
"nodeType": "YulTypedName", | |
"src": "228:3:3", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "289:16:3", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "298:1:3", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "301:1:3", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "291:6:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "291:12:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "291:12:3" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "src", | |
"nodeType": "YulIdentifier", | |
"src": "270:3:3" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "275:6:3" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "266:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "266:16:3" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulIdentifier", | |
"src": "284:3:3" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "263:2:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "263:25:3" | |
}, | |
"nodeType": "YulIf", | |
"src": "260:2:3" | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "src", | |
"nodeType": "YulIdentifier", | |
"src": "336:3:3" | |
}, | |
{ | |
"name": "dst", | |
"nodeType": "YulIdentifier", | |
"src": "341:3:3" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "346:6:3" | |
} | |
], | |
"functionName": { | |
"name": "copy_memory_to_memory", | |
"nodeType": "YulIdentifier", | |
"src": "314:21:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "314:39:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "314:39:3" | |
} | |
] | |
}, | |
"name": "abi_decode_available_length_t_bytes_memory_ptr_fromMemory", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "src", | |
"nodeType": "YulTypedName", | |
"src": "74:3:3", | |
"type": "" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "79:6:3", | |
"type": "" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "87:3:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "array", | |
"nodeType": "YulTypedName", | |
"src": "95:5:3", | |
"type": "" | |
} | |
], | |
"src": "7:352:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "428:80:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "438:22:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "453:6:3" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "447:5:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "447:13:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "438:5:3" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "496:5:3" | |
} | |
], | |
"functionName": { | |
"name": "validator_revert_t_address", | |
"nodeType": "YulIdentifier", | |
"src": "469:26:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "469:33:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "469:33:3" | |
} | |
] | |
}, | |
"name": "abi_decode_t_address_fromMemory", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "406:6:3", | |
"type": "" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "414:3:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "422:5:3", | |
"type": "" | |
} | |
], | |
"src": "365:143:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "599:214:3", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "648:16:3", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "657:1:3", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "660:1:3", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "650:6:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "650:12:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "650:12:3" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "627:6:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "635:4:3", | |
"type": "", | |
"value": "0x1f" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "623:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "623:17:3" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulIdentifier", | |
"src": "642:3:3" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "619:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "619:27:3" | |
} | |
], | |
"functionName": { | |
"name": "iszero", | |
"nodeType": "YulIdentifier", | |
"src": "612:6:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "612:35:3" | |
}, | |
"nodeType": "YulIf", | |
"src": "609:2:3" | |
}, | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "673:27:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "693:6:3" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "687:5:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "687:13:3" | |
}, | |
"variables": [ | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "677:6:3", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "709:98:3", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "780:6:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "788:4:3", | |
"type": "", | |
"value": "0x20" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "776:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "776:17:3" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "795:6:3" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulIdentifier", | |
"src": "803:3:3" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_available_length_t_bytes_memory_ptr_fromMemory", | |
"nodeType": "YulIdentifier", | |
"src": "718:57:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "718:89:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "array", | |
"nodeType": "YulIdentifier", | |
"src": "709:5:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_t_bytes_memory_ptr_fromMemory", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "577:6:3", | |
"type": "" | |
}, | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "585:3:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "array", | |
"nodeType": "YulTypedName", | |
"src": "593:5:3", | |
"type": "" | |
} | |
], | |
"src": "527:286:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "922:441:3", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "968:16:3", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "977:1:3", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "980:1:3", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "970:6:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "970:12:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "970:12:3" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "943:7:3" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "952:9:3" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "939:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "939:23:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "964:2:3", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "slt", | |
"nodeType": "YulIdentifier", | |
"src": "935:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "935:32:3" | |
}, | |
"nodeType": "YulIf", | |
"src": "932:2:3" | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "994:128:3", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "1009:15:3", | |
"value": { | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1023:1:3", | |
"type": "", | |
"value": "0" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "1013:6:3", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1038:74:3", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1084:9:3" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "1095:6:3" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1080:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1080:22:3" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "1104:7:3" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_address_fromMemory", | |
"nodeType": "YulIdentifier", | |
"src": "1048:31:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1048:64:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "1038:6:3" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulBlock", | |
"src": "1132:224:3", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "1147:39:3", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1171:9:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1182:2:3", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1167:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1167:18:3" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "1161:5:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1161:25:3" | |
}, | |
"variables": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulTypedName", | |
"src": "1151:6:3", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1233:16:3", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1242:1:3", | |
"type": "", | |
"value": "0" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1245:1:3", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "revert", | |
"nodeType": "YulIdentifier", | |
"src": "1235:6:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1235:12:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1235:12:3" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "1205:6:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1213:18:3", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "1202:2:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1202:30:3" | |
}, | |
"nodeType": "YulIf", | |
"src": "1199:2:3" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1263:83:3", | |
"value": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "1318:9:3" | |
}, | |
{ | |
"name": "offset", | |
"nodeType": "YulIdentifier", | |
"src": "1329:6:3" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1314:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1314:22:3" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulIdentifier", | |
"src": "1338:7:3" | |
} | |
], | |
"functionName": { | |
"name": "abi_decode_t_bytes_memory_ptr_fromMemory", | |
"nodeType": "YulIdentifier", | |
"src": "1273:40:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1273:73:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "value1", | |
"nodeType": "YulIdentifier", | |
"src": "1263:6:3" | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_decode_tuple_t_addresst_bytes_memory_ptr_fromMemory", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "884:9:3", | |
"type": "" | |
}, | |
{ | |
"name": "dataEnd", | |
"nodeType": "YulTypedName", | |
"src": "895:7:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "907:6:3", | |
"type": "" | |
}, | |
{ | |
"name": "value1", | |
"nodeType": "YulTypedName", | |
"src": "915:6:3", | |
"type": "" | |
} | |
], | |
"src": "819:544:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1477:265:3", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "1487:52:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "1533:5:3" | |
} | |
], | |
"functionName": { | |
"name": "array_length_t_bytes_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "1501:31:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1501:38:3" | |
}, | |
"variables": [ | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "1491:6:3", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1548:95:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "1631:3:3" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "1636:6:3" | |
} | |
], | |
"functionName": { | |
"name": "array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack", | |
"nodeType": "YulIdentifier", | |
"src": "1555:75:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1555:88:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "1548:3:3" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "1678:5:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "1685:4:3", | |
"type": "", | |
"value": "0x20" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1674:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1674:16:3" | |
}, | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "1692:3:3" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "1697:6:3" | |
} | |
], | |
"functionName": { | |
"name": "copy_memory_to_memory", | |
"nodeType": "YulIdentifier", | |
"src": "1652:21:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1652:52:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1652:52:3" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1713:23:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "1724:3:3" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "1729:6:3" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "1720:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1720:16:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "end", | |
"nodeType": "YulIdentifier", | |
"src": "1713:3:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_t_bytes_memory_ptr_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "1458:5:3", | |
"type": "" | |
}, | |
{ | |
"name": "pos", | |
"nodeType": "YulTypedName", | |
"src": "1465:3:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "1473:3:3", | |
"type": "" | |
} | |
], | |
"src": "1369:373:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "1840:272:3", | |
"statements": [ | |
{ | |
"nodeType": "YulVariableDeclaration", | |
"src": "1850:53:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "1897:5:3" | |
} | |
], | |
"functionName": { | |
"name": "array_length_t_string_memory_ptr", | |
"nodeType": "YulIdentifier", | |
"src": "1864:32:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1864:39:3" | |
}, | |
"variables": [ | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "1854:6:3", | |
"type": "" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "1912:78:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "1978:3:3" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "1983:6:3" | |
} | |
], | |
"functionName": { | |
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", | |
"nodeType": "YulIdentifier", | |
"src": "1919:58:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1919:71:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "1912:3:3" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "2025:5:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2032:4:3", | |
"type": "", | |
"value": "0x20" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2021:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2021:16:3" | |
}, | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "2039:3:3" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2044:6:3" | |
} | |
], | |
"functionName": { | |
"name": "copy_memory_to_memory", | |
"nodeType": "YulIdentifier", | |
"src": "1999:21:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "1999:52:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "1999:52:3" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2060:46:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "2071:3:3" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "2098:6:3" | |
} | |
], | |
"functionName": { | |
"name": "round_up_to_mul_of_32", | |
"nodeType": "YulIdentifier", | |
"src": "2076:21:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2076:29:3" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2067:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2067:39:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "end", | |
"nodeType": "YulIdentifier", | |
"src": "2060:3:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "1821:5:3", | |
"type": "" | |
}, | |
{ | |
"name": "pos", | |
"nodeType": "YulTypedName", | |
"src": "1828:3:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "1836:3:3", | |
"type": "" | |
} | |
], | |
"src": "1748:364:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2264:220:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2274:74:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "2340:3:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2345:2:3", | |
"type": "", | |
"value": "45" | |
} | |
], | |
"functionName": { | |
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", | |
"nodeType": "YulIdentifier", | |
"src": "2281:58:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2281:67:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "2274:3:3" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "2446:3:3" | |
} | |
], | |
"functionName": { | |
"name": "store_literal_in_memory_972b7028e8de0bff0d553b3264eba2312ec98a552add05e58853b313f9f4ac65", | |
"nodeType": "YulIdentifier", | |
"src": "2357:88:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2357:93:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2357:93:3" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2459:19:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "2470:3:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2475:2:3", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2466:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2466:12:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "end", | |
"nodeType": "YulIdentifier", | |
"src": "2459:3:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_t_stringliteral_972b7028e8de0bff0d553b3264eba2312ec98a552add05e58853b313f9f4ac65_to_t_string_memory_ptr_fromStack", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulTypedName", | |
"src": "2252:3:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "2260:3:3", | |
"type": "" | |
} | |
], | |
"src": "2118:366:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2636:220:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2646:74:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "2712:3:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2717:2:3", | |
"type": "", | |
"value": "38" | |
} | |
], | |
"functionName": { | |
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", | |
"nodeType": "YulIdentifier", | |
"src": "2653:58:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2653:67:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "2646:3:3" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "2818:3:3" | |
} | |
], | |
"functionName": { | |
"name": "store_literal_in_memory_b94ded0918034cf8f896e19fa3cfdef1188cd569c577264a3622e49152f88520", | |
"nodeType": "YulIdentifier", | |
"src": "2729:88:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2729:93:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "2729:93:3" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "2831:19:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "2842:3:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "2847:2:3", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "2838:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "2838:12:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "end", | |
"nodeType": "YulIdentifier", | |
"src": "2831:3:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_t_stringliteral_b94ded0918034cf8f896e19fa3cfdef1188cd569c577264a3622e49152f88520_to_t_string_memory_ptr_fromStack", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulTypedName", | |
"src": "2624:3:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "2632:3:3", | |
"type": "" | |
} | |
], | |
"src": "2490:366:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "2996:137:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3007:100:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "3094:6:3" | |
}, | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "3103:3:3" | |
} | |
], | |
"functionName": { | |
"name": "abi_encode_t_bytes_memory_ptr_to_t_bytes_memory_ptr_nonPadded_inplace_fromStack", | |
"nodeType": "YulIdentifier", | |
"src": "3014:79:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3014:93:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "3007:3:3" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3117:10:3", | |
"value": { | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "3124:3:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "end", | |
"nodeType": "YulIdentifier", | |
"src": "3117:3:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_packed_t_bytes_memory_ptr__to_t_bytes_memory_ptr__nonPadded_inplace_fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulTypedName", | |
"src": "2975:3:3", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "2981:6:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "end", | |
"nodeType": "YulTypedName", | |
"src": "2992:3:3", | |
"type": "" | |
} | |
], | |
"src": "2862:271:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3257:195:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3267:26:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3279:9:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3290:2:3", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3275:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3275:18:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "3267:4:3" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3314:9:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3325:1:3", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3310:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3310:17:3" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "3333:4:3" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3339:9:3" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "3329:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3329:20:3" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3303:6:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3303:47:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3303:47:3" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3359:86:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "value0", | |
"nodeType": "YulIdentifier", | |
"src": "3431:6:3" | |
}, | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "3440:4:3" | |
} | |
], | |
"functionName": { | |
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack", | |
"nodeType": "YulIdentifier", | |
"src": "3367:63:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3367:78:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "3359:4:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "3229:9:3", | |
"type": "" | |
}, | |
{ | |
"name": "value0", | |
"nodeType": "YulTypedName", | |
"src": "3241:6:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "3252:4:3", | |
"type": "" | |
} | |
], | |
"src": "3139:313:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "3629:248:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3639:26:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3651:9:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3662:2:3", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3647:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3647:18:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "3639:4:3" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3686:9:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "3697:1:3", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "3682:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3682:17:3" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "3705:4:3" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "3711:9:3" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "3701:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3701:20:3" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "3675:6:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3675:47:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "3675:47:3" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "3731:139:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "3865:4:3" | |
} | |
], | |
"functionName": { | |
"name": "abi_encode_t_stringliteral_972b7028e8de0bff0d553b3264eba2312ec98a552add05e58853b313f9f4ac65_to_t_string_memory_ptr_fromStack", | |
"nodeType": "YulIdentifier", | |
"src": "3739:124:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "3739:131:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "3731:4:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_972b7028e8de0bff0d553b3264eba2312ec98a552add05e58853b313f9f4ac65__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "3609:9:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "3624:4:3", | |
"type": "" | |
} | |
], | |
"src": "3458:419:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4054:248:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4064:26:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4076:9:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4087:2:3", | |
"type": "", | |
"value": "32" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4072:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4072:18:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "4064:4:3" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"arguments": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4111:9:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4122:1:3", | |
"type": "", | |
"value": "0" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4107:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4107:17:3" | |
}, | |
{ | |
"arguments": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "4130:4:3" | |
}, | |
{ | |
"name": "headStart", | |
"nodeType": "YulIdentifier", | |
"src": "4136:9:3" | |
} | |
], | |
"functionName": { | |
"name": "sub", | |
"nodeType": "YulIdentifier", | |
"src": "4126:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4126:20:3" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "4100:6:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4100:47:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4100:47:3" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4156:139:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "4290:4:3" | |
} | |
], | |
"functionName": { | |
"name": "abi_encode_t_stringliteral_b94ded0918034cf8f896e19fa3cfdef1188cd569c577264a3622e49152f88520_to_t_string_memory_ptr_fromStack", | |
"nodeType": "YulIdentifier", | |
"src": "4164:124:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4164:131:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulIdentifier", | |
"src": "4156:4:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "abi_encode_tuple_t_stringliteral_b94ded0918034cf8f896e19fa3cfdef1188cd569c577264a3622e49152f88520__to_t_string_memory_ptr__fromStack_reversed", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "headStart", | |
"nodeType": "YulTypedName", | |
"src": "4034:9:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "tail", | |
"nodeType": "YulTypedName", | |
"src": "4049:4:3", | |
"type": "" | |
} | |
], | |
"src": "3883:419:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4349:88:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4359:30:3", | |
"value": { | |
"arguments": [], | |
"functionName": { | |
"name": "allocate_unbounded", | |
"nodeType": "YulIdentifier", | |
"src": "4369:18:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4369:20:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "memPtr", | |
"nodeType": "YulIdentifier", | |
"src": "4359:6:3" | |
} | |
] | |
}, | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "memPtr", | |
"nodeType": "YulIdentifier", | |
"src": "4418:6:3" | |
}, | |
{ | |
"name": "size", | |
"nodeType": "YulIdentifier", | |
"src": "4426:4:3" | |
} | |
], | |
"functionName": { | |
"name": "finalize_allocation", | |
"nodeType": "YulIdentifier", | |
"src": "4398:19:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4398:33:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4398:33:3" | |
} | |
] | |
}, | |
"name": "allocate_memory", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "size", | |
"nodeType": "YulTypedName", | |
"src": "4333:4:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "memPtr", | |
"nodeType": "YulTypedName", | |
"src": "4342:6:3", | |
"type": "" | |
} | |
], | |
"src": "4308:129:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4483:35:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4493:19:3", | |
"value": { | |
"arguments": [ | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4509:2:3", | |
"type": "", | |
"value": "64" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "4503:5:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4503:9:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "memPtr", | |
"nodeType": "YulIdentifier", | |
"src": "4493:6:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "allocate_unbounded", | |
"nodeType": "YulFunctionDefinition", | |
"returnVariables": [ | |
{ | |
"name": "memPtr", | |
"nodeType": "YulTypedName", | |
"src": "4476:6:3", | |
"type": "" | |
} | |
], | |
"src": "4443:75:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4590:241:3", | |
"statements": [ | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4695:22:3", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "panic_error_0x41", | |
"nodeType": "YulIdentifier", | |
"src": "4697:16:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4697:18:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "4697:18:3" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "4667:6:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4675:18:3", | |
"type": "", | |
"value": "0xffffffffffffffff" | |
} | |
], | |
"functionName": { | |
"name": "gt", | |
"nodeType": "YulIdentifier", | |
"src": "4664:2:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4664:30:3" | |
}, | |
"nodeType": "YulIf", | |
"src": "4661:2:3" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4727:37:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "4757:6:3" | |
} | |
], | |
"functionName": { | |
"name": "round_up_to_mul_of_32", | |
"nodeType": "YulIdentifier", | |
"src": "4735:21:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4735:29:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "size", | |
"nodeType": "YulIdentifier", | |
"src": "4727:4:3" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4801:23:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "size", | |
"nodeType": "YulIdentifier", | |
"src": "4813:4:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "4819:4:3", | |
"type": "", | |
"value": "0x20" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "4809:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4809:15:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "size", | |
"nodeType": "YulIdentifier", | |
"src": "4801:4:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "array_allocation_size_t_bytes_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "4574:6:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "size", | |
"nodeType": "YulTypedName", | |
"src": "4585:4:3", | |
"type": "" | |
} | |
], | |
"src": "4524:307:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "4895:40:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "4906:22:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "4922:5:3" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "4916:5:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "4916:12:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "4906:6:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "array_length_t_bytes_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "4878:5:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "4888:6:3", | |
"type": "" | |
} | |
], | |
"src": "4837:98:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5000:40:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5011:22:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "value", | |
"nodeType": "YulIdentifier", | |
"src": "5027:5:3" | |
} | |
], | |
"functionName": { | |
"name": "mload", | |
"nodeType": "YulIdentifier", | |
"src": "5021:5:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5021:12:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "5011:6:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "array_length_t_string_memory_ptr", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "value", | |
"nodeType": "YulTypedName", | |
"src": "4983:5:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "4993:6:3", | |
"type": "" | |
} | |
], | |
"src": "4941:99:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5159:34:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5169:18:3", | |
"value": { | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "5184:3:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "updated_pos", | |
"nodeType": "YulIdentifier", | |
"src": "5169:11:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "array_storeLengthForEncoding_t_bytes_memory_ptr_nonPadded_inplace_fromStack", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulTypedName", | |
"src": "5131:3:3", | |
"type": "" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "5136:6:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "updated_pos", | |
"nodeType": "YulTypedName", | |
"src": "5147:11:3", | |
"type": "" | |
} | |
], | |
"src": "5046:147:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5295:73:3", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "5312:3:3" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulIdentifier", | |
"src": "5317:6:3" | |
} | |
], | |
"functionName": { | |
"name": "mstore", | |
"nodeType": "YulIdentifier", | |
"src": "5305:6:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5305:19:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5305:19:3" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5333:29:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulIdentifier", | |
"src": "5352:3:3" | |
}, | |
{ | |
"kind": "number", | |
"nodeType": "YulLiteral", | |
"src": "5357:4:3", | |
"type": "", | |
"value": "0x20" | |
} | |
], | |
"functionName": { | |
"name": "add", | |
"nodeType": "YulIdentifier", | |
"src": "5348:3:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5348:14:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "updated_pos", | |
"nodeType": "YulIdentifier", | |
"src": "5333:11:3" | |
} | |
] | |
} | |
] | |
}, | |
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", | |
"nodeType": "YulFunctionDefinition", | |
"parameters": [ | |
{ | |
"name": "pos", | |
"nodeType": "YulTypedName", | |
"src": "5267:3:3", | |
"type": "" | |
}, | |
{ | |
"name": "length", | |
"nodeType": "YulTypedName", | |
"src": "5272:6:3", | |
"type": "" | |
} | |
], | |
"returnVariables": [ | |
{ | |
"name": "updated_pos", | |
"nodeType": "YulTypedName", | |
"src": "5283:11:3", | |
"type": "" | |
} | |
], | |
"src": "5199:169:3" | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5419:146:3", | |
"statements": [ | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5429:25:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "5452:1:3" | |
} | |
], | |
"functionName": { | |
"name": "cleanup_t_uint256", | |
"nodeType": "YulIdentifier", | |
"src": "5434:17:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5434:20:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "5429:1:3" | |
} | |
] | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5463:25:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "5486:1:3" | |
} | |
], | |
"functionName": { | |
"name": "cleanup_t_uint256", | |
"nodeType": "YulIdentifier", | |
"src": "5468:17:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5468:20:3" | |
}, | |
"variableNames": [ | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "5463:1:3" | |
} | |
] | |
}, | |
{ | |
"body": { | |
"nodeType": "YulBlock", | |
"src": "5510:22:3", | |
"statements": [ | |
{ | |
"expression": { | |
"arguments": [], | |
"functionName": { | |
"name": "panic_error_0x11", | |
"nodeType": "YulIdentifier", | |
"src": "5512:16:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5512:18:3" | |
}, | |
"nodeType": "YulExpressionStatement", | |
"src": "5512:18:3" | |
} | |
] | |
}, | |
"condition": { | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "5504:1:3" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |
"src": "5507:1:3" | |
} | |
], | |
"functionName": { | |
"name": "lt", | |
"nodeType": "YulIdentifier", | |
"src": "5501:2:3" | |
}, | |
"nodeType": "YulFunctionCall", | |
"src": "5501:8:3" | |
}, | |
"nodeType": "YulIf", | |
"src": "5498:2:3" | |
}, | |
{ | |
"nodeType": "YulAssignment", | |
"src": "5542:17:3", | |
"value": { | |
"arguments": [ | |
{ | |
"name": "x", | |
"nodeType": "YulIdentifier", | |
"src": "5554:1:3" | |
}, | |
{ | |
"name": "y", | |
"nodeType": "YulIdentifier", | |