{"id":"7ca011a4548dda80071bed2cce19b2cc","_format":"hh-sol-build-info-1","solcVersion":"0.8.20","solcLongVersion":"0.8.20+commit.a1b79de6","input":{"language":"Solidity","sources":{"@cryptoalgebra/abstract-plugin/contracts/BaseConnector.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity =0.8.20;\n\n/// @title Base Connector\n/// @notice Abstract base contract for all plugin connectors providing common delegatecall utilities\nabstract contract BaseConnector {\n  error ConnectorDelegatecallFailed();\n\n  /// @dev Execute delegatecall and revert with original error if failed\n  /// @param implementation The implementation address to delegatecall\n  /// @param data The encoded function call data\n  /// @return returnData The return data from the delegatecall\n  function _delegateCall(address implementation, bytes memory data) internal returns (bytes memory returnData) {\n    bool success;\n    (success, returnData) = implementation.delegatecall(data);\n    if (!success) {\n      if (returnData.length > 0) {\n        assembly {\n          revert(add(32, returnData), mload(returnData))\n        }\n      }\n      revert ConnectorDelegatecallFailed();\n    }\n  }\n\n  /// @dev Must be implemented by inheriting contract to check authorization\n  function _authorize() internal view virtual;\n}\n"},"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\npragma abicoder v2;\n\nimport '@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol';\n\n/// @title The interface for the BasePlugin\ninterface IAbstractPlugin is IAlgebraPlugin {\n  error OnlyPool();\n  error OnlyPluginFactory();\n  error OnlyAdministrator();\n\n  /// @notice Claim plugin fee\n  /// @param token The token address\n  /// @param amount Amount of tokens\n  /// @param recipient Recipient address\n  function collectPluginFee(address token, uint256 amount, address recipient) external;\n\n  /// @notice Get all active module names\n  /// @return moduleNames Array of active module names\n  function getActiveModuleNames() external view returns (string[] memory moduleNames);\n}\n"},"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAlgebraPluginProxy.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\ninterface IAlgebraPluginProxy {\n  function pool() external view returns (address);\n}\n"},"@cryptoalgebra/abstract-plugin/contracts/UpgradeableAbstractPlugin.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.20;\n\nimport '@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol';\nimport '@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol';\nimport '@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol';\n\nimport '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol';\nimport '@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol';\nimport '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol';\nimport '@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol';\n\nimport '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol';\n\nimport './interfaces/IAbstractPlugin.sol';\nimport './interfaces/IAlgebraPluginProxy.sol';\n\n/// @title Algebra Integral 1.2.2 Upgradeable Abstract Plugin\n/// @notice Base contract for upgradeable plugins using Beacon Proxy pattern\nabstract contract UpgradeableAbstractPlugin is Initializable, IAbstractPlugin, Timestamp {\n  using Plugins for uint8;\n\n  /// @dev Offset in AlgebraPluginProxy bytecode\n  uint256 public constant POOL_ADDRESS_OFFSET = 75;\n  /// @dev The role can be granted in AlgebraFactory\n  bytes32 public constant ALGEBRA_BASE_PLUGIN_MANAGER = keccak256('ALGEBRA_BASE_PLUGIN_MANAGER');\n\n  /// @dev shared across all proxies\n  address public immutable factory;\n\n  /// @dev shared across all proxies\n  address public immutable pluginFactory;\n\n  modifier onlyPool() {\n    _checkIfFromPool();\n    _;\n  }\n\n  modifier onlyPluginFactory() {\n    if (msg.sender != pluginFactory) revert OnlyPluginFactory();\n    _;\n  }\n\n  constructor(address _factory, address _pluginFactory) {\n    factory = _factory;\n    pluginFactory = _pluginFactory;\n    _disableInitializers();\n  }\n\n  /// @dev Reads the pool address embedded in the proxy's bytecode.\n  function _getPool() internal view virtual returns (address) {\n    bytes32 word;\n    assembly {\n      let ptr := mload(0x40)\n      extcodecopy(address(), ptr, POOL_ADDRESS_OFFSET, 32)\n      word := mload(ptr)\n    }\n    return address(uint160(uint256(word)));\n  }\n\n  function _checkIfFromPool() internal view {\n    if (msg.sender != _getPool()) revert OnlyPool();\n  }\n\n  function _authorize() internal view virtual {\n    if (!IAlgebraFactory(factory).hasRoleOrOwner(ALGEBRA_BASE_PLUGIN_MANAGER, msg.sender)) revert OnlyAdministrator();\n  }\n\n  function _getPoolState() internal view virtual returns (uint160 price, int24 tick, uint16 fee, uint8 pluginConfig) {\n    (price, tick, fee, pluginConfig, , ) = IAlgebraPoolState(_getPool()).globalState();\n  }\n\n  function _getPluginInPool() internal view returns (address plugin) {\n    return IAlgebraPool(_getPool()).plugin();\n  }\n\n  function pool() public view returns (address) {\n    return _getPool();\n  }\n\n  /// @inheritdoc IAbstractPlugin\n  /// @dev must be implemented by the default plugin\n  function getActiveModuleNames() external view virtual override returns (string[] memory moduleNames);\n\n  /// @notice Returns the default plugin config\n  /// @dev Must be implemented by the default plugin, used to sync config into the pool\n  function defaultPluginConfig() public view virtual returns (uint8);\n\n  /// @inheritdoc IAbstractPlugin\n  function collectPluginFee(address token, uint256 amount, address recipient) external virtual override {\n    _authorize();\n    SafeTransfer.safeTransfer(token, recipient, amount);\n  }\n\n  /// @inheritdoc IAlgebraPlugin\n  function handlePluginFee(uint256, uint256) external view virtual override onlyPool returns (bytes4) {\n    return IAlgebraPlugin.handlePluginFee.selector;\n  }\n\n  // ###### HOOKS ######\n\n  function beforeInitialize(address, uint160) external virtual override onlyPool returns (bytes4) {\n    return IAlgebraPlugin.beforeInitialize.selector;\n  }\n\n  function afterInitialize(address, uint160, int24) external virtual override onlyPool returns (bytes4) {\n    return IAlgebraPlugin.afterInitialize.selector;\n  }\n\n  function beforeModifyPosition(\n    address,\n    address,\n    int24,\n    int24,\n    int128,\n    bytes calldata\n  ) external virtual override onlyPool returns (bytes4, uint24) {\n    return (IAlgebraPlugin.beforeModifyPosition.selector, 0);\n  }\n\n  function afterModifyPosition(\n    address,\n    address,\n    int24,\n    int24,\n    int128,\n    uint256,\n    uint256,\n    bytes calldata\n  ) external virtual override onlyPool returns (bytes4) {\n    return IAlgebraPlugin.afterModifyPosition.selector;\n  }\n\n  function beforeSwap(\n    address,\n    address,\n    bool,\n    int256,\n    uint160,\n    bool,\n    bytes calldata\n  ) external virtual override onlyPool returns (bytes4, uint24, uint24) {\n    return (IAlgebraPlugin.beforeSwap.selector, 0, 0);\n  }\n\n  function afterSwap(\n    address,\n    address,\n    bool,\n    int256,\n    uint160,\n    int256,\n    int256,\n    bytes calldata\n  ) external virtual override onlyPool returns (bytes4) {\n    return IAlgebraPlugin.afterSwap.selector;\n  }\n\n  function beforeFlash(address, address, uint256, uint256, bytes calldata) external virtual override onlyPool returns (bytes4) {\n    return IAlgebraPlugin.beforeFlash.selector;\n  }\n\n  function afterFlash(\n    address,\n    address,\n    uint256,\n    uint256,\n    uint256,\n    uint256,\n    bytes calldata\n  ) external virtual override onlyPool returns (bytes4) {\n    return IAlgebraPlugin.afterFlash.selector;\n  }\n\n  function _updatePluginConfigInPool(uint8 newPluginConfig) internal {\n    (, , , uint8 currentPluginConfig) = _getPoolState();\n    if (currentPluginConfig != newPluginConfig) {\n      IAlgebraPool(_getPool()).setPluginConfig(newPluginConfig);\n    }\n  }\n}\n"},"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.8.0 <0.9.0;\n\n/// @title Abstract contract with modified blockTimestamp functionality\n/// @notice Allows the pool and other contracts to get a timestamp truncated to 32 bits\n/// @dev Can be overridden in tests to make testing easier\nabstract contract Timestamp {\n  /// @dev This function is created for testing by overriding it.\n  /// @return A timestamp converted to uint32\n  function _blockTimestamp() internal view virtual returns (uint32) {\n    return uint32(block.timestamp); // truncation is desired\n  }\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\npragma abicoder v2;\n\nimport './plugin/IAlgebraPluginFactory.sol';\nimport './vault/IAlgebraVaultFactory.sol';\n\n/// @title The interface for the Algebra Factory\n/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraFactory {\n  /// @notice Emitted when a process of ownership renounce is started\n  /// @param timestamp The timestamp of event\n  /// @param finishTimestamp The timestamp when ownership renounce will be possible to finish\n  event RenounceOwnershipStart(uint256 timestamp, uint256 finishTimestamp);\n\n  /// @notice Emitted when a process of ownership renounce cancelled\n  /// @param timestamp The timestamp of event\n  event RenounceOwnershipStop(uint256 timestamp);\n\n  /// @notice Emitted when a process of ownership renounce finished\n  /// @param timestamp The timestamp of ownership renouncement\n  event RenounceOwnershipFinish(uint256 timestamp);\n\n  /// @notice Emitted when a pool is created\n  /// @param token0 The first token of the pool by address sort order\n  /// @param token1 The second token of the pool by address sort order\n  /// @param pool The address of the created pool\n  event Pool(address indexed token0, address indexed token1, address pool);\n\n  /// @notice Emitted when a pool is created\n  /// @param deployer The corresponding custom deployer contract\n  /// @param token0 The first token of the pool by address sort order\n  /// @param token1 The second token of the pool by address sort order\n  /// @param pool The address of the created pool\n  event CustomPool(address indexed deployer, address indexed token0, address indexed token1, address pool);\n\n  /// @notice Emitted when the default community fee is changed\n  /// @param newDefaultCommunityFee The new default community fee value\n  event DefaultCommunityFee(uint16 newDefaultCommunityFee);\n\n  /// @notice Emitted when the default tickspacing is changed\n  /// @param newDefaultTickspacing The new default tickspacing value\n  event DefaultTickspacing(int24 newDefaultTickspacing);\n\n  /// @notice Emitted when the default fee is changed\n  /// @param newDefaultFee The new default fee value\n  event DefaultFee(uint16 newDefaultFee);\n\n  /// @notice Emitted when the defaultPluginFactory address is changed\n  /// @param defaultPluginFactoryAddress The new defaultPluginFactory address\n  event DefaultPluginFactory(address defaultPluginFactoryAddress);\n\n  /// @notice Emitted when the vaultFactory address is changed\n  /// @param newVaultFactory The new vaultFactory address\n  event VaultFactory(address newVaultFactory);\n\n  /// @notice role that can change communityFee and tickspacing in pools\n  /// @return The hash corresponding to this role\n  function POOLS_ADMINISTRATOR_ROLE() external view returns (bytes32);\n\n  /// @notice role that can call `createCustomPool` function\n  /// @return The hash corresponding to this role\n  function CUSTOM_POOL_DEPLOYER() external view returns (bytes32);\n\n  /// @notice Returns `true` if `account` has been granted `role` or `account` is owner.\n  /// @param role The hash corresponding to the role\n  /// @param account The address for which the role is checked\n  /// @return bool Whether the address has this role or the owner role or not\n  function hasRoleOrOwner(bytes32 role, address account) external view returns (bool);\n\n  /// @notice Returns the current owner of the factory\n  /// @dev Can be changed by the current owner via transferOwnership(address newOwner)\n  /// @return The address of the factory owner\n  function owner() external view returns (address);\n\n  /// @notice Returns the current poolDeployerAddress\n  /// @return The address of the poolDeployer\n  function poolDeployer() external view returns (address);\n\n  /// @notice Returns the default community fee\n  /// @return Fee which will be set at the creation of the pool\n  function defaultCommunityFee() external view returns (uint16);\n\n  /// @notice Returns the default fee\n  /// @return Fee which will be set at the creation of the pool\n  function defaultFee() external view returns (uint16);\n\n  /// @notice Returns the default tickspacing\n  /// @return Tickspacing which will be set at the creation of the pool\n  function defaultTickspacing() external view returns (int24);\n\n  /// @notice Return the current pluginFactory address\n  /// @dev This contract is used to automatically set a plugin address in new liquidity pools\n  /// @return Algebra plugin factory\n  function defaultPluginFactory() external view returns (IAlgebraPluginFactory);\n\n  /// @notice Return the current vaultFactory address\n  /// @dev This contract is used to automatically set a vault address in new liquidity pools\n  /// @return Algebra vault factory\n  function vaultFactory() external view returns (IAlgebraVaultFactory);\n\n  /// @notice Returns the default communityFee, tickspacing, fee and communityFeeVault for pool\n  /// @return communityFee which will be set at the creation of the pool\n  /// @return tickSpacing which will be set at the creation of the pool\n  /// @return fee which will be set at the creation of the pool\n  function defaultConfigurationForPool() external view returns (uint16 communityFee, int24 tickSpacing, uint16 fee);\n\n  /// @notice Deterministically computes the pool address given the token0 and token1\n  /// @dev The method does not check if such a pool has been created\n  /// @param token0 first token\n  /// @param token1 second token\n  /// @return pool The contract address of the Algebra pool\n  function computePoolAddress(address token0, address token1) external view returns (address pool);\n\n  /// @notice Deterministically computes the custom pool address given the customDeployer, token0 and token1\n  /// @dev The method does not check if such a pool has been created\n  /// @param customDeployer the address of custom plugin deployer\n  /// @param token0 first token\n  /// @param token1 second token\n  /// @return customPool The contract address of the Algebra pool\n  function computeCustomPoolAddress(address customDeployer, address token0, address token1) external view returns (address customPool);\n\n  /// @notice Returns the pool address for a given pair of tokens, or address 0 if it does not exist\n  /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\n  /// @param tokenA The contract address of either token0 or token1\n  /// @param tokenB The contract address of the other token\n  /// @return pool The pool address\n  function poolByPair(address tokenA, address tokenB) external view returns (address pool);\n\n  /// @notice Returns the custom pool address for a customDeployer and a given pair of tokens, or address 0 if it does not exist\n  /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\n  /// @param customDeployer The address of custom plugin deployer\n  /// @param tokenA The contract address of either token0 or token1\n  /// @param tokenB The contract address of the other token\n  /// @return customPool The pool address\n  function customPoolByPair(address customDeployer, address tokenA, address tokenB) external view returns (address customPool);\n\n  /// @notice returns keccak256 of AlgebraPool init bytecode.\n  /// @dev the hash value changes with any change in the pool bytecode\n  /// @return Keccak256 hash of AlgebraPool contract init bytecode\n  function POOL_INIT_CODE_HASH() external view returns (bytes32);\n\n  /// @return timestamp The timestamp of the beginning of the renounceOwnership process\n  function renounceOwnershipStartTimestamp() external view returns (uint256 timestamp);\n\n  /// @notice Creates a pool for the given two tokens\n  /// @param tokenA One of the two tokens in the desired pool\n  /// @param tokenB The other of the two tokens in the desired pool\n  /// @param data Data for plugin creation\n  /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0.\n  /// The call will revert if the pool already exists or the token arguments are invalid.\n  /// @return pool The address of the newly created pool\n  function createPool(address tokenA, address tokenB, bytes calldata data) external returns (address pool);\n\n  /// @notice Creates a custom pool for the given two tokens using `deployer` contract\n  /// @param deployer The address of plugin deployer, also used for custom pool address calculation\n  /// @param creator The initiator of custom pool creation\n  /// @param tokenA One of the two tokens in the desired pool\n  /// @param tokenB The other of the two tokens in the desired pool\n  /// @param data The additional data bytes\n  /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0.\n  /// The call will revert if the pool already exists or the token arguments are invalid.\n  /// @return customPool The address of the newly created custom pool\n  function createCustomPool(\n    address deployer,\n    address creator,\n    address tokenA,\n    address tokenB,\n    bytes calldata data\n  ) external returns (address customPool);\n\n  /// @dev updates default community fee for new pools\n  /// @param newDefaultCommunityFee The new community fee, _must_ be <= MAX_COMMUNITY_FEE\n  function setDefaultCommunityFee(uint16 newDefaultCommunityFee) external;\n\n  /// @dev updates default fee for new pools\n  /// @param newDefaultFee The new  fee, _must_ be <= MAX_DEFAULT_FEE\n  function setDefaultFee(uint16 newDefaultFee) external;\n\n  /// @dev updates default tickspacing for new pools\n  /// @param newDefaultTickspacing The new tickspacing, _must_ be <= MAX_TICK_SPACING and >= MIN_TICK_SPACING\n  function setDefaultTickspacing(int24 newDefaultTickspacing) external;\n\n  /// @dev updates pluginFactory address\n  /// @param newDefaultPluginFactory address of new plugin factory\n  function setDefaultPluginFactory(address newDefaultPluginFactory) external;\n\n  /// @dev updates vaultFactory address\n  /// @param newVaultFactory address of new vault factory\n  function setVaultFactory(address newVaultFactory) external;\n\n  /// @notice Starts process of renounceOwnership. After that, a certain period\n  /// of time must pass before the ownership renounce can be completed.\n  function startRenounceOwnership() external;\n\n  /// @notice Stops process of renounceOwnership and removes timer.\n  function stopRenounceOwnership() external;\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.8.4;\n\nimport './pool/IAlgebraPoolImmutables.sol';\nimport './pool/IAlgebraPoolState.sol';\nimport './pool/IAlgebraPoolActions.sol';\nimport './pool/IAlgebraPoolPermissionedActions.sol';\nimport './pool/IAlgebraPoolEvents.sol';\nimport './pool/IAlgebraPoolErrors.sol';\n\n/// @title The interface for a Algebra Pool\n/// @dev The pool interface is broken up into many smaller pieces.\n/// This interface includes custom error definitions and cannot be used in older versions of Solidity.\n/// For older versions of Solidity use #IAlgebraPoolLegacy\n/// Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraPool is\n  IAlgebraPoolImmutables,\n  IAlgebraPoolState,\n  IAlgebraPoolActions,\n  IAlgebraPoolPermissionedActions,\n  IAlgebraPoolEvents,\n  IAlgebraPoolErrors\n{\n  // used only for combining interfaces\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title The Algebra plugin interface\n/// @dev The plugin will be called by the pool using hook methods depending on the current pool settings\ninterface IAlgebraPlugin {\n  /// @notice Returns plugin config\n  /// @return config Each bit of the config is responsible for enabling/disabling the hooks.\n  /// The last bit indicates whether the plugin contains dynamic fees logic\n  function defaultPluginConfig() external view returns (uint8);\n\n  /// @notice Handle plugin fee transfer on plugin contract\n  /// @param pluginFee0 Fee0 amount transferred to plugin\n  /// @param pluginFee1 Fee1 amount transferred to plugin\n  /// @return bytes4 The function selector\n  function handlePluginFee(uint256 pluginFee0, uint256 pluginFee1) external returns (bytes4);\n\n  /// @notice The hook called before the state of a pool is initialized\n  /// @param sender The initial msg.sender for the initialize call\n  /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n  /// @return bytes4 The function selector for the hook\n  function beforeInitialize(address sender, uint160 sqrtPriceX96) external returns (bytes4);\n\n  /// @notice The hook called after the state of a pool is initialized\n  /// @param sender The initial msg.sender for the initialize call\n  /// @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n  /// @param tick The current tick after the state of a pool is initialized\n  /// @return bytes4 The function selector for the hook\n  function afterInitialize(address sender, uint160 sqrtPriceX96, int24 tick) external returns (bytes4);\n\n  /// @notice The hook called before a position is modified\n  /// @param sender The initial msg.sender for the modify position call\n  /// @param recipient Address to which the liquidity will be assigned in case of a mint or\n  /// to which tokens will be sent in case of a burn\n  /// @param bottomTick The lower tick of the position\n  /// @param topTick The upper tick of the position\n  /// @param desiredLiquidityDelta The desired amount of liquidity to mint/burn\n  /// @param data Data that passed through the callback\n  /// @return selector The function selector for the hook\n  function beforeModifyPosition(\n    address sender,\n    address recipient,\n    int24 bottomTick,\n    int24 topTick,\n    int128 desiredLiquidityDelta,\n    bytes calldata data\n  ) external returns (bytes4 selector, uint24 pluginFee);\n\n  /// @notice The hook called after a position is modified\n  /// @param sender The initial msg.sender for the modify position call\n  /// @param recipient Address to which the liquidity will be assigned in case of a mint or\n  /// to which tokens will be sent in case of a burn\n  /// @param bottomTick The lower tick of the position\n  /// @param topTick The upper tick of the position\n  /// @param desiredLiquidityDelta The desired amount of liquidity to mint/burn\n  /// @param amount0 The amount of token0 sent to the recipient or was paid to mint\n  /// @param amount1 The amount of token0 sent to the recipient or was paid to mint\n  /// @param data Data that passed through the callback\n  /// @return bytes4 The function selector for the hook\n  function afterModifyPosition(\n    address sender,\n    address recipient,\n    int24 bottomTick,\n    int24 topTick,\n    int128 desiredLiquidityDelta,\n    uint256 amount0,\n    uint256 amount1,\n    bytes calldata data\n  ) external returns (bytes4);\n\n  /// @notice The hook called before a swap\n  /// @param sender The initial msg.sender for the swap call\n  /// @param recipient The address to receive the output of the swap\n  /// @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n  /// @param amountRequired The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\n  /// @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n  /// value after the swap. If one for zero, the price cannot be greater than this value after the swap\n  /// @param withPaymentInAdvance The flag indicating whether the `swapWithPaymentInAdvance` method was called\n  /// @param data Data that passed through the callback\n  /// @return selector The function selector for the hook\n  function beforeSwap(\n    address sender,\n    address recipient,\n    bool zeroToOne,\n    int256 amountRequired,\n    uint160 limitSqrtPrice,\n    bool withPaymentInAdvance,\n    bytes calldata data\n  ) external returns (bytes4 selector, uint24 feeOverride, uint24 pluginFee);\n\n  /// @notice The hook called after a swap\n  /// @param sender The initial msg.sender for the swap call\n  /// @param recipient The address to receive the output of the swap\n  /// @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n  /// @param amountRequired The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\n  /// @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n  /// value after the swap. If one for zero, the price cannot be greater than this value after the swap\n  /// @param amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\n  /// @param amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive\n  /// @param data Data that passed through the callback\n  /// @return bytes4 The function selector for the hook\n  function afterSwap(\n    address sender,\n    address recipient,\n    bool zeroToOne,\n    int256 amountRequired,\n    uint160 limitSqrtPrice,\n    int256 amount0,\n    int256 amount1,\n    bytes calldata data\n  ) external returns (bytes4);\n\n  /// @notice The hook called before flash\n  /// @param sender The initial msg.sender for the flash call\n  /// @param recipient The address which will receive the token0 and token1 amounts\n  /// @param amount0 The amount of token0 being requested for flash\n  /// @param amount1 The amount of token1 being requested for flash\n  /// @param data Data that passed through the callback\n  /// @return bytes4 The function selector for the hook\n  function beforeFlash(address sender, address recipient, uint256 amount0, uint256 amount1, bytes calldata data) external returns (bytes4);\n\n  /// @notice The hook called after flash\n  /// @param sender The initial msg.sender for the flash call\n  /// @param recipient The address which will receive the token0 and token1 amounts\n  /// @param amount0 The amount of token0 being requested for flash\n  /// @param amount1 The amount of token1 being requested for flash\n  /// @param paid0 The amount of token0 being paid for flash\n  /// @param paid1 The amount of token1 being paid for flash\n  /// @param data Data that passed through the callback\n  /// @return bytes4 The function selector for the hook\n  function afterFlash(\n    address sender,\n    address recipient,\n    uint256 amount0,\n    uint256 amount1,\n    uint256 paid0,\n    uint256 paid1,\n    bytes calldata data\n  ) external returns (bytes4);\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title An interface for a contract that is capable of deploying Algebra plugins\n/// @dev Such a factory can be used for automatic plugin creation for new pools.\n/// Also a factory be used as an entry point for custom (additional) pools creation\ninterface IAlgebraPluginFactory {\n  /// @notice Deploys new plugin contract for pool\n  /// @param pool The address of the new pool\n  /// @param creator The address that initiated the pool creation\n  /// @param deployer The address of new plugin deployer contract (0 if not used)\n  /// @param token0 First token of the pool\n  /// @param token1 Second token of the pool\n  /// @return New plugin address\n  function beforeCreatePoolHook(\n    address pool,\n    address creator,\n    address deployer,\n    address token0,\n    address token1,\n    bytes calldata data\n  ) external returns (address);\n\n  /// @notice Called after the pool is created\n  /// @param plugin The plugin address\n  /// @param pool The address of the new pool\n  /// @param deployer The address of new plugin deployer contract (0 if not used)\n  function afterCreatePoolHook(address plugin, address pool, address deployer) external;\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title Permissionless pool actions\n/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraPoolActions {\n  /// @notice Sets the initial price for the pool\n  /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value\n  /// @dev Initialization should be done in one transaction with pool creation to avoid front-running\n  /// @param initialPrice The initial sqrt price of the pool as a Q64.96\n  function initialize(uint160 initialPrice) external;\n\n  /// @notice Adds liquidity for the given recipient/bottomTick/topTick position\n  /// @dev The caller of this method receives a callback in the form of IAlgebraMintCallback#algebraMintCallback\n  /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends\n  /// on bottomTick, topTick, the amount of liquidity, and the current price.\n  /// @param leftoversRecipient The address which will receive potential surplus of paid tokens\n  /// @param recipient The address for which the liquidity will be created\n  /// @param bottomTick The lower tick of the position in which to add liquidity\n  /// @param topTick The upper tick of the position in which to add liquidity\n  /// @param liquidityDesired The desired amount of liquidity to mint\n  /// @param data Any data that should be passed through to the callback\n  /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback\n  /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback\n  /// @return liquidityActual The actual minted amount of liquidity\n  function mint(\n    address leftoversRecipient,\n    address recipient,\n    int24 bottomTick,\n    int24 topTick,\n    uint128 liquidityDesired,\n    bytes calldata data\n  ) external returns (uint256 amount0, uint256 amount1, uint128 liquidityActual);\n\n  /// @notice Collects tokens owed to a position\n  /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.\n  /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or\n  /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the\n  /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.\n  /// @param recipient The address which should receive the fees collected\n  /// @param bottomTick The lower tick of the position for which to collect fees\n  /// @param topTick The upper tick of the position for which to collect fees\n  /// @param amount0Requested How much token0 should be withdrawn from the fees owed\n  /// @param amount1Requested How much token1 should be withdrawn from the fees owed\n  /// @return amount0 The amount of fees collected in token0\n  /// @return amount1 The amount of fees collected in token1\n  function collect(\n    address recipient,\n    int24 bottomTick,\n    int24 topTick,\n    uint128 amount0Requested,\n    uint128 amount1Requested\n  ) external returns (uint128 amount0, uint128 amount1);\n\n  /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position\n  /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0\n  /// @dev Fees must be collected separately via a call to #collect\n  /// @param bottomTick The lower tick of the position for which to burn liquidity\n  /// @param topTick The upper tick of the position for which to burn liquidity\n  /// @param amount How much liquidity to burn\n  /// @param data Any data that should be passed through to the plugin\n  /// @return amount0 The amount of token0 sent to the recipient\n  /// @return amount1 The amount of token1 sent to the recipient\n  function burn(int24 bottomTick, int24 topTick, uint128 amount, bytes calldata data) external returns (uint256 amount0, uint256 amount1);\n\n  /// @notice Swap token0 for token1, or token1 for token0\n  /// @dev The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback\n  /// @param recipient The address to receive the output of the swap\n  /// @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n  /// @param amountRequired The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\n  /// @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n  /// value after the swap. If one for zero, the price cannot be greater than this value after the swap\n  /// @param data Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\n  /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\n  /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive\n  function swap(\n    address recipient,\n    bool zeroToOne,\n    int256 amountRequired,\n    uint160 limitSqrtPrice,\n    bytes calldata data\n  ) external returns (int256 amount0, int256 amount1);\n\n  /// @notice Swap token0 for token1, or token1 for token0 with prepayment\n  /// @dev The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback\n  /// caller must send tokens in callback before swap calculation\n  /// the actually sent amount of tokens is used for further calculations\n  /// @param leftoversRecipient The address which will receive potential surplus of paid tokens\n  /// @param recipient The address to receive the output of the swap\n  /// @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n  /// @param amountToSell The amount of the swap, only positive (exact input) amount allowed\n  /// @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n  /// value after the swap. If one for zero, the price cannot be greater than this value after the swap\n  /// @param data Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\n  /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\n  /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive\n  function swapWithPaymentInAdvance(\n    address leftoversRecipient,\n    address recipient,\n    bool zeroToOne,\n    int256 amountToSell,\n    uint160 limitSqrtPrice,\n    bytes calldata data\n  ) external returns (int256 amount0, int256 amount1);\n\n  /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback\n  /// @dev The caller of this method receives a callback in the form of IAlgebraFlashCallback#algebraFlashCallback\n  /// @dev All excess tokens paid in the callback are distributed to currently in-range liquidity providers as an additional fee.\n  /// If there are no in-range liquidity providers, the fee will be transferred to the first active provider in the future\n  /// @param recipient The address which will receive the token0 and token1 amounts\n  /// @param amount0 The amount of token0 to send\n  /// @param amount1 The amount of token1 to send\n  /// @param data Any data to be passed through to the callback\n  function flash(address recipient, uint256 amount0, uint256 amount1, bytes calldata data) external;\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.8.4;\n\n/// @title Errors emitted by a pool\n/// @notice Contains custom errors emitted by the pool\n/// @dev Custom errors are separated from the common pool interface for compatibility with older versions of Solidity\ninterface IAlgebraPoolErrors {\n  // ####  pool errors  ####\n\n  /// @notice Emitted by the reentrancy guard\n  error locked();\n\n  /// @notice Emitted if arithmetic error occurred\n  error arithmeticError();\n\n  /// @notice Emitted if an attempt is made to initialize the pool twice\n  error alreadyInitialized();\n\n  /// @notice Emitted if an attempt is made to mint or swap in uninitialized pool\n  error notInitialized();\n\n  /// @notice Emitted if 0 is passed as amountRequired to swap function\n  error zeroAmountRequired();\n\n  /// @notice Emitted if invalid amount is passed as amountRequired to swap function\n  error invalidAmountRequired();\n\n  /// @notice Emitted if plugin fee param greater than fee/override fee\n  error incorrectPluginFee();\n\n  /// @notice Emitted if the pool received fewer tokens than it should have\n  error insufficientInputAmount();\n\n  /// @notice Emitted if there was an attempt to mint zero liquidity\n  error zeroLiquidityDesired();\n  /// @notice Emitted if actual amount of liquidity is zero (due to insufficient amount of tokens received)\n  error zeroLiquidityActual();\n\n  /// @notice Emitted if the pool received fewer tokens0 after flash than it should have\n  error flashInsufficientPaid0();\n  /// @notice Emitted if the pool received fewer tokens1 after flash than it should have\n  error flashInsufficientPaid1();\n\n  /// @notice Emitted if limitSqrtPrice param is incorrect\n  error invalidLimitSqrtPrice();\n\n  /// @notice Tick must be divisible by tickspacing\n  error tickIsNotSpaced();\n\n  /// @notice Emitted if a method is called that is accessible only to the factory owner or dedicated role\n  error notAllowed();\n\n  /// @notice Emitted if new tick spacing exceeds max allowed value\n  error invalidNewTickSpacing();\n  /// @notice Emitted if new community fee exceeds max allowed value\n  error invalidNewCommunityFee();\n\n  /// @notice Emitted if an attempt is made to manually change the fee value, but dynamic fee is enabled\n  error dynamicFeeActive();\n  /// @notice Emitted if an attempt is made by plugin to change the fee value, but dynamic fee is disabled\n  error dynamicFeeDisabled();\n  /// @notice Emitted if an attempt is made to change the plugin configuration, but the plugin is not connected\n  error pluginIsNotConnected();\n  /// @notice Emitted if a plugin returns invalid selector after hook call\n  /// @param expectedSelector The expected selector\n  error invalidHookResponse(bytes4 expectedSelector);\n\n  // ####  LiquidityMath errors  ####\n\n  /// @notice Emitted if liquidity underflows\n  error liquiditySub();\n  /// @notice Emitted if liquidity overflows\n  error liquidityAdd();\n\n  // ####  TickManagement errors  ####\n\n  /// @notice Emitted if the topTick param not greater then the bottomTick param\n  error topTickLowerOrEqBottomTick();\n  /// @notice Emitted if the bottomTick param is lower than min allowed value\n  error bottomTickLowerThanMIN();\n  /// @notice Emitted if the topTick param is greater than max allowed value\n  error topTickAboveMAX();\n  /// @notice Emitted if the liquidity value associated with the tick exceeds MAX_LIQUIDITY_PER_TICK\n  error liquidityOverflow();\n  /// @notice Emitted if an attempt is made to interact with an uninitialized tick\n  error tickIsNotInitialized();\n  /// @notice Emitted if there is an attempt to insert a new tick into the list of ticks with incorrect indexes of the previous and next ticks\n  error tickInvalidLinks();\n\n  // ####  SafeTransfer errors  ####\n\n  /// @notice Emitted if token transfer failed internally\n  error transferFailed();\n\n  // ####  TickMath errors  ####\n\n  /// @notice Emitted if tick is greater than the maximum or less than the minimum allowed value\n  error tickOutOfRange();\n  /// @notice Emitted if price is greater than the maximum or less than the minimum allowed value\n  error priceOutOfRange();\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title Events emitted by a pool\n/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraPoolEvents {\n  /// @notice Emitted exactly once by a pool when #initialize is first called on the pool\n  /// @dev Mint/Burn/Swaps cannot be emitted by the pool before Initialize\n  /// @param price The initial sqrt price of the pool, as a Q64.96\n  /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool\n  event Initialize(uint160 price, int24 tick);\n\n  /// @notice Emitted when liquidity is minted for a given position\n  /// @param sender The address that minted the liquidity\n  /// @param owner The owner of the position and recipient of any minted liquidity\n  /// @param bottomTick The lower tick of the position\n  /// @param topTick The upper tick of the position\n  /// @param liquidityAmount The amount of liquidity minted to the position range\n  /// @param amount0 How much token0 was required for the minted liquidity\n  /// @param amount1 How much token1 was required for the minted liquidity\n  event Mint(\n    address sender,\n    address indexed owner,\n    int24 indexed bottomTick,\n    int24 indexed topTick,\n    uint128 liquidityAmount,\n    uint256 amount0,\n    uint256 amount1\n  );\n\n  /// @notice Emitted when fees are collected by the owner of a position\n  /// @param owner The owner of the position for which fees are collected\n  /// @param recipient The address that received fees\n  /// @param bottomTick The lower tick of the position\n  /// @param topTick The upper tick of the position\n  /// @param amount0 The amount of token0 fees collected\n  /// @param amount1 The amount of token1 fees collected\n  event Collect(address indexed owner, address recipient, int24 indexed bottomTick, int24 indexed topTick, uint128 amount0, uint128 amount1);\n\n  /// @notice Emitted when a position's liquidity is removed\n  /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect\n  /// @param owner The owner of the position for which liquidity is removed\n  /// @param bottomTick The lower tick of the position\n  /// @param topTick The upper tick of the position\n  /// @param liquidityAmount The amount of liquidity to remove\n  /// @param amount0 The amount of token0 withdrawn\n  /// @param amount1 The amount of token1 withdrawn\n  event Burn(\n    address indexed owner,\n    int24 indexed bottomTick,\n    int24 indexed topTick,\n    uint128 liquidityAmount,\n    uint256 amount0,\n    uint256 amount1\n  );\n\n  /// @notice Emitted when a plugin fee is applied during a burn\n  /// @param owner The owner of the position\n  /// @param pluginFee The fee to be sent to the plugin\n  event BurnFee(address indexed owner, uint24 pluginFee); \n\n  /// @notice Emitted by the pool for any swaps between token0 and token1\n  /// @param sender The address that initiated the swap call, and that received the callback\n  /// @param recipient The address that received the output of the swap\n  /// @param amount0 The delta of the token0 balance of the pool\n  /// @param amount1 The delta of the token1 balance of the pool\n  /// @param price The sqrt(price) of the pool after the swap, as a Q64.96\n  /// @param liquidity The liquidity of the pool after the swap\n  /// @param tick The log base 1.0001 of price of the pool after the swap\n\n  event Swap(\n    address indexed sender,\n    address indexed recipient,\n    int256 amount0,\n    int256 amount1,\n    uint160 price,\n    uint128 liquidity,\n    int24 tick\n  );\n\n  /// @notice Emitted by the pool after any swaps \n  /// @param sender The address that initiated the swap \n  /// @param overrideFee The fee to be applied to the trade\n  /// @param pluginFee The fee to be sent to the plugin\n  event SwapFee(address indexed sender, uint24 overrideFee, uint24 pluginFee);\n\n  /// @notice Emitted by the pool for any flashes of token0/token1\n  /// @param sender The address that initiated the swap call, and that received the callback\n  /// @param recipient The address that received the tokens from flash\n  /// @param amount0 The amount of token0 that was flashed\n  /// @param amount1 The amount of token1 that was flashed\n  /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee\n  /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee\n  event Flash(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1);\n\n  /// @notice Emitted when the pool has higher balances than expected.\n  /// Any excess of tokens will be distributed between liquidity providers as fee.\n  /// @dev Fees after flash also will trigger this event due to mechanics of flash.\n  /// @param amount0 The excess of token0\n  /// @param amount1 The excess of token1\n  event ExcessTokens(uint256 amount0, uint256 amount1);\n\n  /// @notice Emitted when the community fee is changed by the pool\n  /// @param communityFeeNew The updated value of the community fee in thousandths (1e-3)\n  event CommunityFee(uint16 communityFeeNew);\n\n  /// @notice Emitted when the tick spacing changes\n  /// @param newTickSpacing The updated value of the new tick spacing\n  event TickSpacing(int24 newTickSpacing);\n\n  /// @notice Emitted when the plugin address changes\n  /// @param newPluginAddress New plugin address\n  event Plugin(address newPluginAddress);\n\n  /// @notice Emitted when the plugin config changes\n  /// @param newPluginConfig New plugin config\n  event PluginConfig(uint8 newPluginConfig);\n\n  /// @notice Emitted when the fee changes inside the pool\n  /// @param fee The current fee in hundredths of a bip, i.e. 1e-6\n  event Fee(uint16 fee);\n\n  /// @notice Emitted when the community vault address changes\n  /// @param newCommunityVault New community vault\n  event CommunityVault(address newCommunityVault);\n\n  /// @notice Emitted when the plugin does skim the excess of tokens\n  /// @param to THe receiver of tokens (plugin)\n  /// @param amount0 The amount of token0\n  /// @param amount1 The amount of token1\n  event Skim(address indexed to, uint256 amount0, uint256 amount1);\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title Pool state that never changes\n/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraPoolImmutables {\n  /// @notice The Algebra factory contract, which must adhere to the IAlgebraFactory interface\n  /// @return The contract address\n  function factory() external view returns (address);\n\n  /// @notice The first of the two tokens of the pool, sorted by address\n  /// @return The token contract address\n  function token0() external view returns (address);\n\n  /// @notice The second of the two tokens of the pool, sorted by address\n  /// @return The token contract address\n  function token1() external view returns (address);\n\n  /// @notice The maximum amount of position liquidity that can use any tick in the range\n  /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and\n  /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\n  /// @return The max amount of liquidity per tick\n  function maxLiquidityPerTick() external view returns (uint128);\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title Permissioned pool actions\n/// @notice Contains pool methods that may only be called by permissioned addresses\n/// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraPoolPermissionedActions {\n  /// @notice Set the community's % share of the fees. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n  /// @param newCommunityFee The new community fee percent in thousandths (1e-3)\n  function setCommunityFee(uint16 newCommunityFee) external;\n\n  /// @notice Set the new tick spacing values. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n  /// @param newTickSpacing The new tick spacing value\n  function setTickSpacing(int24 newTickSpacing) external;\n\n  /// @notice Set the new plugin address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n  /// @param newPluginAddress The new plugin address\n  function setPlugin(address newPluginAddress) external;\n\n  /// @notice Set new plugin config. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n  /// @param newConfig In the new configuration of the plugin,\n  /// each bit of which is responsible for a particular hook.\n  function setPluginConfig(uint8 newConfig) external;\n\n  /// @notice Set new community fee vault address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n  /// @dev Community fee vault receives collected community fees.\n  /// **accumulated but not yet sent to the vault community fees once will be sent to the `newCommunityVault` address**\n  /// @param newCommunityVault The address of new community fee vault\n  function setCommunityVault(address newCommunityVault) external;\n\n  /// @notice Set new pool fee. Can be called by owner if dynamic fee is disabled.\n  /// Called by the plugin if dynamic fee is enabled\n  /// @param newFee The new fee value\n  function setFee(uint16 newFee) external;\n\n  /// @notice Forces balances to match reserves. Excessive tokens will be distributed between active LPs\n  /// @dev Only plugin can call this function\n  function sync() external;\n\n  /// @notice Forces balances to match reserves. Excessive tokens will be sent to msg.sender\n  /// @dev Only plugin can call this function\n  function skim() external;\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title Pool state that can change\n/// @dev Important security note: when using this data by external contracts, it is necessary to take into account the possibility\n/// of manipulation (including read-only reentrancy).\n/// This interface is based on the UniswapV3 interface, credit to Uniswap Labs under GPL-2.0-or-later license:\n/// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\ninterface IAlgebraPoolState {\n  /// @notice Safely get most important state values of Algebra Integral AMM\n  /// @dev Several values exposed as a single method to save gas when accessed externally.\n  /// **Important security note: this method checks reentrancy lock and should be preferred in most cases**.\n  /// @return sqrtPrice The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\n  /// @return tick The current global tick of the pool. May not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\n  /// @return lastFee The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\n  /// @return pluginConfig The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\n  /// @return activeLiquidity  The currently in-range liquidity available to the pool\n  /// @return nextTick The next initialized tick after current global tick\n  /// @return previousTick The previous initialized tick before (or at) current global tick\n  function safelyGetStateOfAMM()\n    external\n    view\n    returns (uint160 sqrtPrice, int24 tick, uint16 lastFee, uint8 pluginConfig, uint128 activeLiquidity, int24 nextTick, int24 previousTick);\n\n  /// @notice Allows to easily get current reentrancy lock status\n  /// @dev can be used to prevent read-only reentrancy.\n  /// This method just returns `globalState.unlocked` value\n  /// @return unlocked Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\n  function isUnlocked() external view returns (bool unlocked);\n\n  // ! IMPORTANT security note: the pool state can be manipulated.\n  // ! The following methods do not check reentrancy lock themselves.\n\n  /// @notice The globalState structure in the pool stores many values but requires only one slot\n  /// and is exposed as a single method to save gas when accessed externally.\n  /// @dev **important security note: caller should check `unlocked` flag to prevent read-only reentrancy**\n  /// @return price The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\n  /// @return tick The current tick of the pool, i.e. according to the last tick transition that was run\n  /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\n  /// @return lastFee The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\n  /// @return pluginConfig The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\n  /// @return communityFee The community fee represented as a percent of all collected fee in thousandths, i.e. 1e-3 (so 100 is 10%)\n  /// @return unlocked Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\n  function globalState() external view returns (uint160 price, int24 tick, uint16 lastFee, uint8 pluginConfig, uint16 communityFee, bool unlocked);\n\n  /// @notice Look up information about a specific tick in the pool\n  /// @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @param tick The tick to look up\n  /// @return liquidityTotal The total amount of position liquidity that uses the pool either as tick lower or tick upper\n  /// @return liquidityDelta How much liquidity changes when the pool price crosses the tick\n  /// @return prevTick The previous tick in tick list\n  /// @return nextTick The next tick in tick list\n  /// @return outerFeeGrowth0Token The fee growth on the other side of the tick from the current tick in token0\n  /// @return outerFeeGrowth1Token The fee growth on the other side of the tick from the current tick in token1\n  /// In addition, these values are only relative and must be used only in comparison to previous snapshots for\n  /// a specific position.\n  function ticks(\n    int24 tick\n  )\n    external\n    view\n    returns (\n      uint256 liquidityTotal,\n      int128 liquidityDelta,\n      int24 prevTick,\n      int24 nextTick,\n      uint256 outerFeeGrowth0Token,\n      uint256 outerFeeGrowth1Token\n    );\n\n  /// @notice The timestamp of the last sending of tokens to vault/plugin\n  /// @return The timestamp truncated to 32 bits\n  function lastFeeTransferTimestamp() external view returns (uint32);\n\n  /// @notice The amounts of token0 and token1 that will be sent to the vault\n  /// @dev Will be sent FEE_TRANSFER_FREQUENCY after communityFeeLastTimestamp\n  /// @return communityFeePending0 The amount of token0 that will be sent to the vault\n  /// @return communityFeePending1 The amount of token1 that will be sent to the vault\n  function getCommunityFeePending() external view returns (uint128 communityFeePending0, uint128 communityFeePending1);\n\n  /// @notice The amounts of token0 and token1 that will be sent to the plugin\n  /// @dev Will be sent FEE_TRANSFER_FREQUENCY after feeLastTransferTimestamp\n  /// @return pluginFeePending0 The amount of token0 that will be sent to the plugin\n  /// @return pluginFeePending1 The amount of token1 that will be sent to the plugin\n  function getPluginFeePending() external view returns (uint128 pluginFeePending0, uint128 pluginFeePending1);\n\n  /// @notice Returns the address of currently used plugin\n  /// @dev The plugin is subject to change\n  /// @return pluginAddress The address of currently used plugin\n  function plugin() external view returns (address pluginAddress);\n\n  /// @notice The contract to which community fees are transferred\n  /// @return communityVaultAddress The communityVault address\n  function communityVault() external view returns (address communityVaultAddress);\n\n  /// @notice Returns 256 packed tick initialized boolean values. See TickTree for more information\n  /// @param wordPosition Index of 256-bits word with ticks\n  /// @return The 256-bits word with packed ticks info\n  function tickTable(int16 wordPosition) external view returns (uint256);\n\n  /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool\n  /// @dev This value can overflow the uint256\n  /// @return The fee growth accumulator for token0\n  function totalFeeGrowth0Token() external view returns (uint256);\n\n  /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool\n  /// @dev This value can overflow the uint256\n  /// @return The fee growth accumulator for token1\n  function totalFeeGrowth1Token() external view returns (uint256);\n\n  /// @notice The current pool fee value\n  /// @dev In case dynamic fee is enabled in the pool, this method will call the plugin to get the current fee.\n  /// If the plugin implements complex fee logic, this method may return an incorrect value or revert.\n  /// In this case, see the plugin implementation and related documentation.\n  /// @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @return currentFee The current pool fee value in hundredths of a bip, i.e. 1e-6\n  function fee() external view returns (uint16 currentFee);\n\n  /// @notice The tracked token0 and token1 reserves of pool\n  /// @dev If at any time the real balance is larger, the excess will be transferred to liquidity providers as additional fee.\n  /// If the balance exceeds uint128, the excess will be sent to the communityVault.\n  /// @return reserve0 The last known reserve of token0\n  /// @return reserve1 The last known reserve of token1\n  function getReserves() external view returns (uint128 reserve0, uint128 reserve1);\n\n  /// @notice Returns the information about a position by the position's key\n  /// @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @param key The position's key is a packed concatenation of the owner address, bottomTick and topTick indexes\n  /// @return liquidity The amount of liquidity in the position\n  /// @return innerFeeGrowth0Token Fee growth of token0 inside the tick range as of the last mint/burn/poke\n  /// @return innerFeeGrowth1Token Fee growth of token1 inside the tick range as of the last mint/burn/poke\n  /// @return fees0 The computed amount of token0 owed to the position as of the last mint/burn/poke\n  /// @return fees1 The computed amount of token1 owed to the position as of the last mint/burn/poke\n  function positions(\n    bytes32 key\n  ) external view returns (uint256 liquidity, uint256 innerFeeGrowth0Token, uint256 innerFeeGrowth1Token, uint128 fees0, uint128 fees1);\n\n  /// @notice The currently in range liquidity available to the pool\n  /// @dev This value has no relationship to the total liquidity across all ticks.\n  /// Returned value cannot exceed type(uint128).max\n  /// @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @return The current in range liquidity\n  function liquidity() external view returns (uint128);\n\n  /// @notice The current tick spacing\n  /// @dev Ticks can only be initialized by new mints at multiples of this value\n  /// e.g.: a tickSpacing of 60 means ticks can be initialized every 60th tick, i.e., ..., -120, -60, 0, 60, 120, ...\n  /// However, tickspacing can be changed after the ticks have been initialized.\n  /// This value is an int24 to avoid casting even though it is always positive.\n  /// @return The current tick spacing\n  function tickSpacing() external view returns (int24);\n\n  /// @notice The previous initialized tick before (or at) current global tick\n  /// @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @return The previous initialized tick\n  function prevTickGlobal() external view returns (int24);\n\n  /// @notice The next initialized tick after current global tick\n  /// @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @return The next initialized tick\n  function nextTickGlobal() external view returns (int24);\n\n  /// @notice The root of tick search tree\n  /// @dev Each bit corresponds to one node in the second layer of tick tree: '1' if node has at least one active bit.\n  /// **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @return The root of tick search tree as bitmap\n  function tickTreeRoot() external view returns (uint32);\n\n  /// @notice The second layer of tick search tree\n  /// @dev Each bit in node corresponds to one node in the leafs layer (`tickTable`) of tick tree: '1' if leaf has at least one active bit.\n  /// **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n  /// @return The node of tick search tree second layer\n  function tickTreeSecondLayer(int16) external view returns (uint256);\n}\n"},"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title The interface for the Algebra Vault Factory\n/// @notice This contract can be used for automatic vaults creation\n/// @dev Version: Algebra Integral\ninterface IAlgebraVaultFactory {\n  /// @notice returns address of the community fee vault for the pool\n  /// @param pool the address of Algebra Integral pool\n  /// @return communityFeeVault the address of community fee vault\n  function getVaultForPool(address pool) external view returns (address communityFeeVault);\n\n  /// @notice creates the community fee vault for the pool if needed\n  /// @param pool the address of Algebra Integral pool\n  /// @return communityFeeVault the address of community fee vault\n  function createVaultForPool(\n    address pool,\n    address creator,\n    address deployer,\n    address token0,\n    address token1\n  ) external returns (address communityFeeVault);\n}\n"},"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.8.4 <0.9.0;\n\nimport '../interfaces/pool/IAlgebraPoolErrors.sol';\n\n/// @title Contains logic and constants for interacting with the plugin through hooks\n/// @dev Allows pool to check which hooks are enabled, as well as control the return selector\nlibrary Plugins {\n  function hasFlag(uint8 pluginConfig, uint256 flag) internal pure returns (bool res) {\n    assembly {\n      res := gt(and(pluginConfig, flag), 0)\n    }\n  }\n\n  function shouldReturn(bytes4 selector, bytes4 expectedSelector) internal pure {\n    if (selector != expectedSelector) revert IAlgebraPoolErrors.invalidHookResponse(expectedSelector);\n  }\n\n  uint256 internal constant BEFORE_SWAP_FLAG = 1;\n  uint256 internal constant AFTER_SWAP_FLAG = 1 << 1;\n  uint256 internal constant BEFORE_POSITION_MODIFY_FLAG = 1 << 2;\n  uint256 internal constant AFTER_POSITION_MODIFY_FLAG = 1 << 3;\n  uint256 internal constant BEFORE_FLASH_FLAG = 1 << 4;\n  uint256 internal constant AFTER_FLASH_FLAG = 1 << 5;\n  uint256 internal constant AFTER_INIT_FLAG = 1 << 6;\n  uint256 internal constant DYNAMIC_FEE = 1 << 7;\n}\n"},"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity >=0.8.4 <0.9.0;\n\nimport '../interfaces/pool/IAlgebraPoolErrors.sol';\n\n/// @title SafeTransfer\n/// @notice Safe ERC20 transfer library that gracefully handles missing return values.\n/// @dev Credit to Solmate under MIT license: https://github.com/transmissions11/solmate/blob/ed67feda67b24fdeff8ad1032360f0ee6047ba0a/src/utils/SafeTransferLib.sol\n/// @dev Please note that this library does not check if the token has a code! That responsibility is delegated to the caller.\nlibrary SafeTransfer {\n  /// @notice Transfers tokens to a recipient\n  /// @dev Calls transfer on token contract, errors with transferFailed() if transfer fails\n  /// @param token The contract address of the token which will be transferred\n  /// @param to The recipient of the transfer\n  /// @param amount The amount of the token to transfer\n  function safeTransfer(address token, address to, uint256 amount) internal {\n    bool success;\n    assembly {\n      let freeMemoryPointer := mload(0x40) // we will need to restore 0x40 slot\n      mstore(0x00, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) // \"transfer(address,uint256)\" selector\n      mstore(0x04, and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // append cleaned \"to\" address\n      mstore(0x24, amount)\n      // now we use 0x00 - 0x44 bytes (68), freeMemoryPointer is dirty\n      success := call(gas(), token, 0, 0, 0x44, 0, 0x20)\n      success := and(\n        // set success to true if call isn't reverted and returned exactly 1 (can't just be non-zero data) or nothing\n        or(and(eq(mload(0), 1), eq(returndatasize(), 32)), iszero(returndatasize())),\n        success\n      )\n      mstore(0x40, freeMemoryPointer) // restore the freeMemoryPointer\n    }\n\n    if (!success) revert IAlgebraPoolErrors.transferFailed();\n  }\n}\n"},"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.2;\n\nimport \"../../utils/AddressUpgradeable.sol\";\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n *     function initialize() initializer public {\n *         __ERC20_init(\"MyToken\", \"MTK\");\n *     }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n *     function initializeV2() reinitializer(2) public {\n *         __ERC20Permit_init(\"MyToken\");\n *     }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n *     _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n    /**\n     * @dev Indicates that the contract has been initialized.\n     * @custom:oz-retyped-from bool\n     */\n    uint8 private _initialized;\n\n    /**\n     * @dev Indicates that the contract is in the process of being initialized.\n     */\n    bool private _initializing;\n\n    /**\n     * @dev Triggered when the contract has been initialized or reinitialized.\n     */\n    event Initialized(uint8 version);\n\n    /**\n     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n     * `onlyInitializing` functions can be used to initialize parent contracts.\n     *\n     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n     * constructor.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier initializer() {\n        bool isTopLevelCall = !_initializing;\n        require(\n            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),\n            \"Initializable: contract is already initialized\"\n        );\n        _initialized = 1;\n        if (isTopLevelCall) {\n            _initializing = true;\n        }\n        _;\n        if (isTopLevelCall) {\n            _initializing = false;\n            emit Initialized(1);\n        }\n    }\n\n    /**\n     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n     * used to initialize parent contracts.\n     *\n     * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n     * are added through upgrades and that require initialization.\n     *\n     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n     * cannot be nested. If one is invoked in the context of another, execution will revert.\n     *\n     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n     * a contract, executing them in the right order is up to the developer or operator.\n     *\n     * WARNING: setting the version to 255 will prevent any future reinitialization.\n     *\n     * Emits an {Initialized} event.\n     */\n    modifier reinitializer(uint8 version) {\n        require(!_initializing && _initialized < version, \"Initializable: contract is already initialized\");\n        _initialized = version;\n        _initializing = true;\n        _;\n        _initializing = false;\n        emit Initialized(version);\n    }\n\n    /**\n     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n     * {initializer} and {reinitializer} modifiers, directly or indirectly.\n     */\n    modifier onlyInitializing() {\n        require(_initializing, \"Initializable: contract is not initializing\");\n        _;\n    }\n\n    /**\n     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n     * through proxies.\n     *\n     * Emits an {Initialized} event the first time it is successfully executed.\n     */\n    function _disableInitializers() internal virtual {\n        require(!_initializing, \"Initializable: contract is initializing\");\n        if (_initialized != type(uint8).max) {\n            _initialized = type(uint8).max;\n            emit Initialized(type(uint8).max);\n        }\n    }\n\n    /**\n     * @dev Returns the highest version that has been initialized. See {reinitializer}.\n     */\n    function _getInitializedVersion() internal view returns (uint8) {\n        return _initialized;\n    }\n\n    /**\n     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n     */\n    function _isInitializing() internal view returns (bool) {\n        return _initializing;\n    }\n}\n"},"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol":{"content":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary AddressUpgradeable {\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     * Furthermore, `isContract` will also return true if the target contract within\n     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n     * which only has an effect at the end of a transaction.\n     * ====\n     *\n     * [IMPORTANT]\n     * ====\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\n     *\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n     * constructor.\n     * ====\n     */\n    function isContract(address account) internal view returns (bool) {\n        // This method relies on extcodesize/address.code.length, which returns 0\n        // for contracts in construction, since the code is only stored at the end\n        // of the constructor execution.\n\n        return account.code.length > 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://consensys.net/diligence/blog/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.8.0/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        (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 functionCallWithValue(target, data, 0, \"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(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) 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(\n        address target,\n        bytes memory data,\n        uint256 value,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, 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(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, 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(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n     *\n     * _Available since v4.8._\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        if (success) {\n            if (returndata.length == 0) {\n                // only check isContract if the call was successful and the return data is empty\n                // otherwise we already know that it was a contract\n                require(isContract(target), \"Address: call to non-contract\");\n            }\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n     * revert reason or using the provided one.\n     *\n     * _Available since v4.3._\n     */\n    function verifyCallResult(\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal pure returns (bytes memory) {\n        if (success) {\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\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            /// @solidity memory-safe-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"},"contracts/FeeDiscountConnector.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity =0.8.20;\n\nimport '@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol';\nimport '@cryptoalgebra/abstract-plugin/contracts/BaseConnector.sol';\nimport './interfaces/IFeeDiscountPlugin.sol';\nimport './interfaces/IFeeDiscountPluginImplementation.sol';\nimport './libraries/FeeDiscountStorage.sol';\n\n/// @title FeeDiscount Connector\n/// @notice This contract provides delegatecall interface to FeeDiscount plugin implementation\nabstract contract FeeDiscountConnector is IFeeDiscountPlugin, BaseConnector {\n  using Plugins for uint8;\n\n  string internal constant FEE_DISCOUNT_MODULE_NAME = 'Fee Discount Plugin';\n  uint8 internal constant FEE_DISCOUNT_PLUGIN_CONFIG = uint8(Plugins.BEFORE_SWAP_FLAG);\n\n  /// @dev changes only on full plugin upgrade\n  address internal immutable feeDiscountImplementation;\n\n  constructor(address _feeDiscountImplementation) {\n    feeDiscountImplementation = _feeDiscountImplementation;\n  }\n\n  /// @notice Initialize FeeDiscount plugin via delegatecall\n  function _initializeFeeDiscount(address _feeDiscountRegistry) internal {\n    _delegateCall(\n      feeDiscountImplementation,\n      abi.encodeCall(IFeeDiscountPluginImplementation.initializeFeeDiscount, (_feeDiscountRegistry))\n    );\n  }\n\n  /// @notice Apply fee discount via delegatecall\n  function _applyFeeDiscount(address user, address pool, uint24 fee) internal returns (uint24) {\n    bytes memory returnData = _delegateCall(\n      feeDiscountImplementation,\n      abi.encodeCall(IFeeDiscountPluginImplementation.applyFeeDiscount, (user, pool, fee))\n    );\n    return abi.decode(returnData, (uint24));\n  }\n\n  // ###### Public Interface (IFeeDiscountPlugin) ######\n\n  /// @inheritdoc IFeeDiscountPlugin\n  function setFeeDiscountRegistry(address registry) external override {\n    _authorize();\n    _delegateCall(feeDiscountImplementation, abi.encodeCall(IFeeDiscountPluginImplementation.setFeeDiscountRegistry, (registry)));\n    emit FeeDiscountRegistry(registry);\n  }\n\n  /// @inheritdoc IFeeDiscountPlugin\n  function feeDiscountRegistry() external view override returns (address) {\n    return FeeDiscountStorage.layout().feeDiscountRegistry;\n  }\n}\n"},"contracts/FeeDiscountPluginImplementation.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity =0.8.20;\n\nimport './interfaces/IFeeDiscountRegistry.sol';\nimport './interfaces/IFeeDiscountPluginImplementation.sol';\nimport './libraries/FeeDiscountStorage.sol';\n\n/// @title FeeDiscount Plugin Implementation\n/// @notice This contract contains logic for FeeDiscount plugin that works with namespaced storage\n/// @dev Called via delegatecall from FeeDiscountConnector to reduce main contract size\ncontract FeeDiscountPluginImplementation is IFeeDiscountPluginImplementation {\n  uint16 private constant FEE_DISCOUNT_DENOMINATOR = 1000;\n\n  /// @notice Initialize FeeDiscount plugin\n  /// @param _feeDiscountRegistry Address of fee discount registry\n  function initializeFeeDiscount(address _feeDiscountRegistry) external {\n    FeeDiscountStorage.layout().feeDiscountRegistry = _feeDiscountRegistry;\n  }\n\n  /// @notice Set fee discount registry\n  /// @param _feeDiscountRegistry New fee discount registry address\n  function setFeeDiscountRegistry(address _feeDiscountRegistry) external {\n    FeeDiscountStorage.layout().feeDiscountRegistry = _feeDiscountRegistry;\n  }\n\n  /// @notice Get fee discount registry\n  /// @return Fee discount registry address\n  function getFeeDiscountRegistry() external view returns (address) {\n    return FeeDiscountStorage.layout().feeDiscountRegistry;\n  }\n\n  /// @notice Apply fee discount for user\n  /// @param user User address\n  /// @param pool Pool address\n  /// @param fee Original fee\n  /// @return updatedFee Fee after discount\n  function applyFeeDiscount(address user, address pool, uint24 fee) external returns (uint24 updatedFee) {\n    uint16 feeDiscount = IFeeDiscountRegistry(FeeDiscountStorage.layout().feeDiscountRegistry).feeDiscounts(user, pool);\n    updatedFee = uint24((uint256(fee) * (FEE_DISCOUNT_DENOMINATOR - feeDiscount)) / FEE_DISCOUNT_DENOMINATOR);\n  }\n}\n"},"contracts/interfaces/IFeeDiscountPlugin.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\ninterface IFeeDiscountPlugin {\n  function setFeeDiscountRegistry(address registry) external;\n\n  function feeDiscountRegistry() external view returns (address);\n\n  event FeeDiscountRegistry(address registry);\n}\n"},"contracts/interfaces/IFeeDiscountPluginFactory.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title The interface for the IFeeDiscountPluginFactory\ninterface IFeeDiscountPluginFactory {\n  /// @notice Emitted when the fee discount registry is changed\n  /// @param newFeeDiscountRegistry The new fee discount registry address\n  event FeeDiscountRegistry(address newFeeDiscountRegistry);\n\n  /// @notice Returns the address of the fee discount registry\n  /// @return The fee discount registry contract address\n  function feeDiscountRegistry() external view returns (address);\n\n  /// @notice Changes the fee discount registry address\n  /// @param newFeeDiscountRegistry The new fee discount registry address\n  function setFeeDiscountRegistry(address newFeeDiscountRegistry) external;\n}\n"},"contracts/interfaces/IFeeDiscountPluginImplementation.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity =0.8.20;\n\n/// @title IFeeDiscountPluginImplementation\n/// @notice Interface for FeeDiscount plugin implementation contract\n/// @dev Used for type-safe delegatecall encoding in FeeDiscountConnector\ninterface IFeeDiscountPluginImplementation {\n  function initializeFeeDiscount(address _feeDiscountRegistry) external;\n  function setFeeDiscountRegistry(address _feeDiscountRegistry) external;\n  function getFeeDiscountRegistry() external view returns (address);\n  function applyFeeDiscount(address user, address pool, uint24 fee) external returns (uint24 updatedFee);\n}\n"},"contracts/interfaces/IFeeDiscountRegistry.sol":{"content":"// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\ninterface IFeeDiscountRegistry {\n  event FeeDiscount(address user, address pool, uint16 newDiscount);\n\n  function feeDiscounts(address user, address pool) external returns (uint16 feeDiscount);\n  function setFeeDiscount(address user, address[] memory pools, uint16[] memory newDiscounts) external;\n\n  function algebraFactory() external view returns (address);\n  function FEE_DISCOUNT_MANAGER() external pure returns (bytes32);\n  function FEE_DISCOUNT_DENOMINATOR() external pure returns (uint16);\n}\n"},"contracts/libraries/FeeDiscountStorage.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity =0.8.20;\n\n/// @dev Shared namespaced storage for FeeDiscount plugin (used by connector + implementation).\nlibrary FeeDiscountStorage {\n  /// @dev keccak256(abi.encode(uint256(keccak256(\"erc7201:algebra.storage.feediscount\")) - 1)) & ~bytes32(uint256(0xff))\n  bytes32 internal constant NAMESPACE = 0xb52f6c388bc01f052495924fd2facf0f81baeac5975b25912d0279719977d300;\n\n  struct Layout {\n    address feeDiscountRegistry;\n  }\n\n  function layout() internal pure returns (Layout storage l) {\n    bytes32 position = NAMESPACE;\n    assembly {\n      l.slot := position\n    }\n  }\n}\n"},"contracts/test/UpgradeableFeeDiscountPluginTest.sol":{"content":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity =0.8.20;\n\nimport '@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol';\nimport '@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol';\nimport '@cryptoalgebra/abstract-plugin/contracts/UpgradeableAbstractPlugin.sol';\n\nimport '../FeeDiscountConnector.sol';\n\n/// @title Upgradeable FeeDiscount Plugin for Testing\n/// @notice Test implementation of an upgradeable plugin using Beacon Proxy pattern with FeeDiscount connector\ncontract UpgradeableFeeDiscountPluginTest is UpgradeableAbstractPlugin, FeeDiscountConnector {\n  using Plugins for uint8;\n\n  /// @dev Constructor sets immutable implementation address\n  /// @param _factory The Algebra factory address\n  /// @param _pluginFactory The plugin factory address\n  /// @param _feeDiscountImplementation The FeeDiscount implementation address\n  constructor(\n    address _factory,\n    address _pluginFactory,\n    address _feeDiscountImplementation\n  ) UpgradeableAbstractPlugin(_factory, _pluginFactory) FeeDiscountConnector(_feeDiscountImplementation) {}\n\n  /// @notice Initialize the plugin for a specific pool\n  /// @param _pool The pool address this plugin is attached to\n  /// @param _feeDiscountRegistry The fee discount registry address\n  function initialize(address _pool, address _feeDiscountRegistry) external initializer onlyPluginFactory {\n    _initializeFeeDiscount(_feeDiscountRegistry);\n  }\n\n  /// @inheritdoc IAbstractPlugin\n  function getActiveModuleNames() external pure override returns (string[] memory moduleNames) {\n    moduleNames = new string[](1);\n    moduleNames[0] = FEE_DISCOUNT_MODULE_NAME;\n  }\n\n  function defaultPluginConfig() public view override returns (uint8) {\n    return FEE_DISCOUNT_PLUGIN_CONFIG;\n  }\n\n  // ###### HOOKS ######\n\n  function beforeInitialize(address, uint160) external override onlyPool returns (bytes4) {\n    _updatePluginConfigInPool(defaultPluginConfig());\n    return IAlgebraPlugin.beforeInitialize.selector;\n  }\n\n  function beforeSwap(\n    address sender,\n    address,\n    bool,\n    int256,\n    uint160,\n    bool,\n    bytes calldata\n  ) external override onlyPool returns (bytes4, uint24, uint24) {\n    (, , uint16 fee, ) = _getPoolState();\n    uint24 discountedFee = _applyFeeDiscount(sender, _getPool(), fee);\n    return (IAlgebraPlugin.beforeSwap.selector, discountedFee, 0);\n  }\n\n  // ###### Authorization ######\n\n  /// @dev Authorization check for FeeDiscountConnector - only ALGEBRA_BASE_PLUGIN_MANAGER\n  function _authorize() internal view override(UpgradeableAbstractPlugin, BaseConnector) {\n    require(IAlgebraFactory(factory).hasRoleOrOwner(ALGEBRA_BASE_PLUGIN_MANAGER, msg.sender), 'Not authorized');\n  }\n}\n"}},"settings":{"evmVersion":"paris","optimizer":{"enabled":true,"runs":1000000},"metadata":{"bytecodeHash":"none"},"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"],"":["ast"]}}}},"output":{"errors":[{"component":"general","errorCode":"5667","formattedMessage":"Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.\n  --> contracts/test/UpgradeableFeeDiscountPluginTest.sol:28:23:\n   |\n28 |   function initialize(address _pool, address _feeDiscountRegistry) external initializer onlyPluginFactory {\n   |                       ^^^^^^^^^^^^^\n\n","message":"Unused function parameter. Remove or comment out the variable name to silence this warning.","severity":"warning","sourceLocation":{"end":1310,"file":"contracts/test/UpgradeableFeeDiscountPluginTest.sol","start":1297},"type":"Warning"},{"component":"general","errorCode":"2018","formattedMessage":"Warning: Function state mutability can be restricted to pure\n  --> contracts/test/UpgradeableFeeDiscountPluginTest.sol:38:3:\n   |\n38 |   function defaultPluginConfig() public view override returns (uint8) {\n   |   ^ (Relevant source part starts here and spans across multiple lines).\n\n","message":"Function state mutability can be restricted to pure","severity":"warning","sourceLocation":{"end":1770,"file":"contracts/test/UpgradeableFeeDiscountPluginTest.sol","start":1658},"type":"Warning"}],"sources":{"@cryptoalgebra/abstract-plugin/contracts/BaseConnector.sol":{"ast":{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/BaseConnector.sol","exportedSymbols":{"BaseConnector":[46]},"id":47,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":1,"literals":["solidity","=","0.8",".20"],"nodeType":"PragmaDirective","src":"37:24:0"},{"abstract":true,"baseContracts":[],"canonicalName":"BaseConnector","contractDependencies":[],"contractKind":"contract","documentation":{"id":2,"nodeType":"StructuredDocumentation","src":"63:127:0","text":"@title Base Connector\n @notice Abstract base contract for all plugin connectors providing common delegatecall utilities"},"fullyImplemented":false,"id":46,"linearizedBaseContracts":[46],"name":"BaseConnector","nameLocation":"208:13:0","nodeType":"ContractDefinition","nodes":[{"errorSelector":"70473732","id":4,"name":"ConnectorDelegatecallFailed","nameLocation":"232:27:0","nodeType":"ErrorDefinition","parameters":{"id":3,"nodeType":"ParameterList","parameters":[],"src":"259:2:0"},"src":"226:36:0"},{"body":{"id":40,"nodeType":"Block","src":"631:285:0","statements":[{"assignments":[15],"declarations":[{"constant":false,"id":15,"mutability":"mutable","name":"success","nameLocation":"642:7:0","nodeType":"VariableDeclaration","scope":40,"src":"637:12:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":14,"name":"bool","nodeType":"ElementaryTypeName","src":"637:4:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"id":16,"nodeType":"VariableDeclarationStatement","src":"637:12:0"},{"expression":{"id":24,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"components":[{"id":17,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":15,"src":"656:7:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"id":18,"name":"returnData","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":12,"src":"665:10:0","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"id":19,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"655:21:0","typeDescriptions":{"typeIdentifier":"t_tuple$_t_bool_$_t_bytes_memory_ptr_$","typeString":"tuple(bool,bytes memory)"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"id":22,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":9,"src":"707:4:0","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"expression":{"id":20,"name":"implementation","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":7,"src":"679:14:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":21,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"694:12:0","memberName":"delegatecall","nodeType":"MemberAccess","src":"679:27:0","typeDescriptions":{"typeIdentifier":"t_function_baredelegatecall_nonpayable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$","typeString":"function (bytes memory) returns (bool,bytes memory)"}},"id":23,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"679:33:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_bool_$_t_bytes_memory_ptr_$","typeString":"tuple(bool,bytes memory)"}},"src":"655:57:0","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":25,"nodeType":"ExpressionStatement","src":"655:57:0"},{"condition":{"id":27,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"722:8:0","subExpression":{"id":26,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":15,"src":"723:7:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":39,"nodeType":"IfStatement","src":"718:194:0","trueBody":{"id":38,"nodeType":"Block","src":"732:180:0","statements":[{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":31,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":28,"name":"returnData","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":12,"src":"744:10:0","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":29,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"755:6:0","memberName":"length","nodeType":"MemberAccess","src":"744:17:0","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"hexValue":"30","id":30,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"764:1:0","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"744:21:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":34,"nodeType":"IfStatement","src":"740:122:0","trueBody":{"id":33,"nodeType":"Block","src":"767:95:0","statements":[{"AST":{"nodeType":"YulBlock","src":"786:68:0","statements":[{"expression":{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"809:2:0","type":"","value":"32"},{"name":"returnData","nodeType":"YulIdentifier","src":"813:10:0"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"805:3:0"},"nodeType":"YulFunctionCall","src":"805:19:0"},{"arguments":[{"name":"returnData","nodeType":"YulIdentifier","src":"832:10:0"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"826:5:0"},"nodeType":"YulFunctionCall","src":"826:17:0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"798:6:0"},"nodeType":"YulFunctionCall","src":"798:46:0"},"nodeType":"YulExpressionStatement","src":"798:46:0"}]},"evmVersion":"paris","externalReferences":[{"declaration":12,"isOffset":false,"isSlot":false,"src":"813:10:0","valueSize":1},{"declaration":12,"isOffset":false,"isSlot":false,"src":"832:10:0","valueSize":1}],"id":32,"nodeType":"InlineAssembly","src":"777:77:0"}]}},{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"id":35,"name":"ConnectorDelegatecallFailed","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4,"src":"876:27:0","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":36,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"876:29:0","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":37,"nodeType":"RevertStatement","src":"869:36:0"}]}}]},"documentation":{"id":5,"nodeType":"StructuredDocumentation","src":"266:253:0","text":"@dev Execute delegatecall and revert with original error if failed\n @param implementation The implementation address to delegatecall\n @param data The encoded function call data\n @return returnData The return data from the delegatecall"},"id":41,"implemented":true,"kind":"function","modifiers":[],"name":"_delegateCall","nameLocation":"531:13:0","nodeType":"FunctionDefinition","parameters":{"id":10,"nodeType":"ParameterList","parameters":[{"constant":false,"id":7,"mutability":"mutable","name":"implementation","nameLocation":"553:14:0","nodeType":"VariableDeclaration","scope":41,"src":"545:22:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":6,"name":"address","nodeType":"ElementaryTypeName","src":"545:7:0","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":9,"mutability":"mutable","name":"data","nameLocation":"582:4:0","nodeType":"VariableDeclaration","scope":41,"src":"569:17:0","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":8,"name":"bytes","nodeType":"ElementaryTypeName","src":"569:5:0","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"544:43:0"},"returnParameters":{"id":13,"nodeType":"ParameterList","parameters":[{"constant":false,"id":12,"mutability":"mutable","name":"returnData","nameLocation":"619:10:0","nodeType":"VariableDeclaration","scope":41,"src":"606:23:0","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":11,"name":"bytes","nodeType":"ElementaryTypeName","src":"606:5:0","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"605:25:0"},"scope":46,"src":"522:394:0","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"documentation":{"id":42,"nodeType":"StructuredDocumentation","src":"920:74:0","text":"@dev Must be implemented by inheriting contract to check authorization"},"id":45,"implemented":false,"kind":"function","modifiers":[],"name":"_authorize","nameLocation":"1006:10:0","nodeType":"FunctionDefinition","parameters":{"id":43,"nodeType":"ParameterList","parameters":[],"src":"1016:2:0"},"returnParameters":{"id":44,"nodeType":"ParameterList","parameters":[],"src":"1040:0:0"},"scope":46,"src":"997:44:0","stateMutability":"view","virtual":true,"visibility":"internal"}],"scope":47,"src":"190:853:0","usedErrors":[4],"usedEvents":[]}],"src":"37:1007:0"},"id":0},"@cryptoalgebra/abstract-plugin/contracts/UpgradeableAbstractPlugin.sol":{"ast":{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/UpgradeableAbstractPlugin.sol","exportedSymbols":{"AddressUpgradeable":[2308],"IAbstractPlugin":[539],"IAlgebraFactory":[831],"IAlgebraPlugin":[1019],"IAlgebraPluginFactory":[1051],"IAlgebraPluginProxy":[547],"IAlgebraPool":[853],"IAlgebraPoolActions":[1167],"IAlgebraPoolErrors":[1269],"IAlgebraPoolEvents":[1421],"IAlgebraPoolImmutables":[1449],"IAlgebraPoolPermissionedActions":[1497],"IAlgebraPoolState":[1681],"IAlgebraVaultFactory":[1709],"Initializable":[1978],"Plugins":[1781],"SafeTransfer":[1809],"Timestamp":[564],"UpgradeableAbstractPlugin":[508]},"id":509,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":48,"literals":["solidity","^","0.8",".20"],"nodeType":"PragmaDirective","src":"37:24:1"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol","file":"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol","id":49,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":509,"sourceUnit":565,"src":"63:74:1","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","file":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","id":50,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":509,"sourceUnit":1782,"src":"138:70:1","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol","file":"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol","id":51,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":509,"sourceUnit":1810,"src":"209:75:1","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol","id":52,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":509,"sourceUnit":832,"src":"286:79:1","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol","id":53,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":509,"sourceUnit":1682,"src":"366:86:1","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol","id":54,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":509,"sourceUnit":854,"src":"453:76:1","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol","id":55,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":509,"sourceUnit":1020,"src":"530:85:1","symbolAliases":[],"unitAlias":""},{"absolutePath":"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol","file":"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol","id":56,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":509,"sourceUnit":1979,"src":"617:75:1","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol","file":"./interfaces/IAbstractPlugin.sol","id":57,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":509,"sourceUnit":540,"src":"694:42:1","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAlgebraPluginProxy.sol","file":"./interfaces/IAlgebraPluginProxy.sol","id":58,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":509,"sourceUnit":548,"src":"737:46:1","symbolAliases":[],"unitAlias":""},{"abstract":true,"baseContracts":[{"baseName":{"id":60,"name":"Initializable","nameLocations":["971:13:1"],"nodeType":"IdentifierPath","referencedDeclaration":1978,"src":"971:13:1"},"id":61,"nodeType":"InheritanceSpecifier","src":"971:13:1"},{"baseName":{"id":62,"name":"IAbstractPlugin","nameLocations":["986:15:1"],"nodeType":"IdentifierPath","referencedDeclaration":539,"src":"986:15:1"},"id":63,"nodeType":"InheritanceSpecifier","src":"986:15:1"},{"baseName":{"id":64,"name":"Timestamp","nameLocations":["1003:9:1"],"nodeType":"IdentifierPath","referencedDeclaration":564,"src":"1003:9:1"},"id":65,"nodeType":"InheritanceSpecifier","src":"1003:9:1"}],"canonicalName":"UpgradeableAbstractPlugin","contractDependencies":[],"contractKind":"contract","documentation":{"id":59,"nodeType":"StructuredDocumentation","src":"785:139:1","text":"@title Algebra Integral 1.2.2 Upgradeable Abstract Plugin\n @notice Base contract for upgradeable plugins using Beacon Proxy pattern"},"fullyImplemented":false,"id":508,"linearizedBaseContracts":[508,564,539,1019,1978],"name":"UpgradeableAbstractPlugin","nameLocation":"942:25:1","nodeType":"ContractDefinition","nodes":[{"global":false,"id":68,"libraryName":{"id":66,"name":"Plugins","nameLocations":["1023:7:1"],"nodeType":"IdentifierPath","referencedDeclaration":1781,"src":"1023:7:1"},"nodeType":"UsingForDirective","src":"1017:24:1","typeName":{"id":67,"name":"uint8","nodeType":"ElementaryTypeName","src":"1035:5:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}},{"constant":true,"documentation":{"id":69,"nodeType":"StructuredDocumentation","src":"1045:46:1","text":"@dev Offset in AlgebraPluginProxy bytecode"},"functionSelector":"36badf63","id":72,"mutability":"constant","name":"POOL_ADDRESS_OFFSET","nameLocation":"1118:19:1","nodeType":"VariableDeclaration","scope":508,"src":"1094:48:1","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":70,"name":"uint256","nodeType":"ElementaryTypeName","src":"1094:7:1","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"hexValue":"3735","id":71,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1140:2:1","typeDescriptions":{"typeIdentifier":"t_rational_75_by_1","typeString":"int_const 75"},"value":"75"},"visibility":"public"},{"constant":true,"documentation":{"id":73,"nodeType":"StructuredDocumentation","src":"1146:50:1","text":"@dev The role can be granted in AlgebraFactory"},"functionSelector":"31b25d1a","id":78,"mutability":"constant","name":"ALGEBRA_BASE_PLUGIN_MANAGER","nameLocation":"1223:27:1","nodeType":"VariableDeclaration","scope":508,"src":"1199:94:1","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":74,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1199:7:1","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":{"arguments":[{"hexValue":"414c47454252415f424153455f504c5547494e5f4d414e41474552","id":76,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"1263:29:1","typeDescriptions":{"typeIdentifier":"t_stringliteral_8e8000aba5b365c0be9685da1153f7f096e76d1ecfb42c050ae1e387aa65b4f5","typeString":"literal_string \"ALGEBRA_BASE_PLUGIN_MANAGER\""},"value":"ALGEBRA_BASE_PLUGIN_MANAGER"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_8e8000aba5b365c0be9685da1153f7f096e76d1ecfb42c050ae1e387aa65b4f5","typeString":"literal_string \"ALGEBRA_BASE_PLUGIN_MANAGER\""}],"id":75,"name":"keccak256","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-8,"src":"1253:9:1","typeDescriptions":{"typeIdentifier":"t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$","typeString":"function (bytes memory) pure returns (bytes32)"}},"id":77,"isConstant":false,"isLValue":false,"isPure":true,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1253:40:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"public"},{"constant":false,"documentation":{"id":79,"nodeType":"StructuredDocumentation","src":"1298:34:1","text":"@dev shared across all proxies"},"functionSelector":"c45a0155","id":81,"mutability":"immutable","name":"factory","nameLocation":"1360:7:1","nodeType":"VariableDeclaration","scope":508,"src":"1335:32:1","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":80,"name":"address","nodeType":"ElementaryTypeName","src":"1335:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"public"},{"constant":false,"documentation":{"id":82,"nodeType":"StructuredDocumentation","src":"1372:34:1","text":"@dev shared across all proxies"},"functionSelector":"e2a1bd59","id":84,"mutability":"immutable","name":"pluginFactory","nameLocation":"1434:13:1","nodeType":"VariableDeclaration","scope":508,"src":"1409:38:1","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":83,"name":"address","nodeType":"ElementaryTypeName","src":"1409:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"public"},{"body":{"id":90,"nodeType":"Block","src":"1472:36:1","statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":86,"name":"_checkIfFromPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":157,"src":"1478:16:1","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$__$","typeString":"function () view"}},"id":87,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1478:18:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":88,"nodeType":"ExpressionStatement","src":"1478:18:1"},{"id":89,"nodeType":"PlaceholderStatement","src":"1502:1:1"}]},"id":91,"name":"onlyPool","nameLocation":"1461:8:1","nodeType":"ModifierDefinition","parameters":{"id":85,"nodeType":"ParameterList","parameters":[],"src":"1469:2:1"},"src":"1452:56:1","virtual":false,"visibility":"internal"},{"body":{"id":102,"nodeType":"Block","src":"1541:77:1","statements":[{"condition":{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":96,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":93,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"1551:3:1","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":94,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1555:6:1","memberName":"sender","nodeType":"MemberAccess","src":"1551:10:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"id":95,"name":"pluginFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":84,"src":"1565:13:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"1551:27:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":100,"nodeType":"IfStatement","src":"1547:59:1","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"id":97,"name":"OnlyPluginFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":519,"src":"1587:17:1","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":98,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1587:19:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":99,"nodeType":"RevertStatement","src":"1580:26:1"}},{"id":101,"nodeType":"PlaceholderStatement","src":"1612:1:1"}]},"id":103,"name":"onlyPluginFactory","nameLocation":"1521:17:1","nodeType":"ModifierDefinition","parameters":{"id":92,"nodeType":"ParameterList","parameters":[],"src":"1538:2:1"},"src":"1512:106:1","virtual":false,"visibility":"internal"},{"body":{"id":121,"nodeType":"Block","src":"1676:93:1","statements":[{"expression":{"id":112,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":110,"name":"factory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":81,"src":"1682:7:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":111,"name":"_factory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":105,"src":"1692:8:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"1682:18:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":113,"nodeType":"ExpressionStatement","src":"1682:18:1"},{"expression":{"id":116,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":114,"name":"pluginFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":84,"src":"1706:13:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":115,"name":"_pluginFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":107,"src":"1722:14:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"1706:30:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":117,"nodeType":"ExpressionStatement","src":"1706:30:1"},{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":118,"name":"_disableInitializers","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1959,"src":"1742:20:1","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$__$returns$__$","typeString":"function ()"}},"id":119,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1742:22:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":120,"nodeType":"ExpressionStatement","src":"1742:22:1"}]},"id":122,"implemented":true,"kind":"constructor","modifiers":[],"name":"","nameLocation":"-1:-1:-1","nodeType":"FunctionDefinition","parameters":{"id":108,"nodeType":"ParameterList","parameters":[{"constant":false,"id":105,"mutability":"mutable","name":"_factory","nameLocation":"1642:8:1","nodeType":"VariableDeclaration","scope":122,"src":"1634:16:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":104,"name":"address","nodeType":"ElementaryTypeName","src":"1634:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":107,"mutability":"mutable","name":"_pluginFactory","nameLocation":"1660:14:1","nodeType":"VariableDeclaration","scope":122,"src":"1652:22:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":106,"name":"address","nodeType":"ElementaryTypeName","src":"1652:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1633:42:1"},"returnParameters":{"id":109,"nodeType":"ParameterList","parameters":[],"src":"1676:0:1"},"scope":508,"src":"1622:147:1","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":143,"nodeType":"Block","src":"1901:201:1","statements":[{"assignments":[129],"declarations":[{"constant":false,"id":129,"mutability":"mutable","name":"word","nameLocation":"1915:4:1","nodeType":"VariableDeclaration","scope":143,"src":"1907:12:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":128,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1907:7:1","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"}],"id":130,"nodeType":"VariableDeclarationStatement","src":"1907:12:1"},{"AST":{"nodeType":"YulBlock","src":"1934:120:1","statements":[{"nodeType":"YulVariableDeclaration","src":"1942:22:1","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1959:4:1","type":"","value":"0x40"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"1953:5:1"},"nodeType":"YulFunctionCall","src":"1953:11:1"},"variables":[{"name":"ptr","nodeType":"YulTypedName","src":"1946:3:1","type":""}]},{"expression":{"arguments":[{"arguments":[],"functionName":{"name":"address","nodeType":"YulIdentifier","src":"1983:7:1"},"nodeType":"YulFunctionCall","src":"1983:9:1"},{"name":"ptr","nodeType":"YulIdentifier","src":"1994:3:1"},{"name":"POOL_ADDRESS_OFFSET","nodeType":"YulIdentifier","src":"1999:19:1"},{"kind":"number","nodeType":"YulLiteral","src":"2020:2:1","type":"","value":"32"}],"functionName":{"name":"extcodecopy","nodeType":"YulIdentifier","src":"1971:11:1"},"nodeType":"YulFunctionCall","src":"1971:52:1"},"nodeType":"YulExpressionStatement","src":"1971:52:1"},{"nodeType":"YulAssignment","src":"2030:18:1","value":{"arguments":[{"name":"ptr","nodeType":"YulIdentifier","src":"2044:3:1"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"2038:5:1"},"nodeType":"YulFunctionCall","src":"2038:10:1"},"variableNames":[{"name":"word","nodeType":"YulIdentifier","src":"2030:4:1"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":72,"isOffset":false,"isSlot":false,"src":"1999:19:1","valueSize":1},{"declaration":129,"isOffset":false,"isSlot":false,"src":"2030:4:1","valueSize":1}],"id":131,"nodeType":"InlineAssembly","src":"1925:129:1"},{"expression":{"arguments":[{"arguments":[{"arguments":[{"id":138,"name":"word","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":129,"src":"2090:4:1","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"id":137,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2082:7:1","typeDescriptions":{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"},"typeName":{"id":136,"name":"uint256","nodeType":"ElementaryTypeName","src":"2082:7:1","typeDescriptions":{}}},"id":139,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2082:13:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":135,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2074:7:1","typeDescriptions":{"typeIdentifier":"t_type$_t_uint160_$","typeString":"type(uint160)"},"typeName":{"id":134,"name":"uint160","nodeType":"ElementaryTypeName","src":"2074:7:1","typeDescriptions":{}}},"id":140,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2074:22:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint160","typeString":"uint160"}],"id":133,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2066:7:1","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":132,"name":"address","nodeType":"ElementaryTypeName","src":"2066:7:1","typeDescriptions":{}}},"id":141,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2066:31:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"functionReturnParameters":127,"id":142,"nodeType":"Return","src":"2059:38:1"}]},"documentation":{"id":123,"nodeType":"StructuredDocumentation","src":"1773:65:1","text":"@dev Reads the pool address embedded in the proxy's bytecode."},"id":144,"implemented":true,"kind":"function","modifiers":[],"name":"_getPool","nameLocation":"1850:8:1","nodeType":"FunctionDefinition","parameters":{"id":124,"nodeType":"ParameterList","parameters":[],"src":"1858:2:1"},"returnParameters":{"id":127,"nodeType":"ParameterList","parameters":[{"constant":false,"id":126,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":144,"src":"1892:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":125,"name":"address","nodeType":"ElementaryTypeName","src":"1892:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1891:9:1"},"scope":508,"src":"1841:261:1","stateMutability":"view","virtual":true,"visibility":"internal"},{"body":{"id":156,"nodeType":"Block","src":"2148:58:1","statements":[{"condition":{"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":151,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":147,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"2158:3:1","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":148,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2162:6:1","memberName":"sender","nodeType":"MemberAccess","src":"2158:10:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"arguments":[],"expression":{"argumentTypes":[],"id":149,"name":"_getPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":144,"src":"2172:8:1","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_address_$","typeString":"function () view returns (address)"}},"id":150,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2172:10:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"2158:24:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":155,"nodeType":"IfStatement","src":"2154:47:1","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"id":152,"name":"OnlyPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":517,"src":"2191:8:1","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":153,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2191:10:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":154,"nodeType":"RevertStatement","src":"2184:17:1"}}]},"id":157,"implemented":true,"kind":"function","modifiers":[],"name":"_checkIfFromPool","nameLocation":"2115:16:1","nodeType":"FunctionDefinition","parameters":{"id":145,"nodeType":"ParameterList","parameters":[],"src":"2131:2:1"},"returnParameters":{"id":146,"nodeType":"ParameterList","parameters":[],"src":"2148:0:1"},"scope":508,"src":"2106:100:1","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":173,"nodeType":"Block","src":"2254:124:1","statements":[{"condition":{"id":168,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"2264:81:1","subExpression":{"arguments":[{"id":164,"name":"ALGEBRA_BASE_PLUGIN_MANAGER","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":78,"src":"2305:27:1","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"expression":{"id":165,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"2334:3:1","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":166,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2338:6:1","memberName":"sender","nodeType":"MemberAccess","src":"2334:10:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_address","typeString":"address"}],"expression":{"arguments":[{"id":161,"name":"factory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":81,"src":"2281:7:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":160,"name":"IAlgebraFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":831,"src":"2265:15:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraFactory_$831_$","typeString":"type(contract IAlgebraFactory)"}},"id":162,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2265:24:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraFactory_$831","typeString":"contract IAlgebraFactory"}},"id":163,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2290:14:1","memberName":"hasRoleOrOwner","nodeType":"MemberAccess","referencedDeclaration":654,"src":"2265:39:1","typeDescriptions":{"typeIdentifier":"t_function_external_view$_t_bytes32_$_t_address_$returns$_t_bool_$","typeString":"function (bytes32,address) view external returns (bool)"}},"id":167,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2265:80:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":172,"nodeType":"IfStatement","src":"2260:113:1","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"id":169,"name":"OnlyAdministrator","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":521,"src":"2354:17:1","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":170,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2354:19:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":171,"nodeType":"RevertStatement","src":"2347:26:1"}}]},"id":174,"implemented":true,"kind":"function","modifiers":[],"name":"_authorize","nameLocation":"2219:10:1","nodeType":"FunctionDefinition","parameters":{"id":158,"nodeType":"ParameterList","parameters":[],"src":"2229:2:1"},"returnParameters":{"id":159,"nodeType":"ParameterList","parameters":[],"src":"2254:0:1"},"scope":508,"src":"2210:168:1","stateMutability":"view","virtual":true,"visibility":"internal"},{"body":{"id":198,"nodeType":"Block","src":"2497:93:1","statements":[{"expression":{"id":196,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"components":[{"id":185,"name":"price","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":177,"src":"2504:5:1","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},{"id":186,"name":"tick","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":179,"src":"2511:4:1","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},{"id":187,"name":"fee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":181,"src":"2517:3:1","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},{"id":188,"name":"pluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":183,"src":"2522:12:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},null,null],"id":189,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"2503:36:1","typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$__$__$","typeString":"tuple(uint160,int24,uint16,uint8,,)"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"arguments":[],"expression":{"argumentTypes":[],"id":191,"name":"_getPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":144,"src":"2560:8:1","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_address_$","typeString":"function () view returns (address)"}},"id":192,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2560:10:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":190,"name":"IAlgebraPoolState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1681,"src":"2542:17:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolState_$1681_$","typeString":"type(contract IAlgebraPoolState)"}},"id":193,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2542:29:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPoolState_$1681","typeString":"contract IAlgebraPoolState"}},"id":194,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2572:11:1","memberName":"globalState","nodeType":"MemberAccess","referencedDeclaration":1540,"src":"2542:41:1","typeDescriptions":{"typeIdentifier":"t_function_external_view$__$returns$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$_t_uint16_$_t_bool_$","typeString":"function () view external returns (uint160,int24,uint16,uint8,uint16,bool)"}},"id":195,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2542:43:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$_t_uint16_$_t_bool_$","typeString":"tuple(uint160,int24,uint16,uint8,uint16,bool)"}},"src":"2503:82:1","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":197,"nodeType":"ExpressionStatement","src":"2503:82:1"}]},"id":199,"implemented":true,"kind":"function","modifiers":[],"name":"_getPoolState","nameLocation":"2391:13:1","nodeType":"FunctionDefinition","parameters":{"id":175,"nodeType":"ParameterList","parameters":[],"src":"2404:2:1"},"returnParameters":{"id":184,"nodeType":"ParameterList","parameters":[{"constant":false,"id":177,"mutability":"mutable","name":"price","nameLocation":"2446:5:1","nodeType":"VariableDeclaration","scope":199,"src":"2438:13:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":176,"name":"uint160","nodeType":"ElementaryTypeName","src":"2438:7:1","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":179,"mutability":"mutable","name":"tick","nameLocation":"2459:4:1","nodeType":"VariableDeclaration","scope":199,"src":"2453:10:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":178,"name":"int24","nodeType":"ElementaryTypeName","src":"2453:5:1","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":181,"mutability":"mutable","name":"fee","nameLocation":"2472:3:1","nodeType":"VariableDeclaration","scope":199,"src":"2465:10:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":180,"name":"uint16","nodeType":"ElementaryTypeName","src":"2465:6:1","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},{"constant":false,"id":183,"mutability":"mutable","name":"pluginConfig","nameLocation":"2483:12:1","nodeType":"VariableDeclaration","scope":199,"src":"2477:18:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":182,"name":"uint8","nodeType":"ElementaryTypeName","src":"2477:5:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"2437:59:1"},"scope":508,"src":"2382:208:1","stateMutability":"view","virtual":true,"visibility":"internal"},{"body":{"id":211,"nodeType":"Block","src":"2661:51:1","statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"arguments":[{"arguments":[],"expression":{"argumentTypes":[],"id":205,"name":"_getPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":144,"src":"2687:8:1","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_address_$","typeString":"function () view returns (address)"}},"id":206,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2687:10:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":204,"name":"IAlgebraPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":853,"src":"2674:12:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPool_$853_$","typeString":"type(contract IAlgebraPool)"}},"id":207,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2674:24:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPool_$853","typeString":"contract IAlgebraPool"}},"id":208,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2699:6:1","memberName":"plugin","nodeType":"MemberAccess","referencedDeclaration":1586,"src":"2674:31:1","typeDescriptions":{"typeIdentifier":"t_function_external_view$__$returns$_t_address_$","typeString":"function () view external returns (address)"}},"id":209,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2674:33:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"functionReturnParameters":203,"id":210,"nodeType":"Return","src":"2667:40:1"}]},"id":212,"implemented":true,"kind":"function","modifiers":[],"name":"_getPluginInPool","nameLocation":"2603:16:1","nodeType":"FunctionDefinition","parameters":{"id":200,"nodeType":"ParameterList","parameters":[],"src":"2619:2:1"},"returnParameters":{"id":203,"nodeType":"ParameterList","parameters":[{"constant":false,"id":202,"mutability":"mutable","name":"plugin","nameLocation":"2653:6:1","nodeType":"VariableDeclaration","scope":212,"src":"2645:14:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":201,"name":"address","nodeType":"ElementaryTypeName","src":"2645:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"2644:16:1"},"scope":508,"src":"2594:118:1","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":220,"nodeType":"Block","src":"2762:28:1","statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":217,"name":"_getPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":144,"src":"2775:8:1","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_address_$","typeString":"function () view returns (address)"}},"id":218,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2775:10:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"functionReturnParameters":216,"id":219,"nodeType":"Return","src":"2768:17:1"}]},"functionSelector":"16f0115b","id":221,"implemented":true,"kind":"function","modifiers":[],"name":"pool","nameLocation":"2725:4:1","nodeType":"FunctionDefinition","parameters":{"id":213,"nodeType":"ParameterList","parameters":[],"src":"2729:2:1"},"returnParameters":{"id":216,"nodeType":"ParameterList","parameters":[{"constant":false,"id":215,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":221,"src":"2753:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":214,"name":"address","nodeType":"ElementaryTypeName","src":"2753:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"2752:9:1"},"scope":508,"src":"2716:74:1","stateMutability":"view","virtual":false,"visibility":"public"},{"baseFunctions":[538],"documentation":{"id":222,"nodeType":"StructuredDocumentation","src":"2794:84:1","text":"@inheritdoc IAbstractPlugin\n @dev must be implemented by the default plugin"},"functionSelector":"b6f78cc9","id":229,"implemented":false,"kind":"function","modifiers":[],"name":"getActiveModuleNames","nameLocation":"2890:20:1","nodeType":"FunctionDefinition","overrides":{"id":224,"nodeType":"OverrideSpecifier","overrides":[],"src":"2935:8:1"},"parameters":{"id":223,"nodeType":"ParameterList","parameters":[],"src":"2910:2:1"},"returnParameters":{"id":228,"nodeType":"ParameterList","parameters":[{"constant":false,"id":227,"mutability":"mutable","name":"moduleNames","nameLocation":"2969:11:1","nodeType":"VariableDeclaration","scope":229,"src":"2953:27:1","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_string_memory_ptr_$dyn_memory_ptr","typeString":"string[]"},"typeName":{"baseType":{"id":225,"name":"string","nodeType":"ElementaryTypeName","src":"2953:6:1","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"id":226,"nodeType":"ArrayTypeName","src":"2953:8:1","typeDescriptions":{"typeIdentifier":"t_array$_t_string_storage_$dyn_storage_ptr","typeString":"string[]"}},"visibility":"internal"}],"src":"2952:29:1"},"scope":508,"src":"2881:101:1","stateMutability":"view","virtual":true,"visibility":"external"},{"baseFunctions":[862],"documentation":{"id":230,"nodeType":"StructuredDocumentation","src":"2986:133:1","text":"@notice Returns the default plugin config\n @dev Must be implemented by the default plugin, used to sync config into the pool"},"functionSelector":"689ea370","id":235,"implemented":false,"kind":"function","modifiers":[],"name":"defaultPluginConfig","nameLocation":"3131:19:1","nodeType":"FunctionDefinition","parameters":{"id":231,"nodeType":"ParameterList","parameters":[],"src":"3150:2:1"},"returnParameters":{"id":234,"nodeType":"ParameterList","parameters":[{"constant":false,"id":233,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":235,"src":"3182:5:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":232,"name":"uint8","nodeType":"ElementaryTypeName","src":"3182:5:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"3181:7:1"},"scope":508,"src":"3122:67:1","stateMutability":"view","virtual":true,"visibility":"public"},{"baseFunctions":[531],"body":{"id":257,"nodeType":"Block","src":"3329:80:1","statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":246,"name":"_authorize","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":174,"src":"3335:10:1","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$__$","typeString":"function () view"}},"id":247,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3335:12:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":248,"nodeType":"ExpressionStatement","src":"3335:12:1"},{"expression":{"arguments":[{"id":252,"name":"token","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":238,"src":"3379:5:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":253,"name":"recipient","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":242,"src":"3386:9:1","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":254,"name":"amount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":240,"src":"3397:6:1","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"expression":{"id":249,"name":"SafeTransfer","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1809,"src":"3353:12:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_SafeTransfer_$1809_$","typeString":"type(library SafeTransfer)"}},"id":251,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"3366:12:1","memberName":"safeTransfer","nodeType":"MemberAccess","referencedDeclaration":1808,"src":"3353:25:1","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint256_$returns$__$","typeString":"function (address,address,uint256)"}},"id":255,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3353:51:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":256,"nodeType":"ExpressionStatement","src":"3353:51:1"}]},"documentation":{"id":236,"nodeType":"StructuredDocumentation","src":"3193:31:1","text":"@inheritdoc IAbstractPlugin"},"functionSelector":"e72c652d","id":258,"implemented":true,"kind":"function","modifiers":[],"name":"collectPluginFee","nameLocation":"3236:16:1","nodeType":"FunctionDefinition","overrides":{"id":244,"nodeType":"OverrideSpecifier","overrides":[],"src":"3320:8:1"},"parameters":{"id":243,"nodeType":"ParameterList","parameters":[{"constant":false,"id":238,"mutability":"mutable","name":"token","nameLocation":"3261:5:1","nodeType":"VariableDeclaration","scope":258,"src":"3253:13:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":237,"name":"address","nodeType":"ElementaryTypeName","src":"3253:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":240,"mutability":"mutable","name":"amount","nameLocation":"3276:6:1","nodeType":"VariableDeclaration","scope":258,"src":"3268:14:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":239,"name":"uint256","nodeType":"ElementaryTypeName","src":"3268:7:1","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":242,"mutability":"mutable","name":"recipient","nameLocation":"3292:9:1","nodeType":"VariableDeclaration","scope":258,"src":"3284:17:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":241,"name":"address","nodeType":"ElementaryTypeName","src":"3284:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"3252:50:1"},"returnParameters":{"id":245,"nodeType":"ParameterList","parameters":[],"src":"3329:0:1"},"scope":508,"src":"3227:182:1","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[872],"body":{"id":275,"nodeType":"Block","src":"3546:57:1","statements":[{"expression":{"expression":{"expression":{"id":271,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1019,"src":"3559:14:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$1019_$","typeString":"type(contract IAlgebraPlugin)"}},"id":272,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3574:15:1","memberName":"handlePluginFee","nodeType":"MemberAccess","referencedDeclaration":872,"src":"3559:30:1","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_uint256_$_t_uint256_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.handlePluginFee(uint256,uint256) returns (bytes4)"}},"id":273,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3590:8:1","memberName":"selector","nodeType":"MemberAccess","src":"3559:39:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":270,"id":274,"nodeType":"Return","src":"3552:46:1"}]},"documentation":{"id":259,"nodeType":"StructuredDocumentation","src":"3413:30:1","text":"@inheritdoc IAlgebraPlugin"},"functionSelector":"aa6b14bb","id":276,"implemented":true,"kind":"function","modifiers":[{"id":267,"kind":"modifierInvocation","modifierName":{"id":266,"name":"onlyPool","nameLocations":["3520:8:1"],"nodeType":"IdentifierPath","referencedDeclaration":91,"src":"3520:8:1"},"nodeType":"ModifierInvocation","src":"3520:8:1"}],"name":"handlePluginFee","nameLocation":"3455:15:1","nodeType":"FunctionDefinition","overrides":{"id":265,"nodeType":"OverrideSpecifier","overrides":[],"src":"3511:8:1"},"parameters":{"id":264,"nodeType":"ParameterList","parameters":[{"constant":false,"id":261,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":276,"src":"3471:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":260,"name":"uint256","nodeType":"ElementaryTypeName","src":"3471:7:1","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":263,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":276,"src":"3480:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":262,"name":"uint256","nodeType":"ElementaryTypeName","src":"3480:7:1","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"3470:18:1"},"returnParameters":{"id":270,"nodeType":"ParameterList","parameters":[{"constant":false,"id":269,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":276,"src":"3538:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":268,"name":"bytes4","nodeType":"ElementaryTypeName","src":"3538:6:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"3537:8:1"},"scope":508,"src":"3446:157:1","stateMutability":"view","virtual":true,"visibility":"external"},{"baseFunctions":[882],"body":{"id":292,"nodeType":"Block","src":"3729:58:1","statements":[{"expression":{"expression":{"expression":{"id":288,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1019,"src":"3742:14:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$1019_$","typeString":"type(contract IAlgebraPlugin)"}},"id":289,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3757:16:1","memberName":"beforeInitialize","nodeType":"MemberAccess","referencedDeclaration":882,"src":"3742:31:1","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_uint160_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.beforeInitialize(address,uint160) returns (bytes4)"}},"id":290,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3774:8:1","memberName":"selector","nodeType":"MemberAccess","src":"3742:40:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":287,"id":291,"nodeType":"Return","src":"3735:47:1"}]},"functionSelector":"636fd804","id":293,"implemented":true,"kind":"function","modifiers":[{"id":284,"kind":"modifierInvocation","modifierName":{"id":283,"name":"onlyPool","nameLocations":["3703:8:1"],"nodeType":"IdentifierPath","referencedDeclaration":91,"src":"3703:8:1"},"nodeType":"ModifierInvocation","src":"3703:8:1"}],"name":"beforeInitialize","nameLocation":"3642:16:1","nodeType":"FunctionDefinition","overrides":{"id":282,"nodeType":"OverrideSpecifier","overrides":[],"src":"3694:8:1"},"parameters":{"id":281,"nodeType":"ParameterList","parameters":[{"constant":false,"id":278,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":293,"src":"3659:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":277,"name":"address","nodeType":"ElementaryTypeName","src":"3659:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":280,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":293,"src":"3668:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":279,"name":"uint160","nodeType":"ElementaryTypeName","src":"3668:7:1","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"src":"3658:18:1"},"returnParameters":{"id":287,"nodeType":"ParameterList","parameters":[{"constant":false,"id":286,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":293,"src":"3721:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":285,"name":"bytes4","nodeType":"ElementaryTypeName","src":"3721:6:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"3720:8:1"},"scope":508,"src":"3633:154:1","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[894],"body":{"id":311,"nodeType":"Block","src":"3893:57:1","statements":[{"expression":{"expression":{"expression":{"id":307,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1019,"src":"3906:14:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$1019_$","typeString":"type(contract IAlgebraPlugin)"}},"id":308,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3921:15:1","memberName":"afterInitialize","nodeType":"MemberAccess","referencedDeclaration":894,"src":"3906:30:1","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_uint160_$_t_int24_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.afterInitialize(address,uint160,int24) returns (bytes4)"}},"id":309,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"3937:8:1","memberName":"selector","nodeType":"MemberAccess","src":"3906:39:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":306,"id":310,"nodeType":"Return","src":"3899:46:1"}]},"functionSelector":"82dd6522","id":312,"implemented":true,"kind":"function","modifiers":[{"id":303,"kind":"modifierInvocation","modifierName":{"id":302,"name":"onlyPool","nameLocations":["3867:8:1"],"nodeType":"IdentifierPath","referencedDeclaration":91,"src":"3867:8:1"},"nodeType":"ModifierInvocation","src":"3867:8:1"}],"name":"afterInitialize","nameLocation":"3800:15:1","nodeType":"FunctionDefinition","overrides":{"id":301,"nodeType":"OverrideSpecifier","overrides":[],"src":"3858:8:1"},"parameters":{"id":300,"nodeType":"ParameterList","parameters":[{"constant":false,"id":295,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":312,"src":"3816:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":294,"name":"address","nodeType":"ElementaryTypeName","src":"3816:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":297,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":312,"src":"3825:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":296,"name":"uint160","nodeType":"ElementaryTypeName","src":"3825:7:1","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":299,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":312,"src":"3834:5:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":298,"name":"int24","nodeType":"ElementaryTypeName","src":"3834:5:1","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"3815:25:1"},"returnParameters":{"id":306,"nodeType":"ParameterList","parameters":[{"constant":false,"id":305,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":312,"src":"3885:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":304,"name":"bytes4","nodeType":"ElementaryTypeName","src":"3885:6:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"3884:8:1"},"scope":508,"src":"3791:159:1","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[914],"body":{"id":340,"nodeType":"Block","src":"4128:67:1","statements":[{"expression":{"components":[{"expression":{"expression":{"id":334,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1019,"src":"4142:14:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$1019_$","typeString":"type(contract IAlgebraPlugin)"}},"id":335,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"4157:20:1","memberName":"beforeModifyPosition","nodeType":"MemberAccess","referencedDeclaration":914,"src":"4142:35:1","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_int24_$_t_int24_$_t_int128_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$_t_uint24_$","typeString":"function IAlgebraPlugin.beforeModifyPosition(address,address,int24,int24,int128,bytes calldata) returns (bytes4,uint24)"}},"id":336,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"4178:8:1","memberName":"selector","nodeType":"MemberAccess","src":"4142:44:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},{"hexValue":"30","id":337,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4188:1:1","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"id":338,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"TupleExpression","src":"4141:49:1","typeDescriptions":{"typeIdentifier":"t_tuple$_t_bytes4_$_t_rational_0_by_1_$","typeString":"tuple(bytes4,int_const 0)"}},"functionReturnParameters":333,"id":339,"nodeType":"Return","src":"4134:56:1"}]},"functionSelector":"5e2411b2","id":341,"implemented":true,"kind":"function","modifiers":[{"id":328,"kind":"modifierInvocation","modifierName":{"id":327,"name":"onlyPool","nameLocations":["4094:8:1"],"nodeType":"IdentifierPath","referencedDeclaration":91,"src":"4094:8:1"},"nodeType":"ModifierInvocation","src":"4094:8:1"}],"name":"beforeModifyPosition","nameLocation":"3963:20:1","nodeType":"FunctionDefinition","overrides":{"id":326,"nodeType":"OverrideSpecifier","overrides":[],"src":"4085:8:1"},"parameters":{"id":325,"nodeType":"ParameterList","parameters":[{"constant":false,"id":314,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":341,"src":"3989:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":313,"name":"address","nodeType":"ElementaryTypeName","src":"3989:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":316,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":341,"src":"4002:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":315,"name":"address","nodeType":"ElementaryTypeName","src":"4002:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":318,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":341,"src":"4015:5:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":317,"name":"int24","nodeType":"ElementaryTypeName","src":"4015:5:1","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":320,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":341,"src":"4026:5:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":319,"name":"int24","nodeType":"ElementaryTypeName","src":"4026:5:1","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":322,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":341,"src":"4037:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":321,"name":"int128","nodeType":"ElementaryTypeName","src":"4037:6:1","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":324,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":341,"src":"4049:14:1","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":323,"name":"bytes","nodeType":"ElementaryTypeName","src":"4049:5:1","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"3983:84:1"},"returnParameters":{"id":333,"nodeType":"ParameterList","parameters":[{"constant":false,"id":330,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":341,"src":"4112:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":329,"name":"bytes4","nodeType":"ElementaryTypeName","src":"4112:6:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"},{"constant":false,"id":332,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":341,"src":"4120:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":331,"name":"uint24","nodeType":"ElementaryTypeName","src":"4120:6:1","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"4111:16:1"},"scope":508,"src":"3954:241:1","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[936],"body":{"id":369,"nodeType":"Block","src":"4390:61:1","statements":[{"expression":{"expression":{"expression":{"id":365,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1019,"src":"4403:14:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$1019_$","typeString":"type(contract IAlgebraPlugin)"}},"id":366,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"4418:19:1","memberName":"afterModifyPosition","nodeType":"MemberAccess","referencedDeclaration":936,"src":"4403:34:1","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_int24_$_t_int24_$_t_int128_$_t_uint256_$_t_uint256_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes calldata) returns (bytes4)"}},"id":367,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"4438:8:1","memberName":"selector","nodeType":"MemberAccess","src":"4403:43:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":364,"id":368,"nodeType":"Return","src":"4396:50:1"}]},"functionSelector":"d6852010","id":370,"implemented":true,"kind":"function","modifiers":[{"id":361,"kind":"modifierInvocation","modifierName":{"id":360,"name":"onlyPool","nameLocations":["4364:8:1"],"nodeType":"IdentifierPath","referencedDeclaration":91,"src":"4364:8:1"},"nodeType":"ModifierInvocation","src":"4364:8:1"}],"name":"afterModifyPosition","nameLocation":"4208:19:1","nodeType":"FunctionDefinition","overrides":{"id":359,"nodeType":"OverrideSpecifier","overrides":[],"src":"4355:8:1"},"parameters":{"id":358,"nodeType":"ParameterList","parameters":[{"constant":false,"id":343,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":370,"src":"4233:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":342,"name":"address","nodeType":"ElementaryTypeName","src":"4233:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":345,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":370,"src":"4246:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":344,"name":"address","nodeType":"ElementaryTypeName","src":"4246:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":347,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":370,"src":"4259:5:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":346,"name":"int24","nodeType":"ElementaryTypeName","src":"4259:5:1","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":349,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":370,"src":"4270:5:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":348,"name":"int24","nodeType":"ElementaryTypeName","src":"4270:5:1","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":351,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":370,"src":"4281:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":350,"name":"int128","nodeType":"ElementaryTypeName","src":"4281:6:1","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":353,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":370,"src":"4293:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":352,"name":"uint256","nodeType":"ElementaryTypeName","src":"4293:7:1","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":355,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":370,"src":"4306:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":354,"name":"uint256","nodeType":"ElementaryTypeName","src":"4306:7:1","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":357,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":370,"src":"4319:14:1","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":356,"name":"bytes","nodeType":"ElementaryTypeName","src":"4319:5:1","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"4227:110:1"},"returnParameters":{"id":364,"nodeType":"ParameterList","parameters":[{"constant":false,"id":363,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":370,"src":"4382:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":362,"name":"bytes4","nodeType":"ElementaryTypeName","src":"4382:6:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"4381:8:1"},"scope":508,"src":"4199:252:1","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[960],"body":{"id":403,"nodeType":"Block","src":"4638:60:1","statements":[{"expression":{"components":[{"expression":{"expression":{"id":396,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1019,"src":"4652:14:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$1019_$","typeString":"type(contract IAlgebraPlugin)"}},"id":397,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"4667:10:1","memberName":"beforeSwap","nodeType":"MemberAccess","referencedDeclaration":960,"src":"4652:25:1","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_bool_$_t_int256_$_t_uint160_$_t_bool_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$_t_uint24_$_t_uint24_$","typeString":"function IAlgebraPlugin.beforeSwap(address,address,bool,int256,uint160,bool,bytes calldata) returns (bytes4,uint24,uint24)"}},"id":398,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"4678:8:1","memberName":"selector","nodeType":"MemberAccess","src":"4652:34:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},{"hexValue":"30","id":399,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4688:1:1","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"30","id":400,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4691:1:1","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"id":401,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"TupleExpression","src":"4651:42:1","typeDescriptions":{"typeIdentifier":"t_tuple$_t_bytes4_$_t_rational_0_by_1_$_t_rational_0_by_1_$","typeString":"tuple(bytes4,int_const 0,int_const 0)"}},"functionReturnParameters":395,"id":402,"nodeType":"Return","src":"4644:49:1"}]},"functionSelector":"029c1cb7","id":404,"implemented":true,"kind":"function","modifiers":[{"id":388,"kind":"modifierInvocation","modifierName":{"id":387,"name":"onlyPool","nameLocations":["4596:8:1"],"nodeType":"IdentifierPath","referencedDeclaration":91,"src":"4596:8:1"},"nodeType":"ModifierInvocation","src":"4596:8:1"}],"name":"beforeSwap","nameLocation":"4464:10:1","nodeType":"FunctionDefinition","overrides":{"id":386,"nodeType":"OverrideSpecifier","overrides":[],"src":"4587:8:1"},"parameters":{"id":385,"nodeType":"ParameterList","parameters":[{"constant":false,"id":372,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":404,"src":"4480:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":371,"name":"address","nodeType":"ElementaryTypeName","src":"4480:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":374,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":404,"src":"4493:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":373,"name":"address","nodeType":"ElementaryTypeName","src":"4493:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":376,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":404,"src":"4506:4:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":375,"name":"bool","nodeType":"ElementaryTypeName","src":"4506:4:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":378,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":404,"src":"4516:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":377,"name":"int256","nodeType":"ElementaryTypeName","src":"4516:6:1","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":380,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":404,"src":"4528:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":379,"name":"uint160","nodeType":"ElementaryTypeName","src":"4528:7:1","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":382,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":404,"src":"4541:4:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":381,"name":"bool","nodeType":"ElementaryTypeName","src":"4541:4:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":384,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":404,"src":"4551:14:1","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":383,"name":"bytes","nodeType":"ElementaryTypeName","src":"4551:5:1","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"4474:95:1"},"returnParameters":{"id":395,"nodeType":"ParameterList","parameters":[{"constant":false,"id":390,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":404,"src":"4614:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":389,"name":"bytes4","nodeType":"ElementaryTypeName","src":"4614:6:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"},{"constant":false,"id":392,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":404,"src":"4622:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":391,"name":"uint24","nodeType":"ElementaryTypeName","src":"4622:6:1","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"},{"constant":false,"id":394,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":404,"src":"4630:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":393,"name":"uint24","nodeType":"ElementaryTypeName","src":"4630:6:1","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"4613:24:1"},"scope":508,"src":"4455:243:1","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[982],"body":{"id":432,"nodeType":"Block","src":"4882:51:1","statements":[{"expression":{"expression":{"expression":{"id":428,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1019,"src":"4895:14:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$1019_$","typeString":"type(contract IAlgebraPlugin)"}},"id":429,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"4910:9:1","memberName":"afterSwap","nodeType":"MemberAccess","referencedDeclaration":982,"src":"4895:24:1","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_bool_$_t_int256_$_t_uint160_$_t_int256_$_t_int256_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.afterSwap(address,address,bool,int256,uint160,int256,int256,bytes calldata) returns (bytes4)"}},"id":430,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"4920:8:1","memberName":"selector","nodeType":"MemberAccess","src":"4895:33:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":427,"id":431,"nodeType":"Return","src":"4888:40:1"}]},"functionSelector":"9cb5a963","id":433,"implemented":true,"kind":"function","modifiers":[{"id":424,"kind":"modifierInvocation","modifierName":{"id":423,"name":"onlyPool","nameLocations":["4856:8:1"],"nodeType":"IdentifierPath","referencedDeclaration":91,"src":"4856:8:1"},"nodeType":"ModifierInvocation","src":"4856:8:1"}],"name":"afterSwap","nameLocation":"4711:9:1","nodeType":"FunctionDefinition","overrides":{"id":422,"nodeType":"OverrideSpecifier","overrides":[],"src":"4847:8:1"},"parameters":{"id":421,"nodeType":"ParameterList","parameters":[{"constant":false,"id":406,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":433,"src":"4726:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":405,"name":"address","nodeType":"ElementaryTypeName","src":"4726:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":408,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":433,"src":"4739:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":407,"name":"address","nodeType":"ElementaryTypeName","src":"4739:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":410,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":433,"src":"4752:4:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":409,"name":"bool","nodeType":"ElementaryTypeName","src":"4752:4:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":412,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":433,"src":"4762:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":411,"name":"int256","nodeType":"ElementaryTypeName","src":"4762:6:1","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":414,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":433,"src":"4774:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":413,"name":"uint160","nodeType":"ElementaryTypeName","src":"4774:7:1","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":416,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":433,"src":"4787:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":415,"name":"int256","nodeType":"ElementaryTypeName","src":"4787:6:1","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":418,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":433,"src":"4799:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":417,"name":"int256","nodeType":"ElementaryTypeName","src":"4799:6:1","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":420,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":433,"src":"4811:14:1","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":419,"name":"bytes","nodeType":"ElementaryTypeName","src":"4811:5:1","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"4720:109:1"},"returnParameters":{"id":427,"nodeType":"ParameterList","parameters":[{"constant":false,"id":426,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":433,"src":"4874:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":425,"name":"bytes4","nodeType":"ElementaryTypeName","src":"4874:6:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"4873:8:1"},"scope":508,"src":"4702:231:1","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[998],"body":{"id":455,"nodeType":"Block","src":"5062:53:1","statements":[{"expression":{"expression":{"expression":{"id":451,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1019,"src":"5075:14:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$1019_$","typeString":"type(contract IAlgebraPlugin)"}},"id":452,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"5090:11:1","memberName":"beforeFlash","nodeType":"MemberAccess","referencedDeclaration":998,"src":"5075:26:1","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.beforeFlash(address,address,uint256,uint256,bytes calldata) returns (bytes4)"}},"id":453,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"5102:8:1","memberName":"selector","nodeType":"MemberAccess","src":"5075:35:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":450,"id":454,"nodeType":"Return","src":"5068:42:1"}]},"functionSelector":"8de0a8ee","id":456,"implemented":true,"kind":"function","modifiers":[{"id":447,"kind":"modifierInvocation","modifierName":{"id":446,"name":"onlyPool","nameLocations":["5036:8:1"],"nodeType":"IdentifierPath","referencedDeclaration":91,"src":"5036:8:1"},"nodeType":"ModifierInvocation","src":"5036:8:1"}],"name":"beforeFlash","nameLocation":"4946:11:1","nodeType":"FunctionDefinition","overrides":{"id":445,"nodeType":"OverrideSpecifier","overrides":[],"src":"5027:8:1"},"parameters":{"id":444,"nodeType":"ParameterList","parameters":[{"constant":false,"id":435,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":456,"src":"4958:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":434,"name":"address","nodeType":"ElementaryTypeName","src":"4958:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":437,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":456,"src":"4967:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":436,"name":"address","nodeType":"ElementaryTypeName","src":"4967:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":439,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":456,"src":"4976:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":438,"name":"uint256","nodeType":"ElementaryTypeName","src":"4976:7:1","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":441,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":456,"src":"4985:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":440,"name":"uint256","nodeType":"ElementaryTypeName","src":"4985:7:1","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":443,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":456,"src":"4994:14:1","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":442,"name":"bytes","nodeType":"ElementaryTypeName","src":"4994:5:1","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"4957:52:1"},"returnParameters":{"id":450,"nodeType":"ParameterList","parameters":[{"constant":false,"id":449,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":456,"src":"5054:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":448,"name":"bytes4","nodeType":"ElementaryTypeName","src":"5054:6:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"5053:8:1"},"scope":508,"src":"4937:178:1","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"baseFunctions":[1018],"body":{"id":482,"nodeType":"Block","src":"5293:52:1","statements":[{"expression":{"expression":{"expression":{"id":478,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1019,"src":"5306:14:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$1019_$","typeString":"type(contract IAlgebraPlugin)"}},"id":479,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"5321:10:1","memberName":"afterFlash","nodeType":"MemberAccess","referencedDeclaration":1018,"src":"5306:25:1","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.afterFlash(address,address,uint256,uint256,uint256,uint256,bytes calldata) returns (bytes4)"}},"id":480,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"5332:8:1","memberName":"selector","nodeType":"MemberAccess","src":"5306:34:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":477,"id":481,"nodeType":"Return","src":"5299:41:1"}]},"functionSelector":"343d37ff","id":483,"implemented":true,"kind":"function","modifiers":[{"id":474,"kind":"modifierInvocation","modifierName":{"id":473,"name":"onlyPool","nameLocations":["5267:8:1"],"nodeType":"IdentifierPath","referencedDeclaration":91,"src":"5267:8:1"},"nodeType":"ModifierInvocation","src":"5267:8:1"}],"name":"afterFlash","nameLocation":"5128:10:1","nodeType":"FunctionDefinition","overrides":{"id":472,"nodeType":"OverrideSpecifier","overrides":[],"src":"5258:8:1"},"parameters":{"id":471,"nodeType":"ParameterList","parameters":[{"constant":false,"id":458,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":483,"src":"5144:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":457,"name":"address","nodeType":"ElementaryTypeName","src":"5144:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":460,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":483,"src":"5157:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":459,"name":"address","nodeType":"ElementaryTypeName","src":"5157:7:1","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":462,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":483,"src":"5170:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":461,"name":"uint256","nodeType":"ElementaryTypeName","src":"5170:7:1","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":464,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":483,"src":"5183:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":463,"name":"uint256","nodeType":"ElementaryTypeName","src":"5183:7:1","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":466,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":483,"src":"5196:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":465,"name":"uint256","nodeType":"ElementaryTypeName","src":"5196:7:1","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":468,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":483,"src":"5209:7:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":467,"name":"uint256","nodeType":"ElementaryTypeName","src":"5209:7:1","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":470,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":483,"src":"5222:14:1","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":469,"name":"bytes","nodeType":"ElementaryTypeName","src":"5222:5:1","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"5138:102:1"},"returnParameters":{"id":477,"nodeType":"ParameterList","parameters":[{"constant":false,"id":476,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":483,"src":"5285:6:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":475,"name":"bytes4","nodeType":"ElementaryTypeName","src":"5285:6:1","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"5284:8:1"},"scope":508,"src":"5119:226:1","stateMutability":"nonpayable","virtual":true,"visibility":"external"},{"body":{"id":506,"nodeType":"Block","src":"5416:183:1","statements":[{"assignments":[null,null,null,489],"declarations":[null,null,null,{"constant":false,"id":489,"mutability":"mutable","name":"currentPluginConfig","nameLocation":"5435:19:1","nodeType":"VariableDeclaration","scope":506,"src":"5429:25:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":488,"name":"uint8","nodeType":"ElementaryTypeName","src":"5429:5:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"id":492,"initialValue":{"arguments":[],"expression":{"argumentTypes":[],"id":490,"name":"_getPoolState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":199,"src":"5458:13:1","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$","typeString":"function () view returns (uint160,int24,uint16,uint8)"}},"id":491,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5458:15:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$","typeString":"tuple(uint160,int24,uint16,uint8)"}},"nodeType":"VariableDeclarationStatement","src":"5422:51:1"},{"condition":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":495,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":493,"name":"currentPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":489,"src":"5483:19:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"id":494,"name":"newPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":485,"src":"5506:15:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"5483:38:1","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":505,"nodeType":"IfStatement","src":"5479:116:1","trueBody":{"id":504,"nodeType":"Block","src":"5523:72:1","statements":[{"expression":{"arguments":[{"id":501,"name":"newPluginConfig","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":485,"src":"5572:15:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint8","typeString":"uint8"}],"expression":{"arguments":[{"arguments":[],"expression":{"argumentTypes":[],"id":497,"name":"_getPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":144,"src":"5544:8:1","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_address_$","typeString":"function () view returns (address)"}},"id":498,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5544:10:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":496,"name":"IAlgebraPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":853,"src":"5531:12:1","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPool_$853_$","typeString":"type(contract IAlgebraPool)"}},"id":499,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5531:24:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPool_$853","typeString":"contract IAlgebraPool"}},"id":500,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"5556:15:1","memberName":"setPluginConfig","nodeType":"MemberAccess","referencedDeclaration":1476,"src":"5531:40:1","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_uint8_$returns$__$","typeString":"function (uint8) external"}},"id":502,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5531:57:1","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":503,"nodeType":"ExpressionStatement","src":"5531:57:1"}]}}]},"id":507,"implemented":true,"kind":"function","modifiers":[],"name":"_updatePluginConfigInPool","nameLocation":"5358:25:1","nodeType":"FunctionDefinition","parameters":{"id":486,"nodeType":"ParameterList","parameters":[{"constant":false,"id":485,"mutability":"mutable","name":"newPluginConfig","nameLocation":"5390:15:1","nodeType":"VariableDeclaration","scope":507,"src":"5384:21:1","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":484,"name":"uint8","nodeType":"ElementaryTypeName","src":"5384:5:1","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"5383:23:1"},"returnParameters":{"id":487,"nodeType":"ParameterList","parameters":[],"src":"5416:0:1"},"scope":508,"src":"5349:250:1","stateMutability":"nonpayable","virtual":false,"visibility":"internal"}],"scope":509,"src":"924:4677:1","usedErrors":[517,519,521,1262],"usedEvents":[1824]}],"src":"37:5565:1"},"id":1},"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol":{"ast":{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol","exportedSymbols":{"IAbstractPlugin":[539],"IAlgebraPlugin":[1019]},"id":540,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":510,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:2"},{"id":511,"literals":["abicoder","v2"],"nodeType":"PragmaDirective","src":"70:19:2"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol","id":512,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":540,"sourceUnit":1020,"src":"91:85:2","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[{"baseName":{"id":514,"name":"IAlgebraPlugin","nameLocations":["251:14:2"],"nodeType":"IdentifierPath","referencedDeclaration":1019,"src":"251:14:2"},"id":515,"nodeType":"InheritanceSpecifier","src":"251:14:2"}],"canonicalName":"IAbstractPlugin","contractDependencies":[],"contractKind":"interface","documentation":{"id":513,"nodeType":"StructuredDocumentation","src":"178:44:2","text":"@title The interface for the BasePlugin"},"fullyImplemented":false,"id":539,"linearizedBaseContracts":[539,1019],"name":"IAbstractPlugin","nameLocation":"232:15:2","nodeType":"ContractDefinition","nodes":[{"errorSelector":"4b602735","id":517,"name":"OnlyPool","nameLocation":"276:8:2","nodeType":"ErrorDefinition","parameters":{"id":516,"nodeType":"ParameterList","parameters":[],"src":"284:2:2"},"src":"270:17:2"},{"errorSelector":"504d5728","id":519,"name":"OnlyPluginFactory","nameLocation":"296:17:2","nodeType":"ErrorDefinition","parameters":{"id":518,"nodeType":"ParameterList","parameters":[],"src":"313:2:2"},"src":"290:26:2"},{"errorSelector":"ff512cd0","id":521,"name":"OnlyAdministrator","nameLocation":"325:17:2","nodeType":"ErrorDefinition","parameters":{"id":520,"nodeType":"ParameterList","parameters":[],"src":"342:2:2"},"src":"319:26:2"},{"documentation":{"id":522,"nodeType":"StructuredDocumentation","src":"349:143:2","text":"@notice Claim plugin fee\n @param token The token address\n @param amount Amount of tokens\n @param recipient Recipient address"},"functionSelector":"e72c652d","id":531,"implemented":false,"kind":"function","modifiers":[],"name":"collectPluginFee","nameLocation":"504:16:2","nodeType":"FunctionDefinition","parameters":{"id":529,"nodeType":"ParameterList","parameters":[{"constant":false,"id":524,"mutability":"mutable","name":"token","nameLocation":"529:5:2","nodeType":"VariableDeclaration","scope":531,"src":"521:13:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":523,"name":"address","nodeType":"ElementaryTypeName","src":"521:7:2","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":526,"mutability":"mutable","name":"amount","nameLocation":"544:6:2","nodeType":"VariableDeclaration","scope":531,"src":"536:14:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":525,"name":"uint256","nodeType":"ElementaryTypeName","src":"536:7:2","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":528,"mutability":"mutable","name":"recipient","nameLocation":"560:9:2","nodeType":"VariableDeclaration","scope":531,"src":"552:17:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":527,"name":"address","nodeType":"ElementaryTypeName","src":"552:7:2","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"520:50:2"},"returnParameters":{"id":530,"nodeType":"ParameterList","parameters":[],"src":"579:0:2"},"scope":539,"src":"495:85:2","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":532,"nodeType":"StructuredDocumentation","src":"584:94:2","text":"@notice Get all active module names\n @return moduleNames Array of active module names"},"functionSelector":"b6f78cc9","id":538,"implemented":false,"kind":"function","modifiers":[],"name":"getActiveModuleNames","nameLocation":"690:20:2","nodeType":"FunctionDefinition","parameters":{"id":533,"nodeType":"ParameterList","parameters":[],"src":"710:2:2"},"returnParameters":{"id":537,"nodeType":"ParameterList","parameters":[{"constant":false,"id":536,"mutability":"mutable","name":"moduleNames","nameLocation":"752:11:2","nodeType":"VariableDeclaration","scope":538,"src":"736:27:2","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_string_memory_ptr_$dyn_memory_ptr","typeString":"string[]"},"typeName":{"baseType":{"id":534,"name":"string","nodeType":"ElementaryTypeName","src":"736:6:2","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"id":535,"nodeType":"ArrayTypeName","src":"736:8:2","typeDescriptions":{"typeIdentifier":"t_array$_t_string_storage_$dyn_storage_ptr","typeString":"string[]"}},"visibility":"internal"}],"src":"735:29:2"},"scope":539,"src":"681:84:2","stateMutability":"view","virtual":false,"visibility":"external"}],"scope":540,"src":"222:545:2","usedErrors":[517,519,521],"usedEvents":[]}],"src":"45:723:2"},"id":2},"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAlgebraPluginProxy.sol":{"ast":{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAlgebraPluginProxy.sol","exportedSymbols":{"IAlgebraPluginProxy":[547]},"id":548,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":541,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:3"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPluginProxy","contractDependencies":[],"contractKind":"interface","fullyImplemented":false,"id":547,"linearizedBaseContracts":[547],"name":"IAlgebraPluginProxy","nameLocation":"81:19:3","nodeType":"ContractDefinition","nodes":[{"functionSelector":"16f0115b","id":546,"implemented":false,"kind":"function","modifiers":[],"name":"pool","nameLocation":"114:4:3","nodeType":"FunctionDefinition","parameters":{"id":542,"nodeType":"ParameterList","parameters":[],"src":"118:2:3"},"returnParameters":{"id":545,"nodeType":"ParameterList","parameters":[{"constant":false,"id":544,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":546,"src":"144:7:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":543,"name":"address","nodeType":"ElementaryTypeName","src":"144:7:3","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"143:9:3"},"scope":547,"src":"105:48:3","stateMutability":"view","virtual":false,"visibility":"external"}],"scope":548,"src":"71:84:3","usedErrors":[],"usedEvents":[]}],"src":"45:111:3"},"id":3},"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol","exportedSymbols":{"Timestamp":[564]},"id":565,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":549,"literals":["solidity",">=","0.8",".0","<","0.9",".0"],"nodeType":"PragmaDirective","src":"45:31:4"},{"abstract":true,"baseContracts":[],"canonicalName":"Timestamp","contractDependencies":[],"contractKind":"contract","documentation":{"id":550,"nodeType":"StructuredDocumentation","src":"78:219:4","text":"@title Abstract contract with modified blockTimestamp functionality\n @notice Allows the pool and other contracts to get a timestamp truncated to 32 bits\n @dev Can be overridden in tests to make testing easier"},"fullyImplemented":true,"id":564,"linearizedBaseContracts":[564],"name":"Timestamp","nameLocation":"315:9:4","nodeType":"ContractDefinition","nodes":[{"body":{"id":562,"nodeType":"Block","src":"507:66:4","statements":[{"expression":{"arguments":[{"expression":{"id":558,"name":"block","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-4,"src":"527:5:4","typeDescriptions":{"typeIdentifier":"t_magic_block","typeString":"block"}},"id":559,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"533:9:4","memberName":"timestamp","nodeType":"MemberAccess","src":"527:15:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":557,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"520:6:4","typeDescriptions":{"typeIdentifier":"t_type$_t_uint32_$","typeString":"type(uint32)"},"typeName":{"id":556,"name":"uint32","nodeType":"ElementaryTypeName","src":"520:6:4","typeDescriptions":{}}},"id":560,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"520:23:4","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"functionReturnParameters":555,"id":561,"nodeType":"Return","src":"513:30:4"}]},"documentation":{"id":551,"nodeType":"StructuredDocumentation","src":"329:109:4","text":"@dev This function is created for testing by overriding it.\n @return A timestamp converted to uint32"},"id":563,"implemented":true,"kind":"function","modifiers":[],"name":"_blockTimestamp","nameLocation":"450:15:4","nodeType":"FunctionDefinition","parameters":{"id":552,"nodeType":"ParameterList","parameters":[],"src":"465:2:4"},"returnParameters":{"id":555,"nodeType":"ParameterList","parameters":[{"constant":false,"id":554,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":563,"src":"499:6:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":553,"name":"uint32","nodeType":"ElementaryTypeName","src":"499:6:4","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"visibility":"internal"}],"src":"498:8:4"},"scope":564,"src":"441:132:4","stateMutability":"view","virtual":true,"visibility":"internal"}],"scope":565,"src":"297:278:4","usedErrors":[],"usedEvents":[]}],"src":"45:531:4"},"id":4},"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol","exportedSymbols":{"IAlgebraFactory":[831],"IAlgebraPluginFactory":[1051],"IAlgebraVaultFactory":[1709]},"id":832,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":566,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:5"},{"id":567,"literals":["abicoder","v2"],"nodeType":"PragmaDirective","src":"70:19:5"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol","file":"./plugin/IAlgebraPluginFactory.sol","id":568,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":832,"sourceUnit":1052,"src":"91:44:5","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol","file":"./vault/IAlgebraVaultFactory.sol","id":569,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":832,"sourceUnit":1710,"src":"136:42:5","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraFactory","contractDependencies":[],"contractKind":"interface","documentation":{"id":570,"nodeType":"StructuredDocumentation","src":"180:183:5","text":"@title The interface for the Algebra Factory\n @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":false,"id":831,"linearizedBaseContracts":[831],"name":"IAlgebraFactory","nameLocation":"373:15:5","nodeType":"ContractDefinition","nodes":[{"anonymous":false,"documentation":{"id":571,"nodeType":"StructuredDocumentation","src":"393:207:5","text":"@notice Emitted when a process of ownership renounce is started\n @param timestamp The timestamp of event\n @param finishTimestamp The timestamp when ownership renounce will be possible to finish"},"eventSelector":"cd60f5d54996130c21c3f063279b39230bcbafc12f763a1ac1dfaec2e9b61d29","id":577,"name":"RenounceOwnershipStart","nameLocation":"609:22:5","nodeType":"EventDefinition","parameters":{"id":576,"nodeType":"ParameterList","parameters":[{"constant":false,"id":573,"indexed":false,"mutability":"mutable","name":"timestamp","nameLocation":"640:9:5","nodeType":"VariableDeclaration","scope":577,"src":"632:17:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":572,"name":"uint256","nodeType":"ElementaryTypeName","src":"632:7:5","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":575,"indexed":false,"mutability":"mutable","name":"finishTimestamp","nameLocation":"659:15:5","nodeType":"VariableDeclaration","scope":577,"src":"651:23:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":574,"name":"uint256","nodeType":"ElementaryTypeName","src":"651:7:5","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"631:44:5"},"src":"603:73:5"},{"anonymous":false,"documentation":{"id":578,"nodeType":"StructuredDocumentation","src":"680:112:5","text":"@notice Emitted when a process of ownership renounce cancelled\n @param timestamp The timestamp of event"},"eventSelector":"a2492902a0a1d28dc73e6ab22e473239ef077bb7bc8174dc7dab9fc0818e7135","id":582,"name":"RenounceOwnershipStop","nameLocation":"801:21:5","nodeType":"EventDefinition","parameters":{"id":581,"nodeType":"ParameterList","parameters":[{"constant":false,"id":580,"indexed":false,"mutability":"mutable","name":"timestamp","nameLocation":"831:9:5","nodeType":"VariableDeclaration","scope":582,"src":"823:17:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":579,"name":"uint256","nodeType":"ElementaryTypeName","src":"823:7:5","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"822:19:5"},"src":"795:47:5"},{"anonymous":false,"documentation":{"id":583,"nodeType":"StructuredDocumentation","src":"846:128:5","text":"@notice Emitted when a process of ownership renounce finished\n @param timestamp The timestamp of ownership renouncement"},"eventSelector":"a24203c457ce43a097fa0c491fc9cf5e0a893af87a5e0a9785f29491deb11e23","id":587,"name":"RenounceOwnershipFinish","nameLocation":"983:23:5","nodeType":"EventDefinition","parameters":{"id":586,"nodeType":"ParameterList","parameters":[{"constant":false,"id":585,"indexed":false,"mutability":"mutable","name":"timestamp","nameLocation":"1015:9:5","nodeType":"VariableDeclaration","scope":587,"src":"1007:17:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":584,"name":"uint256","nodeType":"ElementaryTypeName","src":"1007:7:5","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"1006:19:5"},"src":"977:49:5"},{"anonymous":false,"documentation":{"id":588,"nodeType":"StructuredDocumentation","src":"1030:233:5","text":"@notice Emitted when a pool is created\n @param token0 The first token of the pool by address sort order\n @param token1 The second token of the pool by address sort order\n @param pool The address of the created pool"},"eventSelector":"91ccaa7a278130b65168c3a0c8d3bcae84cf5e43704342bd3ec0b59e59c036db","id":596,"name":"Pool","nameLocation":"1272:4:5","nodeType":"EventDefinition","parameters":{"id":595,"nodeType":"ParameterList","parameters":[{"constant":false,"id":590,"indexed":true,"mutability":"mutable","name":"token0","nameLocation":"1293:6:5","nodeType":"VariableDeclaration","scope":596,"src":"1277:22:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":589,"name":"address","nodeType":"ElementaryTypeName","src":"1277:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":592,"indexed":true,"mutability":"mutable","name":"token1","nameLocation":"1317:6:5","nodeType":"VariableDeclaration","scope":596,"src":"1301:22:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":591,"name":"address","nodeType":"ElementaryTypeName","src":"1301:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":594,"indexed":false,"mutability":"mutable","name":"pool","nameLocation":"1333:4:5","nodeType":"VariableDeclaration","scope":596,"src":"1325:12:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":593,"name":"address","nodeType":"ElementaryTypeName","src":"1325:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1276:62:5"},"src":"1266:73:5"},{"anonymous":false,"documentation":{"id":597,"nodeType":"StructuredDocumentation","src":"1343:298:5","text":"@notice Emitted when a pool is created\n @param deployer The corresponding custom deployer contract\n @param token0 The first token of the pool by address sort order\n @param token1 The second token of the pool by address sort order\n @param pool The address of the created pool"},"eventSelector":"8a5f030f5fc13b04a1e4ef7c47177e3d76b0e80e1d9be9843db37caa5b7b9b8f","id":607,"name":"CustomPool","nameLocation":"1650:10:5","nodeType":"EventDefinition","parameters":{"id":606,"nodeType":"ParameterList","parameters":[{"constant":false,"id":599,"indexed":true,"mutability":"mutable","name":"deployer","nameLocation":"1677:8:5","nodeType":"VariableDeclaration","scope":607,"src":"1661:24:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":598,"name":"address","nodeType":"ElementaryTypeName","src":"1661:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":601,"indexed":true,"mutability":"mutable","name":"token0","nameLocation":"1703:6:5","nodeType":"VariableDeclaration","scope":607,"src":"1687:22:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":600,"name":"address","nodeType":"ElementaryTypeName","src":"1687:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":603,"indexed":true,"mutability":"mutable","name":"token1","nameLocation":"1727:6:5","nodeType":"VariableDeclaration","scope":607,"src":"1711:22:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":602,"name":"address","nodeType":"ElementaryTypeName","src":"1711:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":605,"indexed":false,"mutability":"mutable","name":"pool","nameLocation":"1743:4:5","nodeType":"VariableDeclaration","scope":607,"src":"1735:12:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":604,"name":"address","nodeType":"ElementaryTypeName","src":"1735:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1660:88:5"},"src":"1644:105:5"},{"anonymous":false,"documentation":{"id":608,"nodeType":"StructuredDocumentation","src":"1753:133:5","text":"@notice Emitted when the default community fee is changed\n @param newDefaultCommunityFee The new default community fee value"},"eventSelector":"6b5c342391f543846fce47a925e7eba910f7bec232b08633308ca93fdd0fdf0d","id":612,"name":"DefaultCommunityFee","nameLocation":"1895:19:5","nodeType":"EventDefinition","parameters":{"id":611,"nodeType":"ParameterList","parameters":[{"constant":false,"id":610,"indexed":false,"mutability":"mutable","name":"newDefaultCommunityFee","nameLocation":"1922:22:5","nodeType":"VariableDeclaration","scope":612,"src":"1915:29:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":609,"name":"uint16","nodeType":"ElementaryTypeName","src":"1915:6:5","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"1914:31:5"},"src":"1889:57:5"},{"anonymous":false,"documentation":{"id":613,"nodeType":"StructuredDocumentation","src":"1950:128:5","text":"@notice Emitted when the default tickspacing is changed\n @param newDefaultTickspacing The new default tickspacing value"},"eventSelector":"7d7979096f943139ebee59f01c077a0f0766d06c40c86d596f23ed2561547cce","id":617,"name":"DefaultTickspacing","nameLocation":"2087:18:5","nodeType":"EventDefinition","parameters":{"id":616,"nodeType":"ParameterList","parameters":[{"constant":false,"id":615,"indexed":false,"mutability":"mutable","name":"newDefaultTickspacing","nameLocation":"2112:21:5","nodeType":"VariableDeclaration","scope":617,"src":"2106:27:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":614,"name":"int24","nodeType":"ElementaryTypeName","src":"2106:5:5","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"2105:29:5"},"src":"2081:54:5"},{"anonymous":false,"documentation":{"id":618,"nodeType":"StructuredDocumentation","src":"2139:104:5","text":"@notice Emitted when the default fee is changed\n @param newDefaultFee The new default fee value"},"eventSelector":"ddc0c6f0b581e0d51bfe90ff138e4a548f94515c4dbcb12f5e98fdf0f7503983","id":622,"name":"DefaultFee","nameLocation":"2252:10:5","nodeType":"EventDefinition","parameters":{"id":621,"nodeType":"ParameterList","parameters":[{"constant":false,"id":620,"indexed":false,"mutability":"mutable","name":"newDefaultFee","nameLocation":"2270:13:5","nodeType":"VariableDeclaration","scope":622,"src":"2263:20:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":619,"name":"uint16","nodeType":"ElementaryTypeName","src":"2263:6:5","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"2262:22:5"},"src":"2246:39:5"},{"anonymous":false,"documentation":{"id":623,"nodeType":"StructuredDocumentation","src":"2289:146:5","text":"@notice Emitted when the defaultPluginFactory address is changed\n @param defaultPluginFactoryAddress The new defaultPluginFactory address"},"eventSelector":"5e38e259ec1f8a38b98fc65a27e266bb9cc87c76eb8c96c957450d1cff4591ef","id":627,"name":"DefaultPluginFactory","nameLocation":"2444:20:5","nodeType":"EventDefinition","parameters":{"id":626,"nodeType":"ParameterList","parameters":[{"constant":false,"id":625,"indexed":false,"mutability":"mutable","name":"defaultPluginFactoryAddress","nameLocation":"2473:27:5","nodeType":"VariableDeclaration","scope":627,"src":"2465:35:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":624,"name":"address","nodeType":"ElementaryTypeName","src":"2465:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"2464:37:5"},"src":"2438:64:5"},{"anonymous":false,"documentation":{"id":628,"nodeType":"StructuredDocumentation","src":"2506:118:5","text":"@notice Emitted when the vaultFactory address is changed\n @param newVaultFactory The new vaultFactory address"},"eventSelector":"a006ea05a14783821b0248e75d2342cd1681b07509e10a0f08487b080c29dea8","id":632,"name":"VaultFactory","nameLocation":"2633:12:5","nodeType":"EventDefinition","parameters":{"id":631,"nodeType":"ParameterList","parameters":[{"constant":false,"id":630,"indexed":false,"mutability":"mutable","name":"newVaultFactory","nameLocation":"2654:15:5","nodeType":"VariableDeclaration","scope":632,"src":"2646:23:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":629,"name":"address","nodeType":"ElementaryTypeName","src":"2646:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"2645:25:5"},"src":"2627:44:5"},{"documentation":{"id":633,"nodeType":"StructuredDocumentation","src":"2675:120:5","text":"@notice role that can change communityFee and tickspacing in pools\n @return The hash corresponding to this role"},"functionSelector":"b500a48b","id":638,"implemented":false,"kind":"function","modifiers":[],"name":"POOLS_ADMINISTRATOR_ROLE","nameLocation":"2807:24:5","nodeType":"FunctionDefinition","parameters":{"id":634,"nodeType":"ParameterList","parameters":[],"src":"2831:2:5"},"returnParameters":{"id":637,"nodeType":"ParameterList","parameters":[{"constant":false,"id":636,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":638,"src":"2857:7:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":635,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2857:7:5","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"}],"src":"2856:9:5"},"scope":831,"src":"2798:68:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":639,"nodeType":"StructuredDocumentation","src":"2870:108:5","text":"@notice role that can call `createCustomPool` function\n @return The hash corresponding to this role"},"functionSelector":"07810754","id":644,"implemented":false,"kind":"function","modifiers":[],"name":"CUSTOM_POOL_DEPLOYER","nameLocation":"2990:20:5","nodeType":"FunctionDefinition","parameters":{"id":640,"nodeType":"ParameterList","parameters":[],"src":"3010:2:5"},"returnParameters":{"id":643,"nodeType":"ParameterList","parameters":[{"constant":false,"id":642,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":644,"src":"3036:7:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":641,"name":"bytes32","nodeType":"ElementaryTypeName","src":"3036:7:5","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"}],"src":"3035:9:5"},"scope":831,"src":"2981:64:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":645,"nodeType":"StructuredDocumentation","src":"3049:280:5","text":"@notice Returns `true` if `account` has been granted `role` or `account` is owner.\n @param role The hash corresponding to the role\n @param account The address for which the role is checked\n @return bool Whether the address has this role or the owner role or not"},"functionSelector":"e8ae2b69","id":654,"implemented":false,"kind":"function","modifiers":[],"name":"hasRoleOrOwner","nameLocation":"3341:14:5","nodeType":"FunctionDefinition","parameters":{"id":650,"nodeType":"ParameterList","parameters":[{"constant":false,"id":647,"mutability":"mutable","name":"role","nameLocation":"3364:4:5","nodeType":"VariableDeclaration","scope":654,"src":"3356:12:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":646,"name":"bytes32","nodeType":"ElementaryTypeName","src":"3356:7:5","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"},{"constant":false,"id":649,"mutability":"mutable","name":"account","nameLocation":"3378:7:5","nodeType":"VariableDeclaration","scope":654,"src":"3370:15:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":648,"name":"address","nodeType":"ElementaryTypeName","src":"3370:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"3355:31:5"},"returnParameters":{"id":653,"nodeType":"ParameterList","parameters":[{"constant":false,"id":652,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":654,"src":"3410:4:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":651,"name":"bool","nodeType":"ElementaryTypeName","src":"3410:4:5","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"3409:6:5"},"scope":831,"src":"3332:84:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":655,"nodeType":"StructuredDocumentation","src":"3420:186:5","text":"@notice Returns the current owner of the factory\n @dev Can be changed by the current owner via transferOwnership(address newOwner)\n @return The address of the factory owner"},"functionSelector":"8da5cb5b","id":660,"implemented":false,"kind":"function","modifiers":[],"name":"owner","nameLocation":"3618:5:5","nodeType":"FunctionDefinition","parameters":{"id":656,"nodeType":"ParameterList","parameters":[],"src":"3623:2:5"},"returnParameters":{"id":659,"nodeType":"ParameterList","parameters":[{"constant":false,"id":658,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":660,"src":"3649:7:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":657,"name":"address","nodeType":"ElementaryTypeName","src":"3649:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"3648:9:5"},"scope":831,"src":"3609:49:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":661,"nodeType":"StructuredDocumentation","src":"3662:97:5","text":"@notice Returns the current poolDeployerAddress\n @return The address of the poolDeployer"},"functionSelector":"3119049a","id":666,"implemented":false,"kind":"function","modifiers":[],"name":"poolDeployer","nameLocation":"3771:12:5","nodeType":"FunctionDefinition","parameters":{"id":662,"nodeType":"ParameterList","parameters":[],"src":"3783:2:5"},"returnParameters":{"id":665,"nodeType":"ParameterList","parameters":[{"constant":false,"id":664,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":666,"src":"3809:7:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":663,"name":"address","nodeType":"ElementaryTypeName","src":"3809:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"3808:9:5"},"scope":831,"src":"3762:56:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":667,"nodeType":"StructuredDocumentation","src":"3822:109:5","text":"@notice Returns the default community fee\n @return Fee which will be set at the creation of the pool"},"functionSelector":"2f8a39dd","id":672,"implemented":false,"kind":"function","modifiers":[],"name":"defaultCommunityFee","nameLocation":"3943:19:5","nodeType":"FunctionDefinition","parameters":{"id":668,"nodeType":"ParameterList","parameters":[],"src":"3962:2:5"},"returnParameters":{"id":671,"nodeType":"ParameterList","parameters":[{"constant":false,"id":670,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":672,"src":"3988:6:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":669,"name":"uint16","nodeType":"ElementaryTypeName","src":"3988:6:5","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"3987:8:5"},"scope":831,"src":"3934:62:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":673,"nodeType":"StructuredDocumentation","src":"4000:99:5","text":"@notice Returns the default fee\n @return Fee which will be set at the creation of the pool"},"functionSelector":"5a6c72d0","id":678,"implemented":false,"kind":"function","modifiers":[],"name":"defaultFee","nameLocation":"4111:10:5","nodeType":"FunctionDefinition","parameters":{"id":674,"nodeType":"ParameterList","parameters":[],"src":"4121:2:5"},"returnParameters":{"id":677,"nodeType":"ParameterList","parameters":[{"constant":false,"id":676,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":678,"src":"4147:6:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":675,"name":"uint16","nodeType":"ElementaryTypeName","src":"4147:6:5","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"4146:8:5"},"scope":831,"src":"4102:53:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":679,"nodeType":"StructuredDocumentation","src":"4159:115:5","text":"@notice Returns the default tickspacing\n @return Tickspacing which will be set at the creation of the pool"},"functionSelector":"29bc3446","id":684,"implemented":false,"kind":"function","modifiers":[],"name":"defaultTickspacing","nameLocation":"4286:18:5","nodeType":"FunctionDefinition","parameters":{"id":680,"nodeType":"ParameterList","parameters":[],"src":"4304:2:5"},"returnParameters":{"id":683,"nodeType":"ParameterList","parameters":[{"constant":false,"id":682,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":684,"src":"4330:5:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":681,"name":"int24","nodeType":"ElementaryTypeName","src":"4330:5:5","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"4329:7:5"},"scope":831,"src":"4277:60:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":685,"nodeType":"StructuredDocumentation","src":"4341:183:5","text":"@notice Return the current pluginFactory address\n @dev This contract is used to automatically set a plugin address in new liquidity pools\n @return Algebra plugin factory"},"functionSelector":"d0ad2792","id":691,"implemented":false,"kind":"function","modifiers":[],"name":"defaultPluginFactory","nameLocation":"4536:20:5","nodeType":"FunctionDefinition","parameters":{"id":686,"nodeType":"ParameterList","parameters":[],"src":"4556:2:5"},"returnParameters":{"id":690,"nodeType":"ParameterList","parameters":[{"constant":false,"id":689,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":691,"src":"4582:21:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPluginFactory_$1051","typeString":"contract IAlgebraPluginFactory"},"typeName":{"id":688,"nodeType":"UserDefinedTypeName","pathNode":{"id":687,"name":"IAlgebraPluginFactory","nameLocations":["4582:21:5"],"nodeType":"IdentifierPath","referencedDeclaration":1051,"src":"4582:21:5"},"referencedDeclaration":1051,"src":"4582:21:5","typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraPluginFactory_$1051","typeString":"contract IAlgebraPluginFactory"}},"visibility":"internal"}],"src":"4581:23:5"},"scope":831,"src":"4527:78:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":692,"nodeType":"StructuredDocumentation","src":"4609:180:5","text":"@notice Return the current vaultFactory address\n @dev This contract is used to automatically set a vault address in new liquidity pools\n @return Algebra vault factory"},"functionSelector":"d8a06f73","id":698,"implemented":false,"kind":"function","modifiers":[],"name":"vaultFactory","nameLocation":"4801:12:5","nodeType":"FunctionDefinition","parameters":{"id":693,"nodeType":"ParameterList","parameters":[],"src":"4813:2:5"},"returnParameters":{"id":697,"nodeType":"ParameterList","parameters":[{"constant":false,"id":696,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":698,"src":"4839:20:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraVaultFactory_$1709","typeString":"contract IAlgebraVaultFactory"},"typeName":{"id":695,"nodeType":"UserDefinedTypeName","pathNode":{"id":694,"name":"IAlgebraVaultFactory","nameLocations":["4839:20:5"],"nodeType":"IdentifierPath","referencedDeclaration":1709,"src":"4839:20:5"},"referencedDeclaration":1709,"src":"4839:20:5","typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraVaultFactory_$1709","typeString":"contract IAlgebraVaultFactory"}},"visibility":"internal"}],"src":"4838:22:5"},"scope":831,"src":"4792:69:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":699,"nodeType":"StructuredDocumentation","src":"4865:302:5","text":"@notice Returns the default communityFee, tickspacing, fee and communityFeeVault for pool\n @return communityFee which will be set at the creation of the pool\n @return tickSpacing which will be set at the creation of the pool\n @return fee which will be set at the creation of the pool"},"functionSelector":"25b355d6","id":708,"implemented":false,"kind":"function","modifiers":[],"name":"defaultConfigurationForPool","nameLocation":"5179:27:5","nodeType":"FunctionDefinition","parameters":{"id":700,"nodeType":"ParameterList","parameters":[],"src":"5206:2:5"},"returnParameters":{"id":707,"nodeType":"ParameterList","parameters":[{"constant":false,"id":702,"mutability":"mutable","name":"communityFee","nameLocation":"5239:12:5","nodeType":"VariableDeclaration","scope":708,"src":"5232:19:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":701,"name":"uint16","nodeType":"ElementaryTypeName","src":"5232:6:5","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},{"constant":false,"id":704,"mutability":"mutable","name":"tickSpacing","nameLocation":"5259:11:5","nodeType":"VariableDeclaration","scope":708,"src":"5253:17:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":703,"name":"int24","nodeType":"ElementaryTypeName","src":"5253:5:5","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":706,"mutability":"mutable","name":"fee","nameLocation":"5279:3:5","nodeType":"VariableDeclaration","scope":708,"src":"5272:10:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":705,"name":"uint16","nodeType":"ElementaryTypeName","src":"5272:6:5","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"5231:52:5"},"scope":831,"src":"5170:114:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":709,"nodeType":"StructuredDocumentation","src":"5288:277:5","text":"@notice Deterministically computes the pool address given the token0 and token1\n @dev The method does not check if such a pool has been created\n @param token0 first token\n @param token1 second token\n @return pool The contract address of the Algebra pool"},"functionSelector":"d8ed2241","id":718,"implemented":false,"kind":"function","modifiers":[],"name":"computePoolAddress","nameLocation":"5577:18:5","nodeType":"FunctionDefinition","parameters":{"id":714,"nodeType":"ParameterList","parameters":[{"constant":false,"id":711,"mutability":"mutable","name":"token0","nameLocation":"5604:6:5","nodeType":"VariableDeclaration","scope":718,"src":"5596:14:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":710,"name":"address","nodeType":"ElementaryTypeName","src":"5596:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":713,"mutability":"mutable","name":"token1","nameLocation":"5620:6:5","nodeType":"VariableDeclaration","scope":718,"src":"5612:14:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":712,"name":"address","nodeType":"ElementaryTypeName","src":"5612:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"5595:32:5"},"returnParameters":{"id":717,"nodeType":"ParameterList","parameters":[{"constant":false,"id":716,"mutability":"mutable","name":"pool","nameLocation":"5659:4:5","nodeType":"VariableDeclaration","scope":718,"src":"5651:12:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":715,"name":"address","nodeType":"ElementaryTypeName","src":"5651:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"5650:14:5"},"scope":831,"src":"5568:97:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":719,"nodeType":"StructuredDocumentation","src":"5669:372:5","text":"@notice Deterministically computes the custom pool address given the customDeployer, token0 and token1\n @dev The method does not check if such a pool has been created\n @param customDeployer the address of custom plugin deployer\n @param token0 first token\n @param token1 second token\n @return customPool The contract address of the Algebra pool"},"functionSelector":"1ba89df4","id":730,"implemented":false,"kind":"function","modifiers":[],"name":"computeCustomPoolAddress","nameLocation":"6053:24:5","nodeType":"FunctionDefinition","parameters":{"id":726,"nodeType":"ParameterList","parameters":[{"constant":false,"id":721,"mutability":"mutable","name":"customDeployer","nameLocation":"6086:14:5","nodeType":"VariableDeclaration","scope":730,"src":"6078:22:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":720,"name":"address","nodeType":"ElementaryTypeName","src":"6078:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":723,"mutability":"mutable","name":"token0","nameLocation":"6110:6:5","nodeType":"VariableDeclaration","scope":730,"src":"6102:14:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":722,"name":"address","nodeType":"ElementaryTypeName","src":"6102:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":725,"mutability":"mutable","name":"token1","nameLocation":"6126:6:5","nodeType":"VariableDeclaration","scope":730,"src":"6118:14:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":724,"name":"address","nodeType":"ElementaryTypeName","src":"6118:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"6077:56:5"},"returnParameters":{"id":729,"nodeType":"ParameterList","parameters":[{"constant":false,"id":728,"mutability":"mutable","name":"customPool","nameLocation":"6165:10:5","nodeType":"VariableDeclaration","scope":730,"src":"6157:18:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":727,"name":"address","nodeType":"ElementaryTypeName","src":"6157:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"6156:20:5"},"scope":831,"src":"6044:133:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":731,"nodeType":"StructuredDocumentation","src":"6181:352:5","text":"@notice Returns the pool address for a given pair of tokens, or address 0 if it does not exist\n @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\n @param tokenA The contract address of either token0 or token1\n @param tokenB The contract address of the other token\n @return pool The pool address"},"functionSelector":"d9a641e1","id":740,"implemented":false,"kind":"function","modifiers":[],"name":"poolByPair","nameLocation":"6545:10:5","nodeType":"FunctionDefinition","parameters":{"id":736,"nodeType":"ParameterList","parameters":[{"constant":false,"id":733,"mutability":"mutable","name":"tokenA","nameLocation":"6564:6:5","nodeType":"VariableDeclaration","scope":740,"src":"6556:14:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":732,"name":"address","nodeType":"ElementaryTypeName","src":"6556:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":735,"mutability":"mutable","name":"tokenB","nameLocation":"6580:6:5","nodeType":"VariableDeclaration","scope":740,"src":"6572:14:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":734,"name":"address","nodeType":"ElementaryTypeName","src":"6572:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"6555:32:5"},"returnParameters":{"id":739,"nodeType":"ParameterList","parameters":[{"constant":false,"id":738,"mutability":"mutable","name":"pool","nameLocation":"6619:4:5","nodeType":"VariableDeclaration","scope":740,"src":"6611:12:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":737,"name":"address","nodeType":"ElementaryTypeName","src":"6611:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"6610:14:5"},"scope":831,"src":"6536:89:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":741,"nodeType":"StructuredDocumentation","src":"6629:452:5","text":"@notice Returns the custom pool address for a customDeployer and a given pair of tokens, or address 0 if it does not exist\n @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\n @param customDeployer The address of custom plugin deployer\n @param tokenA The contract address of either token0 or token1\n @param tokenB The contract address of the other token\n @return customPool The pool address"},"functionSelector":"23da36cc","id":752,"implemented":false,"kind":"function","modifiers":[],"name":"customPoolByPair","nameLocation":"7093:16:5","nodeType":"FunctionDefinition","parameters":{"id":748,"nodeType":"ParameterList","parameters":[{"constant":false,"id":743,"mutability":"mutable","name":"customDeployer","nameLocation":"7118:14:5","nodeType":"VariableDeclaration","scope":752,"src":"7110:22:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":742,"name":"address","nodeType":"ElementaryTypeName","src":"7110:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":745,"mutability":"mutable","name":"tokenA","nameLocation":"7142:6:5","nodeType":"VariableDeclaration","scope":752,"src":"7134:14:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":744,"name":"address","nodeType":"ElementaryTypeName","src":"7134:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":747,"mutability":"mutable","name":"tokenB","nameLocation":"7158:6:5","nodeType":"VariableDeclaration","scope":752,"src":"7150:14:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":746,"name":"address","nodeType":"ElementaryTypeName","src":"7150:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"7109:56:5"},"returnParameters":{"id":751,"nodeType":"ParameterList","parameters":[{"constant":false,"id":750,"mutability":"mutable","name":"customPool","nameLocation":"7197:10:5","nodeType":"VariableDeclaration","scope":752,"src":"7189:18:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":749,"name":"address","nodeType":"ElementaryTypeName","src":"7189:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"7188:20:5"},"scope":831,"src":"7084:125:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":753,"nodeType":"StructuredDocumentation","src":"7213:197:5","text":"@notice returns keccak256 of AlgebraPool init bytecode.\n @dev the hash value changes with any change in the pool bytecode\n @return Keccak256 hash of AlgebraPool contract init bytecode"},"functionSelector":"dc6fd8ab","id":758,"implemented":false,"kind":"function","modifiers":[],"name":"POOL_INIT_CODE_HASH","nameLocation":"7422:19:5","nodeType":"FunctionDefinition","parameters":{"id":754,"nodeType":"ParameterList","parameters":[],"src":"7441:2:5"},"returnParameters":{"id":757,"nodeType":"ParameterList","parameters":[{"constant":false,"id":756,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":758,"src":"7467:7:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":755,"name":"bytes32","nodeType":"ElementaryTypeName","src":"7467:7:5","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"}],"src":"7466:9:5"},"scope":831,"src":"7413:63:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":759,"nodeType":"StructuredDocumentation","src":"7480:85:5","text":"@return timestamp The timestamp of the beginning of the renounceOwnership process"},"functionSelector":"084bfff9","id":764,"implemented":false,"kind":"function","modifiers":[],"name":"renounceOwnershipStartTimestamp","nameLocation":"7577:31:5","nodeType":"FunctionDefinition","parameters":{"id":760,"nodeType":"ParameterList","parameters":[],"src":"7608:2:5"},"returnParameters":{"id":763,"nodeType":"ParameterList","parameters":[{"constant":false,"id":762,"mutability":"mutable","name":"timestamp","nameLocation":"7642:9:5","nodeType":"VariableDeclaration","scope":764,"src":"7634:17:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":761,"name":"uint256","nodeType":"ElementaryTypeName","src":"7634:7:5","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"7633:19:5"},"scope":831,"src":"7568:85:5","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":765,"nodeType":"StructuredDocumentation","src":"7657:463:5","text":"@notice Creates a pool for the given two tokens\n @param tokenA One of the two tokens in the desired pool\n @param tokenB The other of the two tokens in the desired pool\n @param data Data for plugin creation\n @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0.\n The call will revert if the pool already exists or the token arguments are invalid.\n @return pool The address of the newly created pool"},"functionSelector":"321935c6","id":776,"implemented":false,"kind":"function","modifiers":[],"name":"createPool","nameLocation":"8132:10:5","nodeType":"FunctionDefinition","parameters":{"id":772,"nodeType":"ParameterList","parameters":[{"constant":false,"id":767,"mutability":"mutable","name":"tokenA","nameLocation":"8151:6:5","nodeType":"VariableDeclaration","scope":776,"src":"8143:14:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":766,"name":"address","nodeType":"ElementaryTypeName","src":"8143:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":769,"mutability":"mutable","name":"tokenB","nameLocation":"8167:6:5","nodeType":"VariableDeclaration","scope":776,"src":"8159:14:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":768,"name":"address","nodeType":"ElementaryTypeName","src":"8159:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":771,"mutability":"mutable","name":"data","nameLocation":"8190:4:5","nodeType":"VariableDeclaration","scope":776,"src":"8175:19:5","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":770,"name":"bytes","nodeType":"ElementaryTypeName","src":"8175:5:5","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"8142:53:5"},"returnParameters":{"id":775,"nodeType":"ParameterList","parameters":[{"constant":false,"id":774,"mutability":"mutable","name":"pool","nameLocation":"8222:4:5","nodeType":"VariableDeclaration","scope":776,"src":"8214:12:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":773,"name":"address","nodeType":"ElementaryTypeName","src":"8214:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"8213:14:5"},"scope":831,"src":"8123:105:5","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":777,"nodeType":"StructuredDocumentation","src":"8232:669:5","text":"@notice Creates a custom pool for the given two tokens using `deployer` contract\n @param deployer The address of plugin deployer, also used for custom pool address calculation\n @param creator The initiator of custom pool creation\n @param tokenA One of the two tokens in the desired pool\n @param tokenB The other of the two tokens in the desired pool\n @param data The additional data bytes\n @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0.\n The call will revert if the pool already exists or the token arguments are invalid.\n @return customPool The address of the newly created custom pool"},"functionSelector":"dbbf3db4","id":792,"implemented":false,"kind":"function","modifiers":[],"name":"createCustomPool","nameLocation":"8913:16:5","nodeType":"FunctionDefinition","parameters":{"id":788,"nodeType":"ParameterList","parameters":[{"constant":false,"id":779,"mutability":"mutable","name":"deployer","nameLocation":"8943:8:5","nodeType":"VariableDeclaration","scope":792,"src":"8935:16:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":778,"name":"address","nodeType":"ElementaryTypeName","src":"8935:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":781,"mutability":"mutable","name":"creator","nameLocation":"8965:7:5","nodeType":"VariableDeclaration","scope":792,"src":"8957:15:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":780,"name":"address","nodeType":"ElementaryTypeName","src":"8957:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":783,"mutability":"mutable","name":"tokenA","nameLocation":"8986:6:5","nodeType":"VariableDeclaration","scope":792,"src":"8978:14:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":782,"name":"address","nodeType":"ElementaryTypeName","src":"8978:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":785,"mutability":"mutable","name":"tokenB","nameLocation":"9006:6:5","nodeType":"VariableDeclaration","scope":792,"src":"8998:14:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":784,"name":"address","nodeType":"ElementaryTypeName","src":"8998:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":787,"mutability":"mutable","name":"data","nameLocation":"9033:4:5","nodeType":"VariableDeclaration","scope":792,"src":"9018:19:5","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":786,"name":"bytes","nodeType":"ElementaryTypeName","src":"9018:5:5","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"8929:112:5"},"returnParameters":{"id":791,"nodeType":"ParameterList","parameters":[{"constant":false,"id":790,"mutability":"mutable","name":"customPool","nameLocation":"9068:10:5","nodeType":"VariableDeclaration","scope":792,"src":"9060:18:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":789,"name":"address","nodeType":"ElementaryTypeName","src":"9060:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"9059:20:5"},"scope":831,"src":"8904:176:5","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":793,"nodeType":"StructuredDocumentation","src":"9084:142:5","text":"@dev updates default community fee for new pools\n @param newDefaultCommunityFee The new community fee, _must_ be <= MAX_COMMUNITY_FEE"},"functionSelector":"8d5a8711","id":798,"implemented":false,"kind":"function","modifiers":[],"name":"setDefaultCommunityFee","nameLocation":"9238:22:5","nodeType":"FunctionDefinition","parameters":{"id":796,"nodeType":"ParameterList","parameters":[{"constant":false,"id":795,"mutability":"mutable","name":"newDefaultCommunityFee","nameLocation":"9268:22:5","nodeType":"VariableDeclaration","scope":798,"src":"9261:29:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":794,"name":"uint16","nodeType":"ElementaryTypeName","src":"9261:6:5","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"9260:31:5"},"returnParameters":{"id":797,"nodeType":"ParameterList","parameters":[],"src":"9300:0:5"},"scope":831,"src":"9229:72:5","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":799,"nodeType":"StructuredDocumentation","src":"9305:112:5","text":"@dev updates default fee for new pools\n @param newDefaultFee The new  fee, _must_ be <= MAX_DEFAULT_FEE"},"functionSelector":"77326584","id":804,"implemented":false,"kind":"function","modifiers":[],"name":"setDefaultFee","nameLocation":"9429:13:5","nodeType":"FunctionDefinition","parameters":{"id":802,"nodeType":"ParameterList","parameters":[{"constant":false,"id":801,"mutability":"mutable","name":"newDefaultFee","nameLocation":"9450:13:5","nodeType":"VariableDeclaration","scope":804,"src":"9443:20:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":800,"name":"uint16","nodeType":"ElementaryTypeName","src":"9443:6:5","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"9442:22:5"},"returnParameters":{"id":803,"nodeType":"ParameterList","parameters":[],"src":"9473:0:5"},"scope":831,"src":"9420:54:5","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":805,"nodeType":"StructuredDocumentation","src":"9478:160:5","text":"@dev updates default tickspacing for new pools\n @param newDefaultTickspacing The new tickspacing, _must_ be <= MAX_TICK_SPACING and >= MIN_TICK_SPACING"},"functionSelector":"f09489ac","id":810,"implemented":false,"kind":"function","modifiers":[],"name":"setDefaultTickspacing","nameLocation":"9650:21:5","nodeType":"FunctionDefinition","parameters":{"id":808,"nodeType":"ParameterList","parameters":[{"constant":false,"id":807,"mutability":"mutable","name":"newDefaultTickspacing","nameLocation":"9678:21:5","nodeType":"VariableDeclaration","scope":810,"src":"9672:27:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":806,"name":"int24","nodeType":"ElementaryTypeName","src":"9672:5:5","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"9671:29:5"},"returnParameters":{"id":809,"nodeType":"ParameterList","parameters":[],"src":"9709:0:5"},"scope":831,"src":"9641:69:5","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":811,"nodeType":"StructuredDocumentation","src":"9714:105:5","text":"@dev updates pluginFactory address\n @param newDefaultPluginFactory address of new plugin factory"},"functionSelector":"2939dd97","id":816,"implemented":false,"kind":"function","modifiers":[],"name":"setDefaultPluginFactory","nameLocation":"9831:23:5","nodeType":"FunctionDefinition","parameters":{"id":814,"nodeType":"ParameterList","parameters":[{"constant":false,"id":813,"mutability":"mutable","name":"newDefaultPluginFactory","nameLocation":"9863:23:5","nodeType":"VariableDeclaration","scope":816,"src":"9855:31:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":812,"name":"address","nodeType":"ElementaryTypeName","src":"9855:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"9854:33:5"},"returnParameters":{"id":815,"nodeType":"ParameterList","parameters":[],"src":"9896:0:5"},"scope":831,"src":"9822:75:5","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":817,"nodeType":"StructuredDocumentation","src":"9901:95:5","text":"@dev updates vaultFactory address\n @param newVaultFactory address of new vault factory"},"functionSelector":"3ea7fbdb","id":822,"implemented":false,"kind":"function","modifiers":[],"name":"setVaultFactory","nameLocation":"10008:15:5","nodeType":"FunctionDefinition","parameters":{"id":820,"nodeType":"ParameterList","parameters":[{"constant":false,"id":819,"mutability":"mutable","name":"newVaultFactory","nameLocation":"10032:15:5","nodeType":"VariableDeclaration","scope":822,"src":"10024:23:5","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":818,"name":"address","nodeType":"ElementaryTypeName","src":"10024:7:5","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"10023:25:5"},"returnParameters":{"id":821,"nodeType":"ParameterList","parameters":[],"src":"10057:0:5"},"scope":831,"src":"9999:59:5","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":823,"nodeType":"StructuredDocumentation","src":"10062:149:5","text":"@notice Starts process of renounceOwnership. After that, a certain period\n of time must pass before the ownership renounce can be completed."},"functionSelector":"469388c4","id":826,"implemented":false,"kind":"function","modifiers":[],"name":"startRenounceOwnership","nameLocation":"10223:22:5","nodeType":"FunctionDefinition","parameters":{"id":824,"nodeType":"ParameterList","parameters":[],"src":"10245:2:5"},"returnParameters":{"id":825,"nodeType":"ParameterList","parameters":[],"src":"10256:0:5"},"scope":831,"src":"10214:43:5","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":827,"nodeType":"StructuredDocumentation","src":"10261:65:5","text":"@notice Stops process of renounceOwnership and removes timer."},"functionSelector":"238a1d74","id":830,"implemented":false,"kind":"function","modifiers":[],"name":"stopRenounceOwnership","nameLocation":"10338:21:5","nodeType":"FunctionDefinition","parameters":{"id":828,"nodeType":"ParameterList","parameters":[],"src":"10359:2:5"},"returnParameters":{"id":829,"nodeType":"ParameterList","parameters":[],"src":"10370:0:5"},"scope":831,"src":"10329:42:5","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":832,"src":"363:10010:5","usedErrors":[],"usedEvents":[577,582,587,596,607,612,617,622,627,632]}],"src":"45:10329:5"},"id":5},"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol","exportedSymbols":{"IAlgebraPool":[853],"IAlgebraPoolActions":[1167],"IAlgebraPoolErrors":[1269],"IAlgebraPoolEvents":[1421],"IAlgebraPoolImmutables":[1449],"IAlgebraPoolPermissionedActions":[1497],"IAlgebraPoolState":[1681]},"id":854,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":833,"literals":["solidity",">=","0.8",".4"],"nodeType":"PragmaDirective","src":"45:24:6"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol","file":"./pool/IAlgebraPoolImmutables.sol","id":834,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":854,"sourceUnit":1450,"src":"71:43:6","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol","file":"./pool/IAlgebraPoolState.sol","id":835,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":854,"sourceUnit":1682,"src":"115:38:6","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol","file":"./pool/IAlgebraPoolActions.sol","id":836,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":854,"sourceUnit":1168,"src":"154:40:6","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol","file":"./pool/IAlgebraPoolPermissionedActions.sol","id":837,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":854,"sourceUnit":1498,"src":"195:52:6","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol","file":"./pool/IAlgebraPoolEvents.sol","id":838,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":854,"sourceUnit":1422,"src":"248:39:6","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol","file":"./pool/IAlgebraPoolErrors.sol","id":839,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":854,"sourceUnit":1270,"src":"288:39:6","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[{"baseName":{"id":841,"name":"IAlgebraPoolImmutables","nameLocations":["759:22:6"],"nodeType":"IdentifierPath","referencedDeclaration":1449,"src":"759:22:6"},"id":842,"nodeType":"InheritanceSpecifier","src":"759:22:6"},{"baseName":{"id":843,"name":"IAlgebraPoolState","nameLocations":["785:17:6"],"nodeType":"IdentifierPath","referencedDeclaration":1681,"src":"785:17:6"},"id":844,"nodeType":"InheritanceSpecifier","src":"785:17:6"},{"baseName":{"id":845,"name":"IAlgebraPoolActions","nameLocations":["806:19:6"],"nodeType":"IdentifierPath","referencedDeclaration":1167,"src":"806:19:6"},"id":846,"nodeType":"InheritanceSpecifier","src":"806:19:6"},{"baseName":{"id":847,"name":"IAlgebraPoolPermissionedActions","nameLocations":["829:31:6"],"nodeType":"IdentifierPath","referencedDeclaration":1497,"src":"829:31:6"},"id":848,"nodeType":"InheritanceSpecifier","src":"829:31:6"},{"baseName":{"id":849,"name":"IAlgebraPoolEvents","nameLocations":["864:18:6"],"nodeType":"IdentifierPath","referencedDeclaration":1421,"src":"864:18:6"},"id":850,"nodeType":"InheritanceSpecifier","src":"864:18:6"},{"baseName":{"id":851,"name":"IAlgebraPoolErrors","nameLocations":["886:18:6"],"nodeType":"IdentifierPath","referencedDeclaration":1269,"src":"886:18:6"},"id":852,"nodeType":"InheritanceSpecifier","src":"886:18:6"}],"canonicalName":"IAlgebraPool","contractDependencies":[],"contractKind":"interface","documentation":{"id":840,"nodeType":"StructuredDocumentation","src":"329:402:6","text":"@title The interface for a Algebra Pool\n @dev The pool interface is broken up into many smaller pieces.\n This interface includes custom error definitions and cannot be used in older versions of Solidity.\n For older versions of Solidity use #IAlgebraPoolLegacy\n Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":false,"id":853,"linearizedBaseContracts":[853,1269,1421,1497,1167,1681,1449],"name":"IAlgebraPool","nameLocation":"741:12:6","nodeType":"ContractDefinition","nodes":[],"scope":854,"src":"731:217:6","usedErrors":[1173,1176,1179,1182,1185,1188,1191,1194,1197,1200,1203,1206,1209,1212,1215,1218,1221,1224,1227,1230,1235,1238,1241,1244,1247,1250,1253,1256,1259,1262,1265,1268],"usedEvents":[1279,1296,1311,1326,1333,1350,1359,1374,1381,1386,1391,1396,1401,1406,1411,1420]}],"src":"45:904:6"},"id":6},"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol","exportedSymbols":{"IAlgebraPlugin":[1019]},"id":1020,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":855,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:7"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPlugin","contractDependencies":[],"contractKind":"interface","documentation":{"id":856,"nodeType":"StructuredDocumentation","src":"71:145:7","text":"@title The Algebra plugin interface\n @dev The plugin will be called by the pool using hook methods depending on the current pool settings"},"fullyImplemented":false,"id":1019,"linearizedBaseContracts":[1019],"name":"IAlgebraPlugin","nameLocation":"226:14:7","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":857,"nodeType":"StructuredDocumentation","src":"245:202:7","text":"@notice Returns plugin config\n @return config Each bit of the config is responsible for enabling/disabling the hooks.\n The last bit indicates whether the plugin contains dynamic fees logic"},"functionSelector":"689ea370","id":862,"implemented":false,"kind":"function","modifiers":[],"name":"defaultPluginConfig","nameLocation":"459:19:7","nodeType":"FunctionDefinition","parameters":{"id":858,"nodeType":"ParameterList","parameters":[],"src":"478:2:7"},"returnParameters":{"id":861,"nodeType":"ParameterList","parameters":[{"constant":false,"id":860,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":862,"src":"504:5:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":859,"name":"uint8","nodeType":"ElementaryTypeName","src":"504:5:7","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"503:7:7"},"scope":1019,"src":"450:61:7","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":863,"nodeType":"StructuredDocumentation","src":"515:216:7","text":"@notice Handle plugin fee transfer on plugin contract\n @param pluginFee0 Fee0 amount transferred to plugin\n @param pluginFee1 Fee1 amount transferred to plugin\n @return bytes4 The function selector"},"functionSelector":"aa6b14bb","id":872,"implemented":false,"kind":"function","modifiers":[],"name":"handlePluginFee","nameLocation":"743:15:7","nodeType":"FunctionDefinition","parameters":{"id":868,"nodeType":"ParameterList","parameters":[{"constant":false,"id":865,"mutability":"mutable","name":"pluginFee0","nameLocation":"767:10:7","nodeType":"VariableDeclaration","scope":872,"src":"759:18:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":864,"name":"uint256","nodeType":"ElementaryTypeName","src":"759:7:7","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":867,"mutability":"mutable","name":"pluginFee1","nameLocation":"787:10:7","nodeType":"VariableDeclaration","scope":872,"src":"779:18:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":866,"name":"uint256","nodeType":"ElementaryTypeName","src":"779:7:7","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"758:40:7"},"returnParameters":{"id":871,"nodeType":"ParameterList","parameters":[{"constant":false,"id":870,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":872,"src":"817:6:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":869,"name":"bytes4","nodeType":"ElementaryTypeName","src":"817:6:7","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"816:8:7"},"scope":1019,"src":"734:91:7","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":873,"nodeType":"StructuredDocumentation","src":"829:258:7","text":"@notice The hook called before the state of a pool is initialized\n @param sender The initial msg.sender for the initialize call\n @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n @return bytes4 The function selector for the hook"},"functionSelector":"636fd804","id":882,"implemented":false,"kind":"function","modifiers":[],"name":"beforeInitialize","nameLocation":"1099:16:7","nodeType":"FunctionDefinition","parameters":{"id":878,"nodeType":"ParameterList","parameters":[{"constant":false,"id":875,"mutability":"mutable","name":"sender","nameLocation":"1124:6:7","nodeType":"VariableDeclaration","scope":882,"src":"1116:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":874,"name":"address","nodeType":"ElementaryTypeName","src":"1116:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":877,"mutability":"mutable","name":"sqrtPriceX96","nameLocation":"1140:12:7","nodeType":"VariableDeclaration","scope":882,"src":"1132:20:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":876,"name":"uint160","nodeType":"ElementaryTypeName","src":"1132:7:7","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"src":"1115:38:7"},"returnParameters":{"id":881,"nodeType":"ParameterList","parameters":[{"constant":false,"id":880,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":882,"src":"1172:6:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":879,"name":"bytes4","nodeType":"ElementaryTypeName","src":"1172:6:7","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"1171:8:7"},"scope":1019,"src":"1090:90:7","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":883,"nodeType":"StructuredDocumentation","src":"1184:333:7","text":"@notice The hook called after the state of a pool is initialized\n @param sender The initial msg.sender for the initialize call\n @param sqrtPriceX96 The sqrt(price) of the pool as a Q64.96\n @param tick The current tick after the state of a pool is initialized\n @return bytes4 The function selector for the hook"},"functionSelector":"82dd6522","id":894,"implemented":false,"kind":"function","modifiers":[],"name":"afterInitialize","nameLocation":"1529:15:7","nodeType":"FunctionDefinition","parameters":{"id":890,"nodeType":"ParameterList","parameters":[{"constant":false,"id":885,"mutability":"mutable","name":"sender","nameLocation":"1553:6:7","nodeType":"VariableDeclaration","scope":894,"src":"1545:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":884,"name":"address","nodeType":"ElementaryTypeName","src":"1545:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":887,"mutability":"mutable","name":"sqrtPriceX96","nameLocation":"1569:12:7","nodeType":"VariableDeclaration","scope":894,"src":"1561:20:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":886,"name":"uint160","nodeType":"ElementaryTypeName","src":"1561:7:7","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":889,"mutability":"mutable","name":"tick","nameLocation":"1589:4:7","nodeType":"VariableDeclaration","scope":894,"src":"1583:10:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":888,"name":"int24","nodeType":"ElementaryTypeName","src":"1583:5:7","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"1544:50:7"},"returnParameters":{"id":893,"nodeType":"ParameterList","parameters":[{"constant":false,"id":892,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":894,"src":"1613:6:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":891,"name":"bytes4","nodeType":"ElementaryTypeName","src":"1613:6:7","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"1612:8:7"},"scope":1019,"src":"1520:101:7","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":895,"nodeType":"StructuredDocumentation","src":"1625:575:7","text":"@notice The hook called before a position is modified\n @param sender The initial msg.sender for the modify position call\n @param recipient Address to which the liquidity will be assigned in case of a mint or\n to which tokens will be sent in case of a burn\n @param bottomTick The lower tick of the position\n @param topTick The upper tick of the position\n @param desiredLiquidityDelta The desired amount of liquidity to mint/burn\n @param data Data that passed through the callback\n @return selector The function selector for the hook"},"functionSelector":"5e2411b2","id":914,"implemented":false,"kind":"function","modifiers":[],"name":"beforeModifyPosition","nameLocation":"2212:20:7","nodeType":"FunctionDefinition","parameters":{"id":908,"nodeType":"ParameterList","parameters":[{"constant":false,"id":897,"mutability":"mutable","name":"sender","nameLocation":"2246:6:7","nodeType":"VariableDeclaration","scope":914,"src":"2238:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":896,"name":"address","nodeType":"ElementaryTypeName","src":"2238:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":899,"mutability":"mutable","name":"recipient","nameLocation":"2266:9:7","nodeType":"VariableDeclaration","scope":914,"src":"2258:17:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":898,"name":"address","nodeType":"ElementaryTypeName","src":"2258:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":901,"mutability":"mutable","name":"bottomTick","nameLocation":"2287:10:7","nodeType":"VariableDeclaration","scope":914,"src":"2281:16:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":900,"name":"int24","nodeType":"ElementaryTypeName","src":"2281:5:7","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":903,"mutability":"mutable","name":"topTick","nameLocation":"2309:7:7","nodeType":"VariableDeclaration","scope":914,"src":"2303:13:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":902,"name":"int24","nodeType":"ElementaryTypeName","src":"2303:5:7","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":905,"mutability":"mutable","name":"desiredLiquidityDelta","nameLocation":"2329:21:7","nodeType":"VariableDeclaration","scope":914,"src":"2322:28:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":904,"name":"int128","nodeType":"ElementaryTypeName","src":"2322:6:7","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":907,"mutability":"mutable","name":"data","nameLocation":"2371:4:7","nodeType":"VariableDeclaration","scope":914,"src":"2356:19:7","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":906,"name":"bytes","nodeType":"ElementaryTypeName","src":"2356:5:7","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"2232:147:7"},"returnParameters":{"id":913,"nodeType":"ParameterList","parameters":[{"constant":false,"id":910,"mutability":"mutable","name":"selector","nameLocation":"2405:8:7","nodeType":"VariableDeclaration","scope":914,"src":"2398:15:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":909,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2398:6:7","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"},{"constant":false,"id":912,"mutability":"mutable","name":"pluginFee","nameLocation":"2422:9:7","nodeType":"VariableDeclaration","scope":914,"src":"2415:16:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":911,"name":"uint24","nodeType":"ElementaryTypeName","src":"2415:6:7","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"2397:35:7"},"scope":1019,"src":"2203:230:7","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":915,"nodeType":"StructuredDocumentation","src":"2437:740:7","text":"@notice The hook called after a position is modified\n @param sender The initial msg.sender for the modify position call\n @param recipient Address to which the liquidity will be assigned in case of a mint or\n to which tokens will be sent in case of a burn\n @param bottomTick The lower tick of the position\n @param topTick The upper tick of the position\n @param desiredLiquidityDelta The desired amount of liquidity to mint/burn\n @param amount0 The amount of token0 sent to the recipient or was paid to mint\n @param amount1 The amount of token0 sent to the recipient or was paid to mint\n @param data Data that passed through the callback\n @return bytes4 The function selector for the hook"},"functionSelector":"d6852010","id":936,"implemented":false,"kind":"function","modifiers":[],"name":"afterModifyPosition","nameLocation":"3189:19:7","nodeType":"FunctionDefinition","parameters":{"id":932,"nodeType":"ParameterList","parameters":[{"constant":false,"id":917,"mutability":"mutable","name":"sender","nameLocation":"3222:6:7","nodeType":"VariableDeclaration","scope":936,"src":"3214:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":916,"name":"address","nodeType":"ElementaryTypeName","src":"3214:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":919,"mutability":"mutable","name":"recipient","nameLocation":"3242:9:7","nodeType":"VariableDeclaration","scope":936,"src":"3234:17:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":918,"name":"address","nodeType":"ElementaryTypeName","src":"3234:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":921,"mutability":"mutable","name":"bottomTick","nameLocation":"3263:10:7","nodeType":"VariableDeclaration","scope":936,"src":"3257:16:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":920,"name":"int24","nodeType":"ElementaryTypeName","src":"3257:5:7","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":923,"mutability":"mutable","name":"topTick","nameLocation":"3285:7:7","nodeType":"VariableDeclaration","scope":936,"src":"3279:13:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":922,"name":"int24","nodeType":"ElementaryTypeName","src":"3279:5:7","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":925,"mutability":"mutable","name":"desiredLiquidityDelta","nameLocation":"3305:21:7","nodeType":"VariableDeclaration","scope":936,"src":"3298:28:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":924,"name":"int128","nodeType":"ElementaryTypeName","src":"3298:6:7","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":927,"mutability":"mutable","name":"amount0","nameLocation":"3340:7:7","nodeType":"VariableDeclaration","scope":936,"src":"3332:15:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":926,"name":"uint256","nodeType":"ElementaryTypeName","src":"3332:7:7","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":929,"mutability":"mutable","name":"amount1","nameLocation":"3361:7:7","nodeType":"VariableDeclaration","scope":936,"src":"3353:15:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":928,"name":"uint256","nodeType":"ElementaryTypeName","src":"3353:7:7","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":931,"mutability":"mutable","name":"data","nameLocation":"3389:4:7","nodeType":"VariableDeclaration","scope":936,"src":"3374:19:7","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":930,"name":"bytes","nodeType":"ElementaryTypeName","src":"3374:5:7","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"3208:189:7"},"returnParameters":{"id":935,"nodeType":"ParameterList","parameters":[{"constant":false,"id":934,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":936,"src":"3416:6:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":933,"name":"bytes4","nodeType":"ElementaryTypeName","src":"3416:6:7","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"3415:8:7"},"scope":1019,"src":"3180:244:7","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":937,"nodeType":"StructuredDocumentation","src":"3428:856:7","text":"@notice The hook called before a swap\n @param sender The initial msg.sender for the swap call\n @param recipient The address to receive the output of the swap\n @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n @param amountRequired The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\n @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n value after the swap. If one for zero, the price cannot be greater than this value after the swap\n @param withPaymentInAdvance The flag indicating whether the `swapWithPaymentInAdvance` method was called\n @param data Data that passed through the callback\n @return selector The function selector for the hook"},"functionSelector":"029c1cb7","id":960,"implemented":false,"kind":"function","modifiers":[],"name":"beforeSwap","nameLocation":"4296:10:7","nodeType":"FunctionDefinition","parameters":{"id":952,"nodeType":"ParameterList","parameters":[{"constant":false,"id":939,"mutability":"mutable","name":"sender","nameLocation":"4320:6:7","nodeType":"VariableDeclaration","scope":960,"src":"4312:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":938,"name":"address","nodeType":"ElementaryTypeName","src":"4312:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":941,"mutability":"mutable","name":"recipient","nameLocation":"4340:9:7","nodeType":"VariableDeclaration","scope":960,"src":"4332:17:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":940,"name":"address","nodeType":"ElementaryTypeName","src":"4332:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":943,"mutability":"mutable","name":"zeroToOne","nameLocation":"4360:9:7","nodeType":"VariableDeclaration","scope":960,"src":"4355:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":942,"name":"bool","nodeType":"ElementaryTypeName","src":"4355:4:7","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":945,"mutability":"mutable","name":"amountRequired","nameLocation":"4382:14:7","nodeType":"VariableDeclaration","scope":960,"src":"4375:21:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":944,"name":"int256","nodeType":"ElementaryTypeName","src":"4375:6:7","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":947,"mutability":"mutable","name":"limitSqrtPrice","nameLocation":"4410:14:7","nodeType":"VariableDeclaration","scope":960,"src":"4402:22:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":946,"name":"uint160","nodeType":"ElementaryTypeName","src":"4402:7:7","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":949,"mutability":"mutable","name":"withPaymentInAdvance","nameLocation":"4435:20:7","nodeType":"VariableDeclaration","scope":960,"src":"4430:25:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":948,"name":"bool","nodeType":"ElementaryTypeName","src":"4430:4:7","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":951,"mutability":"mutable","name":"data","nameLocation":"4476:4:7","nodeType":"VariableDeclaration","scope":960,"src":"4461:19:7","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":950,"name":"bytes","nodeType":"ElementaryTypeName","src":"4461:5:7","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"4306:178:7"},"returnParameters":{"id":959,"nodeType":"ParameterList","parameters":[{"constant":false,"id":954,"mutability":"mutable","name":"selector","nameLocation":"4510:8:7","nodeType":"VariableDeclaration","scope":960,"src":"4503:15:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":953,"name":"bytes4","nodeType":"ElementaryTypeName","src":"4503:6:7","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"},{"constant":false,"id":956,"mutability":"mutable","name":"feeOverride","nameLocation":"4527:11:7","nodeType":"VariableDeclaration","scope":960,"src":"4520:18:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":955,"name":"uint24","nodeType":"ElementaryTypeName","src":"4520:6:7","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"},{"constant":false,"id":958,"mutability":"mutable","name":"pluginFee","nameLocation":"4547:9:7","nodeType":"VariableDeclaration","scope":960,"src":"4540:16:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":957,"name":"uint24","nodeType":"ElementaryTypeName","src":"4540:6:7","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"4502:55:7"},"scope":1019,"src":"4287:271:7","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":961,"nodeType":"StructuredDocumentation","src":"4562:966:7","text":"@notice The hook called after a swap\n @param sender The initial msg.sender for the swap call\n @param recipient The address to receive the output of the swap\n @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n @param amountRequired The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\n @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n value after the swap. If one for zero, the price cannot be greater than this value after the swap\n @param amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\n @param amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive\n @param data Data that passed through the callback\n @return bytes4 The function selector for the hook"},"functionSelector":"9cb5a963","id":982,"implemented":false,"kind":"function","modifiers":[],"name":"afterSwap","nameLocation":"5540:9:7","nodeType":"FunctionDefinition","parameters":{"id":978,"nodeType":"ParameterList","parameters":[{"constant":false,"id":963,"mutability":"mutable","name":"sender","nameLocation":"5563:6:7","nodeType":"VariableDeclaration","scope":982,"src":"5555:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":962,"name":"address","nodeType":"ElementaryTypeName","src":"5555:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":965,"mutability":"mutable","name":"recipient","nameLocation":"5583:9:7","nodeType":"VariableDeclaration","scope":982,"src":"5575:17:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":964,"name":"address","nodeType":"ElementaryTypeName","src":"5575:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":967,"mutability":"mutable","name":"zeroToOne","nameLocation":"5603:9:7","nodeType":"VariableDeclaration","scope":982,"src":"5598:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":966,"name":"bool","nodeType":"ElementaryTypeName","src":"5598:4:7","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":969,"mutability":"mutable","name":"amountRequired","nameLocation":"5625:14:7","nodeType":"VariableDeclaration","scope":982,"src":"5618:21:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":968,"name":"int256","nodeType":"ElementaryTypeName","src":"5618:6:7","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":971,"mutability":"mutable","name":"limitSqrtPrice","nameLocation":"5653:14:7","nodeType":"VariableDeclaration","scope":982,"src":"5645:22:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":970,"name":"uint160","nodeType":"ElementaryTypeName","src":"5645:7:7","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":973,"mutability":"mutable","name":"amount0","nameLocation":"5680:7:7","nodeType":"VariableDeclaration","scope":982,"src":"5673:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":972,"name":"int256","nodeType":"ElementaryTypeName","src":"5673:6:7","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":975,"mutability":"mutable","name":"amount1","nameLocation":"5700:7:7","nodeType":"VariableDeclaration","scope":982,"src":"5693:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":974,"name":"int256","nodeType":"ElementaryTypeName","src":"5693:6:7","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":977,"mutability":"mutable","name":"data","nameLocation":"5728:4:7","nodeType":"VariableDeclaration","scope":982,"src":"5713:19:7","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":976,"name":"bytes","nodeType":"ElementaryTypeName","src":"5713:5:7","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"5549:187:7"},"returnParameters":{"id":981,"nodeType":"ParameterList","parameters":[{"constant":false,"id":980,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":982,"src":"5755:6:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":979,"name":"bytes4","nodeType":"ElementaryTypeName","src":"5755:6:7","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"5754:8:7"},"scope":1019,"src":"5531:232:7","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":983,"nodeType":"StructuredDocumentation","src":"5767:434:7","text":"@notice The hook called before flash\n @param sender The initial msg.sender for the flash call\n @param recipient The address which will receive the token0 and token1 amounts\n @param amount0 The amount of token0 being requested for flash\n @param amount1 The amount of token1 being requested for flash\n @param data Data that passed through the callback\n @return bytes4 The function selector for the hook"},"functionSelector":"8de0a8ee","id":998,"implemented":false,"kind":"function","modifiers":[],"name":"beforeFlash","nameLocation":"6213:11:7","nodeType":"FunctionDefinition","parameters":{"id":994,"nodeType":"ParameterList","parameters":[{"constant":false,"id":985,"mutability":"mutable","name":"sender","nameLocation":"6233:6:7","nodeType":"VariableDeclaration","scope":998,"src":"6225:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":984,"name":"address","nodeType":"ElementaryTypeName","src":"6225:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":987,"mutability":"mutable","name":"recipient","nameLocation":"6249:9:7","nodeType":"VariableDeclaration","scope":998,"src":"6241:17:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":986,"name":"address","nodeType":"ElementaryTypeName","src":"6241:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":989,"mutability":"mutable","name":"amount0","nameLocation":"6268:7:7","nodeType":"VariableDeclaration","scope":998,"src":"6260:15:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":988,"name":"uint256","nodeType":"ElementaryTypeName","src":"6260:7:7","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":991,"mutability":"mutable","name":"amount1","nameLocation":"6285:7:7","nodeType":"VariableDeclaration","scope":998,"src":"6277:15:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":990,"name":"uint256","nodeType":"ElementaryTypeName","src":"6277:7:7","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":993,"mutability":"mutable","name":"data","nameLocation":"6309:4:7","nodeType":"VariableDeclaration","scope":998,"src":"6294:19:7","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":992,"name":"bytes","nodeType":"ElementaryTypeName","src":"6294:5:7","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"6224:90:7"},"returnParameters":{"id":997,"nodeType":"ParameterList","parameters":[{"constant":false,"id":996,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":998,"src":"6333:6:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":995,"name":"bytes4","nodeType":"ElementaryTypeName","src":"6333:6:7","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"6332:8:7"},"scope":1019,"src":"6204:137:7","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":999,"nodeType":"StructuredDocumentation","src":"6345:555:7","text":"@notice The hook called after flash\n @param sender The initial msg.sender for the flash call\n @param recipient The address which will receive the token0 and token1 amounts\n @param amount0 The amount of token0 being requested for flash\n @param amount1 The amount of token1 being requested for flash\n @param paid0 The amount of token0 being paid for flash\n @param paid1 The amount of token1 being paid for flash\n @param data Data that passed through the callback\n @return bytes4 The function selector for the hook"},"functionSelector":"343d37ff","id":1018,"implemented":false,"kind":"function","modifiers":[],"name":"afterFlash","nameLocation":"6912:10:7","nodeType":"FunctionDefinition","parameters":{"id":1014,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1001,"mutability":"mutable","name":"sender","nameLocation":"6936:6:7","nodeType":"VariableDeclaration","scope":1018,"src":"6928:14:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1000,"name":"address","nodeType":"ElementaryTypeName","src":"6928:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1003,"mutability":"mutable","name":"recipient","nameLocation":"6956:9:7","nodeType":"VariableDeclaration","scope":1018,"src":"6948:17:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1002,"name":"address","nodeType":"ElementaryTypeName","src":"6948:7:7","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1005,"mutability":"mutable","name":"amount0","nameLocation":"6979:7:7","nodeType":"VariableDeclaration","scope":1018,"src":"6971:15:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1004,"name":"uint256","nodeType":"ElementaryTypeName","src":"6971:7:7","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1007,"mutability":"mutable","name":"amount1","nameLocation":"7000:7:7","nodeType":"VariableDeclaration","scope":1018,"src":"6992:15:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1006,"name":"uint256","nodeType":"ElementaryTypeName","src":"6992:7:7","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1009,"mutability":"mutable","name":"paid0","nameLocation":"7021:5:7","nodeType":"VariableDeclaration","scope":1018,"src":"7013:13:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1008,"name":"uint256","nodeType":"ElementaryTypeName","src":"7013:7:7","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1011,"mutability":"mutable","name":"paid1","nameLocation":"7040:5:7","nodeType":"VariableDeclaration","scope":1018,"src":"7032:13:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1010,"name":"uint256","nodeType":"ElementaryTypeName","src":"7032:7:7","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1013,"mutability":"mutable","name":"data","nameLocation":"7066:4:7","nodeType":"VariableDeclaration","scope":1018,"src":"7051:19:7","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1012,"name":"bytes","nodeType":"ElementaryTypeName","src":"7051:5:7","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"6922:152:7"},"returnParameters":{"id":1017,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1016,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1018,"src":"7093:6:7","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":1015,"name":"bytes4","nodeType":"ElementaryTypeName","src":"7093:6:7","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"7092:8:7"},"scope":1019,"src":"6903:198:7","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":1020,"src":"216:6887:7","usedErrors":[],"usedEvents":[]}],"src":"45:7059:7"},"id":7},"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol","exportedSymbols":{"IAlgebraPluginFactory":[1051]},"id":1052,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1021,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:8"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPluginFactory","contractDependencies":[],"contractKind":"interface","documentation":{"id":1022,"nodeType":"StructuredDocumentation","src":"71:249:8","text":"@title An interface for a contract that is capable of deploying Algebra plugins\n @dev Such a factory can be used for automatic plugin creation for new pools.\n Also a factory be used as an entry point for custom (additional) pools creation"},"fullyImplemented":false,"id":1051,"linearizedBaseContracts":[1051],"name":"IAlgebraPluginFactory","nameLocation":"330:21:8","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":1023,"nodeType":"StructuredDocumentation","src":"356:364:8","text":"@notice Deploys new plugin contract for pool\n @param pool The address of the new pool\n @param creator The address that initiated the pool creation\n @param deployer The address of new plugin deployer contract (0 if not used)\n @param token0 First token of the pool\n @param token1 Second token of the pool\n @return New plugin address"},"functionSelector":"1d0338d9","id":1040,"implemented":false,"kind":"function","modifiers":[],"name":"beforeCreatePoolHook","nameLocation":"732:20:8","nodeType":"FunctionDefinition","parameters":{"id":1036,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1025,"mutability":"mutable","name":"pool","nameLocation":"766:4:8","nodeType":"VariableDeclaration","scope":1040,"src":"758:12:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1024,"name":"address","nodeType":"ElementaryTypeName","src":"758:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1027,"mutability":"mutable","name":"creator","nameLocation":"784:7:8","nodeType":"VariableDeclaration","scope":1040,"src":"776:15:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1026,"name":"address","nodeType":"ElementaryTypeName","src":"776:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1029,"mutability":"mutable","name":"deployer","nameLocation":"805:8:8","nodeType":"VariableDeclaration","scope":1040,"src":"797:16:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1028,"name":"address","nodeType":"ElementaryTypeName","src":"797:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1031,"mutability":"mutable","name":"token0","nameLocation":"827:6:8","nodeType":"VariableDeclaration","scope":1040,"src":"819:14:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1030,"name":"address","nodeType":"ElementaryTypeName","src":"819:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1033,"mutability":"mutable","name":"token1","nameLocation":"847:6:8","nodeType":"VariableDeclaration","scope":1040,"src":"839:14:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1032,"name":"address","nodeType":"ElementaryTypeName","src":"839:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1035,"mutability":"mutable","name":"data","nameLocation":"874:4:8","nodeType":"VariableDeclaration","scope":1040,"src":"859:19:8","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1034,"name":"bytes","nodeType":"ElementaryTypeName","src":"859:5:8","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"752:130:8"},"returnParameters":{"id":1039,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1038,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1040,"src":"901:7:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1037,"name":"address","nodeType":"ElementaryTypeName","src":"901:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"900:9:8"},"scope":1051,"src":"723:187:8","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1041,"nodeType":"StructuredDocumentation","src":"914:211:8","text":"@notice Called after the pool is created\n @param plugin The plugin address\n @param pool The address of the new pool\n @param deployer The address of new plugin deployer contract (0 if not used)"},"functionSelector":"8d5ef8d1","id":1050,"implemented":false,"kind":"function","modifiers":[],"name":"afterCreatePoolHook","nameLocation":"1137:19:8","nodeType":"FunctionDefinition","parameters":{"id":1048,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1043,"mutability":"mutable","name":"plugin","nameLocation":"1165:6:8","nodeType":"VariableDeclaration","scope":1050,"src":"1157:14:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1042,"name":"address","nodeType":"ElementaryTypeName","src":"1157:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1045,"mutability":"mutable","name":"pool","nameLocation":"1181:4:8","nodeType":"VariableDeclaration","scope":1050,"src":"1173:12:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1044,"name":"address","nodeType":"ElementaryTypeName","src":"1173:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1047,"mutability":"mutable","name":"deployer","nameLocation":"1195:8:8","nodeType":"VariableDeclaration","scope":1050,"src":"1187:16:8","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1046,"name":"address","nodeType":"ElementaryTypeName","src":"1187:7:8","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1156:48:8"},"returnParameters":{"id":1049,"nodeType":"ParameterList","parameters":[],"src":"1213:0:8"},"scope":1051,"src":"1128:86:8","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":1052,"src":"320:896:8","usedErrors":[],"usedEvents":[]}],"src":"45:1172:8"},"id":8},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol","exportedSymbols":{"IAlgebraPoolActions":[1167]},"id":1168,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1053,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:9"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPoolActions","contractDependencies":[],"contractKind":"interface","documentation":{"id":1054,"nodeType":"StructuredDocumentation","src":"71:173:9","text":"@title Permissionless pool actions\n @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":false,"id":1167,"linearizedBaseContracts":[1167],"name":"IAlgebraPoolActions","nameLocation":"254:19:9","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":1055,"nodeType":"StructuredDocumentation","src":"278:304:9","text":"@notice Sets the initial price for the pool\n @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value\n @dev Initialization should be done in one transaction with pool creation to avoid front-running\n @param initialPrice The initial sqrt price of the pool as a Q64.96"},"functionSelector":"f637731d","id":1060,"implemented":false,"kind":"function","modifiers":[],"name":"initialize","nameLocation":"594:10:9","nodeType":"FunctionDefinition","parameters":{"id":1058,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1057,"mutability":"mutable","name":"initialPrice","nameLocation":"613:12:9","nodeType":"VariableDeclaration","scope":1060,"src":"605:20:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1056,"name":"uint160","nodeType":"ElementaryTypeName","src":"605:7:9","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"src":"604:22:9"},"returnParameters":{"id":1059,"nodeType":"ParameterList","parameters":[],"src":"635:0:9"},"scope":1167,"src":"585:51:9","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1061,"nodeType":"StructuredDocumentation","src":"640:1184:9","text":"@notice Adds liquidity for the given recipient/bottomTick/topTick position\n @dev The caller of this method receives a callback in the form of IAlgebraMintCallback#algebraMintCallback\n in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends\n on bottomTick, topTick, the amount of liquidity, and the current price.\n @param leftoversRecipient The address which will receive potential surplus of paid tokens\n @param recipient The address for which the liquidity will be created\n @param bottomTick The lower tick of the position in which to add liquidity\n @param topTick The upper tick of the position in which to add liquidity\n @param liquidityDesired The desired amount of liquidity to mint\n @param data Any data that should be passed through to the callback\n @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback\n @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback\n @return liquidityActual The actual minted amount of liquidity"},"functionSelector":"aafe29c0","id":1082,"implemented":false,"kind":"function","modifiers":[],"name":"mint","nameLocation":"1836:4:9","nodeType":"FunctionDefinition","parameters":{"id":1074,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1063,"mutability":"mutable","name":"leftoversRecipient","nameLocation":"1854:18:9","nodeType":"VariableDeclaration","scope":1082,"src":"1846:26:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1062,"name":"address","nodeType":"ElementaryTypeName","src":"1846:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1065,"mutability":"mutable","name":"recipient","nameLocation":"1886:9:9","nodeType":"VariableDeclaration","scope":1082,"src":"1878:17:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1064,"name":"address","nodeType":"ElementaryTypeName","src":"1878:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1067,"mutability":"mutable","name":"bottomTick","nameLocation":"1907:10:9","nodeType":"VariableDeclaration","scope":1082,"src":"1901:16:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1066,"name":"int24","nodeType":"ElementaryTypeName","src":"1901:5:9","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1069,"mutability":"mutable","name":"topTick","nameLocation":"1929:7:9","nodeType":"VariableDeclaration","scope":1082,"src":"1923:13:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1068,"name":"int24","nodeType":"ElementaryTypeName","src":"1923:5:9","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1071,"mutability":"mutable","name":"liquidityDesired","nameLocation":"1950:16:9","nodeType":"VariableDeclaration","scope":1082,"src":"1942:24:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1070,"name":"uint128","nodeType":"ElementaryTypeName","src":"1942:7:9","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1073,"mutability":"mutable","name":"data","nameLocation":"1987:4:9","nodeType":"VariableDeclaration","scope":1082,"src":"1972:19:9","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1072,"name":"bytes","nodeType":"ElementaryTypeName","src":"1972:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"1840:155:9"},"returnParameters":{"id":1081,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1076,"mutability":"mutable","name":"amount0","nameLocation":"2022:7:9","nodeType":"VariableDeclaration","scope":1082,"src":"2014:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1075,"name":"uint256","nodeType":"ElementaryTypeName","src":"2014:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1078,"mutability":"mutable","name":"amount1","nameLocation":"2039:7:9","nodeType":"VariableDeclaration","scope":1082,"src":"2031:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1077,"name":"uint256","nodeType":"ElementaryTypeName","src":"2031:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1080,"mutability":"mutable","name":"liquidityActual","nameLocation":"2056:15:9","nodeType":"VariableDeclaration","scope":1082,"src":"2048:23:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1079,"name":"uint128","nodeType":"ElementaryTypeName","src":"2048:7:9","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"2013:59:9"},"scope":1167,"src":"1827:246:9","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1083,"nodeType":"StructuredDocumentation","src":"2077:1030:9","text":"@notice Collects tokens owed to a position\n @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.\n Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or\n amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the\n actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.\n @param recipient The address which should receive the fees collected\n @param bottomTick The lower tick of the position for which to collect fees\n @param topTick The upper tick of the position for which to collect fees\n @param amount0Requested How much token0 should be withdrawn from the fees owed\n @param amount1Requested How much token1 should be withdrawn from the fees owed\n @return amount0 The amount of fees collected in token0\n @return amount1 The amount of fees collected in token1"},"functionSelector":"4f1eb3d8","id":1100,"implemented":false,"kind":"function","modifiers":[],"name":"collect","nameLocation":"3119:7:9","nodeType":"FunctionDefinition","parameters":{"id":1094,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1085,"mutability":"mutable","name":"recipient","nameLocation":"3140:9:9","nodeType":"VariableDeclaration","scope":1100,"src":"3132:17:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1084,"name":"address","nodeType":"ElementaryTypeName","src":"3132:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1087,"mutability":"mutable","name":"bottomTick","nameLocation":"3161:10:9","nodeType":"VariableDeclaration","scope":1100,"src":"3155:16:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1086,"name":"int24","nodeType":"ElementaryTypeName","src":"3155:5:9","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1089,"mutability":"mutable","name":"topTick","nameLocation":"3183:7:9","nodeType":"VariableDeclaration","scope":1100,"src":"3177:13:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1088,"name":"int24","nodeType":"ElementaryTypeName","src":"3177:5:9","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1091,"mutability":"mutable","name":"amount0Requested","nameLocation":"3204:16:9","nodeType":"VariableDeclaration","scope":1100,"src":"3196:24:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1090,"name":"uint128","nodeType":"ElementaryTypeName","src":"3196:7:9","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1093,"mutability":"mutable","name":"amount1Requested","nameLocation":"3234:16:9","nodeType":"VariableDeclaration","scope":1100,"src":"3226:24:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1092,"name":"uint128","nodeType":"ElementaryTypeName","src":"3226:7:9","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"3126:128:9"},"returnParameters":{"id":1099,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1096,"mutability":"mutable","name":"amount0","nameLocation":"3281:7:9","nodeType":"VariableDeclaration","scope":1100,"src":"3273:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1095,"name":"uint128","nodeType":"ElementaryTypeName","src":"3273:7:9","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1098,"mutability":"mutable","name":"amount1","nameLocation":"3298:7:9","nodeType":"VariableDeclaration","scope":1100,"src":"3290:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1097,"name":"uint128","nodeType":"ElementaryTypeName","src":"3290:7:9","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"3272:34:9"},"scope":1167,"src":"3110:197:9","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1101,"nodeType":"StructuredDocumentation","src":"3311:687:9","text":"@notice Burn liquidity from the sender and account tokens owed for the liquidity to the position\n @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0\n @dev Fees must be collected separately via a call to #collect\n @param bottomTick The lower tick of the position for which to burn liquidity\n @param topTick The upper tick of the position for which to burn liquidity\n @param amount How much liquidity to burn\n @param data Any data that should be passed through to the plugin\n @return amount0 The amount of token0 sent to the recipient\n @return amount1 The amount of token1 sent to the recipient"},"functionSelector":"3b3bc70e","id":1116,"implemented":false,"kind":"function","modifiers":[],"name":"burn","nameLocation":"4010:4:9","nodeType":"FunctionDefinition","parameters":{"id":1110,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1103,"mutability":"mutable","name":"bottomTick","nameLocation":"4021:10:9","nodeType":"VariableDeclaration","scope":1116,"src":"4015:16:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1102,"name":"int24","nodeType":"ElementaryTypeName","src":"4015:5:9","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1105,"mutability":"mutable","name":"topTick","nameLocation":"4039:7:9","nodeType":"VariableDeclaration","scope":1116,"src":"4033:13:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1104,"name":"int24","nodeType":"ElementaryTypeName","src":"4033:5:9","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1107,"mutability":"mutable","name":"amount","nameLocation":"4056:6:9","nodeType":"VariableDeclaration","scope":1116,"src":"4048:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1106,"name":"uint128","nodeType":"ElementaryTypeName","src":"4048:7:9","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1109,"mutability":"mutable","name":"data","nameLocation":"4079:4:9","nodeType":"VariableDeclaration","scope":1116,"src":"4064:19:9","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1108,"name":"bytes","nodeType":"ElementaryTypeName","src":"4064:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"4014:70:9"},"returnParameters":{"id":1115,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1112,"mutability":"mutable","name":"amount0","nameLocation":"4111:7:9","nodeType":"VariableDeclaration","scope":1116,"src":"4103:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1111,"name":"uint256","nodeType":"ElementaryTypeName","src":"4103:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1114,"mutability":"mutable","name":"amount1","nameLocation":"4128:7:9","nodeType":"VariableDeclaration","scope":1116,"src":"4120:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1113,"name":"uint256","nodeType":"ElementaryTypeName","src":"4120:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"4102:34:9"},"scope":1167,"src":"4001:136:9","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1117,"nodeType":"StructuredDocumentation","src":"4141:1055:9","text":"@notice Swap token0 for token1, or token1 for token0\n @dev The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback\n @param recipient The address to receive the output of the swap\n @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n @param amountRequired The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\n @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n value after the swap. If one for zero, the price cannot be greater than this value after the swap\n @param data Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\n @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\n @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive"},"functionSelector":"128acb08","id":1134,"implemented":false,"kind":"function","modifiers":[],"name":"swap","nameLocation":"5208:4:9","nodeType":"FunctionDefinition","parameters":{"id":1128,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1119,"mutability":"mutable","name":"recipient","nameLocation":"5226:9:9","nodeType":"VariableDeclaration","scope":1134,"src":"5218:17:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1118,"name":"address","nodeType":"ElementaryTypeName","src":"5218:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1121,"mutability":"mutable","name":"zeroToOne","nameLocation":"5246:9:9","nodeType":"VariableDeclaration","scope":1134,"src":"5241:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1120,"name":"bool","nodeType":"ElementaryTypeName","src":"5241:4:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":1123,"mutability":"mutable","name":"amountRequired","nameLocation":"5268:14:9","nodeType":"VariableDeclaration","scope":1134,"src":"5261:21:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1122,"name":"int256","nodeType":"ElementaryTypeName","src":"5261:6:9","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":1125,"mutability":"mutable","name":"limitSqrtPrice","nameLocation":"5296:14:9","nodeType":"VariableDeclaration","scope":1134,"src":"5288:22:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1124,"name":"uint160","nodeType":"ElementaryTypeName","src":"5288:7:9","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":1127,"mutability":"mutable","name":"data","nameLocation":"5331:4:9","nodeType":"VariableDeclaration","scope":1134,"src":"5316:19:9","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1126,"name":"bytes","nodeType":"ElementaryTypeName","src":"5316:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"5212:127:9"},"returnParameters":{"id":1133,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1130,"mutability":"mutable","name":"amount0","nameLocation":"5365:7:9","nodeType":"VariableDeclaration","scope":1134,"src":"5358:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1129,"name":"int256","nodeType":"ElementaryTypeName","src":"5358:6:9","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":1132,"mutability":"mutable","name":"amount1","nameLocation":"5381:7:9","nodeType":"VariableDeclaration","scope":1134,"src":"5374:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1131,"name":"int256","nodeType":"ElementaryTypeName","src":"5374:6:9","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"src":"5357:32:9"},"scope":1167,"src":"5199:191:9","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1135,"nodeType":"StructuredDocumentation","src":"5394:1257:9","text":"@notice Swap token0 for token1, or token1 for token0 with prepayment\n @dev The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback\n caller must send tokens in callback before swap calculation\n the actually sent amount of tokens is used for further calculations\n @param leftoversRecipient The address which will receive potential surplus of paid tokens\n @param recipient The address to receive the output of the swap\n @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0\n @param amountToSell The amount of the swap, only positive (exact input) amount allowed\n @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this\n value after the swap. If one for zero, the price cannot be greater than this value after the swap\n @param data Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\n @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive\n @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive"},"functionSelector":"9e4e0227","id":1154,"implemented":false,"kind":"function","modifiers":[],"name":"swapWithPaymentInAdvance","nameLocation":"6663:24:9","nodeType":"FunctionDefinition","parameters":{"id":1148,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1137,"mutability":"mutable","name":"leftoversRecipient","nameLocation":"6701:18:9","nodeType":"VariableDeclaration","scope":1154,"src":"6693:26:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1136,"name":"address","nodeType":"ElementaryTypeName","src":"6693:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1139,"mutability":"mutable","name":"recipient","nameLocation":"6733:9:9","nodeType":"VariableDeclaration","scope":1154,"src":"6725:17:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1138,"name":"address","nodeType":"ElementaryTypeName","src":"6725:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1141,"mutability":"mutable","name":"zeroToOne","nameLocation":"6753:9:9","nodeType":"VariableDeclaration","scope":1154,"src":"6748:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1140,"name":"bool","nodeType":"ElementaryTypeName","src":"6748:4:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":1143,"mutability":"mutable","name":"amountToSell","nameLocation":"6775:12:9","nodeType":"VariableDeclaration","scope":1154,"src":"6768:19:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1142,"name":"int256","nodeType":"ElementaryTypeName","src":"6768:6:9","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":1145,"mutability":"mutable","name":"limitSqrtPrice","nameLocation":"6801:14:9","nodeType":"VariableDeclaration","scope":1154,"src":"6793:22:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1144,"name":"uint160","nodeType":"ElementaryTypeName","src":"6793:7:9","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":1147,"mutability":"mutable","name":"data","nameLocation":"6836:4:9","nodeType":"VariableDeclaration","scope":1154,"src":"6821:19:9","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1146,"name":"bytes","nodeType":"ElementaryTypeName","src":"6821:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"6687:157:9"},"returnParameters":{"id":1153,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1150,"mutability":"mutable","name":"amount0","nameLocation":"6870:7:9","nodeType":"VariableDeclaration","scope":1154,"src":"6863:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1149,"name":"int256","nodeType":"ElementaryTypeName","src":"6863:6:9","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":1152,"mutability":"mutable","name":"amount1","nameLocation":"6886:7:9","nodeType":"VariableDeclaration","scope":1154,"src":"6879:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1151,"name":"int256","nodeType":"ElementaryTypeName","src":"6879:6:9","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"}],"src":"6862:32:9"},"scope":1167,"src":"6654:241:9","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1155,"nodeType":"StructuredDocumentation","src":"6899:701:9","text":"@notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback\n @dev The caller of this method receives a callback in the form of IAlgebraFlashCallback#algebraFlashCallback\n @dev All excess tokens paid in the callback are distributed to currently in-range liquidity providers as an additional fee.\n If there are no in-range liquidity providers, the fee will be transferred to the first active provider in the future\n @param recipient The address which will receive the token0 and token1 amounts\n @param amount0 The amount of token0 to send\n @param amount1 The amount of token1 to send\n @param data Any data to be passed through to the callback"},"functionSelector":"490e6cbc","id":1166,"implemented":false,"kind":"function","modifiers":[],"name":"flash","nameLocation":"7612:5:9","nodeType":"FunctionDefinition","parameters":{"id":1164,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1157,"mutability":"mutable","name":"recipient","nameLocation":"7626:9:9","nodeType":"VariableDeclaration","scope":1166,"src":"7618:17:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1156,"name":"address","nodeType":"ElementaryTypeName","src":"7618:7:9","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1159,"mutability":"mutable","name":"amount0","nameLocation":"7645:7:9","nodeType":"VariableDeclaration","scope":1166,"src":"7637:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1158,"name":"uint256","nodeType":"ElementaryTypeName","src":"7637:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1161,"mutability":"mutable","name":"amount1","nameLocation":"7662:7:9","nodeType":"VariableDeclaration","scope":1166,"src":"7654:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1160,"name":"uint256","nodeType":"ElementaryTypeName","src":"7654:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1163,"mutability":"mutable","name":"data","nameLocation":"7686:4:9","nodeType":"VariableDeclaration","scope":1166,"src":"7671:19:9","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1162,"name":"bytes","nodeType":"ElementaryTypeName","src":"7671:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"7617:74:9"},"returnParameters":{"id":1165,"nodeType":"ParameterList","parameters":[],"src":"7700:0:9"},"scope":1167,"src":"7603:98:9","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":1168,"src":"244:7459:9","usedErrors":[],"usedEvents":[]}],"src":"45:7659:9"},"id":9},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol","exportedSymbols":{"IAlgebraPoolErrors":[1269]},"id":1270,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1169,"literals":["solidity",">=","0.8",".4"],"nodeType":"PragmaDirective","src":"45:24:10"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPoolErrors","contractDependencies":[],"contractKind":"interface","documentation":{"id":1170,"nodeType":"StructuredDocumentation","src":"71:209:10","text":"@title Errors emitted by a pool\n @notice Contains custom errors emitted by the pool\n @dev Custom errors are separated from the common pool interface for compatibility with older versions of Solidity"},"fullyImplemented":true,"id":1269,"linearizedBaseContracts":[1269],"name":"IAlgebraPoolErrors","nameLocation":"290:18:10","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":1171,"nodeType":"StructuredDocumentation","src":"343:43:10","text":"@notice Emitted by the reentrancy guard"},"errorSelector":"cf309012","id":1173,"name":"locked","nameLocation":"395:6:10","nodeType":"ErrorDefinition","parameters":{"id":1172,"nodeType":"ParameterList","parameters":[],"src":"401:2:10"},"src":"389:15:10"},{"documentation":{"id":1174,"nodeType":"StructuredDocumentation","src":"408:48:10","text":"@notice Emitted if arithmetic error occurred"},"errorSelector":"8995290f","id":1176,"name":"arithmeticError","nameLocation":"465:15:10","nodeType":"ErrorDefinition","parameters":{"id":1175,"nodeType":"ParameterList","parameters":[],"src":"480:2:10"},"src":"459:24:10"},{"documentation":{"id":1177,"nodeType":"StructuredDocumentation","src":"487:70:10","text":"@notice Emitted if an attempt is made to initialize the pool twice"},"errorSelector":"52669adc","id":1179,"name":"alreadyInitialized","nameLocation":"566:18:10","nodeType":"ErrorDefinition","parameters":{"id":1178,"nodeType":"ParameterList","parameters":[],"src":"584:2:10"},"src":"560:27:10"},{"documentation":{"id":1180,"nodeType":"StructuredDocumentation","src":"591:79:10","text":"@notice Emitted if an attempt is made to mint or swap in uninitialized pool"},"errorSelector":"812eb655","id":1182,"name":"notInitialized","nameLocation":"679:14:10","nodeType":"ErrorDefinition","parameters":{"id":1181,"nodeType":"ParameterList","parameters":[],"src":"693:2:10"},"src":"673:23:10"},{"documentation":{"id":1183,"nodeType":"StructuredDocumentation","src":"700:69:10","text":"@notice Emitted if 0 is passed as amountRequired to swap function"},"errorSelector":"79db9840","id":1185,"name":"zeroAmountRequired","nameLocation":"778:18:10","nodeType":"ErrorDefinition","parameters":{"id":1184,"nodeType":"ParameterList","parameters":[],"src":"796:2:10"},"src":"772:27:10"},{"documentation":{"id":1186,"nodeType":"StructuredDocumentation","src":"803:82:10","text":"@notice Emitted if invalid amount is passed as amountRequired to swap function"},"errorSelector":"69967402","id":1188,"name":"invalidAmountRequired","nameLocation":"894:21:10","nodeType":"ErrorDefinition","parameters":{"id":1187,"nodeType":"ParameterList","parameters":[],"src":"915:2:10"},"src":"888:30:10"},{"documentation":{"id":1189,"nodeType":"StructuredDocumentation","src":"922:69:10","text":"@notice Emitted if plugin fee param greater than fee/override fee"},"errorSelector":"15b2afa9","id":1191,"name":"incorrectPluginFee","nameLocation":"1000:18:10","nodeType":"ErrorDefinition","parameters":{"id":1190,"nodeType":"ParameterList","parameters":[],"src":"1018:2:10"},"src":"994:27:10"},{"documentation":{"id":1192,"nodeType":"StructuredDocumentation","src":"1025:73:10","text":"@notice Emitted if the pool received fewer tokens than it should have"},"errorSelector":"fb5b5414","id":1194,"name":"insufficientInputAmount","nameLocation":"1107:23:10","nodeType":"ErrorDefinition","parameters":{"id":1193,"nodeType":"ParameterList","parameters":[],"src":"1130:2:10"},"src":"1101:32:10"},{"documentation":{"id":1195,"nodeType":"StructuredDocumentation","src":"1137:66:10","text":"@notice Emitted if there was an attempt to mint zero liquidity"},"errorSelector":"e6ace6df","id":1197,"name":"zeroLiquidityDesired","nameLocation":"1212:20:10","nodeType":"ErrorDefinition","parameters":{"id":1196,"nodeType":"ParameterList","parameters":[],"src":"1232:2:10"},"src":"1206:29:10"},{"documentation":{"id":1198,"nodeType":"StructuredDocumentation","src":"1238:105:10","text":"@notice Emitted if actual amount of liquidity is zero (due to insufficient amount of tokens received)"},"errorSelector":"beba2a6c","id":1200,"name":"zeroLiquidityActual","nameLocation":"1352:19:10","nodeType":"ErrorDefinition","parameters":{"id":1199,"nodeType":"ParameterList","parameters":[],"src":"1371:2:10"},"src":"1346:28:10"},{"documentation":{"id":1201,"nodeType":"StructuredDocumentation","src":"1378:86:10","text":"@notice Emitted if the pool received fewer tokens0 after flash than it should have"},"errorSelector":"6dbca1fe","id":1203,"name":"flashInsufficientPaid0","nameLocation":"1473:22:10","nodeType":"ErrorDefinition","parameters":{"id":1202,"nodeType":"ParameterList","parameters":[],"src":"1495:2:10"},"src":"1467:31:10"},{"documentation":{"id":1204,"nodeType":"StructuredDocumentation","src":"1501:86:10","text":"@notice Emitted if the pool received fewer tokens1 after flash than it should have"},"errorSelector":"c998149f","id":1206,"name":"flashInsufficientPaid1","nameLocation":"1596:22:10","nodeType":"ErrorDefinition","parameters":{"id":1205,"nodeType":"ParameterList","parameters":[],"src":"1618:2:10"},"src":"1590:31:10"},{"documentation":{"id":1207,"nodeType":"StructuredDocumentation","src":"1625:56:10","text":"@notice Emitted if limitSqrtPrice param is incorrect"},"errorSelector":"16626723","id":1209,"name":"invalidLimitSqrtPrice","nameLocation":"1690:21:10","nodeType":"ErrorDefinition","parameters":{"id":1208,"nodeType":"ParameterList","parameters":[],"src":"1711:2:10"},"src":"1684:30:10"},{"documentation":{"id":1210,"nodeType":"StructuredDocumentation","src":"1718:49:10","text":"@notice Tick must be divisible by tickspacing"},"errorSelector":"5f6e14f3","id":1212,"name":"tickIsNotSpaced","nameLocation":"1776:15:10","nodeType":"ErrorDefinition","parameters":{"id":1211,"nodeType":"ParameterList","parameters":[],"src":"1791:2:10"},"src":"1770:24:10"},{"documentation":{"id":1213,"nodeType":"StructuredDocumentation","src":"1798:104:10","text":"@notice Emitted if a method is called that is accessible only to the factory owner or dedicated role"},"errorSelector":"932984d2","id":1215,"name":"notAllowed","nameLocation":"1911:10:10","nodeType":"ErrorDefinition","parameters":{"id":1214,"nodeType":"ParameterList","parameters":[],"src":"1921:2:10"},"src":"1905:19:10"},{"documentation":{"id":1216,"nodeType":"StructuredDocumentation","src":"1928:65:10","text":"@notice Emitted if new tick spacing exceeds max allowed value"},"errorSelector":"afe09f44","id":1218,"name":"invalidNewTickSpacing","nameLocation":"2002:21:10","nodeType":"ErrorDefinition","parameters":{"id":1217,"nodeType":"ParameterList","parameters":[],"src":"2023:2:10"},"src":"1996:30:10"},{"documentation":{"id":1219,"nodeType":"StructuredDocumentation","src":"2029:66:10","text":"@notice Emitted if new community fee exceeds max allowed value"},"errorSelector":"a709b9af","id":1221,"name":"invalidNewCommunityFee","nameLocation":"2104:22:10","nodeType":"ErrorDefinition","parameters":{"id":1220,"nodeType":"ParameterList","parameters":[],"src":"2126:2:10"},"src":"2098:31:10"},{"documentation":{"id":1222,"nodeType":"StructuredDocumentation","src":"2133:102:10","text":"@notice Emitted if an attempt is made to manually change the fee value, but dynamic fee is enabled"},"errorSelector":"d39b8e0e","id":1224,"name":"dynamicFeeActive","nameLocation":"2244:16:10","nodeType":"ErrorDefinition","parameters":{"id":1223,"nodeType":"ParameterList","parameters":[],"src":"2260:2:10"},"src":"2238:25:10"},{"documentation":{"id":1225,"nodeType":"StructuredDocumentation","src":"2266:104:10","text":"@notice Emitted if an attempt is made by plugin to change the fee value, but dynamic fee is disabled"},"errorSelector":"3a4528ef","id":1227,"name":"dynamicFeeDisabled","nameLocation":"2379:18:10","nodeType":"ErrorDefinition","parameters":{"id":1226,"nodeType":"ParameterList","parameters":[],"src":"2397:2:10"},"src":"2373:27:10"},{"documentation":{"id":1228,"nodeType":"StructuredDocumentation","src":"2403:109:10","text":"@notice Emitted if an attempt is made to change the plugin configuration, but the plugin is not connected"},"errorSelector":"9e727ce3","id":1230,"name":"pluginIsNotConnected","nameLocation":"2521:20:10","nodeType":"ErrorDefinition","parameters":{"id":1229,"nodeType":"ParameterList","parameters":[],"src":"2541:2:10"},"src":"2515:29:10"},{"documentation":{"id":1231,"nodeType":"StructuredDocumentation","src":"2547:124:10","text":"@notice Emitted if a plugin returns invalid selector after hook call\n @param expectedSelector The expected selector"},"errorSelector":"d3f5153b","id":1235,"name":"invalidHookResponse","nameLocation":"2680:19:10","nodeType":"ErrorDefinition","parameters":{"id":1234,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1233,"mutability":"mutable","name":"expectedSelector","nameLocation":"2707:16:10","nodeType":"VariableDeclaration","scope":1235,"src":"2700:23:10","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":1232,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2700:6:10","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"2699:25:10"},"src":"2674:51:10"},{"documentation":{"id":1236,"nodeType":"StructuredDocumentation","src":"2768:43:10","text":"@notice Emitted if liquidity underflows"},"errorSelector":"1301f748","id":1238,"name":"liquiditySub","nameLocation":"2820:12:10","nodeType":"ErrorDefinition","parameters":{"id":1237,"nodeType":"ParameterList","parameters":[],"src":"2832:2:10"},"src":"2814:21:10"},{"documentation":{"id":1239,"nodeType":"StructuredDocumentation","src":"2838:42:10","text":"@notice Emitted if liquidity overflows"},"errorSelector":"997402f2","id":1241,"name":"liquidityAdd","nameLocation":"2889:12:10","nodeType":"ErrorDefinition","parameters":{"id":1240,"nodeType":"ParameterList","parameters":[],"src":"2901:2:10"},"src":"2883:21:10"},{"documentation":{"id":1242,"nodeType":"StructuredDocumentation","src":"2948:78:10","text":"@notice Emitted if the topTick param not greater then the bottomTick param"},"errorSelector":"d9a841a7","id":1244,"name":"topTickLowerOrEqBottomTick","nameLocation":"3035:26:10","nodeType":"ErrorDefinition","parameters":{"id":1243,"nodeType":"ParameterList","parameters":[],"src":"3061:2:10"},"src":"3029:35:10"},{"documentation":{"id":1245,"nodeType":"StructuredDocumentation","src":"3067:75:10","text":"@notice Emitted if the bottomTick param is lower than min allowed value"},"errorSelector":"746b1fc4","id":1247,"name":"bottomTickLowerThanMIN","nameLocation":"3151:22:10","nodeType":"ErrorDefinition","parameters":{"id":1246,"nodeType":"ParameterList","parameters":[],"src":"3173:2:10"},"src":"3145:31:10"},{"documentation":{"id":1248,"nodeType":"StructuredDocumentation","src":"3179:74:10","text":"@notice Emitted if the topTick param is greater than max allowed value"},"errorSelector":"1445443d","id":1250,"name":"topTickAboveMAX","nameLocation":"3262:15:10","nodeType":"ErrorDefinition","parameters":{"id":1249,"nodeType":"ParameterList","parameters":[],"src":"3277:2:10"},"src":"3256:24:10"},{"documentation":{"id":1251,"nodeType":"StructuredDocumentation","src":"3283:98:10","text":"@notice Emitted if the liquidity value associated with the tick exceeds MAX_LIQUIDITY_PER_TICK"},"errorSelector":"25b8364a","id":1253,"name":"liquidityOverflow","nameLocation":"3390:17:10","nodeType":"ErrorDefinition","parameters":{"id":1252,"nodeType":"ParameterList","parameters":[],"src":"3407:2:10"},"src":"3384:26:10"},{"documentation":{"id":1254,"nodeType":"StructuredDocumentation","src":"3413:80:10","text":"@notice Emitted if an attempt is made to interact with an uninitialized tick"},"errorSelector":"0d6e0949","id":1256,"name":"tickIsNotInitialized","nameLocation":"3502:20:10","nodeType":"ErrorDefinition","parameters":{"id":1255,"nodeType":"ParameterList","parameters":[],"src":"3522:2:10"},"src":"3496:29:10"},{"documentation":{"id":1257,"nodeType":"StructuredDocumentation","src":"3528:140:10","text":"@notice Emitted if there is an attempt to insert a new tick into the list of ticks with incorrect indexes of the previous and next ticks"},"errorSelector":"e45ac17d","id":1259,"name":"tickInvalidLinks","nameLocation":"3677:16:10","nodeType":"ErrorDefinition","parameters":{"id":1258,"nodeType":"ParameterList","parameters":[],"src":"3693:2:10"},"src":"3671:25:10"},{"documentation":{"id":1260,"nodeType":"StructuredDocumentation","src":"3738:55:10","text":"@notice Emitted if token transfer failed internally"},"errorSelector":"e465903e","id":1262,"name":"transferFailed","nameLocation":"3802:14:10","nodeType":"ErrorDefinition","parameters":{"id":1261,"nodeType":"ParameterList","parameters":[],"src":"3816:2:10"},"src":"3796:23:10"},{"documentation":{"id":1263,"nodeType":"StructuredDocumentation","src":"3857:94:10","text":"@notice Emitted if tick is greater than the maximum or less than the minimum allowed value"},"errorSelector":"3c10250f","id":1265,"name":"tickOutOfRange","nameLocation":"3960:14:10","nodeType":"ErrorDefinition","parameters":{"id":1264,"nodeType":"ParameterList","parameters":[],"src":"3974:2:10"},"src":"3954:23:10"},{"documentation":{"id":1266,"nodeType":"StructuredDocumentation","src":"3980:95:10","text":"@notice Emitted if price is greater than the maximum or less than the minimum allowed value"},"errorSelector":"55cf1e23","id":1268,"name":"priceOutOfRange","nameLocation":"4084:15:10","nodeType":"ErrorDefinition","parameters":{"id":1267,"nodeType":"ParameterList","parameters":[],"src":"4099:2:10"},"src":"4078:24:10"}],"scope":1270,"src":"280:3824:10","usedErrors":[1173,1176,1179,1182,1185,1188,1191,1194,1197,1200,1203,1206,1209,1212,1215,1218,1221,1224,1227,1230,1235,1238,1241,1244,1247,1250,1253,1256,1259,1262,1265,1268],"usedEvents":[]}],"src":"45:4060:10"},"id":10},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol","exportedSymbols":{"IAlgebraPoolEvents":[1421]},"id":1422,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1271,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:11"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPoolEvents","contractDependencies":[],"contractKind":"interface","documentation":{"id":1272,"nodeType":"StructuredDocumentation","src":"71:170:11","text":"@title Events emitted by a pool\n @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":true,"id":1421,"linearizedBaseContracts":[1421],"name":"IAlgebraPoolEvents","nameLocation":"251:18:11","nodeType":"ContractDefinition","nodes":[{"anonymous":false,"documentation":{"id":1273,"nodeType":"StructuredDocumentation","src":"274:332:11","text":"@notice Emitted exactly once by a pool when #initialize is first called on the pool\n @dev Mint/Burn/Swaps cannot be emitted by the pool before Initialize\n @param price The initial sqrt price of the pool, as a Q64.96\n @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool"},"eventSelector":"98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95","id":1279,"name":"Initialize","nameLocation":"615:10:11","nodeType":"EventDefinition","parameters":{"id":1278,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1275,"indexed":false,"mutability":"mutable","name":"price","nameLocation":"634:5:11","nodeType":"VariableDeclaration","scope":1279,"src":"626:13:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1274,"name":"uint160","nodeType":"ElementaryTypeName","src":"626:7:11","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":1277,"indexed":false,"mutability":"mutable","name":"tick","nameLocation":"647:4:11","nodeType":"VariableDeclaration","scope":1279,"src":"641:10:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1276,"name":"int24","nodeType":"ElementaryTypeName","src":"641:5:11","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"625:27:11"},"src":"609:44:11"},{"anonymous":false,"documentation":{"id":1280,"nodeType":"StructuredDocumentation","src":"657:545:11","text":"@notice Emitted when liquidity is minted for a given position\n @param sender The address that minted the liquidity\n @param owner The owner of the position and recipient of any minted liquidity\n @param bottomTick The lower tick of the position\n @param topTick The upper tick of the position\n @param liquidityAmount The amount of liquidity minted to the position range\n @param amount0 How much token0 was required for the minted liquidity\n @param amount1 How much token1 was required for the minted liquidity"},"eventSelector":"7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde","id":1296,"name":"Mint","nameLocation":"1211:4:11","nodeType":"EventDefinition","parameters":{"id":1295,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1282,"indexed":false,"mutability":"mutable","name":"sender","nameLocation":"1229:6:11","nodeType":"VariableDeclaration","scope":1296,"src":"1221:14:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1281,"name":"address","nodeType":"ElementaryTypeName","src":"1221:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1284,"indexed":true,"mutability":"mutable","name":"owner","nameLocation":"1257:5:11","nodeType":"VariableDeclaration","scope":1296,"src":"1241:21:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1283,"name":"address","nodeType":"ElementaryTypeName","src":"1241:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1286,"indexed":true,"mutability":"mutable","name":"bottomTick","nameLocation":"1282:10:11","nodeType":"VariableDeclaration","scope":1296,"src":"1268:24:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1285,"name":"int24","nodeType":"ElementaryTypeName","src":"1268:5:11","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1288,"indexed":true,"mutability":"mutable","name":"topTick","nameLocation":"1312:7:11","nodeType":"VariableDeclaration","scope":1296,"src":"1298:21:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1287,"name":"int24","nodeType":"ElementaryTypeName","src":"1298:5:11","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1290,"indexed":false,"mutability":"mutable","name":"liquidityAmount","nameLocation":"1333:15:11","nodeType":"VariableDeclaration","scope":1296,"src":"1325:23:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1289,"name":"uint128","nodeType":"ElementaryTypeName","src":"1325:7:11","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1292,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"1362:7:11","nodeType":"VariableDeclaration","scope":1296,"src":"1354:15:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1291,"name":"uint256","nodeType":"ElementaryTypeName","src":"1354:7:11","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1294,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"1383:7:11","nodeType":"VariableDeclaration","scope":1296,"src":"1375:15:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1293,"name":"uint256","nodeType":"ElementaryTypeName","src":"1375:7:11","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"1215:179:11"},"src":"1205:190:11"},{"anonymous":false,"documentation":{"id":1297,"nodeType":"StructuredDocumentation","src":"1399:419:11","text":"@notice Emitted when fees are collected by the owner of a position\n @param owner The owner of the position for which fees are collected\n @param recipient The address that received fees\n @param bottomTick The lower tick of the position\n @param topTick The upper tick of the position\n @param amount0 The amount of token0 fees collected\n @param amount1 The amount of token1 fees collected"},"eventSelector":"70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0","id":1311,"name":"Collect","nameLocation":"1827:7:11","nodeType":"EventDefinition","parameters":{"id":1310,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1299,"indexed":true,"mutability":"mutable","name":"owner","nameLocation":"1851:5:11","nodeType":"VariableDeclaration","scope":1311,"src":"1835:21:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1298,"name":"address","nodeType":"ElementaryTypeName","src":"1835:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1301,"indexed":false,"mutability":"mutable","name":"recipient","nameLocation":"1866:9:11","nodeType":"VariableDeclaration","scope":1311,"src":"1858:17:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1300,"name":"address","nodeType":"ElementaryTypeName","src":"1858:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1303,"indexed":true,"mutability":"mutable","name":"bottomTick","nameLocation":"1891:10:11","nodeType":"VariableDeclaration","scope":1311,"src":"1877:24:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1302,"name":"int24","nodeType":"ElementaryTypeName","src":"1877:5:11","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1305,"indexed":true,"mutability":"mutable","name":"topTick","nameLocation":"1917:7:11","nodeType":"VariableDeclaration","scope":1311,"src":"1903:21:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1304,"name":"int24","nodeType":"ElementaryTypeName","src":"1903:5:11","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1307,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"1934:7:11","nodeType":"VariableDeclaration","scope":1311,"src":"1926:15:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1306,"name":"uint128","nodeType":"ElementaryTypeName","src":"1926:7:11","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1309,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"1951:7:11","nodeType":"VariableDeclaration","scope":1311,"src":"1943:15:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1308,"name":"uint128","nodeType":"ElementaryTypeName","src":"1943:7:11","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"1834:125:11"},"src":"1821:139:11"},{"anonymous":false,"documentation":{"id":1312,"nodeType":"StructuredDocumentation","src":"1964:517:11","text":"@notice Emitted when a position's liquidity is removed\n @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect\n @param owner The owner of the position for which liquidity is removed\n @param bottomTick The lower tick of the position\n @param topTick The upper tick of the position\n @param liquidityAmount The amount of liquidity to remove\n @param amount0 The amount of token0 withdrawn\n @param amount1 The amount of token1 withdrawn"},"eventSelector":"0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c","id":1326,"name":"Burn","nameLocation":"2490:4:11","nodeType":"EventDefinition","parameters":{"id":1325,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1314,"indexed":true,"mutability":"mutable","name":"owner","nameLocation":"2516:5:11","nodeType":"VariableDeclaration","scope":1326,"src":"2500:21:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1313,"name":"address","nodeType":"ElementaryTypeName","src":"2500:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1316,"indexed":true,"mutability":"mutable","name":"bottomTick","nameLocation":"2541:10:11","nodeType":"VariableDeclaration","scope":1326,"src":"2527:24:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1315,"name":"int24","nodeType":"ElementaryTypeName","src":"2527:5:11","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1318,"indexed":true,"mutability":"mutable","name":"topTick","nameLocation":"2571:7:11","nodeType":"VariableDeclaration","scope":1326,"src":"2557:21:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1317,"name":"int24","nodeType":"ElementaryTypeName","src":"2557:5:11","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1320,"indexed":false,"mutability":"mutable","name":"liquidityAmount","nameLocation":"2592:15:11","nodeType":"VariableDeclaration","scope":1326,"src":"2584:23:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1319,"name":"uint128","nodeType":"ElementaryTypeName","src":"2584:7:11","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1322,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"2621:7:11","nodeType":"VariableDeclaration","scope":1326,"src":"2613:15:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1321,"name":"uint256","nodeType":"ElementaryTypeName","src":"2613:7:11","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1324,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"2642:7:11","nodeType":"VariableDeclaration","scope":1326,"src":"2634:15:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1323,"name":"uint256","nodeType":"ElementaryTypeName","src":"2634:7:11","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"2494:159:11"},"src":"2484:170:11"},{"anonymous":false,"documentation":{"id":1327,"nodeType":"StructuredDocumentation","src":"2658:163:11","text":"@notice Emitted when a plugin fee is applied during a burn\n @param owner The owner of the position\n @param pluginFee The fee to be sent to the plugin"},"eventSelector":"1a25098b7a731ae33ed362388b593b876963dfde0efb4db9c0befeed637ff26b","id":1333,"name":"BurnFee","nameLocation":"2830:7:11","nodeType":"EventDefinition","parameters":{"id":1332,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1329,"indexed":true,"mutability":"mutable","name":"owner","nameLocation":"2854:5:11","nodeType":"VariableDeclaration","scope":1333,"src":"2838:21:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1328,"name":"address","nodeType":"ElementaryTypeName","src":"2838:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1331,"indexed":false,"mutability":"mutable","name":"pluginFee","nameLocation":"2868:9:11","nodeType":"VariableDeclaration","scope":1333,"src":"2861:16:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":1330,"name":"uint24","nodeType":"ElementaryTypeName","src":"2861:6:11","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"2837:41:11"},"src":"2824:55:11"},{"anonymous":false,"documentation":{"id":1334,"nodeType":"StructuredDocumentation","src":"2884:580:11","text":"@notice Emitted by the pool for any swaps between token0 and token1\n @param sender The address that initiated the swap call, and that received the callback\n @param recipient The address that received the output of the swap\n @param amount0 The delta of the token0 balance of the pool\n @param amount1 The delta of the token1 balance of the pool\n @param price The sqrt(price) of the pool after the swap, as a Q64.96\n @param liquidity The liquidity of the pool after the swap\n @param tick The log base 1.0001 of price of the pool after the swap"},"eventSelector":"c42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67","id":1350,"name":"Swap","nameLocation":"3473:4:11","nodeType":"EventDefinition","parameters":{"id":1349,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1336,"indexed":true,"mutability":"mutable","name":"sender","nameLocation":"3499:6:11","nodeType":"VariableDeclaration","scope":1350,"src":"3483:22:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1335,"name":"address","nodeType":"ElementaryTypeName","src":"3483:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1338,"indexed":true,"mutability":"mutable","name":"recipient","nameLocation":"3527:9:11","nodeType":"VariableDeclaration","scope":1350,"src":"3511:25:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1337,"name":"address","nodeType":"ElementaryTypeName","src":"3511:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1340,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"3549:7:11","nodeType":"VariableDeclaration","scope":1350,"src":"3542:14:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1339,"name":"int256","nodeType":"ElementaryTypeName","src":"3542:6:11","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":1342,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"3569:7:11","nodeType":"VariableDeclaration","scope":1350,"src":"3562:14:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":1341,"name":"int256","nodeType":"ElementaryTypeName","src":"3562:6:11","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":1344,"indexed":false,"mutability":"mutable","name":"price","nameLocation":"3590:5:11","nodeType":"VariableDeclaration","scope":1350,"src":"3582:13:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1343,"name":"uint160","nodeType":"ElementaryTypeName","src":"3582:7:11","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":1346,"indexed":false,"mutability":"mutable","name":"liquidity","nameLocation":"3609:9:11","nodeType":"VariableDeclaration","scope":1350,"src":"3601:17:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1345,"name":"uint128","nodeType":"ElementaryTypeName","src":"3601:7:11","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1348,"indexed":false,"mutability":"mutable","name":"tick","nameLocation":"3630:4:11","nodeType":"VariableDeclaration","scope":1350,"src":"3624:10:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1347,"name":"int24","nodeType":"ElementaryTypeName","src":"3624:5:11","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"3477:161:11"},"src":"3467:172:11"},{"anonymous":false,"documentation":{"id":1351,"nodeType":"StructuredDocumentation","src":"3643:221:11","text":"@notice Emitted by the pool after any swaps \n @param sender The address that initiated the swap \n @param overrideFee The fee to be applied to the trade\n @param pluginFee The fee to be sent to the plugin"},"eventSelector":"9443903d84c9719611bd4bba871daaf18a3950d00d5d78b1a2fa701f76df54ff","id":1359,"name":"SwapFee","nameLocation":"3873:7:11","nodeType":"EventDefinition","parameters":{"id":1358,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1353,"indexed":true,"mutability":"mutable","name":"sender","nameLocation":"3897:6:11","nodeType":"VariableDeclaration","scope":1359,"src":"3881:22:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1352,"name":"address","nodeType":"ElementaryTypeName","src":"3881:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1355,"indexed":false,"mutability":"mutable","name":"overrideFee","nameLocation":"3912:11:11","nodeType":"VariableDeclaration","scope":1359,"src":"3905:18:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":1354,"name":"uint24","nodeType":"ElementaryTypeName","src":"3905:6:11","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"},{"constant":false,"id":1357,"indexed":false,"mutability":"mutable","name":"pluginFee","nameLocation":"3932:9:11","nodeType":"VariableDeclaration","scope":1359,"src":"3925:16:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":1356,"name":"uint24","nodeType":"ElementaryTypeName","src":"3925:6:11","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"3880:62:11"},"src":"3867:76:11"},{"anonymous":false,"documentation":{"id":1360,"nodeType":"StructuredDocumentation","src":"3947:550:11","text":"@notice Emitted by the pool for any flashes of token0/token1\n @param sender The address that initiated the swap call, and that received the callback\n @param recipient The address that received the tokens from flash\n @param amount0 The amount of token0 that was flashed\n @param amount1 The amount of token1 that was flashed\n @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee\n @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee"},"eventSelector":"bdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca633","id":1374,"name":"Flash","nameLocation":"4506:5:11","nodeType":"EventDefinition","parameters":{"id":1373,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1362,"indexed":true,"mutability":"mutable","name":"sender","nameLocation":"4528:6:11","nodeType":"VariableDeclaration","scope":1374,"src":"4512:22:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1361,"name":"address","nodeType":"ElementaryTypeName","src":"4512:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1364,"indexed":true,"mutability":"mutable","name":"recipient","nameLocation":"4552:9:11","nodeType":"VariableDeclaration","scope":1374,"src":"4536:25:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1363,"name":"address","nodeType":"ElementaryTypeName","src":"4536:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1366,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"4571:7:11","nodeType":"VariableDeclaration","scope":1374,"src":"4563:15:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1365,"name":"uint256","nodeType":"ElementaryTypeName","src":"4563:7:11","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1368,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"4588:7:11","nodeType":"VariableDeclaration","scope":1374,"src":"4580:15:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1367,"name":"uint256","nodeType":"ElementaryTypeName","src":"4580:7:11","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1370,"indexed":false,"mutability":"mutable","name":"paid0","nameLocation":"4605:5:11","nodeType":"VariableDeclaration","scope":1374,"src":"4597:13:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1369,"name":"uint256","nodeType":"ElementaryTypeName","src":"4597:7:11","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1372,"indexed":false,"mutability":"mutable","name":"paid1","nameLocation":"4620:5:11","nodeType":"VariableDeclaration","scope":1374,"src":"4612:13:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1371,"name":"uint256","nodeType":"ElementaryTypeName","src":"4612:7:11","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"4511:115:11"},"src":"4500:127:11"},{"anonymous":false,"documentation":{"id":1375,"nodeType":"StructuredDocumentation","src":"4631:319:11","text":"@notice Emitted when the pool has higher balances than expected.\n Any excess of tokens will be distributed between liquidity providers as fee.\n @dev Fees after flash also will trigger this event due to mechanics of flash.\n @param amount0 The excess of token0\n @param amount1 The excess of token1"},"eventSelector":"ef10ebb00f0dbc72ad4602e94abbbda6f3d40632714f70e9c8fa30d5d44289c9","id":1381,"name":"ExcessTokens","nameLocation":"4959:12:11","nodeType":"EventDefinition","parameters":{"id":1380,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1377,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"4980:7:11","nodeType":"VariableDeclaration","scope":1381,"src":"4972:15:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1376,"name":"uint256","nodeType":"ElementaryTypeName","src":"4972:7:11","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1379,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"4997:7:11","nodeType":"VariableDeclaration","scope":1381,"src":"4989:15:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1378,"name":"uint256","nodeType":"ElementaryTypeName","src":"4989:7:11","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"4971:34:11"},"src":"4953:53:11"},{"anonymous":false,"documentation":{"id":1382,"nodeType":"StructuredDocumentation","src":"5010:155:11","text":"@notice Emitted when the community fee is changed by the pool\n @param communityFeeNew The updated value of the community fee in thousandths (1e-3)"},"eventSelector":"3647dccc990d4941b0b05b32527ef493a98d6187b20639ca2f9743f3b55ca5e1","id":1386,"name":"CommunityFee","nameLocation":"5174:12:11","nodeType":"EventDefinition","parameters":{"id":1385,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1384,"indexed":false,"mutability":"mutable","name":"communityFeeNew","nameLocation":"5194:15:11","nodeType":"VariableDeclaration","scope":1386,"src":"5187:22:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1383,"name":"uint16","nodeType":"ElementaryTypeName","src":"5187:6:11","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"5186:24:11"},"src":"5168:43:11"},{"anonymous":false,"documentation":{"id":1387,"nodeType":"StructuredDocumentation","src":"5215:119:11","text":"@notice Emitted when the tick spacing changes\n @param newTickSpacing The updated value of the new tick spacing"},"eventSelector":"01413b1d5d4c359e9a0daa7909ecda165f6e8c51fe2ff529d74b22a5a7c02645","id":1391,"name":"TickSpacing","nameLocation":"5343:11:11","nodeType":"EventDefinition","parameters":{"id":1390,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1389,"indexed":false,"mutability":"mutable","name":"newTickSpacing","nameLocation":"5361:14:11","nodeType":"VariableDeclaration","scope":1391,"src":"5355:20:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1388,"name":"int24","nodeType":"ElementaryTypeName","src":"5355:5:11","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"5354:22:11"},"src":"5337:40:11"},{"anonymous":false,"documentation":{"id":1392,"nodeType":"StructuredDocumentation","src":"5381:100:11","text":"@notice Emitted when the plugin address changes\n @param newPluginAddress New plugin address"},"eventSelector":"27a3944eff2135a57675f17e72501038982b73620d01f794c72e93d61a3932a2","id":1396,"name":"Plugin","nameLocation":"5490:6:11","nodeType":"EventDefinition","parameters":{"id":1395,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1394,"indexed":false,"mutability":"mutable","name":"newPluginAddress","nameLocation":"5505:16:11","nodeType":"VariableDeclaration","scope":1396,"src":"5497:24:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1393,"name":"address","nodeType":"ElementaryTypeName","src":"5497:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"5496:26:11"},"src":"5484:39:11"},{"anonymous":false,"documentation":{"id":1397,"nodeType":"StructuredDocumentation","src":"5527:97:11","text":"@notice Emitted when the plugin config changes\n @param newPluginConfig New plugin config"},"eventSelector":"3a6271b36c1b44bd6a0a0d56230602dc6919b7c17af57254306fadf5fee69dc3","id":1401,"name":"PluginConfig","nameLocation":"5633:12:11","nodeType":"EventDefinition","parameters":{"id":1400,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1399,"indexed":false,"mutability":"mutable","name":"newPluginConfig","nameLocation":"5652:15:11","nodeType":"VariableDeclaration","scope":1401,"src":"5646:21:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1398,"name":"uint8","nodeType":"ElementaryTypeName","src":"5646:5:11","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"5645:23:11"},"src":"5627:42:11"},{"anonymous":false,"documentation":{"id":1402,"nodeType":"StructuredDocumentation","src":"5673:123:11","text":"@notice Emitted when the fee changes inside the pool\n @param fee The current fee in hundredths of a bip, i.e. 1e-6"},"eventSelector":"598b9f043c813aa6be3426ca60d1c65d17256312890be5118dab55b0775ebe2a","id":1406,"name":"Fee","nameLocation":"5805:3:11","nodeType":"EventDefinition","parameters":{"id":1405,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1404,"indexed":false,"mutability":"mutable","name":"fee","nameLocation":"5816:3:11","nodeType":"VariableDeclaration","scope":1406,"src":"5809:10:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1403,"name":"uint16","nodeType":"ElementaryTypeName","src":"5809:6:11","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"5808:12:11"},"src":"5799:22:11"},{"anonymous":false,"documentation":{"id":1407,"nodeType":"StructuredDocumentation","src":"5825:111:11","text":"@notice Emitted when the community vault address changes\n @param newCommunityVault New community vault"},"eventSelector":"b0b573c1f636e1f8bd9b415ba6c04d6dd49100bc25493fc6305b65ec0e581df3","id":1411,"name":"CommunityVault","nameLocation":"5945:14:11","nodeType":"EventDefinition","parameters":{"id":1410,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1409,"indexed":false,"mutability":"mutable","name":"newCommunityVault","nameLocation":"5968:17:11","nodeType":"VariableDeclaration","scope":1411,"src":"5960:25:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1408,"name":"address","nodeType":"ElementaryTypeName","src":"5960:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"5959:27:11"},"src":"5939:48:11"},{"anonymous":false,"documentation":{"id":1412,"nodeType":"StructuredDocumentation","src":"5991:198:11","text":"@notice Emitted when the plugin does skim the excess of tokens\n @param to THe receiver of tokens (plugin)\n @param amount0 The amount of token0\n @param amount1 The amount of token1"},"eventSelector":"b94331e4420f16b156f53c397a8adcd09481283ee7830f7b688b22858e9db80b","id":1420,"name":"Skim","nameLocation":"6198:4:11","nodeType":"EventDefinition","parameters":{"id":1419,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1414,"indexed":true,"mutability":"mutable","name":"to","nameLocation":"6219:2:11","nodeType":"VariableDeclaration","scope":1420,"src":"6203:18:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1413,"name":"address","nodeType":"ElementaryTypeName","src":"6203:7:11","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1416,"indexed":false,"mutability":"mutable","name":"amount0","nameLocation":"6231:7:11","nodeType":"VariableDeclaration","scope":1420,"src":"6223:15:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1415,"name":"uint256","nodeType":"ElementaryTypeName","src":"6223:7:11","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1418,"indexed":false,"mutability":"mutable","name":"amount1","nameLocation":"6248:7:11","nodeType":"VariableDeclaration","scope":1420,"src":"6240:15:11","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1417,"name":"uint256","nodeType":"ElementaryTypeName","src":"6240:7:11","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"6202:54:11"},"src":"6192:65:11"}],"scope":1422,"src":"241:6018:11","usedErrors":[],"usedEvents":[1279,1296,1311,1326,1333,1350,1359,1374,1381,1386,1391,1396,1401,1406,1411,1420]}],"src":"45:6215:11"},"id":11},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol","exportedSymbols":{"IAlgebraPoolImmutables":[1449]},"id":1450,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1423,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:12"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPoolImmutables","contractDependencies":[],"contractKind":"interface","documentation":{"id":1424,"nodeType":"StructuredDocumentation","src":"71:175:12","text":"@title Pool state that never changes\n @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":false,"id":1449,"linearizedBaseContracts":[1449],"name":"IAlgebraPoolImmutables","nameLocation":"256:22:12","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":1425,"nodeType":"StructuredDocumentation","src":"283:127:12","text":"@notice The Algebra factory contract, which must adhere to the IAlgebraFactory interface\n @return The contract address"},"functionSelector":"c45a0155","id":1430,"implemented":false,"kind":"function","modifiers":[],"name":"factory","nameLocation":"422:7:12","nodeType":"FunctionDefinition","parameters":{"id":1426,"nodeType":"ParameterList","parameters":[],"src":"429:2:12"},"returnParameters":{"id":1429,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1428,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1430,"src":"455:7:12","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1427,"name":"address","nodeType":"ElementaryTypeName","src":"455:7:12","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"454:9:12"},"scope":1449,"src":"413:51:12","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1431,"nodeType":"StructuredDocumentation","src":"468:111:12","text":"@notice The first of the two tokens of the pool, sorted by address\n @return The token contract address"},"functionSelector":"0dfe1681","id":1436,"implemented":false,"kind":"function","modifiers":[],"name":"token0","nameLocation":"591:6:12","nodeType":"FunctionDefinition","parameters":{"id":1432,"nodeType":"ParameterList","parameters":[],"src":"597:2:12"},"returnParameters":{"id":1435,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1434,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1436,"src":"623:7:12","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1433,"name":"address","nodeType":"ElementaryTypeName","src":"623:7:12","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"622:9:12"},"scope":1449,"src":"582:50:12","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1437,"nodeType":"StructuredDocumentation","src":"636:112:12","text":"@notice The second of the two tokens of the pool, sorted by address\n @return The token contract address"},"functionSelector":"d21220a7","id":1442,"implemented":false,"kind":"function","modifiers":[],"name":"token1","nameLocation":"760:6:12","nodeType":"FunctionDefinition","parameters":{"id":1438,"nodeType":"ParameterList","parameters":[],"src":"766:2:12"},"returnParameters":{"id":1441,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1440,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1442,"src":"792:7:12","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1439,"name":"address","nodeType":"ElementaryTypeName","src":"792:7:12","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"791:9:12"},"scope":1449,"src":"751:50:12","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1443,"nodeType":"StructuredDocumentation","src":"805:357:12","text":"@notice The maximum amount of position liquidity that can use any tick in the range\n @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and\n also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\n @return The max amount of liquidity per tick"},"functionSelector":"70cf754a","id":1448,"implemented":false,"kind":"function","modifiers":[],"name":"maxLiquidityPerTick","nameLocation":"1174:19:12","nodeType":"FunctionDefinition","parameters":{"id":1444,"nodeType":"ParameterList","parameters":[],"src":"1193:2:12"},"returnParameters":{"id":1447,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1446,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1448,"src":"1219:7:12","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1445,"name":"uint128","nodeType":"ElementaryTypeName","src":"1219:7:12","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"1218:9:12"},"scope":1449,"src":"1165:63:12","stateMutability":"view","virtual":false,"visibility":"external"}],"scope":1450,"src":"246:984:12","usedErrors":[],"usedEvents":[]}],"src":"45:1186:12"},"id":12},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol","exportedSymbols":{"IAlgebraPoolPermissionedActions":[1497]},"id":1498,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1451,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:13"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPoolPermissionedActions","contractDependencies":[],"contractKind":"interface","documentation":{"id":1452,"nodeType":"StructuredDocumentation","src":"71:255:13","text":"@title Permissioned pool actions\n @notice Contains pool methods that may only be called by permissioned addresses\n @dev Credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":false,"id":1497,"linearizedBaseContracts":[1497],"name":"IAlgebraPoolPermissionedActions","nameLocation":"336:31:13","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":1453,"nodeType":"StructuredDocumentation","src":"372:185:13","text":"@notice Set the community's % share of the fees. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n @param newCommunityFee The new community fee percent in thousandths (1e-3)"},"functionSelector":"240a875a","id":1458,"implemented":false,"kind":"function","modifiers":[],"name":"setCommunityFee","nameLocation":"569:15:13","nodeType":"FunctionDefinition","parameters":{"id":1456,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1455,"mutability":"mutable","name":"newCommunityFee","nameLocation":"592:15:13","nodeType":"VariableDeclaration","scope":1458,"src":"585:22:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1454,"name":"uint16","nodeType":"ElementaryTypeName","src":"585:6:13","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"584:24:13"},"returnParameters":{"id":1457,"nodeType":"ParameterList","parameters":[],"src":"617:0:13"},"scope":1497,"src":"560:58:13","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1459,"nodeType":"StructuredDocumentation","src":"622:151:13","text":"@notice Set the new tick spacing values. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n @param newTickSpacing The new tick spacing value"},"functionSelector":"f085a610","id":1464,"implemented":false,"kind":"function","modifiers":[],"name":"setTickSpacing","nameLocation":"785:14:13","nodeType":"FunctionDefinition","parameters":{"id":1462,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1461,"mutability":"mutable","name":"newTickSpacing","nameLocation":"806:14:13","nodeType":"VariableDeclaration","scope":1464,"src":"800:20:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1460,"name":"int24","nodeType":"ElementaryTypeName","src":"800:5:13","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"799:22:13"},"returnParameters":{"id":1463,"nodeType":"ParameterList","parameters":[],"src":"830:0:13"},"scope":1497,"src":"776:55:13","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1465,"nodeType":"StructuredDocumentation","src":"835:144:13","text":"@notice Set the new plugin address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n @param newPluginAddress The new plugin address"},"functionSelector":"cc1f97cf","id":1470,"implemented":false,"kind":"function","modifiers":[],"name":"setPlugin","nameLocation":"991:9:13","nodeType":"FunctionDefinition","parameters":{"id":1468,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1467,"mutability":"mutable","name":"newPluginAddress","nameLocation":"1009:16:13","nodeType":"VariableDeclaration","scope":1470,"src":"1001:24:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1466,"name":"address","nodeType":"ElementaryTypeName","src":"1001:7:13","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1000:26:13"},"returnParameters":{"id":1469,"nodeType":"ParameterList","parameters":[],"src":"1035:0:13"},"scope":1497,"src":"982:54:13","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1471,"nodeType":"StructuredDocumentation","src":"1040:211:13","text":"@notice Set new plugin config. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n @param newConfig In the new configuration of the plugin,\n each bit of which is responsible for a particular hook."},"functionSelector":"bca57f81","id":1476,"implemented":false,"kind":"function","modifiers":[],"name":"setPluginConfig","nameLocation":"1263:15:13","nodeType":"FunctionDefinition","parameters":{"id":1474,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1473,"mutability":"mutable","name":"newConfig","nameLocation":"1285:9:13","nodeType":"VariableDeclaration","scope":1476,"src":"1279:15:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1472,"name":"uint8","nodeType":"ElementaryTypeName","src":"1279:5:13","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"1278:17:13"},"returnParameters":{"id":1475,"nodeType":"ParameterList","parameters":[],"src":"1304:0:13"},"scope":1497,"src":"1254:51:13","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1477,"nodeType":"StructuredDocumentation","src":"1309:356:13","text":"@notice Set new community fee vault address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\n @dev Community fee vault receives collected community fees.\n **accumulated but not yet sent to the vault community fees once will be sent to the `newCommunityVault` address**\n @param newCommunityVault The address of new community fee vault"},"functionSelector":"d8544cf3","id":1482,"implemented":false,"kind":"function","modifiers":[],"name":"setCommunityVault","nameLocation":"1677:17:13","nodeType":"FunctionDefinition","parameters":{"id":1480,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1479,"mutability":"mutable","name":"newCommunityVault","nameLocation":"1703:17:13","nodeType":"VariableDeclaration","scope":1482,"src":"1695:25:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1478,"name":"address","nodeType":"ElementaryTypeName","src":"1695:7:13","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1694:27:13"},"returnParameters":{"id":1481,"nodeType":"ParameterList","parameters":[],"src":"1730:0:13"},"scope":1497,"src":"1668:63:13","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1483,"nodeType":"StructuredDocumentation","src":"1735:171:13","text":"@notice Set new pool fee. Can be called by owner if dynamic fee is disabled.\n Called by the plugin if dynamic fee is enabled\n @param newFee The new fee value"},"functionSelector":"8e005553","id":1488,"implemented":false,"kind":"function","modifiers":[],"name":"setFee","nameLocation":"1918:6:13","nodeType":"FunctionDefinition","parameters":{"id":1486,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1485,"mutability":"mutable","name":"newFee","nameLocation":"1932:6:13","nodeType":"VariableDeclaration","scope":1488,"src":"1925:13:13","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1484,"name":"uint16","nodeType":"ElementaryTypeName","src":"1925:6:13","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"1924:15:13"},"returnParameters":{"id":1487,"nodeType":"ParameterList","parameters":[],"src":"1948:0:13"},"scope":1497,"src":"1909:40:13","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1489,"nodeType":"StructuredDocumentation","src":"1953:148:13","text":"@notice Forces balances to match reserves. Excessive tokens will be distributed between active LPs\n @dev Only plugin can call this function"},"functionSelector":"fff6cae9","id":1492,"implemented":false,"kind":"function","modifiers":[],"name":"sync","nameLocation":"2113:4:13","nodeType":"FunctionDefinition","parameters":{"id":1490,"nodeType":"ParameterList","parameters":[],"src":"2117:2:13"},"returnParameters":{"id":1491,"nodeType":"ParameterList","parameters":[],"src":"2128:0:13"},"scope":1497,"src":"2104:25:13","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"documentation":{"id":1493,"nodeType":"StructuredDocumentation","src":"2133:136:13","text":"@notice Forces balances to match reserves. Excessive tokens will be sent to msg.sender\n @dev Only plugin can call this function"},"functionSelector":"1dd19cb4","id":1496,"implemented":false,"kind":"function","modifiers":[],"name":"skim","nameLocation":"2281:4:13","nodeType":"FunctionDefinition","parameters":{"id":1494,"nodeType":"ParameterList","parameters":[],"src":"2285:2:13"},"returnParameters":{"id":1495,"nodeType":"ParameterList","parameters":[],"src":"2296:0:13"},"scope":1497,"src":"2272:25:13","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":1498,"src":"326:1973:13","usedErrors":[],"usedEvents":[]}],"src":"45:2255:13"},"id":13},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol","exportedSymbols":{"IAlgebraPoolState":[1681]},"id":1682,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1499,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:14"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraPoolState","contractDependencies":[],"contractKind":"interface","documentation":{"id":1500,"nodeType":"StructuredDocumentation","src":"71:404:14","text":"@title Pool state that can change\n @dev Important security note: when using this data by external contracts, it is necessary to take into account the possibility\n of manipulation (including read-only reentrancy).\n This interface is based on the UniswapV3 interface, credit to Uniswap Labs under GPL-2.0-or-later license:\n https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces"},"fullyImplemented":false,"id":1681,"linearizedBaseContracts":[1681],"name":"IAlgebraPoolState","nameLocation":"485:17:14","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":1501,"nodeType":"StructuredDocumentation","src":"507:1108:14","text":"@notice Safely get most important state values of Algebra Integral AMM\n @dev Several values exposed as a single method to save gas when accessed externally.\n **Important security note: this method checks reentrancy lock and should be preferred in most cases**.\n @return sqrtPrice The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\n @return tick The current global tick of the pool. May not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\n @return lastFee The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\n @return pluginConfig The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\n @return activeLiquidity  The currently in-range liquidity available to the pool\n @return nextTick The next initialized tick after current global tick\n @return previousTick The previous initialized tick before (or at) current global tick"},"functionSelector":"97ce1c51","id":1518,"implemented":false,"kind":"function","modifiers":[],"name":"safelyGetStateOfAMM","nameLocation":"1627:19:14","nodeType":"FunctionDefinition","parameters":{"id":1502,"nodeType":"ParameterList","parameters":[],"src":"1646:2:14"},"returnParameters":{"id":1517,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1504,"mutability":"mutable","name":"sqrtPrice","nameLocation":"1692:9:14","nodeType":"VariableDeclaration","scope":1518,"src":"1684:17:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1503,"name":"uint160","nodeType":"ElementaryTypeName","src":"1684:7:14","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":1506,"mutability":"mutable","name":"tick","nameLocation":"1709:4:14","nodeType":"VariableDeclaration","scope":1518,"src":"1703:10:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1505,"name":"int24","nodeType":"ElementaryTypeName","src":"1703:5:14","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1508,"mutability":"mutable","name":"lastFee","nameLocation":"1722:7:14","nodeType":"VariableDeclaration","scope":1518,"src":"1715:14:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1507,"name":"uint16","nodeType":"ElementaryTypeName","src":"1715:6:14","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},{"constant":false,"id":1510,"mutability":"mutable","name":"pluginConfig","nameLocation":"1737:12:14","nodeType":"VariableDeclaration","scope":1518,"src":"1731:18:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1509,"name":"uint8","nodeType":"ElementaryTypeName","src":"1731:5:14","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"},{"constant":false,"id":1512,"mutability":"mutable","name":"activeLiquidity","nameLocation":"1759:15:14","nodeType":"VariableDeclaration","scope":1518,"src":"1751:23:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1511,"name":"uint128","nodeType":"ElementaryTypeName","src":"1751:7:14","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1514,"mutability":"mutable","name":"nextTick","nameLocation":"1782:8:14","nodeType":"VariableDeclaration","scope":1518,"src":"1776:14:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1513,"name":"int24","nodeType":"ElementaryTypeName","src":"1776:5:14","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1516,"mutability":"mutable","name":"previousTick","nameLocation":"1798:12:14","nodeType":"VariableDeclaration","scope":1518,"src":"1792:18:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1515,"name":"int24","nodeType":"ElementaryTypeName","src":"1792:5:14","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"1683:128:14"},"scope":1681,"src":"1618:194:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1519,"nodeType":"StructuredDocumentation","src":"1816:282:14","text":"@notice Allows to easily get current reentrancy lock status\n @dev can be used to prevent read-only reentrancy.\n This method just returns `globalState.unlocked` value\n @return unlocked Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false"},"functionSelector":"8380edb7","id":1524,"implemented":false,"kind":"function","modifiers":[],"name":"isUnlocked","nameLocation":"2110:10:14","nodeType":"FunctionDefinition","parameters":{"id":1520,"nodeType":"ParameterList","parameters":[],"src":"2120:2:14"},"returnParameters":{"id":1523,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1522,"mutability":"mutable","name":"unlocked","nameLocation":"2151:8:14","nodeType":"VariableDeclaration","scope":1524,"src":"2146:13:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1521,"name":"bool","nodeType":"ElementaryTypeName","src":"2146:4:14","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"2145:15:14"},"scope":1681,"src":"2101:60:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1525,"nodeType":"StructuredDocumentation","src":"2303:1160:14","text":"@notice The globalState structure in the pool stores many values but requires only one slot\n and is exposed as a single method to save gas when accessed externally.\n @dev **important security note: caller should check `unlocked` flag to prevent read-only reentrancy**\n @return price The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\n @return tick The current tick of the pool, i.e. according to the last tick transition that was run\n This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\n @return lastFee The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\n @return pluginConfig The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\n @return communityFee The community fee represented as a percent of all collected fee in thousandths, i.e. 1e-3 (so 100 is 10%)\n @return unlocked Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false"},"functionSelector":"e76c01e4","id":1540,"implemented":false,"kind":"function","modifiers":[],"name":"globalState","nameLocation":"3475:11:14","nodeType":"FunctionDefinition","parameters":{"id":1526,"nodeType":"ParameterList","parameters":[],"src":"3486:2:14"},"returnParameters":{"id":1539,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1528,"mutability":"mutable","name":"price","nameLocation":"3520:5:14","nodeType":"VariableDeclaration","scope":1540,"src":"3512:13:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":1527,"name":"uint160","nodeType":"ElementaryTypeName","src":"3512:7:14","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":1530,"mutability":"mutable","name":"tick","nameLocation":"3533:4:14","nodeType":"VariableDeclaration","scope":1540,"src":"3527:10:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1529,"name":"int24","nodeType":"ElementaryTypeName","src":"3527:5:14","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1532,"mutability":"mutable","name":"lastFee","nameLocation":"3546:7:14","nodeType":"VariableDeclaration","scope":1540,"src":"3539:14:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1531,"name":"uint16","nodeType":"ElementaryTypeName","src":"3539:6:14","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},{"constant":false,"id":1534,"mutability":"mutable","name":"pluginConfig","nameLocation":"3561:12:14","nodeType":"VariableDeclaration","scope":1540,"src":"3555:18:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1533,"name":"uint8","nodeType":"ElementaryTypeName","src":"3555:5:14","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"},{"constant":false,"id":1536,"mutability":"mutable","name":"communityFee","nameLocation":"3582:12:14","nodeType":"VariableDeclaration","scope":1540,"src":"3575:19:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1535,"name":"uint16","nodeType":"ElementaryTypeName","src":"3575:6:14","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},{"constant":false,"id":1538,"mutability":"mutable","name":"unlocked","nameLocation":"3601:8:14","nodeType":"VariableDeclaration","scope":1540,"src":"3596:13:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1537,"name":"bool","nodeType":"ElementaryTypeName","src":"3596:4:14","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"3511:99:14"},"scope":1681,"src":"3466:145:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1541,"nodeType":"StructuredDocumentation","src":"3615:893:14","text":"@notice Look up information about a specific tick in the pool\n @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @param tick The tick to look up\n @return liquidityTotal The total amount of position liquidity that uses the pool either as tick lower or tick upper\n @return liquidityDelta How much liquidity changes when the pool price crosses the tick\n @return prevTick The previous tick in tick list\n @return nextTick The next tick in tick list\n @return outerFeeGrowth0Token The fee growth on the other side of the tick from the current tick in token0\n @return outerFeeGrowth1Token The fee growth on the other side of the tick from the current tick in token1\n In addition, these values are only relative and must be used only in comparison to previous snapshots for\n a specific position."},"functionSelector":"f30dba93","id":1558,"implemented":false,"kind":"function","modifiers":[],"name":"ticks","nameLocation":"4520:5:14","nodeType":"FunctionDefinition","parameters":{"id":1544,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1543,"mutability":"mutable","name":"tick","nameLocation":"4537:4:14","nodeType":"VariableDeclaration","scope":1558,"src":"4531:10:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1542,"name":"int24","nodeType":"ElementaryTypeName","src":"4531:5:14","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"4525:20:14"},"returnParameters":{"id":1557,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1546,"mutability":"mutable","name":"liquidityTotal","nameLocation":"4596:14:14","nodeType":"VariableDeclaration","scope":1558,"src":"4588:22:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1545,"name":"uint256","nodeType":"ElementaryTypeName","src":"4588:7:14","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1548,"mutability":"mutable","name":"liquidityDelta","nameLocation":"4625:14:14","nodeType":"VariableDeclaration","scope":1558,"src":"4618:21:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"},"typeName":{"id":1547,"name":"int128","nodeType":"ElementaryTypeName","src":"4618:6:14","typeDescriptions":{"typeIdentifier":"t_int128","typeString":"int128"}},"visibility":"internal"},{"constant":false,"id":1550,"mutability":"mutable","name":"prevTick","nameLocation":"4653:8:14","nodeType":"VariableDeclaration","scope":1558,"src":"4647:14:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1549,"name":"int24","nodeType":"ElementaryTypeName","src":"4647:5:14","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1552,"mutability":"mutable","name":"nextTick","nameLocation":"4675:8:14","nodeType":"VariableDeclaration","scope":1558,"src":"4669:14:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1551,"name":"int24","nodeType":"ElementaryTypeName","src":"4669:5:14","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"},{"constant":false,"id":1554,"mutability":"mutable","name":"outerFeeGrowth0Token","nameLocation":"4699:20:14","nodeType":"VariableDeclaration","scope":1558,"src":"4691:28:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1553,"name":"uint256","nodeType":"ElementaryTypeName","src":"4691:7:14","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1556,"mutability":"mutable","name":"outerFeeGrowth1Token","nameLocation":"4735:20:14","nodeType":"VariableDeclaration","scope":1558,"src":"4727:28:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1555,"name":"uint256","nodeType":"ElementaryTypeName","src":"4727:7:14","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"4580:181:14"},"scope":1681,"src":"4511:251:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1559,"nodeType":"StructuredDocumentation","src":"4766:120:14","text":"@notice The timestamp of the last sending of tokens to vault/plugin\n @return The timestamp truncated to 32 bits"},"functionSelector":"77f8c3a9","id":1564,"implemented":false,"kind":"function","modifiers":[],"name":"lastFeeTransferTimestamp","nameLocation":"4898:24:14","nodeType":"FunctionDefinition","parameters":{"id":1560,"nodeType":"ParameterList","parameters":[],"src":"4922:2:14"},"returnParameters":{"id":1563,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1562,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1564,"src":"4948:6:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":1561,"name":"uint32","nodeType":"ElementaryTypeName","src":"4948:6:14","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"visibility":"internal"}],"src":"4947:8:14"},"scope":1681,"src":"4889:67:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1565,"nodeType":"StructuredDocumentation","src":"4960:328:14","text":"@notice The amounts of token0 and token1 that will be sent to the vault\n @dev Will be sent FEE_TRANSFER_FREQUENCY after communityFeeLastTimestamp\n @return communityFeePending0 The amount of token0 that will be sent to the vault\n @return communityFeePending1 The amount of token1 that will be sent to the vault"},"functionSelector":"7bd78025","id":1572,"implemented":false,"kind":"function","modifiers":[],"name":"getCommunityFeePending","nameLocation":"5300:22:14","nodeType":"FunctionDefinition","parameters":{"id":1566,"nodeType":"ParameterList","parameters":[],"src":"5322:2:14"},"returnParameters":{"id":1571,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1568,"mutability":"mutable","name":"communityFeePending0","nameLocation":"5356:20:14","nodeType":"VariableDeclaration","scope":1572,"src":"5348:28:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1567,"name":"uint128","nodeType":"ElementaryTypeName","src":"5348:7:14","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1570,"mutability":"mutable","name":"communityFeePending1","nameLocation":"5386:20:14","nodeType":"VariableDeclaration","scope":1572,"src":"5378:28:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1569,"name":"uint128","nodeType":"ElementaryTypeName","src":"5378:7:14","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"5347:60:14"},"scope":1681,"src":"5291:117:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1573,"nodeType":"StructuredDocumentation","src":"5412:324:14","text":"@notice The amounts of token0 and token1 that will be sent to the plugin\n @dev Will be sent FEE_TRANSFER_FREQUENCY after feeLastTransferTimestamp\n @return pluginFeePending0 The amount of token0 that will be sent to the plugin\n @return pluginFeePending1 The amount of token1 that will be sent to the plugin"},"functionSelector":"a1eded87","id":1580,"implemented":false,"kind":"function","modifiers":[],"name":"getPluginFeePending","nameLocation":"5748:19:14","nodeType":"FunctionDefinition","parameters":{"id":1574,"nodeType":"ParameterList","parameters":[],"src":"5767:2:14"},"returnParameters":{"id":1579,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1576,"mutability":"mutable","name":"pluginFeePending0","nameLocation":"5801:17:14","nodeType":"VariableDeclaration","scope":1580,"src":"5793:25:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1575,"name":"uint128","nodeType":"ElementaryTypeName","src":"5793:7:14","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1578,"mutability":"mutable","name":"pluginFeePending1","nameLocation":"5828:17:14","nodeType":"VariableDeclaration","scope":1580,"src":"5820:25:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1577,"name":"uint128","nodeType":"ElementaryTypeName","src":"5820:7:14","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"5792:54:14"},"scope":1681,"src":"5739:108:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1581,"nodeType":"StructuredDocumentation","src":"5851:164:14","text":"@notice Returns the address of currently used plugin\n @dev The plugin is subject to change\n @return pluginAddress The address of currently used plugin"},"functionSelector":"ef01df4f","id":1586,"implemented":false,"kind":"function","modifiers":[],"name":"plugin","nameLocation":"6027:6:14","nodeType":"FunctionDefinition","parameters":{"id":1582,"nodeType":"ParameterList","parameters":[],"src":"6033:2:14"},"returnParameters":{"id":1585,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1584,"mutability":"mutable","name":"pluginAddress","nameLocation":"6067:13:14","nodeType":"VariableDeclaration","scope":1586,"src":"6059:21:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1583,"name":"address","nodeType":"ElementaryTypeName","src":"6059:7:14","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"6058:23:14"},"scope":1681,"src":"6018:64:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1587,"nodeType":"StructuredDocumentation","src":"6086:127:14","text":"@notice The contract to which community fees are transferred\n @return communityVaultAddress The communityVault address"},"functionSelector":"53e97868","id":1592,"implemented":false,"kind":"function","modifiers":[],"name":"communityVault","nameLocation":"6225:14:14","nodeType":"FunctionDefinition","parameters":{"id":1588,"nodeType":"ParameterList","parameters":[],"src":"6239:2:14"},"returnParameters":{"id":1591,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1590,"mutability":"mutable","name":"communityVaultAddress","nameLocation":"6273:21:14","nodeType":"VariableDeclaration","scope":1592,"src":"6265:29:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1589,"name":"address","nodeType":"ElementaryTypeName","src":"6265:7:14","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"6264:31:14"},"scope":1681,"src":"6216:80:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1593,"nodeType":"StructuredDocumentation","src":"6300:212:14","text":"@notice Returns 256 packed tick initialized boolean values. See TickTree for more information\n @param wordPosition Index of 256-bits word with ticks\n @return The 256-bits word with packed ticks info"},"functionSelector":"c677e3e0","id":1600,"implemented":false,"kind":"function","modifiers":[],"name":"tickTable","nameLocation":"6524:9:14","nodeType":"FunctionDefinition","parameters":{"id":1596,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1595,"mutability":"mutable","name":"wordPosition","nameLocation":"6540:12:14","nodeType":"VariableDeclaration","scope":1600,"src":"6534:18:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int16","typeString":"int16"},"typeName":{"id":1594,"name":"int16","nodeType":"ElementaryTypeName","src":"6534:5:14","typeDescriptions":{"typeIdentifier":"t_int16","typeString":"int16"}},"visibility":"internal"}],"src":"6533:20:14"},"returnParameters":{"id":1599,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1598,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1600,"src":"6577:7:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1597,"name":"uint256","nodeType":"ElementaryTypeName","src":"6577:7:14","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"6576:9:14"},"scope":1681,"src":"6515:71:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1601,"nodeType":"StructuredDocumentation","src":"6590:218:14","text":"@notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool\n @dev This value can overflow the uint256\n @return The fee growth accumulator for token0"},"functionSelector":"6378ae44","id":1606,"implemented":false,"kind":"function","modifiers":[],"name":"totalFeeGrowth0Token","nameLocation":"6820:20:14","nodeType":"FunctionDefinition","parameters":{"id":1602,"nodeType":"ParameterList","parameters":[],"src":"6840:2:14"},"returnParameters":{"id":1605,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1604,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1606,"src":"6866:7:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1603,"name":"uint256","nodeType":"ElementaryTypeName","src":"6866:7:14","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"6865:9:14"},"scope":1681,"src":"6811:64:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1607,"nodeType":"StructuredDocumentation","src":"6879:218:14","text":"@notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool\n @dev This value can overflow the uint256\n @return The fee growth accumulator for token1"},"functionSelector":"ecdecf42","id":1612,"implemented":false,"kind":"function","modifiers":[],"name":"totalFeeGrowth1Token","nameLocation":"7109:20:14","nodeType":"FunctionDefinition","parameters":{"id":1608,"nodeType":"ParameterList","parameters":[],"src":"7129:2:14"},"returnParameters":{"id":1611,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1610,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1612,"src":"7155:7:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1609,"name":"uint256","nodeType":"ElementaryTypeName","src":"7155:7:14","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"7154:9:14"},"scope":1681,"src":"7100:64:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1613,"nodeType":"StructuredDocumentation","src":"7168:524:14","text":"@notice The current pool fee value\n @dev In case dynamic fee is enabled in the pool, this method will call the plugin to get the current fee.\n If the plugin implements complex fee logic, this method may return an incorrect value or revert.\n In this case, see the plugin implementation and related documentation.\n @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @return currentFee The current pool fee value in hundredths of a bip, i.e. 1e-6"},"functionSelector":"ddca3f43","id":1618,"implemented":false,"kind":"function","modifiers":[],"name":"fee","nameLocation":"7704:3:14","nodeType":"FunctionDefinition","parameters":{"id":1614,"nodeType":"ParameterList","parameters":[],"src":"7707:2:14"},"returnParameters":{"id":1617,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1616,"mutability":"mutable","name":"currentFee","nameLocation":"7740:10:14","nodeType":"VariableDeclaration","scope":1618,"src":"7733:17:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1615,"name":"uint16","nodeType":"ElementaryTypeName","src":"7733:6:14","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"7732:19:14"},"scope":1681,"src":"7695:57:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1619,"nodeType":"StructuredDocumentation","src":"7756:382:14","text":"@notice The tracked token0 and token1 reserves of pool\n @dev If at any time the real balance is larger, the excess will be transferred to liquidity providers as additional fee.\n If the balance exceeds uint128, the excess will be sent to the communityVault.\n @return reserve0 The last known reserve of token0\n @return reserve1 The last known reserve of token1"},"functionSelector":"0902f1ac","id":1626,"implemented":false,"kind":"function","modifiers":[],"name":"getReserves","nameLocation":"8150:11:14","nodeType":"FunctionDefinition","parameters":{"id":1620,"nodeType":"ParameterList","parameters":[],"src":"8161:2:14"},"returnParameters":{"id":1625,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1622,"mutability":"mutable","name":"reserve0","nameLocation":"8195:8:14","nodeType":"VariableDeclaration","scope":1626,"src":"8187:16:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1621,"name":"uint128","nodeType":"ElementaryTypeName","src":"8187:7:14","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1624,"mutability":"mutable","name":"reserve1","nameLocation":"8213:8:14","nodeType":"VariableDeclaration","scope":1626,"src":"8205:16:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1623,"name":"uint128","nodeType":"ElementaryTypeName","src":"8205:7:14","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"8186:36:14"},"scope":1681,"src":"8141:82:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1627,"nodeType":"StructuredDocumentation","src":"8227:779:14","text":"@notice Returns the information about a position by the position's key\n @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @param key The position's key is a packed concatenation of the owner address, bottomTick and topTick indexes\n @return liquidity The amount of liquidity in the position\n @return innerFeeGrowth0Token Fee growth of token0 inside the tick range as of the last mint/burn/poke\n @return innerFeeGrowth1Token Fee growth of token1 inside the tick range as of the last mint/burn/poke\n @return fees0 The computed amount of token0 owed to the position as of the last mint/burn/poke\n @return fees1 The computed amount of token1 owed to the position as of the last mint/burn/poke"},"functionSelector":"514ea4bf","id":1642,"implemented":false,"kind":"function","modifiers":[],"name":"positions","nameLocation":"9018:9:14","nodeType":"FunctionDefinition","parameters":{"id":1630,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1629,"mutability":"mutable","name":"key","nameLocation":"9041:3:14","nodeType":"VariableDeclaration","scope":1642,"src":"9033:11:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1628,"name":"bytes32","nodeType":"ElementaryTypeName","src":"9033:7:14","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"}],"src":"9027:21:14"},"returnParameters":{"id":1641,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1632,"mutability":"mutable","name":"liquidity","nameLocation":"9080:9:14","nodeType":"VariableDeclaration","scope":1642,"src":"9072:17:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1631,"name":"uint256","nodeType":"ElementaryTypeName","src":"9072:7:14","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1634,"mutability":"mutable","name":"innerFeeGrowth0Token","nameLocation":"9099:20:14","nodeType":"VariableDeclaration","scope":1642,"src":"9091:28:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1633,"name":"uint256","nodeType":"ElementaryTypeName","src":"9091:7:14","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1636,"mutability":"mutable","name":"innerFeeGrowth1Token","nameLocation":"9129:20:14","nodeType":"VariableDeclaration","scope":1642,"src":"9121:28:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1635,"name":"uint256","nodeType":"ElementaryTypeName","src":"9121:7:14","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":1638,"mutability":"mutable","name":"fees0","nameLocation":"9159:5:14","nodeType":"VariableDeclaration","scope":1642,"src":"9151:13:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1637,"name":"uint128","nodeType":"ElementaryTypeName","src":"9151:7:14","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"},{"constant":false,"id":1640,"mutability":"mutable","name":"fees1","nameLocation":"9174:5:14","nodeType":"VariableDeclaration","scope":1642,"src":"9166:13:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1639,"name":"uint128","nodeType":"ElementaryTypeName","src":"9166:7:14","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"9071:109:14"},"scope":1681,"src":"9009:172:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1643,"nodeType":"StructuredDocumentation","src":"9185:355:14","text":"@notice The currently in range liquidity available to the pool\n @dev This value has no relationship to the total liquidity across all ticks.\n Returned value cannot exceed type(uint128).max\n @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @return The current in range liquidity"},"functionSelector":"1a686502","id":1648,"implemented":false,"kind":"function","modifiers":[],"name":"liquidity","nameLocation":"9552:9:14","nodeType":"FunctionDefinition","parameters":{"id":1644,"nodeType":"ParameterList","parameters":[],"src":"9561:2:14"},"returnParameters":{"id":1647,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1646,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1648,"src":"9587:7:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"},"typeName":{"id":1645,"name":"uint128","nodeType":"ElementaryTypeName","src":"9587:7:14","typeDescriptions":{"typeIdentifier":"t_uint128","typeString":"uint128"}},"visibility":"internal"}],"src":"9586:9:14"},"scope":1681,"src":"9543:53:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1649,"nodeType":"StructuredDocumentation","src":"9600:436:14","text":"@notice The current tick spacing\n @dev Ticks can only be initialized by new mints at multiples of this value\n e.g.: a tickSpacing of 60 means ticks can be initialized every 60th tick, i.e., ..., -120, -60, 0, 60, 120, ...\n However, tickspacing can be changed after the ticks have been initialized.\n This value is an int24 to avoid casting even though it is always positive.\n @return The current tick spacing"},"functionSelector":"d0c93a7c","id":1654,"implemented":false,"kind":"function","modifiers":[],"name":"tickSpacing","nameLocation":"10048:11:14","nodeType":"FunctionDefinition","parameters":{"id":1650,"nodeType":"ParameterList","parameters":[],"src":"10059:2:14"},"returnParameters":{"id":1653,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1652,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1654,"src":"10085:5:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1651,"name":"int24","nodeType":"ElementaryTypeName","src":"10085:5:14","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"10084:7:14"},"scope":1681,"src":"10039:53:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1655,"nodeType":"StructuredDocumentation","src":"10096:228:14","text":"@notice The previous initialized tick before (or at) current global tick\n @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @return The previous initialized tick"},"functionSelector":"050a4d21","id":1660,"implemented":false,"kind":"function","modifiers":[],"name":"prevTickGlobal","nameLocation":"10336:14:14","nodeType":"FunctionDefinition","parameters":{"id":1656,"nodeType":"ParameterList","parameters":[],"src":"10350:2:14"},"returnParameters":{"id":1659,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1658,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1660,"src":"10376:5:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1657,"name":"int24","nodeType":"ElementaryTypeName","src":"10376:5:14","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"10375:7:14"},"scope":1681,"src":"10327:56:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1661,"nodeType":"StructuredDocumentation","src":"10387:211:14","text":"@notice The next initialized tick after current global tick\n @dev **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @return The next initialized tick"},"functionSelector":"d5c35a7e","id":1666,"implemented":false,"kind":"function","modifiers":[],"name":"nextTickGlobal","nameLocation":"10610:14:14","nodeType":"FunctionDefinition","parameters":{"id":1662,"nodeType":"ParameterList","parameters":[],"src":"10624:2:14"},"returnParameters":{"id":1665,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1664,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1666,"src":"10650:5:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"},"typeName":{"id":1663,"name":"int24","nodeType":"ElementaryTypeName","src":"10650:5:14","typeDescriptions":{"typeIdentifier":"t_int24","typeString":"int24"}},"visibility":"internal"}],"src":"10649:7:14"},"scope":1681,"src":"10601:56:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1667,"nodeType":"StructuredDocumentation","src":"10661:315:14","text":"@notice The root of tick search tree\n @dev Each bit corresponds to one node in the second layer of tick tree: '1' if node has at least one active bit.\n **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @return The root of tick search tree as bitmap"},"functionSelector":"578b9a36","id":1672,"implemented":false,"kind":"function","modifiers":[],"name":"tickTreeRoot","nameLocation":"10988:12:14","nodeType":"FunctionDefinition","parameters":{"id":1668,"nodeType":"ParameterList","parameters":[],"src":"11000:2:14"},"returnParameters":{"id":1671,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1670,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1672,"src":"11026:6:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"},"typeName":{"id":1669,"name":"uint32","nodeType":"ElementaryTypeName","src":"11026:6:14","typeDescriptions":{"typeIdentifier":"t_uint32","typeString":"uint32"}},"visibility":"internal"}],"src":"11025:8:14"},"scope":1681,"src":"10979:55:14","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1673,"nodeType":"StructuredDocumentation","src":"11038:347:14","text":"@notice The second layer of tick search tree\n @dev Each bit in node corresponds to one node in the leafs layer (`tickTable`) of tick tree: '1' if leaf has at least one active bit.\n **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\n @return The node of tick search tree second layer"},"functionSelector":"d8619037","id":1680,"implemented":false,"kind":"function","modifiers":[],"name":"tickTreeSecondLayer","nameLocation":"11397:19:14","nodeType":"FunctionDefinition","parameters":{"id":1676,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1675,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1680,"src":"11417:5:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int16","typeString":"int16"},"typeName":{"id":1674,"name":"int16","nodeType":"ElementaryTypeName","src":"11417:5:14","typeDescriptions":{"typeIdentifier":"t_int16","typeString":"int16"}},"visibility":"internal"}],"src":"11416:7:14"},"returnParameters":{"id":1679,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1678,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1680,"src":"11447:7:14","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1677,"name":"uint256","nodeType":"ElementaryTypeName","src":"11447:7:14","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"11446:9:14"},"scope":1681,"src":"11388:68:14","stateMutability":"view","virtual":false,"visibility":"external"}],"scope":1682,"src":"475:10983:14","usedErrors":[],"usedEvents":[]}],"src":"45:11414:14"},"id":14},"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol","exportedSymbols":{"IAlgebraVaultFactory":[1709]},"id":1710,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1683,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:15"},{"abstract":false,"baseContracts":[],"canonicalName":"IAlgebraVaultFactory","contractDependencies":[],"contractKind":"interface","documentation":{"id":1684,"nodeType":"StructuredDocumentation","src":"71:158:15","text":"@title The interface for the Algebra Vault Factory\n @notice This contract can be used for automatic vaults creation\n @dev Version: Algebra Integral"},"fullyImplemented":false,"id":1709,"linearizedBaseContracts":[1709],"name":"IAlgebraVaultFactory","nameLocation":"239:20:15","nodeType":"ContractDefinition","nodes":[{"documentation":{"id":1685,"nodeType":"StructuredDocumentation","src":"264:189:15","text":"@notice returns address of the community fee vault for the pool\n @param pool the address of Algebra Integral pool\n @return communityFeeVault the address of community fee vault"},"functionSelector":"7570e389","id":1692,"implemented":false,"kind":"function","modifiers":[],"name":"getVaultForPool","nameLocation":"465:15:15","nodeType":"FunctionDefinition","parameters":{"id":1688,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1687,"mutability":"mutable","name":"pool","nameLocation":"489:4:15","nodeType":"VariableDeclaration","scope":1692,"src":"481:12:15","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1686,"name":"address","nodeType":"ElementaryTypeName","src":"481:7:15","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"480:14:15"},"returnParameters":{"id":1691,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1690,"mutability":"mutable","name":"communityFeeVault","nameLocation":"526:17:15","nodeType":"VariableDeclaration","scope":1692,"src":"518:25:15","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1689,"name":"address","nodeType":"ElementaryTypeName","src":"518:7:15","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"517:27:15"},"scope":1709,"src":"456:89:15","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":1693,"nodeType":"StructuredDocumentation","src":"549:188:15","text":"@notice creates the community fee vault for the pool if needed\n @param pool the address of Algebra Integral pool\n @return communityFeeVault the address of community fee vault"},"functionSelector":"b8a1d3c6","id":1708,"implemented":false,"kind":"function","modifiers":[],"name":"createVaultForPool","nameLocation":"749:18:15","nodeType":"FunctionDefinition","parameters":{"id":1704,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1695,"mutability":"mutable","name":"pool","nameLocation":"781:4:15","nodeType":"VariableDeclaration","scope":1708,"src":"773:12:15","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1694,"name":"address","nodeType":"ElementaryTypeName","src":"773:7:15","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1697,"mutability":"mutable","name":"creator","nameLocation":"799:7:15","nodeType":"VariableDeclaration","scope":1708,"src":"791:15:15","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1696,"name":"address","nodeType":"ElementaryTypeName","src":"791:7:15","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1699,"mutability":"mutable","name":"deployer","nameLocation":"820:8:15","nodeType":"VariableDeclaration","scope":1708,"src":"812:16:15","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1698,"name":"address","nodeType":"ElementaryTypeName","src":"812:7:15","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1701,"mutability":"mutable","name":"token0","nameLocation":"842:6:15","nodeType":"VariableDeclaration","scope":1708,"src":"834:14:15","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1700,"name":"address","nodeType":"ElementaryTypeName","src":"834:7:15","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1703,"mutability":"mutable","name":"token1","nameLocation":"862:6:15","nodeType":"VariableDeclaration","scope":1708,"src":"854:14:15","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1702,"name":"address","nodeType":"ElementaryTypeName","src":"854:7:15","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"767:105:15"},"returnParameters":{"id":1707,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1706,"mutability":"mutable","name":"communityFeeVault","nameLocation":"899:17:15","nodeType":"VariableDeclaration","scope":1708,"src":"891:25:15","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1705,"name":"address","nodeType":"ElementaryTypeName","src":"891:7:15","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"890:27:15"},"scope":1709,"src":"740:178:15","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":1710,"src":"229:691:15","usedErrors":[],"usedEvents":[]}],"src":"45:876:15"},"id":15},"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","exportedSymbols":{"IAlgebraPoolErrors":[1269],"Plugins":[1781]},"id":1782,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":1711,"literals":["solidity",">=","0.8",".4","<","0.9",".0"],"nodeType":"PragmaDirective","src":"45:31:16"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol","file":"../interfaces/pool/IAlgebraPoolErrors.sol","id":1712,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":1782,"sourceUnit":1270,"src":"78:51:16","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[],"canonicalName":"Plugins","contractDependencies":[],"contractKind":"library","documentation":{"id":1713,"nodeType":"StructuredDocumentation","src":"131:180:16","text":"@title Contains logic and constants for interacting with the plugin through hooks\n @dev Allows pool to check which hooks are enabled, as well as control the return selector"},"fullyImplemented":true,"id":1781,"linearizedBaseContracts":[1781],"name":"Plugins","nameLocation":"319:7:16","nodeType":"ContractDefinition","nodes":[{"body":{"id":1723,"nodeType":"Block","src":"415:70:16","statements":[{"AST":{"nodeType":"YulBlock","src":"430:51:16","statements":[{"nodeType":"YulAssignment","src":"438:37:16","value":{"arguments":[{"arguments":[{"name":"pluginConfig","nodeType":"YulIdentifier","src":"452:12:16"},{"name":"flag","nodeType":"YulIdentifier","src":"466:4:16"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"448:3:16"},"nodeType":"YulFunctionCall","src":"448:23:16"},{"kind":"number","nodeType":"YulLiteral","src":"473:1:16","type":"","value":"0"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"445:2:16"},"nodeType":"YulFunctionCall","src":"445:30:16"},"variableNames":[{"name":"res","nodeType":"YulIdentifier","src":"438:3:16"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":1717,"isOffset":false,"isSlot":false,"src":"466:4:16","valueSize":1},{"declaration":1715,"isOffset":false,"isSlot":false,"src":"452:12:16","valueSize":1},{"declaration":1720,"isOffset":false,"isSlot":false,"src":"438:3:16","valueSize":1}],"id":1722,"nodeType":"InlineAssembly","src":"421:60:16"}]},"id":1724,"implemented":true,"kind":"function","modifiers":[],"name":"hasFlag","nameLocation":"340:7:16","nodeType":"FunctionDefinition","parameters":{"id":1718,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1715,"mutability":"mutable","name":"pluginConfig","nameLocation":"354:12:16","nodeType":"VariableDeclaration","scope":1724,"src":"348:18:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1714,"name":"uint8","nodeType":"ElementaryTypeName","src":"348:5:16","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"},{"constant":false,"id":1717,"mutability":"mutable","name":"flag","nameLocation":"376:4:16","nodeType":"VariableDeclaration","scope":1724,"src":"368:12:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1716,"name":"uint256","nodeType":"ElementaryTypeName","src":"368:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"347:34:16"},"returnParameters":{"id":1721,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1720,"mutability":"mutable","name":"res","nameLocation":"410:3:16","nodeType":"VariableDeclaration","scope":1724,"src":"405:8:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1719,"name":"bool","nodeType":"ElementaryTypeName","src":"405:4:16","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"404:10:16"},"scope":1781,"src":"331:154:16","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":1741,"nodeType":"Block","src":"567:108:16","statements":[{"condition":{"commonType":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"id":1733,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1731,"name":"selector","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1726,"src":"577:8:16","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"id":1732,"name":"expectedSelector","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1728,"src":"589:16:16","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"src":"577:28:16","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1740,"nodeType":"IfStatement","src":"573:97:16","trueBody":{"errorCall":{"arguments":[{"id":1737,"name":"expectedSelector","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1728,"src":"653:16:16","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes4","typeString":"bytes4"}],"expression":{"id":1734,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1269,"src":"614:18:16","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1269_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":1736,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"633:19:16","memberName":"invalidHookResponse","nodeType":"MemberAccess","referencedDeclaration":1235,"src":"614:38:16","typeDescriptions":{"typeIdentifier":"t_function_error_pure$_t_bytes4_$returns$__$","typeString":"function (bytes4) pure"}},"id":1738,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"614:56:16","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1739,"nodeType":"RevertStatement","src":"607:63:16"}}]},"id":1742,"implemented":true,"kind":"function","modifiers":[],"name":"shouldReturn","nameLocation":"498:12:16","nodeType":"FunctionDefinition","parameters":{"id":1729,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1726,"mutability":"mutable","name":"selector","nameLocation":"518:8:16","nodeType":"VariableDeclaration","scope":1742,"src":"511:15:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":1725,"name":"bytes4","nodeType":"ElementaryTypeName","src":"511:6:16","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"},{"constant":false,"id":1728,"mutability":"mutable","name":"expectedSelector","nameLocation":"535:16:16","nodeType":"VariableDeclaration","scope":1742,"src":"528:23:16","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":1727,"name":"bytes4","nodeType":"ElementaryTypeName","src":"528:6:16","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"510:42:16"},"returnParameters":{"id":1730,"nodeType":"ParameterList","parameters":[],"src":"567:0:16"},"scope":1781,"src":"489:186:16","stateMutability":"pure","virtual":false,"visibility":"internal"},{"constant":true,"id":1745,"mutability":"constant","name":"BEFORE_SWAP_FLAG","nameLocation":"705:16:16","nodeType":"VariableDeclaration","scope":1781,"src":"679:46:16","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1743,"name":"uint256","nodeType":"ElementaryTypeName","src":"679:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"hexValue":"31","id":1744,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"724:1:16","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"visibility":"internal"},{"constant":true,"id":1750,"mutability":"constant","name":"AFTER_SWAP_FLAG","nameLocation":"755:15:16","nodeType":"VariableDeclaration","scope":1781,"src":"729:50:16","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1746,"name":"uint256","nodeType":"ElementaryTypeName","src":"729:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"},"id":1749,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":1747,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"773:1:16","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"31","id":1748,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"778:1:16","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"src":"773:6:16","typeDescriptions":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"}},"visibility":"internal"},{"constant":true,"id":1755,"mutability":"constant","name":"BEFORE_POSITION_MODIFY_FLAG","nameLocation":"809:27:16","nodeType":"VariableDeclaration","scope":1781,"src":"783:62:16","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1751,"name":"uint256","nodeType":"ElementaryTypeName","src":"783:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_4_by_1","typeString":"int_const 4"},"id":1754,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":1752,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"839:1:16","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"32","id":1753,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"844:1:16","typeDescriptions":{"typeIdentifier":"t_rational_2_by_1","typeString":"int_const 2"},"value":"2"},"src":"839:6:16","typeDescriptions":{"typeIdentifier":"t_rational_4_by_1","typeString":"int_const 4"}},"visibility":"internal"},{"constant":true,"id":1760,"mutability":"constant","name":"AFTER_POSITION_MODIFY_FLAG","nameLocation":"875:26:16","nodeType":"VariableDeclaration","scope":1781,"src":"849:61:16","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1756,"name":"uint256","nodeType":"ElementaryTypeName","src":"849:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_8_by_1","typeString":"int_const 8"},"id":1759,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":1757,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"904:1:16","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"33","id":1758,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"909:1:16","typeDescriptions":{"typeIdentifier":"t_rational_3_by_1","typeString":"int_const 3"},"value":"3"},"src":"904:6:16","typeDescriptions":{"typeIdentifier":"t_rational_8_by_1","typeString":"int_const 8"}},"visibility":"internal"},{"constant":true,"id":1765,"mutability":"constant","name":"BEFORE_FLASH_FLAG","nameLocation":"940:17:16","nodeType":"VariableDeclaration","scope":1781,"src":"914:52:16","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1761,"name":"uint256","nodeType":"ElementaryTypeName","src":"914:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_16_by_1","typeString":"int_const 16"},"id":1764,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":1762,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"960:1:16","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"34","id":1763,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"965:1:16","typeDescriptions":{"typeIdentifier":"t_rational_4_by_1","typeString":"int_const 4"},"value":"4"},"src":"960:6:16","typeDescriptions":{"typeIdentifier":"t_rational_16_by_1","typeString":"int_const 16"}},"visibility":"internal"},{"constant":true,"id":1770,"mutability":"constant","name":"AFTER_FLASH_FLAG","nameLocation":"996:16:16","nodeType":"VariableDeclaration","scope":1781,"src":"970:51:16","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1766,"name":"uint256","nodeType":"ElementaryTypeName","src":"970:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_32_by_1","typeString":"int_const 32"},"id":1769,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":1767,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1015:1:16","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"35","id":1768,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1020:1:16","typeDescriptions":{"typeIdentifier":"t_rational_5_by_1","typeString":"int_const 5"},"value":"5"},"src":"1015:6:16","typeDescriptions":{"typeIdentifier":"t_rational_32_by_1","typeString":"int_const 32"}},"visibility":"internal"},{"constant":true,"id":1775,"mutability":"constant","name":"AFTER_INIT_FLAG","nameLocation":"1051:15:16","nodeType":"VariableDeclaration","scope":1781,"src":"1025:50:16","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1771,"name":"uint256","nodeType":"ElementaryTypeName","src":"1025:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_64_by_1","typeString":"int_const 64"},"id":1774,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":1772,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1069:1:16","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"36","id":1773,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1074:1:16","typeDescriptions":{"typeIdentifier":"t_rational_6_by_1","typeString":"int_const 6"},"value":"6"},"src":"1069:6:16","typeDescriptions":{"typeIdentifier":"t_rational_64_by_1","typeString":"int_const 64"}},"visibility":"internal"},{"constant":true,"id":1780,"mutability":"constant","name":"DYNAMIC_FEE","nameLocation":"1105:11:16","nodeType":"VariableDeclaration","scope":1781,"src":"1079:46:16","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1776,"name":"uint256","nodeType":"ElementaryTypeName","src":"1079:7:16","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":{"commonType":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"},"id":1779,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"leftExpression":{"hexValue":"31","id":1777,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1119:1:16","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"nodeType":"BinaryOperation","operator":"<<","rightExpression":{"hexValue":"37","id":1778,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1124:1:16","typeDescriptions":{"typeIdentifier":"t_rational_7_by_1","typeString":"int_const 7"},"value":"7"},"src":"1119:6:16","typeDescriptions":{"typeIdentifier":"t_rational_128_by_1","typeString":"int_const 128"}},"visibility":"internal"}],"scope":1782,"src":"311:817:16","usedErrors":[],"usedEvents":[]}],"src":"45:1084:16"},"id":16},"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol":{"ast":{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol","exportedSymbols":{"IAlgebraPoolErrors":[1269],"SafeTransfer":[1809]},"id":1810,"license":"MIT","nodeType":"SourceUnit","nodes":[{"id":1783,"literals":["solidity",">=","0.8",".4","<","0.9",".0"],"nodeType":"PragmaDirective","src":"32:31:17"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol","file":"../interfaces/pool/IAlgebraPoolErrors.sol","id":1784,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":1810,"sourceUnit":1270,"src":"65:51:17","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[],"canonicalName":"SafeTransfer","contractDependencies":[],"contractKind":"library","documentation":{"id":1785,"nodeType":"StructuredDocumentation","src":"118:403:17","text":"@title SafeTransfer\n @notice Safe ERC20 transfer library that gracefully handles missing return values.\n @dev Credit to Solmate under MIT license: https://github.com/transmissions11/solmate/blob/ed67feda67b24fdeff8ad1032360f0ee6047ba0a/src/utils/SafeTransferLib.sol\n @dev Please note that this library does not check if the token has a code! That responsibility is delegated to the caller."},"fullyImplemented":true,"id":1809,"linearizedBaseContracts":[1809],"name":"SafeTransfer","nameLocation":"529:12:17","nodeType":"ContractDefinition","nodes":[{"body":{"id":1807,"nodeType":"Block","src":"939:893:17","statements":[{"assignments":[1796],"declarations":[{"constant":false,"id":1796,"mutability":"mutable","name":"success","nameLocation":"950:7:17","nodeType":"VariableDeclaration","scope":1807,"src":"945:12:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1795,"name":"bool","nodeType":"ElementaryTypeName","src":"945:4:17","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"id":1797,"nodeType":"VariableDeclarationStatement","src":"945:12:17"},{"AST":{"nodeType":"YulBlock","src":"972:793:17","statements":[{"nodeType":"YulVariableDeclaration","src":"980:36:17","value":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1011:4:17","type":"","value":"0x40"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"1005:5:17"},"nodeType":"YulFunctionCall","src":"1005:11:17"},"variables":[{"name":"freeMemoryPointer","nodeType":"YulTypedName","src":"984:17:17","type":""}]},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1067:4:17","type":"","value":"0x00"},{"kind":"number","nodeType":"YulLiteral","src":"1073:66:17","type":"","value":"0xa9059cbb00000000000000000000000000000000000000000000000000000000"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1060:6:17"},"nodeType":"YulFunctionCall","src":"1060:80:17"},"nodeType":"YulExpressionStatement","src":"1060:80:17"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1194:4:17","type":"","value":"0x04"},{"arguments":[{"name":"to","nodeType":"YulIdentifier","src":"1204:2:17"},{"kind":"number","nodeType":"YulLiteral","src":"1208:42:17","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1200:3:17"},"nodeType":"YulFunctionCall","src":"1200:51:17"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1187:6:17"},"nodeType":"YulFunctionCall","src":"1187:65:17"},"nodeType":"YulExpressionStatement","src":"1187:65:17"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1297:4:17","type":"","value":"0x24"},{"name":"amount","nodeType":"YulIdentifier","src":"1303:6:17"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1290:6:17"},"nodeType":"YulFunctionCall","src":"1290:20:17"},"nodeType":"YulExpressionStatement","src":"1290:20:17"},{"nodeType":"YulAssignment","src":"1388:50:17","value":{"arguments":[{"arguments":[],"functionName":{"name":"gas","nodeType":"YulIdentifier","src":"1404:3:17"},"nodeType":"YulFunctionCall","src":"1404:5:17"},{"name":"token","nodeType":"YulIdentifier","src":"1411:5:17"},{"kind":"number","nodeType":"YulLiteral","src":"1418:1:17","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1421:1:17","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1424:4:17","type":"","value":"0x44"},{"kind":"number","nodeType":"YulLiteral","src":"1430:1:17","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1433:4:17","type":"","value":"0x20"}],"functionName":{"name":"call","nodeType":"YulIdentifier","src":"1399:4:17"},"nodeType":"YulFunctionCall","src":"1399:39:17"},"variableNames":[{"name":"success","nodeType":"YulIdentifier","src":"1388:7:17"}]},{"nodeType":"YulAssignment","src":"1445:243:17","value":{"arguments":[{"arguments":[{"arguments":[{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1603:1:17","type":"","value":"0"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"1597:5:17"},"nodeType":"YulFunctionCall","src":"1597:8:17"},{"kind":"number","nodeType":"YulLiteral","src":"1607:1:17","type":"","value":"1"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"1594:2:17"},"nodeType":"YulFunctionCall","src":"1594:15:17"},{"arguments":[{"arguments":[],"functionName":{"name":"returndatasize","nodeType":"YulIdentifier","src":"1614:14:17"},"nodeType":"YulFunctionCall","src":"1614:16:17"},{"kind":"number","nodeType":"YulLiteral","src":"1632:2:17","type":"","value":"32"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"1611:2:17"},"nodeType":"YulFunctionCall","src":"1611:24:17"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1590:3:17"},"nodeType":"YulFunctionCall","src":"1590:46:17"},{"arguments":[{"arguments":[],"functionName":{"name":"returndatasize","nodeType":"YulIdentifier","src":"1645:14:17"},"nodeType":"YulFunctionCall","src":"1645:16:17"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"1638:6:17"},"nodeType":"YulFunctionCall","src":"1638:24:17"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"1587:2:17"},"nodeType":"YulFunctionCall","src":"1587:76:17"},{"name":"success","nodeType":"YulIdentifier","src":"1673:7:17"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1456:3:17"},"nodeType":"YulFunctionCall","src":"1456:232:17"},"variableNames":[{"name":"success","nodeType":"YulIdentifier","src":"1445:7:17"}]},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1702:4:17","type":"","value":"0x40"},{"name":"freeMemoryPointer","nodeType":"YulIdentifier","src":"1708:17:17"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1695:6:17"},"nodeType":"YulFunctionCall","src":"1695:31:17"},"nodeType":"YulExpressionStatement","src":"1695:31:17"}]},"evmVersion":"paris","externalReferences":[{"declaration":1792,"isOffset":false,"isSlot":false,"src":"1303:6:17","valueSize":1},{"declaration":1796,"isOffset":false,"isSlot":false,"src":"1388:7:17","valueSize":1},{"declaration":1796,"isOffset":false,"isSlot":false,"src":"1445:7:17","valueSize":1},{"declaration":1796,"isOffset":false,"isSlot":false,"src":"1673:7:17","valueSize":1},{"declaration":1790,"isOffset":false,"isSlot":false,"src":"1204:2:17","valueSize":1},{"declaration":1788,"isOffset":false,"isSlot":false,"src":"1411:5:17","valueSize":1}],"id":1798,"nodeType":"InlineAssembly","src":"963:802:17"},{"condition":{"id":1800,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"1775:8:17","subExpression":{"id":1799,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1796,"src":"1776:7:17","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1806,"nodeType":"IfStatement","src":"1771:56:17","trueBody":{"errorCall":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":1801,"name":"IAlgebraPoolErrors","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1269,"src":"1792:18:17","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPoolErrors_$1269_$","typeString":"type(contract IAlgebraPoolErrors)"}},"id":1803,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1811:14:17","memberName":"transferFailed","nodeType":"MemberAccess","referencedDeclaration":1262,"src":"1792:33:17","typeDescriptions":{"typeIdentifier":"t_function_error_pure$__$returns$__$","typeString":"function () pure"}},"id":1804,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1792:35:17","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1805,"nodeType":"RevertStatement","src":"1785:42:17"}}]},"documentation":{"id":1786,"nodeType":"StructuredDocumentation","src":"546:316:17","text":"@notice Transfers tokens to a recipient\n @dev Calls transfer on token contract, errors with transferFailed() if transfer fails\n @param token The contract address of the token which will be transferred\n @param to The recipient of the transfer\n @param amount The amount of the token to transfer"},"id":1808,"implemented":true,"kind":"function","modifiers":[],"name":"safeTransfer","nameLocation":"874:12:17","nodeType":"FunctionDefinition","parameters":{"id":1793,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1788,"mutability":"mutable","name":"token","nameLocation":"895:5:17","nodeType":"VariableDeclaration","scope":1808,"src":"887:13:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1787,"name":"address","nodeType":"ElementaryTypeName","src":"887:7:17","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1790,"mutability":"mutable","name":"to","nameLocation":"910:2:17","nodeType":"VariableDeclaration","scope":1808,"src":"902:10:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1789,"name":"address","nodeType":"ElementaryTypeName","src":"902:7:17","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":1792,"mutability":"mutable","name":"amount","nameLocation":"922:6:17","nodeType":"VariableDeclaration","scope":1808,"src":"914:14:17","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1791,"name":"uint256","nodeType":"ElementaryTypeName","src":"914:7:17","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"886:43:17"},"returnParameters":{"id":1794,"nodeType":"ParameterList","parameters":[],"src":"939:0:17"},"scope":1809,"src":"865:967:17","stateMutability":"nonpayable","virtual":false,"visibility":"internal"}],"scope":1810,"src":"521:1313:17","usedErrors":[],"usedEvents":[]}],"src":"32:1803:17"},"id":17},"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol":{"ast":{"absolutePath":"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol","exportedSymbols":{"AddressUpgradeable":[2308],"Initializable":[1978]},"id":1979,"license":"MIT","nodeType":"SourceUnit","nodes":[{"id":1811,"literals":["solidity","^","0.8",".2"],"nodeType":"PragmaDirective","src":"113:23:18"},{"absolutePath":"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol","file":"../../utils/AddressUpgradeable.sol","id":1812,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":1979,"sourceUnit":2309,"src":"138:44:18","symbolAliases":[],"unitAlias":""},{"abstract":true,"baseContracts":[],"canonicalName":"Initializable","contractDependencies":[],"contractKind":"contract","documentation":{"id":1813,"nodeType":"StructuredDocumentation","src":"184:2209:18","text":" @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n case an upgrade adds a module that needs to be initialized.\n For example:\n [.hljs-theme-light.nopadding]\n ```solidity\n contract MyToken is ERC20Upgradeable {\n     function initialize() initializer public {\n         __ERC20_init(\"MyToken\", \"MTK\");\n     }\n }\n contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n     function initializeV2() reinitializer(2) public {\n         __ERC20Permit_init(\"MyToken\");\n     }\n }\n ```\n TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n [CAUTION]\n ====\n Avoid leaving a contract uninitialized.\n An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n [.hljs-theme-light.nopadding]\n ```\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n     _disableInitializers();\n }\n ```\n ===="},"fullyImplemented":true,"id":1978,"linearizedBaseContracts":[1978],"name":"Initializable","nameLocation":"2412:13:18","nodeType":"ContractDefinition","nodes":[{"constant":false,"documentation":{"id":1814,"nodeType":"StructuredDocumentation","src":"2432:109:18","text":" @dev Indicates that the contract has been initialized.\n @custom:oz-retyped-from bool"},"id":1816,"mutability":"mutable","name":"_initialized","nameLocation":"2560:12:18","nodeType":"VariableDeclaration","scope":1978,"src":"2546:26:18","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1815,"name":"uint8","nodeType":"ElementaryTypeName","src":"2546:5:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"private"},{"constant":false,"documentation":{"id":1817,"nodeType":"StructuredDocumentation","src":"2579:91:18","text":" @dev Indicates that the contract is in the process of being initialized."},"id":1819,"mutability":"mutable","name":"_initializing","nameLocation":"2688:13:18","nodeType":"VariableDeclaration","scope":1978,"src":"2675:26:18","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1818,"name":"bool","nodeType":"ElementaryTypeName","src":"2675:4:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"private"},{"anonymous":false,"documentation":{"id":1820,"nodeType":"StructuredDocumentation","src":"2708:90:18","text":" @dev Triggered when the contract has been initialized or reinitialized."},"eventSelector":"7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498","id":1824,"name":"Initialized","nameLocation":"2809:11:18","nodeType":"EventDefinition","parameters":{"id":1823,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1822,"indexed":false,"mutability":"mutable","name":"version","nameLocation":"2827:7:18","nodeType":"VariableDeclaration","scope":1824,"src":"2821:13:18","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1821,"name":"uint8","nodeType":"ElementaryTypeName","src":"2821:5:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"2820:15:18"},"src":"2803:33:18"},{"body":{"id":1879,"nodeType":"Block","src":"3269:483:18","statements":[{"assignments":[1828],"declarations":[{"constant":false,"id":1828,"mutability":"mutable","name":"isTopLevelCall","nameLocation":"3284:14:18","nodeType":"VariableDeclaration","scope":1879,"src":"3279:19:18","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1827,"name":"bool","nodeType":"ElementaryTypeName","src":"3279:4:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"id":1831,"initialValue":{"id":1830,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"3301:14:18","subExpression":{"id":1829,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1819,"src":"3302:13:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"VariableDeclarationStatement","src":"3279:36:18"},{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":1852,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":1837,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1833,"name":"isTopLevelCall","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1828,"src":"3347:14:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"&&","rightExpression":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":1836,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1834,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1816,"src":"3365:12:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"hexValue":"31","id":1835,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3380:1:18","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"src":"3365:16:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"3347:34:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"id":1838,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"3346:36:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"components":[{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":1850,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1846,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"3387:45:18","subExpression":{"arguments":[{"arguments":[{"id":1843,"name":"this","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-28,"src":"3426:4:18","typeDescriptions":{"typeIdentifier":"t_contract$_Initializable_$1978","typeString":"contract Initializable"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_contract$_Initializable_$1978","typeString":"contract Initializable"}],"id":1842,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"3418:7:18","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":1841,"name":"address","nodeType":"ElementaryTypeName","src":"3418:7:18","typeDescriptions":{}}},"id":1844,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3418:13:18","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"expression":{"id":1839,"name":"AddressUpgradeable","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2308,"src":"3388:18:18","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_AddressUpgradeable_$2308_$","typeString":"type(library AddressUpgradeable)"}},"id":1840,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"3407:10:18","memberName":"isContract","nodeType":"MemberAccess","referencedDeclaration":1996,"src":"3388:29:18","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_address_$returns$_t_bool_$","typeString":"function (address) view returns (bool)"}},"id":1845,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3388:44:18","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"&&","rightExpression":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":1849,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1847,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1816,"src":"3436:12:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"hexValue":"31","id":1848,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3452:1:18","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"src":"3436:17:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"3387:66:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"id":1851,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"3386:68:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"3346:108:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564","id":1853,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"3468:48:18","typeDescriptions":{"typeIdentifier":"t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759","typeString":"literal_string \"Initializable: contract is already initialized\""},"value":"Initializable: contract is already initialized"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759","typeString":"literal_string \"Initializable: contract is already initialized\""}],"id":1832,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"3325:7:18","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1854,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3325:201:18","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1855,"nodeType":"ExpressionStatement","src":"3325:201:18"},{"expression":{"id":1858,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1856,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1816,"src":"3536:12:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"31","id":1857,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3551:1:18","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"},"src":"3536:16:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"id":1859,"nodeType":"ExpressionStatement","src":"3536:16:18"},{"condition":{"id":1860,"name":"isTopLevelCall","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1828,"src":"3566:14:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1866,"nodeType":"IfStatement","src":"3562:65:18","trueBody":{"id":1865,"nodeType":"Block","src":"3582:45:18","statements":[{"expression":{"id":1863,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1861,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1819,"src":"3596:13:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"74727565","id":1862,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"3612:4:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"true"},"src":"3596:20:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1864,"nodeType":"ExpressionStatement","src":"3596:20:18"}]}},{"id":1867,"nodeType":"PlaceholderStatement","src":"3636:1:18"},{"condition":{"id":1868,"name":"isTopLevelCall","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1828,"src":"3651:14:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1878,"nodeType":"IfStatement","src":"3647:99:18","trueBody":{"id":1877,"nodeType":"Block","src":"3667:79:18","statements":[{"expression":{"id":1871,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1869,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1819,"src":"3681:13:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"66616c7365","id":1870,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"3697:5:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"false"},"src":"3681:21:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1872,"nodeType":"ExpressionStatement","src":"3681:21:18"},{"eventCall":{"arguments":[{"hexValue":"31","id":1874,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3733:1:18","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"}],"id":1873,"name":"Initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1824,"src":"3721:11:18","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_uint8_$returns$__$","typeString":"function (uint8)"}},"id":1875,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3721:14:18","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1876,"nodeType":"EmitStatement","src":"3716:19:18"}]}}]},"documentation":{"id":1825,"nodeType":"StructuredDocumentation","src":"2842:399:18","text":" @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n `onlyInitializing` functions can be used to initialize parent contracts.\n Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\n constructor.\n Emits an {Initialized} event."},"id":1880,"name":"initializer","nameLocation":"3255:11:18","nodeType":"ModifierDefinition","parameters":{"id":1826,"nodeType":"ParameterList","parameters":[],"src":"3266:2:18"},"src":"3246:506:18","virtual":false,"visibility":"internal"},{"body":{"id":1912,"nodeType":"Block","src":"4863:255:18","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":1891,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1887,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"4881:14:18","subExpression":{"id":1886,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1819,"src":"4882:13:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"&&","rightExpression":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":1890,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1888,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1816,"src":"4899:12:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"id":1889,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1883,"src":"4914:7:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"4899:22:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"4881:40:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564","id":1892,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"4923:48:18","typeDescriptions":{"typeIdentifier":"t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759","typeString":"literal_string \"Initializable: contract is already initialized\""},"value":"Initializable: contract is already initialized"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759","typeString":"literal_string \"Initializable: contract is already initialized\""}],"id":1885,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"4873:7:18","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1893,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4873:99:18","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1894,"nodeType":"ExpressionStatement","src":"4873:99:18"},{"expression":{"id":1897,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1895,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1816,"src":"4982:12:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":1896,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1883,"src":"4997:7:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"4982:22:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"id":1898,"nodeType":"ExpressionStatement","src":"4982:22:18"},{"expression":{"id":1901,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1899,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1819,"src":"5014:13:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"74727565","id":1900,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"5030:4:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"true"},"src":"5014:20:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1902,"nodeType":"ExpressionStatement","src":"5014:20:18"},{"id":1903,"nodeType":"PlaceholderStatement","src":"5044:1:18"},{"expression":{"id":1906,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1904,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1819,"src":"5055:13:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"hexValue":"66616c7365","id":1905,"isConstant":false,"isLValue":false,"isPure":true,"kind":"bool","lValueRequested":false,"nodeType":"Literal","src":"5071:5:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"value":"false"},"src":"5055:21:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1907,"nodeType":"ExpressionStatement","src":"5055:21:18"},{"eventCall":{"arguments":[{"id":1909,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1883,"src":"5103:7:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint8","typeString":"uint8"}],"id":1908,"name":"Initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1824,"src":"5091:11:18","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_uint8_$returns$__$","typeString":"function (uint8)"}},"id":1910,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5091:20:18","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1911,"nodeType":"EmitStatement","src":"5086:25:18"}]},"documentation":{"id":1881,"nodeType":"StructuredDocumentation","src":"3758:1062:18","text":" @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n used to initialize parent contracts.\n A reinitializer may be used after the original initialization step. This is essential to configure modules that\n are added through upgrades and that require initialization.\n When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n cannot be nested. If one is invoked in the context of another, execution will revert.\n Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n a contract, executing them in the right order is up to the developer or operator.\n WARNING: setting the version to 255 will prevent any future reinitialization.\n Emits an {Initialized} event."},"id":1913,"name":"reinitializer","nameLocation":"4834:13:18","nodeType":"ModifierDefinition","parameters":{"id":1884,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1883,"mutability":"mutable","name":"version","nameLocation":"4854:7:18","nodeType":"VariableDeclaration","scope":1913,"src":"4848:13:18","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1882,"name":"uint8","nodeType":"ElementaryTypeName","src":"4848:5:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"4847:15:18"},"src":"4825:293:18","virtual":false,"visibility":"internal"},{"body":{"id":1922,"nodeType":"Block","src":"5356:97:18","statements":[{"expression":{"arguments":[{"id":1917,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1819,"src":"5374:13:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"496e697469616c697a61626c653a20636f6e7472616374206973206e6f7420696e697469616c697a696e67","id":1918,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"5389:45:18","typeDescriptions":{"typeIdentifier":"t_stringliteral_d688db918bb9dd50354922faa108595679886fe9ff08046ad1ffe30aaea55f8b","typeString":"literal_string \"Initializable: contract is not initializing\""},"value":"Initializable: contract is not initializing"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_d688db918bb9dd50354922faa108595679886fe9ff08046ad1ffe30aaea55f8b","typeString":"literal_string \"Initializable: contract is not initializing\""}],"id":1916,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"5366:7:18","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1919,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5366:69:18","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1920,"nodeType":"ExpressionStatement","src":"5366:69:18"},{"id":1921,"nodeType":"PlaceholderStatement","src":"5445:1:18"}]},"documentation":{"id":1914,"nodeType":"StructuredDocumentation","src":"5124:199:18","text":" @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n {initializer} and {reinitializer} modifiers, directly or indirectly."},"id":1923,"name":"onlyInitializing","nameLocation":"5337:16:18","nodeType":"ModifierDefinition","parameters":{"id":1915,"nodeType":"ParameterList","parameters":[],"src":"5353:2:18"},"src":"5328:125:18","virtual":false,"visibility":"internal"},{"body":{"id":1958,"nodeType":"Block","src":"5988:231:18","statements":[{"expression":{"arguments":[{"id":1929,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"6006:14:18","subExpression":{"id":1928,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1819,"src":"6007:13:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"496e697469616c697a61626c653a20636f6e747261637420697320696e697469616c697a696e67","id":1930,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"6022:41:18","typeDescriptions":{"typeIdentifier":"t_stringliteral_a53f5879e7518078ff19b2e3d6b41e757a87364ec6872787feb45bfc41131d1a","typeString":"literal_string \"Initializable: contract is initializing\""},"value":"Initializable: contract is initializing"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_a53f5879e7518078ff19b2e3d6b41e757a87364ec6872787feb45bfc41131d1a","typeString":"literal_string \"Initializable: contract is initializing\""}],"id":1927,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"5998:7:18","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":1931,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5998:66:18","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1932,"nodeType":"ExpressionStatement","src":"5998:66:18"},{"condition":{"commonType":{"typeIdentifier":"t_uint8","typeString":"uint8"},"id":1939,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":1933,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1816,"src":"6078:12:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"expression":{"arguments":[{"id":1936,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"6099:5:18","typeDescriptions":{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"},"typeName":{"id":1935,"name":"uint8","nodeType":"ElementaryTypeName","src":"6099:5:18","typeDescriptions":{}}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"}],"id":1934,"name":"type","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-27,"src":"6094:4:18","typeDescriptions":{"typeIdentifier":"t_function_metatype_pure$__$returns$__$","typeString":"function () pure"}},"id":1937,"isConstant":false,"isLValue":false,"isPure":true,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6094:11:18","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_magic_meta_type_t_uint8","typeString":"type(uint8)"}},"id":1938,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"6106:3:18","memberName":"max","nodeType":"MemberAccess","src":"6094:15:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"6078:31:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1957,"nodeType":"IfStatement","src":"6074:139:18","trueBody":{"id":1956,"nodeType":"Block","src":"6111:102:18","statements":[{"expression":{"id":1946,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":1940,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1816,"src":"6125:12:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"expression":{"arguments":[{"id":1943,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"6145:5:18","typeDescriptions":{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"},"typeName":{"id":1942,"name":"uint8","nodeType":"ElementaryTypeName","src":"6145:5:18","typeDescriptions":{}}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"}],"id":1941,"name":"type","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-27,"src":"6140:4:18","typeDescriptions":{"typeIdentifier":"t_function_metatype_pure$__$returns$__$","typeString":"function () pure"}},"id":1944,"isConstant":false,"isLValue":false,"isPure":true,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6140:11:18","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_magic_meta_type_t_uint8","typeString":"type(uint8)"}},"id":1945,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"6152:3:18","memberName":"max","nodeType":"MemberAccess","src":"6140:15:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"src":"6125:30:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"id":1947,"nodeType":"ExpressionStatement","src":"6125:30:18"},{"eventCall":{"arguments":[{"expression":{"arguments":[{"id":1951,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"6191:5:18","typeDescriptions":{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"},"typeName":{"id":1950,"name":"uint8","nodeType":"ElementaryTypeName","src":"6191:5:18","typeDescriptions":{}}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"}],"id":1949,"name":"type","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-27,"src":"6186:4:18","typeDescriptions":{"typeIdentifier":"t_function_metatype_pure$__$returns$__$","typeString":"function () pure"}},"id":1952,"isConstant":false,"isLValue":false,"isPure":true,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6186:11:18","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_magic_meta_type_t_uint8","typeString":"type(uint8)"}},"id":1953,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"6198:3:18","memberName":"max","nodeType":"MemberAccess","src":"6186:15:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint8","typeString":"uint8"}],"id":1948,"name":"Initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1824,"src":"6174:11:18","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_uint8_$returns$__$","typeString":"function (uint8)"}},"id":1954,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6174:28:18","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1955,"nodeType":"EmitStatement","src":"6169:33:18"}]}}]},"documentation":{"id":1924,"nodeType":"StructuredDocumentation","src":"5459:475:18","text":" @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n through proxies.\n Emits an {Initialized} event the first time it is successfully executed."},"id":1959,"implemented":true,"kind":"function","modifiers":[],"name":"_disableInitializers","nameLocation":"5948:20:18","nodeType":"FunctionDefinition","parameters":{"id":1925,"nodeType":"ParameterList","parameters":[],"src":"5968:2:18"},"returnParameters":{"id":1926,"nodeType":"ParameterList","parameters":[],"src":"5988:0:18"},"scope":1978,"src":"5939:280:18","stateMutability":"nonpayable","virtual":true,"visibility":"internal"},{"body":{"id":1967,"nodeType":"Block","src":"6393:36:18","statements":[{"expression":{"id":1965,"name":"_initialized","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1816,"src":"6410:12:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"functionReturnParameters":1964,"id":1966,"nodeType":"Return","src":"6403:19:18"}]},"documentation":{"id":1960,"nodeType":"StructuredDocumentation","src":"6225:99:18","text":" @dev Returns the highest version that has been initialized. See {reinitializer}."},"id":1968,"implemented":true,"kind":"function","modifiers":[],"name":"_getInitializedVersion","nameLocation":"6338:22:18","nodeType":"FunctionDefinition","parameters":{"id":1961,"nodeType":"ParameterList","parameters":[],"src":"6360:2:18"},"returnParameters":{"id":1964,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1963,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1968,"src":"6386:5:18","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":1962,"name":"uint8","nodeType":"ElementaryTypeName","src":"6386:5:18","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"6385:7:18"},"scope":1978,"src":"6329:100:18","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":1976,"nodeType":"Block","src":"6601:37:18","statements":[{"expression":{"id":1974,"name":"_initializing","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1819,"src":"6618:13:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":1973,"id":1975,"nodeType":"Return","src":"6611:20:18"}]},"documentation":{"id":1969,"nodeType":"StructuredDocumentation","src":"6435:105:18","text":" @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}."},"id":1977,"implemented":true,"kind":"function","modifiers":[],"name":"_isInitializing","nameLocation":"6554:15:18","nodeType":"FunctionDefinition","parameters":{"id":1970,"nodeType":"ParameterList","parameters":[],"src":"6569:2:18"},"returnParameters":{"id":1973,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1972,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1977,"src":"6595:4:18","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1971,"name":"bool","nodeType":"ElementaryTypeName","src":"6595:4:18","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"6594:6:18"},"scope":1978,"src":"6545:93:18","stateMutability":"view","virtual":false,"visibility":"internal"}],"scope":1979,"src":"2394:4246:18","usedErrors":[],"usedEvents":[1824]}],"src":"113:6528:18"},"id":18},"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol":{"ast":{"absolutePath":"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol","exportedSymbols":{"AddressUpgradeable":[2308]},"id":2309,"license":"MIT","nodeType":"SourceUnit","nodes":[{"id":1980,"literals":["solidity","^","0.8",".1"],"nodeType":"PragmaDirective","src":"101:23:19"},{"abstract":false,"baseContracts":[],"canonicalName":"AddressUpgradeable","contractDependencies":[],"contractKind":"library","documentation":{"id":1981,"nodeType":"StructuredDocumentation","src":"126:67:19","text":" @dev Collection of functions related to the address type"},"fullyImplemented":true,"id":2308,"linearizedBaseContracts":[2308],"name":"AddressUpgradeable","nameLocation":"202:18:19","nodeType":"ContractDefinition","nodes":[{"body":{"id":1995,"nodeType":"Block","src":"1489:254:19","statements":[{"expression":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1993,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"expression":{"id":1989,"name":"account","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1984,"src":"1713:7:19","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":1990,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1721:4:19","memberName":"code","nodeType":"MemberAccess","src":"1713:12:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1991,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1726:6:19","memberName":"length","nodeType":"MemberAccess","src":"1713:19:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"hexValue":"30","id":1992,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1735:1:19","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"1713:23:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":1988,"id":1994,"nodeType":"Return","src":"1706:30:19"}]},"documentation":{"id":1982,"nodeType":"StructuredDocumentation","src":"227:1191:19","text":" @dev Returns true if `account` is a contract.\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 Among others, `isContract` will return false for the following\n types of addresses:\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 Furthermore, `isContract` will also return true if the target contract within\n the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n which only has an effect at the end of a transaction.\n ====\n [IMPORTANT]\n ====\n You shouldn't rely on `isContract` to protect against flash loan attacks!\n Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n constructor.\n ===="},"id":1996,"implemented":true,"kind":"function","modifiers":[],"name":"isContract","nameLocation":"1432:10:19","nodeType":"FunctionDefinition","parameters":{"id":1985,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1984,"mutability":"mutable","name":"account","nameLocation":"1451:7:19","nodeType":"VariableDeclaration","scope":1996,"src":"1443:15:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":1983,"name":"address","nodeType":"ElementaryTypeName","src":"1443:7:19","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1442:17:19"},"returnParameters":{"id":1988,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1987,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":1996,"src":"1483:4:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1986,"name":"bool","nodeType":"ElementaryTypeName","src":"1483:4:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"}],"src":"1482:6:19"},"scope":2308,"src":"1423:320:19","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":2029,"nodeType":"Block","src":"2729:241:19","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2011,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"arguments":[{"id":2007,"name":"this","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-28,"src":"2755:4:19","typeDescriptions":{"typeIdentifier":"t_contract$_AddressUpgradeable_$2308","typeString":"library AddressUpgradeable"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_contract$_AddressUpgradeable_$2308","typeString":"library AddressUpgradeable"}],"id":2006,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2747:7:19","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":2005,"name":"address","nodeType":"ElementaryTypeName","src":"2747:7:19","typeDescriptions":{}}},"id":2008,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2747:13:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":2009,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2761:7:19","memberName":"balance","nodeType":"MemberAccess","src":"2747:21:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"id":2010,"name":"amount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2001,"src":"2772:6:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2747:31:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"416464726573733a20696e73756666696369656e742062616c616e6365","id":2012,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"2780:31:19","typeDescriptions":{"typeIdentifier":"t_stringliteral_5597a22abd0ef5332f8053862eb236db7590f17e2b93a53f63a103becfb561f9","typeString":"literal_string \"Address: insufficient balance\""},"value":"Address: insufficient balance"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_5597a22abd0ef5332f8053862eb236db7590f17e2b93a53f63a103becfb561f9","typeString":"literal_string \"Address: insufficient balance\""}],"id":2004,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"2739:7:19","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":2013,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2739:73:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2014,"nodeType":"ExpressionStatement","src":"2739:73:19"},{"assignments":[2016,null],"declarations":[{"constant":false,"id":2016,"mutability":"mutable","name":"success","nameLocation":"2829:7:19","nodeType":"VariableDeclaration","scope":2029,"src":"2824:12:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":2015,"name":"bool","nodeType":"ElementaryTypeName","src":"2824:4:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},null],"id":2023,"initialValue":{"arguments":[{"hexValue":"","id":2021,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"2872:2:19","typeDescriptions":{"typeIdentifier":"t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","typeString":"literal_string \"\""},"value":""}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","typeString":"literal_string \"\""}],"expression":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470","typeString":"literal_string \"\""}],"expression":{"id":2017,"name":"recipient","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1999,"src":"2842:9:19","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"id":2018,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2852:4:19","memberName":"call","nodeType":"MemberAccess","src":"2842:14:19","typeDescriptions":{"typeIdentifier":"t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$","typeString":"function (bytes memory) payable returns (bool,bytes memory)"}},"id":2020,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"names":["value"],"nodeType":"FunctionCallOptions","options":[{"id":2019,"name":"amount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2001,"src":"2864:6:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"src":"2842:29:19","typeDescriptions":{"typeIdentifier":"t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$value","typeString":"function (bytes memory) payable returns (bool,bytes memory)"}},"id":2022,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2842:33:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_bool_$_t_bytes_memory_ptr_$","typeString":"tuple(bool,bytes memory)"}},"nodeType":"VariableDeclarationStatement","src":"2823:52:19"},{"expression":{"arguments":[{"id":2025,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2016,"src":"2893:7:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564","id":2026,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"2902:60:19","typeDescriptions":{"typeIdentifier":"t_stringliteral_51ddaa38748c0a1144620fb5bfe8edab31ea437571ad591a7734bbfd0429aeae","typeString":"literal_string \"Address: unable to send value, recipient may have reverted\""},"value":"Address: unable to send value, recipient may have reverted"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_51ddaa38748c0a1144620fb5bfe8edab31ea437571ad591a7734bbfd0429aeae","typeString":"literal_string \"Address: unable to send value, recipient may have reverted\""}],"id":2024,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"2885:7:19","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":2027,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2885:78:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2028,"nodeType":"ExpressionStatement","src":"2885:78:19"}]},"documentation":{"id":1997,"nodeType":"StructuredDocumentation","src":"1749:904:19","text":" @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n `recipient`, forwarding all available gas and reverting on errors.\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 https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]."},"id":2030,"implemented":true,"kind":"function","modifiers":[],"name":"sendValue","nameLocation":"2667:9:19","nodeType":"FunctionDefinition","parameters":{"id":2002,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1999,"mutability":"mutable","name":"recipient","nameLocation":"2693:9:19","nodeType":"VariableDeclaration","scope":2030,"src":"2677:25:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"},"typeName":{"id":1998,"name":"address","nodeType":"ElementaryTypeName","src":"2677:15:19","stateMutability":"payable","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"visibility":"internal"},{"constant":false,"id":2001,"mutability":"mutable","name":"amount","nameLocation":"2712:6:19","nodeType":"VariableDeclaration","scope":2030,"src":"2704:14:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2000,"name":"uint256","nodeType":"ElementaryTypeName","src":"2704:7:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"2676:43:19"},"returnParameters":{"id":2003,"nodeType":"ParameterList","parameters":[],"src":"2729:0:19"},"scope":2308,"src":"2658:312:19","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":2047,"nodeType":"Block","src":"3801:96:19","statements":[{"expression":{"arguments":[{"id":2041,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2033,"src":"3840:6:19","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":2042,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2035,"src":"3848:4:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"hexValue":"30","id":2043,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3854:1:19","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"hexValue":"416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564","id":2044,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"3857:32:19","typeDescriptions":{"typeIdentifier":"t_stringliteral_24d7ab5d382116e64324f19950ca9340b8af1ddeb09a8d026e0a3c6a01dcc9df","typeString":"literal_string \"Address: low-level call failed\""},"value":"Address: low-level call failed"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_stringliteral_24d7ab5d382116e64324f19950ca9340b8af1ddeb09a8d026e0a3c6a01dcc9df","typeString":"literal_string \"Address: low-level call failed\""}],"id":2040,"name":"functionCallWithValue","nodeType":"Identifier","overloadedDeclarations":[2088,2132],"referencedDeclaration":2132,"src":"3818:21:19","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_uint256_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bytes memory,uint256,string memory) returns (bytes memory)"}},"id":2045,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"3818:72:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":2039,"id":2046,"nodeType":"Return","src":"3811:79:19"}]},"documentation":{"id":2031,"nodeType":"StructuredDocumentation","src":"2976:731:19","text":" @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 If `target` reverts with a revert reason, it is bubbled up by this\n function (like regular Solidity function calls).\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 Requirements:\n - `target` must be a contract.\n - calling `target` with `data` must not revert.\n _Available since v3.1._"},"id":2048,"implemented":true,"kind":"function","modifiers":[],"name":"functionCall","nameLocation":"3721:12:19","nodeType":"FunctionDefinition","parameters":{"id":2036,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2033,"mutability":"mutable","name":"target","nameLocation":"3742:6:19","nodeType":"VariableDeclaration","scope":2048,"src":"3734:14:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2032,"name":"address","nodeType":"ElementaryTypeName","src":"3734:7:19","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2035,"mutability":"mutable","name":"data","nameLocation":"3763:4:19","nodeType":"VariableDeclaration","scope":2048,"src":"3750:17:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2034,"name":"bytes","nodeType":"ElementaryTypeName","src":"3750:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"3733:35:19"},"returnParameters":{"id":2039,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2038,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2048,"src":"3787:12:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2037,"name":"bytes","nodeType":"ElementaryTypeName","src":"3787:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"3786:14:19"},"scope":2308,"src":"3712:185:19","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":2067,"nodeType":"Block","src":"4266:76:19","statements":[{"expression":{"arguments":[{"id":2061,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2051,"src":"4305:6:19","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":2062,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2053,"src":"4313:4:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"hexValue":"30","id":2063,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4319:1:19","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},{"id":2064,"name":"errorMessage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2055,"src":"4322:12:19","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"id":2060,"name":"functionCallWithValue","nodeType":"Identifier","overloadedDeclarations":[2088,2132],"referencedDeclaration":2132,"src":"4283:21:19","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_uint256_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bytes memory,uint256,string memory) returns (bytes memory)"}},"id":2065,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4283:52:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":2059,"id":2066,"nodeType":"Return","src":"4276:59:19"}]},"documentation":{"id":2049,"nodeType":"StructuredDocumentation","src":"3903:211:19","text":" @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n `errorMessage` as a fallback revert reason when `target` reverts.\n _Available since v3.1._"},"id":2068,"implemented":true,"kind":"function","modifiers":[],"name":"functionCall","nameLocation":"4128:12:19","nodeType":"FunctionDefinition","parameters":{"id":2056,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2051,"mutability":"mutable","name":"target","nameLocation":"4158:6:19","nodeType":"VariableDeclaration","scope":2068,"src":"4150:14:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2050,"name":"address","nodeType":"ElementaryTypeName","src":"4150:7:19","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2053,"mutability":"mutable","name":"data","nameLocation":"4187:4:19","nodeType":"VariableDeclaration","scope":2068,"src":"4174:17:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2052,"name":"bytes","nodeType":"ElementaryTypeName","src":"4174:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":2055,"mutability":"mutable","name":"errorMessage","nameLocation":"4215:12:19","nodeType":"VariableDeclaration","scope":2068,"src":"4201:26:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":2054,"name":"string","nodeType":"ElementaryTypeName","src":"4201:6:19","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"4140:93:19"},"returnParameters":{"id":2059,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2058,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2068,"src":"4252:12:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2057,"name":"bytes","nodeType":"ElementaryTypeName","src":"4252:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"4251:14:19"},"scope":2308,"src":"4119:223:19","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":2087,"nodeType":"Block","src":"4817:111:19","statements":[{"expression":{"arguments":[{"id":2081,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2071,"src":"4856:6:19","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":2082,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2073,"src":"4864:4:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"id":2083,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2075,"src":"4870:5:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"hexValue":"416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564","id":2084,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"4877:43:19","typeDescriptions":{"typeIdentifier":"t_stringliteral_88a4a0b5e975840320a0475d4027005235904fdb5ece94df156f3d717cb2dbfc","typeString":"literal_string \"Address: low-level call with value failed\""},"value":"Address: low-level call with value failed"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_stringliteral_88a4a0b5e975840320a0475d4027005235904fdb5ece94df156f3d717cb2dbfc","typeString":"literal_string \"Address: low-level call with value failed\""}],"id":2080,"name":"functionCallWithValue","nodeType":"Identifier","overloadedDeclarations":[2088,2132],"referencedDeclaration":2132,"src":"4834:21:19","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_uint256_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bytes memory,uint256,string memory) returns (bytes memory)"}},"id":2085,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"4834:87:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":2079,"id":2086,"nodeType":"Return","src":"4827:94:19"}]},"documentation":{"id":2069,"nodeType":"StructuredDocumentation","src":"4348:351:19","text":" @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n but also transferring `value` wei to `target`.\n Requirements:\n - the calling contract must have an ETH balance of at least `value`.\n - the called Solidity function must be `payable`.\n _Available since v3.1._"},"id":2088,"implemented":true,"kind":"function","modifiers":[],"name":"functionCallWithValue","nameLocation":"4713:21:19","nodeType":"FunctionDefinition","parameters":{"id":2076,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2071,"mutability":"mutable","name":"target","nameLocation":"4743:6:19","nodeType":"VariableDeclaration","scope":2088,"src":"4735:14:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2070,"name":"address","nodeType":"ElementaryTypeName","src":"4735:7:19","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2073,"mutability":"mutable","name":"data","nameLocation":"4764:4:19","nodeType":"VariableDeclaration","scope":2088,"src":"4751:17:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2072,"name":"bytes","nodeType":"ElementaryTypeName","src":"4751:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":2075,"mutability":"mutable","name":"value","nameLocation":"4778:5:19","nodeType":"VariableDeclaration","scope":2088,"src":"4770:13:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2074,"name":"uint256","nodeType":"ElementaryTypeName","src":"4770:7:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"}],"src":"4734:50:19"},"returnParameters":{"id":2079,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2078,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2088,"src":"4803:12:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2077,"name":"bytes","nodeType":"ElementaryTypeName","src":"4803:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"4802:14:19"},"scope":2308,"src":"4704:224:19","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":2131,"nodeType":"Block","src":"5355:267:19","statements":[{"expression":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2109,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"arguments":[{"id":2105,"name":"this","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-28,"src":"5381:4:19","typeDescriptions":{"typeIdentifier":"t_contract$_AddressUpgradeable_$2308","typeString":"library AddressUpgradeable"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_contract$_AddressUpgradeable_$2308","typeString":"library AddressUpgradeable"}],"id":2104,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"5373:7:19","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":{"id":2103,"name":"address","nodeType":"ElementaryTypeName","src":"5373:7:19","typeDescriptions":{}}},"id":2106,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5373:13:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":2107,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"5387:7:19","memberName":"balance","nodeType":"MemberAccess","src":"5373:21:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">=","rightExpression":{"id":2108,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2095,"src":"5398:5:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"5373:30:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c","id":2110,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"5405:40:19","typeDescriptions":{"typeIdentifier":"t_stringliteral_565f1a77334fc4792800921178c71e4521acffab18ff9e7885b49377ee80ab4c","typeString":"literal_string \"Address: insufficient balance for call\""},"value":"Address: insufficient balance for call"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_565f1a77334fc4792800921178c71e4521acffab18ff9e7885b49377ee80ab4c","typeString":"literal_string \"Address: insufficient balance for call\""}],"id":2102,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"5365:7:19","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":2111,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5365:81:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2112,"nodeType":"ExpressionStatement","src":"5365:81:19"},{"assignments":[2114,2116],"declarations":[{"constant":false,"id":2114,"mutability":"mutable","name":"success","nameLocation":"5462:7:19","nodeType":"VariableDeclaration","scope":2131,"src":"5457:12:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":2113,"name":"bool","nodeType":"ElementaryTypeName","src":"5457:4:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":2116,"mutability":"mutable","name":"returndata","nameLocation":"5484:10:19","nodeType":"VariableDeclaration","scope":2131,"src":"5471:23:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2115,"name":"bytes","nodeType":"ElementaryTypeName","src":"5471:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"id":2123,"initialValue":{"arguments":[{"id":2121,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2093,"src":"5524:4:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"expression":{"id":2117,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2091,"src":"5498:6:19","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":2118,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"5505:4:19","memberName":"call","nodeType":"MemberAccess","src":"5498:11:19","typeDescriptions":{"typeIdentifier":"t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$","typeString":"function (bytes memory) payable returns (bool,bytes memory)"}},"id":2120,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"names":["value"],"nodeType":"FunctionCallOptions","options":[{"id":2119,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2095,"src":"5517:5:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"src":"5498:25:19","typeDescriptions":{"typeIdentifier":"t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$value","typeString":"function (bytes memory) payable returns (bool,bytes memory)"}},"id":2122,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5498:31:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_bool_$_t_bytes_memory_ptr_$","typeString":"tuple(bool,bytes memory)"}},"nodeType":"VariableDeclarationStatement","src":"5456:73:19"},{"expression":{"arguments":[{"id":2125,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2091,"src":"5573:6:19","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":2126,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2114,"src":"5581:7:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"id":2127,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2116,"src":"5590:10:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"id":2128,"name":"errorMessage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2097,"src":"5602:12:19","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"id":2124,"name":"verifyCallResultFromTarget","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2263,"src":"5546:26:19","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_address_$_t_bool_$_t_bytes_memory_ptr_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bool,bytes memory,string memory) view returns (bytes memory)"}},"id":2129,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5546:69:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":2101,"id":2130,"nodeType":"Return","src":"5539:76:19"}]},"documentation":{"id":2089,"nodeType":"StructuredDocumentation","src":"4934:237:19","text":" @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n with `errorMessage` as a fallback revert reason when `target` reverts.\n _Available since v3.1._"},"id":2132,"implemented":true,"kind":"function","modifiers":[],"name":"functionCallWithValue","nameLocation":"5185:21:19","nodeType":"FunctionDefinition","parameters":{"id":2098,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2091,"mutability":"mutable","name":"target","nameLocation":"5224:6:19","nodeType":"VariableDeclaration","scope":2132,"src":"5216:14:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2090,"name":"address","nodeType":"ElementaryTypeName","src":"5216:7:19","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2093,"mutability":"mutable","name":"data","nameLocation":"5253:4:19","nodeType":"VariableDeclaration","scope":2132,"src":"5240:17:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2092,"name":"bytes","nodeType":"ElementaryTypeName","src":"5240:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":2095,"mutability":"mutable","name":"value","nameLocation":"5275:5:19","nodeType":"VariableDeclaration","scope":2132,"src":"5267:13:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":2094,"name":"uint256","nodeType":"ElementaryTypeName","src":"5267:7:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"visibility":"internal"},{"constant":false,"id":2097,"mutability":"mutable","name":"errorMessage","nameLocation":"5304:12:19","nodeType":"VariableDeclaration","scope":2132,"src":"5290:26:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":2096,"name":"string","nodeType":"ElementaryTypeName","src":"5290:6:19","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"5206:116:19"},"returnParameters":{"id":2101,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2100,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2132,"src":"5341:12:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2099,"name":"bytes","nodeType":"ElementaryTypeName","src":"5341:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"5340:14:19"},"scope":2308,"src":"5176:446:19","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":2148,"nodeType":"Block","src":"5899:97:19","statements":[{"expression":{"arguments":[{"id":2143,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2135,"src":"5935:6:19","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":2144,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2137,"src":"5943:4:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"hexValue":"416464726573733a206c6f772d6c6576656c207374617469632063616c6c206661696c6564","id":2145,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"5949:39:19","typeDescriptions":{"typeIdentifier":"t_stringliteral_90ec82aa826a536a4cbfae44ecfa384680faa9a4b77344bce96aa761ad904df0","typeString":"literal_string \"Address: low-level static call failed\""},"value":"Address: low-level static call failed"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_stringliteral_90ec82aa826a536a4cbfae44ecfa384680faa9a4b77344bce96aa761ad904df0","typeString":"literal_string \"Address: low-level static call failed\""}],"id":2142,"name":"functionStaticCall","nodeType":"Identifier","overloadedDeclarations":[2149,2178],"referencedDeclaration":2178,"src":"5916:18:19","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_address_$_t_bytes_memory_ptr_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bytes memory,string memory) view returns (bytes memory)"}},"id":2146,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"5916:73:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":2141,"id":2147,"nodeType":"Return","src":"5909:80:19"}]},"documentation":{"id":2133,"nodeType":"StructuredDocumentation","src":"5628:166:19","text":" @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n but performing a static call.\n _Available since v3.3._"},"id":2149,"implemented":true,"kind":"function","modifiers":[],"name":"functionStaticCall","nameLocation":"5808:18:19","nodeType":"FunctionDefinition","parameters":{"id":2138,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2135,"mutability":"mutable","name":"target","nameLocation":"5835:6:19","nodeType":"VariableDeclaration","scope":2149,"src":"5827:14:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2134,"name":"address","nodeType":"ElementaryTypeName","src":"5827:7:19","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2137,"mutability":"mutable","name":"data","nameLocation":"5856:4:19","nodeType":"VariableDeclaration","scope":2149,"src":"5843:17:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2136,"name":"bytes","nodeType":"ElementaryTypeName","src":"5843:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"5826:35:19"},"returnParameters":{"id":2141,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2140,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2149,"src":"5885:12:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2139,"name":"bytes","nodeType":"ElementaryTypeName","src":"5885:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"5884:14:19"},"scope":2308,"src":"5799:197:19","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":2177,"nodeType":"Block","src":"6338:168:19","statements":[{"assignments":[2162,2164],"declarations":[{"constant":false,"id":2162,"mutability":"mutable","name":"success","nameLocation":"6354:7:19","nodeType":"VariableDeclaration","scope":2177,"src":"6349:12:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":2161,"name":"bool","nodeType":"ElementaryTypeName","src":"6349:4:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":2164,"mutability":"mutable","name":"returndata","nameLocation":"6376:10:19","nodeType":"VariableDeclaration","scope":2177,"src":"6363:23:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2163,"name":"bytes","nodeType":"ElementaryTypeName","src":"6363:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"id":2169,"initialValue":{"arguments":[{"id":2167,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2154,"src":"6408:4:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"expression":{"id":2165,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2152,"src":"6390:6:19","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":2166,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"6397:10:19","memberName":"staticcall","nodeType":"MemberAccess","src":"6390:17:19","typeDescriptions":{"typeIdentifier":"t_function_barestaticcall_view$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$","typeString":"function (bytes memory) view returns (bool,bytes memory)"}},"id":2168,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6390:23:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_bool_$_t_bytes_memory_ptr_$","typeString":"tuple(bool,bytes memory)"}},"nodeType":"VariableDeclarationStatement","src":"6348:65:19"},{"expression":{"arguments":[{"id":2171,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2152,"src":"6457:6:19","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":2172,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2162,"src":"6465:7:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"id":2173,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2164,"src":"6474:10:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"id":2174,"name":"errorMessage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2156,"src":"6486:12:19","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"id":2170,"name":"verifyCallResultFromTarget","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2263,"src":"6430:26:19","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_address_$_t_bool_$_t_bytes_memory_ptr_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bool,bytes memory,string memory) view returns (bytes memory)"}},"id":2175,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6430:69:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":2160,"id":2176,"nodeType":"Return","src":"6423:76:19"}]},"documentation":{"id":2150,"nodeType":"StructuredDocumentation","src":"6002:173:19","text":" @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n but performing a static call.\n _Available since v3.3._"},"id":2178,"implemented":true,"kind":"function","modifiers":[],"name":"functionStaticCall","nameLocation":"6189:18:19","nodeType":"FunctionDefinition","parameters":{"id":2157,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2152,"mutability":"mutable","name":"target","nameLocation":"6225:6:19","nodeType":"VariableDeclaration","scope":2178,"src":"6217:14:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2151,"name":"address","nodeType":"ElementaryTypeName","src":"6217:7:19","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2154,"mutability":"mutable","name":"data","nameLocation":"6254:4:19","nodeType":"VariableDeclaration","scope":2178,"src":"6241:17:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2153,"name":"bytes","nodeType":"ElementaryTypeName","src":"6241:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":2156,"mutability":"mutable","name":"errorMessage","nameLocation":"6282:12:19","nodeType":"VariableDeclaration","scope":2178,"src":"6268:26:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":2155,"name":"string","nodeType":"ElementaryTypeName","src":"6268:6:19","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"6207:93:19"},"returnParameters":{"id":2160,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2159,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2178,"src":"6324:12:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2158,"name":"bytes","nodeType":"ElementaryTypeName","src":"6324:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"6323:14:19"},"scope":2308,"src":"6180:326:19","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":2194,"nodeType":"Block","src":"6782:101:19","statements":[{"expression":{"arguments":[{"id":2189,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2181,"src":"6820:6:19","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":2190,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2183,"src":"6828:4:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"hexValue":"416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564","id":2191,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"6834:41:19","typeDescriptions":{"typeIdentifier":"t_stringliteral_9fdcd12e4b726339b32a442b0a448365d5d85c96b2d2cff917b4f66c63110398","typeString":"literal_string \"Address: low-level delegate call failed\""},"value":"Address: low-level delegate call failed"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_stringliteral_9fdcd12e4b726339b32a442b0a448365d5d85c96b2d2cff917b4f66c63110398","typeString":"literal_string \"Address: low-level delegate call failed\""}],"id":2188,"name":"functionDelegateCall","nodeType":"Identifier","overloadedDeclarations":[2195,2224],"referencedDeclaration":2224,"src":"6799:20:19","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bytes memory,string memory) returns (bytes memory)"}},"id":2192,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"6799:77:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":2187,"id":2193,"nodeType":"Return","src":"6792:84:19"}]},"documentation":{"id":2179,"nodeType":"StructuredDocumentation","src":"6512:168:19","text":" @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n but performing a delegate call.\n _Available since v3.4._"},"id":2195,"implemented":true,"kind":"function","modifiers":[],"name":"functionDelegateCall","nameLocation":"6694:20:19","nodeType":"FunctionDefinition","parameters":{"id":2184,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2181,"mutability":"mutable","name":"target","nameLocation":"6723:6:19","nodeType":"VariableDeclaration","scope":2195,"src":"6715:14:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2180,"name":"address","nodeType":"ElementaryTypeName","src":"6715:7:19","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2183,"mutability":"mutable","name":"data","nameLocation":"6744:4:19","nodeType":"VariableDeclaration","scope":2195,"src":"6731:17:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2182,"name":"bytes","nodeType":"ElementaryTypeName","src":"6731:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"6714:35:19"},"returnParameters":{"id":2187,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2186,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2195,"src":"6768:12:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2185,"name":"bytes","nodeType":"ElementaryTypeName","src":"6768:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"6767:14:19"},"scope":2308,"src":"6685:198:19","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":2223,"nodeType":"Block","src":"7224:170:19","statements":[{"assignments":[2208,2210],"declarations":[{"constant":false,"id":2208,"mutability":"mutable","name":"success","nameLocation":"7240:7:19","nodeType":"VariableDeclaration","scope":2223,"src":"7235:12:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":2207,"name":"bool","nodeType":"ElementaryTypeName","src":"7235:4:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":2210,"mutability":"mutable","name":"returndata","nameLocation":"7262:10:19","nodeType":"VariableDeclaration","scope":2223,"src":"7249:23:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2209,"name":"bytes","nodeType":"ElementaryTypeName","src":"7249:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"id":2215,"initialValue":{"arguments":[{"id":2213,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2200,"src":"7296:4:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"expression":{"id":2211,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2198,"src":"7276:6:19","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":2212,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"7283:12:19","memberName":"delegatecall","nodeType":"MemberAccess","src":"7276:19:19","typeDescriptions":{"typeIdentifier":"t_function_baredelegatecall_nonpayable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$","typeString":"function (bytes memory) returns (bool,bytes memory)"}},"id":2214,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"7276:25:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_bool_$_t_bytes_memory_ptr_$","typeString":"tuple(bool,bytes memory)"}},"nodeType":"VariableDeclarationStatement","src":"7234:67:19"},{"expression":{"arguments":[{"id":2217,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2198,"src":"7345:6:19","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":2218,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2208,"src":"7353:7:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"id":2219,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2210,"src":"7362:10:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"id":2220,"name":"errorMessage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2202,"src":"7374:12:19","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"id":2216,"name":"verifyCallResultFromTarget","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2263,"src":"7318:26:19","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_address_$_t_bool_$_t_bytes_memory_ptr_$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bool,bytes memory,string memory) view returns (bytes memory)"}},"id":2221,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"7318:69:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":2206,"id":2222,"nodeType":"Return","src":"7311:76:19"}]},"documentation":{"id":2196,"nodeType":"StructuredDocumentation","src":"6889:175:19","text":" @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n but performing a delegate call.\n _Available since v3.4._"},"id":2224,"implemented":true,"kind":"function","modifiers":[],"name":"functionDelegateCall","nameLocation":"7078:20:19","nodeType":"FunctionDefinition","parameters":{"id":2203,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2198,"mutability":"mutable","name":"target","nameLocation":"7116:6:19","nodeType":"VariableDeclaration","scope":2224,"src":"7108:14:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2197,"name":"address","nodeType":"ElementaryTypeName","src":"7108:7:19","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2200,"mutability":"mutable","name":"data","nameLocation":"7145:4:19","nodeType":"VariableDeclaration","scope":2224,"src":"7132:17:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2199,"name":"bytes","nodeType":"ElementaryTypeName","src":"7132:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":2202,"mutability":"mutable","name":"errorMessage","nameLocation":"7173:12:19","nodeType":"VariableDeclaration","scope":2224,"src":"7159:26:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":2201,"name":"string","nodeType":"ElementaryTypeName","src":"7159:6:19","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"7098:93:19"},"returnParameters":{"id":2206,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2205,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2224,"src":"7210:12:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2204,"name":"bytes","nodeType":"ElementaryTypeName","src":"7210:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"7209:14:19"},"scope":2308,"src":"7069:325:19","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":2262,"nodeType":"Block","src":"7876:434:19","statements":[{"condition":{"id":2238,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2229,"src":"7890:7:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":2260,"nodeType":"Block","src":"8246:58:19","statements":[{"expression":{"arguments":[{"id":2256,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2231,"src":"8268:10:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"id":2257,"name":"errorMessage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2233,"src":"8280:12:19","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"id":2255,"name":"_revert","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2307,"src":"8260:7:19","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_bytes_memory_ptr_$_t_string_memory_ptr_$returns$__$","typeString":"function (bytes memory,string memory) pure"}},"id":2258,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"8260:33:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2259,"nodeType":"ExpressionStatement","src":"8260:33:19"}]},"id":2261,"nodeType":"IfStatement","src":"7886:418:19","trueBody":{"id":2254,"nodeType":"Block","src":"7899:341:19","statements":[{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2242,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":2239,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2231,"src":"7917:10:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":2240,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"7928:6:19","memberName":"length","nodeType":"MemberAccess","src":"7917:17:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"hexValue":"30","id":2241,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"7938:1:19","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"7917:22:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":2251,"nodeType":"IfStatement","src":"7913:286:19","trueBody":{"id":2250,"nodeType":"Block","src":"7941:258:19","statements":[{"expression":{"arguments":[{"arguments":[{"id":2245,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2227,"src":"8143:6:19","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":2244,"name":"isContract","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1996,"src":"8132:10:19","typeDescriptions":{"typeIdentifier":"t_function_internal_view$_t_address_$returns$_t_bool_$","typeString":"function (address) view returns (bool)"}},"id":2246,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"8132:18:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374","id":2247,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"8152:31:19","typeDescriptions":{"typeIdentifier":"t_stringliteral_cc2e4e38850b7c0a3e942cfed89b71c77302df25bcb2ec297a0c4ff9ff6b90ad","typeString":"literal_string \"Address: call to non-contract\""},"value":"Address: call to non-contract"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_cc2e4e38850b7c0a3e942cfed89b71c77302df25bcb2ec297a0c4ff9ff6b90ad","typeString":"literal_string \"Address: call to non-contract\""}],"id":2243,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"8124:7:19","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":2248,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"8124:60:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2249,"nodeType":"ExpressionStatement","src":"8124:60:19"}]}},{"expression":{"id":2252,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2231,"src":"8219:10:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":2237,"id":2253,"nodeType":"Return","src":"8212:17:19"}]}}]},"documentation":{"id":2225,"nodeType":"StructuredDocumentation","src":"7400:277:19","text":" @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n _Available since v4.8._"},"id":2263,"implemented":true,"kind":"function","modifiers":[],"name":"verifyCallResultFromTarget","nameLocation":"7691:26:19","nodeType":"FunctionDefinition","parameters":{"id":2234,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2227,"mutability":"mutable","name":"target","nameLocation":"7735:6:19","nodeType":"VariableDeclaration","scope":2263,"src":"7727:14:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2226,"name":"address","nodeType":"ElementaryTypeName","src":"7727:7:19","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2229,"mutability":"mutable","name":"success","nameLocation":"7756:7:19","nodeType":"VariableDeclaration","scope":2263,"src":"7751:12:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":2228,"name":"bool","nodeType":"ElementaryTypeName","src":"7751:4:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":2231,"mutability":"mutable","name":"returndata","nameLocation":"7786:10:19","nodeType":"VariableDeclaration","scope":2263,"src":"7773:23:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2230,"name":"bytes","nodeType":"ElementaryTypeName","src":"7773:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":2233,"mutability":"mutable","name":"errorMessage","nameLocation":"7820:12:19","nodeType":"VariableDeclaration","scope":2263,"src":"7806:26:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":2232,"name":"string","nodeType":"ElementaryTypeName","src":"7806:6:19","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"7717:121:19"},"returnParameters":{"id":2237,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2236,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2263,"src":"7862:12:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2235,"name":"bytes","nodeType":"ElementaryTypeName","src":"7862:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"7861:14:19"},"scope":2308,"src":"7682:628:19","stateMutability":"view","virtual":false,"visibility":"internal"},{"body":{"id":2286,"nodeType":"Block","src":"8691:135:19","statements":[{"condition":{"id":2275,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2266,"src":"8705:7:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":2284,"nodeType":"Block","src":"8762:58:19","statements":[{"expression":{"arguments":[{"id":2280,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2268,"src":"8784:10:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"id":2281,"name":"errorMessage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2270,"src":"8796:12:19","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"id":2279,"name":"_revert","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2307,"src":"8776:7:19","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_bytes_memory_ptr_$_t_string_memory_ptr_$returns$__$","typeString":"function (bytes memory,string memory) pure"}},"id":2282,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"8776:33:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2283,"nodeType":"ExpressionStatement","src":"8776:33:19"}]},"id":2285,"nodeType":"IfStatement","src":"8701:119:19","trueBody":{"id":2278,"nodeType":"Block","src":"8714:42:19","statements":[{"expression":{"id":2276,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2268,"src":"8735:10:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"functionReturnParameters":2274,"id":2277,"nodeType":"Return","src":"8728:17:19"}]}}]},"documentation":{"id":2264,"nodeType":"StructuredDocumentation","src":"8316:210:19","text":" @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n revert reason or using the provided one.\n _Available since v4.3._"},"id":2287,"implemented":true,"kind":"function","modifiers":[],"name":"verifyCallResult","nameLocation":"8540:16:19","nodeType":"FunctionDefinition","parameters":{"id":2271,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2266,"mutability":"mutable","name":"success","nameLocation":"8571:7:19","nodeType":"VariableDeclaration","scope":2287,"src":"8566:12:19","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":2265,"name":"bool","nodeType":"ElementaryTypeName","src":"8566:4:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":2268,"mutability":"mutable","name":"returndata","nameLocation":"8601:10:19","nodeType":"VariableDeclaration","scope":2287,"src":"8588:23:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2267,"name":"bytes","nodeType":"ElementaryTypeName","src":"8588:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":2270,"mutability":"mutable","name":"errorMessage","nameLocation":"8635:12:19","nodeType":"VariableDeclaration","scope":2287,"src":"8621:26:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":2269,"name":"string","nodeType":"ElementaryTypeName","src":"8621:6:19","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"8556:97:19"},"returnParameters":{"id":2274,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2273,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2287,"src":"8677:12:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2272,"name":"bytes","nodeType":"ElementaryTypeName","src":"8677:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"8676:14:19"},"scope":2308,"src":"8531:295:19","stateMutability":"pure","virtual":false,"visibility":"internal"},{"body":{"id":2306,"nodeType":"Block","src":"8915:457:19","statements":[{"condition":{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2297,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"expression":{"id":2294,"name":"returndata","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2289,"src":"8991:10:19","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":2295,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"9002:6:19","memberName":"length","nodeType":"MemberAccess","src":"8991:17:19","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"hexValue":"30","id":2296,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"9011:1:19","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"8991:21:19","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":2304,"nodeType":"Block","src":"9321:45:19","statements":[{"expression":{"arguments":[{"id":2301,"name":"errorMessage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2291,"src":"9342:12:19","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"id":2300,"name":"revert","nodeType":"Identifier","overloadedDeclarations":[-19,-19],"referencedDeclaration":-19,"src":"9335:6:19","typeDescriptions":{"typeIdentifier":"t_function_revert_pure$_t_string_memory_ptr_$returns$__$","typeString":"function (string memory) pure"}},"id":2302,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"9335:20:19","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2303,"nodeType":"ExpressionStatement","src":"9335:20:19"}]},"id":2305,"nodeType":"IfStatement","src":"8987:379:19","trueBody":{"id":2299,"nodeType":"Block","src":"9014:301:19","statements":[{"AST":{"nodeType":"YulBlock","src":"9172:133:19","statements":[{"nodeType":"YulVariableDeclaration","src":"9190:40:19","value":{"arguments":[{"name":"returndata","nodeType":"YulIdentifier","src":"9219:10:19"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"9213:5:19"},"nodeType":"YulFunctionCall","src":"9213:17:19"},"variables":[{"name":"returndata_size","nodeType":"YulTypedName","src":"9194:15:19","type":""}]},{"expression":{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"9258:2:19","type":"","value":"32"},{"name":"returndata","nodeType":"YulIdentifier","src":"9262:10:19"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9254:3:19"},"nodeType":"YulFunctionCall","src":"9254:19:19"},{"name":"returndata_size","nodeType":"YulIdentifier","src":"9275:15:19"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"9247:6:19"},"nodeType":"YulFunctionCall","src":"9247:44:19"},"nodeType":"YulExpressionStatement","src":"9247:44:19"}]},"documentation":"@solidity memory-safe-assembly","evmVersion":"paris","externalReferences":[{"declaration":2289,"isOffset":false,"isSlot":false,"src":"9219:10:19","valueSize":1},{"declaration":2289,"isOffset":false,"isSlot":false,"src":"9262:10:19","valueSize":1}],"id":2298,"nodeType":"InlineAssembly","src":"9163:142:19"}]}}]},"id":2307,"implemented":true,"kind":"function","modifiers":[],"name":"_revert","nameLocation":"8841:7:19","nodeType":"FunctionDefinition","parameters":{"id":2292,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2289,"mutability":"mutable","name":"returndata","nameLocation":"8862:10:19","nodeType":"VariableDeclaration","scope":2307,"src":"8849:23:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2288,"name":"bytes","nodeType":"ElementaryTypeName","src":"8849:5:19","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"},{"constant":false,"id":2291,"mutability":"mutable","name":"errorMessage","nameLocation":"8888:12:19","nodeType":"VariableDeclaration","scope":2307,"src":"8874:26:19","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":2290,"name":"string","nodeType":"ElementaryTypeName","src":"8874:6:19","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"visibility":"internal"}],"src":"8848:53:19"},"returnParameters":{"id":2293,"nodeType":"ParameterList","parameters":[],"src":"8915:0:19"},"scope":2308,"src":"8832:540:19","stateMutability":"pure","virtual":false,"visibility":"private"}],"scope":2309,"src":"194:9180:19","usedErrors":[],"usedEvents":[]}],"src":"101:9274:19"},"id":19},"contracts/FeeDiscountConnector.sol":{"ast":{"absolutePath":"contracts/FeeDiscountConnector.sol","exportedSymbols":{"BaseConnector":[46],"FeeDiscountConnector":[2440],"FeeDiscountStorage":[2675],"IAlgebraPoolErrors":[1269],"IFeeDiscountPlugin":[2555],"IFeeDiscountPluginImplementation":[2606],"Plugins":[1781]},"id":2441,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":2310,"literals":["solidity","=","0.8",".20"],"nodeType":"PragmaDirective","src":"37:24:20"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","file":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","id":2311,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2441,"sourceUnit":1782,"src":"63:70:20","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/BaseConnector.sol","file":"@cryptoalgebra/abstract-plugin/contracts/BaseConnector.sol","id":2312,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2441,"sourceUnit":47,"src":"134:68:20","symbolAliases":[],"unitAlias":""},{"absolutePath":"contracts/interfaces/IFeeDiscountPlugin.sol","file":"./interfaces/IFeeDiscountPlugin.sol","id":2313,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2441,"sourceUnit":2556,"src":"203:45:20","symbolAliases":[],"unitAlias":""},{"absolutePath":"contracts/interfaces/IFeeDiscountPluginImplementation.sol","file":"./interfaces/IFeeDiscountPluginImplementation.sol","id":2314,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2441,"sourceUnit":2607,"src":"249:59:20","symbolAliases":[],"unitAlias":""},{"absolutePath":"contracts/libraries/FeeDiscountStorage.sol","file":"./libraries/FeeDiscountStorage.sol","id":2315,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2441,"sourceUnit":2676,"src":"309:44:20","symbolAliases":[],"unitAlias":""},{"abstract":true,"baseContracts":[{"baseName":{"id":2317,"name":"IFeeDiscountPlugin","nameLocations":["525:18:20"],"nodeType":"IdentifierPath","referencedDeclaration":2555,"src":"525:18:20"},"id":2318,"nodeType":"InheritanceSpecifier","src":"525:18:20"},{"baseName":{"id":2319,"name":"BaseConnector","nameLocations":["545:13:20"],"nodeType":"IdentifierPath","referencedDeclaration":46,"src":"545:13:20"},"id":2320,"nodeType":"InheritanceSpecifier","src":"545:13:20"}],"canonicalName":"FeeDiscountConnector","contractDependencies":[],"contractKind":"contract","documentation":{"id":2316,"nodeType":"StructuredDocumentation","src":"355:128:20","text":"@title FeeDiscount Connector\n @notice This contract provides delegatecall interface to FeeDiscount plugin implementation"},"fullyImplemented":false,"id":2440,"linearizedBaseContracts":[2440,46,2555],"name":"FeeDiscountConnector","nameLocation":"501:20:20","nodeType":"ContractDefinition","nodes":[{"global":false,"id":2323,"libraryName":{"id":2321,"name":"Plugins","nameLocations":["569:7:20"],"nodeType":"IdentifierPath","referencedDeclaration":1781,"src":"569:7:20"},"nodeType":"UsingForDirective","src":"563:24:20","typeName":{"id":2322,"name":"uint8","nodeType":"ElementaryTypeName","src":"581:5:20","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}},{"constant":true,"id":2326,"mutability":"constant","name":"FEE_DISCOUNT_MODULE_NAME","nameLocation":"616:24:20","nodeType":"VariableDeclaration","scope":2440,"src":"591:73:20","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":2324,"name":"string","nodeType":"ElementaryTypeName","src":"591:6:20","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":{"hexValue":"46656520446973636f756e7420506c7567696e","id":2325,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"643:21:20","typeDescriptions":{"typeIdentifier":"t_stringliteral_1774c92d361783b8b22e33790e5d2371f78b7561e5aea3bcad56f06f06083c7e","typeString":"literal_string \"Fee Discount Plugin\""},"value":"Fee Discount Plugin"},"visibility":"internal"},{"constant":true,"id":2333,"mutability":"constant","name":"FEE_DISCOUNT_PLUGIN_CONFIG","nameLocation":"692:26:20","nodeType":"VariableDeclaration","scope":2440,"src":"668:84:20","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":2327,"name":"uint8","nodeType":"ElementaryTypeName","src":"668:5:20","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"value":{"arguments":[{"expression":{"id":2330,"name":"Plugins","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1781,"src":"727:7:20","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_Plugins_$1781_$","typeString":"type(library Plugins)"}},"id":2331,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"735:16:20","memberName":"BEFORE_SWAP_FLAG","nodeType":"MemberAccess","referencedDeclaration":1745,"src":"727:24:20","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":2329,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"721:5:20","typeDescriptions":{"typeIdentifier":"t_type$_t_uint8_$","typeString":"type(uint8)"},"typeName":{"id":2328,"name":"uint8","nodeType":"ElementaryTypeName","src":"721:5:20","typeDescriptions":{}}},"id":2332,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"721:31:20","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"},{"constant":false,"documentation":{"id":2334,"nodeType":"StructuredDocumentation","src":"757:44:20","text":"@dev changes only on full plugin upgrade"},"id":2336,"mutability":"immutable","name":"feeDiscountImplementation","nameLocation":"831:25:20","nodeType":"VariableDeclaration","scope":2440,"src":"804:52:20","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2335,"name":"address","nodeType":"ElementaryTypeName","src":"804:7:20","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"body":{"id":2345,"nodeType":"Block","src":"909:65:20","statements":[{"expression":{"id":2343,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2341,"name":"feeDiscountImplementation","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2336,"src":"915:25:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":2342,"name":"_feeDiscountImplementation","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2338,"src":"943:26:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"915:54:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":2344,"nodeType":"ExpressionStatement","src":"915:54:20"}]},"id":2346,"implemented":true,"kind":"constructor","modifiers":[],"name":"","nameLocation":"-1:-1:-1","nodeType":"FunctionDefinition","parameters":{"id":2339,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2338,"mutability":"mutable","name":"_feeDiscountImplementation","nameLocation":"881:26:20","nodeType":"VariableDeclaration","scope":2346,"src":"873:34:20","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2337,"name":"address","nodeType":"ElementaryTypeName","src":"873:7:20","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"872:36:20"},"returnParameters":{"id":2340,"nodeType":"ParameterList","parameters":[],"src":"909:0:20"},"scope":2440,"src":"861:113:20","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":2363,"nodeType":"Block","src":"1110:165:20","statements":[{"expression":{"arguments":[{"id":2353,"name":"feeDiscountImplementation","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2336,"src":"1137:25:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"arguments":[{"expression":{"id":2356,"name":"IFeeDiscountPluginImplementation","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2606,"src":"1185:32:20","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IFeeDiscountPluginImplementation_$2606_$","typeString":"type(contract IFeeDiscountPluginImplementation)"}},"id":2357,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1218:21:20","memberName":"initializeFeeDiscount","nodeType":"MemberAccess","referencedDeclaration":2584,"src":"1185:54:20","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$returns$__$","typeString":"function IFeeDiscountPluginImplementation.initializeFeeDiscount(address)"}},{"components":[{"id":2358,"name":"_feeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2349,"src":"1242:20:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"id":2359,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1241:22:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$returns$__$","typeString":"function IFeeDiscountPluginImplementation.initializeFeeDiscount(address)"},{"typeIdentifier":"t_address","typeString":"address"}],"expression":{"id":2354,"name":"abi","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-1,"src":"1170:3:20","typeDescriptions":{"typeIdentifier":"t_magic_abi","typeString":"abi"}},"id":2355,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1174:10:20","memberName":"encodeCall","nodeType":"MemberAccess","src":"1170:14:20","typeDescriptions":{"typeIdentifier":"t_function_abiencodecall_pure$__$returns$_t_bytes_memory_ptr_$","typeString":"function () pure returns (bytes memory)"}},"id":2360,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1170:94:20","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":2352,"name":"_delegateCall","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":41,"src":"1116:13:20","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bytes memory) returns (bytes memory)"}},"id":2361,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1116:154:20","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":2362,"nodeType":"ExpressionStatement","src":"1116:154:20"}]},"documentation":{"id":2347,"nodeType":"StructuredDocumentation","src":"978:58:20","text":"@notice Initialize FeeDiscount plugin via delegatecall"},"id":2364,"implemented":true,"kind":"function","modifiers":[],"name":"_initializeFeeDiscount","nameLocation":"1048:22:20","nodeType":"FunctionDefinition","parameters":{"id":2350,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2349,"mutability":"mutable","name":"_feeDiscountRegistry","nameLocation":"1079:20:20","nodeType":"VariableDeclaration","scope":2364,"src":"1071:28:20","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2348,"name":"address","nodeType":"ElementaryTypeName","src":"1071:7:20","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1070:30:20"},"returnParameters":{"id":2351,"nodeType":"ParameterList","parameters":[],"src":"1110:0:20"},"scope":2440,"src":"1039:236:20","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"body":{"id":2399,"nodeType":"Block","src":"1422:226:20","statements":[{"assignments":[2377],"declarations":[{"constant":false,"id":2377,"mutability":"mutable","name":"returnData","nameLocation":"1441:10:20","nodeType":"VariableDeclaration","scope":2399,"src":"1428:23:20","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":2376,"name":"bytes","nodeType":"ElementaryTypeName","src":"1428:5:20","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"id":2390,"initialValue":{"arguments":[{"id":2379,"name":"feeDiscountImplementation","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2336,"src":"1475:25:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"arguments":[{"expression":{"id":2382,"name":"IFeeDiscountPluginImplementation","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2606,"src":"1523:32:20","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IFeeDiscountPluginImplementation_$2606_$","typeString":"type(contract IFeeDiscountPluginImplementation)"}},"id":2383,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1556:16:20","memberName":"applyFeeDiscount","nodeType":"MemberAccess","referencedDeclaration":2605,"src":"1523:49:20","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_uint24_$returns$_t_uint24_$","typeString":"function IFeeDiscountPluginImplementation.applyFeeDiscount(address,address,uint24) returns (uint24)"}},{"components":[{"id":2384,"name":"user","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2367,"src":"1575:4:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":2385,"name":"pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2369,"src":"1581:4:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":2386,"name":"fee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2371,"src":"1587:3:20","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}}],"id":2387,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1574:17:20","typeDescriptions":{"typeIdentifier":"t_tuple$_t_address_$_t_address_$_t_uint24_$","typeString":"tuple(address,address,uint24)"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_uint24_$returns$_t_uint24_$","typeString":"function IFeeDiscountPluginImplementation.applyFeeDiscount(address,address,uint24) returns (uint24)"},{"typeIdentifier":"t_tuple$_t_address_$_t_address_$_t_uint24_$","typeString":"tuple(address,address,uint24)"}],"expression":{"id":2380,"name":"abi","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-1,"src":"1508:3:20","typeDescriptions":{"typeIdentifier":"t_magic_abi","typeString":"abi"}},"id":2381,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1512:10:20","memberName":"encodeCall","nodeType":"MemberAccess","src":"1508:14:20","typeDescriptions":{"typeIdentifier":"t_function_abiencodecall_pure$__$returns$_t_bytes_memory_ptr_$","typeString":"function () pure returns (bytes memory)"}},"id":2388,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1508:84:20","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":2378,"name":"_delegateCall","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":41,"src":"1454:13:20","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bytes memory) returns (bytes memory)"}},"id":2389,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1454:144:20","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"nodeType":"VariableDeclarationStatement","src":"1428:170:20"},{"expression":{"arguments":[{"id":2393,"name":"returnData","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2377,"src":"1622:10:20","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"components":[{"id":2395,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1635:6:20","typeDescriptions":{"typeIdentifier":"t_type$_t_uint24_$","typeString":"type(uint24)"},"typeName":{"id":2394,"name":"uint24","nodeType":"ElementaryTypeName","src":"1635:6:20","typeDescriptions":{}}}],"id":2396,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"TupleExpression","src":"1634:8:20","typeDescriptions":{"typeIdentifier":"t_type$_t_uint24_$","typeString":"type(uint24)"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_type$_t_uint24_$","typeString":"type(uint24)"}],"expression":{"id":2391,"name":"abi","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-1,"src":"1611:3:20","typeDescriptions":{"typeIdentifier":"t_magic_abi","typeString":"abi"}},"id":2392,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1615:6:20","memberName":"decode","nodeType":"MemberAccess","src":"1611:10:20","typeDescriptions":{"typeIdentifier":"t_function_abidecode_pure$__$returns$__$","typeString":"function () pure"}},"id":2397,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1611:32:20","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"functionReturnParameters":2375,"id":2398,"nodeType":"Return","src":"1604:39:20"}]},"documentation":{"id":2365,"nodeType":"StructuredDocumentation","src":"1279:47:20","text":"@notice Apply fee discount via delegatecall"},"id":2400,"implemented":true,"kind":"function","modifiers":[],"name":"_applyFeeDiscount","nameLocation":"1338:17:20","nodeType":"FunctionDefinition","parameters":{"id":2372,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2367,"mutability":"mutable","name":"user","nameLocation":"1364:4:20","nodeType":"VariableDeclaration","scope":2400,"src":"1356:12:20","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2366,"name":"address","nodeType":"ElementaryTypeName","src":"1356:7:20","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2369,"mutability":"mutable","name":"pool","nameLocation":"1378:4:20","nodeType":"VariableDeclaration","scope":2400,"src":"1370:12:20","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2368,"name":"address","nodeType":"ElementaryTypeName","src":"1370:7:20","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2371,"mutability":"mutable","name":"fee","nameLocation":"1391:3:20","nodeType":"VariableDeclaration","scope":2400,"src":"1384:10:20","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":2370,"name":"uint24","nodeType":"ElementaryTypeName","src":"1384:6:20","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"1355:40:20"},"returnParameters":{"id":2375,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2374,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2400,"src":"1414:6:20","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":2373,"name":"uint24","nodeType":"ElementaryTypeName","src":"1414:6:20","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"1413:8:20"},"scope":2440,"src":"1329:319:20","stateMutability":"nonpayable","virtual":false,"visibility":"internal"},{"baseFunctions":[2545],"body":{"id":2425,"nodeType":"Block","src":"1815:194:20","statements":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"id":2407,"name":"_authorize","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":45,"src":"1821:10:20","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$__$","typeString":"function () view"}},"id":2408,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1821:12:20","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2409,"nodeType":"ExpressionStatement","src":"1821:12:20"},{"expression":{"arguments":[{"id":2411,"name":"feeDiscountImplementation","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2336,"src":"1853:25:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"arguments":[{"expression":{"id":2414,"name":"IFeeDiscountPluginImplementation","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2606,"src":"1895:32:20","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IFeeDiscountPluginImplementation_$2606_$","typeString":"type(contract IFeeDiscountPluginImplementation)"}},"id":2415,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1928:22:20","memberName":"setFeeDiscountRegistry","nodeType":"MemberAccess","referencedDeclaration":2589,"src":"1895:55:20","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$returns$__$","typeString":"function IFeeDiscountPluginImplementation.setFeeDiscountRegistry(address)"}},{"components":[{"id":2416,"name":"registry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2403,"src":"1953:8:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"id":2417,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1952:10:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$returns$__$","typeString":"function IFeeDiscountPluginImplementation.setFeeDiscountRegistry(address)"},{"typeIdentifier":"t_address","typeString":"address"}],"expression":{"id":2412,"name":"abi","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-1,"src":"1880:3:20","typeDescriptions":{"typeIdentifier":"t_magic_abi","typeString":"abi"}},"id":2413,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1884:10:20","memberName":"encodeCall","nodeType":"MemberAccess","src":"1880:14:20","typeDescriptions":{"typeIdentifier":"t_function_abiencodecall_pure$__$returns$_t_bytes_memory_ptr_$","typeString":"function () pure returns (bytes memory)"}},"id":2418,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1880:83:20","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":2410,"name":"_delegateCall","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":41,"src":"1839:13:20","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_bytes_memory_ptr_$returns$_t_bytes_memory_ptr_$","typeString":"function (address,bytes memory) returns (bytes memory)"}},"id":2419,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1839:125:20","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":2420,"nodeType":"ExpressionStatement","src":"1839:125:20"},{"eventCall":{"arguments":[{"id":2422,"name":"registry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2403,"src":"1995:8:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":2421,"name":"FeeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2554,"src":"1975:19:20","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_address_$returns$__$","typeString":"function (address)"}},"id":2423,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1975:29:20","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2424,"nodeType":"EmitStatement","src":"1970:34:20"}]},"documentation":{"id":2401,"nodeType":"StructuredDocumentation","src":"1710:34:20","text":"@inheritdoc IFeeDiscountPlugin"},"functionSelector":"c3da7978","id":2426,"implemented":true,"kind":"function","modifiers":[],"name":"setFeeDiscountRegistry","nameLocation":"1756:22:20","nodeType":"FunctionDefinition","overrides":{"id":2405,"nodeType":"OverrideSpecifier","overrides":[],"src":"1806:8:20"},"parameters":{"id":2404,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2403,"mutability":"mutable","name":"registry","nameLocation":"1787:8:20","nodeType":"VariableDeclaration","scope":2426,"src":"1779:16:20","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2402,"name":"address","nodeType":"ElementaryTypeName","src":"1779:7:20","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1778:18:20"},"returnParameters":{"id":2406,"nodeType":"ParameterList","parameters":[],"src":"1815:0:20"},"scope":2440,"src":"1747:262:20","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[2550],"body":{"id":2438,"nodeType":"Block","src":"2122:65:20","statements":[{"expression":{"expression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":2433,"name":"FeeDiscountStorage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2675,"src":"2135:18:20","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_FeeDiscountStorage_$2675_$","typeString":"type(library FeeDiscountStorage)"}},"id":2434,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2154:6:20","memberName":"layout","nodeType":"MemberAccess","referencedDeclaration":2674,"src":"2135:25:20","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$__$returns$_t_struct$_Layout_$2662_storage_ptr_$","typeString":"function () pure returns (struct FeeDiscountStorage.Layout storage pointer)"}},"id":2435,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2135:27:20","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_Layout_$2662_storage_ptr","typeString":"struct FeeDiscountStorage.Layout storage pointer"}},"id":2436,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"2163:19:20","memberName":"feeDiscountRegistry","nodeType":"MemberAccess","referencedDeclaration":2661,"src":"2135:47:20","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"functionReturnParameters":2432,"id":2437,"nodeType":"Return","src":"2128:54:20"}]},"documentation":{"id":2427,"nodeType":"StructuredDocumentation","src":"2013:34:20","text":"@inheritdoc IFeeDiscountPlugin"},"functionSelector":"f20cdc1a","id":2439,"implemented":true,"kind":"function","modifiers":[],"name":"feeDiscountRegistry","nameLocation":"2059:19:20","nodeType":"FunctionDefinition","overrides":{"id":2429,"nodeType":"OverrideSpecifier","overrides":[],"src":"2095:8:20"},"parameters":{"id":2428,"nodeType":"ParameterList","parameters":[],"src":"2078:2:20"},"returnParameters":{"id":2432,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2431,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2439,"src":"2113:7:20","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2430,"name":"address","nodeType":"ElementaryTypeName","src":"2113:7:20","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"2112:9:20"},"scope":2440,"src":"2050:137:20","stateMutability":"view","virtual":false,"visibility":"external"}],"scope":2441,"src":"483:1706:20","usedErrors":[4],"usedEvents":[2554]}],"src":"37:2153:20"},"id":20},"contracts/FeeDiscountPluginImplementation.sol":{"ast":{"absolutePath":"contracts/FeeDiscountPluginImplementation.sol","exportedSymbols":{"FeeDiscountPluginImplementation":[2538],"FeeDiscountStorage":[2675],"IFeeDiscountPluginImplementation":[2606],"IFeeDiscountRegistry":[2652]},"id":2539,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":2442,"literals":["solidity","=","0.8",".20"],"nodeType":"PragmaDirective","src":"37:24:21"},{"absolutePath":"contracts/interfaces/IFeeDiscountRegistry.sol","file":"./interfaces/IFeeDiscountRegistry.sol","id":2443,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2539,"sourceUnit":2653,"src":"63:47:21","symbolAliases":[],"unitAlias":""},{"absolutePath":"contracts/interfaces/IFeeDiscountPluginImplementation.sol","file":"./interfaces/IFeeDiscountPluginImplementation.sol","id":2444,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2539,"sourceUnit":2607,"src":"111:59:21","symbolAliases":[],"unitAlias":""},{"absolutePath":"contracts/libraries/FeeDiscountStorage.sol","file":"./libraries/FeeDiscountStorage.sol","id":2445,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2539,"sourceUnit":2676,"src":"171:44:21","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[{"baseName":{"id":2447,"name":"IFeeDiscountPluginImplementation","nameLocations":["493:32:21"],"nodeType":"IdentifierPath","referencedDeclaration":2606,"src":"493:32:21"},"id":2448,"nodeType":"InheritanceSpecifier","src":"493:32:21"}],"canonicalName":"FeeDiscountPluginImplementation","contractDependencies":[],"contractKind":"contract","documentation":{"id":2446,"nodeType":"StructuredDocumentation","src":"217:232:21","text":"@title FeeDiscount Plugin Implementation\n @notice This contract contains logic for FeeDiscount plugin that works with namespaced storage\n @dev Called via delegatecall from FeeDiscountConnector to reduce main contract size"},"fullyImplemented":true,"id":2538,"linearizedBaseContracts":[2538,2606],"name":"FeeDiscountPluginImplementation","nameLocation":"458:31:21","nodeType":"ContractDefinition","nodes":[{"constant":true,"id":2451,"mutability":"constant","name":"FEE_DISCOUNT_DENOMINATOR","nameLocation":"554:24:21","nodeType":"VariableDeclaration","scope":2538,"src":"530:55:21","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":2449,"name":"uint16","nodeType":"ElementaryTypeName","src":"530:6:21","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":{"hexValue":"31303030","id":2450,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"581:4:21","typeDescriptions":{"typeIdentifier":"t_rational_1000_by_1","typeString":"int_const 1000"},"value":"1000"},"visibility":"private"},{"baseFunctions":[2584],"body":{"id":2465,"nodeType":"Block","src":"771:81:21","statements":[{"expression":{"id":2463,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":2457,"name":"FeeDiscountStorage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2675,"src":"777:18:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_FeeDiscountStorage_$2675_$","typeString":"type(library FeeDiscountStorage)"}},"id":2459,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"796:6:21","memberName":"layout","nodeType":"MemberAccess","referencedDeclaration":2674,"src":"777:25:21","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$__$returns$_t_struct$_Layout_$2662_storage_ptr_$","typeString":"function () pure returns (struct FeeDiscountStorage.Layout storage pointer)"}},"id":2460,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"777:27:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_Layout_$2662_storage_ptr","typeString":"struct FeeDiscountStorage.Layout storage pointer"}},"id":2461,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"805:19:21","memberName":"feeDiscountRegistry","nodeType":"MemberAccess","referencedDeclaration":2661,"src":"777:47:21","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":2462,"name":"_feeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2454,"src":"827:20:21","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"777:70:21","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":2464,"nodeType":"ExpressionStatement","src":"777:70:21"}]},"documentation":{"id":2452,"nodeType":"StructuredDocumentation","src":"590:108:21","text":"@notice Initialize FeeDiscount plugin\n @param _feeDiscountRegistry Address of fee discount registry"},"functionSelector":"a9dd77e7","id":2466,"implemented":true,"kind":"function","modifiers":[],"name":"initializeFeeDiscount","nameLocation":"710:21:21","nodeType":"FunctionDefinition","parameters":{"id":2455,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2454,"mutability":"mutable","name":"_feeDiscountRegistry","nameLocation":"740:20:21","nodeType":"VariableDeclaration","scope":2466,"src":"732:28:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2453,"name":"address","nodeType":"ElementaryTypeName","src":"732:7:21","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"731:30:21"},"returnParameters":{"id":2456,"nodeType":"ParameterList","parameters":[],"src":"771:0:21"},"scope":2538,"src":"701:151:21","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[2589],"body":{"id":2480,"nodeType":"Block","src":"1035:81:21","statements":[{"expression":{"id":2478,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"expression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":2472,"name":"FeeDiscountStorage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2675,"src":"1041:18:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_FeeDiscountStorage_$2675_$","typeString":"type(library FeeDiscountStorage)"}},"id":2474,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1060:6:21","memberName":"layout","nodeType":"MemberAccess","referencedDeclaration":2674,"src":"1041:25:21","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$__$returns$_t_struct$_Layout_$2662_storage_ptr_$","typeString":"function () pure returns (struct FeeDiscountStorage.Layout storage pointer)"}},"id":2475,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1041:27:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_Layout_$2662_storage_ptr","typeString":"struct FeeDiscountStorage.Layout storage pointer"}},"id":2476,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"memberLocation":"1069:19:21","memberName":"feeDiscountRegistry","nodeType":"MemberAccess","referencedDeclaration":2661,"src":"1041:47:21","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":2477,"name":"_feeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2469,"src":"1091:20:21","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"1041:70:21","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":2479,"nodeType":"ExpressionStatement","src":"1041:70:21"}]},"documentation":{"id":2467,"nodeType":"StructuredDocumentation","src":"856:105:21","text":"@notice Set fee discount registry\n @param _feeDiscountRegistry New fee discount registry address"},"functionSelector":"c3da7978","id":2481,"implemented":true,"kind":"function","modifiers":[],"name":"setFeeDiscountRegistry","nameLocation":"973:22:21","nodeType":"FunctionDefinition","parameters":{"id":2470,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2469,"mutability":"mutable","name":"_feeDiscountRegistry","nameLocation":"1004:20:21","nodeType":"VariableDeclaration","scope":2481,"src":"996:28:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2468,"name":"address","nodeType":"ElementaryTypeName","src":"996:7:21","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"995:30:21"},"returnParameters":{"id":2471,"nodeType":"ParameterList","parameters":[],"src":"1035:0:21"},"scope":2538,"src":"964:152:21","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[2594],"body":{"id":2492,"nodeType":"Block","src":"1270:65:21","statements":[{"expression":{"expression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":2487,"name":"FeeDiscountStorage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2675,"src":"1283:18:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_FeeDiscountStorage_$2675_$","typeString":"type(library FeeDiscountStorage)"}},"id":2488,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1302:6:21","memberName":"layout","nodeType":"MemberAccess","referencedDeclaration":2674,"src":"1283:25:21","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$__$returns$_t_struct$_Layout_$2662_storage_ptr_$","typeString":"function () pure returns (struct FeeDiscountStorage.Layout storage pointer)"}},"id":2489,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1283:27:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_Layout_$2662_storage_ptr","typeString":"struct FeeDiscountStorage.Layout storage pointer"}},"id":2490,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"1311:19:21","memberName":"feeDiscountRegistry","nodeType":"MemberAccess","referencedDeclaration":2661,"src":"1283:47:21","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"functionReturnParameters":2486,"id":2491,"nodeType":"Return","src":"1276:54:21"}]},"documentation":{"id":2482,"nodeType":"StructuredDocumentation","src":"1120:81:21","text":"@notice Get fee discount registry\n @return Fee discount registry address"},"functionSelector":"6408f820","id":2493,"implemented":true,"kind":"function","modifiers":[],"name":"getFeeDiscountRegistry","nameLocation":"1213:22:21","nodeType":"FunctionDefinition","parameters":{"id":2483,"nodeType":"ParameterList","parameters":[],"src":"1235:2:21"},"returnParameters":{"id":2486,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2485,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2493,"src":"1261:7:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2484,"name":"address","nodeType":"ElementaryTypeName","src":"1261:7:21","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1260:9:21"},"scope":2538,"src":"1204:131:21","stateMutability":"view","virtual":false,"visibility":"external"},{"baseFunctions":[2605],"body":{"id":2536,"nodeType":"Block","src":"1620:237:21","statements":[{"assignments":[2506],"declarations":[{"constant":false,"id":2506,"mutability":"mutable","name":"feeDiscount","nameLocation":"1633:11:21","nodeType":"VariableDeclaration","scope":2536,"src":"1626:18:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":2505,"name":"uint16","nodeType":"ElementaryTypeName","src":"1626:6:21","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"id":2517,"initialValue":{"arguments":[{"id":2514,"name":"user","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2496,"src":"1730:4:21","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":2515,"name":"pool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2498,"src":"1736:4:21","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"}],"expression":{"arguments":[{"expression":{"arguments":[],"expression":{"argumentTypes":[],"expression":{"id":2508,"name":"FeeDiscountStorage","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2675,"src":"1668:18:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_FeeDiscountStorage_$2675_$","typeString":"type(library FeeDiscountStorage)"}},"id":2509,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1687:6:21","memberName":"layout","nodeType":"MemberAccess","referencedDeclaration":2674,"src":"1668:25:21","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$__$returns$_t_struct$_Layout_$2662_storage_ptr_$","typeString":"function () pure returns (struct FeeDiscountStorage.Layout storage pointer)"}},"id":2510,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1668:27:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_struct$_Layout_$2662_storage_ptr","typeString":"struct FeeDiscountStorage.Layout storage pointer"}},"id":2511,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberLocation":"1696:19:21","memberName":"feeDiscountRegistry","nodeType":"MemberAccess","referencedDeclaration":2661,"src":"1668:47:21","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":2507,"name":"IFeeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2652,"src":"1647:20:21","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IFeeDiscountRegistry_$2652_$","typeString":"type(contract IFeeDiscountRegistry)"}},"id":2512,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1647:69:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IFeeDiscountRegistry_$2652","typeString":"contract IFeeDiscountRegistry"}},"id":2513,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"1717:12:21","memberName":"feeDiscounts","nodeType":"MemberAccess","referencedDeclaration":2625,"src":"1647:82:21","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$_t_address_$returns$_t_uint16_$","typeString":"function (address,address) external returns (uint16)"}},"id":2516,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1647:94:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"VariableDeclarationStatement","src":"1626:115:21"},{"expression":{"id":2534,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2518,"name":"updatedFee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2503,"src":"1747:10:21","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2532,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":2529,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"arguments":[{"id":2523,"name":"fee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2500,"src":"1776:3:21","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint24","typeString":"uint24"}],"id":2522,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1768:7:21","typeDescriptions":{"typeIdentifier":"t_type$_t_uint256_$","typeString":"type(uint256)"},"typeName":{"id":2521,"name":"uint256","nodeType":"ElementaryTypeName","src":"1768:7:21","typeDescriptions":{}}},"id":2524,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1768:12:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"*","rightExpression":{"components":[{"commonType":{"typeIdentifier":"t_uint16","typeString":"uint16"},"id":2527,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"id":2525,"name":"FEE_DISCOUNT_DENOMINATOR","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2451,"src":"1784:24:21","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"id":2526,"name":"feeDiscount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2506,"src":"1811:11:21","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"1784:38:21","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}}],"id":2528,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1783:40:21","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"1768:55:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"id":2530,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"1767:57:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"/","rightExpression":{"id":2531,"name":"FEE_DISCOUNT_DENOMINATOR","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2451,"src":"1827:24:21","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"1767:84:21","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":2520,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1760:6:21","typeDescriptions":{"typeIdentifier":"t_type$_t_uint24_$","typeString":"type(uint24)"},"typeName":{"id":2519,"name":"uint24","nodeType":"ElementaryTypeName","src":"1760:6:21","typeDescriptions":{}}},"id":2533,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1760:92:21","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"src":"1747:105:21","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"id":2535,"nodeType":"ExpressionStatement","src":"1747:105:21"}]},"documentation":{"id":2494,"nodeType":"StructuredDocumentation","src":"1339:175:21","text":"@notice Apply fee discount for user\n @param user User address\n @param pool Pool address\n @param fee Original fee\n @return updatedFee Fee after discount"},"functionSelector":"1018860c","id":2537,"implemented":true,"kind":"function","modifiers":[],"name":"applyFeeDiscount","nameLocation":"1526:16:21","nodeType":"FunctionDefinition","parameters":{"id":2501,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2496,"mutability":"mutable","name":"user","nameLocation":"1551:4:21","nodeType":"VariableDeclaration","scope":2537,"src":"1543:12:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2495,"name":"address","nodeType":"ElementaryTypeName","src":"1543:7:21","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2498,"mutability":"mutable","name":"pool","nameLocation":"1565:4:21","nodeType":"VariableDeclaration","scope":2537,"src":"1557:12:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2497,"name":"address","nodeType":"ElementaryTypeName","src":"1557:7:21","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2500,"mutability":"mutable","name":"fee","nameLocation":"1578:3:21","nodeType":"VariableDeclaration","scope":2537,"src":"1571:10:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":2499,"name":"uint24","nodeType":"ElementaryTypeName","src":"1571:6:21","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"1542:40:21"},"returnParameters":{"id":2504,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2503,"mutability":"mutable","name":"updatedFee","nameLocation":"1608:10:21","nodeType":"VariableDeclaration","scope":2537,"src":"1601:17:21","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":2502,"name":"uint24","nodeType":"ElementaryTypeName","src":"1601:6:21","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"1600:19:21"},"scope":2538,"src":"1517:340:21","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":2539,"src":"449:1410:21","usedErrors":[],"usedEvents":[]}],"src":"37:1823:21"},"id":21},"contracts/interfaces/IFeeDiscountPlugin.sol":{"ast":{"absolutePath":"contracts/interfaces/IFeeDiscountPlugin.sol","exportedSymbols":{"IFeeDiscountPlugin":[2555]},"id":2556,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":2540,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:22"},{"abstract":false,"baseContracts":[],"canonicalName":"IFeeDiscountPlugin","contractDependencies":[],"contractKind":"interface","fullyImplemented":false,"id":2555,"linearizedBaseContracts":[2555],"name":"IFeeDiscountPlugin","nameLocation":"81:18:22","nodeType":"ContractDefinition","nodes":[{"functionSelector":"c3da7978","id":2545,"implemented":false,"kind":"function","modifiers":[],"name":"setFeeDiscountRegistry","nameLocation":"113:22:22","nodeType":"FunctionDefinition","parameters":{"id":2543,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2542,"mutability":"mutable","name":"registry","nameLocation":"144:8:22","nodeType":"VariableDeclaration","scope":2545,"src":"136:16:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2541,"name":"address","nodeType":"ElementaryTypeName","src":"136:7:22","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"135:18:22"},"returnParameters":{"id":2544,"nodeType":"ParameterList","parameters":[],"src":"162:0:22"},"scope":2555,"src":"104:59:22","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"functionSelector":"f20cdc1a","id":2550,"implemented":false,"kind":"function","modifiers":[],"name":"feeDiscountRegistry","nameLocation":"176:19:22","nodeType":"FunctionDefinition","parameters":{"id":2546,"nodeType":"ParameterList","parameters":[],"src":"195:2:22"},"returnParameters":{"id":2549,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2548,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2550,"src":"221:7:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2547,"name":"address","nodeType":"ElementaryTypeName","src":"221:7:22","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"220:9:22"},"scope":2555,"src":"167:63:22","stateMutability":"view","virtual":false,"visibility":"external"},{"anonymous":false,"eventSelector":"3b1f0d57f07483280d598ef402c5b2b96be1a42e65b21992bdafea3476b65327","id":2554,"name":"FeeDiscountRegistry","nameLocation":"240:19:22","nodeType":"EventDefinition","parameters":{"id":2553,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2552,"indexed":false,"mutability":"mutable","name":"registry","nameLocation":"268:8:22","nodeType":"VariableDeclaration","scope":2554,"src":"260:16:22","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2551,"name":"address","nodeType":"ElementaryTypeName","src":"260:7:22","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"259:18:22"},"src":"234:44:22"}],"scope":2556,"src":"71:209:22","usedErrors":[],"usedEvents":[2554]}],"src":"45:236:22"},"id":22},"contracts/interfaces/IFeeDiscountPluginFactory.sol":{"ast":{"absolutePath":"contracts/interfaces/IFeeDiscountPluginFactory.sol","exportedSymbols":{"IFeeDiscountPluginFactory":[2576]},"id":2577,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":2557,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:23"},{"abstract":false,"baseContracts":[],"canonicalName":"IFeeDiscountPluginFactory","contractDependencies":[],"contractKind":"interface","documentation":{"id":2558,"nodeType":"StructuredDocumentation","src":"71:59:23","text":"@title The interface for the IFeeDiscountPluginFactory"},"fullyImplemented":false,"id":2576,"linearizedBaseContracts":[2576],"name":"IFeeDiscountPluginFactory","nameLocation":"140:25:23","nodeType":"ContractDefinition","nodes":[{"anonymous":false,"documentation":{"id":2559,"nodeType":"StructuredDocumentation","src":"170:135:23","text":"@notice Emitted when the fee discount registry is changed\n @param newFeeDiscountRegistry The new fee discount registry address"},"eventSelector":"3b1f0d57f07483280d598ef402c5b2b96be1a42e65b21992bdafea3476b65327","id":2563,"name":"FeeDiscountRegistry","nameLocation":"314:19:23","nodeType":"EventDefinition","parameters":{"id":2562,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2561,"indexed":false,"mutability":"mutable","name":"newFeeDiscountRegistry","nameLocation":"342:22:23","nodeType":"VariableDeclaration","scope":2563,"src":"334:30:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2560,"name":"address","nodeType":"ElementaryTypeName","src":"334:7:23","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"333:32:23"},"src":"308:58:23"},{"documentation":{"id":2564,"nodeType":"StructuredDocumentation","src":"370:117:23","text":"@notice Returns the address of the fee discount registry\n @return The fee discount registry contract address"},"functionSelector":"f20cdc1a","id":2569,"implemented":false,"kind":"function","modifiers":[],"name":"feeDiscountRegistry","nameLocation":"499:19:23","nodeType":"FunctionDefinition","parameters":{"id":2565,"nodeType":"ParameterList","parameters":[],"src":"518:2:23"},"returnParameters":{"id":2568,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2567,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2569,"src":"544:7:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2566,"name":"address","nodeType":"ElementaryTypeName","src":"544:7:23","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"543:9:23"},"scope":2576,"src":"490:63:23","stateMutability":"view","virtual":false,"visibility":"external"},{"documentation":{"id":2570,"nodeType":"StructuredDocumentation","src":"557:127:23","text":"@notice Changes the fee discount registry address\n @param newFeeDiscountRegistry The new fee discount registry address"},"functionSelector":"c3da7978","id":2575,"implemented":false,"kind":"function","modifiers":[],"name":"setFeeDiscountRegistry","nameLocation":"696:22:23","nodeType":"FunctionDefinition","parameters":{"id":2573,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2572,"mutability":"mutable","name":"newFeeDiscountRegistry","nameLocation":"727:22:23","nodeType":"VariableDeclaration","scope":2575,"src":"719:30:23","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2571,"name":"address","nodeType":"ElementaryTypeName","src":"719:7:23","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"718:32:23"},"returnParameters":{"id":2574,"nodeType":"ParameterList","parameters":[],"src":"759:0:23"},"scope":2576,"src":"687:73:23","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":2577,"src":"130:632:23","usedErrors":[],"usedEvents":[2563]}],"src":"45:718:23"},"id":23},"contracts/interfaces/IFeeDiscountPluginImplementation.sol":{"ast":{"absolutePath":"contracts/interfaces/IFeeDiscountPluginImplementation.sol","exportedSymbols":{"IFeeDiscountPluginImplementation":[2606]},"id":2607,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":2578,"literals":["solidity","=","0.8",".20"],"nodeType":"PragmaDirective","src":"37:24:24"},{"abstract":false,"baseContracts":[],"canonicalName":"IFeeDiscountPluginImplementation","contractDependencies":[],"contractKind":"interface","documentation":{"id":2579,"nodeType":"StructuredDocumentation","src":"63:187:24","text":"@title IFeeDiscountPluginImplementation\n @notice Interface for FeeDiscount plugin implementation contract\n @dev Used for type-safe delegatecall encoding in FeeDiscountConnector"},"fullyImplemented":false,"id":2606,"linearizedBaseContracts":[2606],"name":"IFeeDiscountPluginImplementation","nameLocation":"260:32:24","nodeType":"ContractDefinition","nodes":[{"functionSelector":"a9dd77e7","id":2584,"implemented":false,"kind":"function","modifiers":[],"name":"initializeFeeDiscount","nameLocation":"306:21:24","nodeType":"FunctionDefinition","parameters":{"id":2582,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2581,"mutability":"mutable","name":"_feeDiscountRegistry","nameLocation":"336:20:24","nodeType":"VariableDeclaration","scope":2584,"src":"328:28:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2580,"name":"address","nodeType":"ElementaryTypeName","src":"328:7:24","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"327:30:24"},"returnParameters":{"id":2583,"nodeType":"ParameterList","parameters":[],"src":"366:0:24"},"scope":2606,"src":"297:70:24","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"functionSelector":"c3da7978","id":2589,"implemented":false,"kind":"function","modifiers":[],"name":"setFeeDiscountRegistry","nameLocation":"379:22:24","nodeType":"FunctionDefinition","parameters":{"id":2587,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2586,"mutability":"mutable","name":"_feeDiscountRegistry","nameLocation":"410:20:24","nodeType":"VariableDeclaration","scope":2589,"src":"402:28:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2585,"name":"address","nodeType":"ElementaryTypeName","src":"402:7:24","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"401:30:24"},"returnParameters":{"id":2588,"nodeType":"ParameterList","parameters":[],"src":"440:0:24"},"scope":2606,"src":"370:71:24","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"functionSelector":"6408f820","id":2594,"implemented":false,"kind":"function","modifiers":[],"name":"getFeeDiscountRegistry","nameLocation":"453:22:24","nodeType":"FunctionDefinition","parameters":{"id":2590,"nodeType":"ParameterList","parameters":[],"src":"475:2:24"},"returnParameters":{"id":2593,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2592,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2594,"src":"501:7:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2591,"name":"address","nodeType":"ElementaryTypeName","src":"501:7:24","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"500:9:24"},"scope":2606,"src":"444:66:24","stateMutability":"view","virtual":false,"visibility":"external"},{"functionSelector":"1018860c","id":2605,"implemented":false,"kind":"function","modifiers":[],"name":"applyFeeDiscount","nameLocation":"522:16:24","nodeType":"FunctionDefinition","parameters":{"id":2601,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2596,"mutability":"mutable","name":"user","nameLocation":"547:4:24","nodeType":"VariableDeclaration","scope":2605,"src":"539:12:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2595,"name":"address","nodeType":"ElementaryTypeName","src":"539:7:24","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2598,"mutability":"mutable","name":"pool","nameLocation":"561:4:24","nodeType":"VariableDeclaration","scope":2605,"src":"553:12:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2597,"name":"address","nodeType":"ElementaryTypeName","src":"553:7:24","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2600,"mutability":"mutable","name":"fee","nameLocation":"574:3:24","nodeType":"VariableDeclaration","scope":2605,"src":"567:10:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":2599,"name":"uint24","nodeType":"ElementaryTypeName","src":"567:6:24","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"538:40:24"},"returnParameters":{"id":2604,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2603,"mutability":"mutable","name":"updatedFee","nameLocation":"604:10:24","nodeType":"VariableDeclaration","scope":2605,"src":"597:17:24","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":2602,"name":"uint24","nodeType":"ElementaryTypeName","src":"597:6:24","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"596:19:24"},"scope":2606,"src":"513:103:24","stateMutability":"nonpayable","virtual":false,"visibility":"external"}],"scope":2607,"src":"250:368:24","usedErrors":[],"usedEvents":[]}],"src":"37:582:24"},"id":24},"contracts/interfaces/IFeeDiscountRegistry.sol":{"ast":{"absolutePath":"contracts/interfaces/IFeeDiscountRegistry.sol","exportedSymbols":{"IFeeDiscountRegistry":[2652]},"id":2653,"license":"GPL-2.0-or-later","nodeType":"SourceUnit","nodes":[{"id":2608,"literals":["solidity",">=","0.5",".0"],"nodeType":"PragmaDirective","src":"45:24:25"},{"abstract":false,"baseContracts":[],"canonicalName":"IFeeDiscountRegistry","contractDependencies":[],"contractKind":"interface","fullyImplemented":false,"id":2652,"linearizedBaseContracts":[2652],"name":"IFeeDiscountRegistry","nameLocation":"81:20:25","nodeType":"ContractDefinition","nodes":[{"anonymous":false,"eventSelector":"7a30dcbbc729b723963056eb5780229274194a05bbe6fe5174b8864d96c37a2c","id":2616,"name":"FeeDiscount","nameLocation":"112:11:25","nodeType":"EventDefinition","parameters":{"id":2615,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2610,"indexed":false,"mutability":"mutable","name":"user","nameLocation":"132:4:25","nodeType":"VariableDeclaration","scope":2616,"src":"124:12:25","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2609,"name":"address","nodeType":"ElementaryTypeName","src":"124:7:25","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2612,"indexed":false,"mutability":"mutable","name":"pool","nameLocation":"146:4:25","nodeType":"VariableDeclaration","scope":2616,"src":"138:12:25","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2611,"name":"address","nodeType":"ElementaryTypeName","src":"138:7:25","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2614,"indexed":false,"mutability":"mutable","name":"newDiscount","nameLocation":"159:11:25","nodeType":"VariableDeclaration","scope":2616,"src":"152:18:25","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":2613,"name":"uint16","nodeType":"ElementaryTypeName","src":"152:6:25","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"123:48:25"},"src":"106:66:25"},{"functionSelector":"1101ce3e","id":2625,"implemented":false,"kind":"function","modifiers":[],"name":"feeDiscounts","nameLocation":"185:12:25","nodeType":"FunctionDefinition","parameters":{"id":2621,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2618,"mutability":"mutable","name":"user","nameLocation":"206:4:25","nodeType":"VariableDeclaration","scope":2625,"src":"198:12:25","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2617,"name":"address","nodeType":"ElementaryTypeName","src":"198:7:25","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2620,"mutability":"mutable","name":"pool","nameLocation":"220:4:25","nodeType":"VariableDeclaration","scope":2625,"src":"212:12:25","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2619,"name":"address","nodeType":"ElementaryTypeName","src":"212:7:25","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"197:28:25"},"returnParameters":{"id":2624,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2623,"mutability":"mutable","name":"feeDiscount","nameLocation":"251:11:25","nodeType":"VariableDeclaration","scope":2625,"src":"244:18:25","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":2622,"name":"uint16","nodeType":"ElementaryTypeName","src":"244:6:25","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"243:20:25"},"scope":2652,"src":"176:88:25","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"functionSelector":"978e13ea","id":2636,"implemented":false,"kind":"function","modifiers":[],"name":"setFeeDiscount","nameLocation":"276:14:25","nodeType":"FunctionDefinition","parameters":{"id":2634,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2627,"mutability":"mutable","name":"user","nameLocation":"299:4:25","nodeType":"VariableDeclaration","scope":2636,"src":"291:12:25","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2626,"name":"address","nodeType":"ElementaryTypeName","src":"291:7:25","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2630,"mutability":"mutable","name":"pools","nameLocation":"322:5:25","nodeType":"VariableDeclaration","scope":2636,"src":"305:22:25","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_address_$dyn_memory_ptr","typeString":"address[]"},"typeName":{"baseType":{"id":2628,"name":"address","nodeType":"ElementaryTypeName","src":"305:7:25","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":2629,"nodeType":"ArrayTypeName","src":"305:9:25","typeDescriptions":{"typeIdentifier":"t_array$_t_address_$dyn_storage_ptr","typeString":"address[]"}},"visibility":"internal"},{"constant":false,"id":2633,"mutability":"mutable","name":"newDiscounts","nameLocation":"345:12:25","nodeType":"VariableDeclaration","scope":2636,"src":"329:28:25","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_uint16_$dyn_memory_ptr","typeString":"uint16[]"},"typeName":{"baseType":{"id":2631,"name":"uint16","nodeType":"ElementaryTypeName","src":"329:6:25","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":2632,"nodeType":"ArrayTypeName","src":"329:8:25","typeDescriptions":{"typeIdentifier":"t_array$_t_uint16_$dyn_storage_ptr","typeString":"uint16[]"}},"visibility":"internal"}],"src":"290:68:25"},"returnParameters":{"id":2635,"nodeType":"ParameterList","parameters":[],"src":"367:0:25"},"scope":2652,"src":"267:101:25","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"functionSelector":"a7b64b04","id":2641,"implemented":false,"kind":"function","modifiers":[],"name":"algebraFactory","nameLocation":"381:14:25","nodeType":"FunctionDefinition","parameters":{"id":2637,"nodeType":"ParameterList","parameters":[],"src":"395:2:25"},"returnParameters":{"id":2640,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2639,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2641,"src":"421:7:25","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2638,"name":"address","nodeType":"ElementaryTypeName","src":"421:7:25","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"420:9:25"},"scope":2652,"src":"372:58:25","stateMutability":"view","virtual":false,"visibility":"external"},{"functionSelector":"d2426f07","id":2646,"implemented":false,"kind":"function","modifiers":[],"name":"FEE_DISCOUNT_MANAGER","nameLocation":"442:20:25","nodeType":"FunctionDefinition","parameters":{"id":2642,"nodeType":"ParameterList","parameters":[],"src":"462:2:25"},"returnParameters":{"id":2645,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2644,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2646,"src":"488:7:25","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":2643,"name":"bytes32","nodeType":"ElementaryTypeName","src":"488:7:25","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"}],"src":"487:9:25"},"scope":2652,"src":"433:64:25","stateMutability":"pure","virtual":false,"visibility":"external"},{"functionSelector":"51f8ba46","id":2651,"implemented":false,"kind":"function","modifiers":[],"name":"FEE_DISCOUNT_DENOMINATOR","nameLocation":"509:24:25","nodeType":"FunctionDefinition","parameters":{"id":2647,"nodeType":"ParameterList","parameters":[],"src":"533:2:25"},"returnParameters":{"id":2650,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2649,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2651,"src":"559:6:25","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":2648,"name":"uint16","nodeType":"ElementaryTypeName","src":"559:6:25","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"}],"src":"558:8:25"},"scope":2652,"src":"500:67:25","stateMutability":"pure","virtual":false,"visibility":"external"}],"scope":2653,"src":"71:498:25","usedErrors":[],"usedEvents":[2616]}],"src":"45:525:25"},"id":25},"contracts/libraries/FeeDiscountStorage.sol":{"ast":{"absolutePath":"contracts/libraries/FeeDiscountStorage.sol","exportedSymbols":{"FeeDiscountStorage":[2675]},"id":2676,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":2654,"literals":["solidity","=","0.8",".20"],"nodeType":"PragmaDirective","src":"37:24:26"},{"abstract":false,"baseContracts":[],"canonicalName":"FeeDiscountStorage","contractDependencies":[],"contractKind":"library","documentation":{"id":2655,"nodeType":"StructuredDocumentation","src":"63:96:26","text":"@dev Shared namespaced storage for FeeDiscount plugin (used by connector + implementation)."},"fullyImplemented":true,"id":2675,"linearizedBaseContracts":[2675],"name":"FeeDiscountStorage","nameLocation":"167:18:26","nodeType":"ContractDefinition","nodes":[{"constant":true,"documentation":{"id":2656,"nodeType":"StructuredDocumentation","src":"190:119:26","text":"@dev keccak256(abi.encode(uint256(keccak256(\"erc7201:algebra.storage.feediscount\")) - 1)) & ~bytes32(uint256(0xff))"},"id":2659,"mutability":"constant","name":"NAMESPACE","nameLocation":"338:9:26","nodeType":"VariableDeclaration","scope":2675,"src":"312:104:26","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":2657,"name":"bytes32","nodeType":"ElementaryTypeName","src":"312:7:26","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":{"hexValue":"307862353266366333383862633031663035323439353932346664326661636630663831626165616335393735623235393132643032373937313939373764333030","id":2658,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"350:66:26","typeDescriptions":{"typeIdentifier":"t_rational_81952414318695709708429750516622123387340295228689897050509338886129956934400_by_1","typeString":"int_const 8195...(69 digits omitted)...4400"},"value":"0xb52f6c388bc01f052495924fd2facf0f81baeac5975b25912d0279719977d300"},"visibility":"internal"},{"canonicalName":"FeeDiscountStorage.Layout","id":2662,"members":[{"constant":false,"id":2661,"mutability":"mutable","name":"feeDiscountRegistry","nameLocation":"449:19:26","nodeType":"VariableDeclaration","scope":2662,"src":"441:27:26","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2660,"name":"address","nodeType":"ElementaryTypeName","src":"441:7:26","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"name":"Layout","nameLocation":"428:6:26","nodeType":"StructDefinition","scope":2675,"src":"421:52:26","visibility":"public"},{"body":{"id":2673,"nodeType":"Block","src":"536:85:26","statements":[{"assignments":[2669],"declarations":[{"constant":false,"id":2669,"mutability":"mutable","name":"position","nameLocation":"550:8:26","nodeType":"VariableDeclaration","scope":2673,"src":"542:16:26","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":2668,"name":"bytes32","nodeType":"ElementaryTypeName","src":"542:7:26","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"visibility":"internal"}],"id":2671,"initialValue":{"id":2670,"name":"NAMESPACE","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2659,"src":"561:9:26","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"VariableDeclarationStatement","src":"542:28:26"},{"AST":{"nodeType":"YulBlock","src":"585:32:26","statements":[{"nodeType":"YulAssignment","src":"593:18:26","value":{"name":"position","nodeType":"YulIdentifier","src":"603:8:26"},"variableNames":[{"name":"l.slot","nodeType":"YulIdentifier","src":"593:6:26"}]}]},"evmVersion":"paris","externalReferences":[{"declaration":2666,"isOffset":false,"isSlot":true,"src":"593:6:26","suffix":"slot","valueSize":1},{"declaration":2669,"isOffset":false,"isSlot":false,"src":"603:8:26","valueSize":1}],"id":2672,"nodeType":"InlineAssembly","src":"576:41:26"}]},"id":2674,"implemented":true,"kind":"function","modifiers":[],"name":"layout","nameLocation":"486:6:26","nodeType":"FunctionDefinition","parameters":{"id":2663,"nodeType":"ParameterList","parameters":[],"src":"492:2:26"},"returnParameters":{"id":2667,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2666,"mutability":"mutable","name":"l","nameLocation":"533:1:26","nodeType":"VariableDeclaration","scope":2674,"src":"518:16:26","stateVariable":false,"storageLocation":"storage","typeDescriptions":{"typeIdentifier":"t_struct$_Layout_$2662_storage_ptr","typeString":"struct FeeDiscountStorage.Layout"},"typeName":{"id":2665,"nodeType":"UserDefinedTypeName","pathNode":{"id":2664,"name":"Layout","nameLocations":["518:6:26"],"nodeType":"IdentifierPath","referencedDeclaration":2662,"src":"518:6:26"},"referencedDeclaration":2662,"src":"518:6:26","typeDescriptions":{"typeIdentifier":"t_struct$_Layout_$2662_storage_ptr","typeString":"struct FeeDiscountStorage.Layout"}},"visibility":"internal"}],"src":"517:18:26"},"scope":2675,"src":"477:144:26","stateMutability":"pure","virtual":false,"visibility":"internal"}],"scope":2676,"src":"159:464:26","usedErrors":[],"usedEvents":[]}],"src":"37:587:26"},"id":26},"contracts/test/UpgradeableFeeDiscountPluginTest.sol":{"ast":{"absolutePath":"contracts/test/UpgradeableFeeDiscountPluginTest.sol","exportedSymbols":{"AddressUpgradeable":[2308],"BaseConnector":[46],"FeeDiscountConnector":[2440],"FeeDiscountStorage":[2675],"IAbstractPlugin":[539],"IAlgebraFactory":[831],"IAlgebraPlugin":[1019],"IAlgebraPluginFactory":[1051],"IAlgebraPluginProxy":[547],"IAlgebraPool":[853],"IAlgebraPoolActions":[1167],"IAlgebraPoolErrors":[1269],"IAlgebraPoolEvents":[1421],"IAlgebraPoolImmutables":[1449],"IAlgebraPoolPermissionedActions":[1497],"IAlgebraPoolState":[1681],"IAlgebraVaultFactory":[1709],"IFeeDiscountPlugin":[2555],"IFeeDiscountPluginImplementation":[2606],"Initializable":[1978],"Plugins":[1781],"SafeTransfer":[1809],"Timestamp":[564],"UpgradeableAbstractPlugin":[508],"UpgradeableFeeDiscountPluginTest":[2847]},"id":2848,"license":"BUSL-1.1","nodeType":"SourceUnit","nodes":[{"id":2677,"literals":["solidity","=","0.8",".20"],"nodeType":"PragmaDirective","src":"37:24:27"},{"absolutePath":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","file":"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol","id":2678,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2848,"sourceUnit":1782,"src":"63:70:27","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol","file":"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol","id":2679,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2848,"sourceUnit":1682,"src":"134:86:27","symbolAliases":[],"unitAlias":""},{"absolutePath":"@cryptoalgebra/abstract-plugin/contracts/UpgradeableAbstractPlugin.sol","file":"@cryptoalgebra/abstract-plugin/contracts/UpgradeableAbstractPlugin.sol","id":2680,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2848,"sourceUnit":509,"src":"221:80:27","symbolAliases":[],"unitAlias":""},{"absolutePath":"contracts/FeeDiscountConnector.sol","file":"../FeeDiscountConnector.sol","id":2681,"nameLocation":"-1:-1:-1","nodeType":"ImportDirective","scope":2848,"sourceUnit":2441,"src":"303:37:27","symbolAliases":[],"unitAlias":""},{"abstract":false,"baseContracts":[{"baseName":{"id":2683,"name":"UpgradeableAbstractPlugin","nameLocations":["552:25:27"],"nodeType":"IdentifierPath","referencedDeclaration":508,"src":"552:25:27"},"id":2684,"nodeType":"InheritanceSpecifier","src":"552:25:27"},{"baseName":{"id":2685,"name":"FeeDiscountConnector","nameLocations":["579:20:27"],"nodeType":"IdentifierPath","referencedDeclaration":2440,"src":"579:20:27"},"id":2686,"nodeType":"InheritanceSpecifier","src":"579:20:27"}],"canonicalName":"UpgradeableFeeDiscountPluginTest","contractDependencies":[],"contractKind":"contract","documentation":{"id":2682,"nodeType":"StructuredDocumentation","src":"342:165:27","text":"@title Upgradeable FeeDiscount Plugin for Testing\n @notice Test implementation of an upgradeable plugin using Beacon Proxy pattern with FeeDiscount connector"},"fullyImplemented":true,"id":2847,"linearizedBaseContracts":[2847,2440,46,2555,508,564,539,1019,1978],"name":"UpgradeableFeeDiscountPluginTest","nameLocation":"516:32:27","nodeType":"ContractDefinition","nodes":[{"global":false,"id":2689,"libraryName":{"id":2687,"name":"Plugins","nameLocations":["610:7:27"],"nodeType":"IdentifierPath","referencedDeclaration":1781,"src":"610:7:27"},"nodeType":"UsingForDirective","src":"604:24:27","typeName":{"id":2688,"name":"uint8","nodeType":"ElementaryTypeName","src":"622:5:27","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}},{"body":{"id":2706,"nodeType":"Block","src":"1084:2:27","statements":[]},"documentation":{"id":2690,"nodeType":"StructuredDocumentation","src":"632:242:27","text":"@dev Constructor sets immutable implementation address\n @param _factory The Algebra factory address\n @param _pluginFactory The plugin factory address\n @param _feeDiscountImplementation The FeeDiscount implementation address"},"id":2707,"implemented":true,"kind":"constructor","modifiers":[{"arguments":[{"id":2699,"name":"_factory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2692,"src":"1009:8:27","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":2700,"name":"_pluginFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2694,"src":"1019:14:27","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"id":2701,"kind":"baseConstructorSpecifier","modifierName":{"id":2698,"name":"UpgradeableAbstractPlugin","nameLocations":["983:25:27"],"nodeType":"IdentifierPath","referencedDeclaration":508,"src":"983:25:27"},"nodeType":"ModifierInvocation","src":"983:51:27"},{"arguments":[{"id":2703,"name":"_feeDiscountImplementation","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2696,"src":"1056:26:27","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"id":2704,"kind":"baseConstructorSpecifier","modifierName":{"id":2702,"name":"FeeDiscountConnector","nameLocations":["1035:20:27"],"nodeType":"IdentifierPath","referencedDeclaration":2440,"src":"1035:20:27"},"nodeType":"ModifierInvocation","src":"1035:48:27"}],"name":"","nameLocation":"-1:-1:-1","nodeType":"FunctionDefinition","parameters":{"id":2697,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2692,"mutability":"mutable","name":"_factory","nameLocation":"902:8:27","nodeType":"VariableDeclaration","scope":2707,"src":"894:16:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2691,"name":"address","nodeType":"ElementaryTypeName","src":"894:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2694,"mutability":"mutable","name":"_pluginFactory","nameLocation":"924:14:27","nodeType":"VariableDeclaration","scope":2707,"src":"916:22:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2693,"name":"address","nodeType":"ElementaryTypeName","src":"916:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2696,"mutability":"mutable","name":"_feeDiscountImplementation","nameLocation":"952:26:27","nodeType":"VariableDeclaration","scope":2707,"src":"944:34:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2695,"name":"address","nodeType":"ElementaryTypeName","src":"944:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"888:94:27"},"returnParameters":{"id":2705,"nodeType":"ParameterList","parameters":[],"src":"1084:0:27"},"scope":2847,"src":"877:209:27","stateMutability":"nonpayable","virtual":false,"visibility":"public"},{"body":{"id":2723,"nodeType":"Block","src":"1381:55:27","statements":[{"expression":{"arguments":[{"id":2720,"name":"_feeDiscountRegistry","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2712,"src":"1410:20:27","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":2719,"name":"_initializeFeeDiscount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2364,"src":"1387:22:27","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$returns$__$","typeString":"function (address)"}},"id":2721,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1387:44:27","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2722,"nodeType":"ExpressionStatement","src":"1387:44:27"}]},"documentation":{"id":2708,"nodeType":"StructuredDocumentation","src":"1090:184:27","text":"@notice Initialize the plugin for a specific pool\n @param _pool The pool address this plugin is attached to\n @param _feeDiscountRegistry The fee discount registry address"},"functionSelector":"485cc955","id":2724,"implemented":true,"kind":"function","modifiers":[{"id":2715,"kind":"modifierInvocation","modifierName":{"id":2714,"name":"initializer","nameLocations":["1351:11:27"],"nodeType":"IdentifierPath","referencedDeclaration":1880,"src":"1351:11:27"},"nodeType":"ModifierInvocation","src":"1351:11:27"},{"id":2717,"kind":"modifierInvocation","modifierName":{"id":2716,"name":"onlyPluginFactory","nameLocations":["1363:17:27"],"nodeType":"IdentifierPath","referencedDeclaration":103,"src":"1363:17:27"},"nodeType":"ModifierInvocation","src":"1363:17:27"}],"name":"initialize","nameLocation":"1286:10:27","nodeType":"FunctionDefinition","parameters":{"id":2713,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2710,"mutability":"mutable","name":"_pool","nameLocation":"1305:5:27","nodeType":"VariableDeclaration","scope":2724,"src":"1297:13:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2709,"name":"address","nodeType":"ElementaryTypeName","src":"1297:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2712,"mutability":"mutable","name":"_feeDiscountRegistry","nameLocation":"1320:20:27","nodeType":"VariableDeclaration","scope":2724,"src":"1312:28:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2711,"name":"address","nodeType":"ElementaryTypeName","src":"1312:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"}],"src":"1296:45:27"},"returnParameters":{"id":2718,"nodeType":"ParameterList","parameters":[],"src":"1381:0:27"},"scope":2847,"src":"1277:159:27","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[229],"body":{"id":2746,"nodeType":"Block","src":"1567:87:27","statements":[{"expression":{"id":2738,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"id":2732,"name":"moduleNames","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2730,"src":"1573:11:27","typeDescriptions":{"typeIdentifier":"t_array$_t_string_memory_ptr_$dyn_memory_ptr","typeString":"string memory[] memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"arguments":[{"hexValue":"31","id":2736,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1600:1:27","typeDescriptions":{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"},"value":"1"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_rational_1_by_1","typeString":"int_const 1"}],"id":2735,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"NewExpression","src":"1587:12:27","typeDescriptions":{"typeIdentifier":"t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_string_memory_ptr_$dyn_memory_ptr_$","typeString":"function (uint256) pure returns (string memory[] memory)"},"typeName":{"baseType":{"id":2733,"name":"string","nodeType":"ElementaryTypeName","src":"1591:6:27","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"id":2734,"nodeType":"ArrayTypeName","src":"1591:8:27","typeDescriptions":{"typeIdentifier":"t_array$_t_string_storage_$dyn_storage_ptr","typeString":"string[]"}}},"id":2737,"isConstant":false,"isLValue":false,"isPure":true,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1587:15:27","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_array$_t_string_memory_ptr_$dyn_memory_ptr","typeString":"string memory[] memory"}},"src":"1573:29:27","typeDescriptions":{"typeIdentifier":"t_array$_t_string_memory_ptr_$dyn_memory_ptr","typeString":"string memory[] memory"}},"id":2739,"nodeType":"ExpressionStatement","src":"1573:29:27"},{"expression":{"id":2744,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"baseExpression":{"id":2740,"name":"moduleNames","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2730,"src":"1608:11:27","typeDescriptions":{"typeIdentifier":"t_array$_t_string_memory_ptr_$dyn_memory_ptr","typeString":"string memory[] memory"}},"id":2742,"indexExpression":{"hexValue":"30","id":2741,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1620:1:27","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"1608:14:27","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"id":2743,"name":"FEE_DISCOUNT_MODULE_NAME","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2326,"src":"1625:24:27","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}},"src":"1608:41:27","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}},"id":2745,"nodeType":"ExpressionStatement","src":"1608:41:27"}]},"documentation":{"id":2725,"nodeType":"StructuredDocumentation","src":"1440:31:27","text":"@inheritdoc IAbstractPlugin"},"functionSelector":"b6f78cc9","id":2747,"implemented":true,"kind":"function","modifiers":[],"name":"getActiveModuleNames","nameLocation":"1483:20:27","nodeType":"FunctionDefinition","overrides":{"id":2727,"nodeType":"OverrideSpecifier","overrides":[],"src":"1520:8:27"},"parameters":{"id":2726,"nodeType":"ParameterList","parameters":[],"src":"1503:2:27"},"returnParameters":{"id":2731,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2730,"mutability":"mutable","name":"moduleNames","nameLocation":"1554:11:27","nodeType":"VariableDeclaration","scope":2747,"src":"1538:27:27","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_string_memory_ptr_$dyn_memory_ptr","typeString":"string[]"},"typeName":{"baseType":{"id":2728,"name":"string","nodeType":"ElementaryTypeName","src":"1538:6:27","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"id":2729,"nodeType":"ArrayTypeName","src":"1538:8:27","typeDescriptions":{"typeIdentifier":"t_array$_t_string_storage_$dyn_storage_ptr","typeString":"string[]"}},"visibility":"internal"}],"src":"1537:29:27"},"scope":2847,"src":"1474:180:27","stateMutability":"pure","virtual":false,"visibility":"external"},{"baseFunctions":[235],"body":{"id":2755,"nodeType":"Block","src":"1726:44:27","statements":[{"expression":{"id":2753,"name":"FEE_DISCOUNT_PLUGIN_CONFIG","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2333,"src":"1739:26:27","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"functionReturnParameters":2752,"id":2754,"nodeType":"Return","src":"1732:33:27"}]},"functionSelector":"689ea370","id":2756,"implemented":true,"kind":"function","modifiers":[],"name":"defaultPluginConfig","nameLocation":"1667:19:27","nodeType":"FunctionDefinition","overrides":{"id":2749,"nodeType":"OverrideSpecifier","overrides":[],"src":"1701:8:27"},"parameters":{"id":2748,"nodeType":"ParameterList","parameters":[],"src":"1686:2:27"},"returnParameters":{"id":2752,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2751,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2756,"src":"1719:5:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"},"typeName":{"id":2750,"name":"uint8","nodeType":"ElementaryTypeName","src":"1719:5:27","typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}},"visibility":"internal"}],"src":"1718:7:27"},"scope":2847,"src":"1658:112:27","stateMutability":"view","virtual":false,"visibility":"public"},{"baseFunctions":[293],"body":{"id":2777,"nodeType":"Block","src":"1888:112:27","statements":[{"expression":{"arguments":[{"arguments":[],"expression":{"argumentTypes":[],"id":2769,"name":"defaultPluginConfig","nodeType":"Identifier","overloadedDeclarations":[2756],"referencedDeclaration":2756,"src":"1920:19:27","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_uint8_$","typeString":"function () view returns (uint8)"}},"id":2770,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1920:21:27","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint8","typeString":"uint8"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint8","typeString":"uint8"}],"id":2768,"name":"_updatePluginConfigInPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":507,"src":"1894:25:27","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_uint8_$returns$__$","typeString":"function (uint8)"}},"id":2771,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"1894:48:27","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2772,"nodeType":"ExpressionStatement","src":"1894:48:27"},{"expression":{"expression":{"expression":{"id":2773,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1019,"src":"1955:14:27","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$1019_$","typeString":"type(contract IAlgebraPlugin)"}},"id":2774,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1970:16:27","memberName":"beforeInitialize","nodeType":"MemberAccess","referencedDeclaration":882,"src":"1955:31:27","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_uint160_$returns$_t_bytes4_$","typeString":"function IAlgebraPlugin.beforeInitialize(address,uint160) returns (bytes4)"}},"id":2775,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"1987:8:27","memberName":"selector","nodeType":"MemberAccess","src":"1955:40:27","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"functionReturnParameters":2767,"id":2776,"nodeType":"Return","src":"1948:47:27"}]},"functionSelector":"636fd804","id":2778,"implemented":true,"kind":"function","modifiers":[{"id":2764,"kind":"modifierInvocation","modifierName":{"id":2763,"name":"onlyPool","nameLocations":["1862:8:27"],"nodeType":"IdentifierPath","referencedDeclaration":91,"src":"1862:8:27"},"nodeType":"ModifierInvocation","src":"1862:8:27"}],"name":"beforeInitialize","nameLocation":"1809:16:27","nodeType":"FunctionDefinition","overrides":{"id":2762,"nodeType":"OverrideSpecifier","overrides":[],"src":"1853:8:27"},"parameters":{"id":2761,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2758,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2778,"src":"1826:7:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2757,"name":"address","nodeType":"ElementaryTypeName","src":"1826:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2760,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2778,"src":"1835:7:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":2759,"name":"uint160","nodeType":"ElementaryTypeName","src":"1835:7:27","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"}],"src":"1825:18:27"},"returnParameters":{"id":2767,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2766,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2778,"src":"1880:6:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":2765,"name":"bytes4","nodeType":"ElementaryTypeName","src":"1880:6:27","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"}],"src":"1879:8:27"},"scope":2847,"src":"1800:200:27","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[404],"body":{"id":2825,"nodeType":"Block","src":"2186:185:27","statements":[{"assignments":[null,null,2805,null],"declarations":[null,null,{"constant":false,"id":2805,"mutability":"mutable","name":"fee","nameLocation":"2204:3:27","nodeType":"VariableDeclaration","scope":2825,"src":"2197:10:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":2804,"name":"uint16","nodeType":"ElementaryTypeName","src":"2197:6:27","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"visibility":"internal"},null],"id":2808,"initialValue":{"arguments":[],"expression":{"argumentTypes":[],"id":2806,"name":"_getPoolState","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":199,"src":"2213:13:27","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$","typeString":"function () view returns (uint160,int24,uint16,uint8)"}},"id":2807,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2213:15:27","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$_t_uint160_$_t_int24_$_t_uint16_$_t_uint8_$","typeString":"tuple(uint160,int24,uint16,uint8)"}},"nodeType":"VariableDeclarationStatement","src":"2192:36:27"},{"assignments":[2810],"declarations":[{"constant":false,"id":2810,"mutability":"mutable","name":"discountedFee","nameLocation":"2241:13:27","nodeType":"VariableDeclaration","scope":2825,"src":"2234:20:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":2809,"name":"uint24","nodeType":"ElementaryTypeName","src":"2234:6:27","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"id":2817,"initialValue":{"arguments":[{"id":2812,"name":"sender","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2780,"src":"2275:6:27","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"arguments":[],"expression":{"argumentTypes":[],"id":2813,"name":"_getPool","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":144,"src":"2283:8:27","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_address_$","typeString":"function () view returns (address)"}},"id":2814,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2283:10:27","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"id":2815,"name":"fee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2805,"src":"2295:3:27","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint16","typeString":"uint16"}],"id":2811,"name":"_applyFeeDiscount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2400,"src":"2257:17:27","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_address_$_t_address_$_t_uint24_$returns$_t_uint24_$","typeString":"function (address,address,uint24) returns (uint24)"}},"id":2816,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2257:42:27","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"nodeType":"VariableDeclarationStatement","src":"2234:65:27"},{"expression":{"components":[{"expression":{"expression":{"id":2818,"name":"IAlgebraPlugin","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1019,"src":"2313:14:27","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraPlugin_$1019_$","typeString":"type(contract IAlgebraPlugin)"}},"id":2819,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"2328:10:27","memberName":"beforeSwap","nodeType":"MemberAccess","referencedDeclaration":960,"src":"2313:25:27","typeDescriptions":{"typeIdentifier":"t_function_declaration_nonpayable$_t_address_$_t_address_$_t_bool_$_t_int256_$_t_uint160_$_t_bool_$_t_bytes_calldata_ptr_$returns$_t_bytes4_$_t_uint24_$_t_uint24_$","typeString":"function IAlgebraPlugin.beforeSwap(address,address,bool,int256,uint160,bool,bytes calldata) returns (bytes4,uint24,uint24)"}},"id":2820,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberLocation":"2339:8:27","memberName":"selector","nodeType":"MemberAccess","src":"2313:34:27","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},{"id":2821,"name":"discountedFee","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":2810,"src":"2349:13:27","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},{"hexValue":"30","id":2822,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2364:1:27","typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"id":2823,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"2312:54:27","typeDescriptions":{"typeIdentifier":"t_tuple$_t_bytes4_$_t_uint24_$_t_rational_0_by_1_$","typeString":"tuple(bytes4,uint24,int_const 0)"}},"functionReturnParameters":2803,"id":2824,"nodeType":"Return","src":"2305:61:27"}]},"functionSelector":"029c1cb7","id":2826,"implemented":true,"kind":"function","modifiers":[{"id":2796,"kind":"modifierInvocation","modifierName":{"id":2795,"name":"onlyPool","nameLocations":["2144:8:27"],"nodeType":"IdentifierPath","referencedDeclaration":91,"src":"2144:8:27"},"nodeType":"ModifierInvocation","src":"2144:8:27"}],"name":"beforeSwap","nameLocation":"2013:10:27","nodeType":"FunctionDefinition","overrides":{"id":2794,"nodeType":"OverrideSpecifier","overrides":[],"src":"2135:8:27"},"parameters":{"id":2793,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2780,"mutability":"mutable","name":"sender","nameLocation":"2037:6:27","nodeType":"VariableDeclaration","scope":2826,"src":"2029:14:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2779,"name":"address","nodeType":"ElementaryTypeName","src":"2029:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2782,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2826,"src":"2049:7:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":2781,"name":"address","nodeType":"ElementaryTypeName","src":"2049:7:27","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"visibility":"internal"},{"constant":false,"id":2784,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2826,"src":"2062:4:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":2783,"name":"bool","nodeType":"ElementaryTypeName","src":"2062:4:27","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":2786,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2826,"src":"2072:6:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"},"typeName":{"id":2785,"name":"int256","nodeType":"ElementaryTypeName","src":"2072:6:27","typeDescriptions":{"typeIdentifier":"t_int256","typeString":"int256"}},"visibility":"internal"},{"constant":false,"id":2788,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2826,"src":"2084:7:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"},"typeName":{"id":2787,"name":"uint160","nodeType":"ElementaryTypeName","src":"2084:7:27","typeDescriptions":{"typeIdentifier":"t_uint160","typeString":"uint160"}},"visibility":"internal"},{"constant":false,"id":2790,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2826,"src":"2097:4:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":2789,"name":"bool","nodeType":"ElementaryTypeName","src":"2097:4:27","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"visibility":"internal"},{"constant":false,"id":2792,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2826,"src":"2107:14:27","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":2791,"name":"bytes","nodeType":"ElementaryTypeName","src":"2107:5:27","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"visibility":"internal"}],"src":"2023:102:27"},"returnParameters":{"id":2803,"nodeType":"ParameterList","parameters":[{"constant":false,"id":2798,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2826,"src":"2162:6:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":2797,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2162:6:27","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"visibility":"internal"},{"constant":false,"id":2800,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2826,"src":"2170:6:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":2799,"name":"uint24","nodeType":"ElementaryTypeName","src":"2170:6:27","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"},{"constant":false,"id":2802,"mutability":"mutable","name":"","nameLocation":"-1:-1:-1","nodeType":"VariableDeclaration","scope":2826,"src":"2178:6:27","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"},"typeName":{"id":2801,"name":"uint24","nodeType":"ElementaryTypeName","src":"2178:6:27","typeDescriptions":{"typeIdentifier":"t_uint24","typeString":"uint24"}},"visibility":"internal"}],"src":"2161:24:27"},"scope":2847,"src":"2004:367:27","stateMutability":"nonpayable","virtual":false,"visibility":"external"},{"baseFunctions":[45,174],"body":{"id":2845,"nodeType":"Block","src":"2587:118:27","statements":[{"expression":{"arguments":[{"arguments":[{"id":2838,"name":"ALGEBRA_BASE_PLUGIN_MANAGER","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":78,"src":"2641:27:27","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"expression":{"id":2839,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":-15,"src":"2670:3:27","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":2840,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2674:6:27","memberName":"sender","nodeType":"MemberAccess","src":"2670:10:27","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_address","typeString":"address"}],"expression":{"arguments":[{"id":2835,"name":"factory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":81,"src":"2617:7:27","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":2834,"name":"IAlgebraFactory","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":831,"src":"2601:15:27","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_IAlgebraFactory_$831_$","typeString":"type(contract IAlgebraFactory)"}},"id":2836,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2601:24:27","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_contract$_IAlgebraFactory_$831","typeString":"contract IAlgebraFactory"}},"id":2837,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberLocation":"2626:14:27","memberName":"hasRoleOrOwner","nodeType":"MemberAccess","referencedDeclaration":654,"src":"2601:39:27","typeDescriptions":{"typeIdentifier":"t_function_external_view$_t_bytes32_$_t_address_$returns$_t_bool_$","typeString":"function (bytes32,address) view external returns (bool)"}},"id":2841,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2601:80:27","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},{"hexValue":"4e6f7420617574686f72697a6564","id":2842,"isConstant":false,"isLValue":false,"isPure":true,"kind":"string","lValueRequested":false,"nodeType":"Literal","src":"2683:16:27","typeDescriptions":{"typeIdentifier":"t_stringliteral_fac3bac318c0d00994f57b0f2f4c643c313072b71db2302bf4b900309cc50b36","typeString":"literal_string \"Not authorized\""},"value":"Not authorized"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_stringliteral_fac3bac318c0d00994f57b0f2f4c643c313072b71db2302bf4b900309cc50b36","typeString":"literal_string \"Not authorized\""}],"id":2833,"name":"require","nodeType":"Identifier","overloadedDeclarations":[-18,-18],"referencedDeclaration":-18,"src":"2593:7:27","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$","typeString":"function (bool,string memory) pure"}},"id":2843,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"nameLocations":[],"names":[],"nodeType":"FunctionCall","src":"2593:107:27","tryCall":false,"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":2844,"nodeType":"ExpressionStatement","src":"2593:107:27"}]},"documentation":{"id":2827,"nodeType":"StructuredDocumentation","src":"2409:88:27","text":"@dev Authorization check for FeeDiscountConnector - only ALGEBRA_BASE_PLUGIN_MANAGER"},"id":2846,"implemented":true,"kind":"function","modifiers":[],"name":"_authorize","nameLocation":"2509:10:27","nodeType":"FunctionDefinition","overrides":{"id":2831,"nodeType":"OverrideSpecifier","overrides":[{"id":2829,"name":"UpgradeableAbstractPlugin","nameLocations":["2545:25:27"],"nodeType":"IdentifierPath","referencedDeclaration":508,"src":"2545:25:27"},{"id":2830,"name":"BaseConnector","nameLocations":["2572:13:27"],"nodeType":"IdentifierPath","referencedDeclaration":46,"src":"2572:13:27"}],"src":"2536:50:27"},"parameters":{"id":2828,"nodeType":"ParameterList","parameters":[],"src":"2519:2:27"},"returnParameters":{"id":2832,"nodeType":"ParameterList","parameters":[],"src":"2587:0:27"},"scope":2847,"src":"2500:205:27","stateMutability":"view","virtual":false,"visibility":"internal"}],"scope":2848,"src":"507:2200:27","usedErrors":[4,517,519,521,1262],"usedEvents":[1824,2554]}],"src":"37:2671:27"},"id":27}},"contracts":{"@cryptoalgebra/abstract-plugin/contracts/BaseConnector.sol":{"BaseConnector":{"abi":[{"inputs":[],"name":"ConnectorDelegatecallFailed","type":"error"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"ConnectorDelegatecallFailed\",\"type\":\"error\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"title\":\"Base Connector\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Abstract base contract for all plugin connectors providing common delegatecall utilities\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/abstract-plugin/contracts/BaseConnector.sol\":\"BaseConnector\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/abstract-plugin/contracts/BaseConnector.sol\":{\"keccak256\":\"0x4d00d580227bab1f04a401d26846f48ced21c785dd7e7b5485da21653fef8722\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://fdc52831c08d9cd58ec8b3c95320fdbe97e1a0a72663da2575fae4c3027822f8\",\"dweb:/ipfs/QmSwnbXtswaioxM5tNVr8VYxEDRY8V1oJZYVHdFgbDhCBH\"]}},\"version\":1}"}},"@cryptoalgebra/abstract-plugin/contracts/UpgradeableAbstractPlugin.sol":{"UpgradeableAbstractPlugin":{"abi":[{"inputs":[],"name":"OnlyAdministrator","type":"error"},{"inputs":[],"name":"OnlyPluginFactory","type":"error"},{"inputs":[],"name":"OnlyPool","type":"error"},{"inputs":[],"name":"transferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"inputs":[],"name":"ALGEBRA_BASE_PLUGIN_MANAGER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POOL_ADDRESS_OFFSET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int24","name":"","type":"int24"}],"name":"afterInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int128","name":"","type":"int128"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint160","name":"","type":"uint160"}],"name":"beforeInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int128","name":"","type":"int128"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"uint24","name":"","type":"uint24"},{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"collectPluginFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultPluginConfig","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getActiveModuleNames","outputs":[{"internalType":"string[]","name":"moduleNames","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"handlePluginFee","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pluginFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"ALGEBRA_BASE_PLUGIN_MANAGER()":"31b25d1a","POOL_ADDRESS_OFFSET()":"36badf63","afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)":"343d37ff","afterInitialize(address,uint160,int24)":"82dd6522","afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)":"d6852010","afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)":"9cb5a963","beforeFlash(address,address,uint256,uint256,bytes)":"8de0a8ee","beforeInitialize(address,uint160)":"636fd804","beforeModifyPosition(address,address,int24,int24,int128,bytes)":"5e2411b2","beforeSwap(address,address,bool,int256,uint160,bool,bytes)":"029c1cb7","collectPluginFee(address,uint256,address)":"e72c652d","defaultPluginConfig()":"689ea370","factory()":"c45a0155","getActiveModuleNames()":"b6f78cc9","handlePluginFee(uint256,uint256)":"aa6b14bb","pluginFactory()":"e2a1bd59","pool()":"16f0115b"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"OnlyAdministrator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyPluginFactory\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyPool\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"transferFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ALGEBRA_BASE_PLUGIN_MANAGER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"POOL_ADDRESS_OFFSET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"name\":\"afterInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"}],\"name\":\"beforeInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"collectPluginFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultPluginConfig\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getActiveModuleNames\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"moduleNames\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"handlePluginFee\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pluginFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"}},\"kind\":\"dev\",\"methods\":{\"collectPluginFee(address,uint256,address)\":{\"params\":{\"amount\":\"Amount of tokens\",\"recipient\":\"Recipient address\",\"token\":\"The token address\"}},\"defaultPluginConfig()\":{\"details\":\"Must be implemented by the default plugin, used to sync config into the pool\"},\"getActiveModuleNames()\":{\"details\":\"must be implemented by the default plugin\",\"returns\":{\"moduleNames\":\"Array of active module names\"}},\"handlePluginFee(uint256,uint256)\":{\"params\":{\"pluginFee0\":\"Fee0 amount transferred to plugin\",\"pluginFee1\":\"Fee1 amount transferred to plugin\"},\"returns\":{\"_0\":\"bytes4 The function selector\"}}},\"stateVariables\":{\"ALGEBRA_BASE_PLUGIN_MANAGER\":{\"details\":\"The role can be granted in AlgebraFactory\"},\"POOL_ADDRESS_OFFSET\":{\"details\":\"Offset in AlgebraPluginProxy bytecode\"},\"factory\":{\"details\":\"shared across all proxies\"},\"pluginFactory\":{\"details\":\"shared across all proxies\"}},\"title\":\"Algebra Integral 1.2.2 Upgradeable Abstract Plugin\",\"version\":1},\"userdoc\":{\"errors\":{\"transferFailed()\":[{\"notice\":\"Emitted if token transfer failed internally\"}]},\"kind\":\"user\",\"methods\":{\"collectPluginFee(address,uint256,address)\":{\"notice\":\"Claim plugin fee\"},\"defaultPluginConfig()\":{\"notice\":\"Returns the default plugin config\"},\"getActiveModuleNames()\":{\"notice\":\"Get all active module names\"},\"handlePluginFee(uint256,uint256)\":{\"notice\":\"Handle plugin fee transfer on plugin contract\"}},\"notice\":\"Base contract for upgradeable plugins using Beacon Proxy pattern\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/abstract-plugin/contracts/UpgradeableAbstractPlugin.sol\":\"UpgradeableAbstractPlugin\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/abstract-plugin/contracts/UpgradeableAbstractPlugin.sol\":{\"keccak256\":\"0x9dc4212743f653ff5398574f1d1de9d184153f9b587e8983e7f45a948fba775d\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://a3e62a82eda8d6d747907c64be46ee5dd068c1734f1314b6bad0d56bf104f5e4\",\"dweb:/ipfs/QmcTvDL6CB1ZvLckiXy8m6gM9EEr3V4Z2n7afDbCBUvKU2\"]},\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol\":{\"keccak256\":\"0x71e54050ebdbcf299b5f7b5766d041442a79943c44e58edaeebe5f5624ca5165\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://ea13296f61bcc653ff70eb6529f2946f6714b2800115f684c591cef5466b92be\",\"dweb:/ipfs/QmZieuJwje1kFHzyH3Dq5a4QT5VWjEVYba7hVidWiosfcP\"]},\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAlgebraPluginProxy.sol\":{\"keccak256\":\"0xb48c9713e84cb8e652ce2d1b6c0986ac06bbf53256f442e9e98d34e84ffea2ad\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://102ede8adf1a8367f36364a84afa896fc36b03e90172a70dfef7e9c8af9f0280\",\"dweb:/ipfs/QmPsXH7X7jX5WcsnoTwRJXcoaAi2zMTAD4PhR3EX9jQcan\"]},\"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol\":{\"keccak256\":\"0x28e2aac84d585bbe96ecb9d5cd124fa7cd5929584c70e43a7c96f6faa93022d3\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d1347582a9d12cf03fc99ca899f7788f9223773be12c35aa2b8c2145d2e6a2c8\",\"dweb:/ipfs/QmYDrse9BuFsrwHxAZdghycY9F6XQfGDrm8ZifUfFnx2n3\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol\":{\"keccak256\":\"0xb87bef911483f054559e6567a5a958200131b5101fbcee1ed7daefcfc082faf7\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://46c8f76cde3c16aed0446e98dc61ddb196288652f6a8735ed87d6e53a13b4142\",\"dweb:/ipfs/Qmd7omugWuFrjrCcwfeRQbeUS1FhqvhscTij4xtqCmjNKG\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol\":{\"keccak256\":\"0x1d8bb94007c874be2640401aeed6219392c07e8b2e779fa24c618adc58bd7ae0\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://55d37783d81c98cb58ed41e6d7283af5fb07261b676a833f632cd6d128fc2e04\",\"dweb:/ipfs/QmXiJ63fWeBfkfJkLzBv1zLDyCjn5shW44ugYv44CqtTca\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol\":{\"keccak256\":\"0xdf59e7e2f672d08ecd361eb9a61fbd21ce70ad47e64f34dcd8bd8101e0e7aa5a\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7719afe8dbd6803ecda550933f66d447a6fd9866a1a1b06d8c1eaad6c6fa8a63\",\"dweb:/ipfs/QmPwz3RuSWYuQaHMzwF6HP4MAomD2ZoZRm6YRKhdWNhPWb\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":{\"keccak256\":\"0xf1cc5f09fc738bf41381fdf6864919c07965f25e715af6982df54605ce3a32fc\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://6fa8803e45159a6c404fd714321bc2ba0e010e76e3755594628f0c0bc9204182\",\"dweb:/ipfs/QmSAtmyH38VtzgycYTjGF3Y5aWG6DPjWD3JDjGVAn4fi2m\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol\":{\"keccak256\":\"0x4f9b70282bac671383d001cffca1479dd64f507db84cdab16da886804c64a60c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://b1bc8b774ab5027d97625c3ac01ee3f4bbdefcd012ff0bb0e4c9752096bd9562\",\"dweb:/ipfs/Qmcn5kGihMiZAMjwpY1f12nTSWMyrLqmXLvoifaqPtQYYo\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol\":{\"keccak256\":\"0xd6b18486bd0eaee545ad10115d33c527e5ba5ddff571120678e7db58ca00b726\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://470a64313758d0a26a6910c924eae39e5c4df6912c61e7239e0d930097f8512f\",\"dweb:/ipfs/QmY18B9x18hLCKQ3kAqjPhHzMvZxKrvNeUjPycKYodETaa\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol\":{\"keccak256\":\"0x02d0fb9c64fba4c4dd0509bb9333825c801a0587d5b957c46f5cb1c610acc447\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://8480784b2654829c0958b00aa3109249ce9088dbe94b6eadeaf8e9138829a764\",\"dweb:/ipfs/QmeFG5AsPUQfhMPtvYC3f9BhGu7sVm71wj2PgXDczaM7XP\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol\":{\"keccak256\":\"0xbd9faad7e7599c61c3141cfe2dd2e423ad4746a6119f047b0ae6d2eccb77bc9c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d0df4bed6cf34a8c0f6b971fb71411373b4d204afda35eabe8555d8cbe67e291\",\"dweb:/ipfs/QmY6z3BseKy3tEvmLVjhL7VFrNJRuQgDXJXNAFBkBQ218A\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol\":{\"keccak256\":\"0xe061f0f9b5b16934173b1127efe13ccfe80465db17156d91c04e018b31e993fa\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://c607033ec09828f4a8667e7fd2e562814ec689d5806d95b4a248f57e0eff9d38\",\"dweb:/ipfs/QmbGBxBMSzPKitHmRjYJwGGEZVsXDQB6emSsZ19hjy6LUz\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol\":{\"keccak256\":\"0xcdaae6cd6af79c4f344e673fe886a980ef5203b15b49f7a466c336c0152ce6ae\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://fa2d3073bd4ca013e2769cf0fa5b68f32cec4fa53a6cc66adb59d86e6293cf15\",\"dweb:/ipfs/QmcwveJdf3JLAPfFZShijKTTxMTP4joDDuSuFboXBe711S\"]},\"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol\":{\"keccak256\":\"0x354b1e099e9a47ce6fdc2ff4a4549249fa9c54434bf4dedb14fd4afe7d94d2d5\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d9efe57e2239df29c7290fc1a27c8f0a6d8aa1f9e4c9271efadb8b29b29d7058\",\"dweb:/ipfs/QmbRJqfJR62Bx7XhN8qNBk85zjpWfyxSSiC5vHpxXnYMKb\"]},\"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol\":{\"keccak256\":\"0x14e91c94e35c50efcd97e13609f686499c1dfa726ee0b3f6078fa4b99bde9a0a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1d9a7efa21d03180ded0e99d7ba05abd5c8ebedf2439a5a78091b679eadc4064\",\"dweb:/ipfs/QmVUZPhYPTb2yY9381AL242tfVsb3iWxmE2XwqcN9HG6eW\"]},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f103ee2e4aecd37aac6ceefe670709cdd7613dee25fa2d4d9feaf7fc0aaa155e\",\"dweb:/ipfs/QmRiNZLoJk5k3HPMYGPGjZFd2ke1ZxjhJZkM45Ec9GH9hv\"]},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://310136ad60820af4177a11a61d77a3686faf5fca4942b600e08fc940db38396b\",\"dweb:/ipfs/QmbCzMNSTL7Zi7M4UCSqBrkHtp4jjxUnGbkneCZKdR1qeq\"]}},\"version\":1}"}},"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol":{"IAbstractPlugin":{"abi":[{"inputs":[],"name":"OnlyAdministrator","type":"error"},{"inputs":[],"name":"OnlyPluginFactory","type":"error"},{"inputs":[],"name":"OnlyPool","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"uint256","name":"paid0","type":"uint256"},{"internalType":"uint256","name":"paid1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"afterFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"}],"name":"afterInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"int128","name":"desiredLiquidityDelta","type":"int128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"afterModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountRequired","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"afterSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"}],"name":"beforeInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"int128","name":"desiredLiquidityDelta","type":"int128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeModifyPosition","outputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"},{"internalType":"uint24","name":"pluginFee","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountRequired","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"bool","name":"withPaymentInAdvance","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeSwap","outputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"},{"internalType":"uint24","name":"feeOverride","type":"uint24"},{"internalType":"uint24","name":"pluginFee","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"collectPluginFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultPluginConfig","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getActiveModuleNames","outputs":[{"internalType":"string[]","name":"moduleNames","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pluginFee0","type":"uint256"},{"internalType":"uint256","name":"pluginFee1","type":"uint256"}],"name":"handlePluginFee","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)":"343d37ff","afterInitialize(address,uint160,int24)":"82dd6522","afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)":"d6852010","afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)":"9cb5a963","beforeFlash(address,address,uint256,uint256,bytes)":"8de0a8ee","beforeInitialize(address,uint160)":"636fd804","beforeModifyPosition(address,address,int24,int24,int128,bytes)":"5e2411b2","beforeSwap(address,address,bool,int256,uint160,bool,bytes)":"029c1cb7","collectPluginFee(address,uint256,address)":"e72c652d","defaultPluginConfig()":"689ea370","getActiveModuleNames()":"b6f78cc9","handlePluginFee(uint256,uint256)":"aa6b14bb"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"OnlyAdministrator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyPluginFactory\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyPool\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paid0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paid1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"afterFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"afterInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"desiredLiquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"afterModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"afterSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"}],\"name\":\"beforeInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"desiredLiquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"bool\",\"name\":\"withPaymentInAdvance\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"feeOverride\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"collectPluginFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultPluginConfig\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getActiveModuleNames\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"moduleNames\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pluginFee0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pluginFee1\",\"type\":\"uint256\"}],\"name\":\"handlePluginFee\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)\":{\"params\":{\"amount0\":\"The amount of token0 being requested for flash\",\"amount1\":\"The amount of token1 being requested for flash\",\"data\":\"Data that passed through the callback\",\"paid0\":\"The amount of token0 being paid for flash\",\"paid1\":\"The amount of token1 being paid for flash\",\"recipient\":\"The address which will receive the token0 and token1 amounts\",\"sender\":\"The initial msg.sender for the flash call\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"afterInitialize(address,uint160,int24)\":{\"params\":{\"sender\":\"The initial msg.sender for the initialize call\",\"sqrtPriceX96\":\"The sqrt(price) of the pool as a Q64.96\",\"tick\":\"The current tick after the state of a pool is initialized\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)\":{\"params\":{\"amount0\":\"The amount of token0 sent to the recipient or was paid to mint\",\"amount1\":\"The amount of token0 sent to the recipient or was paid to mint\",\"bottomTick\":\"The lower tick of the position\",\"data\":\"Data that passed through the callback\",\"desiredLiquidityDelta\":\"The desired amount of liquidity to mint/burn\",\"recipient\":\"Address to which the liquidity will be assigned in case of a mint or to which tokens will be sent in case of a burn\",\"sender\":\"The initial msg.sender for the modify position call\",\"topTick\":\"The upper tick of the position\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)\":{\"params\":{\"amount0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"amount1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\",\"amountRequired\":\"The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\",\"data\":\"Data that passed through the callback\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"sender\":\"The initial msg.sender for the swap call\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"beforeFlash(address,address,uint256,uint256,bytes)\":{\"params\":{\"amount0\":\"The amount of token0 being requested for flash\",\"amount1\":\"The amount of token1 being requested for flash\",\"data\":\"Data that passed through the callback\",\"recipient\":\"The address which will receive the token0 and token1 amounts\",\"sender\":\"The initial msg.sender for the flash call\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"beforeInitialize(address,uint160)\":{\"params\":{\"sender\":\"The initial msg.sender for the initialize call\",\"sqrtPriceX96\":\"The sqrt(price) of the pool as a Q64.96\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"beforeModifyPosition(address,address,int24,int24,int128,bytes)\":{\"params\":{\"bottomTick\":\"The lower tick of the position\",\"data\":\"Data that passed through the callback\",\"desiredLiquidityDelta\":\"The desired amount of liquidity to mint/burn\",\"recipient\":\"Address to which the liquidity will be assigned in case of a mint or to which tokens will be sent in case of a burn\",\"sender\":\"The initial msg.sender for the modify position call\",\"topTick\":\"The upper tick of the position\"},\"returns\":{\"selector\":\"The function selector for the hook\"}},\"beforeSwap(address,address,bool,int256,uint160,bool,bytes)\":{\"params\":{\"amountRequired\":\"The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\",\"data\":\"Data that passed through the callback\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"sender\":\"The initial msg.sender for the swap call\",\"withPaymentInAdvance\":\"The flag indicating whether the `swapWithPaymentInAdvance` method was called\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"selector\":\"The function selector for the hook\"}},\"collectPluginFee(address,uint256,address)\":{\"params\":{\"amount\":\"Amount of tokens\",\"recipient\":\"Recipient address\",\"token\":\"The token address\"}},\"defaultPluginConfig()\":{\"returns\":{\"_0\":\"config Each bit of the config is responsible for enabling/disabling the hooks. The last bit indicates whether the plugin contains dynamic fees logic\"}},\"getActiveModuleNames()\":{\"returns\":{\"moduleNames\":\"Array of active module names\"}},\"handlePluginFee(uint256,uint256)\":{\"params\":{\"pluginFee0\":\"Fee0 amount transferred to plugin\",\"pluginFee1\":\"Fee1 amount transferred to plugin\"},\"returns\":{\"_0\":\"bytes4 The function selector\"}}},\"title\":\"The interface for the BasePlugin\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)\":{\"notice\":\"The hook called after flash\"},\"afterInitialize(address,uint160,int24)\":{\"notice\":\"The hook called after the state of a pool is initialized\"},\"afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)\":{\"notice\":\"The hook called after a position is modified\"},\"afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)\":{\"notice\":\"The hook called after a swap\"},\"beforeFlash(address,address,uint256,uint256,bytes)\":{\"notice\":\"The hook called before flash\"},\"beforeInitialize(address,uint160)\":{\"notice\":\"The hook called before the state of a pool is initialized\"},\"beforeModifyPosition(address,address,int24,int24,int128,bytes)\":{\"notice\":\"The hook called before a position is modified\"},\"beforeSwap(address,address,bool,int256,uint160,bool,bytes)\":{\"notice\":\"The hook called before a swap\"},\"collectPluginFee(address,uint256,address)\":{\"notice\":\"Claim plugin fee\"},\"defaultPluginConfig()\":{\"notice\":\"Returns plugin config\"},\"getActiveModuleNames()\":{\"notice\":\"Get all active module names\"},\"handlePluginFee(uint256,uint256)\":{\"notice\":\"Handle plugin fee transfer on plugin contract\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol\":\"IAbstractPlugin\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol\":{\"keccak256\":\"0x71e54050ebdbcf299b5f7b5766d041442a79943c44e58edaeebe5f5624ca5165\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://ea13296f61bcc653ff70eb6529f2946f6714b2800115f684c591cef5466b92be\",\"dweb:/ipfs/QmZieuJwje1kFHzyH3Dq5a4QT5VWjEVYba7hVidWiosfcP\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol\":{\"keccak256\":\"0xdf59e7e2f672d08ecd361eb9a61fbd21ce70ad47e64f34dcd8bd8101e0e7aa5a\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7719afe8dbd6803ecda550933f66d447a6fd9866a1a1b06d8c1eaad6c6fa8a63\",\"dweb:/ipfs/QmPwz3RuSWYuQaHMzwF6HP4MAomD2ZoZRm6YRKhdWNhPWb\"]}},\"version\":1}"}},"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAlgebraPluginProxy.sol":{"IAlgebraPluginProxy":{"abi":[{"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"pool()":"16f0115b"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"pool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAlgebraPluginProxy.sol\":\"IAlgebraPluginProxy\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAlgebraPluginProxy.sol\":{\"keccak256\":\"0xb48c9713e84cb8e652ce2d1b6c0986ac06bbf53256f442e9e98d34e84ffea2ad\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://102ede8adf1a8367f36364a84afa896fc36b03e90172a70dfef7e9c8af9f0280\",\"dweb:/ipfs/QmPsXH7X7jX5WcsnoTwRJXcoaAi2zMTAD4PhR3EX9jQcan\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol":{"Timestamp":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Can be overridden in tests to make testing easier\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Abstract contract with modified blockTimestamp functionality\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Allows the pool and other contracts to get a timestamp truncated to 32 bits\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol\":\"Timestamp\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol\":{\"keccak256\":\"0x28e2aac84d585bbe96ecb9d5cd124fa7cd5929584c70e43a7c96f6faa93022d3\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d1347582a9d12cf03fc99ca899f7788f9223773be12c35aa2b8c2145d2e6a2c8\",\"dweb:/ipfs/QmYDrse9BuFsrwHxAZdghycY9F6XQfGDrm8ZifUfFnx2n3\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol":{"IAlgebraFactory":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"deployer","type":"address"},{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"CustomPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"newDefaultCommunityFee","type":"uint16"}],"name":"DefaultCommunityFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"newDefaultFee","type":"uint16"}],"name":"DefaultFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"defaultPluginFactoryAddress","type":"address"}],"name":"DefaultPluginFactory","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"int24","name":"newDefaultTickspacing","type":"int24"}],"name":"DefaultTickspacing","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"Pool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RenounceOwnershipFinish","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"finishTimestamp","type":"uint256"}],"name":"RenounceOwnershipStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RenounceOwnershipStop","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newVaultFactory","type":"address"}],"name":"VaultFactory","type":"event"},{"inputs":[],"name":"CUSTOM_POOL_DEPLOYER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POOLS_ADMINISTRATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POOL_INIT_CODE_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"customDeployer","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"}],"name":"computeCustomPoolAddress","outputs":[{"internalType":"address","name":"customPool","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"}],"name":"computePoolAddress","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"deployer","type":"address"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"createCustomPool","outputs":[{"internalType":"address","name":"customPool","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"createPool","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"customDeployer","type":"address"},{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"customPoolByPair","outputs":[{"internalType":"address","name":"customPool","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultCommunityFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultConfigurationForPool","outputs":[{"internalType":"uint16","name":"communityFee","type":"uint16"},{"internalType":"int24","name":"tickSpacing","type":"int24"},{"internalType":"uint16","name":"fee","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultPluginFactory","outputs":[{"internalType":"contract IAlgebraPluginFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultTickspacing","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRoleOrOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"poolByPair","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolDeployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnershipStartTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"newDefaultCommunityFee","type":"uint16"}],"name":"setDefaultCommunityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newDefaultFee","type":"uint16"}],"name":"setDefaultFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDefaultPluginFactory","type":"address"}],"name":"setDefaultPluginFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"newDefaultTickspacing","type":"int24"}],"name":"setDefaultTickspacing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newVaultFactory","type":"address"}],"name":"setVaultFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startRenounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopRenounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultFactory","outputs":[{"internalType":"contract IAlgebraVaultFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"CUSTOM_POOL_DEPLOYER()":"07810754","POOLS_ADMINISTRATOR_ROLE()":"b500a48b","POOL_INIT_CODE_HASH()":"dc6fd8ab","computeCustomPoolAddress(address,address,address)":"1ba89df4","computePoolAddress(address,address)":"d8ed2241","createCustomPool(address,address,address,address,bytes)":"dbbf3db4","createPool(address,address,bytes)":"321935c6","customPoolByPair(address,address,address)":"23da36cc","defaultCommunityFee()":"2f8a39dd","defaultConfigurationForPool()":"25b355d6","defaultFee()":"5a6c72d0","defaultPluginFactory()":"d0ad2792","defaultTickspacing()":"29bc3446","hasRoleOrOwner(bytes32,address)":"e8ae2b69","owner()":"8da5cb5b","poolByPair(address,address)":"d9a641e1","poolDeployer()":"3119049a","renounceOwnershipStartTimestamp()":"084bfff9","setDefaultCommunityFee(uint16)":"8d5a8711","setDefaultFee(uint16)":"77326584","setDefaultPluginFactory(address)":"2939dd97","setDefaultTickspacing(int24)":"f09489ac","setVaultFactory(address)":"3ea7fbdb","startRenounceOwnership()":"469388c4","stopRenounceOwnership()":"238a1d74","vaultFactory()":"d8a06f73"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"CustomPool\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newDefaultCommunityFee\",\"type\":\"uint16\"}],\"name\":\"DefaultCommunityFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newDefaultFee\",\"type\":\"uint16\"}],\"name\":\"DefaultFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"defaultPluginFactoryAddress\",\"type\":\"address\"}],\"name\":\"DefaultPluginFactory\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"newDefaultTickspacing\",\"type\":\"int24\"}],\"name\":\"DefaultTickspacing\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"Pool\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"RenounceOwnershipFinish\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"finishTimestamp\",\"type\":\"uint256\"}],\"name\":\"RenounceOwnershipStart\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"RenounceOwnershipStop\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newVaultFactory\",\"type\":\"address\"}],\"name\":\"VaultFactory\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CUSTOM_POOL_DEPLOYER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"POOLS_ADMINISTRATOR_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"POOL_INIT_CODE_HASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"customDeployer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"}],\"name\":\"computeCustomPoolAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"customPool\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"}],\"name\":\"computePoolAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"createCustomPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"customPool\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"createPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"customDeployer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"customPoolByPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"customPool\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultCommunityFee\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultConfigurationForPool\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"communityFee\",\"type\":\"uint16\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"fee\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultFee\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultPluginFactory\",\"outputs\":[{\"internalType\":\"contract IAlgebraPluginFactory\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultTickspacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRoleOrOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"poolByPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolDeployer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnershipStartTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newDefaultCommunityFee\",\"type\":\"uint16\"}],\"name\":\"setDefaultCommunityFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newDefaultFee\",\"type\":\"uint16\"}],\"name\":\"setDefaultFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newDefaultPluginFactory\",\"type\":\"address\"}],\"name\":\"setDefaultPluginFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"newDefaultTickspacing\",\"type\":\"int24\"}],\"name\":\"setDefaultTickspacing\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newVaultFactory\",\"type\":\"address\"}],\"name\":\"setVaultFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startRenounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stopRenounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vaultFactory\",\"outputs\":[{\"internalType\":\"contract IAlgebraVaultFactory\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"events\":{\"CustomPool(address,address,address,address)\":{\"params\":{\"deployer\":\"The corresponding custom deployer contract\",\"pool\":\"The address of the created pool\",\"token0\":\"The first token of the pool by address sort order\",\"token1\":\"The second token of the pool by address sort order\"}},\"DefaultCommunityFee(uint16)\":{\"params\":{\"newDefaultCommunityFee\":\"The new default community fee value\"}},\"DefaultFee(uint16)\":{\"params\":{\"newDefaultFee\":\"The new default fee value\"}},\"DefaultPluginFactory(address)\":{\"params\":{\"defaultPluginFactoryAddress\":\"The new defaultPluginFactory address\"}},\"DefaultTickspacing(int24)\":{\"params\":{\"newDefaultTickspacing\":\"The new default tickspacing value\"}},\"Pool(address,address,address)\":{\"params\":{\"pool\":\"The address of the created pool\",\"token0\":\"The first token of the pool by address sort order\",\"token1\":\"The second token of the pool by address sort order\"}},\"RenounceOwnershipFinish(uint256)\":{\"params\":{\"timestamp\":\"The timestamp of ownership renouncement\"}},\"RenounceOwnershipStart(uint256,uint256)\":{\"params\":{\"finishTimestamp\":\"The timestamp when ownership renounce will be possible to finish\",\"timestamp\":\"The timestamp of event\"}},\"RenounceOwnershipStop(uint256)\":{\"params\":{\"timestamp\":\"The timestamp of event\"}},\"VaultFactory(address)\":{\"params\":{\"newVaultFactory\":\"The new vaultFactory address\"}}},\"kind\":\"dev\",\"methods\":{\"CUSTOM_POOL_DEPLOYER()\":{\"returns\":{\"_0\":\"The hash corresponding to this role\"}},\"POOLS_ADMINISTRATOR_ROLE()\":{\"returns\":{\"_0\":\"The hash corresponding to this role\"}},\"POOL_INIT_CODE_HASH()\":{\"details\":\"the hash value changes with any change in the pool bytecode\",\"returns\":{\"_0\":\"Keccak256 hash of AlgebraPool contract init bytecode\"}},\"computeCustomPoolAddress(address,address,address)\":{\"details\":\"The method does not check if such a pool has been created\",\"params\":{\"customDeployer\":\"the address of custom plugin deployer\",\"token0\":\"first token\",\"token1\":\"second token\"},\"returns\":{\"customPool\":\"The contract address of the Algebra pool\"}},\"computePoolAddress(address,address)\":{\"details\":\"The method does not check if such a pool has been created\",\"params\":{\"token0\":\"first token\",\"token1\":\"second token\"},\"returns\":{\"pool\":\"The contract address of the Algebra pool\"}},\"createCustomPool(address,address,address,address,bytes)\":{\"details\":\"tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. The call will revert if the pool already exists or the token arguments are invalid.\",\"params\":{\"creator\":\"The initiator of custom pool creation\",\"data\":\"The additional data bytes\",\"deployer\":\"The address of plugin deployer, also used for custom pool address calculation\",\"tokenA\":\"One of the two tokens in the desired pool\",\"tokenB\":\"The other of the two tokens in the desired pool\"},\"returns\":{\"customPool\":\"The address of the newly created custom pool\"}},\"createPool(address,address,bytes)\":{\"details\":\"tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. The call will revert if the pool already exists or the token arguments are invalid.\",\"params\":{\"data\":\"Data for plugin creation\",\"tokenA\":\"One of the two tokens in the desired pool\",\"tokenB\":\"The other of the two tokens in the desired pool\"},\"returns\":{\"pool\":\"The address of the newly created pool\"}},\"customPoolByPair(address,address,address)\":{\"details\":\"tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\",\"params\":{\"customDeployer\":\"The address of custom plugin deployer\",\"tokenA\":\"The contract address of either token0 or token1\",\"tokenB\":\"The contract address of the other token\"},\"returns\":{\"customPool\":\"The pool address\"}},\"defaultCommunityFee()\":{\"returns\":{\"_0\":\"Fee which will be set at the creation of the pool\"}},\"defaultConfigurationForPool()\":{\"returns\":{\"communityFee\":\"which will be set at the creation of the pool\",\"fee\":\"which will be set at the creation of the pool\",\"tickSpacing\":\"which will be set at the creation of the pool\"}},\"defaultFee()\":{\"returns\":{\"_0\":\"Fee which will be set at the creation of the pool\"}},\"defaultPluginFactory()\":{\"details\":\"This contract is used to automatically set a plugin address in new liquidity pools\",\"returns\":{\"_0\":\"Algebra plugin factory\"}},\"defaultTickspacing()\":{\"returns\":{\"_0\":\"Tickspacing which will be set at the creation of the pool\"}},\"hasRoleOrOwner(bytes32,address)\":{\"params\":{\"account\":\"The address for which the role is checked\",\"role\":\"The hash corresponding to the role\"},\"returns\":{\"_0\":\"bool Whether the address has this role or the owner role or not\"}},\"owner()\":{\"details\":\"Can be changed by the current owner via transferOwnership(address newOwner)\",\"returns\":{\"_0\":\"The address of the factory owner\"}},\"poolByPair(address,address)\":{\"details\":\"tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\",\"params\":{\"tokenA\":\"The contract address of either token0 or token1\",\"tokenB\":\"The contract address of the other token\"},\"returns\":{\"pool\":\"The pool address\"}},\"poolDeployer()\":{\"returns\":{\"_0\":\"The address of the poolDeployer\"}},\"renounceOwnershipStartTimestamp()\":{\"returns\":{\"timestamp\":\"The timestamp of the beginning of the renounceOwnership process\"}},\"setDefaultCommunityFee(uint16)\":{\"details\":\"updates default community fee for new pools\",\"params\":{\"newDefaultCommunityFee\":\"The new community fee, _must_ be <= MAX_COMMUNITY_FEE\"}},\"setDefaultFee(uint16)\":{\"details\":\"updates default fee for new pools\",\"params\":{\"newDefaultFee\":\"The new  fee, _must_ be <= MAX_DEFAULT_FEE\"}},\"setDefaultPluginFactory(address)\":{\"details\":\"updates pluginFactory address\",\"params\":{\"newDefaultPluginFactory\":\"address of new plugin factory\"}},\"setDefaultTickspacing(int24)\":{\"details\":\"updates default tickspacing for new pools\",\"params\":{\"newDefaultTickspacing\":\"The new tickspacing, _must_ be <= MAX_TICK_SPACING and >= MIN_TICK_SPACING\"}},\"setVaultFactory(address)\":{\"details\":\"updates vaultFactory address\",\"params\":{\"newVaultFactory\":\"address of new vault factory\"}},\"vaultFactory()\":{\"details\":\"This contract is used to automatically set a vault address in new liquidity pools\",\"returns\":{\"_0\":\"Algebra vault factory\"}}},\"title\":\"The interface for the Algebra Factory\",\"version\":1},\"userdoc\":{\"events\":{\"CustomPool(address,address,address,address)\":{\"notice\":\"Emitted when a pool is created\"},\"DefaultCommunityFee(uint16)\":{\"notice\":\"Emitted when the default community fee is changed\"},\"DefaultFee(uint16)\":{\"notice\":\"Emitted when the default fee is changed\"},\"DefaultPluginFactory(address)\":{\"notice\":\"Emitted when the defaultPluginFactory address is changed\"},\"DefaultTickspacing(int24)\":{\"notice\":\"Emitted when the default tickspacing is changed\"},\"Pool(address,address,address)\":{\"notice\":\"Emitted when a pool is created\"},\"RenounceOwnershipFinish(uint256)\":{\"notice\":\"Emitted when a process of ownership renounce finished\"},\"RenounceOwnershipStart(uint256,uint256)\":{\"notice\":\"Emitted when a process of ownership renounce is started\"},\"RenounceOwnershipStop(uint256)\":{\"notice\":\"Emitted when a process of ownership renounce cancelled\"},\"VaultFactory(address)\":{\"notice\":\"Emitted when the vaultFactory address is changed\"}},\"kind\":\"user\",\"methods\":{\"CUSTOM_POOL_DEPLOYER()\":{\"notice\":\"role that can call `createCustomPool` function\"},\"POOLS_ADMINISTRATOR_ROLE()\":{\"notice\":\"role that can change communityFee and tickspacing in pools\"},\"POOL_INIT_CODE_HASH()\":{\"notice\":\"returns keccak256 of AlgebraPool init bytecode.\"},\"computeCustomPoolAddress(address,address,address)\":{\"notice\":\"Deterministically computes the custom pool address given the customDeployer, token0 and token1\"},\"computePoolAddress(address,address)\":{\"notice\":\"Deterministically computes the pool address given the token0 and token1\"},\"createCustomPool(address,address,address,address,bytes)\":{\"notice\":\"Creates a custom pool for the given two tokens using `deployer` contract\"},\"createPool(address,address,bytes)\":{\"notice\":\"Creates a pool for the given two tokens\"},\"customPoolByPair(address,address,address)\":{\"notice\":\"Returns the custom pool address for a customDeployer and a given pair of tokens, or address 0 if it does not exist\"},\"defaultCommunityFee()\":{\"notice\":\"Returns the default community fee\"},\"defaultConfigurationForPool()\":{\"notice\":\"Returns the default communityFee, tickspacing, fee and communityFeeVault for pool\"},\"defaultFee()\":{\"notice\":\"Returns the default fee\"},\"defaultPluginFactory()\":{\"notice\":\"Return the current pluginFactory address\"},\"defaultTickspacing()\":{\"notice\":\"Returns the default tickspacing\"},\"hasRoleOrOwner(bytes32,address)\":{\"notice\":\"Returns `true` if `account` has been granted `role` or `account` is owner.\"},\"owner()\":{\"notice\":\"Returns the current owner of the factory\"},\"poolByPair(address,address)\":{\"notice\":\"Returns the pool address for a given pair of tokens, or address 0 if it does not exist\"},\"poolDeployer()\":{\"notice\":\"Returns the current poolDeployerAddress\"},\"startRenounceOwnership()\":{\"notice\":\"Starts process of renounceOwnership. After that, a certain period of time must pass before the ownership renounce can be completed.\"},\"stopRenounceOwnership()\":{\"notice\":\"Stops process of renounceOwnership and removes timer.\"},\"vaultFactory()\":{\"notice\":\"Return the current vaultFactory address\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol\":\"IAlgebraFactory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol\":{\"keccak256\":\"0xb87bef911483f054559e6567a5a958200131b5101fbcee1ed7daefcfc082faf7\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://46c8f76cde3c16aed0446e98dc61ddb196288652f6a8735ed87d6e53a13b4142\",\"dweb:/ipfs/Qmd7omugWuFrjrCcwfeRQbeUS1FhqvhscTij4xtqCmjNKG\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":{\"keccak256\":\"0xf1cc5f09fc738bf41381fdf6864919c07965f25e715af6982df54605ce3a32fc\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://6fa8803e45159a6c404fd714321bc2ba0e010e76e3755594628f0c0bc9204182\",\"dweb:/ipfs/QmSAtmyH38VtzgycYTjGF3Y5aWG6DPjWD3JDjGVAn4fi2m\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol\":{\"keccak256\":\"0xcdaae6cd6af79c4f344e673fe886a980ef5203b15b49f7a466c336c0152ce6ae\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://fa2d3073bd4ca013e2769cf0fa5b68f32cec4fa53a6cc66adb59d86e6293cf15\",\"dweb:/ipfs/QmcwveJdf3JLAPfFZShijKTTxMTP4joDDuSuFboXBe711S\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol":{"IAlgebraPool":{"abi":[{"inputs":[],"name":"alreadyInitialized","type":"error"},{"inputs":[],"name":"arithmeticError","type":"error"},{"inputs":[],"name":"bottomTickLowerThanMIN","type":"error"},{"inputs":[],"name":"dynamicFeeActive","type":"error"},{"inputs":[],"name":"dynamicFeeDisabled","type":"error"},{"inputs":[],"name":"flashInsufficientPaid0","type":"error"},{"inputs":[],"name":"flashInsufficientPaid1","type":"error"},{"inputs":[],"name":"incorrectPluginFee","type":"error"},{"inputs":[],"name":"insufficientInputAmount","type":"error"},{"inputs":[],"name":"invalidAmountRequired","type":"error"},{"inputs":[{"internalType":"bytes4","name":"expectedSelector","type":"bytes4"}],"name":"invalidHookResponse","type":"error"},{"inputs":[],"name":"invalidLimitSqrtPrice","type":"error"},{"inputs":[],"name":"invalidNewCommunityFee","type":"error"},{"inputs":[],"name":"invalidNewTickSpacing","type":"error"},{"inputs":[],"name":"liquidityAdd","type":"error"},{"inputs":[],"name":"liquidityOverflow","type":"error"},{"inputs":[],"name":"liquiditySub","type":"error"},{"inputs":[],"name":"locked","type":"error"},{"inputs":[],"name":"notAllowed","type":"error"},{"inputs":[],"name":"notInitialized","type":"error"},{"inputs":[],"name":"pluginIsNotConnected","type":"error"},{"inputs":[],"name":"priceOutOfRange","type":"error"},{"inputs":[],"name":"tickInvalidLinks","type":"error"},{"inputs":[],"name":"tickIsNotInitialized","type":"error"},{"inputs":[],"name":"tickIsNotSpaced","type":"error"},{"inputs":[],"name":"tickOutOfRange","type":"error"},{"inputs":[],"name":"topTickAboveMAX","type":"error"},{"inputs":[],"name":"topTickLowerOrEqBottomTick","type":"error"},{"inputs":[],"name":"transferFailed","type":"error"},{"inputs":[],"name":"zeroAmountRequired","type":"error"},{"inputs":[],"name":"zeroLiquidityActual","type":"error"},{"inputs":[],"name":"zeroLiquidityDesired","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"bottomTick","type":"int24"},{"indexed":true,"internalType":"int24","name":"topTick","type":"int24"},{"indexed":false,"internalType":"uint128","name":"liquidityAmount","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint24","name":"pluginFee","type":"uint24"}],"name":"BurnFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"int24","name":"bottomTick","type":"int24"},{"indexed":true,"internalType":"int24","name":"topTick","type":"int24"},{"indexed":false,"internalType":"uint128","name":"amount0","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"amount1","type":"uint128"}],"name":"Collect","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"communityFeeNew","type":"uint16"}],"name":"CommunityFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newCommunityVault","type":"address"}],"name":"CommunityVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"ExcessTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"fee","type":"uint16"}],"name":"Fee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paid0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paid1","type":"uint256"}],"name":"Flash","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint160","name":"price","type":"uint160"},{"indexed":false,"internalType":"int24","name":"tick","type":"int24"}],"name":"Initialize","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"bottomTick","type":"int24"},{"indexed":true,"internalType":"int24","name":"topTick","type":"int24"},{"indexed":false,"internalType":"uint128","name":"liquidityAmount","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newPluginAddress","type":"address"}],"name":"Plugin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"newPluginConfig","type":"uint8"}],"name":"PluginConfig","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Skim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"int256","name":"amount0","type":"int256"},{"indexed":false,"internalType":"int256","name":"amount1","type":"int256"},{"indexed":false,"internalType":"uint160","name":"price","type":"uint160"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"int24","name":"tick","type":"int24"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint24","name":"overrideFee","type":"uint24"},{"indexed":false,"internalType":"uint24","name":"pluginFee","type":"uint24"}],"name":"SwapFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"int24","name":"newTickSpacing","type":"int24"}],"name":"TickSpacing","type":"event"},{"inputs":[{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"amount0Requested","type":"uint128"},{"internalType":"uint128","name":"amount1Requested","type":"uint128"}],"name":"collect","outputs":[{"internalType":"uint128","name":"amount0","type":"uint128"},{"internalType":"uint128","name":"amount1","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"communityVault","outputs":[{"internalType":"address","name":"communityVaultAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint16","name":"currentFee","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCommunityFeePending","outputs":[{"internalType":"uint128","name":"communityFeePending0","type":"uint128"},{"internalType":"uint128","name":"communityFeePending1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPluginFeePending","outputs":[{"internalType":"uint128","name":"pluginFeePending0","type":"uint128"},{"internalType":"uint128","name":"pluginFeePending1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint128","name":"reserve0","type":"uint128"},{"internalType":"uint128","name":"reserve1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalState","outputs":[{"internalType":"uint160","name":"price","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"},{"internalType":"uint16","name":"lastFee","type":"uint16"},{"internalType":"uint8","name":"pluginConfig","type":"uint8"},{"internalType":"uint16","name":"communityFee","type":"uint16"},{"internalType":"bool","name":"unlocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint160","name":"initialPrice","type":"uint160"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isUnlocked","outputs":[{"internalType":"bool","name":"unlocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastFeeTransferTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidity","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLiquidityPerTick","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"leftoversRecipient","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"liquidityDesired","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"uint128","name":"liquidityActual","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nextTickGlobal","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plugin","outputs":[{"internalType":"address","name":"pluginAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"key","type":"bytes32"}],"name":"positions","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"innerFeeGrowth0Token","type":"uint256"},{"internalType":"uint256","name":"innerFeeGrowth1Token","type":"uint256"},{"internalType":"uint128","name":"fees0","type":"uint128"},{"internalType":"uint128","name":"fees1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prevTickGlobal","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safelyGetStateOfAMM","outputs":[{"internalType":"uint160","name":"sqrtPrice","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"},{"internalType":"uint16","name":"lastFee","type":"uint16"},{"internalType":"uint8","name":"pluginConfig","type":"uint8"},{"internalType":"uint128","name":"activeLiquidity","type":"uint128"},{"internalType":"int24","name":"nextTick","type":"int24"},{"internalType":"int24","name":"previousTick","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"newCommunityFee","type":"uint16"}],"name":"setCommunityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newCommunityVault","type":"address"}],"name":"setCommunityVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newFee","type":"uint16"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPluginAddress","type":"address"}],"name":"setPlugin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newConfig","type":"uint8"}],"name":"setPluginConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"newTickSpacing","type":"int24"}],"name":"setTickSpacing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"skim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountRequired","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"leftoversRecipient","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountToSell","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapWithPaymentInAdvance","outputs":[{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tickSpacing","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int16","name":"wordPosition","type":"int16"}],"name":"tickTable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tickTreeRoot","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int16","name":"","type":"int16"}],"name":"tickTreeSecondLayer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"tick","type":"int24"}],"name":"ticks","outputs":[{"internalType":"uint256","name":"liquidityTotal","type":"uint256"},{"internalType":"int128","name":"liquidityDelta","type":"int128"},{"internalType":"int24","name":"prevTick","type":"int24"},{"internalType":"int24","name":"nextTick","type":"int24"},{"internalType":"uint256","name":"outerFeeGrowth0Token","type":"uint256"},{"internalType":"uint256","name":"outerFeeGrowth1Token","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeGrowth0Token","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeGrowth1Token","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"burn(int24,int24,uint128,bytes)":"3b3bc70e","collect(address,int24,int24,uint128,uint128)":"4f1eb3d8","communityVault()":"53e97868","factory()":"c45a0155","fee()":"ddca3f43","flash(address,uint256,uint256,bytes)":"490e6cbc","getCommunityFeePending()":"7bd78025","getPluginFeePending()":"a1eded87","getReserves()":"0902f1ac","globalState()":"e76c01e4","initialize(uint160)":"f637731d","isUnlocked()":"8380edb7","lastFeeTransferTimestamp()":"77f8c3a9","liquidity()":"1a686502","maxLiquidityPerTick()":"70cf754a","mint(address,address,int24,int24,uint128,bytes)":"aafe29c0","nextTickGlobal()":"d5c35a7e","plugin()":"ef01df4f","positions(bytes32)":"514ea4bf","prevTickGlobal()":"050a4d21","safelyGetStateOfAMM()":"97ce1c51","setCommunityFee(uint16)":"240a875a","setCommunityVault(address)":"d8544cf3","setFee(uint16)":"8e005553","setPlugin(address)":"cc1f97cf","setPluginConfig(uint8)":"bca57f81","setTickSpacing(int24)":"f085a610","skim()":"1dd19cb4","swap(address,bool,int256,uint160,bytes)":"128acb08","swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)":"9e4e0227","sync()":"fff6cae9","tickSpacing()":"d0c93a7c","tickTable(int16)":"c677e3e0","tickTreeRoot()":"578b9a36","tickTreeSecondLayer(int16)":"d8619037","ticks(int24)":"f30dba93","token0()":"0dfe1681","token1()":"d21220a7","totalFeeGrowth0Token()":"6378ae44","totalFeeGrowth1Token()":"ecdecf42"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"alreadyInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"arithmeticError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"bottomTickLowerThanMIN\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"dynamicFeeActive\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"dynamicFeeDisabled\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"flashInsufficientPaid0\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"flashInsufficientPaid1\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"incorrectPluginFee\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"insufficientInputAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidAmountRequired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"expectedSelector\",\"type\":\"bytes4\"}],\"name\":\"invalidHookResponse\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidLimitSqrtPrice\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidNewCommunityFee\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidNewTickSpacing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"liquidityAdd\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"liquidityOverflow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"liquiditySub\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"locked\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"notAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"notInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"pluginIsNotConnected\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"priceOutOfRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickInvalidLinks\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickIsNotInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickIsNotSpaced\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickOutOfRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"topTickAboveMAX\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"topTickLowerOrEqBottomTick\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"transferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"zeroAmountRequired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"zeroLiquidityActual\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"zeroLiquidityDesired\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"name\":\"BurnFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"name\":\"Collect\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"communityFeeNew\",\"type\":\"uint16\"}],\"name\":\"CommunityFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newCommunityVault\",\"type\":\"address\"}],\"name\":\"CommunityVault\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"ExcessTokens\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"fee\",\"type\":\"uint16\"}],\"name\":\"Fee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid1\",\"type\":\"uint256\"}],\"name\":\"Flash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Initialize\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newPluginAddress\",\"type\":\"address\"}],\"name\":\"Plugin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"newPluginConfig\",\"type\":\"uint8\"}],\"name\":\"PluginConfig\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Skim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"overrideFee\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"name\":\"SwapFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"newTickSpacing\",\"type\":\"int24\"}],\"name\":\"TickSpacing\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount0Requested\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1Requested\",\"type\":\"uint128\"}],\"name\":\"collect\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"communityVault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"communityVaultAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fee\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"currentFee\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"flash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCommunityFeePending\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"communityFeePending0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"communityFeePending1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPluginFeePending\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"pluginFeePending0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"pluginFeePending1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"reserve0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"reserve1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalState\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"lastFee\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"pluginConfig\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"communityFee\",\"type\":\"uint16\"},{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"initialPrice\",\"type\":\"uint160\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isUnlocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastFeeTransferTimestamp\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidity\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxLiquidityPerTick\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"leftoversRecipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"liquidityDesired\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidityActual\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextTickGlobal\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"plugin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pluginAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"name\":\"positions\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"innerFeeGrowth0Token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"innerFeeGrowth1Token\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"fees0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"fees1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"prevTickGlobal\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"safelyGetStateOfAMM\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"lastFee\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"pluginConfig\",\"type\":\"uint8\"},{\"internalType\":\"uint128\",\"name\":\"activeLiquidity\",\"type\":\"uint128\"},{\"internalType\":\"int24\",\"name\":\"nextTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"previousTick\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newCommunityFee\",\"type\":\"uint16\"}],\"name\":\"setCommunityFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newCommunityVault\",\"type\":\"address\"}],\"name\":\"setCommunityVault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newFee\",\"type\":\"uint16\"}],\"name\":\"setFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPluginAddress\",\"type\":\"address\"}],\"name\":\"setPlugin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newConfig\",\"type\":\"uint8\"}],\"name\":\"setPluginConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"newTickSpacing\",\"type\":\"int24\"}],\"name\":\"setTickSpacing\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"skim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"leftoversRecipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountToSell\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swapWithPaymentInAdvance\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sync\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickSpacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"wordPosition\",\"type\":\"int16\"}],\"name\":\"tickTable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickTreeRoot\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"\",\"type\":\"int16\"}],\"name\":\"tickTreeSecondLayer\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"ticks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidityTotal\",\"type\":\"uint256\"},{\"internalType\":\"int128\",\"name\":\"liquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"int24\",\"name\":\"prevTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"nextTick\",\"type\":\"int24\"},{\"internalType\":\"uint256\",\"name\":\"outerFeeGrowth0Token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"outerFeeGrowth1Token\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalFeeGrowth0Token\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalFeeGrowth1Token\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The pool interface is broken up into many smaller pieces. This interface includes custom error definitions and cannot be used in older versions of Solidity. For older versions of Solidity use #IAlgebraPoolLegacy Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"errors\":{\"invalidHookResponse(bytes4)\":[{\"params\":{\"expectedSelector\":\"The expected selector\"}}]},\"events\":{\"Burn(address,int24,int24,uint128,uint256,uint256)\":{\"details\":\"Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect\",\"params\":{\"amount0\":\"The amount of token0 withdrawn\",\"amount1\":\"The amount of token1 withdrawn\",\"bottomTick\":\"The lower tick of the position\",\"liquidityAmount\":\"The amount of liquidity to remove\",\"owner\":\"The owner of the position for which liquidity is removed\",\"topTick\":\"The upper tick of the position\"}},\"BurnFee(address,uint24)\":{\"params\":{\"owner\":\"The owner of the position\",\"pluginFee\":\"The fee to be sent to the plugin\"}},\"Collect(address,address,int24,int24,uint128,uint128)\":{\"params\":{\"amount0\":\"The amount of token0 fees collected\",\"amount1\":\"The amount of token1 fees collected\",\"bottomTick\":\"The lower tick of the position\",\"owner\":\"The owner of the position for which fees are collected\",\"recipient\":\"The address that received fees\",\"topTick\":\"The upper tick of the position\"}},\"CommunityFee(uint16)\":{\"params\":{\"communityFeeNew\":\"The updated value of the community fee in thousandths (1e-3)\"}},\"CommunityVault(address)\":{\"params\":{\"newCommunityVault\":\"New community vault\"}},\"ExcessTokens(uint256,uint256)\":{\"details\":\"Fees after flash also will trigger this event due to mechanics of flash.\",\"params\":{\"amount0\":\"The excess of token0\",\"amount1\":\"The excess of token1\"}},\"Fee(uint16)\":{\"params\":{\"fee\":\"The current fee in hundredths of a bip, i.e. 1e-6\"}},\"Flash(address,address,uint256,uint256,uint256,uint256)\":{\"params\":{\"amount0\":\"The amount of token0 that was flashed\",\"amount1\":\"The amount of token1 that was flashed\",\"paid0\":\"The amount of token0 paid for the flash, which can exceed the amount0 plus the fee\",\"paid1\":\"The amount of token1 paid for the flash, which can exceed the amount1 plus the fee\",\"recipient\":\"The address that received the tokens from flash\",\"sender\":\"The address that initiated the swap call, and that received the callback\"}},\"Initialize(uint160,int24)\":{\"details\":\"Mint/Burn/Swaps cannot be emitted by the pool before Initialize\",\"params\":{\"price\":\"The initial sqrt price of the pool, as a Q64.96\",\"tick\":\"The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool\"}},\"Mint(address,address,int24,int24,uint128,uint256,uint256)\":{\"params\":{\"amount0\":\"How much token0 was required for the minted liquidity\",\"amount1\":\"How much token1 was required for the minted liquidity\",\"bottomTick\":\"The lower tick of the position\",\"liquidityAmount\":\"The amount of liquidity minted to the position range\",\"owner\":\"The owner of the position and recipient of any minted liquidity\",\"sender\":\"The address that minted the liquidity\",\"topTick\":\"The upper tick of the position\"}},\"Plugin(address)\":{\"params\":{\"newPluginAddress\":\"New plugin address\"}},\"PluginConfig(uint8)\":{\"params\":{\"newPluginConfig\":\"New plugin config\"}},\"Skim(address,uint256,uint256)\":{\"params\":{\"amount0\":\"The amount of token0\",\"amount1\":\"The amount of token1\",\"to\":\"THe receiver of tokens (plugin)\"}},\"Swap(address,address,int256,int256,uint160,uint128,int24)\":{\"params\":{\"amount0\":\"The delta of the token0 balance of the pool\",\"amount1\":\"The delta of the token1 balance of the pool\",\"liquidity\":\"The liquidity of the pool after the swap\",\"price\":\"The sqrt(price) of the pool after the swap, as a Q64.96\",\"recipient\":\"The address that received the output of the swap\",\"sender\":\"The address that initiated the swap call, and that received the callback\",\"tick\":\"The log base 1.0001 of price of the pool after the swap\"}},\"SwapFee(address,uint24,uint24)\":{\"params\":{\"overrideFee\":\"The fee to be applied to the trade\",\"pluginFee\":\"The fee to be sent to the plugin\",\"sender\":\"The address that initiated the swap \"}},\"TickSpacing(int24)\":{\"params\":{\"newTickSpacing\":\"The updated value of the new tick spacing\"}}},\"kind\":\"dev\",\"methods\":{\"burn(int24,int24,uint128,bytes)\":{\"details\":\"Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0Fees must be collected separately via a call to #collect\",\"params\":{\"amount\":\"How much liquidity to burn\",\"bottomTick\":\"The lower tick of the position for which to burn liquidity\",\"data\":\"Any data that should be passed through to the plugin\",\"topTick\":\"The upper tick of the position for which to burn liquidity\"},\"returns\":{\"amount0\":\"The amount of token0 sent to the recipient\",\"amount1\":\"The amount of token1 sent to the recipient\"}},\"collect(address,int24,int24,uint128,uint128)\":{\"details\":\"Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity. Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.\",\"params\":{\"amount0Requested\":\"How much token0 should be withdrawn from the fees owed\",\"amount1Requested\":\"How much token1 should be withdrawn from the fees owed\",\"bottomTick\":\"The lower tick of the position for which to collect fees\",\"recipient\":\"The address which should receive the fees collected\",\"topTick\":\"The upper tick of the position for which to collect fees\"},\"returns\":{\"amount0\":\"The amount of fees collected in token0\",\"amount1\":\"The amount of fees collected in token1\"}},\"communityVault()\":{\"returns\":{\"communityVaultAddress\":\"The communityVault address\"}},\"factory()\":{\"returns\":{\"_0\":\"The contract address\"}},\"fee()\":{\"details\":\"In case dynamic fee is enabled in the pool, this method will call the plugin to get the current fee. If the plugin implements complex fee logic, this method may return an incorrect value or revert. In this case, see the plugin implementation and related documentation.**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"currentFee\":\"The current pool fee value in hundredths of a bip, i.e. 1e-6\"}},\"flash(address,uint256,uint256,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraFlashCallback#algebraFlashCallbackAll excess tokens paid in the callback are distributed to currently in-range liquidity providers as an additional fee. If there are no in-range liquidity providers, the fee will be transferred to the first active provider in the future\",\"params\":{\"amount0\":\"The amount of token0 to send\",\"amount1\":\"The amount of token1 to send\",\"data\":\"Any data to be passed through to the callback\",\"recipient\":\"The address which will receive the token0 and token1 amounts\"}},\"getCommunityFeePending()\":{\"details\":\"Will be sent FEE_TRANSFER_FREQUENCY after communityFeeLastTimestamp\",\"returns\":{\"communityFeePending0\":\"The amount of token0 that will be sent to the vault\",\"communityFeePending1\":\"The amount of token1 that will be sent to the vault\"}},\"getPluginFeePending()\":{\"details\":\"Will be sent FEE_TRANSFER_FREQUENCY after feeLastTransferTimestamp\",\"returns\":{\"pluginFeePending0\":\"The amount of token0 that will be sent to the plugin\",\"pluginFeePending1\":\"The amount of token1 that will be sent to the plugin\"}},\"getReserves()\":{\"details\":\"If at any time the real balance is larger, the excess will be transferred to liquidity providers as additional fee. If the balance exceeds uint128, the excess will be sent to the communityVault.\",\"returns\":{\"reserve0\":\"The last known reserve of token0\",\"reserve1\":\"The last known reserve of token1\"}},\"globalState()\":{\"details\":\"**important security note: caller should check `unlocked` flag to prevent read-only reentrancy**\",\"returns\":{\"communityFee\":\"The community fee represented as a percent of all collected fee in thousandths, i.e. 1e-3 (so 100 is 10%)\",\"lastFee\":\"The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\",\"pluginConfig\":\"The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\",\"price\":\"The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\",\"tick\":\"The current tick of the pool, i.e. according to the last tick transition that was run This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\",\"unlocked\":\"Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\"}},\"initialize(uint160)\":{\"details\":\"Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 valueInitialization should be done in one transaction with pool creation to avoid front-running\",\"params\":{\"initialPrice\":\"The initial sqrt price of the pool as a Q64.96\"}},\"isUnlocked()\":{\"details\":\"can be used to prevent read-only reentrancy. This method just returns `globalState.unlocked` value\",\"returns\":{\"unlocked\":\"Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\"}},\"lastFeeTransferTimestamp()\":{\"returns\":{\"_0\":\"The timestamp truncated to 32 bits\"}},\"liquidity()\":{\"details\":\"This value has no relationship to the total liquidity across all ticks. Returned value cannot exceed type(uint128).max**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The current in range liquidity\"}},\"maxLiquidityPerTick()\":{\"details\":\"This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\",\"returns\":{\"_0\":\"The max amount of liquidity per tick\"}},\"mint(address,address,int24,int24,uint128,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraMintCallback#algebraMintCallback in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends on bottomTick, topTick, the amount of liquidity, and the current price.\",\"params\":{\"bottomTick\":\"The lower tick of the position in which to add liquidity\",\"data\":\"Any data that should be passed through to the callback\",\"leftoversRecipient\":\"The address which will receive potential surplus of paid tokens\",\"liquidityDesired\":\"The desired amount of liquidity to mint\",\"recipient\":\"The address for which the liquidity will be created\",\"topTick\":\"The upper tick of the position in which to add liquidity\"},\"returns\":{\"amount0\":\"The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback\",\"amount1\":\"The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback\",\"liquidityActual\":\"The actual minted amount of liquidity\"}},\"nextTickGlobal()\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The next initialized tick\"}},\"plugin()\":{\"details\":\"The plugin is subject to change\",\"returns\":{\"pluginAddress\":\"The address of currently used plugin\"}},\"positions(bytes32)\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"params\":{\"key\":\"The position's key is a packed concatenation of the owner address, bottomTick and topTick indexes\"},\"returns\":{\"fees0\":\"The computed amount of token0 owed to the position as of the last mint/burn/poke\",\"fees1\":\"The computed amount of token1 owed to the position as of the last mint/burn/poke\",\"innerFeeGrowth0Token\":\"Fee growth of token0 inside the tick range as of the last mint/burn/poke\",\"innerFeeGrowth1Token\":\"Fee growth of token1 inside the tick range as of the last mint/burn/poke\",\"liquidity\":\"The amount of liquidity in the position\"}},\"prevTickGlobal()\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The previous initialized tick\"}},\"safelyGetStateOfAMM()\":{\"details\":\"Several values exposed as a single method to save gas when accessed externally. **Important security note: this method checks reentrancy lock and should be preferred in most cases**.\",\"returns\":{\"activeLiquidity\":\" The currently in-range liquidity available to the pool\",\"lastFee\":\"The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\",\"nextTick\":\"The next initialized tick after current global tick\",\"pluginConfig\":\"The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\",\"previousTick\":\"The previous initialized tick before (or at) current global tick\",\"sqrtPrice\":\"The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\",\"tick\":\"The current global tick of the pool. May not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\"}},\"setCommunityFee(uint16)\":{\"params\":{\"newCommunityFee\":\"The new community fee percent in thousandths (1e-3)\"}},\"setCommunityVault(address)\":{\"details\":\"Community fee vault receives collected community fees. **accumulated but not yet sent to the vault community fees once will be sent to the `newCommunityVault` address**\",\"params\":{\"newCommunityVault\":\"The address of new community fee vault\"}},\"setFee(uint16)\":{\"params\":{\"newFee\":\"The new fee value\"}},\"setPlugin(address)\":{\"params\":{\"newPluginAddress\":\"The new plugin address\"}},\"setPluginConfig(uint8)\":{\"params\":{\"newConfig\":\"In the new configuration of the plugin, each bit of which is responsible for a particular hook.\"}},\"setTickSpacing(int24)\":{\"params\":{\"newTickSpacing\":\"The new tick spacing value\"}},\"skim()\":{\"details\":\"Only plugin can call this function\"},\"swap(address,bool,int256,uint160,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback\",\"params\":{\"amountRequired\":\"The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\",\"data\":\"Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"amount0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"amount1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\"}},\"swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback caller must send tokens in callback before swap calculation the actually sent amount of tokens is used for further calculations\",\"params\":{\"amountToSell\":\"The amount of the swap, only positive (exact input) amount allowed\",\"data\":\"Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\",\"leftoversRecipient\":\"The address which will receive potential surplus of paid tokens\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"amount0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"amount1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\"}},\"sync()\":{\"details\":\"Only plugin can call this function\"},\"tickSpacing()\":{\"details\":\"Ticks can only be initialized by new mints at multiples of this value e.g.: a tickSpacing of 60 means ticks can be initialized every 60th tick, i.e., ..., -120, -60, 0, 60, 120, ... However, tickspacing can be changed after the ticks have been initialized. This value is an int24 to avoid casting even though it is always positive.\",\"returns\":{\"_0\":\"The current tick spacing\"}},\"tickTable(int16)\":{\"params\":{\"wordPosition\":\"Index of 256-bits word with ticks\"},\"returns\":{\"_0\":\"The 256-bits word with packed ticks info\"}},\"tickTreeRoot()\":{\"details\":\"Each bit corresponds to one node in the second layer of tick tree: '1' if node has at least one active bit. **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The root of tick search tree as bitmap\"}},\"tickTreeSecondLayer(int16)\":{\"details\":\"Each bit in node corresponds to one node in the leafs layer (`tickTable`) of tick tree: '1' if leaf has at least one active bit. **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The node of tick search tree second layer\"}},\"ticks(int24)\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"params\":{\"tick\":\"The tick to look up\"},\"returns\":{\"liquidityDelta\":\"How much liquidity changes when the pool price crosses the tick\",\"liquidityTotal\":\"The total amount of position liquidity that uses the pool either as tick lower or tick upper\",\"nextTick\":\"The next tick in tick list\",\"outerFeeGrowth0Token\":\"The fee growth on the other side of the tick from the current tick in token0\",\"outerFeeGrowth1Token\":\"The fee growth on the other side of the tick from the current tick in token1 In addition, these values are only relative and must be used only in comparison to previous snapshots for a specific position.\",\"prevTick\":\"The previous tick in tick list\"}},\"token0()\":{\"returns\":{\"_0\":\"The token contract address\"}},\"token1()\":{\"returns\":{\"_0\":\"The token contract address\"}},\"totalFeeGrowth0Token()\":{\"details\":\"This value can overflow the uint256\",\"returns\":{\"_0\":\"The fee growth accumulator for token0\"}},\"totalFeeGrowth1Token()\":{\"details\":\"This value can overflow the uint256\",\"returns\":{\"_0\":\"The fee growth accumulator for token1\"}}},\"title\":\"The interface for a Algebra Pool\",\"version\":1},\"userdoc\":{\"errors\":{\"alreadyInitialized()\":[{\"notice\":\"Emitted if an attempt is made to initialize the pool twice\"}],\"arithmeticError()\":[{\"notice\":\"Emitted if arithmetic error occurred\"}],\"bottomTickLowerThanMIN()\":[{\"notice\":\"Emitted if the bottomTick param is lower than min allowed value\"}],\"dynamicFeeActive()\":[{\"notice\":\"Emitted if an attempt is made to manually change the fee value, but dynamic fee is enabled\"}],\"dynamicFeeDisabled()\":[{\"notice\":\"Emitted if an attempt is made by plugin to change the fee value, but dynamic fee is disabled\"}],\"flashInsufficientPaid0()\":[{\"notice\":\"Emitted if the pool received fewer tokens0 after flash than it should have\"}],\"flashInsufficientPaid1()\":[{\"notice\":\"Emitted if the pool received fewer tokens1 after flash than it should have\"}],\"incorrectPluginFee()\":[{\"notice\":\"Emitted if plugin fee param greater than fee/override fee\"}],\"insufficientInputAmount()\":[{\"notice\":\"Emitted if the pool received fewer tokens than it should have\"}],\"invalidAmountRequired()\":[{\"notice\":\"Emitted if invalid amount is passed as amountRequired to swap function\"}],\"invalidHookResponse(bytes4)\":[{\"notice\":\"Emitted if a plugin returns invalid selector after hook call\"}],\"invalidLimitSqrtPrice()\":[{\"notice\":\"Emitted if limitSqrtPrice param is incorrect\"}],\"invalidNewCommunityFee()\":[{\"notice\":\"Emitted if new community fee exceeds max allowed value\"}],\"invalidNewTickSpacing()\":[{\"notice\":\"Emitted if new tick spacing exceeds max allowed value\"}],\"liquidityAdd()\":[{\"notice\":\"Emitted if liquidity overflows\"}],\"liquidityOverflow()\":[{\"notice\":\"Emitted if the liquidity value associated with the tick exceeds MAX_LIQUIDITY_PER_TICK\"}],\"liquiditySub()\":[{\"notice\":\"Emitted if liquidity underflows\"}],\"locked()\":[{\"notice\":\"Emitted by the reentrancy guard\"}],\"notAllowed()\":[{\"notice\":\"Emitted if a method is called that is accessible only to the factory owner or dedicated role\"}],\"notInitialized()\":[{\"notice\":\"Emitted if an attempt is made to mint or swap in uninitialized pool\"}],\"pluginIsNotConnected()\":[{\"notice\":\"Emitted if an attempt is made to change the plugin configuration, but the plugin is not connected\"}],\"priceOutOfRange()\":[{\"notice\":\"Emitted if price is greater than the maximum or less than the minimum allowed value\"}],\"tickInvalidLinks()\":[{\"notice\":\"Emitted if there is an attempt to insert a new tick into the list of ticks with incorrect indexes of the previous and next ticks\"}],\"tickIsNotInitialized()\":[{\"notice\":\"Emitted if an attempt is made to interact with an uninitialized tick\"}],\"tickIsNotSpaced()\":[{\"notice\":\"Tick must be divisible by tickspacing\"}],\"tickOutOfRange()\":[{\"notice\":\"Emitted if tick is greater than the maximum or less than the minimum allowed value\"}],\"topTickAboveMAX()\":[{\"notice\":\"Emitted if the topTick param is greater than max allowed value\"}],\"topTickLowerOrEqBottomTick()\":[{\"notice\":\"Emitted if the topTick param not greater then the bottomTick param\"}],\"transferFailed()\":[{\"notice\":\"Emitted if token transfer failed internally\"}],\"zeroAmountRequired()\":[{\"notice\":\"Emitted if 0 is passed as amountRequired to swap function\"}],\"zeroLiquidityActual()\":[{\"notice\":\"Emitted if actual amount of liquidity is zero (due to insufficient amount of tokens received)\"}],\"zeroLiquidityDesired()\":[{\"notice\":\"Emitted if there was an attempt to mint zero liquidity\"}]},\"events\":{\"Burn(address,int24,int24,uint128,uint256,uint256)\":{\"notice\":\"Emitted when a position's liquidity is removed\"},\"BurnFee(address,uint24)\":{\"notice\":\"Emitted when a plugin fee is applied during a burn\"},\"Collect(address,address,int24,int24,uint128,uint128)\":{\"notice\":\"Emitted when fees are collected by the owner of a position\"},\"CommunityFee(uint16)\":{\"notice\":\"Emitted when the community fee is changed by the pool\"},\"CommunityVault(address)\":{\"notice\":\"Emitted when the community vault address changes\"},\"ExcessTokens(uint256,uint256)\":{\"notice\":\"Emitted when the pool has higher balances than expected. Any excess of tokens will be distributed between liquidity providers as fee.\"},\"Fee(uint16)\":{\"notice\":\"Emitted when the fee changes inside the pool\"},\"Flash(address,address,uint256,uint256,uint256,uint256)\":{\"notice\":\"Emitted by the pool for any flashes of token0/token1\"},\"Initialize(uint160,int24)\":{\"notice\":\"Emitted exactly once by a pool when #initialize is first called on the pool\"},\"Mint(address,address,int24,int24,uint128,uint256,uint256)\":{\"notice\":\"Emitted when liquidity is minted for a given position\"},\"Plugin(address)\":{\"notice\":\"Emitted when the plugin address changes\"},\"PluginConfig(uint8)\":{\"notice\":\"Emitted when the plugin config changes\"},\"Skim(address,uint256,uint256)\":{\"notice\":\"Emitted when the plugin does skim the excess of tokens\"},\"Swap(address,address,int256,int256,uint160,uint128,int24)\":{\"notice\":\"Emitted by the pool for any swaps between token0 and token1\"},\"SwapFee(address,uint24,uint24)\":{\"notice\":\"Emitted by the pool after any swaps \"},\"TickSpacing(int24)\":{\"notice\":\"Emitted when the tick spacing changes\"}},\"kind\":\"user\",\"methods\":{\"burn(int24,int24,uint128,bytes)\":{\"notice\":\"Burn liquidity from the sender and account tokens owed for the liquidity to the position\"},\"collect(address,int24,int24,uint128,uint128)\":{\"notice\":\"Collects tokens owed to a position\"},\"communityVault()\":{\"notice\":\"The contract to which community fees are transferred\"},\"factory()\":{\"notice\":\"The Algebra factory contract, which must adhere to the IAlgebraFactory interface\"},\"fee()\":{\"notice\":\"The current pool fee value\"},\"flash(address,uint256,uint256,bytes)\":{\"notice\":\"Receive token0 and/or token1 and pay it back, plus a fee, in the callback\"},\"getCommunityFeePending()\":{\"notice\":\"The amounts of token0 and token1 that will be sent to the vault\"},\"getPluginFeePending()\":{\"notice\":\"The amounts of token0 and token1 that will be sent to the plugin\"},\"getReserves()\":{\"notice\":\"The tracked token0 and token1 reserves of pool\"},\"globalState()\":{\"notice\":\"The globalState structure in the pool stores many values but requires only one slot and is exposed as a single method to save gas when accessed externally.\"},\"initialize(uint160)\":{\"notice\":\"Sets the initial price for the pool\"},\"isUnlocked()\":{\"notice\":\"Allows to easily get current reentrancy lock status\"},\"lastFeeTransferTimestamp()\":{\"notice\":\"The timestamp of the last sending of tokens to vault/plugin\"},\"liquidity()\":{\"notice\":\"The currently in range liquidity available to the pool\"},\"maxLiquidityPerTick()\":{\"notice\":\"The maximum amount of position liquidity that can use any tick in the range\"},\"mint(address,address,int24,int24,uint128,bytes)\":{\"notice\":\"Adds liquidity for the given recipient/bottomTick/topTick position\"},\"nextTickGlobal()\":{\"notice\":\"The next initialized tick after current global tick\"},\"plugin()\":{\"notice\":\"Returns the address of currently used plugin\"},\"positions(bytes32)\":{\"notice\":\"Returns the information about a position by the position's key\"},\"prevTickGlobal()\":{\"notice\":\"The previous initialized tick before (or at) current global tick\"},\"safelyGetStateOfAMM()\":{\"notice\":\"Safely get most important state values of Algebra Integral AMM\"},\"setCommunityFee(uint16)\":{\"notice\":\"Set the community's % share of the fees. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setCommunityVault(address)\":{\"notice\":\"Set new community fee vault address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setFee(uint16)\":{\"notice\":\"Set new pool fee. Can be called by owner if dynamic fee is disabled. Called by the plugin if dynamic fee is enabled\"},\"setPlugin(address)\":{\"notice\":\"Set the new plugin address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setPluginConfig(uint8)\":{\"notice\":\"Set new plugin config. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setTickSpacing(int24)\":{\"notice\":\"Set the new tick spacing values. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"skim()\":{\"notice\":\"Forces balances to match reserves. Excessive tokens will be sent to msg.sender\"},\"swap(address,bool,int256,uint160,bytes)\":{\"notice\":\"Swap token0 for token1, or token1 for token0\"},\"swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)\":{\"notice\":\"Swap token0 for token1, or token1 for token0 with prepayment\"},\"sync()\":{\"notice\":\"Forces balances to match reserves. Excessive tokens will be distributed between active LPs\"},\"tickSpacing()\":{\"notice\":\"The current tick spacing\"},\"tickTable(int16)\":{\"notice\":\"Returns 256 packed tick initialized boolean values. See TickTree for more information\"},\"tickTreeRoot()\":{\"notice\":\"The root of tick search tree\"},\"tickTreeSecondLayer(int16)\":{\"notice\":\"The second layer of tick search tree\"},\"ticks(int24)\":{\"notice\":\"Look up information about a specific tick in the pool\"},\"token0()\":{\"notice\":\"The first of the two tokens of the pool, sorted by address\"},\"token1()\":{\"notice\":\"The second of the two tokens of the pool, sorted by address\"},\"totalFeeGrowth0Token()\":{\"notice\":\"The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool\"},\"totalFeeGrowth1Token()\":{\"notice\":\"The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol\":\"IAlgebraPool\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol\":{\"keccak256\":\"0x1d8bb94007c874be2640401aeed6219392c07e8b2e779fa24c618adc58bd7ae0\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://55d37783d81c98cb58ed41e6d7283af5fb07261b676a833f632cd6d128fc2e04\",\"dweb:/ipfs/QmXiJ63fWeBfkfJkLzBv1zLDyCjn5shW44ugYv44CqtTca\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol\":{\"keccak256\":\"0x4f9b70282bac671383d001cffca1479dd64f507db84cdab16da886804c64a60c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://b1bc8b774ab5027d97625c3ac01ee3f4bbdefcd012ff0bb0e4c9752096bd9562\",\"dweb:/ipfs/Qmcn5kGihMiZAMjwpY1f12nTSWMyrLqmXLvoifaqPtQYYo\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol\":{\"keccak256\":\"0xd6b18486bd0eaee545ad10115d33c527e5ba5ddff571120678e7db58ca00b726\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://470a64313758d0a26a6910c924eae39e5c4df6912c61e7239e0d930097f8512f\",\"dweb:/ipfs/QmY18B9x18hLCKQ3kAqjPhHzMvZxKrvNeUjPycKYodETaa\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol\":{\"keccak256\":\"0x02d0fb9c64fba4c4dd0509bb9333825c801a0587d5b957c46f5cb1c610acc447\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://8480784b2654829c0958b00aa3109249ce9088dbe94b6eadeaf8e9138829a764\",\"dweb:/ipfs/QmeFG5AsPUQfhMPtvYC3f9BhGu7sVm71wj2PgXDczaM7XP\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol\":{\"keccak256\":\"0xbd9faad7e7599c61c3141cfe2dd2e423ad4746a6119f047b0ae6d2eccb77bc9c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d0df4bed6cf34a8c0f6b971fb71411373b4d204afda35eabe8555d8cbe67e291\",\"dweb:/ipfs/QmY6z3BseKy3tEvmLVjhL7VFrNJRuQgDXJXNAFBkBQ218A\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol\":{\"keccak256\":\"0xe061f0f9b5b16934173b1127efe13ccfe80465db17156d91c04e018b31e993fa\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://c607033ec09828f4a8667e7fd2e562814ec689d5806d95b4a248f57e0eff9d38\",\"dweb:/ipfs/QmbGBxBMSzPKitHmRjYJwGGEZVsXDQB6emSsZ19hjy6LUz\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol":{"IAlgebraPlugin":{"abi":[{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"uint256","name":"paid0","type":"uint256"},{"internalType":"uint256","name":"paid1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"afterFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"}],"name":"afterInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"int128","name":"desiredLiquidityDelta","type":"int128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"afterModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountRequired","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"afterSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"}],"name":"beforeInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"int128","name":"desiredLiquidityDelta","type":"int128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeModifyPosition","outputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"},{"internalType":"uint24","name":"pluginFee","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountRequired","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"bool","name":"withPaymentInAdvance","type":"bool"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeSwap","outputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"},{"internalType":"uint24","name":"feeOverride","type":"uint24"},{"internalType":"uint24","name":"pluginFee","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultPluginConfig","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pluginFee0","type":"uint256"},{"internalType":"uint256","name":"pluginFee1","type":"uint256"}],"name":"handlePluginFee","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)":"343d37ff","afterInitialize(address,uint160,int24)":"82dd6522","afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)":"d6852010","afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)":"9cb5a963","beforeFlash(address,address,uint256,uint256,bytes)":"8de0a8ee","beforeInitialize(address,uint160)":"636fd804","beforeModifyPosition(address,address,int24,int24,int128,bytes)":"5e2411b2","beforeSwap(address,address,bool,int256,uint160,bool,bytes)":"029c1cb7","defaultPluginConfig()":"689ea370","handlePluginFee(uint256,uint256)":"aa6b14bb"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paid0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"paid1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"afterFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"afterInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"desiredLiquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"afterModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"afterSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"}],\"name\":\"beforeInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"desiredLiquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"bool\",\"name\":\"withPaymentInAdvance\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"feeOverride\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultPluginConfig\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"pluginFee0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pluginFee1\",\"type\":\"uint256\"}],\"name\":\"handlePluginFee\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The plugin will be called by the pool using hook methods depending on the current pool settings\",\"kind\":\"dev\",\"methods\":{\"afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)\":{\"params\":{\"amount0\":\"The amount of token0 being requested for flash\",\"amount1\":\"The amount of token1 being requested for flash\",\"data\":\"Data that passed through the callback\",\"paid0\":\"The amount of token0 being paid for flash\",\"paid1\":\"The amount of token1 being paid for flash\",\"recipient\":\"The address which will receive the token0 and token1 amounts\",\"sender\":\"The initial msg.sender for the flash call\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"afterInitialize(address,uint160,int24)\":{\"params\":{\"sender\":\"The initial msg.sender for the initialize call\",\"sqrtPriceX96\":\"The sqrt(price) of the pool as a Q64.96\",\"tick\":\"The current tick after the state of a pool is initialized\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)\":{\"params\":{\"amount0\":\"The amount of token0 sent to the recipient or was paid to mint\",\"amount1\":\"The amount of token0 sent to the recipient or was paid to mint\",\"bottomTick\":\"The lower tick of the position\",\"data\":\"Data that passed through the callback\",\"desiredLiquidityDelta\":\"The desired amount of liquidity to mint/burn\",\"recipient\":\"Address to which the liquidity will be assigned in case of a mint or to which tokens will be sent in case of a burn\",\"sender\":\"The initial msg.sender for the modify position call\",\"topTick\":\"The upper tick of the position\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)\":{\"params\":{\"amount0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"amount1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\",\"amountRequired\":\"The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\",\"data\":\"Data that passed through the callback\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"sender\":\"The initial msg.sender for the swap call\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"beforeFlash(address,address,uint256,uint256,bytes)\":{\"params\":{\"amount0\":\"The amount of token0 being requested for flash\",\"amount1\":\"The amount of token1 being requested for flash\",\"data\":\"Data that passed through the callback\",\"recipient\":\"The address which will receive the token0 and token1 amounts\",\"sender\":\"The initial msg.sender for the flash call\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"beforeInitialize(address,uint160)\":{\"params\":{\"sender\":\"The initial msg.sender for the initialize call\",\"sqrtPriceX96\":\"The sqrt(price) of the pool as a Q64.96\"},\"returns\":{\"_0\":\"bytes4 The function selector for the hook\"}},\"beforeModifyPosition(address,address,int24,int24,int128,bytes)\":{\"params\":{\"bottomTick\":\"The lower tick of the position\",\"data\":\"Data that passed through the callback\",\"desiredLiquidityDelta\":\"The desired amount of liquidity to mint/burn\",\"recipient\":\"Address to which the liquidity will be assigned in case of a mint or to which tokens will be sent in case of a burn\",\"sender\":\"The initial msg.sender for the modify position call\",\"topTick\":\"The upper tick of the position\"},\"returns\":{\"selector\":\"The function selector for the hook\"}},\"beforeSwap(address,address,bool,int256,uint160,bool,bytes)\":{\"params\":{\"amountRequired\":\"The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\",\"data\":\"Data that passed through the callback\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"sender\":\"The initial msg.sender for the swap call\",\"withPaymentInAdvance\":\"The flag indicating whether the `swapWithPaymentInAdvance` method was called\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"selector\":\"The function selector for the hook\"}},\"defaultPluginConfig()\":{\"returns\":{\"_0\":\"config Each bit of the config is responsible for enabling/disabling the hooks. The last bit indicates whether the plugin contains dynamic fees logic\"}},\"handlePluginFee(uint256,uint256)\":{\"params\":{\"pluginFee0\":\"Fee0 amount transferred to plugin\",\"pluginFee1\":\"Fee1 amount transferred to plugin\"},\"returns\":{\"_0\":\"bytes4 The function selector\"}}},\"title\":\"The Algebra plugin interface\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)\":{\"notice\":\"The hook called after flash\"},\"afterInitialize(address,uint160,int24)\":{\"notice\":\"The hook called after the state of a pool is initialized\"},\"afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)\":{\"notice\":\"The hook called after a position is modified\"},\"afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)\":{\"notice\":\"The hook called after a swap\"},\"beforeFlash(address,address,uint256,uint256,bytes)\":{\"notice\":\"The hook called before flash\"},\"beforeInitialize(address,uint160)\":{\"notice\":\"The hook called before the state of a pool is initialized\"},\"beforeModifyPosition(address,address,int24,int24,int128,bytes)\":{\"notice\":\"The hook called before a position is modified\"},\"beforeSwap(address,address,bool,int256,uint160,bool,bytes)\":{\"notice\":\"The hook called before a swap\"},\"defaultPluginConfig()\":{\"notice\":\"Returns plugin config\"},\"handlePluginFee(uint256,uint256)\":{\"notice\":\"Handle plugin fee transfer on plugin contract\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol\":\"IAlgebraPlugin\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol\":{\"keccak256\":\"0xdf59e7e2f672d08ecd361eb9a61fbd21ce70ad47e64f34dcd8bd8101e0e7aa5a\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7719afe8dbd6803ecda550933f66d447a6fd9866a1a1b06d8c1eaad6c6fa8a63\",\"dweb:/ipfs/QmPwz3RuSWYuQaHMzwF6HP4MAomD2ZoZRm6YRKhdWNhPWb\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol":{"IAlgebraPluginFactory":{"abi":[{"inputs":[{"internalType":"address","name":"plugin","type":"address"},{"internalType":"address","name":"pool","type":"address"},{"internalType":"address","name":"deployer","type":"address"}],"name":"afterCreatePoolHook","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"address","name":"deployer","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"beforeCreatePoolHook","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"afterCreatePoolHook(address,address,address)":"8d5ef8d1","beforeCreatePoolHook(address,address,address,address,address,bytes)":"1d0338d9"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"plugin\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"}],\"name\":\"afterCreatePoolHook\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"beforeCreatePoolHook\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Such a factory can be used for automatic plugin creation for new pools. Also a factory be used as an entry point for custom (additional) pools creation\",\"kind\":\"dev\",\"methods\":{\"afterCreatePoolHook(address,address,address)\":{\"params\":{\"deployer\":\"The address of new plugin deployer contract (0 if not used)\",\"plugin\":\"The plugin address\",\"pool\":\"The address of the new pool\"}},\"beforeCreatePoolHook(address,address,address,address,address,bytes)\":{\"params\":{\"creator\":\"The address that initiated the pool creation\",\"deployer\":\"The address of new plugin deployer contract (0 if not used)\",\"pool\":\"The address of the new pool\",\"token0\":\"First token of the pool\",\"token1\":\"Second token of the pool\"},\"returns\":{\"_0\":\"New plugin address\"}}},\"title\":\"An interface for a contract that is capable of deploying Algebra plugins\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"afterCreatePoolHook(address,address,address)\":{\"notice\":\"Called after the pool is created\"},\"beforeCreatePoolHook(address,address,address,address,address,bytes)\":{\"notice\":\"Deploys new plugin contract for pool\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":\"IAlgebraPluginFactory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":{\"keccak256\":\"0xf1cc5f09fc738bf41381fdf6864919c07965f25e715af6982df54605ce3a32fc\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://6fa8803e45159a6c404fd714321bc2ba0e010e76e3755594628f0c0bc9204182\",\"dweb:/ipfs/QmSAtmyH38VtzgycYTjGF3Y5aWG6DPjWD3JDjGVAn4fi2m\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol":{"IAlgebraPoolActions":{"abi":[{"inputs":[{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"amount0Requested","type":"uint128"},{"internalType":"uint128","name":"amount1Requested","type":"uint128"}],"name":"collect","outputs":[{"internalType":"uint128","name":"amount0","type":"uint128"},{"internalType":"uint128","name":"amount1","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint160","name":"initialPrice","type":"uint160"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"leftoversRecipient","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"bottomTick","type":"int24"},{"internalType":"int24","name":"topTick","type":"int24"},{"internalType":"uint128","name":"liquidityDesired","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"uint128","name":"liquidityActual","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountRequired","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"leftoversRecipient","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"zeroToOne","type":"bool"},{"internalType":"int256","name":"amountToSell","type":"int256"},{"internalType":"uint160","name":"limitSqrtPrice","type":"uint160"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapWithPaymentInAdvance","outputs":[{"internalType":"int256","name":"amount0","type":"int256"},{"internalType":"int256","name":"amount1","type":"int256"}],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"burn(int24,int24,uint128,bytes)":"3b3bc70e","collect(address,int24,int24,uint128,uint128)":"4f1eb3d8","flash(address,uint256,uint256,bytes)":"490e6cbc","initialize(uint160)":"f637731d","mint(address,address,int24,int24,uint128,bytes)":"aafe29c0","swap(address,bool,int256,uint160,bytes)":"128acb08","swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)":"9e4e0227"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount0Requested\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1Requested\",\"type\":\"uint128\"}],\"name\":\"collect\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"flash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"initialPrice\",\"type\":\"uint160\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"leftoversRecipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"liquidityDesired\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidityActual\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountRequired\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"leftoversRecipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroToOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountToSell\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"limitSqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swapWithPaymentInAdvance\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"kind\":\"dev\",\"methods\":{\"burn(int24,int24,uint128,bytes)\":{\"details\":\"Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0Fees must be collected separately via a call to #collect\",\"params\":{\"amount\":\"How much liquidity to burn\",\"bottomTick\":\"The lower tick of the position for which to burn liquidity\",\"data\":\"Any data that should be passed through to the plugin\",\"topTick\":\"The upper tick of the position for which to burn liquidity\"},\"returns\":{\"amount0\":\"The amount of token0 sent to the recipient\",\"amount1\":\"The amount of token1 sent to the recipient\"}},\"collect(address,int24,int24,uint128,uint128)\":{\"details\":\"Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity. Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.\",\"params\":{\"amount0Requested\":\"How much token0 should be withdrawn from the fees owed\",\"amount1Requested\":\"How much token1 should be withdrawn from the fees owed\",\"bottomTick\":\"The lower tick of the position for which to collect fees\",\"recipient\":\"The address which should receive the fees collected\",\"topTick\":\"The upper tick of the position for which to collect fees\"},\"returns\":{\"amount0\":\"The amount of fees collected in token0\",\"amount1\":\"The amount of fees collected in token1\"}},\"flash(address,uint256,uint256,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraFlashCallback#algebraFlashCallbackAll excess tokens paid in the callback are distributed to currently in-range liquidity providers as an additional fee. If there are no in-range liquidity providers, the fee will be transferred to the first active provider in the future\",\"params\":{\"amount0\":\"The amount of token0 to send\",\"amount1\":\"The amount of token1 to send\",\"data\":\"Any data to be passed through to the callback\",\"recipient\":\"The address which will receive the token0 and token1 amounts\"}},\"initialize(uint160)\":{\"details\":\"Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 valueInitialization should be done in one transaction with pool creation to avoid front-running\",\"params\":{\"initialPrice\":\"The initial sqrt price of the pool as a Q64.96\"}},\"mint(address,address,int24,int24,uint128,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraMintCallback#algebraMintCallback in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends on bottomTick, topTick, the amount of liquidity, and the current price.\",\"params\":{\"bottomTick\":\"The lower tick of the position in which to add liquidity\",\"data\":\"Any data that should be passed through to the callback\",\"leftoversRecipient\":\"The address which will receive potential surplus of paid tokens\",\"liquidityDesired\":\"The desired amount of liquidity to mint\",\"recipient\":\"The address for which the liquidity will be created\",\"topTick\":\"The upper tick of the position in which to add liquidity\"},\"returns\":{\"amount0\":\"The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback\",\"amount1\":\"The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback\",\"liquidityActual\":\"The actual minted amount of liquidity\"}},\"swap(address,bool,int256,uint160,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback\",\"params\":{\"amountRequired\":\"The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)\",\"data\":\"Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"amount0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"amount1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\"}},\"swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)\":{\"details\":\"The caller of this method receives a callback in the form of IAlgebraSwapCallback#algebraSwapCallback caller must send tokens in callback before swap calculation the actually sent amount of tokens is used for further calculations\",\"params\":{\"amountToSell\":\"The amount of the swap, only positive (exact input) amount allowed\",\"data\":\"Any data to be passed through to the callback. If using the Router it should contain SwapRouter#SwapCallbackData\",\"leftoversRecipient\":\"The address which will receive potential surplus of paid tokens\",\"limitSqrtPrice\":\"The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap\",\"recipient\":\"The address to receive the output of the swap\",\"zeroToOne\":\"The direction of the swap, true for token0 to token1, false for token1 to token0\"},\"returns\":{\"amount0\":\"The delta of the balance of token0 of the pool, exact when negative, minimum when positive\",\"amount1\":\"The delta of the balance of token1 of the pool, exact when negative, minimum when positive\"}}},\"title\":\"Permissionless pool actions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"burn(int24,int24,uint128,bytes)\":{\"notice\":\"Burn liquidity from the sender and account tokens owed for the liquidity to the position\"},\"collect(address,int24,int24,uint128,uint128)\":{\"notice\":\"Collects tokens owed to a position\"},\"flash(address,uint256,uint256,bytes)\":{\"notice\":\"Receive token0 and/or token1 and pay it back, plus a fee, in the callback\"},\"initialize(uint160)\":{\"notice\":\"Sets the initial price for the pool\"},\"mint(address,address,int24,int24,uint128,bytes)\":{\"notice\":\"Adds liquidity for the given recipient/bottomTick/topTick position\"},\"swap(address,bool,int256,uint160,bytes)\":{\"notice\":\"Swap token0 for token1, or token1 for token0\"},\"swapWithPaymentInAdvance(address,address,bool,int256,uint160,bytes)\":{\"notice\":\"Swap token0 for token1, or token1 for token0 with prepayment\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol\":\"IAlgebraPoolActions\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol\":{\"keccak256\":\"0x4f9b70282bac671383d001cffca1479dd64f507db84cdab16da886804c64a60c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://b1bc8b774ab5027d97625c3ac01ee3f4bbdefcd012ff0bb0e4c9752096bd9562\",\"dweb:/ipfs/Qmcn5kGihMiZAMjwpY1f12nTSWMyrLqmXLvoifaqPtQYYo\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol":{"IAlgebraPoolErrors":{"abi":[{"inputs":[],"name":"alreadyInitialized","type":"error"},{"inputs":[],"name":"arithmeticError","type":"error"},{"inputs":[],"name":"bottomTickLowerThanMIN","type":"error"},{"inputs":[],"name":"dynamicFeeActive","type":"error"},{"inputs":[],"name":"dynamicFeeDisabled","type":"error"},{"inputs":[],"name":"flashInsufficientPaid0","type":"error"},{"inputs":[],"name":"flashInsufficientPaid1","type":"error"},{"inputs":[],"name":"incorrectPluginFee","type":"error"},{"inputs":[],"name":"insufficientInputAmount","type":"error"},{"inputs":[],"name":"invalidAmountRequired","type":"error"},{"inputs":[{"internalType":"bytes4","name":"expectedSelector","type":"bytes4"}],"name":"invalidHookResponse","type":"error"},{"inputs":[],"name":"invalidLimitSqrtPrice","type":"error"},{"inputs":[],"name":"invalidNewCommunityFee","type":"error"},{"inputs":[],"name":"invalidNewTickSpacing","type":"error"},{"inputs":[],"name":"liquidityAdd","type":"error"},{"inputs":[],"name":"liquidityOverflow","type":"error"},{"inputs":[],"name":"liquiditySub","type":"error"},{"inputs":[],"name":"locked","type":"error"},{"inputs":[],"name":"notAllowed","type":"error"},{"inputs":[],"name":"notInitialized","type":"error"},{"inputs":[],"name":"pluginIsNotConnected","type":"error"},{"inputs":[],"name":"priceOutOfRange","type":"error"},{"inputs":[],"name":"tickInvalidLinks","type":"error"},{"inputs":[],"name":"tickIsNotInitialized","type":"error"},{"inputs":[],"name":"tickIsNotSpaced","type":"error"},{"inputs":[],"name":"tickOutOfRange","type":"error"},{"inputs":[],"name":"topTickAboveMAX","type":"error"},{"inputs":[],"name":"topTickLowerOrEqBottomTick","type":"error"},{"inputs":[],"name":"transferFailed","type":"error"},{"inputs":[],"name":"zeroAmountRequired","type":"error"},{"inputs":[],"name":"zeroLiquidityActual","type":"error"},{"inputs":[],"name":"zeroLiquidityDesired","type":"error"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"alreadyInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"arithmeticError\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"bottomTickLowerThanMIN\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"dynamicFeeActive\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"dynamicFeeDisabled\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"flashInsufficientPaid0\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"flashInsufficientPaid1\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"incorrectPluginFee\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"insufficientInputAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidAmountRequired\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"expectedSelector\",\"type\":\"bytes4\"}],\"name\":\"invalidHookResponse\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidLimitSqrtPrice\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidNewCommunityFee\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"invalidNewTickSpacing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"liquidityAdd\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"liquidityOverflow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"liquiditySub\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"locked\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"notAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"notInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"pluginIsNotConnected\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"priceOutOfRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickInvalidLinks\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickIsNotInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickIsNotSpaced\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"tickOutOfRange\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"topTickAboveMAX\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"topTickLowerOrEqBottomTick\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"transferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"zeroAmountRequired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"zeroLiquidityActual\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"zeroLiquidityDesired\",\"type\":\"error\"}],\"devdoc\":{\"details\":\"Custom errors are separated from the common pool interface for compatibility with older versions of Solidity\",\"errors\":{\"invalidHookResponse(bytes4)\":[{\"params\":{\"expectedSelector\":\"The expected selector\"}}]},\"kind\":\"dev\",\"methods\":{},\"title\":\"Errors emitted by a pool\",\"version\":1},\"userdoc\":{\"errors\":{\"alreadyInitialized()\":[{\"notice\":\"Emitted if an attempt is made to initialize the pool twice\"}],\"arithmeticError()\":[{\"notice\":\"Emitted if arithmetic error occurred\"}],\"bottomTickLowerThanMIN()\":[{\"notice\":\"Emitted if the bottomTick param is lower than min allowed value\"}],\"dynamicFeeActive()\":[{\"notice\":\"Emitted if an attempt is made to manually change the fee value, but dynamic fee is enabled\"}],\"dynamicFeeDisabled()\":[{\"notice\":\"Emitted if an attempt is made by plugin to change the fee value, but dynamic fee is disabled\"}],\"flashInsufficientPaid0()\":[{\"notice\":\"Emitted if the pool received fewer tokens0 after flash than it should have\"}],\"flashInsufficientPaid1()\":[{\"notice\":\"Emitted if the pool received fewer tokens1 after flash than it should have\"}],\"incorrectPluginFee()\":[{\"notice\":\"Emitted if plugin fee param greater than fee/override fee\"}],\"insufficientInputAmount()\":[{\"notice\":\"Emitted if the pool received fewer tokens than it should have\"}],\"invalidAmountRequired()\":[{\"notice\":\"Emitted if invalid amount is passed as amountRequired to swap function\"}],\"invalidHookResponse(bytes4)\":[{\"notice\":\"Emitted if a plugin returns invalid selector after hook call\"}],\"invalidLimitSqrtPrice()\":[{\"notice\":\"Emitted if limitSqrtPrice param is incorrect\"}],\"invalidNewCommunityFee()\":[{\"notice\":\"Emitted if new community fee exceeds max allowed value\"}],\"invalidNewTickSpacing()\":[{\"notice\":\"Emitted if new tick spacing exceeds max allowed value\"}],\"liquidityAdd()\":[{\"notice\":\"Emitted if liquidity overflows\"}],\"liquidityOverflow()\":[{\"notice\":\"Emitted if the liquidity value associated with the tick exceeds MAX_LIQUIDITY_PER_TICK\"}],\"liquiditySub()\":[{\"notice\":\"Emitted if liquidity underflows\"}],\"locked()\":[{\"notice\":\"Emitted by the reentrancy guard\"}],\"notAllowed()\":[{\"notice\":\"Emitted if a method is called that is accessible only to the factory owner or dedicated role\"}],\"notInitialized()\":[{\"notice\":\"Emitted if an attempt is made to mint or swap in uninitialized pool\"}],\"pluginIsNotConnected()\":[{\"notice\":\"Emitted if an attempt is made to change the plugin configuration, but the plugin is not connected\"}],\"priceOutOfRange()\":[{\"notice\":\"Emitted if price is greater than the maximum or less than the minimum allowed value\"}],\"tickInvalidLinks()\":[{\"notice\":\"Emitted if there is an attempt to insert a new tick into the list of ticks with incorrect indexes of the previous and next ticks\"}],\"tickIsNotInitialized()\":[{\"notice\":\"Emitted if an attempt is made to interact with an uninitialized tick\"}],\"tickIsNotSpaced()\":[{\"notice\":\"Tick must be divisible by tickspacing\"}],\"tickOutOfRange()\":[{\"notice\":\"Emitted if tick is greater than the maximum or less than the minimum allowed value\"}],\"topTickAboveMAX()\":[{\"notice\":\"Emitted if the topTick param is greater than max allowed value\"}],\"topTickLowerOrEqBottomTick()\":[{\"notice\":\"Emitted if the topTick param not greater then the bottomTick param\"}],\"transferFailed()\":[{\"notice\":\"Emitted if token transfer failed internally\"}],\"zeroAmountRequired()\":[{\"notice\":\"Emitted if 0 is passed as amountRequired to swap function\"}],\"zeroLiquidityActual()\":[{\"notice\":\"Emitted if actual amount of liquidity is zero (due to insufficient amount of tokens received)\"}],\"zeroLiquidityDesired()\":[{\"notice\":\"Emitted if there was an attempt to mint zero liquidity\"}]},\"kind\":\"user\",\"methods\":{},\"notice\":\"Contains custom errors emitted by the pool\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":\"IAlgebraPoolErrors\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol":{"IAlgebraPoolEvents":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"bottomTick","type":"int24"},{"indexed":true,"internalType":"int24","name":"topTick","type":"int24"},{"indexed":false,"internalType":"uint128","name":"liquidityAmount","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint24","name":"pluginFee","type":"uint24"}],"name":"BurnFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"int24","name":"bottomTick","type":"int24"},{"indexed":true,"internalType":"int24","name":"topTick","type":"int24"},{"indexed":false,"internalType":"uint128","name":"amount0","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"amount1","type":"uint128"}],"name":"Collect","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"communityFeeNew","type":"uint16"}],"name":"CommunityFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newCommunityVault","type":"address"}],"name":"CommunityVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"ExcessTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"fee","type":"uint16"}],"name":"Fee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paid0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paid1","type":"uint256"}],"name":"Flash","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint160","name":"price","type":"uint160"},{"indexed":false,"internalType":"int24","name":"tick","type":"int24"}],"name":"Initialize","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"bottomTick","type":"int24"},{"indexed":true,"internalType":"int24","name":"topTick","type":"int24"},{"indexed":false,"internalType":"uint128","name":"liquidityAmount","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newPluginAddress","type":"address"}],"name":"Plugin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"newPluginConfig","type":"uint8"}],"name":"PluginConfig","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Skim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"int256","name":"amount0","type":"int256"},{"indexed":false,"internalType":"int256","name":"amount1","type":"int256"},{"indexed":false,"internalType":"uint160","name":"price","type":"uint160"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"int24","name":"tick","type":"int24"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint24","name":"overrideFee","type":"uint24"},{"indexed":false,"internalType":"uint24","name":"pluginFee","type":"uint24"}],"name":"SwapFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"int24","name":"newTickSpacing","type":"int24"}],"name":"TickSpacing","type":"event"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"name\":\"BurnFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"name\":\"Collect\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"communityFeeNew\",\"type\":\"uint16\"}],\"name\":\"CommunityFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newCommunityVault\",\"type\":\"address\"}],\"name\":\"CommunityVault\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"ExcessTokens\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"fee\",\"type\":\"uint16\"}],\"name\":\"Fee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid1\",\"type\":\"uint256\"}],\"name\":\"Flash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Initialize\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"bottomTick\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"topTick\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidityAmount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newPluginAddress\",\"type\":\"address\"}],\"name\":\"Plugin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"newPluginConfig\",\"type\":\"uint8\"}],\"name\":\"PluginConfig\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Skim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"overrideFee\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"pluginFee\",\"type\":\"uint24\"}],\"name\":\"SwapFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"newTickSpacing\",\"type\":\"int24\"}],\"name\":\"TickSpacing\",\"type\":\"event\"}],\"devdoc\":{\"details\":\"Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"events\":{\"Burn(address,int24,int24,uint128,uint256,uint256)\":{\"details\":\"Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect\",\"params\":{\"amount0\":\"The amount of token0 withdrawn\",\"amount1\":\"The amount of token1 withdrawn\",\"bottomTick\":\"The lower tick of the position\",\"liquidityAmount\":\"The amount of liquidity to remove\",\"owner\":\"The owner of the position for which liquidity is removed\",\"topTick\":\"The upper tick of the position\"}},\"BurnFee(address,uint24)\":{\"params\":{\"owner\":\"The owner of the position\",\"pluginFee\":\"The fee to be sent to the plugin\"}},\"Collect(address,address,int24,int24,uint128,uint128)\":{\"params\":{\"amount0\":\"The amount of token0 fees collected\",\"amount1\":\"The amount of token1 fees collected\",\"bottomTick\":\"The lower tick of the position\",\"owner\":\"The owner of the position for which fees are collected\",\"recipient\":\"The address that received fees\",\"topTick\":\"The upper tick of the position\"}},\"CommunityFee(uint16)\":{\"params\":{\"communityFeeNew\":\"The updated value of the community fee in thousandths (1e-3)\"}},\"CommunityVault(address)\":{\"params\":{\"newCommunityVault\":\"New community vault\"}},\"ExcessTokens(uint256,uint256)\":{\"details\":\"Fees after flash also will trigger this event due to mechanics of flash.\",\"params\":{\"amount0\":\"The excess of token0\",\"amount1\":\"The excess of token1\"}},\"Fee(uint16)\":{\"params\":{\"fee\":\"The current fee in hundredths of a bip, i.e. 1e-6\"}},\"Flash(address,address,uint256,uint256,uint256,uint256)\":{\"params\":{\"amount0\":\"The amount of token0 that was flashed\",\"amount1\":\"The amount of token1 that was flashed\",\"paid0\":\"The amount of token0 paid for the flash, which can exceed the amount0 plus the fee\",\"paid1\":\"The amount of token1 paid for the flash, which can exceed the amount1 plus the fee\",\"recipient\":\"The address that received the tokens from flash\",\"sender\":\"The address that initiated the swap call, and that received the callback\"}},\"Initialize(uint160,int24)\":{\"details\":\"Mint/Burn/Swaps cannot be emitted by the pool before Initialize\",\"params\":{\"price\":\"The initial sqrt price of the pool, as a Q64.96\",\"tick\":\"The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool\"}},\"Mint(address,address,int24,int24,uint128,uint256,uint256)\":{\"params\":{\"amount0\":\"How much token0 was required for the minted liquidity\",\"amount1\":\"How much token1 was required for the minted liquidity\",\"bottomTick\":\"The lower tick of the position\",\"liquidityAmount\":\"The amount of liquidity minted to the position range\",\"owner\":\"The owner of the position and recipient of any minted liquidity\",\"sender\":\"The address that minted the liquidity\",\"topTick\":\"The upper tick of the position\"}},\"Plugin(address)\":{\"params\":{\"newPluginAddress\":\"New plugin address\"}},\"PluginConfig(uint8)\":{\"params\":{\"newPluginConfig\":\"New plugin config\"}},\"Skim(address,uint256,uint256)\":{\"params\":{\"amount0\":\"The amount of token0\",\"amount1\":\"The amount of token1\",\"to\":\"THe receiver of tokens (plugin)\"}},\"Swap(address,address,int256,int256,uint160,uint128,int24)\":{\"params\":{\"amount0\":\"The delta of the token0 balance of the pool\",\"amount1\":\"The delta of the token1 balance of the pool\",\"liquidity\":\"The liquidity of the pool after the swap\",\"price\":\"The sqrt(price) of the pool after the swap, as a Q64.96\",\"recipient\":\"The address that received the output of the swap\",\"sender\":\"The address that initiated the swap call, and that received the callback\",\"tick\":\"The log base 1.0001 of price of the pool after the swap\"}},\"SwapFee(address,uint24,uint24)\":{\"params\":{\"overrideFee\":\"The fee to be applied to the trade\",\"pluginFee\":\"The fee to be sent to the plugin\",\"sender\":\"The address that initiated the swap \"}},\"TickSpacing(int24)\":{\"params\":{\"newTickSpacing\":\"The updated value of the new tick spacing\"}}},\"kind\":\"dev\",\"methods\":{},\"title\":\"Events emitted by a pool\",\"version\":1},\"userdoc\":{\"events\":{\"Burn(address,int24,int24,uint128,uint256,uint256)\":{\"notice\":\"Emitted when a position's liquidity is removed\"},\"BurnFee(address,uint24)\":{\"notice\":\"Emitted when a plugin fee is applied during a burn\"},\"Collect(address,address,int24,int24,uint128,uint128)\":{\"notice\":\"Emitted when fees are collected by the owner of a position\"},\"CommunityFee(uint16)\":{\"notice\":\"Emitted when the community fee is changed by the pool\"},\"CommunityVault(address)\":{\"notice\":\"Emitted when the community vault address changes\"},\"ExcessTokens(uint256,uint256)\":{\"notice\":\"Emitted when the pool has higher balances than expected. Any excess of tokens will be distributed between liquidity providers as fee.\"},\"Fee(uint16)\":{\"notice\":\"Emitted when the fee changes inside the pool\"},\"Flash(address,address,uint256,uint256,uint256,uint256)\":{\"notice\":\"Emitted by the pool for any flashes of token0/token1\"},\"Initialize(uint160,int24)\":{\"notice\":\"Emitted exactly once by a pool when #initialize is first called on the pool\"},\"Mint(address,address,int24,int24,uint128,uint256,uint256)\":{\"notice\":\"Emitted when liquidity is minted for a given position\"},\"Plugin(address)\":{\"notice\":\"Emitted when the plugin address changes\"},\"PluginConfig(uint8)\":{\"notice\":\"Emitted when the plugin config changes\"},\"Skim(address,uint256,uint256)\":{\"notice\":\"Emitted when the plugin does skim the excess of tokens\"},\"Swap(address,address,int256,int256,uint160,uint128,int24)\":{\"notice\":\"Emitted by the pool for any swaps between token0 and token1\"},\"SwapFee(address,uint24,uint24)\":{\"notice\":\"Emitted by the pool after any swaps \"},\"TickSpacing(int24)\":{\"notice\":\"Emitted when the tick spacing changes\"}},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol\":\"IAlgebraPoolEvents\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol\":{\"keccak256\":\"0xd6b18486bd0eaee545ad10115d33c527e5ba5ddff571120678e7db58ca00b726\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://470a64313758d0a26a6910c924eae39e5c4df6912c61e7239e0d930097f8512f\",\"dweb:/ipfs/QmY18B9x18hLCKQ3kAqjPhHzMvZxKrvNeUjPycKYodETaa\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol":{"IAlgebraPoolImmutables":{"abi":[{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLiquidityPerTick","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"factory()":"c45a0155","maxLiquidityPerTick()":"70cf754a","token0()":"0dfe1681","token1()":"d21220a7"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxLiquidityPerTick\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"kind\":\"dev\",\"methods\":{\"factory()\":{\"returns\":{\"_0\":\"The contract address\"}},\"maxLiquidityPerTick()\":{\"details\":\"This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool\",\"returns\":{\"_0\":\"The max amount of liquidity per tick\"}},\"token0()\":{\"returns\":{\"_0\":\"The token contract address\"}},\"token1()\":{\"returns\":{\"_0\":\"The token contract address\"}}},\"title\":\"Pool state that never changes\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"factory()\":{\"notice\":\"The Algebra factory contract, which must adhere to the IAlgebraFactory interface\"},\"maxLiquidityPerTick()\":{\"notice\":\"The maximum amount of position liquidity that can use any tick in the range\"},\"token0()\":{\"notice\":\"The first of the two tokens of the pool, sorted by address\"},\"token1()\":{\"notice\":\"The second of the two tokens of the pool, sorted by address\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol\":\"IAlgebraPoolImmutables\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol\":{\"keccak256\":\"0x02d0fb9c64fba4c4dd0509bb9333825c801a0587d5b957c46f5cb1c610acc447\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://8480784b2654829c0958b00aa3109249ce9088dbe94b6eadeaf8e9138829a764\",\"dweb:/ipfs/QmeFG5AsPUQfhMPtvYC3f9BhGu7sVm71wj2PgXDczaM7XP\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol":{"IAlgebraPoolPermissionedActions":{"abi":[{"inputs":[{"internalType":"uint16","name":"newCommunityFee","type":"uint16"}],"name":"setCommunityFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newCommunityVault","type":"address"}],"name":"setCommunityVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newFee","type":"uint16"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPluginAddress","type":"address"}],"name":"setPlugin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newConfig","type":"uint8"}],"name":"setPluginConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"newTickSpacing","type":"int24"}],"name":"setTickSpacing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"skim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"setCommunityFee(uint16)":"240a875a","setCommunityVault(address)":"d8544cf3","setFee(uint16)":"8e005553","setPlugin(address)":"cc1f97cf","setPluginConfig(uint8)":"bca57f81","setTickSpacing(int24)":"f085a610","skim()":"1dd19cb4","sync()":"fff6cae9"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newCommunityFee\",\"type\":\"uint16\"}],\"name\":\"setCommunityFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newCommunityVault\",\"type\":\"address\"}],\"name\":\"setCommunityVault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newFee\",\"type\":\"uint16\"}],\"name\":\"setFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPluginAddress\",\"type\":\"address\"}],\"name\":\"setPlugin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"newConfig\",\"type\":\"uint8\"}],\"name\":\"setPluginConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"newTickSpacing\",\"type\":\"int24\"}],\"name\":\"setTickSpacing\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"skim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sync\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"kind\":\"dev\",\"methods\":{\"setCommunityFee(uint16)\":{\"params\":{\"newCommunityFee\":\"The new community fee percent in thousandths (1e-3)\"}},\"setCommunityVault(address)\":{\"details\":\"Community fee vault receives collected community fees. **accumulated but not yet sent to the vault community fees once will be sent to the `newCommunityVault` address**\",\"params\":{\"newCommunityVault\":\"The address of new community fee vault\"}},\"setFee(uint16)\":{\"params\":{\"newFee\":\"The new fee value\"}},\"setPlugin(address)\":{\"params\":{\"newPluginAddress\":\"The new plugin address\"}},\"setPluginConfig(uint8)\":{\"params\":{\"newConfig\":\"In the new configuration of the plugin, each bit of which is responsible for a particular hook.\"}},\"setTickSpacing(int24)\":{\"params\":{\"newTickSpacing\":\"The new tick spacing value\"}},\"skim()\":{\"details\":\"Only plugin can call this function\"},\"sync()\":{\"details\":\"Only plugin can call this function\"}},\"title\":\"Permissioned pool actions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"setCommunityFee(uint16)\":{\"notice\":\"Set the community's % share of the fees. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setCommunityVault(address)\":{\"notice\":\"Set new community fee vault address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setFee(uint16)\":{\"notice\":\"Set new pool fee. Can be called by owner if dynamic fee is disabled. Called by the plugin if dynamic fee is enabled\"},\"setPlugin(address)\":{\"notice\":\"Set the new plugin address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setPluginConfig(uint8)\":{\"notice\":\"Set new plugin config. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"setTickSpacing(int24)\":{\"notice\":\"Set the new tick spacing values. Only factory owner or POOLS_ADMINISTRATOR_ROLE role\"},\"skim()\":{\"notice\":\"Forces balances to match reserves. Excessive tokens will be sent to msg.sender\"},\"sync()\":{\"notice\":\"Forces balances to match reserves. Excessive tokens will be distributed between active LPs\"}},\"notice\":\"Contains pool methods that may only be called by permissioned addresses\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol\":\"IAlgebraPoolPermissionedActions\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol\":{\"keccak256\":\"0xbd9faad7e7599c61c3141cfe2dd2e423ad4746a6119f047b0ae6d2eccb77bc9c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d0df4bed6cf34a8c0f6b971fb71411373b4d204afda35eabe8555d8cbe67e291\",\"dweb:/ipfs/QmY6z3BseKy3tEvmLVjhL7VFrNJRuQgDXJXNAFBkBQ218A\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol":{"IAlgebraPoolState":{"abi":[{"inputs":[],"name":"communityVault","outputs":[{"internalType":"address","name":"communityVaultAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint16","name":"currentFee","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCommunityFeePending","outputs":[{"internalType":"uint128","name":"communityFeePending0","type":"uint128"},{"internalType":"uint128","name":"communityFeePending1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPluginFeePending","outputs":[{"internalType":"uint128","name":"pluginFeePending0","type":"uint128"},{"internalType":"uint128","name":"pluginFeePending1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint128","name":"reserve0","type":"uint128"},{"internalType":"uint128","name":"reserve1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalState","outputs":[{"internalType":"uint160","name":"price","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"},{"internalType":"uint16","name":"lastFee","type":"uint16"},{"internalType":"uint8","name":"pluginConfig","type":"uint8"},{"internalType":"uint16","name":"communityFee","type":"uint16"},{"internalType":"bool","name":"unlocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isUnlocked","outputs":[{"internalType":"bool","name":"unlocked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastFeeTransferTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidity","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTickGlobal","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plugin","outputs":[{"internalType":"address","name":"pluginAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"key","type":"bytes32"}],"name":"positions","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"innerFeeGrowth0Token","type":"uint256"},{"internalType":"uint256","name":"innerFeeGrowth1Token","type":"uint256"},{"internalType":"uint128","name":"fees0","type":"uint128"},{"internalType":"uint128","name":"fees1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prevTickGlobal","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safelyGetStateOfAMM","outputs":[{"internalType":"uint160","name":"sqrtPrice","type":"uint160"},{"internalType":"int24","name":"tick","type":"int24"},{"internalType":"uint16","name":"lastFee","type":"uint16"},{"internalType":"uint8","name":"pluginConfig","type":"uint8"},{"internalType":"uint128","name":"activeLiquidity","type":"uint128"},{"internalType":"int24","name":"nextTick","type":"int24"},{"internalType":"int24","name":"previousTick","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tickSpacing","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int16","name":"wordPosition","type":"int16"}],"name":"tickTable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tickTreeRoot","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int16","name":"","type":"int16"}],"name":"tickTreeSecondLayer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"tick","type":"int24"}],"name":"ticks","outputs":[{"internalType":"uint256","name":"liquidityTotal","type":"uint256"},{"internalType":"int128","name":"liquidityDelta","type":"int128"},{"internalType":"int24","name":"prevTick","type":"int24"},{"internalType":"int24","name":"nextTick","type":"int24"},{"internalType":"uint256","name":"outerFeeGrowth0Token","type":"uint256"},{"internalType":"uint256","name":"outerFeeGrowth1Token","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeGrowth0Token","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeGrowth1Token","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"communityVault()":"53e97868","fee()":"ddca3f43","getCommunityFeePending()":"7bd78025","getPluginFeePending()":"a1eded87","getReserves()":"0902f1ac","globalState()":"e76c01e4","isUnlocked()":"8380edb7","lastFeeTransferTimestamp()":"77f8c3a9","liquidity()":"1a686502","nextTickGlobal()":"d5c35a7e","plugin()":"ef01df4f","positions(bytes32)":"514ea4bf","prevTickGlobal()":"050a4d21","safelyGetStateOfAMM()":"97ce1c51","tickSpacing()":"d0c93a7c","tickTable(int16)":"c677e3e0","tickTreeRoot()":"578b9a36","tickTreeSecondLayer(int16)":"d8619037","ticks(int24)":"f30dba93","totalFeeGrowth0Token()":"6378ae44","totalFeeGrowth1Token()":"ecdecf42"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"communityVault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"communityVaultAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fee\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"currentFee\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCommunityFeePending\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"communityFeePending0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"communityFeePending1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPluginFeePending\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"pluginFeePending0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"pluginFeePending1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"reserve0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"reserve1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalState\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"price\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"lastFee\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"pluginConfig\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"communityFee\",\"type\":\"uint16\"},{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isUnlocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastFeeTransferTimestamp\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidity\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextTickGlobal\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"plugin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pluginAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"name\":\"positions\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"innerFeeGrowth0Token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"innerFeeGrowth1Token\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"fees0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"fees1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"prevTickGlobal\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"safelyGetStateOfAMM\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtPrice\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"lastFee\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"pluginConfig\",\"type\":\"uint8\"},{\"internalType\":\"uint128\",\"name\":\"activeLiquidity\",\"type\":\"uint128\"},{\"internalType\":\"int24\",\"name\":\"nextTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"previousTick\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickSpacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"wordPosition\",\"type\":\"int16\"}],\"name\":\"tickTable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickTreeRoot\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"\",\"type\":\"int16\"}],\"name\":\"tickTreeSecondLayer\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"ticks\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidityTotal\",\"type\":\"uint256\"},{\"internalType\":\"int128\",\"name\":\"liquidityDelta\",\"type\":\"int128\"},{\"internalType\":\"int24\",\"name\":\"prevTick\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"nextTick\",\"type\":\"int24\"},{\"internalType\":\"uint256\",\"name\":\"outerFeeGrowth0Token\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"outerFeeGrowth1Token\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalFeeGrowth0Token\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalFeeGrowth1Token\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Important security note: when using this data by external contracts, it is necessary to take into account the possibility of manipulation (including read-only reentrancy). This interface is based on the UniswapV3 interface, credit to Uniswap Labs under GPL-2.0-or-later license: https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces\",\"kind\":\"dev\",\"methods\":{\"communityVault()\":{\"returns\":{\"communityVaultAddress\":\"The communityVault address\"}},\"fee()\":{\"details\":\"In case dynamic fee is enabled in the pool, this method will call the plugin to get the current fee. If the plugin implements complex fee logic, this method may return an incorrect value or revert. In this case, see the plugin implementation and related documentation.**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"currentFee\":\"The current pool fee value in hundredths of a bip, i.e. 1e-6\"}},\"getCommunityFeePending()\":{\"details\":\"Will be sent FEE_TRANSFER_FREQUENCY after communityFeeLastTimestamp\",\"returns\":{\"communityFeePending0\":\"The amount of token0 that will be sent to the vault\",\"communityFeePending1\":\"The amount of token1 that will be sent to the vault\"}},\"getPluginFeePending()\":{\"details\":\"Will be sent FEE_TRANSFER_FREQUENCY after feeLastTransferTimestamp\",\"returns\":{\"pluginFeePending0\":\"The amount of token0 that will be sent to the plugin\",\"pluginFeePending1\":\"The amount of token1 that will be sent to the plugin\"}},\"getReserves()\":{\"details\":\"If at any time the real balance is larger, the excess will be transferred to liquidity providers as additional fee. If the balance exceeds uint128, the excess will be sent to the communityVault.\",\"returns\":{\"reserve0\":\"The last known reserve of token0\",\"reserve1\":\"The last known reserve of token1\"}},\"globalState()\":{\"details\":\"**important security note: caller should check `unlocked` flag to prevent read-only reentrancy**\",\"returns\":{\"communityFee\":\"The community fee represented as a percent of all collected fee in thousandths, i.e. 1e-3 (so 100 is 10%)\",\"lastFee\":\"The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\",\"pluginConfig\":\"The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\",\"price\":\"The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\",\"tick\":\"The current tick of the pool, i.e. according to the last tick transition that was run This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\",\"unlocked\":\"Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\"}},\"isUnlocked()\":{\"details\":\"can be used to prevent read-only reentrancy. This method just returns `globalState.unlocked` value\",\"returns\":{\"unlocked\":\"Reentrancy lock flag, true if the pool currently is unlocked, otherwise - false\"}},\"lastFeeTransferTimestamp()\":{\"returns\":{\"_0\":\"The timestamp truncated to 32 bits\"}},\"liquidity()\":{\"details\":\"This value has no relationship to the total liquidity across all ticks. Returned value cannot exceed type(uint128).max**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The current in range liquidity\"}},\"nextTickGlobal()\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The next initialized tick\"}},\"plugin()\":{\"details\":\"The plugin is subject to change\",\"returns\":{\"pluginAddress\":\"The address of currently used plugin\"}},\"positions(bytes32)\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"params\":{\"key\":\"The position's key is a packed concatenation of the owner address, bottomTick and topTick indexes\"},\"returns\":{\"fees0\":\"The computed amount of token0 owed to the position as of the last mint/burn/poke\",\"fees1\":\"The computed amount of token1 owed to the position as of the last mint/burn/poke\",\"innerFeeGrowth0Token\":\"Fee growth of token0 inside the tick range as of the last mint/burn/poke\",\"innerFeeGrowth1Token\":\"Fee growth of token1 inside the tick range as of the last mint/burn/poke\",\"liquidity\":\"The amount of liquidity in the position\"}},\"prevTickGlobal()\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The previous initialized tick\"}},\"safelyGetStateOfAMM()\":{\"details\":\"Several values exposed as a single method to save gas when accessed externally. **Important security note: this method checks reentrancy lock and should be preferred in most cases**.\",\"returns\":{\"activeLiquidity\":\" The currently in-range liquidity available to the pool\",\"lastFee\":\"The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using dynamic fee plugin\",\"nextTick\":\"The next initialized tick after current global tick\",\"pluginConfig\":\"The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off dynamic fees logic\",\"previousTick\":\"The previous initialized tick before (or at) current global tick\",\"sqrtPrice\":\"The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value\",\"tick\":\"The current global tick of the pool. May not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick boundary\"}},\"tickSpacing()\":{\"details\":\"Ticks can only be initialized by new mints at multiples of this value e.g.: a tickSpacing of 60 means ticks can be initialized every 60th tick, i.e., ..., -120, -60, 0, 60, 120, ... However, tickspacing can be changed after the ticks have been initialized. This value is an int24 to avoid casting even though it is always positive.\",\"returns\":{\"_0\":\"The current tick spacing\"}},\"tickTable(int16)\":{\"params\":{\"wordPosition\":\"Index of 256-bits word with ticks\"},\"returns\":{\"_0\":\"The 256-bits word with packed ticks info\"}},\"tickTreeRoot()\":{\"details\":\"Each bit corresponds to one node in the second layer of tick tree: '1' if node has at least one active bit. **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The root of tick search tree as bitmap\"}},\"tickTreeSecondLayer(int16)\":{\"details\":\"Each bit in node corresponds to one node in the leafs layer (`tickTable`) of tick tree: '1' if leaf has at least one active bit. **important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"returns\":{\"_0\":\"The node of tick search tree second layer\"}},\"ticks(int24)\":{\"details\":\"**important security note: caller should check reentrancy lock to prevent read-only reentrancy**\",\"params\":{\"tick\":\"The tick to look up\"},\"returns\":{\"liquidityDelta\":\"How much liquidity changes when the pool price crosses the tick\",\"liquidityTotal\":\"The total amount of position liquidity that uses the pool either as tick lower or tick upper\",\"nextTick\":\"The next tick in tick list\",\"outerFeeGrowth0Token\":\"The fee growth on the other side of the tick from the current tick in token0\",\"outerFeeGrowth1Token\":\"The fee growth on the other side of the tick from the current tick in token1 In addition, these values are only relative and must be used only in comparison to previous snapshots for a specific position.\",\"prevTick\":\"The previous tick in tick list\"}},\"totalFeeGrowth0Token()\":{\"details\":\"This value can overflow the uint256\",\"returns\":{\"_0\":\"The fee growth accumulator for token0\"}},\"totalFeeGrowth1Token()\":{\"details\":\"This value can overflow the uint256\",\"returns\":{\"_0\":\"The fee growth accumulator for token1\"}}},\"title\":\"Pool state that can change\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"communityVault()\":{\"notice\":\"The contract to which community fees are transferred\"},\"fee()\":{\"notice\":\"The current pool fee value\"},\"getCommunityFeePending()\":{\"notice\":\"The amounts of token0 and token1 that will be sent to the vault\"},\"getPluginFeePending()\":{\"notice\":\"The amounts of token0 and token1 that will be sent to the plugin\"},\"getReserves()\":{\"notice\":\"The tracked token0 and token1 reserves of pool\"},\"globalState()\":{\"notice\":\"The globalState structure in the pool stores many values but requires only one slot and is exposed as a single method to save gas when accessed externally.\"},\"isUnlocked()\":{\"notice\":\"Allows to easily get current reentrancy lock status\"},\"lastFeeTransferTimestamp()\":{\"notice\":\"The timestamp of the last sending of tokens to vault/plugin\"},\"liquidity()\":{\"notice\":\"The currently in range liquidity available to the pool\"},\"nextTickGlobal()\":{\"notice\":\"The next initialized tick after current global tick\"},\"plugin()\":{\"notice\":\"Returns the address of currently used plugin\"},\"positions(bytes32)\":{\"notice\":\"Returns the information about a position by the position's key\"},\"prevTickGlobal()\":{\"notice\":\"The previous initialized tick before (or at) current global tick\"},\"safelyGetStateOfAMM()\":{\"notice\":\"Safely get most important state values of Algebra Integral AMM\"},\"tickSpacing()\":{\"notice\":\"The current tick spacing\"},\"tickTable(int16)\":{\"notice\":\"Returns 256 packed tick initialized boolean values. See TickTree for more information\"},\"tickTreeRoot()\":{\"notice\":\"The root of tick search tree\"},\"tickTreeSecondLayer(int16)\":{\"notice\":\"The second layer of tick search tree\"},\"ticks(int24)\":{\"notice\":\"Look up information about a specific tick in the pool\"},\"totalFeeGrowth0Token()\":{\"notice\":\"The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool\"},\"totalFeeGrowth1Token()\":{\"notice\":\"The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol\":\"IAlgebraPoolState\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol\":{\"keccak256\":\"0xe061f0f9b5b16934173b1127efe13ccfe80465db17156d91c04e018b31e993fa\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://c607033ec09828f4a8667e7fd2e562814ec689d5806d95b4a248f57e0eff9d38\",\"dweb:/ipfs/QmbGBxBMSzPKitHmRjYJwGGEZVsXDQB6emSsZ19hjy6LUz\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol":{"IAlgebraVaultFactory":{"abi":[{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"address","name":"deployer","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"}],"name":"createVaultForPool","outputs":[{"internalType":"address","name":"communityFeeVault","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"getVaultForPool","outputs":[{"internalType":"address","name":"communityFeeVault","type":"address"}],"stateMutability":"view","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"createVaultForPool(address,address,address,address,address)":"b8a1d3c6","getVaultForPool(address)":"7570e389"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"}],\"name\":\"createVaultForPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"communityFeeVault\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"getVaultForPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"communityFeeVault\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Version: Algebra Integral\",\"kind\":\"dev\",\"methods\":{\"createVaultForPool(address,address,address,address,address)\":{\"params\":{\"pool\":\"the address of Algebra Integral pool\"},\"returns\":{\"communityFeeVault\":\"the address of community fee vault\"}},\"getVaultForPool(address)\":{\"params\":{\"pool\":\"the address of Algebra Integral pool\"},\"returns\":{\"communityFeeVault\":\"the address of community fee vault\"}}},\"title\":\"The interface for the Algebra Vault Factory\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"createVaultForPool(address,address,address,address,address)\":{\"notice\":\"creates the community fee vault for the pool if needed\"},\"getVaultForPool(address)\":{\"notice\":\"returns address of the community fee vault for the pool\"}},\"notice\":\"This contract can be used for automatic vaults creation\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol\":\"IAlgebraVaultFactory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol\":{\"keccak256\":\"0xcdaae6cd6af79c4f344e673fe886a980ef5203b15b49f7a466c336c0152ce6ae\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://fa2d3073bd4ca013e2769cf0fa5b68f32cec4fa53a6cc66adb59d86e6293cf15\",\"dweb:/ipfs/QmcwveJdf3JLAPfFZShijKTTxMTP4joDDuSuFboXBe711S\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol":{"Plugins":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH1 0x2D PUSH1 0x37 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x2A JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"311:817:16:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;311:817:16;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"311:817:16:-:0;;;;;;;;"},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Allows pool to check which hooks are enabled, as well as control the return selector\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Contains logic and constants for interacting with the plugin through hooks\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol\":\"Plugins\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol\":{\"keccak256\":\"0x354b1e099e9a47ce6fdc2ff4a4549249fa9c54434bf4dedb14fd4afe7d94d2d5\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d9efe57e2239df29c7290fc1a27c8f0a6d8aa1f9e4c9271efadb8b29b29d7058\",\"dweb:/ipfs/QmbRJqfJR62Bx7XhN8qNBk85zjpWfyxSSiC5vHpxXnYMKb\"]}},\"version\":1}"}},"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol":{"SafeTransfer":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH1 0x2D PUSH1 0x37 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x2A JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"521:1313:17:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;521:1313:17;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"521:1313:17:-:0;;;;;;;;"},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Credit to Solmate under MIT license: https://github.com/transmissions11/solmate/blob/ed67feda67b24fdeff8ad1032360f0ee6047ba0a/src/utils/SafeTransferLib.solPlease note that this library does not check if the token has a code! That responsibility is delegated to the caller.\",\"kind\":\"dev\",\"methods\":{},\"title\":\"SafeTransfer\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Safe ERC20 transfer library that gracefully handles missing return values.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol\":\"SafeTransfer\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol\":{\"keccak256\":\"0x14e91c94e35c50efcd97e13609f686499c1dfa726ee0b3f6078fa4b99bde9a0a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1d9a7efa21d03180ded0e99d7ba05abd5c8ebedf2439a5a78091b679eadc4064\",\"dweb:/ipfs/QmVUZPhYPTb2yY9381AL242tfVsb3iWxmE2XwqcN9HG6eW\"]}},\"version\":1}"}},"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol":{"Initializable":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"}],\"devdoc\":{\"custom:oz-upgrades-unsafe-allow\":\"constructor constructor() {     _disableInitializers(); } ``` ====\",\"details\":\"This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. The initialization functions use a version number. Once a version number is used, it is consumed and cannot be reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in case an upgrade adds a module that needs to be initialized. For example: [.hljs-theme-light.nopadding] ```solidity contract MyToken is ERC20Upgradeable {     function initialize() initializer public {         __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");     } } contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {     function initializeV2() reinitializer(2) public {         __ERC20Permit_init(\\\"MyToken\\\");     } } ``` TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. [CAUTION] ==== Avoid leaving a contract uninitialized. An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: [.hljs-theme-light.nopadding] ```\",\"events\":{\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"}},\"kind\":\"dev\",\"methods\":{},\"stateVariables\":{\"_initialized\":{\"custom:oz-retyped-from\":\"bool\",\"details\":\"Indicates that the contract has been initialized.\"},\"_initializing\":{\"details\":\"Indicates that the contract is in the process of being initialized.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":\"Initializable\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f103ee2e4aecd37aac6ceefe670709cdd7613dee25fa2d4d9feaf7fc0aaa155e\",\"dweb:/ipfs/QmRiNZLoJk5k3HPMYGPGjZFd2ke1ZxjhJZkM45Ec9GH9hv\"]},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://310136ad60820af4177a11a61d77a3686faf5fca4942b600e08fc940db38396b\",\"dweb:/ipfs/QmbCzMNSTL7Zi7M4UCSqBrkHtp4jjxUnGbkneCZKdR1qeq\"]}},\"version\":1}"}},"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol":{"AddressUpgradeable":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH1 0x2D PUSH1 0x37 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x2A JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"194:9180:19:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;194:9180:19;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"194:9180:19:-:0;;;;;;;;"},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Collection of functions related to the address type\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":\"AddressUpgradeable\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://310136ad60820af4177a11a61d77a3686faf5fca4942b600e08fc940db38396b\",\"dweb:/ipfs/QmbCzMNSTL7Zi7M4UCSqBrkHtp4jjxUnGbkneCZKdR1qeq\"]}},\"version\":1}"}},"contracts/FeeDiscountConnector.sol":{"FeeDiscountConnector":{"abi":[{"inputs":[],"name":"ConnectorDelegatecallFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"registry","type":"address"}],"name":"FeeDiscountRegistry","type":"event"},{"inputs":[],"name":"feeDiscountRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"registry","type":"address"}],"name":"setFeeDiscountRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"feeDiscountRegistry()":"f20cdc1a","setFeeDiscountRegistry(address)":"c3da7978"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"ConnectorDelegatecallFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"name\":\"FeeDiscountRegistry\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"feeDiscountRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"name\":\"setFeeDiscountRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"stateVariables\":{\"feeDiscountImplementation\":{\"details\":\"changes only on full plugin upgrade\"}},\"title\":\"FeeDiscount Connector\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"This contract provides delegatecall interface to FeeDiscount plugin implementation\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/FeeDiscountConnector.sol\":\"FeeDiscountConnector\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/abstract-plugin/contracts/BaseConnector.sol\":{\"keccak256\":\"0x4d00d580227bab1f04a401d26846f48ced21c785dd7e7b5485da21653fef8722\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://fdc52831c08d9cd58ec8b3c95320fdbe97e1a0a72663da2575fae4c3027822f8\",\"dweb:/ipfs/QmSwnbXtswaioxM5tNVr8VYxEDRY8V1oJZYVHdFgbDhCBH\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol\":{\"keccak256\":\"0x354b1e099e9a47ce6fdc2ff4a4549249fa9c54434bf4dedb14fd4afe7d94d2d5\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d9efe57e2239df29c7290fc1a27c8f0a6d8aa1f9e4c9271efadb8b29b29d7058\",\"dweb:/ipfs/QmbRJqfJR62Bx7XhN8qNBk85zjpWfyxSSiC5vHpxXnYMKb\"]},\"contracts/FeeDiscountConnector.sol\":{\"keccak256\":\"0x0eda4960b8edd40d8ed4df642546f2853839ab3f9d67eb0f4a9b191226b93a5f\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://918aef2151f6dd109c1e241a326bc73504dbafcc1db2703b2a33e04b6ce9199c\",\"dweb:/ipfs/QmVZEJpqR39Q5ou7H8MUWsWYdPGKb7BnRUfYvm36Vu8ovN\"]},\"contracts/interfaces/IFeeDiscountPlugin.sol\":{\"keccak256\":\"0x6c71fab8279bcef79c72d2b5db33892d3aa397ead4265aff42ea8c3f34717e36\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://13840df9f58030922eb8b92a3ac17270092ff9d3ea04f90b5d7c76d6d1e25c9f\",\"dweb:/ipfs/QmVLVsMa9GshFvqK6R8H55XeZSWF7KxWa6hj7tgujGCSxM\"]},\"contracts/interfaces/IFeeDiscountPluginImplementation.sol\":{\"keccak256\":\"0x388b2bedd1462ecefec2b8af7226af30660a690bbb73edd51eb3777755c6cb3c\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://93dbcd7945b2577d17b765dda38d4ae88011e52dbf2b09c7a2d5b330593d735a\",\"dweb:/ipfs/QmayEF2dSYVgy1WJx5JHKje6pFYEgWGuFNh5CebpQJJ8mh\"]},\"contracts/libraries/FeeDiscountStorage.sol\":{\"keccak256\":\"0x5acfdadbe80260a844fc8c367e5d552cd2371495b9b81494602dfb4cc073ac51\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://9a84ec317e06d69b00a7c8986f641a1ec5e17b4c9a17ac6d58cf571b929b5173\",\"dweb:/ipfs/QmcafqAcQXqnmyKy9omy4xfSjk31cBUvoM7jZRfN5oB54v\"]}},\"version\":1}"}},"contracts/FeeDiscountPluginImplementation.sol":{"FeeDiscountPluginImplementation":{"abi":[{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"}],"name":"applyFeeDiscount","outputs":[{"internalType":"uint24","name":"updatedFee","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getFeeDiscountRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeDiscountRegistry","type":"address"}],"name":"initializeFeeDiscount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeDiscountRegistry","type":"address"}],"name":"setFeeDiscountRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"608060405234801561001057600080fd5b506103a3806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80631018860c146100515780636408f8201461007d578063a9dd77e7146100c4578063c3da7978146100c4575b600080fd5b61006461005f366004610258565b61013a565b60405162ffffff90911681526020015b60405180910390f35b7fb52f6c388bc01f052495924fd2facf0f81baeac5975b25912d0279719977d3005460405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610074565b6101386100d23660046102a7565b7fb52f6c388bc01f052495924fd2facf0f81baeac5975b25912d0279719977d30080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b005b6000807fb52f6c388bc01f052495924fd2facf0f81baeac5975b25912d0279719977d300546040517f1101ce3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152868116602483015290911690631101ce3e906044016020604051808303816000875af11580156101d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101fa91906102c9565b90506103e8610209828261031c565b61021c9061ffff1662ffffff861661033e565b610226919061035b565b95945050505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461025357600080fd5b919050565b60008060006060848603121561026d57600080fd5b6102768461022f565b92506102846020850161022f565b9150604084013562ffffff8116811461029c57600080fd5b809150509250925092565b6000602082840312156102b957600080fd5b6102c28261022f565b9392505050565b6000602082840312156102db57600080fd5b815161ffff811681146102c257600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b61ffff828116828216039080821115610337576103376102ed565b5092915050565b8082028115828204841417610355576103556102ed565b92915050565b600082610391577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea164736f6c6343000814000a","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x3A3 DUP1 PUSH2 0x20 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x4C JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x1018860C EQ PUSH2 0x51 JUMPI DUP1 PUSH4 0x6408F820 EQ PUSH2 0x7D JUMPI DUP1 PUSH4 0xA9DD77E7 EQ PUSH2 0xC4 JUMPI DUP1 PUSH4 0xC3DA7978 EQ PUSH2 0xC4 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x64 PUSH2 0x5F CALLDATASIZE PUSH1 0x4 PUSH2 0x258 JUMP JUMPDEST PUSH2 0x13A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH3 0xFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH32 0xB52F6C388BC01F052495924FD2FACF0F81BAEAC5975B25912D0279719977D300 SLOAD PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x74 JUMP JUMPDEST PUSH2 0x138 PUSH2 0xD2 CALLDATASIZE PUSH1 0x4 PUSH2 0x2A7 JUMP JUMPDEST PUSH32 0xB52F6C388BC01F052495924FD2FACF0F81BAEAC5975B25912D0279719977D300 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 PUSH32 0xB52F6C388BC01F052495924FD2FACF0F81BAEAC5975B25912D0279719977D300 SLOAD PUSH1 0x40 MLOAD PUSH32 0x1101CE3E00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP8 DUP2 AND PUSH1 0x4 DUP4 ADD MSTORE DUP7 DUP2 AND PUSH1 0x24 DUP4 ADD MSTORE SWAP1 SWAP2 AND SWAP1 PUSH4 0x1101CE3E SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1D6 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x1FA SWAP2 SWAP1 PUSH2 0x2C9 JUMP JUMPDEST SWAP1 POP PUSH2 0x3E8 PUSH2 0x209 DUP3 DUP3 PUSH2 0x31C JUMP JUMPDEST PUSH2 0x21C SWAP1 PUSH2 0xFFFF AND PUSH3 0xFFFFFF DUP7 AND PUSH2 0x33E JUMP JUMPDEST PUSH2 0x226 SWAP2 SWAP1 PUSH2 0x35B JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0x253 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x26D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x276 DUP5 PUSH2 0x22F JUMP JUMPDEST SWAP3 POP PUSH2 0x284 PUSH1 0x20 DUP6 ADD PUSH2 0x22F JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH3 0xFFFFFF DUP2 AND DUP2 EQ PUSH2 0x29C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x2B9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2C2 DUP3 PUSH2 0x22F JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x2DB JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH2 0xFFFF DUP2 AND DUP2 EQ PUSH2 0x2C2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH2 0xFFFF DUP3 DUP2 AND DUP3 DUP3 AND SUB SWAP1 DUP1 DUP3 GT ISZERO PUSH2 0x337 JUMPI PUSH2 0x337 PUSH2 0x2ED JUMP JUMPDEST POP SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 DUP3 MUL DUP2 ISZERO DUP3 DUP3 DIV DUP5 EQ OR PUSH2 0x355 JUMPI PUSH2 0x355 PUSH2 0x2ED JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0x391 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x12 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST POP DIV SWAP1 JUMP INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"449:1410:21:-:0;;;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{"@applyFeeDiscount_2537":{"entryPoint":314,"id":2537,"parameterSlots":3,"returnSlots":1},"@getFeeDiscountRegistry_2493":{"entryPoint":null,"id":2493,"parameterSlots":0,"returnSlots":1},"@initializeFeeDiscount_2466":{"entryPoint":null,"id":2466,"parameterSlots":1,"returnSlots":0},"@layout_2674":{"entryPoint":null,"id":2674,"parameterSlots":0,"returnSlots":1},"@setFeeDiscountRegistry_2481":{"entryPoint":null,"id":2481,"parameterSlots":1,"returnSlots":0},"abi_decode_address":{"entryPoint":559,"id":null,"parameterSlots":1,"returnSlots":1},"abi_decode_tuple_t_address":{"entryPoint":679,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_addresst_addresst_uint24":{"entryPoint":600,"id":null,"parameterSlots":2,"returnSlots":3},"abi_decode_tuple_t_uint16_fromMemory":{"entryPoint":713,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_address__to_t_address__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_address_t_address__to_t_address_t_address__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":3,"returnSlots":1},"abi_encode_tuple_t_uint24__to_t_uint24__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"checked_div_t_uint256":{"entryPoint":859,"id":null,"parameterSlots":2,"returnSlots":1},"checked_mul_t_uint256":{"entryPoint":830,"id":null,"parameterSlots":2,"returnSlots":1},"checked_sub_t_uint16":{"entryPoint":796,"id":null,"parameterSlots":2,"returnSlots":1},"panic_error_0x11":{"entryPoint":749,"id":null,"parameterSlots":0,"returnSlots":0}},"generatedSources":[{"ast":{"nodeType":"YulBlock","src":"0:2686:28","statements":[{"nodeType":"YulBlock","src":"6:3:28","statements":[]},{"body":{"nodeType":"YulBlock","src":"63:147:28","statements":[{"nodeType":"YulAssignment","src":"73:29:28","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"95:6:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"82:12:28"},"nodeType":"YulFunctionCall","src":"82:20:28"},"variableNames":[{"name":"value","nodeType":"YulIdentifier","src":"73:5:28"}]},{"body":{"nodeType":"YulBlock","src":"188:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"197:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"200:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"190:6:28"},"nodeType":"YulFunctionCall","src":"190:12:28"},"nodeType":"YulExpressionStatement","src":"190:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"124:5:28"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"135:5:28"},{"kind":"number","nodeType":"YulLiteral","src":"142:42:28","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"131:3:28"},"nodeType":"YulFunctionCall","src":"131:54:28"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"121:2:28"},"nodeType":"YulFunctionCall","src":"121:65:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"114:6:28"},"nodeType":"YulFunctionCall","src":"114:73:28"},"nodeType":"YulIf","src":"111:93:28"}]},"name":"abi_decode_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"42:6:28","type":""}],"returnVariables":[{"name":"value","nodeType":"YulTypedName","src":"53:5:28","type":""}],"src":"14:196:28"},{"body":{"nodeType":"YulBlock","src":"318:319:28","statements":[{"body":{"nodeType":"YulBlock","src":"364:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"373:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"376:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"366:6:28"},"nodeType":"YulFunctionCall","src":"366:12:28"},"nodeType":"YulExpressionStatement","src":"366:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"339:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"348:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"335:3:28"},"nodeType":"YulFunctionCall","src":"335:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"360:2:28","type":"","value":"96"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"331:3:28"},"nodeType":"YulFunctionCall","src":"331:32:28"},"nodeType":"YulIf","src":"328:52:28"},{"nodeType":"YulAssignment","src":"389:39:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"418:9:28"}],"functionName":{"name":"abi_decode_address","nodeType":"YulIdentifier","src":"399:18:28"},"nodeType":"YulFunctionCall","src":"399:29:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"389:6:28"}]},{"nodeType":"YulAssignment","src":"437:48:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"470:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"481:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"466:3:28"},"nodeType":"YulFunctionCall","src":"466:18:28"}],"functionName":{"name":"abi_decode_address","nodeType":"YulIdentifier","src":"447:18:28"},"nodeType":"YulFunctionCall","src":"447:38:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"437:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"494:45:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"524:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"535:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"520:3:28"},"nodeType":"YulFunctionCall","src":"520:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"507:12:28"},"nodeType":"YulFunctionCall","src":"507:32:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"498:5:28","type":""}]},{"body":{"nodeType":"YulBlock","src":"591:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"600:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"603:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"593:6:28"},"nodeType":"YulFunctionCall","src":"593:12:28"},"nodeType":"YulExpressionStatement","src":"593:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"561:5:28"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"572:5:28"},{"kind":"number","nodeType":"YulLiteral","src":"579:8:28","type":"","value":"0xffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"568:3:28"},"nodeType":"YulFunctionCall","src":"568:20:28"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"558:2:28"},"nodeType":"YulFunctionCall","src":"558:31:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"551:6:28"},"nodeType":"YulFunctionCall","src":"551:39:28"},"nodeType":"YulIf","src":"548:59:28"},{"nodeType":"YulAssignment","src":"616:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"626:5:28"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"616:6:28"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_uint24","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"268:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"279:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"291:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"299:6:28","type":""},{"name":"value2","nodeType":"YulTypedName","src":"307:6:28","type":""}],"src":"215:422:28"},{"body":{"nodeType":"YulBlock","src":"741:91:28","statements":[{"nodeType":"YulAssignment","src":"751:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"763:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"774:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"759:3:28"},"nodeType":"YulFunctionCall","src":"759:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"751:4:28"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"793:9:28"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"808:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"816:8:28","type":"","value":"0xffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"804:3:28"},"nodeType":"YulFunctionCall","src":"804:21:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"786:6:28"},"nodeType":"YulFunctionCall","src":"786:40:28"},"nodeType":"YulExpressionStatement","src":"786:40:28"}]},"name":"abi_encode_tuple_t_uint24__to_t_uint24__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"710:9:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"721:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"732:4:28","type":""}],"src":"642:190:28"},{"body":{"nodeType":"YulBlock","src":"938:125:28","statements":[{"nodeType":"YulAssignment","src":"948:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"960:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"971:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"956:3:28"},"nodeType":"YulFunctionCall","src":"956:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"948:4:28"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"990:9:28"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"1005:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"1013:42:28","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1001:3:28"},"nodeType":"YulFunctionCall","src":"1001:55:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"983:6:28"},"nodeType":"YulFunctionCall","src":"983:74:28"},"nodeType":"YulExpressionStatement","src":"983:74:28"}]},"name":"abi_encode_tuple_t_address__to_t_address__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"907:9:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"918:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"929:4:28","type":""}],"src":"837:226:28"},{"body":{"nodeType":"YulBlock","src":"1138:116:28","statements":[{"body":{"nodeType":"YulBlock","src":"1184:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1193:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1196:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"1186:6:28"},"nodeType":"YulFunctionCall","src":"1186:12:28"},"nodeType":"YulExpressionStatement","src":"1186:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"1159:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"1168:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"1155:3:28"},"nodeType":"YulFunctionCall","src":"1155:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"1180:2:28","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"1151:3:28"},"nodeType":"YulFunctionCall","src":"1151:32:28"},"nodeType":"YulIf","src":"1148:52:28"},{"nodeType":"YulAssignment","src":"1209:39:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1238:9:28"}],"functionName":{"name":"abi_decode_address","nodeType":"YulIdentifier","src":"1219:18:28"},"nodeType":"YulFunctionCall","src":"1219:29:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"1209:6:28"}]}]},"name":"abi_decode_tuple_t_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"1104:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"1115:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"1127:6:28","type":""}],"src":"1068:186:28"},{"body":{"nodeType":"YulBlock","src":"1388:198:28","statements":[{"nodeType":"YulAssignment","src":"1398:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1410:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"1421:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1406:3:28"},"nodeType":"YulFunctionCall","src":"1406:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"1398:4:28"}]},{"nodeType":"YulVariableDeclaration","src":"1433:52:28","value":{"kind":"number","nodeType":"YulLiteral","src":"1443:42:28","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"1437:2:28","type":""}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1501:9:28"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"1516:6:28"},{"name":"_1","nodeType":"YulIdentifier","src":"1524:2:28"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1512:3:28"},"nodeType":"YulFunctionCall","src":"1512:15:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1494:6:28"},"nodeType":"YulFunctionCall","src":"1494:34:28"},"nodeType":"YulExpressionStatement","src":"1494:34:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1548:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"1559:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1544:3:28"},"nodeType":"YulFunctionCall","src":"1544:18:28"},{"arguments":[{"name":"value1","nodeType":"YulIdentifier","src":"1568:6:28"},{"name":"_1","nodeType":"YulIdentifier","src":"1576:2:28"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1564:3:28"},"nodeType":"YulFunctionCall","src":"1564:15:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1537:6:28"},"nodeType":"YulFunctionCall","src":"1537:43:28"},"nodeType":"YulExpressionStatement","src":"1537:43:28"}]},"name":"abi_encode_tuple_t_address_t_address__to_t_address_t_address__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"1349:9:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"1360:6:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"1368:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"1379:4:28","type":""}],"src":"1259:327:28"},{"body":{"nodeType":"YulBlock","src":"1671:196:28","statements":[{"body":{"nodeType":"YulBlock","src":"1717:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1726:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1729:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"1719:6:28"},"nodeType":"YulFunctionCall","src":"1719:12:28"},"nodeType":"YulExpressionStatement","src":"1719:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"1692:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"1701:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"1688:3:28"},"nodeType":"YulFunctionCall","src":"1688:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"1713:2:28","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"1684:3:28"},"nodeType":"YulFunctionCall","src":"1684:32:28"},"nodeType":"YulIf","src":"1681:52:28"},{"nodeType":"YulVariableDeclaration","src":"1742:29:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1761:9:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"1755:5:28"},"nodeType":"YulFunctionCall","src":"1755:16:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"1746:5:28","type":""}]},{"body":{"nodeType":"YulBlock","src":"1821:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1830:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1833:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"1823:6:28"},"nodeType":"YulFunctionCall","src":"1823:12:28"},"nodeType":"YulExpressionStatement","src":"1823:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"1793:5:28"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"1804:5:28"},{"kind":"number","nodeType":"YulLiteral","src":"1811:6:28","type":"","value":"0xffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1800:3:28"},"nodeType":"YulFunctionCall","src":"1800:18:28"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"1790:2:28"},"nodeType":"YulFunctionCall","src":"1790:29:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"1783:6:28"},"nodeType":"YulFunctionCall","src":"1783:37:28"},"nodeType":"YulIf","src":"1780:57:28"},{"nodeType":"YulAssignment","src":"1846:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"1856:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"1846:6:28"}]}]},"name":"abi_decode_tuple_t_uint16_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"1637:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"1648:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"1660:6:28","type":""}],"src":"1591:276:28"},{"body":{"nodeType":"YulBlock","src":"1904:152:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1921:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1924:77:28","type":"","value":"35408467139433450592217433187231851964531694900788300625387963629091585785856"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1914:6:28"},"nodeType":"YulFunctionCall","src":"1914:88:28"},"nodeType":"YulExpressionStatement","src":"1914:88:28"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2018:1:28","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"2021:4:28","type":"","value":"0x11"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2011:6:28"},"nodeType":"YulFunctionCall","src":"2011:15:28"},"nodeType":"YulExpressionStatement","src":"2011:15:28"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2042:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"2045:4:28","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"2035:6:28"},"nodeType":"YulFunctionCall","src":"2035:15:28"},"nodeType":"YulExpressionStatement","src":"2035:15:28"}]},"name":"panic_error_0x11","nodeType":"YulFunctionDefinition","src":"1872:184:28"},{"body":{"nodeType":"YulBlock","src":"2109:123:28","statements":[{"nodeType":"YulVariableDeclaration","src":"2119:16:28","value":{"kind":"number","nodeType":"YulLiteral","src":"2129:6:28","type":"","value":"0xffff"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"2123:2:28","type":""}]},{"nodeType":"YulAssignment","src":"2144:35:28","value":{"arguments":[{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"2160:1:28"},{"name":"_1","nodeType":"YulIdentifier","src":"2163:2:28"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2156:3:28"},"nodeType":"YulFunctionCall","src":"2156:10:28"},{"arguments":[{"name":"y","nodeType":"YulIdentifier","src":"2172:1:28"},{"name":"_1","nodeType":"YulIdentifier","src":"2175:2:28"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2168:3:28"},"nodeType":"YulFunctionCall","src":"2168:10:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"2152:3:28"},"nodeType":"YulFunctionCall","src":"2152:27:28"},"variableNames":[{"name":"diff","nodeType":"YulIdentifier","src":"2144:4:28"}]},{"body":{"nodeType":"YulBlock","src":"2204:22:28","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x11","nodeType":"YulIdentifier","src":"2206:16:28"},"nodeType":"YulFunctionCall","src":"2206:18:28"},"nodeType":"YulExpressionStatement","src":"2206:18:28"}]},"condition":{"arguments":[{"name":"diff","nodeType":"YulIdentifier","src":"2194:4:28"},{"name":"_1","nodeType":"YulIdentifier","src":"2200:2:28"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"2191:2:28"},"nodeType":"YulFunctionCall","src":"2191:12:28"},"nodeType":"YulIf","src":"2188:38:28"}]},"name":"checked_sub_t_uint16","nodeType":"YulFunctionDefinition","parameters":[{"name":"x","nodeType":"YulTypedName","src":"2091:1:28","type":""},{"name":"y","nodeType":"YulTypedName","src":"2094:1:28","type":""}],"returnVariables":[{"name":"diff","nodeType":"YulTypedName","src":"2100:4:28","type":""}],"src":"2061:171:28"},{"body":{"nodeType":"YulBlock","src":"2289:116:28","statements":[{"nodeType":"YulAssignment","src":"2299:20:28","value":{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"2314:1:28"},{"name":"y","nodeType":"YulIdentifier","src":"2317:1:28"}],"functionName":{"name":"mul","nodeType":"YulIdentifier","src":"2310:3:28"},"nodeType":"YulFunctionCall","src":"2310:9:28"},"variableNames":[{"name":"product","nodeType":"YulIdentifier","src":"2299:7:28"}]},{"body":{"nodeType":"YulBlock","src":"2377:22:28","statements":[{"expression":{"arguments":[],"functionName":{"name":"panic_error_0x11","nodeType":"YulIdentifier","src":"2379:16:28"},"nodeType":"YulFunctionCall","src":"2379:18:28"},"nodeType":"YulExpressionStatement","src":"2379:18:28"}]},"condition":{"arguments":[{"arguments":[{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"2348:1:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"2341:6:28"},"nodeType":"YulFunctionCall","src":"2341:9:28"},{"arguments":[{"name":"y","nodeType":"YulIdentifier","src":"2355:1:28"},{"arguments":[{"name":"product","nodeType":"YulIdentifier","src":"2362:7:28"},{"name":"x","nodeType":"YulIdentifier","src":"2371:1:28"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"2358:3:28"},"nodeType":"YulFunctionCall","src":"2358:15:28"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"2352:2:28"},"nodeType":"YulFunctionCall","src":"2352:22:28"}],"functionName":{"name":"or","nodeType":"YulIdentifier","src":"2338:2:28"},"nodeType":"YulFunctionCall","src":"2338:37:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"2331:6:28"},"nodeType":"YulFunctionCall","src":"2331:45:28"},"nodeType":"YulIf","src":"2328:71:28"}]},"name":"checked_mul_t_uint256","nodeType":"YulFunctionDefinition","parameters":[{"name":"x","nodeType":"YulTypedName","src":"2268:1:28","type":""},{"name":"y","nodeType":"YulTypedName","src":"2271:1:28","type":""}],"returnVariables":[{"name":"product","nodeType":"YulTypedName","src":"2277:7:28","type":""}],"src":"2237:168:28"},{"body":{"nodeType":"YulBlock","src":"2456:228:28","statements":[{"body":{"nodeType":"YulBlock","src":"2487:168:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2508:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"2511:77:28","type":"","value":"35408467139433450592217433187231851964531694900788300625387963629091585785856"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2501:6:28"},"nodeType":"YulFunctionCall","src":"2501:88:28"},"nodeType":"YulExpressionStatement","src":"2501:88:28"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2609:1:28","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"2612:4:28","type":"","value":"0x12"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2602:6:28"},"nodeType":"YulFunctionCall","src":"2602:15:28"},"nodeType":"YulExpressionStatement","src":"2602:15:28"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2637:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"2640:4:28","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"2630:6:28"},"nodeType":"YulFunctionCall","src":"2630:15:28"},"nodeType":"YulExpressionStatement","src":"2630:15:28"}]},"condition":{"arguments":[{"name":"y","nodeType":"YulIdentifier","src":"2476:1:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"2469:6:28"},"nodeType":"YulFunctionCall","src":"2469:9:28"},"nodeType":"YulIf","src":"2466:189:28"},{"nodeType":"YulAssignment","src":"2664:14:28","value":{"arguments":[{"name":"x","nodeType":"YulIdentifier","src":"2673:1:28"},{"name":"y","nodeType":"YulIdentifier","src":"2676:1:28"}],"functionName":{"name":"div","nodeType":"YulIdentifier","src":"2669:3:28"},"nodeType":"YulFunctionCall","src":"2669:9:28"},"variableNames":[{"name":"r","nodeType":"YulIdentifier","src":"2664:1:28"}]}]},"name":"checked_div_t_uint256","nodeType":"YulFunctionDefinition","parameters":[{"name":"x","nodeType":"YulTypedName","src":"2441:1:28","type":""},{"name":"y","nodeType":"YulTypedName","src":"2444:1:28","type":""}],"returnVariables":[{"name":"r","nodeType":"YulTypedName","src":"2450:1:28","type":""}],"src":"2410:274:28"}]},"contents":"{\n    { }\n    function abi_decode_address(offset) -> value\n    {\n        value := calldataload(offset)\n        if iszero(eq(value, and(value, 0xffffffffffffffffffffffffffffffffffffffff))) { revert(0, 0) }\n    }\n    function abi_decode_tuple_t_addresst_addresst_uint24(headStart, dataEnd) -> value0, value1, value2\n    {\n        if slt(sub(dataEnd, headStart), 96) { revert(0, 0) }\n        value0 := abi_decode_address(headStart)\n        value1 := abi_decode_address(add(headStart, 32))\n        let value := calldataload(add(headStart, 64))\n        if iszero(eq(value, and(value, 0xffffff))) { revert(0, 0) }\n        value2 := value\n    }\n    function abi_encode_tuple_t_uint24__to_t_uint24__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, and(value0, 0xffffff))\n    }\n    function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, and(value0, 0xffffffffffffffffffffffffffffffffffffffff))\n    }\n    function abi_decode_tuple_t_address(headStart, dataEnd) -> value0\n    {\n        if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n        value0 := abi_decode_address(headStart)\n    }\n    function abi_encode_tuple_t_address_t_address__to_t_address_t_address__fromStack_reversed(headStart, value1, value0) -> tail\n    {\n        tail := add(headStart, 64)\n        let _1 := 0xffffffffffffffffffffffffffffffffffffffff\n        mstore(headStart, and(value0, _1))\n        mstore(add(headStart, 32), and(value1, _1))\n    }\n    function abi_decode_tuple_t_uint16_fromMemory(headStart, dataEnd) -> value0\n    {\n        if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n        let value := mload(headStart)\n        if iszero(eq(value, and(value, 0xffff))) { revert(0, 0) }\n        value0 := value\n    }\n    function panic_error_0x11()\n    {\n        mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n        mstore(4, 0x11)\n        revert(0, 0x24)\n    }\n    function checked_sub_t_uint16(x, y) -> diff\n    {\n        let _1 := 0xffff\n        diff := sub(and(x, _1), and(y, _1))\n        if gt(diff, _1) { panic_error_0x11() }\n    }\n    function checked_mul_t_uint256(x, y) -> product\n    {\n        product := mul(x, y)\n        if iszero(or(iszero(x), eq(y, div(product, x)))) { panic_error_0x11() }\n    }\n    function checked_div_t_uint256(x, y) -> r\n    {\n        if iszero(y)\n        {\n            mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n            mstore(4, 0x12)\n            revert(0, 0x24)\n        }\n        r := div(x, y)\n    }\n}","id":28,"language":"Yul","name":"#utility.yul"}],"immutableReferences":{},"linkReferences":{},"object":"608060405234801561001057600080fd5b506004361061004c5760003560e01c80631018860c146100515780636408f8201461007d578063a9dd77e7146100c4578063c3da7978146100c4575b600080fd5b61006461005f366004610258565b61013a565b60405162ffffff90911681526020015b60405180910390f35b7fb52f6c388bc01f052495924fd2facf0f81baeac5975b25912d0279719977d3005460405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610074565b6101386100d23660046102a7565b7fb52f6c388bc01f052495924fd2facf0f81baeac5975b25912d0279719977d30080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b005b6000807fb52f6c388bc01f052495924fd2facf0f81baeac5975b25912d0279719977d300546040517f1101ce3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152868116602483015290911690631101ce3e906044016020604051808303816000875af11580156101d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101fa91906102c9565b90506103e8610209828261031c565b61021c9061ffff1662ffffff861661033e565b610226919061035b565b95945050505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461025357600080fd5b919050565b60008060006060848603121561026d57600080fd5b6102768461022f565b92506102846020850161022f565b9150604084013562ffffff8116811461029c57600080fd5b809150509250925092565b6000602082840312156102b957600080fd5b6102c28261022f565b9392505050565b6000602082840312156102db57600080fd5b815161ffff811681146102c257600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b61ffff828116828216039080821115610337576103376102ed565b5092915050565b8082028115828204841417610355576103556102ed565b92915050565b600082610391577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea164736f6c6343000814000a","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x4C JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x1018860C EQ PUSH2 0x51 JUMPI DUP1 PUSH4 0x6408F820 EQ PUSH2 0x7D JUMPI DUP1 PUSH4 0xA9DD77E7 EQ PUSH2 0xC4 JUMPI DUP1 PUSH4 0xC3DA7978 EQ PUSH2 0xC4 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x64 PUSH2 0x5F CALLDATASIZE PUSH1 0x4 PUSH2 0x258 JUMP JUMPDEST PUSH2 0x13A JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH3 0xFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH32 0xB52F6C388BC01F052495924FD2FACF0F81BAEAC5975B25912D0279719977D300 SLOAD PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x74 JUMP JUMPDEST PUSH2 0x138 PUSH2 0xD2 CALLDATASIZE PUSH1 0x4 PUSH2 0x2A7 JUMP JUMPDEST PUSH32 0xB52F6C388BC01F052495924FD2FACF0F81BAEAC5975B25912D0279719977D300 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 AND PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE JUMP JUMPDEST STOP JUMPDEST PUSH1 0x0 DUP1 PUSH32 0xB52F6C388BC01F052495924FD2FACF0F81BAEAC5975B25912D0279719977D300 SLOAD PUSH1 0x40 MLOAD PUSH32 0x1101CE3E00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP8 DUP2 AND PUSH1 0x4 DUP4 ADD MSTORE DUP7 DUP2 AND PUSH1 0x24 DUP4 ADD MSTORE SWAP1 SWAP2 AND SWAP1 PUSH4 0x1101CE3E SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1D6 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x1FA SWAP2 SWAP1 PUSH2 0x2C9 JUMP JUMPDEST SWAP1 POP PUSH2 0x3E8 PUSH2 0x209 DUP3 DUP3 PUSH2 0x31C JUMP JUMPDEST PUSH2 0x21C SWAP1 PUSH2 0xFFFF AND PUSH3 0xFFFFFF DUP7 AND PUSH2 0x33E JUMP JUMPDEST PUSH2 0x226 SWAP2 SWAP1 PUSH2 0x35B JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST DUP1 CALLDATALOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0x253 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x26D JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x276 DUP5 PUSH2 0x22F JUMP JUMPDEST SWAP3 POP PUSH2 0x284 PUSH1 0x20 DUP6 ADD PUSH2 0x22F JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH3 0xFFFFFF DUP2 AND DUP2 EQ PUSH2 0x29C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x2B9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x2C2 DUP3 PUSH2 0x22F JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x2DB JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH2 0xFFFF DUP2 AND DUP2 EQ PUSH2 0x2C2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x11 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH2 0xFFFF DUP3 DUP2 AND DUP3 DUP3 AND SUB SWAP1 DUP1 DUP3 GT ISZERO PUSH2 0x337 JUMPI PUSH2 0x337 PUSH2 0x2ED JUMP JUMPDEST POP SWAP3 SWAP2 POP POP JUMP JUMPDEST DUP1 DUP3 MUL DUP2 ISZERO DUP3 DUP3 DIV DUP5 EQ OR PUSH2 0x355 JUMPI PUSH2 0x355 PUSH2 0x2ED JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH2 0x391 JUMPI PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x12 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST POP DIV SWAP1 JUMP INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"449:1410:21:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1517:340;;;;;;:::i;:::-;;:::i;:::-;;;816:8:28;804:21;;;786:40;;774:2;759:18;1517:340:21;;;;;;;;1204:131;350:66:26;1283:47:21;1204:131;;1283:47;;;;983:74:28;;971:2;956:18;1204:131:21;837:226:28;701:151:21;;;;;;:::i;:::-;350:66:26;777:70:21;;;;;;;;;;;;;;;701:151;;;1517:340;1601:17;;350:66:26;1668:47:21;1647:94;;;;;1668:47;1512:15:28;;;1647:94:21;;;1494:34:28;1564:15;;;1544:18;;;1537:43;1668:47:21;;;;1647:82;;1406:18:28;;1647:94:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1626:115;-1:-1:-1;581:4:21;1784:38;1626:115;581:4;1784:38;:::i;:::-;1768:55;;;;:12;;;:55;:::i;:::-;1767:84;;;;:::i;:::-;1747:105;1517:340;-1:-1:-1;;;;;1517:340:21:o;14:196:28:-;82:20;;142:42;131:54;;121:65;;111:93;;200:1;197;190:12;111:93;14:196;;;:::o;215:422::-;291:6;299;307;360:2;348:9;339:7;335:23;331:32;328:52;;;376:1;373;366:12;328:52;399:29;418:9;399:29;:::i;:::-;389:39;;447:38;481:2;470:9;466:18;447:38;:::i;:::-;437:48;;535:2;524:9;520:18;507:32;579:8;572:5;568:20;561:5;558:31;548:59;;603:1;600;593:12;548:59;626:5;616:15;;;215:422;;;;;:::o;1068:186::-;1127:6;1180:2;1168:9;1159:7;1155:23;1151:32;1148:52;;;1196:1;1193;1186:12;1148:52;1219:29;1238:9;1219:29;:::i;:::-;1209:39;1068:186;-1:-1:-1;;;1068:186:28:o;1591:276::-;1660:6;1713:2;1701:9;1692:7;1688:23;1684:32;1681:52;;;1729:1;1726;1719:12;1681:52;1761:9;1755:16;1811:6;1804:5;1800:18;1793:5;1790:29;1780:57;;1833:1;1830;1823:12;1872:184;1924:77;1921:1;1914:88;2021:4;2018:1;2011:15;2045:4;2042:1;2035:15;2061:171;2129:6;2168:10;;;2156;;;2152:27;;2191:12;;;2188:38;;;2206:18;;:::i;:::-;2188:38;2061:171;;;;:::o;2237:168::-;2310:9;;;2341;;2358:15;;;2352:22;;2338:37;2328:71;;2379:18;;:::i;:::-;2237:168;;;;:::o;2410:274::-;2450:1;2476;2466:189;;2511:77;2508:1;2501:88;2612:4;2609:1;2602:15;2640:4;2637:1;2630:15;2466:189;-1:-1:-1;2669:9:28;;2410:274::o"},"methodIdentifiers":{"applyFeeDiscount(address,address,uint24)":"1018860c","getFeeDiscountRegistry()":"6408f820","initializeFeeDiscount(address)":"a9dd77e7","setFeeDiscountRegistry(address)":"c3da7978"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"}],\"name\":\"applyFeeDiscount\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"updatedFee\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFeeDiscountRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeDiscountRegistry\",\"type\":\"address\"}],\"name\":\"initializeFeeDiscount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeDiscountRegistry\",\"type\":\"address\"}],\"name\":\"setFeeDiscountRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Called via delegatecall from FeeDiscountConnector to reduce main contract size\",\"kind\":\"dev\",\"methods\":{\"applyFeeDiscount(address,address,uint24)\":{\"params\":{\"fee\":\"Original fee\",\"pool\":\"Pool address\",\"user\":\"User address\"},\"returns\":{\"updatedFee\":\"Fee after discount\"}},\"getFeeDiscountRegistry()\":{\"returns\":{\"_0\":\"Fee discount registry address\"}},\"initializeFeeDiscount(address)\":{\"params\":{\"_feeDiscountRegistry\":\"Address of fee discount registry\"}},\"setFeeDiscountRegistry(address)\":{\"params\":{\"_feeDiscountRegistry\":\"New fee discount registry address\"}}},\"title\":\"FeeDiscount Plugin Implementation\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"applyFeeDiscount(address,address,uint24)\":{\"notice\":\"Apply fee discount for user\"},\"getFeeDiscountRegistry()\":{\"notice\":\"Get fee discount registry\"},\"initializeFeeDiscount(address)\":{\"notice\":\"Initialize FeeDiscount plugin\"},\"setFeeDiscountRegistry(address)\":{\"notice\":\"Set fee discount registry\"}},\"notice\":\"This contract contains logic for FeeDiscount plugin that works with namespaced storage\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/FeeDiscountPluginImplementation.sol\":\"FeeDiscountPluginImplementation\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"contracts/FeeDiscountPluginImplementation.sol\":{\"keccak256\":\"0xfa4623bf150a0968887fc75a7fe5b7907369b7459b543066fe969ea3476582f5\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://e369f6e553dbc3abaf8221d86e94b12bcee24b139ce2063a7c5e2fe9ec31e329\",\"dweb:/ipfs/QmUkWCJfbNZugWJGMZNHS5qWgQ2shQC1s8DVLWN8PEztGQ\"]},\"contracts/interfaces/IFeeDiscountPluginImplementation.sol\":{\"keccak256\":\"0x388b2bedd1462ecefec2b8af7226af30660a690bbb73edd51eb3777755c6cb3c\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://93dbcd7945b2577d17b765dda38d4ae88011e52dbf2b09c7a2d5b330593d735a\",\"dweb:/ipfs/QmayEF2dSYVgy1WJx5JHKje6pFYEgWGuFNh5CebpQJJ8mh\"]},\"contracts/interfaces/IFeeDiscountRegistry.sol\":{\"keccak256\":\"0x21904fdeb60ce4df4a47668660e5d6c512c722f0bc38f3935b0a505346f267fd\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://1cbdebe7b9d97da98c52557cb680116c2df7080a4a6b08772b73846e9fe10e54\",\"dweb:/ipfs/QmdcWkBjqb4aWpvH6tkqm5RKgQ4GXGwBbaaZPtmC9fZWaP\"]},\"contracts/libraries/FeeDiscountStorage.sol\":{\"keccak256\":\"0x5acfdadbe80260a844fc8c367e5d552cd2371495b9b81494602dfb4cc073ac51\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://9a84ec317e06d69b00a7c8986f641a1ec5e17b4c9a17ac6d58cf571b929b5173\",\"dweb:/ipfs/QmcafqAcQXqnmyKy9omy4xfSjk31cBUvoM7jZRfN5oB54v\"]}},\"version\":1}"}},"contracts/interfaces/IFeeDiscountPlugin.sol":{"IFeeDiscountPlugin":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"registry","type":"address"}],"name":"FeeDiscountRegistry","type":"event"},{"inputs":[],"name":"feeDiscountRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"registry","type":"address"}],"name":"setFeeDiscountRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"feeDiscountRegistry()":"f20cdc1a","setFeeDiscountRegistry(address)":"c3da7978"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"name\":\"FeeDiscountRegistry\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"feeDiscountRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"name\":\"setFeeDiscountRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IFeeDiscountPlugin.sol\":\"IFeeDiscountPlugin\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IFeeDiscountPlugin.sol\":{\"keccak256\":\"0x6c71fab8279bcef79c72d2b5db33892d3aa397ead4265aff42ea8c3f34717e36\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://13840df9f58030922eb8b92a3ac17270092ff9d3ea04f90b5d7c76d6d1e25c9f\",\"dweb:/ipfs/QmVLVsMa9GshFvqK6R8H55XeZSWF7KxWa6hj7tgujGCSxM\"]}},\"version\":1}"}},"contracts/interfaces/IFeeDiscountPluginFactory.sol":{"IFeeDiscountPluginFactory":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newFeeDiscountRegistry","type":"address"}],"name":"FeeDiscountRegistry","type":"event"},{"inputs":[],"name":"feeDiscountRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeDiscountRegistry","type":"address"}],"name":"setFeeDiscountRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"feeDiscountRegistry()":"f20cdc1a","setFeeDiscountRegistry(address)":"c3da7978"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newFeeDiscountRegistry\",\"type\":\"address\"}],\"name\":\"FeeDiscountRegistry\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"feeDiscountRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newFeeDiscountRegistry\",\"type\":\"address\"}],\"name\":\"setFeeDiscountRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"FeeDiscountRegistry(address)\":{\"params\":{\"newFeeDiscountRegistry\":\"The new fee discount registry address\"}}},\"kind\":\"dev\",\"methods\":{\"feeDiscountRegistry()\":{\"returns\":{\"_0\":\"The fee discount registry contract address\"}},\"setFeeDiscountRegistry(address)\":{\"params\":{\"newFeeDiscountRegistry\":\"The new fee discount registry address\"}}},\"title\":\"The interface for the IFeeDiscountPluginFactory\",\"version\":1},\"userdoc\":{\"events\":{\"FeeDiscountRegistry(address)\":{\"notice\":\"Emitted when the fee discount registry is changed\"}},\"kind\":\"user\",\"methods\":{\"feeDiscountRegistry()\":{\"notice\":\"Returns the address of the fee discount registry\"},\"setFeeDiscountRegistry(address)\":{\"notice\":\"Changes the fee discount registry address\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IFeeDiscountPluginFactory.sol\":\"IFeeDiscountPluginFactory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IFeeDiscountPluginFactory.sol\":{\"keccak256\":\"0xf1efe53cef7d73d3f100f6ca90d24ab62dcdc9770522e293e0d82e70c1602c90\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://36983f3491ba5657a7c0b01c9273fab4d3a75570a240fca513b39fdcfb93d7fe\",\"dweb:/ipfs/Qmc9oYn7b4WZSXwUs93ZnBtreH4Dkn5rZXgig8cuqB8kHb\"]}},\"version\":1}"}},"contracts/interfaces/IFeeDiscountPluginImplementation.sol":{"IFeeDiscountPluginImplementation":{"abi":[{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"}],"name":"applyFeeDiscount","outputs":[{"internalType":"uint24","name":"updatedFee","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getFeeDiscountRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeDiscountRegistry","type":"address"}],"name":"initializeFeeDiscount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeDiscountRegistry","type":"address"}],"name":"setFeeDiscountRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"applyFeeDiscount(address,address,uint24)":"1018860c","getFeeDiscountRegistry()":"6408f820","initializeFeeDiscount(address)":"a9dd77e7","setFeeDiscountRegistry(address)":"c3da7978"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"}],\"name\":\"applyFeeDiscount\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"updatedFee\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFeeDiscountRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeDiscountRegistry\",\"type\":\"address\"}],\"name\":\"initializeFeeDiscount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeDiscountRegistry\",\"type\":\"address\"}],\"name\":\"setFeeDiscountRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Used for type-safe delegatecall encoding in FeeDiscountConnector\",\"kind\":\"dev\",\"methods\":{},\"title\":\"IFeeDiscountPluginImplementation\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"notice\":\"Interface for FeeDiscount plugin implementation contract\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IFeeDiscountPluginImplementation.sol\":\"IFeeDiscountPluginImplementation\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IFeeDiscountPluginImplementation.sol\":{\"keccak256\":\"0x388b2bedd1462ecefec2b8af7226af30660a690bbb73edd51eb3777755c6cb3c\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://93dbcd7945b2577d17b765dda38d4ae88011e52dbf2b09c7a2d5b330593d735a\",\"dweb:/ipfs/QmayEF2dSYVgy1WJx5JHKje6pFYEgWGuFNh5CebpQJJ8mh\"]}},\"version\":1}"}},"contracts/interfaces/IFeeDiscountRegistry.sol":{"IFeeDiscountRegistry":{"abi":[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"uint16","name":"newDiscount","type":"uint16"}],"name":"FeeDiscount","type":"event"},{"inputs":[],"name":"FEE_DISCOUNT_DENOMINATOR","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"FEE_DISCOUNT_MANAGER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"algebraFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"pool","type":"address"}],"name":"feeDiscounts","outputs":[{"internalType":"uint16","name":"feeDiscount","type":"uint16"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address[]","name":"pools","type":"address[]"},{"internalType":"uint16[]","name":"newDiscounts","type":"uint16[]"}],"name":"setFeeDiscount","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""},"methodIdentifiers":{"FEE_DISCOUNT_DENOMINATOR()":"51f8ba46","FEE_DISCOUNT_MANAGER()":"d2426f07","algebraFactory()":"a7b64b04","feeDiscounts(address,address)":"1101ce3e","setFeeDiscount(address,address[],uint16[])":"978e13ea"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"newDiscount\",\"type\":\"uint16\"}],\"name\":\"FeeDiscount\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"FEE_DISCOUNT_DENOMINATOR\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FEE_DISCOUNT_MANAGER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"algebraFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"feeDiscounts\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"feeDiscount\",\"type\":\"uint16\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"pools\",\"type\":\"address[]\"},{\"internalType\":\"uint16[]\",\"name\":\"newDiscounts\",\"type\":\"uint16[]\"}],\"name\":\"setFeeDiscount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/interfaces/IFeeDiscountRegistry.sol\":\"IFeeDiscountRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"contracts/interfaces/IFeeDiscountRegistry.sol\":{\"keccak256\":\"0x21904fdeb60ce4df4a47668660e5d6c512c722f0bc38f3935b0a505346f267fd\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://1cbdebe7b9d97da98c52557cb680116c2df7080a4a6b08772b73846e9fe10e54\",\"dweb:/ipfs/QmdcWkBjqb4aWpvH6tkqm5RKgQ4GXGwBbaaZPtmC9fZWaP\"]}},\"version\":1}"}},"contracts/libraries/FeeDiscountStorage.sol":{"FeeDiscountStorage":{"abi":[],"evm":{"bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH1 0x2D PUSH1 0x37 PUSH1 0xB DUP3 DUP3 DUP3 CODECOPY DUP1 MLOAD PUSH1 0x0 BYTE PUSH1 0x73 EQ PUSH1 0x2A JUMPI PUSH4 0x4E487B71 PUSH1 0xE0 SHL PUSH1 0x0 MSTORE PUSH1 0x0 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST ADDRESS PUSH1 0x0 MSTORE PUSH1 0x73 DUP2 MSTORE8 DUP3 DUP2 RETURN INVALID PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"159:464:26:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;159:464:26;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{},"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000814000a","opcodes":"PUSH20 0x0 ADDRESS EQ PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"159:464:26:-:0;;;;;;;;"},"methodIdentifiers":{}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Shared namespaced storage for FeeDiscount plugin (used by connector + implementation).\",\"kind\":\"dev\",\"methods\":{},\"stateVariables\":{\"NAMESPACE\":{\"details\":\"keccak256(abi.encode(uint256(keccak256(\\\"erc7201:algebra.storage.feediscount\\\")) - 1)) & ~bytes32(uint256(0xff))\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/libraries/FeeDiscountStorage.sol\":\"FeeDiscountStorage\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"contracts/libraries/FeeDiscountStorage.sol\":{\"keccak256\":\"0x5acfdadbe80260a844fc8c367e5d552cd2371495b9b81494602dfb4cc073ac51\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://9a84ec317e06d69b00a7c8986f641a1ec5e17b4c9a17ac6d58cf571b929b5173\",\"dweb:/ipfs/QmcafqAcQXqnmyKy9omy4xfSjk31cBUvoM7jZRfN5oB54v\"]}},\"version\":1}"}},"contracts/test/UpgradeableFeeDiscountPluginTest.sol":{"UpgradeableFeeDiscountPluginTest":{"abi":[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_pluginFactory","type":"address"},{"internalType":"address","name":"_feeDiscountImplementation","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ConnectorDelegatecallFailed","type":"error"},{"inputs":[],"name":"OnlyAdministrator","type":"error"},{"inputs":[],"name":"OnlyPluginFactory","type":"error"},{"inputs":[],"name":"OnlyPool","type":"error"},{"inputs":[],"name":"transferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"registry","type":"address"}],"name":"FeeDiscountRegistry","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"inputs":[],"name":"ALGEBRA_BASE_PLUGIN_MANAGER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POOL_ADDRESS_OFFSET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int24","name":"","type":"int24"}],"name":"afterInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int128","name":"","type":"int128"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"afterSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeFlash","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint160","name":"","type":"uint160"}],"name":"beforeInitialize","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int24","name":"","type":"int24"},{"internalType":"int128","name":"","type":"int128"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeModifyPosition","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint160","name":"","type":"uint160"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"beforeSwap","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"},{"internalType":"uint24","name":"","type":"uint24"},{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"collectPluginFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultPluginConfig","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDiscountRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getActiveModuleNames","outputs":[{"internalType":"string[]","name":"moduleNames","type":"string[]"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"handlePluginFee","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"address","name":"_feeDiscountRegistry","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pluginFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"registry","type":"address"}],"name":"setFeeDiscountRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"}],"evm":{"bytecode":{"functionDebugData":{"@_122":{"entryPoint":null,"id":122,"parameterSlots":2,"returnSlots":0},"@_2346":{"entryPoint":null,"id":2346,"parameterSlots":1,"returnSlots":0},"@_2707":{"entryPoint":null,"id":2707,"parameterSlots":3,"returnSlots":0},"@_disableInitializers_1959":{"entryPoint":108,"id":1959,"parameterSlots":0,"returnSlots":0},"abi_decode_address_fromMemory":{"entryPoint":301,"id":null,"parameterSlots":1,"returnSlots":1},"abi_decode_tuple_t_addresst_addresst_address_fromMemory":{"entryPoint":330,"id":null,"parameterSlots":2,"returnSlots":3},"abi_encode_tuple_t_stringliteral_a53f5879e7518078ff19b2e3d6b41e757a87364ec6872787feb45bfc41131d1a__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_uint8__to_t_uint8__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1}},"generatedSources":[{"ast":{"nodeType":"YulBlock","src":"0:1173:28","statements":[{"nodeType":"YulBlock","src":"6:3:28","statements":[]},{"body":{"nodeType":"YulBlock","src":"74:117:28","statements":[{"nodeType":"YulAssignment","src":"84:22:28","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"99:6:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"93:5:28"},"nodeType":"YulFunctionCall","src":"93:13:28"},"variableNames":[{"name":"value","nodeType":"YulIdentifier","src":"84:5:28"}]},{"body":{"nodeType":"YulBlock","src":"169:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"178:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"181:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"171:6:28"},"nodeType":"YulFunctionCall","src":"171:12:28"},"nodeType":"YulExpressionStatement","src":"171:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"128:5:28"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"139:5:28"},{"arguments":[{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"154:3:28","type":"","value":"160"},{"kind":"number","nodeType":"YulLiteral","src":"159:1:28","type":"","value":"1"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"150:3:28"},"nodeType":"YulFunctionCall","src":"150:11:28"},{"kind":"number","nodeType":"YulLiteral","src":"163:1:28","type":"","value":"1"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"146:3:28"},"nodeType":"YulFunctionCall","src":"146:19:28"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"135:3:28"},"nodeType":"YulFunctionCall","src":"135:31:28"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"125:2:28"},"nodeType":"YulFunctionCall","src":"125:42:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"118:6:28"},"nodeType":"YulFunctionCall","src":"118:50:28"},"nodeType":"YulIf","src":"115:70:28"}]},"name":"abi_decode_address_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"53:6:28","type":""}],"returnVariables":[{"name":"value","nodeType":"YulTypedName","src":"64:5:28","type":""}],"src":"14:177:28"},{"body":{"nodeType":"YulBlock","src":"311:263:28","statements":[{"body":{"nodeType":"YulBlock","src":"357:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"366:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"369:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"359:6:28"},"nodeType":"YulFunctionCall","src":"359:12:28"},"nodeType":"YulExpressionStatement","src":"359:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"332:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"341:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"328:3:28"},"nodeType":"YulFunctionCall","src":"328:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"353:2:28","type":"","value":"96"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"324:3:28"},"nodeType":"YulFunctionCall","src":"324:32:28"},"nodeType":"YulIf","src":"321:52:28"},{"nodeType":"YulAssignment","src":"382:50:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"422:9:28"}],"functionName":{"name":"abi_decode_address_fromMemory","nodeType":"YulIdentifier","src":"392:29:28"},"nodeType":"YulFunctionCall","src":"392:40:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"382:6:28"}]},{"nodeType":"YulAssignment","src":"441:59:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"485:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"496:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"481:3:28"},"nodeType":"YulFunctionCall","src":"481:18:28"}],"functionName":{"name":"abi_decode_address_fromMemory","nodeType":"YulIdentifier","src":"451:29:28"},"nodeType":"YulFunctionCall","src":"451:49:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"441:6:28"}]},{"nodeType":"YulAssignment","src":"509:59:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"553:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"564:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"549:3:28"},"nodeType":"YulFunctionCall","src":"549:18:28"}],"functionName":{"name":"abi_decode_address_fromMemory","nodeType":"YulIdentifier","src":"519:29:28"},"nodeType":"YulFunctionCall","src":"519:49:28"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"509:6:28"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_address_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"261:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"272:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"284:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"292:6:28","type":""},{"name":"value2","nodeType":"YulTypedName","src":"300:6:28","type":""}],"src":"196:378:28"},{"body":{"nodeType":"YulBlock","src":"753:229:28","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"770:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"781:2:28","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"763:6:28"},"nodeType":"YulFunctionCall","src":"763:21:28"},"nodeType":"YulExpressionStatement","src":"763:21:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"804:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"815:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"800:3:28"},"nodeType":"YulFunctionCall","src":"800:18:28"},{"kind":"number","nodeType":"YulLiteral","src":"820:2:28","type":"","value":"39"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"793:6:28"},"nodeType":"YulFunctionCall","src":"793:30:28"},"nodeType":"YulExpressionStatement","src":"793:30:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"843:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"854:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"839:3:28"},"nodeType":"YulFunctionCall","src":"839:18:28"},{"hexValue":"496e697469616c697a61626c653a20636f6e747261637420697320696e697469","kind":"string","nodeType":"YulLiteral","src":"859:34:28","type":"","value":"Initializable: contract is initi"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"832:6:28"},"nodeType":"YulFunctionCall","src":"832:62:28"},"nodeType":"YulExpressionStatement","src":"832:62:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"914:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"925:2:28","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"910:3:28"},"nodeType":"YulFunctionCall","src":"910:18:28"},{"hexValue":"616c697a696e67","kind":"string","nodeType":"YulLiteral","src":"930:9:28","type":"","value":"alizing"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"903:6:28"},"nodeType":"YulFunctionCall","src":"903:37:28"},"nodeType":"YulExpressionStatement","src":"903:37:28"},{"nodeType":"YulAssignment","src":"949:27:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"961:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"972:3:28","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"957:3:28"},"nodeType":"YulFunctionCall","src":"957:19:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"949:4:28"}]}]},"name":"abi_encode_tuple_t_stringliteral_a53f5879e7518078ff19b2e3d6b41e757a87364ec6872787feb45bfc41131d1a__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"730:9:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"744:4:28","type":""}],"src":"579:403:28"},{"body":{"nodeType":"YulBlock","src":"1084:87:28","statements":[{"nodeType":"YulAssignment","src":"1094:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1106:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"1117:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1102:3:28"},"nodeType":"YulFunctionCall","src":"1102:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"1094:4:28"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1136:9:28"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"1151:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"1159:4:28","type":"","value":"0xff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"1147:3:28"},"nodeType":"YulFunctionCall","src":"1147:17:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"1129:6:28"},"nodeType":"YulFunctionCall","src":"1129:36:28"},"nodeType":"YulExpressionStatement","src":"1129:36:28"}]},"name":"abi_encode_tuple_t_uint8__to_t_uint8__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"1053:9:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"1064:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"1075:4:28","type":""}],"src":"987:184:28"}]},"contents":"{\n    { }\n    function abi_decode_address_fromMemory(offset) -> value\n    {\n        value := mload(offset)\n        if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(0, 0) }\n    }\n    function abi_decode_tuple_t_addresst_addresst_address_fromMemory(headStart, dataEnd) -> value0, value1, value2\n    {\n        if slt(sub(dataEnd, headStart), 96) { revert(0, 0) }\n        value0 := abi_decode_address_fromMemory(headStart)\n        value1 := abi_decode_address_fromMemory(add(headStart, 32))\n        value2 := abi_decode_address_fromMemory(add(headStart, 64))\n    }\n    function abi_encode_tuple_t_stringliteral_a53f5879e7518078ff19b2e3d6b41e757a87364ec6872787feb45bfc41131d1a__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n    {\n        mstore(headStart, 32)\n        mstore(add(headStart, 32), 39)\n        mstore(add(headStart, 64), \"Initializable: contract is initi\")\n        mstore(add(headStart, 96), \"alizing\")\n        tail := add(headStart, 128)\n    }\n    function abi_encode_tuple_t_uint8__to_t_uint8__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, and(value0, 0xff))\n    }\n}","id":28,"language":"Yul","name":"#utility.yul"}],"linkReferences":{},"object":"60e06040523480156200001157600080fd5b50604051620019073803806200190783398101604081905262000034916200014a565b6001600160a01b03808416608052821660a052808383620000546200006c565b50506001600160a01b031660c0525062000194915050565b600054610100900460ff1615620000d95760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146200012b576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b80516001600160a01b03811681146200014557600080fd5b919050565b6000806000606084860312156200016057600080fd5b6200016b846200012d565b92506200017b602085016200012d565b91506200018b604085016200012d565b90509250925092565b60805160a05160c051611727620001e0600039600081816108df01528181610b610152610c430152600081816103b4015261061901526000818161037a0152610de501526117276000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c80638de0a8ee116100cd578063c45a015511610081578063e2a1bd5911610066578063e2a1bd59146103af578063e72c652d146103d6578063f20cdc1a146103e957600080fd5b8063c45a015514610375578063d68520101461039c57600080fd5b8063aa6b14bb116100b2578063aa6b14bb1461033a578063b6f78cc91461034d578063c3da79781461036257600080fd5b80638de0a8ee146103145780639cb5a9631461032757600080fd5b8063485cc95511610124578063636fd80411610109578063636fd804146102df578063689ea370146102f257806382dd65221461030157600080fd5b8063485cc9551461027b5780635e2411b21461029057600080fd5b806331b25d1a1161015557806331b25d1a146101fa578063343d37ff1461022f57806336badf631461027357600080fd5b8063029c1cb71461017157806316f0115b146101cd575b600080fd5b61018461017f3660046110ab565b610426565b604080517fffffffff00000000000000000000000000000000000000000000000000000000909416845262ffffff92831660208501529116908201526060015b60405180910390f35b6101d5610491565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101c4565b6102217f8e8000aba5b365c0be9685da1153f7f096e76d1ecfb42c050ae1e387aa65b4f581565b6040519081526020016101c4565b61024261023d366004611155565b6104a0565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020016101c4565b610221604b81565b61028e6102893660046111c4565b6104d8565b005b6102a361029e366004611223565b6106e1565b604080517fffffffff00000000000000000000000000000000000000000000000000000000909316835262ffffff9091166020830152016101c4565b6102426102ed3660046111c4565b61071d565b604051600181526020016101c4565b61024261030f3660046112c2565b610759565b61024261032236600461130d565b61078c565b610242610335366004611389565b6107c2565b610242610348366004611437565b6107fb565b61035561082d565b6040516101c4919061147d565b61028e610370366004611533565b6108b2565b6101d57f000000000000000000000000000000000000000000000000000000000000000081565b6102426103aa366004611557565b6109ca565b6101d57f000000000000000000000000000000000000000000000000000000000000000081565b61028e6103e43660046115bf565b610a03565b7fb52f6c388bc01f052495924fd2facf0f81baeac5975b25912d0279719977d3005473ffffffffffffffffffffffffffffffffffffffff166101d5565b6000806000610433610a16565b600061043d610a84565b5092505050600061045a8d610450610b10565b8461ffff16610b24565b7f029c1cb7000000000000000000000000000000000000000000000000000000009e909d5060009c509a5050505050505050505050565b600061049b610b10565b905090565b60006104aa610a16565b507f343d37ff0000000000000000000000000000000000000000000000000000000098975050505050505050565b600054610100900460ff16158080156104f85750600054600160ff909116105b806105125750303b158015610512575060005460ff166001145b6105a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055801561060157600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610670576040517f504d572800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61067982610c1e565b80156106dc57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b6000806106ec610a16565b507f5e2411b20000000000000000000000000000000000000000000000000000000098600098509650505050505050565b6000610727610a16565b6107316001610ce5565b507f636fd8040000000000000000000000000000000000000000000000000000000092915050565b6000610763610a16565b507f82dd6522000000000000000000000000000000000000000000000000000000009392505050565b6000610796610a16565b507f8de0a8ee000000000000000000000000000000000000000000000000000000009695505050505050565b60006107cc610a16565b507f9cb5a963000000000000000000000000000000000000000000000000000000009998505050505050505050565b6000610805610a16565b507faa6b14bb0000000000000000000000000000000000000000000000000000000092915050565b604080516001808252818301909252606091816020015b60608152602001906001900390816108445790505090506040518060400160405280601381526020017f46656520446973636f756e7420506c7567696e00000000000000000000000000815250816000815181106108a4576108a46115f6565b602002602001018190525090565b6108ba610d91565b60405173ffffffffffffffffffffffffffffffffffffffff8216602482015261097d907f000000000000000000000000000000000000000000000000000000000000000090604401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fc3da797800000000000000000000000000000000000000000000000000000000179052610ecb565b5060405173ffffffffffffffffffffffffffffffffffffffff821681527f3b1f0d57f07483280d598ef402c5b2b96be1a42e65b21992bdafea3476b653279060200160405180910390a150565b60006109d4610a16565b507fd6852010000000000000000000000000000000000000000000000000000000009998505050505050505050565b610a0b610d91565b6106dc838284610f86565b610a1e610b10565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a82576040517f4b60273500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600080600080610a92610b10565b73ffffffffffffffffffffffffffffffffffffffff1663e76c01e46040518163ffffffff1660e01b815260040160c060405180830381865afa158015610adc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b009190611637565b5093989297509095509350915050565b6000806040516020604b82303c5192915050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015262ffffff821660648201526000908190610bff907f000000000000000000000000000000000000000000000000000000000000000090608401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1018860c00000000000000000000000000000000000000000000000000000000179052610ecb565b905080806020019051810190610c1591906116bc565b95945050505050565b60405173ffffffffffffffffffffffffffffffffffffffff82166024820152610ce1907f000000000000000000000000000000000000000000000000000000000000000090604401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9dd77e700000000000000000000000000000000000000000000000000000000179052610ecb565b5050565b6000610cef610a84565b93505050508160ff168160ff1614610ce157610d09610b10565b6040517fbca57f8100000000000000000000000000000000000000000000000000000000815260ff8416600482015273ffffffffffffffffffffffffffffffffffffffff919091169063bca57f8190602401600060405180830381600087803b158015610d7557600080fd5b505af1158015610d89573d6000803e3d6000fd5b505050505050565b6040517fe8ae2b690000000000000000000000000000000000000000000000000000000081527f8e8000aba5b365c0be9685da1153f7f096e76d1ecfb42c050ae1e387aa65b4f560048201523360248201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063e8ae2b6990604401602060405180830381865afa158015610e41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6591906116e1565b610a82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f7420617574686f72697a6564000000000000000000000000000000000000604482015260640161059a565b606060008373ffffffffffffffffffffffffffffffffffffffff1683604051610ef491906116fe565b600060405180830381855af49150503d8060008114610f2f576040519150601f19603f3d011682016040523d82523d6000602084013e610f34565b606091505b509250905080610f7f57815115610f4d57815182602001fd5b6040517f7047373200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5092915050565b60006040517fa9059cbb0000000000000000000000000000000000000000000000000000000060005273ffffffffffffffffffffffffffffffffffffffff841660045282602452602060006044600080895af19150813d1560203d146001600051141617169150806040525080611029576040517fe465903e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461105157600080fd5b50565b801515811461105157600080fd5b60008083601f84011261107457600080fd5b50813567ffffffffffffffff81111561108c57600080fd5b6020830191508360208285010111156110a457600080fd5b9250929050565b60008060008060008060008060e0898b0312156110c757600080fd5b88356110d28161102f565b975060208901356110e28161102f565b965060408901356110f281611054565b95506060890135945060808901356111098161102f565b935060a089013561111981611054565b925060c089013567ffffffffffffffff81111561113557600080fd5b6111418b828c01611062565b999c989b5096995094979396929594505050565b60008060008060008060008060e0898b03121561117157600080fd5b883561117c8161102f565b9750602089013561118c8161102f565b965060408901359550606089013594506080890135935060a0890135925060c089013567ffffffffffffffff81111561113557600080fd5b600080604083850312156111d757600080fd5b82356111e28161102f565b915060208301356111f28161102f565b809150509250929050565b8060020b811461105157600080fd5b8035600f81900b811461121e57600080fd5b919050565b600080600080600080600060c0888a03121561123e57600080fd5b87356112498161102f565b965060208801356112598161102f565b95506040880135611269816111fd565b94506060880135611279816111fd565b93506112876080890161120c565b925060a088013567ffffffffffffffff8111156112a357600080fd5b6112af8a828b01611062565b989b979a50959850939692959293505050565b6000806000606084860312156112d757600080fd5b83356112e28161102f565b925060208401356112f28161102f565b91506040840135611302816111fd565b809150509250925092565b60008060008060008060a0878903121561132657600080fd5b86356113318161102f565b955060208701356113418161102f565b94506040870135935060608701359250608087013567ffffffffffffffff81111561136b57600080fd5b61137789828a01611062565b979a9699509497509295939492505050565b60008060008060008060008060006101008a8c0312156113a857600080fd5b89356113b38161102f565b985060208a01356113c38161102f565b975060408a01356113d381611054565b965060608a0135955060808a01356113ea8161102f565b945060a08a0135935060c08a0135925060e08a013567ffffffffffffffff81111561141457600080fd5b6114208c828d01611062565b915080935050809150509295985092959850929598565b6000806040838503121561144a57600080fd5b50508035926020909101359150565b60005b8381101561147457818101518382015260200161145c565b50506000910152565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015611526577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0888603018452815180518087526114e9818989018a8501611459565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016959095018601945092850192908501906001016114a4565b5092979650505050505050565b60006020828403121561154557600080fd5b81356115508161102f565b9392505050565b60008060008060008060008060006101008a8c03121561157657600080fd5b89356115818161102f565b985060208a01356115918161102f565b975060408a01356115a1816111fd565b965060608a01356115b1816111fd565b95506113ea60808b0161120c565b6000806000606084860312156115d457600080fd5b83356115df8161102f565b92506020840135915060408401356113028161102f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b805161ffff8116811461121e57600080fd5b60008060008060008060c0878903121561165057600080fd5b865161165b8161102f565b602088015190965061166c816111fd565b945061167a60408801611625565b9350606087015160ff8116811461169057600080fd5b925061169e60808801611625565b915060a08701516116ae81611054565b809150509295509295509295565b6000602082840312156116ce57600080fd5b815162ffffff8116811461155057600080fd5b6000602082840312156116f357600080fd5b815161155081611054565b60008251611710818460208701611459565b919091019291505056fea164736f6c6343000814000a","opcodes":"PUSH1 0xE0 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x11 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0x1907 CODESIZE SUB DUP1 PUSH3 0x1907 DUP4 CODECOPY DUP2 ADD PUSH1 0x40 DUP2 SWAP1 MSTORE PUSH3 0x34 SWAP2 PUSH3 0x14A JUMP JUMPDEST PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP1 DUP5 AND PUSH1 0x80 MSTORE DUP3 AND PUSH1 0xA0 MSTORE DUP1 DUP4 DUP4 PUSH3 0x54 PUSH3 0x6C JUMP JUMPDEST POP POP PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB AND PUSH1 0xC0 MSTORE POP PUSH3 0x194 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x100 SWAP1 DIV PUSH1 0xFF AND ISZERO PUSH3 0xD9 JUMPI PUSH1 0x40 MLOAD PUSH3 0x461BCD PUSH1 0xE5 SHL DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x27 PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x496E697469616C697A61626C653A20636F6E747261637420697320696E697469 PUSH1 0x44 DUP3 ADD MSTORE PUSH7 0x616C697A696E67 PUSH1 0xC8 SHL PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x0 SLOAD PUSH1 0xFF SWAP1 DUP2 AND EQ PUSH3 0x12B JUMPI PUSH1 0x0 DUP1 SLOAD PUSH1 0xFF NOT AND PUSH1 0xFF SWAP1 DUP2 OR SWAP1 SWAP2 SSTORE PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH32 0x7F26B83FF96E1F2B6A682F133852F6798A09C465DA95921460CEFB3847402498 SWAP1 PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 JUMPDEST JUMP JUMPDEST DUP1 MLOAD PUSH1 0x1 PUSH1 0x1 PUSH1 0xA0 SHL SUB DUP2 AND DUP2 EQ PUSH3 0x145 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH3 0x160 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH3 0x16B DUP5 PUSH3 0x12D JUMP JUMPDEST SWAP3 POP PUSH3 0x17B PUSH1 0x20 DUP6 ADD PUSH3 0x12D JUMP JUMPDEST SWAP2 POP PUSH3 0x18B PUSH1 0x40 DUP6 ADD PUSH3 0x12D JUMP JUMPDEST SWAP1 POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x80 MLOAD PUSH1 0xA0 MLOAD PUSH1 0xC0 MLOAD PUSH2 0x1727 PUSH3 0x1E0 PUSH1 0x0 CODECOPY PUSH1 0x0 DUP2 DUP2 PUSH2 0x8DF ADD MSTORE DUP2 DUP2 PUSH2 0xB61 ADD MSTORE PUSH2 0xC43 ADD MSTORE PUSH1 0x0 DUP2 DUP2 PUSH2 0x3B4 ADD MSTORE PUSH2 0x619 ADD MSTORE PUSH1 0x0 DUP2 DUP2 PUSH2 0x37A ADD MSTORE PUSH2 0xDE5 ADD MSTORE PUSH2 0x1727 PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x16C JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x8DE0A8EE GT PUSH2 0xCD JUMPI DUP1 PUSH4 0xC45A0155 GT PUSH2 0x81 JUMPI DUP1 PUSH4 0xE2A1BD59 GT PUSH2 0x66 JUMPI DUP1 PUSH4 0xE2A1BD59 EQ PUSH2 0x3AF JUMPI DUP1 PUSH4 0xE72C652D EQ PUSH2 0x3D6 JUMPI DUP1 PUSH4 0xF20CDC1A EQ PUSH2 0x3E9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xC45A0155 EQ PUSH2 0x375 JUMPI DUP1 PUSH4 0xD6852010 EQ PUSH2 0x39C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xAA6B14BB GT PUSH2 0xB2 JUMPI DUP1 PUSH4 0xAA6B14BB EQ PUSH2 0x33A JUMPI DUP1 PUSH4 0xB6F78CC9 EQ PUSH2 0x34D JUMPI DUP1 PUSH4 0xC3DA7978 EQ PUSH2 0x362 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x8DE0A8EE EQ PUSH2 0x314 JUMPI DUP1 PUSH4 0x9CB5A963 EQ PUSH2 0x327 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x485CC955 GT PUSH2 0x124 JUMPI DUP1 PUSH4 0x636FD804 GT PUSH2 0x109 JUMPI DUP1 PUSH4 0x636FD804 EQ PUSH2 0x2DF JUMPI DUP1 PUSH4 0x689EA370 EQ PUSH2 0x2F2 JUMPI DUP1 PUSH4 0x82DD6522 EQ PUSH2 0x301 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x485CC955 EQ PUSH2 0x27B JUMPI DUP1 PUSH4 0x5E2411B2 EQ PUSH2 0x290 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x31B25D1A GT PUSH2 0x155 JUMPI DUP1 PUSH4 0x31B25D1A EQ PUSH2 0x1FA JUMPI DUP1 PUSH4 0x343D37FF EQ PUSH2 0x22F JUMPI DUP1 PUSH4 0x36BADF63 EQ PUSH2 0x273 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x29C1CB7 EQ PUSH2 0x171 JUMPI DUP1 PUSH4 0x16F0115B EQ PUSH2 0x1CD JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x184 PUSH2 0x17F CALLDATASIZE PUSH1 0x4 PUSH2 0x10AB JUMP JUMPDEST PUSH2 0x426 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 SWAP1 SWAP5 AND DUP5 MSTORE PUSH3 0xFFFFFF SWAP3 DUP4 AND PUSH1 0x20 DUP6 ADD MSTORE SWAP2 AND SWAP1 DUP3 ADD MSTORE PUSH1 0x60 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x1D5 PUSH2 0x491 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x1C4 JUMP JUMPDEST PUSH2 0x221 PUSH32 0x8E8000ABA5B365C0BE9685DA1153F7F096E76D1ECFB42C050AE1E387AA65B4F5 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x1C4 JUMP JUMPDEST PUSH2 0x242 PUSH2 0x23D CALLDATASIZE PUSH1 0x4 PUSH2 0x1155 JUMP JUMPDEST PUSH2 0x4A0 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x1C4 JUMP JUMPDEST PUSH2 0x221 PUSH1 0x4B DUP2 JUMP JUMPDEST PUSH2 0x28E PUSH2 0x289 CALLDATASIZE PUSH1 0x4 PUSH2 0x11C4 JUMP JUMPDEST PUSH2 0x4D8 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x2A3 PUSH2 0x29E CALLDATASIZE PUSH1 0x4 PUSH2 0x1223 JUMP JUMPDEST PUSH2 0x6E1 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 SWAP1 SWAP4 AND DUP4 MSTORE PUSH3 0xFFFFFF SWAP1 SWAP2 AND PUSH1 0x20 DUP4 ADD MSTORE ADD PUSH2 0x1C4 JUMP JUMPDEST PUSH2 0x242 PUSH2 0x2ED CALLDATASIZE PUSH1 0x4 PUSH2 0x11C4 JUMP JUMPDEST PUSH2 0x71D JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x1C4 JUMP JUMPDEST PUSH2 0x242 PUSH2 0x30F CALLDATASIZE PUSH1 0x4 PUSH2 0x12C2 JUMP JUMPDEST PUSH2 0x759 JUMP JUMPDEST PUSH2 0x242 PUSH2 0x322 CALLDATASIZE PUSH1 0x4 PUSH2 0x130D JUMP JUMPDEST PUSH2 0x78C JUMP JUMPDEST PUSH2 0x242 PUSH2 0x335 CALLDATASIZE PUSH1 0x4 PUSH2 0x1389 JUMP JUMPDEST PUSH2 0x7C2 JUMP JUMPDEST PUSH2 0x242 PUSH2 0x348 CALLDATASIZE PUSH1 0x4 PUSH2 0x1437 JUMP JUMPDEST PUSH2 0x7FB JUMP JUMPDEST PUSH2 0x355 PUSH2 0x82D JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x1C4 SWAP2 SWAP1 PUSH2 0x147D JUMP JUMPDEST PUSH2 0x28E PUSH2 0x370 CALLDATASIZE PUSH1 0x4 PUSH2 0x1533 JUMP JUMPDEST PUSH2 0x8B2 JUMP JUMPDEST PUSH2 0x1D5 PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH2 0x242 PUSH2 0x3AA CALLDATASIZE PUSH1 0x4 PUSH2 0x1557 JUMP JUMPDEST PUSH2 0x9CA JUMP JUMPDEST PUSH2 0x1D5 PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH2 0x28E PUSH2 0x3E4 CALLDATASIZE PUSH1 0x4 PUSH2 0x15BF JUMP JUMPDEST PUSH2 0xA03 JUMP JUMPDEST PUSH32 0xB52F6C388BC01F052495924FD2FACF0F81BAEAC5975B25912D0279719977D300 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x1D5 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x433 PUSH2 0xA16 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x43D PUSH2 0xA84 JUMP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x0 PUSH2 0x45A DUP14 PUSH2 0x450 PUSH2 0xB10 JUMP JUMPDEST DUP5 PUSH2 0xFFFF AND PUSH2 0xB24 JUMP JUMPDEST PUSH32 0x29C1CB700000000000000000000000000000000000000000000000000000000 SWAP15 SWAP1 SWAP14 POP PUSH1 0x0 SWAP13 POP SWAP11 POP POP POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x49B PUSH2 0xB10 JUMP JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4AA PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0x343D37FF00000000000000000000000000000000000000000000000000000000 SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x100 SWAP1 DIV PUSH1 0xFF AND ISZERO DUP1 DUP1 ISZERO PUSH2 0x4F8 JUMPI POP PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0xFF SWAP1 SWAP2 AND LT JUMPDEST DUP1 PUSH2 0x512 JUMPI POP ADDRESS EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x512 JUMPI POP PUSH1 0x0 SLOAD PUSH1 0xFF AND PUSH1 0x1 EQ JUMPDEST PUSH2 0x5A3 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x2E PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x496E697469616C697A61626C653A20636F6E747261637420697320616C726561 PUSH1 0x44 DUP3 ADD MSTORE PUSH32 0x647920696E697469616C697A6564000000000000000000000000000000000000 PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00 AND PUSH1 0x1 OR SWAP1 SSTORE DUP1 ISZERO PUSH2 0x601 JUMPI PUSH1 0x0 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00FF AND PUSH2 0x100 OR SWAP1 SSTORE JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH32 0x0 AND EQ PUSH2 0x670 JUMPI PUSH1 0x40 MLOAD PUSH32 0x504D572800000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH2 0x679 DUP3 PUSH2 0xC1E JUMP JUMPDEST DUP1 ISZERO PUSH2 0x6DC JUMPI PUSH1 0x0 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00FF AND SWAP1 SSTORE PUSH1 0x40 MLOAD PUSH1 0x1 DUP2 MSTORE PUSH32 0x7F26B83FF96E1F2B6A682F133852F6798A09C465DA95921460CEFB3847402498 SWAP1 PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x6EC PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0x5E2411B200000000000000000000000000000000000000000000000000000000 SWAP9 PUSH1 0x0 SWAP9 POP SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x727 PUSH2 0xA16 JUMP JUMPDEST PUSH2 0x731 PUSH1 0x1 PUSH2 0xCE5 JUMP JUMPDEST POP PUSH32 0x636FD80400000000000000000000000000000000000000000000000000000000 SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x763 PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0x82DD652200000000000000000000000000000000000000000000000000000000 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x796 PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0x8DE0A8EE00000000000000000000000000000000000000000000000000000000 SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7CC PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0x9CB5A96300000000000000000000000000000000000000000000000000000000 SWAP10 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x805 PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0xAA6B14BB00000000000000000000000000000000000000000000000000000000 SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x1 DUP1 DUP3 MSTORE DUP2 DUP4 ADD SWAP1 SWAP3 MSTORE PUSH1 0x60 SWAP2 DUP2 PUSH1 0x20 ADD JUMPDEST PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 SWAP1 SUB SWAP1 DUP2 PUSH2 0x844 JUMPI SWAP1 POP POP SWAP1 POP PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x13 DUP2 MSTORE PUSH1 0x20 ADD PUSH32 0x46656520446973636F756E7420506C7567696E00000000000000000000000000 DUP2 MSTORE POP DUP2 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH2 0x8A4 JUMPI PUSH2 0x8A4 PUSH2 0x15F6 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 SWAP1 MSTORE POP SWAP1 JUMP JUMPDEST PUSH2 0x8BA PUSH2 0xD91 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND PUSH1 0x24 DUP3 ADD MSTORE PUSH2 0x97D SWAP1 PUSH32 0x0 SWAP1 PUSH1 0x44 ADD PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 DUP2 DUP5 SUB ADD DUP2 MSTORE SWAP2 SWAP1 MSTORE PUSH1 0x20 DUP2 ADD DUP1 MLOAD PUSH28 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0xC3DA797800000000000000000000000000000000000000000000000000000000 OR SWAP1 MSTORE PUSH2 0xECB JUMP JUMPDEST POP PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND DUP2 MSTORE PUSH32 0x3B1F0D57F07483280D598EF402C5B2B96BE1A42E65B21992BDAFEA3476B65327 SWAP1 PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x9D4 PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0xD685201000000000000000000000000000000000000000000000000000000000 SWAP10 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0xA0B PUSH2 0xD91 JUMP JUMPDEST PUSH2 0x6DC DUP4 DUP3 DUP5 PUSH2 0xF86 JUMP JUMPDEST PUSH2 0xA1E PUSH2 0xB10 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0xA82 JUMPI PUSH1 0x40 MLOAD PUSH32 0x4B60273500000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0xA92 PUSH2 0xB10 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0xE76C01E4 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0xC0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xADC JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xB00 SWAP2 SWAP1 PUSH2 0x1637 JUMP JUMPDEST POP SWAP4 SWAP9 SWAP3 SWAP8 POP SWAP1 SWAP6 POP SWAP4 POP SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 MLOAD PUSH1 0x20 PUSH1 0x4B DUP3 ADDRESS EXTCODECOPY MLOAD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP1 DUP6 AND PUSH1 0x24 DUP4 ADD MSTORE DUP4 AND PUSH1 0x44 DUP3 ADD MSTORE PUSH3 0xFFFFFF DUP3 AND PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x0 SWAP1 DUP2 SWAP1 PUSH2 0xBFF SWAP1 PUSH32 0x0 SWAP1 PUSH1 0x84 ADD PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 DUP2 DUP5 SUB ADD DUP2 MSTORE SWAP2 SWAP1 MSTORE PUSH1 0x20 DUP2 ADD DUP1 MLOAD PUSH28 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0x1018860C00000000000000000000000000000000000000000000000000000000 OR SWAP1 MSTORE PUSH2 0xECB JUMP JUMPDEST SWAP1 POP DUP1 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0xC15 SWAP2 SWAP1 PUSH2 0x16BC JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND PUSH1 0x24 DUP3 ADD MSTORE PUSH2 0xCE1 SWAP1 PUSH32 0x0 SWAP1 PUSH1 0x44 ADD PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 DUP2 DUP5 SUB ADD DUP2 MSTORE SWAP2 SWAP1 MSTORE PUSH1 0x20 DUP2 ADD DUP1 MLOAD PUSH28 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0xA9DD77E700000000000000000000000000000000000000000000000000000000 OR SWAP1 MSTORE PUSH2 0xECB JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCEF PUSH2 0xA84 JUMP JUMPDEST SWAP4 POP POP POP POP DUP2 PUSH1 0xFF AND DUP2 PUSH1 0xFF AND EQ PUSH2 0xCE1 JUMPI PUSH2 0xD09 PUSH2 0xB10 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xBCA57F8100000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0xFF DUP5 AND PUSH1 0x4 DUP3 ADD MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP2 SWAP1 SWAP2 AND SWAP1 PUSH4 0xBCA57F81 SWAP1 PUSH1 0x24 ADD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0xD75 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0xD89 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xE8AE2B6900000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH32 0x8E8000ABA5B365C0BE9685DA1153F7F096E76D1ECFB42C050AE1E387AA65B4F5 PUSH1 0x4 DUP3 ADD MSTORE CALLER PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 PUSH4 0xE8AE2B69 SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xE41 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xE65 SWAP2 SWAP1 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0xA82 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xE PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4E6F7420617574686F72697A6564000000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x59A JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP4 PUSH1 0x40 MLOAD PUSH2 0xEF4 SWAP2 SWAP1 PUSH2 0x16FE JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 GAS DELEGATECALL SWAP2 POP POP RETURNDATASIZE DUP1 PUSH1 0x0 DUP2 EQ PUSH2 0xF2F JUMPI PUSH1 0x40 MLOAD SWAP2 POP PUSH1 0x1F NOT PUSH1 0x3F RETURNDATASIZE ADD AND DUP3 ADD PUSH1 0x40 MSTORE RETURNDATASIZE DUP3 MSTORE RETURNDATASIZE PUSH1 0x0 PUSH1 0x20 DUP5 ADD RETURNDATACOPY PUSH2 0xF34 JUMP JUMPDEST PUSH1 0x60 SWAP2 POP JUMPDEST POP SWAP3 POP SWAP1 POP DUP1 PUSH2 0xF7F JUMPI DUP2 MLOAD ISZERO PUSH2 0xF4D JUMPI DUP2 MLOAD DUP3 PUSH1 0x20 ADD REVERT JUMPDEST PUSH1 0x40 MLOAD PUSH32 0x7047373200000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD PUSH32 0xA9059CBB00000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP5 AND PUSH1 0x4 MSTORE DUP3 PUSH1 0x24 MSTORE PUSH1 0x20 PUSH1 0x0 PUSH1 0x44 PUSH1 0x0 DUP1 DUP10 GAS CALL SWAP2 POP DUP2 RETURNDATASIZE ISZERO PUSH1 0x20 RETURNDATASIZE EQ PUSH1 0x1 PUSH1 0x0 MLOAD EQ AND OR AND SWAP2 POP DUP1 PUSH1 0x40 MSTORE POP DUP1 PUSH2 0x1029 JUMPI PUSH1 0x40 MLOAD PUSH32 0xE465903E00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0x1051 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0x1051 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0x1074 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP DUP2 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x108C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x20 DUP3 DUP6 ADD ADD GT ISZERO PUSH2 0x10A4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xE0 DUP10 DUP12 SUB SLT ISZERO PUSH2 0x10C7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP9 CALLDATALOAD PUSH2 0x10D2 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP8 POP PUSH1 0x20 DUP10 ADD CALLDATALOAD PUSH2 0x10E2 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP7 POP PUSH1 0x40 DUP10 ADD CALLDATALOAD PUSH2 0x10F2 DUP2 PUSH2 0x1054 JUMP JUMPDEST SWAP6 POP PUSH1 0x60 DUP10 ADD CALLDATALOAD SWAP5 POP PUSH1 0x80 DUP10 ADD CALLDATALOAD PUSH2 0x1109 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP4 POP PUSH1 0xA0 DUP10 ADD CALLDATALOAD PUSH2 0x1119 DUP2 PUSH2 0x1054 JUMP JUMPDEST SWAP3 POP PUSH1 0xC0 DUP10 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1135 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x1141 DUP12 DUP3 DUP13 ADD PUSH2 0x1062 JUMP JUMPDEST SWAP10 SWAP13 SWAP9 SWAP12 POP SWAP7 SWAP10 POP SWAP5 SWAP8 SWAP4 SWAP7 SWAP3 SWAP6 SWAP5 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xE0 DUP10 DUP12 SUB SLT ISZERO PUSH2 0x1171 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP9 CALLDATALOAD PUSH2 0x117C DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP8 POP PUSH1 0x20 DUP10 ADD CALLDATALOAD PUSH2 0x118C DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP7 POP PUSH1 0x40 DUP10 ADD CALLDATALOAD SWAP6 POP PUSH1 0x60 DUP10 ADD CALLDATALOAD SWAP5 POP PUSH1 0x80 DUP10 ADD CALLDATALOAD SWAP4 POP PUSH1 0xA0 DUP10 ADD CALLDATALOAD SWAP3 POP PUSH1 0xC0 DUP10 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1135 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x11D7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x11E2 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH2 0x11F2 DUP2 PUSH2 0x102F JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST DUP1 PUSH1 0x2 SIGNEXTEND DUP2 EQ PUSH2 0x1051 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD PUSH1 0xF DUP2 SWAP1 SIGNEXTEND DUP2 EQ PUSH2 0x121E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xC0 DUP9 DUP11 SUB SLT ISZERO PUSH2 0x123E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP8 CALLDATALOAD PUSH2 0x1249 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP7 POP PUSH1 0x20 DUP9 ADD CALLDATALOAD PUSH2 0x1259 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP6 POP PUSH1 0x40 DUP9 ADD CALLDATALOAD PUSH2 0x1269 DUP2 PUSH2 0x11FD JUMP JUMPDEST SWAP5 POP PUSH1 0x60 DUP9 ADD CALLDATALOAD PUSH2 0x1279 DUP2 PUSH2 0x11FD JUMP JUMPDEST SWAP4 POP PUSH2 0x1287 PUSH1 0x80 DUP10 ADD PUSH2 0x120C JUMP JUMPDEST SWAP3 POP PUSH1 0xA0 DUP9 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x12A3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x12AF DUP11 DUP3 DUP12 ADD PUSH2 0x1062 JUMP JUMPDEST SWAP9 SWAP12 SWAP8 SWAP11 POP SWAP6 SWAP9 POP SWAP4 SWAP7 SWAP3 SWAP6 SWAP3 SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x12D7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP4 CALLDATALOAD PUSH2 0x12E2 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD CALLDATALOAD PUSH2 0x12F2 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH2 0x1302 DUP2 PUSH2 0x11FD JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xA0 DUP8 DUP10 SUB SLT ISZERO PUSH2 0x1326 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP7 CALLDATALOAD PUSH2 0x1331 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP6 POP PUSH1 0x20 DUP8 ADD CALLDATALOAD PUSH2 0x1341 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP5 POP PUSH1 0x40 DUP8 ADD CALLDATALOAD SWAP4 POP PUSH1 0x60 DUP8 ADD CALLDATALOAD SWAP3 POP PUSH1 0x80 DUP8 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x136B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x1377 DUP10 DUP3 DUP11 ADD PUSH2 0x1062 JUMP JUMPDEST SWAP8 SWAP11 SWAP7 SWAP10 POP SWAP5 SWAP8 POP SWAP3 SWAP6 SWAP4 SWAP5 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x100 DUP11 DUP13 SUB SLT ISZERO PUSH2 0x13A8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP10 CALLDATALOAD PUSH2 0x13B3 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP9 POP PUSH1 0x20 DUP11 ADD CALLDATALOAD PUSH2 0x13C3 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP8 POP PUSH1 0x40 DUP11 ADD CALLDATALOAD PUSH2 0x13D3 DUP2 PUSH2 0x1054 JUMP JUMPDEST SWAP7 POP PUSH1 0x60 DUP11 ADD CALLDATALOAD SWAP6 POP PUSH1 0x80 DUP11 ADD CALLDATALOAD PUSH2 0x13EA DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP5 POP PUSH1 0xA0 DUP11 ADD CALLDATALOAD SWAP4 POP PUSH1 0xC0 DUP11 ADD CALLDATALOAD SWAP3 POP PUSH1 0xE0 DUP11 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1414 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x1420 DUP13 DUP3 DUP14 ADD PUSH2 0x1062 JUMP JUMPDEST SWAP2 POP DUP1 SWAP4 POP POP DUP1 SWAP2 POP POP SWAP3 SWAP6 SWAP9 POP SWAP3 SWAP6 SWAP9 POP SWAP3 SWAP6 SWAP9 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x144A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP DUP1 CALLDATALOAD SWAP3 PUSH1 0x20 SWAP1 SWAP2 ADD CALLDATALOAD SWAP2 POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x1474 JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0x145C JUMP JUMPDEST POP POP PUSH1 0x0 SWAP2 ADD MSTORE JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP1 DUP4 ADD DUP2 DUP5 MSTORE DUP1 DUP6 MLOAD DUP1 DUP4 MSTORE PUSH1 0x40 DUP7 ADD SWAP2 POP PUSH1 0x40 DUP2 PUSH1 0x5 SHL DUP8 ADD ADD SWAP3 POP DUP4 DUP8 ADD PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x1526 JUMPI PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0 DUP9 DUP7 SUB ADD DUP5 MSTORE DUP2 MLOAD DUP1 MLOAD DUP1 DUP8 MSTORE PUSH2 0x14E9 DUP2 DUP10 DUP10 ADD DUP11 DUP6 ADD PUSH2 0x1459 JUMP JUMPDEST PUSH1 0x1F ADD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 AND SWAP6 SWAP1 SWAP6 ADD DUP7 ADD SWAP5 POP SWAP3 DUP6 ADD SWAP3 SWAP1 DUP6 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x14A4 JUMP JUMPDEST POP SWAP3 SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1545 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x1550 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x100 DUP11 DUP13 SUB SLT ISZERO PUSH2 0x1576 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP10 CALLDATALOAD PUSH2 0x1581 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP9 POP PUSH1 0x20 DUP11 ADD CALLDATALOAD PUSH2 0x1591 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP8 POP PUSH1 0x40 DUP11 ADD CALLDATALOAD PUSH2 0x15A1 DUP2 PUSH2 0x11FD JUMP JUMPDEST SWAP7 POP PUSH1 0x60 DUP11 ADD CALLDATALOAD PUSH2 0x15B1 DUP2 PUSH2 0x11FD JUMP JUMPDEST SWAP6 POP PUSH2 0x13EA PUSH1 0x80 DUP12 ADD PUSH2 0x120C JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x15D4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP4 CALLDATALOAD PUSH2 0x15DF DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD CALLDATALOAD SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH2 0x1302 DUP2 PUSH2 0x102F JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST DUP1 MLOAD PUSH2 0xFFFF DUP2 AND DUP2 EQ PUSH2 0x121E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xC0 DUP8 DUP10 SUB SLT ISZERO PUSH2 0x1650 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP7 MLOAD PUSH2 0x165B DUP2 PUSH2 0x102F JUMP JUMPDEST PUSH1 0x20 DUP9 ADD MLOAD SWAP1 SWAP7 POP PUSH2 0x166C DUP2 PUSH2 0x11FD JUMP JUMPDEST SWAP5 POP PUSH2 0x167A PUSH1 0x40 DUP9 ADD PUSH2 0x1625 JUMP JUMPDEST SWAP4 POP PUSH1 0x60 DUP8 ADD MLOAD PUSH1 0xFF DUP2 AND DUP2 EQ PUSH2 0x1690 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP3 POP PUSH2 0x169E PUSH1 0x80 DUP9 ADD PUSH2 0x1625 JUMP JUMPDEST SWAP2 POP PUSH1 0xA0 DUP8 ADD MLOAD PUSH2 0x16AE DUP2 PUSH2 0x1054 JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 SWAP6 POP SWAP3 SWAP6 POP SWAP3 SWAP6 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x16CE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH3 0xFFFFFF DUP2 AND DUP2 EQ PUSH2 0x1550 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x16F3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x1550 DUP2 PUSH2 0x1054 JUMP JUMPDEST PUSH1 0x0 DUP3 MLOAD PUSH2 0x1710 DUP2 DUP5 PUSH1 0x20 DUP8 ADD PUSH2 0x1459 JUMP JUMPDEST SWAP2 SWAP1 SWAP2 ADD SWAP3 SWAP2 POP POP JUMP INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"507:2200:27:-:0;;;877:209;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;1682:18:1;;;;;1706:30;;;;1056:26:27;1009:8;1019:14;1742:22:1;:20;:22::i;:::-;-1:-1:-1;;;;;;;915:54:20;;;-1:-1:-1;507:2200:27;;-1:-1:-1;;507:2200:27;5939:280:18;6007:13;;;;;;;6006:14;5998:66;;;;-1:-1:-1;;;5998:66:18;;781:2:28;5998:66:18;;;763:21:28;820:2;800:18;;;793:30;859:34;839:18;;;832:62;-1:-1:-1;;;910:18:28;;;903:37;957:19;;5998:66:18;;;;;;;;6078:12;;6094:15;6078:12;;;:31;6074:139;;6125:12;:30;;-1:-1:-1;;6125:30:18;6140:15;6125:30;;;;;;6174:28;;1129:36:28;;;6174:28:18;;1117:2:28;1102:18;6174:28:18;;;;;;;6074:139;5939:280::o;14:177:28:-;93:13;;-1:-1:-1;;;;;135:31:28;;125:42;;115:70;;181:1;178;171:12;115:70;14:177;;;:::o;196:378::-;284:6;292;300;353:2;341:9;332:7;328:23;324:32;321:52;;;369:1;366;359:12;321:52;392:40;422:9;392:40;:::i;:::-;382:50;;451:49;496:2;485:9;481:18;451:49;:::i;:::-;441:59;;519:49;564:2;553:9;549:18;519:49;:::i;:::-;509:59;;196:378;;;;;:::o;987:184::-;507:2200:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"},"deployedBytecode":{"functionDebugData":{"@ALGEBRA_BASE_PLUGIN_MANAGER_78":{"entryPoint":null,"id":78,"parameterSlots":0,"returnSlots":0},"@POOL_ADDRESS_OFFSET_72":{"entryPoint":null,"id":72,"parameterSlots":0,"returnSlots":0},"@_applyFeeDiscount_2400":{"entryPoint":2852,"id":2400,"parameterSlots":3,"returnSlots":1},"@_authorize_2846":{"entryPoint":3473,"id":2846,"parameterSlots":0,"returnSlots":0},"@_checkIfFromPool_157":{"entryPoint":2582,"id":157,"parameterSlots":0,"returnSlots":0},"@_delegateCall_41":{"entryPoint":3787,"id":41,"parameterSlots":2,"returnSlots":1},"@_getPoolState_199":{"entryPoint":2692,"id":199,"parameterSlots":0,"returnSlots":4},"@_getPool_144":{"entryPoint":2832,"id":144,"parameterSlots":0,"returnSlots":1},"@_initializeFeeDiscount_2364":{"entryPoint":3102,"id":2364,"parameterSlots":1,"returnSlots":0},"@_updatePluginConfigInPool_507":{"entryPoint":3301,"id":507,"parameterSlots":1,"returnSlots":0},"@afterFlash_483":{"entryPoint":1184,"id":483,"parameterSlots":8,"returnSlots":1},"@afterInitialize_312":{"entryPoint":1881,"id":312,"parameterSlots":3,"returnSlots":1},"@afterModifyPosition_370":{"entryPoint":2506,"id":370,"parameterSlots":9,"returnSlots":1},"@afterSwap_433":{"entryPoint":1986,"id":433,"parameterSlots":9,"returnSlots":1},"@beforeFlash_456":{"entryPoint":1932,"id":456,"parameterSlots":6,"returnSlots":1},"@beforeInitialize_2778":{"entryPoint":1821,"id":2778,"parameterSlots":2,"returnSlots":1},"@beforeModifyPosition_341":{"entryPoint":1761,"id":341,"parameterSlots":7,"returnSlots":2},"@beforeSwap_2826":{"entryPoint":1062,"id":2826,"parameterSlots":8,"returnSlots":3},"@collectPluginFee_258":{"entryPoint":2563,"id":258,"parameterSlots":3,"returnSlots":0},"@defaultPluginConfig_2756":{"entryPoint":null,"id":2756,"parameterSlots":0,"returnSlots":1},"@factory_81":{"entryPoint":null,"id":81,"parameterSlots":0,"returnSlots":0},"@feeDiscountRegistry_2439":{"entryPoint":null,"id":2439,"parameterSlots":0,"returnSlots":1},"@getActiveModuleNames_2747":{"entryPoint":2093,"id":2747,"parameterSlots":0,"returnSlots":1},"@handlePluginFee_276":{"entryPoint":2043,"id":276,"parameterSlots":2,"returnSlots":1},"@initialize_2724":{"entryPoint":1240,"id":2724,"parameterSlots":2,"returnSlots":0},"@isContract_1996":{"entryPoint":null,"id":1996,"parameterSlots":1,"returnSlots":1},"@layout_2674":{"entryPoint":null,"id":2674,"parameterSlots":0,"returnSlots":1},"@pluginFactory_84":{"entryPoint":null,"id":84,"parameterSlots":0,"returnSlots":0},"@pool_221":{"entryPoint":1169,"id":221,"parameterSlots":0,"returnSlots":1},"@safeTransfer_1808":{"entryPoint":3974,"id":1808,"parameterSlots":3,"returnSlots":0},"@setFeeDiscountRegistry_2426":{"entryPoint":2226,"id":2426,"parameterSlots":1,"returnSlots":0},"abi_decode_bytes_calldata":{"entryPoint":4194,"id":null,"parameterSlots":2,"returnSlots":2},"abi_decode_int128":{"entryPoint":4620,"id":null,"parameterSlots":1,"returnSlots":1},"abi_decode_tuple_t_address":{"entryPoint":5427,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_addresst_address":{"entryPoint":4548,"id":null,"parameterSlots":2,"returnSlots":2},"abi_decode_tuple_t_addresst_addresst_boolt_int256t_uint160t_boolt_bytes_calldata_ptr":{"entryPoint":4267,"id":null,"parameterSlots":2,"returnSlots":8},"abi_decode_tuple_t_addresst_addresst_boolt_int256t_uint160t_int256t_int256t_bytes_calldata_ptr":{"entryPoint":5001,"id":null,"parameterSlots":2,"returnSlots":9},"abi_decode_tuple_t_addresst_addresst_int24t_int24t_int128t_bytes_calldata_ptr":{"entryPoint":4643,"id":null,"parameterSlots":2,"returnSlots":7},"abi_decode_tuple_t_addresst_addresst_int24t_int24t_int128t_uint256t_uint256t_bytes_calldata_ptr":{"entryPoint":5463,"id":null,"parameterSlots":2,"returnSlots":9},"abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_bytes_calldata_ptr":{"entryPoint":4877,"id":null,"parameterSlots":2,"returnSlots":6},"abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_uint256t_uint256t_bytes_calldata_ptr":{"entryPoint":4437,"id":null,"parameterSlots":2,"returnSlots":8},"abi_decode_tuple_t_addresst_uint160":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":2},"abi_decode_tuple_t_addresst_uint160t_int24":{"entryPoint":4802,"id":null,"parameterSlots":2,"returnSlots":3},"abi_decode_tuple_t_addresst_uint256t_address":{"entryPoint":5567,"id":null,"parameterSlots":2,"returnSlots":3},"abi_decode_tuple_t_bool_fromMemory":{"entryPoint":5857,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_uint160t_int24t_uint16t_uint8t_uint16t_bool_fromMemory":{"entryPoint":5687,"id":null,"parameterSlots":2,"returnSlots":6},"abi_decode_tuple_t_uint24_fromMemory":{"entryPoint":5820,"id":null,"parameterSlots":2,"returnSlots":1},"abi_decode_tuple_t_uint256t_uint256":{"entryPoint":5175,"id":null,"parameterSlots":2,"returnSlots":2},"abi_decode_uint16_fromMemory":{"entryPoint":5669,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_packed_t_bytes_memory_ptr__to_t_bytes_memory_ptr__nonPadded_inplace_fromStack_reversed":{"entryPoint":5886,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_address__to_t_address__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_address_t_address_t_uint24__to_t_address_t_address_t_uint24__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":4,"returnSlots":1},"abi_encode_tuple_t_array$_t_string_memory_ptr_$dyn_memory_ptr__to_t_array$_t_string_memory_ptr_$dyn_memory_ptr__fromStack_reversed":{"entryPoint":5245,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_bytes32_t_address__to_t_bytes32_t_address__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":3,"returnSlots":1},"abi_encode_tuple_t_bytes4__to_t_bytes4__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_bytes4_t_uint24__to_t_bytes4_t_uint24__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":3,"returnSlots":1},"abi_encode_tuple_t_bytes4_t_uint24_t_uint24__to_t_bytes4_t_uint24_t_uint24__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":4,"returnSlots":1},"abi_encode_tuple_t_rational_1_by_1__to_t_uint8__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_stringliteral_fac3bac318c0d00994f57b0f2f4c643c313072b71db2302bf4b900309cc50b36__to_t_string_memory_ptr__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":1,"returnSlots":1},"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"abi_encode_tuple_t_uint8__to_t_uint8__fromStack_reversed":{"entryPoint":null,"id":null,"parameterSlots":2,"returnSlots":1},"copy_memory_to_memory_with_cleanup":{"entryPoint":5209,"id":null,"parameterSlots":3,"returnSlots":0},"panic_error_0x32":{"entryPoint":5622,"id":null,"parameterSlots":0,"returnSlots":0},"panic_error_0x41":{"entryPoint":null,"id":null,"parameterSlots":0,"returnSlots":0},"validator_revert_address":{"entryPoint":4143,"id":null,"parameterSlots":1,"returnSlots":0},"validator_revert_bool":{"entryPoint":4180,"id":null,"parameterSlots":1,"returnSlots":0},"validator_revert_int24":{"entryPoint":4605,"id":null,"parameterSlots":1,"returnSlots":0}},"generatedSources":[{"ast":{"nodeType":"YulBlock","src":"0:16660:28","statements":[{"nodeType":"YulBlock","src":"6:3:28","statements":[]},{"body":{"nodeType":"YulBlock","src":"59:109:28","statements":[{"body":{"nodeType":"YulBlock","src":"146:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"155:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"158:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"148:6:28"},"nodeType":"YulFunctionCall","src":"148:12:28"},"nodeType":"YulExpressionStatement","src":"148:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"82:5:28"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"93:5:28"},{"kind":"number","nodeType":"YulLiteral","src":"100:42:28","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"89:3:28"},"nodeType":"YulFunctionCall","src":"89:54:28"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"79:2:28"},"nodeType":"YulFunctionCall","src":"79:65:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"72:6:28"},"nodeType":"YulFunctionCall","src":"72:73:28"},"nodeType":"YulIf","src":"69:93:28"}]},"name":"validator_revert_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"value","nodeType":"YulTypedName","src":"48:5:28","type":""}],"src":"14:154:28"},{"body":{"nodeType":"YulBlock","src":"215:76:28","statements":[{"body":{"nodeType":"YulBlock","src":"269:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"278:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"281:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"271:6:28"},"nodeType":"YulFunctionCall","src":"271:12:28"},"nodeType":"YulExpressionStatement","src":"271:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"238:5:28"},{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"259:5:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"252:6:28"},"nodeType":"YulFunctionCall","src":"252:13:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"245:6:28"},"nodeType":"YulFunctionCall","src":"245:21:28"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"235:2:28"},"nodeType":"YulFunctionCall","src":"235:32:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"228:6:28"},"nodeType":"YulFunctionCall","src":"228:40:28"},"nodeType":"YulIf","src":"225:60:28"}]},"name":"validator_revert_bool","nodeType":"YulFunctionDefinition","parameters":[{"name":"value","nodeType":"YulTypedName","src":"204:5:28","type":""}],"src":"173:118:28"},{"body":{"nodeType":"YulBlock","src":"368:275:28","statements":[{"body":{"nodeType":"YulBlock","src":"417:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"426:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"429:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"419:6:28"},"nodeType":"YulFunctionCall","src":"419:12:28"},"nodeType":"YulExpressionStatement","src":"419:12:28"}]},"condition":{"arguments":[{"arguments":[{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"396:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"404:4:28","type":"","value":"0x1f"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"392:3:28"},"nodeType":"YulFunctionCall","src":"392:17:28"},{"name":"end","nodeType":"YulIdentifier","src":"411:3:28"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"388:3:28"},"nodeType":"YulFunctionCall","src":"388:27:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"381:6:28"},"nodeType":"YulFunctionCall","src":"381:35:28"},"nodeType":"YulIf","src":"378:55:28"},{"nodeType":"YulAssignment","src":"442:30:28","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"465:6:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"452:12:28"},"nodeType":"YulFunctionCall","src":"452:20:28"},"variableNames":[{"name":"length","nodeType":"YulIdentifier","src":"442:6:28"}]},{"body":{"nodeType":"YulBlock","src":"515:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"524:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"527:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"517:6:28"},"nodeType":"YulFunctionCall","src":"517:12:28"},"nodeType":"YulExpressionStatement","src":"517:12:28"}]},"condition":{"arguments":[{"name":"length","nodeType":"YulIdentifier","src":"487:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"495:18:28","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"484:2:28"},"nodeType":"YulFunctionCall","src":"484:30:28"},"nodeType":"YulIf","src":"481:50:28"},{"nodeType":"YulAssignment","src":"540:29:28","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"556:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"564:4:28","type":"","value":"0x20"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"552:3:28"},"nodeType":"YulFunctionCall","src":"552:17:28"},"variableNames":[{"name":"arrayPos","nodeType":"YulIdentifier","src":"540:8:28"}]},{"body":{"nodeType":"YulBlock","src":"621:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"630:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"633:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"623:6:28"},"nodeType":"YulFunctionCall","src":"623:12:28"},"nodeType":"YulExpressionStatement","src":"623:12:28"}]},"condition":{"arguments":[{"arguments":[{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"592:6:28"},{"name":"length","nodeType":"YulIdentifier","src":"600:6:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"588:3:28"},"nodeType":"YulFunctionCall","src":"588:19:28"},{"kind":"number","nodeType":"YulLiteral","src":"609:4:28","type":"","value":"0x20"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"584:3:28"},"nodeType":"YulFunctionCall","src":"584:30:28"},{"name":"end","nodeType":"YulIdentifier","src":"616:3:28"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"581:2:28"},"nodeType":"YulFunctionCall","src":"581:39:28"},"nodeType":"YulIf","src":"578:59:28"}]},"name":"abi_decode_bytes_calldata","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"331:6:28","type":""},{"name":"end","nodeType":"YulTypedName","src":"339:3:28","type":""}],"returnVariables":[{"name":"arrayPos","nodeType":"YulTypedName","src":"347:8:28","type":""},{"name":"length","nodeType":"YulTypedName","src":"357:6:28","type":""}],"src":"296:347:28"},{"body":{"nodeType":"YulBlock","src":"832:983:28","statements":[{"body":{"nodeType":"YulBlock","src":"879:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"888:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"891:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"881:6:28"},"nodeType":"YulFunctionCall","src":"881:12:28"},"nodeType":"YulExpressionStatement","src":"881:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"853:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"862:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"849:3:28"},"nodeType":"YulFunctionCall","src":"849:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"874:3:28","type":"","value":"224"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"845:3:28"},"nodeType":"YulFunctionCall","src":"845:33:28"},"nodeType":"YulIf","src":"842:53:28"},{"nodeType":"YulVariableDeclaration","src":"904:36:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"930:9:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"917:12:28"},"nodeType":"YulFunctionCall","src":"917:23:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"908:5:28","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"974:5:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"949:24:28"},"nodeType":"YulFunctionCall","src":"949:31:28"},"nodeType":"YulExpressionStatement","src":"949:31:28"},{"nodeType":"YulAssignment","src":"989:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"999:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"989:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"1013:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1045:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"1056:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1041:3:28"},"nodeType":"YulFunctionCall","src":"1041:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1028:12:28"},"nodeType":"YulFunctionCall","src":"1028:32:28"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"1017:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"1094:7:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"1069:24:28"},"nodeType":"YulFunctionCall","src":"1069:33:28"},"nodeType":"YulExpressionStatement","src":"1069:33:28"},{"nodeType":"YulAssignment","src":"1111:17:28","value":{"name":"value_1","nodeType":"YulIdentifier","src":"1121:7:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"1111:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"1137:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1169:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"1180:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1165:3:28"},"nodeType":"YulFunctionCall","src":"1165:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1152:12:28"},"nodeType":"YulFunctionCall","src":"1152:32:28"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"1141:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"1215:7:28"}],"functionName":{"name":"validator_revert_bool","nodeType":"YulIdentifier","src":"1193:21:28"},"nodeType":"YulFunctionCall","src":"1193:30:28"},"nodeType":"YulExpressionStatement","src":"1193:30:28"},{"nodeType":"YulAssignment","src":"1232:17:28","value":{"name":"value_2","nodeType":"YulIdentifier","src":"1242:7:28"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"1232:6:28"}]},{"nodeType":"YulAssignment","src":"1258:42:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1285:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"1296:2:28","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1281:3:28"},"nodeType":"YulFunctionCall","src":"1281:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1268:12:28"},"nodeType":"YulFunctionCall","src":"1268:32:28"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"1258:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"1309:48:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1341:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"1352:3:28","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1337:3:28"},"nodeType":"YulFunctionCall","src":"1337:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1324:12:28"},"nodeType":"YulFunctionCall","src":"1324:33:28"},"variables":[{"name":"value_3","nodeType":"YulTypedName","src":"1313:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_3","nodeType":"YulIdentifier","src":"1391:7:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"1366:24:28"},"nodeType":"YulFunctionCall","src":"1366:33:28"},"nodeType":"YulExpressionStatement","src":"1366:33:28"},{"nodeType":"YulAssignment","src":"1408:17:28","value":{"name":"value_3","nodeType":"YulIdentifier","src":"1418:7:28"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"1408:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"1434:48:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1466:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"1477:3:28","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1462:3:28"},"nodeType":"YulFunctionCall","src":"1462:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1449:12:28"},"nodeType":"YulFunctionCall","src":"1449:33:28"},"variables":[{"name":"value_4","nodeType":"YulTypedName","src":"1438:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_4","nodeType":"YulIdentifier","src":"1513:7:28"}],"functionName":{"name":"validator_revert_bool","nodeType":"YulIdentifier","src":"1491:21:28"},"nodeType":"YulFunctionCall","src":"1491:30:28"},"nodeType":"YulExpressionStatement","src":"1491:30:28"},{"nodeType":"YulAssignment","src":"1530:17:28","value":{"name":"value_4","nodeType":"YulIdentifier","src":"1540:7:28"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"1530:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"1556:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1587:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"1598:3:28","type":"","value":"192"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1583:3:28"},"nodeType":"YulFunctionCall","src":"1583:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"1570:12:28"},"nodeType":"YulFunctionCall","src":"1570:33:28"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"1560:6:28","type":""}]},{"body":{"nodeType":"YulBlock","src":"1646:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"1655:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"1658:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"1648:6:28"},"nodeType":"YulFunctionCall","src":"1648:12:28"},"nodeType":"YulExpressionStatement","src":"1648:12:28"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"1618:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"1626:18:28","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"1615:2:28"},"nodeType":"YulFunctionCall","src":"1615:30:28"},"nodeType":"YulIf","src":"1612:50:28"},{"nodeType":"YulVariableDeclaration","src":"1671:84:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1727:9:28"},{"name":"offset","nodeType":"YulIdentifier","src":"1738:6:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1723:3:28"},"nodeType":"YulFunctionCall","src":"1723:22:28"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"1747:7:28"}],"functionName":{"name":"abi_decode_bytes_calldata","nodeType":"YulIdentifier","src":"1697:25:28"},"nodeType":"YulFunctionCall","src":"1697:58:28"},"variables":[{"name":"value6_1","nodeType":"YulTypedName","src":"1675:8:28","type":""},{"name":"value7_1","nodeType":"YulTypedName","src":"1685:8:28","type":""}]},{"nodeType":"YulAssignment","src":"1764:18:28","value":{"name":"value6_1","nodeType":"YulIdentifier","src":"1774:8:28"},"variableNames":[{"name":"value6","nodeType":"YulIdentifier","src":"1764:6:28"}]},{"nodeType":"YulAssignment","src":"1791:18:28","value":{"name":"value7_1","nodeType":"YulIdentifier","src":"1801:8:28"},"variableNames":[{"name":"value7","nodeType":"YulIdentifier","src":"1791:6:28"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_boolt_int256t_uint160t_boolt_bytes_calldata_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"742:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"753:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"765:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"773:6:28","type":""},{"name":"value2","nodeType":"YulTypedName","src":"781:6:28","type":""},{"name":"value3","nodeType":"YulTypedName","src":"789:6:28","type":""},{"name":"value4","nodeType":"YulTypedName","src":"797:6:28","type":""},{"name":"value5","nodeType":"YulTypedName","src":"805:6:28","type":""},{"name":"value6","nodeType":"YulTypedName","src":"813:6:28","type":""},{"name":"value7","nodeType":"YulTypedName","src":"821:6:28","type":""}],"src":"648:1167:28"},{"body":{"nodeType":"YulBlock","src":"1971:280:28","statements":[{"nodeType":"YulAssignment","src":"1981:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"1993:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"2004:2:28","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"1989:3:28"},"nodeType":"YulFunctionCall","src":"1989:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"1981:4:28"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2023:9:28"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"2038:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"2046:66:28","type":"","value":"0xffffffff00000000000000000000000000000000000000000000000000000000"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2034:3:28"},"nodeType":"YulFunctionCall","src":"2034:79:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2016:6:28"},"nodeType":"YulFunctionCall","src":"2016:98:28"},"nodeType":"YulExpressionStatement","src":"2016:98:28"},{"nodeType":"YulVariableDeclaration","src":"2123:18:28","value":{"kind":"number","nodeType":"YulLiteral","src":"2133:8:28","type":"","value":"0xffffff"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"2127:2:28","type":""}]},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2161:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"2172:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2157:3:28"},"nodeType":"YulFunctionCall","src":"2157:18:28"},{"arguments":[{"name":"value1","nodeType":"YulIdentifier","src":"2181:6:28"},{"name":"_1","nodeType":"YulIdentifier","src":"2189:2:28"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2177:3:28"},"nodeType":"YulFunctionCall","src":"2177:15:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2150:6:28"},"nodeType":"YulFunctionCall","src":"2150:43:28"},"nodeType":"YulExpressionStatement","src":"2150:43:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2213:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"2224:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2209:3:28"},"nodeType":"YulFunctionCall","src":"2209:18:28"},{"arguments":[{"name":"value2","nodeType":"YulIdentifier","src":"2233:6:28"},{"name":"_1","nodeType":"YulIdentifier","src":"2241:2:28"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2229:3:28"},"nodeType":"YulFunctionCall","src":"2229:15:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2202:6:28"},"nodeType":"YulFunctionCall","src":"2202:43:28"},"nodeType":"YulExpressionStatement","src":"2202:43:28"}]},"name":"abi_encode_tuple_t_bytes4_t_uint24_t_uint24__to_t_bytes4_t_uint24_t_uint24__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"1924:9:28","type":""},{"name":"value2","nodeType":"YulTypedName","src":"1935:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"1943:6:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"1951:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"1962:4:28","type":""}],"src":"1820:431:28"},{"body":{"nodeType":"YulBlock","src":"2357:125:28","statements":[{"nodeType":"YulAssignment","src":"2367:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2379:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"2390:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2375:3:28"},"nodeType":"YulFunctionCall","src":"2375:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"2367:4:28"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2409:9:28"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"2424:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"2432:42:28","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"2420:3:28"},"nodeType":"YulFunctionCall","src":"2420:55:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2402:6:28"},"nodeType":"YulFunctionCall","src":"2402:74:28"},"nodeType":"YulExpressionStatement","src":"2402:74:28"}]},"name":"abi_encode_tuple_t_address__to_t_address__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"2326:9:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"2337:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"2348:4:28","type":""}],"src":"2256:226:28"},{"body":{"nodeType":"YulBlock","src":"2588:76:28","statements":[{"nodeType":"YulAssignment","src":"2598:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2610:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"2621:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"2606:3:28"},"nodeType":"YulFunctionCall","src":"2606:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"2598:4:28"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2640:9:28"},{"name":"value0","nodeType":"YulIdentifier","src":"2651:6:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"2633:6:28"},"nodeType":"YulFunctionCall","src":"2633:25:28"},"nodeType":"YulExpressionStatement","src":"2633:25:28"}]},"name":"abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"2557:9:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"2568:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"2579:4:28","type":""}],"src":"2487:177:28"},{"body":{"nodeType":"YulBlock","src":"2860:770:28","statements":[{"body":{"nodeType":"YulBlock","src":"2907:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"2916:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"2919:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"2909:6:28"},"nodeType":"YulFunctionCall","src":"2909:12:28"},"nodeType":"YulExpressionStatement","src":"2909:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"2881:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"2890:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"2877:3:28"},"nodeType":"YulFunctionCall","src":"2877:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"2902:3:28","type":"","value":"224"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"2873:3:28"},"nodeType":"YulFunctionCall","src":"2873:33:28"},"nodeType":"YulIf","src":"2870:53:28"},{"nodeType":"YulVariableDeclaration","src":"2932:36:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"2958:9:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"2945:12:28"},"nodeType":"YulFunctionCall","src":"2945:23:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"2936:5:28","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"3002:5:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"2977:24:28"},"nodeType":"YulFunctionCall","src":"2977:31:28"},"nodeType":"YulExpressionStatement","src":"2977:31:28"},{"nodeType":"YulAssignment","src":"3017:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"3027:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"3017:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"3041:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3073:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"3084:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3069:3:28"},"nodeType":"YulFunctionCall","src":"3069:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3056:12:28"},"nodeType":"YulFunctionCall","src":"3056:32:28"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"3045:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"3122:7:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"3097:24:28"},"nodeType":"YulFunctionCall","src":"3097:33:28"},"nodeType":"YulExpressionStatement","src":"3097:33:28"},{"nodeType":"YulAssignment","src":"3139:17:28","value":{"name":"value_1","nodeType":"YulIdentifier","src":"3149:7:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"3139:6:28"}]},{"nodeType":"YulAssignment","src":"3165:42:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3192:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"3203:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3188:3:28"},"nodeType":"YulFunctionCall","src":"3188:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3175:12:28"},"nodeType":"YulFunctionCall","src":"3175:32:28"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"3165:6:28"}]},{"nodeType":"YulAssignment","src":"3216:42:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3243:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"3254:2:28","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3239:3:28"},"nodeType":"YulFunctionCall","src":"3239:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3226:12:28"},"nodeType":"YulFunctionCall","src":"3226:32:28"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"3216:6:28"}]},{"nodeType":"YulAssignment","src":"3267:43:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3294:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"3305:3:28","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3290:3:28"},"nodeType":"YulFunctionCall","src":"3290:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3277:12:28"},"nodeType":"YulFunctionCall","src":"3277:33:28"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"3267:6:28"}]},{"nodeType":"YulAssignment","src":"3319:43:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3346:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"3357:3:28","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3342:3:28"},"nodeType":"YulFunctionCall","src":"3342:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3329:12:28"},"nodeType":"YulFunctionCall","src":"3329:33:28"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"3319:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"3371:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3402:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"3413:3:28","type":"","value":"192"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3398:3:28"},"nodeType":"YulFunctionCall","src":"3398:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"3385:12:28"},"nodeType":"YulFunctionCall","src":"3385:33:28"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"3375:6:28","type":""}]},{"body":{"nodeType":"YulBlock","src":"3461:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"3470:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"3473:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"3463:6:28"},"nodeType":"YulFunctionCall","src":"3463:12:28"},"nodeType":"YulExpressionStatement","src":"3463:12:28"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"3433:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"3441:18:28","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"3430:2:28"},"nodeType":"YulFunctionCall","src":"3430:30:28"},"nodeType":"YulIf","src":"3427:50:28"},{"nodeType":"YulVariableDeclaration","src":"3486:84:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3542:9:28"},{"name":"offset","nodeType":"YulIdentifier","src":"3553:6:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3538:3:28"},"nodeType":"YulFunctionCall","src":"3538:22:28"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"3562:7:28"}],"functionName":{"name":"abi_decode_bytes_calldata","nodeType":"YulIdentifier","src":"3512:25:28"},"nodeType":"YulFunctionCall","src":"3512:58:28"},"variables":[{"name":"value6_1","nodeType":"YulTypedName","src":"3490:8:28","type":""},{"name":"value7_1","nodeType":"YulTypedName","src":"3500:8:28","type":""}]},{"nodeType":"YulAssignment","src":"3579:18:28","value":{"name":"value6_1","nodeType":"YulIdentifier","src":"3589:8:28"},"variableNames":[{"name":"value6","nodeType":"YulIdentifier","src":"3579:6:28"}]},{"nodeType":"YulAssignment","src":"3606:18:28","value":{"name":"value7_1","nodeType":"YulIdentifier","src":"3616:8:28"},"variableNames":[{"name":"value7","nodeType":"YulIdentifier","src":"3606:6:28"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_uint256t_uint256t_bytes_calldata_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"2770:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"2781:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"2793:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"2801:6:28","type":""},{"name":"value2","nodeType":"YulTypedName","src":"2809:6:28","type":""},{"name":"value3","nodeType":"YulTypedName","src":"2817:6:28","type":""},{"name":"value4","nodeType":"YulTypedName","src":"2825:6:28","type":""},{"name":"value5","nodeType":"YulTypedName","src":"2833:6:28","type":""},{"name":"value6","nodeType":"YulTypedName","src":"2841:6:28","type":""},{"name":"value7","nodeType":"YulTypedName","src":"2849:6:28","type":""}],"src":"2669:961:28"},{"body":{"nodeType":"YulBlock","src":"3734:149:28","statements":[{"nodeType":"YulAssignment","src":"3744:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3756:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"3767:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"3752:3:28"},"nodeType":"YulFunctionCall","src":"3752:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"3744:4:28"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"3786:9:28"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"3801:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"3809:66:28","type":"","value":"0xffffffff00000000000000000000000000000000000000000000000000000000"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"3797:3:28"},"nodeType":"YulFunctionCall","src":"3797:79:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"3779:6:28"},"nodeType":"YulFunctionCall","src":"3779:98:28"},"nodeType":"YulExpressionStatement","src":"3779:98:28"}]},"name":"abi_encode_tuple_t_bytes4__to_t_bytes4__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"3703:9:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"3714:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"3725:4:28","type":""}],"src":"3635:248:28"},{"body":{"nodeType":"YulBlock","src":"3989:76:28","statements":[{"nodeType":"YulAssignment","src":"3999:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4011:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"4022:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4007:3:28"},"nodeType":"YulFunctionCall","src":"4007:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"3999:4:28"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4041:9:28"},{"name":"value0","nodeType":"YulIdentifier","src":"4052:6:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"4034:6:28"},"nodeType":"YulFunctionCall","src":"4034:25:28"},"nodeType":"YulExpressionStatement","src":"4034:25:28"}]},"name":"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"3958:9:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"3969:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"3980:4:28","type":""}],"src":"3888:177:28"},{"body":{"nodeType":"YulBlock","src":"4157:301:28","statements":[{"body":{"nodeType":"YulBlock","src":"4203:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"4212:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"4215:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"4205:6:28"},"nodeType":"YulFunctionCall","src":"4205:12:28"},"nodeType":"YulExpressionStatement","src":"4205:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"4178:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"4187:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"4174:3:28"},"nodeType":"YulFunctionCall","src":"4174:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"4199:2:28","type":"","value":"64"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"4170:3:28"},"nodeType":"YulFunctionCall","src":"4170:32:28"},"nodeType":"YulIf","src":"4167:52:28"},{"nodeType":"YulVariableDeclaration","src":"4228:36:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4254:9:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"4241:12:28"},"nodeType":"YulFunctionCall","src":"4241:23:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"4232:5:28","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"4298:5:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"4273:24:28"},"nodeType":"YulFunctionCall","src":"4273:31:28"},"nodeType":"YulExpressionStatement","src":"4273:31:28"},{"nodeType":"YulAssignment","src":"4313:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"4323:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"4313:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"4337:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"4369:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"4380:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"4365:3:28"},"nodeType":"YulFunctionCall","src":"4365:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"4352:12:28"},"nodeType":"YulFunctionCall","src":"4352:32:28"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"4341:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"4418:7:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"4393:24:28"},"nodeType":"YulFunctionCall","src":"4393:33:28"},"nodeType":"YulExpressionStatement","src":"4393:33:28"},{"nodeType":"YulAssignment","src":"4435:17:28","value":{"name":"value_1","nodeType":"YulIdentifier","src":"4445:7:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"4435:6:28"}]}]},"name":"abi_decode_tuple_t_addresst_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"4115:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"4126:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"4138:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"4146:6:28","type":""}],"src":"4070:388:28"},{"body":{"nodeType":"YulBlock","src":"4506:75:28","statements":[{"body":{"nodeType":"YulBlock","src":"4559:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"4568:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"4571:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"4561:6:28"},"nodeType":"YulFunctionCall","src":"4561:12:28"},"nodeType":"YulExpressionStatement","src":"4561:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"4529:5:28"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"4547:1:28","type":"","value":"2"},{"name":"value","nodeType":"YulIdentifier","src":"4550:5:28"}],"functionName":{"name":"signextend","nodeType":"YulIdentifier","src":"4536:10:28"},"nodeType":"YulFunctionCall","src":"4536:20:28"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"4526:2:28"},"nodeType":"YulFunctionCall","src":"4526:31:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"4519:6:28"},"nodeType":"YulFunctionCall","src":"4519:39:28"},"nodeType":"YulIf","src":"4516:59:28"}]},"name":"validator_revert_int24","nodeType":"YulFunctionDefinition","parameters":[{"name":"value","nodeType":"YulTypedName","src":"4495:5:28","type":""}],"src":"4463:118:28"},{"body":{"nodeType":"YulBlock","src":"4634:114:28","statements":[{"nodeType":"YulAssignment","src":"4644:29:28","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"4666:6:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"4653:12:28"},"nodeType":"YulFunctionCall","src":"4653:20:28"},"variableNames":[{"name":"value","nodeType":"YulIdentifier","src":"4644:5:28"}]},{"body":{"nodeType":"YulBlock","src":"4726:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"4735:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"4738:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"4728:6:28"},"nodeType":"YulFunctionCall","src":"4728:12:28"},"nodeType":"YulExpressionStatement","src":"4728:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"4695:5:28"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"4713:2:28","type":"","value":"15"},{"name":"value","nodeType":"YulIdentifier","src":"4717:5:28"}],"functionName":{"name":"signextend","nodeType":"YulIdentifier","src":"4702:10:28"},"nodeType":"YulFunctionCall","src":"4702:21:28"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"4692:2:28"},"nodeType":"YulFunctionCall","src":"4692:32:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"4685:6:28"},"nodeType":"YulFunctionCall","src":"4685:40:28"},"nodeType":"YulIf","src":"4682:60:28"}]},"name":"abi_decode_int128","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"4613:6:28","type":""}],"returnVariables":[{"name":"value","nodeType":"YulTypedName","src":"4624:5:28","type":""}],"src":"4586:162:28"},{"body":{"nodeType":"YulBlock","src":"4922:865:28","statements":[{"body":{"nodeType":"YulBlock","src":"4969:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"4978:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"4981:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"4971:6:28"},"nodeType":"YulFunctionCall","src":"4971:12:28"},"nodeType":"YulExpressionStatement","src":"4971:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"4943:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"4952:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"4939:3:28"},"nodeType":"YulFunctionCall","src":"4939:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"4964:3:28","type":"","value":"192"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"4935:3:28"},"nodeType":"YulFunctionCall","src":"4935:33:28"},"nodeType":"YulIf","src":"4932:53:28"},{"nodeType":"YulVariableDeclaration","src":"4994:36:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5020:9:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"5007:12:28"},"nodeType":"YulFunctionCall","src":"5007:23:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"4998:5:28","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"5064:5:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"5039:24:28"},"nodeType":"YulFunctionCall","src":"5039:31:28"},"nodeType":"YulExpressionStatement","src":"5039:31:28"},{"nodeType":"YulAssignment","src":"5079:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"5089:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"5079:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"5103:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5135:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"5146:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5131:3:28"},"nodeType":"YulFunctionCall","src":"5131:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"5118:12:28"},"nodeType":"YulFunctionCall","src":"5118:32:28"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"5107:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"5184:7:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"5159:24:28"},"nodeType":"YulFunctionCall","src":"5159:33:28"},"nodeType":"YulExpressionStatement","src":"5159:33:28"},{"nodeType":"YulAssignment","src":"5201:17:28","value":{"name":"value_1","nodeType":"YulIdentifier","src":"5211:7:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"5201:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"5227:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5259:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"5270:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5255:3:28"},"nodeType":"YulFunctionCall","src":"5255:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"5242:12:28"},"nodeType":"YulFunctionCall","src":"5242:32:28"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"5231:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"5306:7:28"}],"functionName":{"name":"validator_revert_int24","nodeType":"YulIdentifier","src":"5283:22:28"},"nodeType":"YulFunctionCall","src":"5283:31:28"},"nodeType":"YulExpressionStatement","src":"5283:31:28"},{"nodeType":"YulAssignment","src":"5323:17:28","value":{"name":"value_2","nodeType":"YulIdentifier","src":"5333:7:28"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"5323:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"5349:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5381:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"5392:2:28","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5377:3:28"},"nodeType":"YulFunctionCall","src":"5377:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"5364:12:28"},"nodeType":"YulFunctionCall","src":"5364:32:28"},"variables":[{"name":"value_3","nodeType":"YulTypedName","src":"5353:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_3","nodeType":"YulIdentifier","src":"5428:7:28"}],"functionName":{"name":"validator_revert_int24","nodeType":"YulIdentifier","src":"5405:22:28"},"nodeType":"YulFunctionCall","src":"5405:31:28"},"nodeType":"YulExpressionStatement","src":"5405:31:28"},{"nodeType":"YulAssignment","src":"5445:17:28","value":{"name":"value_3","nodeType":"YulIdentifier","src":"5455:7:28"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"5445:6:28"}]},{"nodeType":"YulAssignment","src":"5471:48:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5503:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"5514:3:28","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5499:3:28"},"nodeType":"YulFunctionCall","src":"5499:19:28"}],"functionName":{"name":"abi_decode_int128","nodeType":"YulIdentifier","src":"5481:17:28"},"nodeType":"YulFunctionCall","src":"5481:38:28"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"5471:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"5528:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5559:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"5570:3:28","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5555:3:28"},"nodeType":"YulFunctionCall","src":"5555:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"5542:12:28"},"nodeType":"YulFunctionCall","src":"5542:33:28"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"5532:6:28","type":""}]},{"body":{"nodeType":"YulBlock","src":"5618:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"5627:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"5630:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"5620:6:28"},"nodeType":"YulFunctionCall","src":"5620:12:28"},"nodeType":"YulExpressionStatement","src":"5620:12:28"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"5590:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"5598:18:28","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"5587:2:28"},"nodeType":"YulFunctionCall","src":"5587:30:28"},"nodeType":"YulIf","src":"5584:50:28"},{"nodeType":"YulVariableDeclaration","src":"5643:84:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5699:9:28"},{"name":"offset","nodeType":"YulIdentifier","src":"5710:6:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5695:3:28"},"nodeType":"YulFunctionCall","src":"5695:22:28"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"5719:7:28"}],"functionName":{"name":"abi_decode_bytes_calldata","nodeType":"YulIdentifier","src":"5669:25:28"},"nodeType":"YulFunctionCall","src":"5669:58:28"},"variables":[{"name":"value5_1","nodeType":"YulTypedName","src":"5647:8:28","type":""},{"name":"value6_1","nodeType":"YulTypedName","src":"5657:8:28","type":""}]},{"nodeType":"YulAssignment","src":"5736:18:28","value":{"name":"value5_1","nodeType":"YulIdentifier","src":"5746:8:28"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"5736:6:28"}]},{"nodeType":"YulAssignment","src":"5763:18:28","value":{"name":"value6_1","nodeType":"YulIdentifier","src":"5773:8:28"},"variableNames":[{"name":"value6","nodeType":"YulIdentifier","src":"5763:6:28"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_int24t_int24t_int128t_bytes_calldata_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"4840:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"4851:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"4863:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"4871:6:28","type":""},{"name":"value2","nodeType":"YulTypedName","src":"4879:6:28","type":""},{"name":"value3","nodeType":"YulTypedName","src":"4887:6:28","type":""},{"name":"value4","nodeType":"YulTypedName","src":"4895:6:28","type":""},{"name":"value5","nodeType":"YulTypedName","src":"4903:6:28","type":""},{"name":"value6","nodeType":"YulTypedName","src":"4911:6:28","type":""}],"src":"4753:1034:28"},{"body":{"nodeType":"YulBlock","src":"5917:207:28","statements":[{"nodeType":"YulAssignment","src":"5927:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5939:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"5950:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"5935:3:28"},"nodeType":"YulFunctionCall","src":"5935:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"5927:4:28"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"5969:9:28"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"5984:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"5992:66:28","type":"","value":"0xffffffff00000000000000000000000000000000000000000000000000000000"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"5980:3:28"},"nodeType":"YulFunctionCall","src":"5980:79:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"5962:6:28"},"nodeType":"YulFunctionCall","src":"5962:98:28"},"nodeType":"YulExpressionStatement","src":"5962:98:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6080:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"6091:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6076:3:28"},"nodeType":"YulFunctionCall","src":"6076:18:28"},{"arguments":[{"name":"value1","nodeType":"YulIdentifier","src":"6100:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"6108:8:28","type":"","value":"0xffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"6096:3:28"},"nodeType":"YulFunctionCall","src":"6096:21:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6069:6:28"},"nodeType":"YulFunctionCall","src":"6069:49:28"},"nodeType":"YulExpressionStatement","src":"6069:49:28"}]},"name":"abi_encode_tuple_t_bytes4_t_uint24__to_t_bytes4_t_uint24__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"5878:9:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"5889:6:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"5897:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"5908:4:28","type":""}],"src":"5792:332:28"},{"body":{"nodeType":"YulBlock","src":"6216:301:28","statements":[{"body":{"nodeType":"YulBlock","src":"6262:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6271:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"6274:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"6264:6:28"},"nodeType":"YulFunctionCall","src":"6264:12:28"},"nodeType":"YulExpressionStatement","src":"6264:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"6237:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"6246:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"6233:3:28"},"nodeType":"YulFunctionCall","src":"6233:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"6258:2:28","type":"","value":"64"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"6229:3:28"},"nodeType":"YulFunctionCall","src":"6229:32:28"},"nodeType":"YulIf","src":"6226:52:28"},{"nodeType":"YulVariableDeclaration","src":"6287:36:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6313:9:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"6300:12:28"},"nodeType":"YulFunctionCall","src":"6300:23:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"6291:5:28","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"6357:5:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"6332:24:28"},"nodeType":"YulFunctionCall","src":"6332:31:28"},"nodeType":"YulExpressionStatement","src":"6332:31:28"},{"nodeType":"YulAssignment","src":"6372:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"6382:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"6372:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"6396:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6428:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"6439:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6424:3:28"},"nodeType":"YulFunctionCall","src":"6424:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"6411:12:28"},"nodeType":"YulFunctionCall","src":"6411:32:28"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"6400:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"6477:7:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"6452:24:28"},"nodeType":"YulFunctionCall","src":"6452:33:28"},"nodeType":"YulExpressionStatement","src":"6452:33:28"},{"nodeType":"YulAssignment","src":"6494:17:28","value":{"name":"value_1","nodeType":"YulIdentifier","src":"6504:7:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"6494:6:28"}]}]},"name":"abi_decode_tuple_t_addresst_uint160","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"6174:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"6185:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"6197:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"6205:6:28","type":""}],"src":"6129:388:28"},{"body":{"nodeType":"YulBlock","src":"6619:87:28","statements":[{"nodeType":"YulAssignment","src":"6629:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6641:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"6652:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"6637:3:28"},"nodeType":"YulFunctionCall","src":"6637:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"6629:4:28"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6671:9:28"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"6686:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"6694:4:28","type":"","value":"0xff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"6682:3:28"},"nodeType":"YulFunctionCall","src":"6682:17:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"6664:6:28"},"nodeType":"YulFunctionCall","src":"6664:36:28"},"nodeType":"YulExpressionStatement","src":"6664:36:28"}]},"name":"abi_encode_tuple_t_uint8__to_t_uint8__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"6588:9:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"6599:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"6610:4:28","type":""}],"src":"6522:184:28"},{"body":{"nodeType":"YulBlock","src":"6813:423:28","statements":[{"body":{"nodeType":"YulBlock","src":"6859:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"6868:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"6871:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"6861:6:28"},"nodeType":"YulFunctionCall","src":"6861:12:28"},"nodeType":"YulExpressionStatement","src":"6861:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"6834:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"6843:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"6830:3:28"},"nodeType":"YulFunctionCall","src":"6830:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"6855:2:28","type":"","value":"96"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"6826:3:28"},"nodeType":"YulFunctionCall","src":"6826:32:28"},"nodeType":"YulIf","src":"6823:52:28"},{"nodeType":"YulVariableDeclaration","src":"6884:36:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"6910:9:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"6897:12:28"},"nodeType":"YulFunctionCall","src":"6897:23:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"6888:5:28","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"6954:5:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"6929:24:28"},"nodeType":"YulFunctionCall","src":"6929:31:28"},"nodeType":"YulExpressionStatement","src":"6929:31:28"},{"nodeType":"YulAssignment","src":"6969:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"6979:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"6969:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"6993:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7025:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"7036:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7021:3:28"},"nodeType":"YulFunctionCall","src":"7021:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"7008:12:28"},"nodeType":"YulFunctionCall","src":"7008:32:28"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"6997:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"7074:7:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"7049:24:28"},"nodeType":"YulFunctionCall","src":"7049:33:28"},"nodeType":"YulExpressionStatement","src":"7049:33:28"},{"nodeType":"YulAssignment","src":"7091:17:28","value":{"name":"value_1","nodeType":"YulIdentifier","src":"7101:7:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"7091:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"7117:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7149:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"7160:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7145:3:28"},"nodeType":"YulFunctionCall","src":"7145:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"7132:12:28"},"nodeType":"YulFunctionCall","src":"7132:32:28"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"7121:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"7196:7:28"}],"functionName":{"name":"validator_revert_int24","nodeType":"YulIdentifier","src":"7173:22:28"},"nodeType":"YulFunctionCall","src":"7173:31:28"},"nodeType":"YulExpressionStatement","src":"7173:31:28"},{"nodeType":"YulAssignment","src":"7213:17:28","value":{"name":"value_2","nodeType":"YulIdentifier","src":"7223:7:28"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"7213:6:28"}]}]},"name":"abi_decode_tuple_t_addresst_uint160t_int24","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"6763:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"6774:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"6786:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"6794:6:28","type":""},{"name":"value2","nodeType":"YulTypedName","src":"6802:6:28","type":""}],"src":"6711:525:28"},{"body":{"nodeType":"YulBlock","src":"7398:666:28","statements":[{"body":{"nodeType":"YulBlock","src":"7445:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7454:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"7457:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"7447:6:28"},"nodeType":"YulFunctionCall","src":"7447:12:28"},"nodeType":"YulExpressionStatement","src":"7447:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"7419:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"7428:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"7415:3:28"},"nodeType":"YulFunctionCall","src":"7415:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"7440:3:28","type":"","value":"160"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"7411:3:28"},"nodeType":"YulFunctionCall","src":"7411:33:28"},"nodeType":"YulIf","src":"7408:53:28"},{"nodeType":"YulVariableDeclaration","src":"7470:36:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7496:9:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"7483:12:28"},"nodeType":"YulFunctionCall","src":"7483:23:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"7474:5:28","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"7540:5:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"7515:24:28"},"nodeType":"YulFunctionCall","src":"7515:31:28"},"nodeType":"YulExpressionStatement","src":"7515:31:28"},{"nodeType":"YulAssignment","src":"7555:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"7565:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"7555:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"7579:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7611:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"7622:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7607:3:28"},"nodeType":"YulFunctionCall","src":"7607:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"7594:12:28"},"nodeType":"YulFunctionCall","src":"7594:32:28"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"7583:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"7660:7:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"7635:24:28"},"nodeType":"YulFunctionCall","src":"7635:33:28"},"nodeType":"YulExpressionStatement","src":"7635:33:28"},{"nodeType":"YulAssignment","src":"7677:17:28","value":{"name":"value_1","nodeType":"YulIdentifier","src":"7687:7:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"7677:6:28"}]},{"nodeType":"YulAssignment","src":"7703:42:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7730:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"7741:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7726:3:28"},"nodeType":"YulFunctionCall","src":"7726:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"7713:12:28"},"nodeType":"YulFunctionCall","src":"7713:32:28"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"7703:6:28"}]},{"nodeType":"YulAssignment","src":"7754:42:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7781:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"7792:2:28","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7777:3:28"},"nodeType":"YulFunctionCall","src":"7777:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"7764:12:28"},"nodeType":"YulFunctionCall","src":"7764:32:28"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"7754:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"7805:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7836:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"7847:3:28","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7832:3:28"},"nodeType":"YulFunctionCall","src":"7832:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"7819:12:28"},"nodeType":"YulFunctionCall","src":"7819:33:28"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"7809:6:28","type":""}]},{"body":{"nodeType":"YulBlock","src":"7895:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"7904:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"7907:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"7897:6:28"},"nodeType":"YulFunctionCall","src":"7897:12:28"},"nodeType":"YulExpressionStatement","src":"7897:12:28"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"7867:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"7875:18:28","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"7864:2:28"},"nodeType":"YulFunctionCall","src":"7864:30:28"},"nodeType":"YulIf","src":"7861:50:28"},{"nodeType":"YulVariableDeclaration","src":"7920:84:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"7976:9:28"},{"name":"offset","nodeType":"YulIdentifier","src":"7987:6:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"7972:3:28"},"nodeType":"YulFunctionCall","src":"7972:22:28"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"7996:7:28"}],"functionName":{"name":"abi_decode_bytes_calldata","nodeType":"YulIdentifier","src":"7946:25:28"},"nodeType":"YulFunctionCall","src":"7946:58:28"},"variables":[{"name":"value4_1","nodeType":"YulTypedName","src":"7924:8:28","type":""},{"name":"value5_1","nodeType":"YulTypedName","src":"7934:8:28","type":""}]},{"nodeType":"YulAssignment","src":"8013:18:28","value":{"name":"value4_1","nodeType":"YulIdentifier","src":"8023:8:28"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"8013:6:28"}]},{"nodeType":"YulAssignment","src":"8040:18:28","value":{"name":"value5_1","nodeType":"YulIdentifier","src":"8050:8:28"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"8040:6:28"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_bytes_calldata_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"7324:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"7335:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"7347:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"7355:6:28","type":""},{"name":"value2","nodeType":"YulTypedName","src":"7363:6:28","type":""},{"name":"value3","nodeType":"YulTypedName","src":"7371:6:28","type":""},{"name":"value4","nodeType":"YulTypedName","src":"7379:6:28","type":""},{"name":"value5","nodeType":"YulTypedName","src":"7387:6:28","type":""}],"src":"7241:823:28"},{"body":{"nodeType":"YulBlock","src":"8271:965:28","statements":[{"body":{"nodeType":"YulBlock","src":"8318:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"8327:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"8330:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"8320:6:28"},"nodeType":"YulFunctionCall","src":"8320:12:28"},"nodeType":"YulExpressionStatement","src":"8320:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"8292:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"8301:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"8288:3:28"},"nodeType":"YulFunctionCall","src":"8288:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"8313:3:28","type":"","value":"256"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"8284:3:28"},"nodeType":"YulFunctionCall","src":"8284:33:28"},"nodeType":"YulIf","src":"8281:53:28"},{"nodeType":"YulVariableDeclaration","src":"8343:36:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8369:9:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8356:12:28"},"nodeType":"YulFunctionCall","src":"8356:23:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"8347:5:28","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"8413:5:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"8388:24:28"},"nodeType":"YulFunctionCall","src":"8388:31:28"},"nodeType":"YulExpressionStatement","src":"8388:31:28"},{"nodeType":"YulAssignment","src":"8428:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"8438:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"8428:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"8452:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8484:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"8495:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8480:3:28"},"nodeType":"YulFunctionCall","src":"8480:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8467:12:28"},"nodeType":"YulFunctionCall","src":"8467:32:28"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"8456:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"8533:7:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"8508:24:28"},"nodeType":"YulFunctionCall","src":"8508:33:28"},"nodeType":"YulExpressionStatement","src":"8508:33:28"},{"nodeType":"YulAssignment","src":"8550:17:28","value":{"name":"value_1","nodeType":"YulIdentifier","src":"8560:7:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"8550:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"8576:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8608:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"8619:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8604:3:28"},"nodeType":"YulFunctionCall","src":"8604:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8591:12:28"},"nodeType":"YulFunctionCall","src":"8591:32:28"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"8580:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"8654:7:28"}],"functionName":{"name":"validator_revert_bool","nodeType":"YulIdentifier","src":"8632:21:28"},"nodeType":"YulFunctionCall","src":"8632:30:28"},"nodeType":"YulExpressionStatement","src":"8632:30:28"},{"nodeType":"YulAssignment","src":"8671:17:28","value":{"name":"value_2","nodeType":"YulIdentifier","src":"8681:7:28"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"8671:6:28"}]},{"nodeType":"YulAssignment","src":"8697:42:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8724:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"8735:2:28","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8720:3:28"},"nodeType":"YulFunctionCall","src":"8720:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8707:12:28"},"nodeType":"YulFunctionCall","src":"8707:32:28"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"8697:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"8748:48:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8780:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"8791:3:28","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8776:3:28"},"nodeType":"YulFunctionCall","src":"8776:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8763:12:28"},"nodeType":"YulFunctionCall","src":"8763:33:28"},"variables":[{"name":"value_3","nodeType":"YulTypedName","src":"8752:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_3","nodeType":"YulIdentifier","src":"8830:7:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"8805:24:28"},"nodeType":"YulFunctionCall","src":"8805:33:28"},"nodeType":"YulExpressionStatement","src":"8805:33:28"},{"nodeType":"YulAssignment","src":"8847:17:28","value":{"name":"value_3","nodeType":"YulIdentifier","src":"8857:7:28"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"8847:6:28"}]},{"nodeType":"YulAssignment","src":"8873:43:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8900:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"8911:3:28","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8896:3:28"},"nodeType":"YulFunctionCall","src":"8896:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8883:12:28"},"nodeType":"YulFunctionCall","src":"8883:33:28"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"8873:6:28"}]},{"nodeType":"YulAssignment","src":"8925:43:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"8952:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"8963:3:28","type":"","value":"192"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"8948:3:28"},"nodeType":"YulFunctionCall","src":"8948:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8935:12:28"},"nodeType":"YulFunctionCall","src":"8935:33:28"},"variableNames":[{"name":"value6","nodeType":"YulIdentifier","src":"8925:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"8977:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9008:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"9019:3:28","type":"","value":"224"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9004:3:28"},"nodeType":"YulFunctionCall","src":"9004:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"8991:12:28"},"nodeType":"YulFunctionCall","src":"8991:33:28"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"8981:6:28","type":""}]},{"body":{"nodeType":"YulBlock","src":"9067:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"9076:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"9079:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"9069:6:28"},"nodeType":"YulFunctionCall","src":"9069:12:28"},"nodeType":"YulExpressionStatement","src":"9069:12:28"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"9039:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"9047:18:28","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"9036:2:28"},"nodeType":"YulFunctionCall","src":"9036:30:28"},"nodeType":"YulIf","src":"9033:50:28"},{"nodeType":"YulVariableDeclaration","src":"9092:84:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9148:9:28"},{"name":"offset","nodeType":"YulIdentifier","src":"9159:6:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9144:3:28"},"nodeType":"YulFunctionCall","src":"9144:22:28"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"9168:7:28"}],"functionName":{"name":"abi_decode_bytes_calldata","nodeType":"YulIdentifier","src":"9118:25:28"},"nodeType":"YulFunctionCall","src":"9118:58:28"},"variables":[{"name":"value7_1","nodeType":"YulTypedName","src":"9096:8:28","type":""},{"name":"value8_1","nodeType":"YulTypedName","src":"9106:8:28","type":""}]},{"nodeType":"YulAssignment","src":"9185:18:28","value":{"name":"value7_1","nodeType":"YulIdentifier","src":"9195:8:28"},"variableNames":[{"name":"value7","nodeType":"YulIdentifier","src":"9185:6:28"}]},{"nodeType":"YulAssignment","src":"9212:18:28","value":{"name":"value8_1","nodeType":"YulIdentifier","src":"9222:8:28"},"variableNames":[{"name":"value8","nodeType":"YulIdentifier","src":"9212:6:28"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_boolt_int256t_uint160t_int256t_int256t_bytes_calldata_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"8173:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"8184:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"8196:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"8204:6:28","type":""},{"name":"value2","nodeType":"YulTypedName","src":"8212:6:28","type":""},{"name":"value3","nodeType":"YulTypedName","src":"8220:6:28","type":""},{"name":"value4","nodeType":"YulTypedName","src":"8228:6:28","type":""},{"name":"value5","nodeType":"YulTypedName","src":"8236:6:28","type":""},{"name":"value6","nodeType":"YulTypedName","src":"8244:6:28","type":""},{"name":"value7","nodeType":"YulTypedName","src":"8252:6:28","type":""},{"name":"value8","nodeType":"YulTypedName","src":"8260:6:28","type":""}],"src":"8069:1167:28"},{"body":{"nodeType":"YulBlock","src":"9328:161:28","statements":[{"body":{"nodeType":"YulBlock","src":"9374:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"9383:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"9386:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"9376:6:28"},"nodeType":"YulFunctionCall","src":"9376:12:28"},"nodeType":"YulExpressionStatement","src":"9376:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"9349:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"9358:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"9345:3:28"},"nodeType":"YulFunctionCall","src":"9345:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"9370:2:28","type":"","value":"64"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"9341:3:28"},"nodeType":"YulFunctionCall","src":"9341:32:28"},"nodeType":"YulIf","src":"9338:52:28"},{"nodeType":"YulAssignment","src":"9399:33:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9422:9:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"9409:12:28"},"nodeType":"YulFunctionCall","src":"9409:23:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"9399:6:28"}]},{"nodeType":"YulAssignment","src":"9441:42:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9468:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"9479:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9464:3:28"},"nodeType":"YulFunctionCall","src":"9464:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"9451:12:28"},"nodeType":"YulFunctionCall","src":"9451:32:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"9441:6:28"}]}]},"name":"abi_decode_tuple_t_uint256t_uint256","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"9286:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"9297:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"9309:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"9317:6:28","type":""}],"src":"9241:248:28"},{"body":{"nodeType":"YulBlock","src":"9560:184:28","statements":[{"nodeType":"YulVariableDeclaration","src":"9570:10:28","value":{"kind":"number","nodeType":"YulLiteral","src":"9579:1:28","type":"","value":"0"},"variables":[{"name":"i","nodeType":"YulTypedName","src":"9574:1:28","type":""}]},{"body":{"nodeType":"YulBlock","src":"9639:63:28","statements":[{"expression":{"arguments":[{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"9664:3:28"},{"name":"i","nodeType":"YulIdentifier","src":"9669:1:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9660:3:28"},"nodeType":"YulFunctionCall","src":"9660:11:28"},{"arguments":[{"arguments":[{"name":"src","nodeType":"YulIdentifier","src":"9683:3:28"},{"name":"i","nodeType":"YulIdentifier","src":"9688:1:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9679:3:28"},"nodeType":"YulFunctionCall","src":"9679:11:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"9673:5:28"},"nodeType":"YulFunctionCall","src":"9673:18:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"9653:6:28"},"nodeType":"YulFunctionCall","src":"9653:39:28"},"nodeType":"YulExpressionStatement","src":"9653:39:28"}]},"condition":{"arguments":[{"name":"i","nodeType":"YulIdentifier","src":"9600:1:28"},{"name":"length","nodeType":"YulIdentifier","src":"9603:6:28"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"9597:2:28"},"nodeType":"YulFunctionCall","src":"9597:13:28"},"nodeType":"YulForLoop","post":{"nodeType":"YulBlock","src":"9611:19:28","statements":[{"nodeType":"YulAssignment","src":"9613:15:28","value":{"arguments":[{"name":"i","nodeType":"YulIdentifier","src":"9622:1:28"},{"kind":"number","nodeType":"YulLiteral","src":"9625:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9618:3:28"},"nodeType":"YulFunctionCall","src":"9618:10:28"},"variableNames":[{"name":"i","nodeType":"YulIdentifier","src":"9613:1:28"}]}]},"pre":{"nodeType":"YulBlock","src":"9593:3:28","statements":[]},"src":"9589:113:28"},{"expression":{"arguments":[{"arguments":[{"name":"dst","nodeType":"YulIdentifier","src":"9722:3:28"},{"name":"length","nodeType":"YulIdentifier","src":"9727:6:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9718:3:28"},"nodeType":"YulFunctionCall","src":"9718:16:28"},{"kind":"number","nodeType":"YulLiteral","src":"9736:1:28","type":"","value":"0"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"9711:6:28"},"nodeType":"YulFunctionCall","src":"9711:27:28"},"nodeType":"YulExpressionStatement","src":"9711:27:28"}]},"name":"copy_memory_to_memory_with_cleanup","nodeType":"YulFunctionDefinition","parameters":[{"name":"src","nodeType":"YulTypedName","src":"9538:3:28","type":""},{"name":"dst","nodeType":"YulTypedName","src":"9543:3:28","type":""},{"name":"length","nodeType":"YulTypedName","src":"9548:6:28","type":""}],"src":"9494:250:28"},{"body":{"nodeType":"YulBlock","src":"9920:961:28","statements":[{"nodeType":"YulVariableDeclaration","src":"9930:12:28","value":{"kind":"number","nodeType":"YulLiteral","src":"9940:2:28","type":"","value":"32"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"9934:2:28","type":""}]},{"nodeType":"YulVariableDeclaration","src":"9951:32:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9969:9:28"},{"name":"_1","nodeType":"YulIdentifier","src":"9980:2:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"9965:3:28"},"nodeType":"YulFunctionCall","src":"9965:18:28"},"variables":[{"name":"tail_1","nodeType":"YulTypedName","src":"9955:6:28","type":""}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"9999:9:28"},{"name":"_1","nodeType":"YulIdentifier","src":"10010:2:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"9992:6:28"},"nodeType":"YulFunctionCall","src":"9992:21:28"},"nodeType":"YulExpressionStatement","src":"9992:21:28"},{"nodeType":"YulVariableDeclaration","src":"10022:17:28","value":{"name":"tail_1","nodeType":"YulIdentifier","src":"10033:6:28"},"variables":[{"name":"pos","nodeType":"YulTypedName","src":"10026:3:28","type":""}]},{"nodeType":"YulVariableDeclaration","src":"10048:27:28","value":{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"10068:6:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"10062:5:28"},"nodeType":"YulFunctionCall","src":"10062:13:28"},"variables":[{"name":"length","nodeType":"YulTypedName","src":"10052:6:28","type":""}]},{"expression":{"arguments":[{"name":"tail_1","nodeType":"YulIdentifier","src":"10091:6:28"},{"name":"length","nodeType":"YulIdentifier","src":"10099:6:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"10084:6:28"},"nodeType":"YulFunctionCall","src":"10084:22:28"},"nodeType":"YulExpressionStatement","src":"10084:22:28"},{"nodeType":"YulAssignment","src":"10115:25:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10126:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"10137:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10122:3:28"},"nodeType":"YulFunctionCall","src":"10122:18:28"},"variableNames":[{"name":"pos","nodeType":"YulIdentifier","src":"10115:3:28"}]},{"nodeType":"YulVariableDeclaration","src":"10149:53:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"10171:9:28"},{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"10186:1:28","type":"","value":"5"},{"name":"length","nodeType":"YulIdentifier","src":"10189:6:28"}],"functionName":{"name":"shl","nodeType":"YulIdentifier","src":"10182:3:28"},"nodeType":"YulFunctionCall","src":"10182:14:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10167:3:28"},"nodeType":"YulFunctionCall","src":"10167:30:28"},{"kind":"number","nodeType":"YulLiteral","src":"10199:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10163:3:28"},"nodeType":"YulFunctionCall","src":"10163:39:28"},"variables":[{"name":"tail_2","nodeType":"YulTypedName","src":"10153:6:28","type":""}]},{"nodeType":"YulVariableDeclaration","src":"10211:29:28","value":{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"10229:6:28"},{"name":"_1","nodeType":"YulIdentifier","src":"10237:2:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10225:3:28"},"nodeType":"YulFunctionCall","src":"10225:15:28"},"variables":[{"name":"srcPtr","nodeType":"YulTypedName","src":"10215:6:28","type":""}]},{"nodeType":"YulVariableDeclaration","src":"10249:10:28","value":{"kind":"number","nodeType":"YulLiteral","src":"10258:1:28","type":"","value":"0"},"variables":[{"name":"i","nodeType":"YulTypedName","src":"10253:1:28","type":""}]},{"body":{"nodeType":"YulBlock","src":"10317:535:28","statements":[{"expression":{"arguments":[{"name":"pos","nodeType":"YulIdentifier","src":"10338:3:28"},{"arguments":[{"arguments":[{"name":"tail_2","nodeType":"YulIdentifier","src":"10351:6:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"10359:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"10347:3:28"},"nodeType":"YulFunctionCall","src":"10347:22:28"},{"kind":"number","nodeType":"YulLiteral","src":"10371:66:28","type":"","value":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10343:3:28"},"nodeType":"YulFunctionCall","src":"10343:95:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"10331:6:28"},"nodeType":"YulFunctionCall","src":"10331:108:28"},"nodeType":"YulExpressionStatement","src":"10331:108:28"},{"nodeType":"YulVariableDeclaration","src":"10452:23:28","value":{"arguments":[{"name":"srcPtr","nodeType":"YulIdentifier","src":"10468:6:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"10462:5:28"},"nodeType":"YulFunctionCall","src":"10462:13:28"},"variables":[{"name":"_2","nodeType":"YulTypedName","src":"10456:2:28","type":""}]},{"nodeType":"YulVariableDeclaration","src":"10488:25:28","value":{"arguments":[{"name":"_2","nodeType":"YulIdentifier","src":"10510:2:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"10504:5:28"},"nodeType":"YulFunctionCall","src":"10504:9:28"},"variables":[{"name":"length_1","nodeType":"YulTypedName","src":"10492:8:28","type":""}]},{"expression":{"arguments":[{"name":"tail_2","nodeType":"YulIdentifier","src":"10533:6:28"},{"name":"length_1","nodeType":"YulIdentifier","src":"10541:8:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"10526:6:28"},"nodeType":"YulFunctionCall","src":"10526:24:28"},"nodeType":"YulExpressionStatement","src":"10526:24:28"},{"expression":{"arguments":[{"arguments":[{"name":"_2","nodeType":"YulIdentifier","src":"10602:2:28"},{"name":"_1","nodeType":"YulIdentifier","src":"10606:2:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10598:3:28"},"nodeType":"YulFunctionCall","src":"10598:11:28"},{"arguments":[{"name":"tail_2","nodeType":"YulIdentifier","src":"10615:6:28"},{"name":"_1","nodeType":"YulIdentifier","src":"10623:2:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10611:3:28"},"nodeType":"YulFunctionCall","src":"10611:15:28"},{"name":"length_1","nodeType":"YulIdentifier","src":"10628:8:28"}],"functionName":{"name":"copy_memory_to_memory_with_cleanup","nodeType":"YulIdentifier","src":"10563:34:28"},"nodeType":"YulFunctionCall","src":"10563:74:28"},"nodeType":"YulExpressionStatement","src":"10563:74:28"},{"nodeType":"YulAssignment","src":"10650:122:28","value":{"arguments":[{"arguments":[{"name":"tail_2","nodeType":"YulIdentifier","src":"10668:6:28"},{"arguments":[{"arguments":[{"name":"length_1","nodeType":"YulIdentifier","src":"10684:8:28"},{"kind":"number","nodeType":"YulLiteral","src":"10694:2:28","type":"","value":"31"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10680:3:28"},"nodeType":"YulFunctionCall","src":"10680:17:28"},{"kind":"number","nodeType":"YulLiteral","src":"10699:66:28","type":"","value":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"10676:3:28"},"nodeType":"YulFunctionCall","src":"10676:90:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10664:3:28"},"nodeType":"YulFunctionCall","src":"10664:103:28"},{"name":"_1","nodeType":"YulIdentifier","src":"10769:2:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10660:3:28"},"nodeType":"YulFunctionCall","src":"10660:112:28"},"variableNames":[{"name":"tail_2","nodeType":"YulIdentifier","src":"10650:6:28"}]},{"nodeType":"YulAssignment","src":"10785:25:28","value":{"arguments":[{"name":"srcPtr","nodeType":"YulIdentifier","src":"10799:6:28"},{"name":"_1","nodeType":"YulIdentifier","src":"10807:2:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10795:3:28"},"nodeType":"YulFunctionCall","src":"10795:15:28"},"variableNames":[{"name":"srcPtr","nodeType":"YulIdentifier","src":"10785:6:28"}]},{"nodeType":"YulAssignment","src":"10823:19:28","value":{"arguments":[{"name":"pos","nodeType":"YulIdentifier","src":"10834:3:28"},{"name":"_1","nodeType":"YulIdentifier","src":"10839:2:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10830:3:28"},"nodeType":"YulFunctionCall","src":"10830:12:28"},"variableNames":[{"name":"pos","nodeType":"YulIdentifier","src":"10823:3:28"}]}]},"condition":{"arguments":[{"name":"i","nodeType":"YulIdentifier","src":"10279:1:28"},{"name":"length","nodeType":"YulIdentifier","src":"10282:6:28"}],"functionName":{"name":"lt","nodeType":"YulIdentifier","src":"10276:2:28"},"nodeType":"YulFunctionCall","src":"10276:13:28"},"nodeType":"YulForLoop","post":{"nodeType":"YulBlock","src":"10290:18:28","statements":[{"nodeType":"YulAssignment","src":"10292:14:28","value":{"arguments":[{"name":"i","nodeType":"YulIdentifier","src":"10301:1:28"},{"kind":"number","nodeType":"YulLiteral","src":"10304:1:28","type":"","value":"1"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"10297:3:28"},"nodeType":"YulFunctionCall","src":"10297:9:28"},"variableNames":[{"name":"i","nodeType":"YulIdentifier","src":"10292:1:28"}]}]},"pre":{"nodeType":"YulBlock","src":"10272:3:28","statements":[]},"src":"10268:584:28"},{"nodeType":"YulAssignment","src":"10861:14:28","value":{"name":"tail_2","nodeType":"YulIdentifier","src":"10869:6:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"10861:4:28"}]}]},"name":"abi_encode_tuple_t_array$_t_string_memory_ptr_$dyn_memory_ptr__to_t_array$_t_string_memory_ptr_$dyn_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"9889:9:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"9900:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"9911:4:28","type":""}],"src":"9749:1132:28"},{"body":{"nodeType":"YulBlock","src":"10956:177:28","statements":[{"body":{"nodeType":"YulBlock","src":"11002:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"11011:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"11014:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"11004:6:28"},"nodeType":"YulFunctionCall","src":"11004:12:28"},"nodeType":"YulExpressionStatement","src":"11004:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"10977:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"10986:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"10973:3:28"},"nodeType":"YulFunctionCall","src":"10973:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"10998:2:28","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"10969:3:28"},"nodeType":"YulFunctionCall","src":"10969:32:28"},"nodeType":"YulIf","src":"10966:52:28"},{"nodeType":"YulVariableDeclaration","src":"11027:36:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11053:9:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"11040:12:28"},"nodeType":"YulFunctionCall","src":"11040:23:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"11031:5:28","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"11097:5:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"11072:24:28"},"nodeType":"YulFunctionCall","src":"11072:31:28"},"nodeType":"YulExpressionStatement","src":"11072:31:28"},{"nodeType":"YulAssignment","src":"11112:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"11122:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"11112:6:28"}]}]},"name":"abi_decode_tuple_t_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"10922:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"10933:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"10945:6:28","type":""}],"src":"10886:247:28"},{"body":{"nodeType":"YulBlock","src":"11341:969:28","statements":[{"body":{"nodeType":"YulBlock","src":"11388:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"11397:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"11400:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"11390:6:28"},"nodeType":"YulFunctionCall","src":"11390:12:28"},"nodeType":"YulExpressionStatement","src":"11390:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"11362:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"11371:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"11358:3:28"},"nodeType":"YulFunctionCall","src":"11358:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"11383:3:28","type":"","value":"256"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"11354:3:28"},"nodeType":"YulFunctionCall","src":"11354:33:28"},"nodeType":"YulIf","src":"11351:53:28"},{"nodeType":"YulVariableDeclaration","src":"11413:36:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11439:9:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"11426:12:28"},"nodeType":"YulFunctionCall","src":"11426:23:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"11417:5:28","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"11483:5:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"11458:24:28"},"nodeType":"YulFunctionCall","src":"11458:31:28"},"nodeType":"YulExpressionStatement","src":"11458:31:28"},{"nodeType":"YulAssignment","src":"11498:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"11508:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"11498:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"11522:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11554:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"11565:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"11550:3:28"},"nodeType":"YulFunctionCall","src":"11550:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"11537:12:28"},"nodeType":"YulFunctionCall","src":"11537:32:28"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"11526:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"11603:7:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"11578:24:28"},"nodeType":"YulFunctionCall","src":"11578:33:28"},"nodeType":"YulExpressionStatement","src":"11578:33:28"},{"nodeType":"YulAssignment","src":"11620:17:28","value":{"name":"value_1","nodeType":"YulIdentifier","src":"11630:7:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"11620:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"11646:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11678:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"11689:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"11674:3:28"},"nodeType":"YulFunctionCall","src":"11674:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"11661:12:28"},"nodeType":"YulFunctionCall","src":"11661:32:28"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"11650:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"11725:7:28"}],"functionName":{"name":"validator_revert_int24","nodeType":"YulIdentifier","src":"11702:22:28"},"nodeType":"YulFunctionCall","src":"11702:31:28"},"nodeType":"YulExpressionStatement","src":"11702:31:28"},{"nodeType":"YulAssignment","src":"11742:17:28","value":{"name":"value_2","nodeType":"YulIdentifier","src":"11752:7:28"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"11742:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"11768:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11800:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"11811:2:28","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"11796:3:28"},"nodeType":"YulFunctionCall","src":"11796:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"11783:12:28"},"nodeType":"YulFunctionCall","src":"11783:32:28"},"variables":[{"name":"value_3","nodeType":"YulTypedName","src":"11772:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_3","nodeType":"YulIdentifier","src":"11847:7:28"}],"functionName":{"name":"validator_revert_int24","nodeType":"YulIdentifier","src":"11824:22:28"},"nodeType":"YulFunctionCall","src":"11824:31:28"},"nodeType":"YulExpressionStatement","src":"11824:31:28"},{"nodeType":"YulAssignment","src":"11864:17:28","value":{"name":"value_3","nodeType":"YulIdentifier","src":"11874:7:28"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"11864:6:28"}]},{"nodeType":"YulAssignment","src":"11890:48:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11922:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"11933:3:28","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"11918:3:28"},"nodeType":"YulFunctionCall","src":"11918:19:28"}],"functionName":{"name":"abi_decode_int128","nodeType":"YulIdentifier","src":"11900:17:28"},"nodeType":"YulFunctionCall","src":"11900:38:28"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"11890:6:28"}]},{"nodeType":"YulAssignment","src":"11947:43:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"11974:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"11985:3:28","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"11970:3:28"},"nodeType":"YulFunctionCall","src":"11970:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"11957:12:28"},"nodeType":"YulFunctionCall","src":"11957:33:28"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"11947:6:28"}]},{"nodeType":"YulAssignment","src":"11999:43:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12026:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"12037:3:28","type":"","value":"192"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"12022:3:28"},"nodeType":"YulFunctionCall","src":"12022:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"12009:12:28"},"nodeType":"YulFunctionCall","src":"12009:33:28"},"variableNames":[{"name":"value6","nodeType":"YulIdentifier","src":"11999:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"12051:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12082:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"12093:3:28","type":"","value":"224"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"12078:3:28"},"nodeType":"YulFunctionCall","src":"12078:19:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"12065:12:28"},"nodeType":"YulFunctionCall","src":"12065:33:28"},"variables":[{"name":"offset","nodeType":"YulTypedName","src":"12055:6:28","type":""}]},{"body":{"nodeType":"YulBlock","src":"12141:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"12150:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"12153:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"12143:6:28"},"nodeType":"YulFunctionCall","src":"12143:12:28"},"nodeType":"YulExpressionStatement","src":"12143:12:28"}]},"condition":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"12113:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"12121:18:28","type":"","value":"0xffffffffffffffff"}],"functionName":{"name":"gt","nodeType":"YulIdentifier","src":"12110:2:28"},"nodeType":"YulFunctionCall","src":"12110:30:28"},"nodeType":"YulIf","src":"12107:50:28"},{"nodeType":"YulVariableDeclaration","src":"12166:84:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12222:9:28"},{"name":"offset","nodeType":"YulIdentifier","src":"12233:6:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"12218:3:28"},"nodeType":"YulFunctionCall","src":"12218:22:28"},{"name":"dataEnd","nodeType":"YulIdentifier","src":"12242:7:28"}],"functionName":{"name":"abi_decode_bytes_calldata","nodeType":"YulIdentifier","src":"12192:25:28"},"nodeType":"YulFunctionCall","src":"12192:58:28"},"variables":[{"name":"value7_1","nodeType":"YulTypedName","src":"12170:8:28","type":""},{"name":"value8_1","nodeType":"YulTypedName","src":"12180:8:28","type":""}]},{"nodeType":"YulAssignment","src":"12259:18:28","value":{"name":"value7_1","nodeType":"YulIdentifier","src":"12269:8:28"},"variableNames":[{"name":"value7","nodeType":"YulIdentifier","src":"12259:6:28"}]},{"nodeType":"YulAssignment","src":"12286:18:28","value":{"name":"value8_1","nodeType":"YulIdentifier","src":"12296:8:28"},"variableNames":[{"name":"value8","nodeType":"YulIdentifier","src":"12286:6:28"}]}]},"name":"abi_decode_tuple_t_addresst_addresst_int24t_int24t_int128t_uint256t_uint256t_bytes_calldata_ptr","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"11243:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"11254:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"11266:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"11274:6:28","type":""},{"name":"value2","nodeType":"YulTypedName","src":"11282:6:28","type":""},{"name":"value3","nodeType":"YulTypedName","src":"11290:6:28","type":""},{"name":"value4","nodeType":"YulTypedName","src":"11298:6:28","type":""},{"name":"value5","nodeType":"YulTypedName","src":"11306:6:28","type":""},{"name":"value6","nodeType":"YulTypedName","src":"11314:6:28","type":""},{"name":"value7","nodeType":"YulTypedName","src":"11322:6:28","type":""},{"name":"value8","nodeType":"YulTypedName","src":"11330:6:28","type":""}],"src":"11138:1172:28"},{"body":{"nodeType":"YulBlock","src":"12419:352:28","statements":[{"body":{"nodeType":"YulBlock","src":"12465:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"12474:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"12477:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"12467:6:28"},"nodeType":"YulFunctionCall","src":"12467:12:28"},"nodeType":"YulExpressionStatement","src":"12467:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"12440:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"12449:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"12436:3:28"},"nodeType":"YulFunctionCall","src":"12436:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"12461:2:28","type":"","value":"96"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"12432:3:28"},"nodeType":"YulFunctionCall","src":"12432:32:28"},"nodeType":"YulIf","src":"12429:52:28"},{"nodeType":"YulVariableDeclaration","src":"12490:36:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12516:9:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"12503:12:28"},"nodeType":"YulFunctionCall","src":"12503:23:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"12494:5:28","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"12560:5:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"12535:24:28"},"nodeType":"YulFunctionCall","src":"12535:31:28"},"nodeType":"YulExpressionStatement","src":"12535:31:28"},{"nodeType":"YulAssignment","src":"12575:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"12585:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"12575:6:28"}]},{"nodeType":"YulAssignment","src":"12599:42:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12626:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"12637:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"12622:3:28"},"nodeType":"YulFunctionCall","src":"12622:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"12609:12:28"},"nodeType":"YulFunctionCall","src":"12609:32:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"12599:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"12650:47:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12682:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"12693:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"12678:3:28"},"nodeType":"YulFunctionCall","src":"12678:18:28"}],"functionName":{"name":"calldataload","nodeType":"YulIdentifier","src":"12665:12:28"},"nodeType":"YulFunctionCall","src":"12665:32:28"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"12654:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"12731:7:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"12706:24:28"},"nodeType":"YulFunctionCall","src":"12706:33:28"},"nodeType":"YulExpressionStatement","src":"12706:33:28"},{"nodeType":"YulAssignment","src":"12748:17:28","value":{"name":"value_1","nodeType":"YulIdentifier","src":"12758:7:28"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"12748:6:28"}]}]},"name":"abi_decode_tuple_t_addresst_uint256t_address","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"12369:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"12380:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"12392:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"12400:6:28","type":""},{"name":"value2","nodeType":"YulTypedName","src":"12408:6:28","type":""}],"src":"12315:456:28"},{"body":{"nodeType":"YulBlock","src":"12950:236:28","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"12967:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"12978:2:28","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"12960:6:28"},"nodeType":"YulFunctionCall","src":"12960:21:28"},"nodeType":"YulExpressionStatement","src":"12960:21:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13001:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"13012:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"12997:3:28"},"nodeType":"YulFunctionCall","src":"12997:18:28"},{"kind":"number","nodeType":"YulLiteral","src":"13017:2:28","type":"","value":"46"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"12990:6:28"},"nodeType":"YulFunctionCall","src":"12990:30:28"},"nodeType":"YulExpressionStatement","src":"12990:30:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13040:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"13051:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"13036:3:28"},"nodeType":"YulFunctionCall","src":"13036:18:28"},{"hexValue":"496e697469616c697a61626c653a20636f6e747261637420697320616c726561","kind":"string","nodeType":"YulLiteral","src":"13056:34:28","type":"","value":"Initializable: contract is alrea"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13029:6:28"},"nodeType":"YulFunctionCall","src":"13029:62:28"},"nodeType":"YulExpressionStatement","src":"13029:62:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13111:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"13122:2:28","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"13107:3:28"},"nodeType":"YulFunctionCall","src":"13107:18:28"},{"hexValue":"647920696e697469616c697a6564","kind":"string","nodeType":"YulLiteral","src":"13127:16:28","type":"","value":"dy initialized"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13100:6:28"},"nodeType":"YulFunctionCall","src":"13100:44:28"},"nodeType":"YulExpressionStatement","src":"13100:44:28"},{"nodeType":"YulAssignment","src":"13153:27:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13165:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"13176:3:28","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"13161:3:28"},"nodeType":"YulFunctionCall","src":"13161:19:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"13153:4:28"}]}]},"name":"abi_encode_tuple_t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"12927:9:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"12941:4:28","type":""}],"src":"12776:410:28"},{"body":{"nodeType":"YulBlock","src":"13298:87:28","statements":[{"nodeType":"YulAssignment","src":"13308:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13320:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"13331:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"13316:3:28"},"nodeType":"YulFunctionCall","src":"13316:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"13308:4:28"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"13350:9:28"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"13365:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"13373:4:28","type":"","value":"0xff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"13361:3:28"},"nodeType":"YulFunctionCall","src":"13361:17:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13343:6:28"},"nodeType":"YulFunctionCall","src":"13343:36:28"},"nodeType":"YulExpressionStatement","src":"13343:36:28"}]},"name":"abi_encode_tuple_t_rational_1_by_1__to_t_uint8__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"13267:9:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"13278:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"13289:4:28","type":""}],"src":"13191:194:28"},{"body":{"nodeType":"YulBlock","src":"13422:152:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"13439:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"13442:77:28","type":"","value":"35408467139433450592217433187231851964531694900788300625387963629091585785856"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13432:6:28"},"nodeType":"YulFunctionCall","src":"13432:88:28"},"nodeType":"YulExpressionStatement","src":"13432:88:28"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"13536:1:28","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"13539:4:28","type":"","value":"0x41"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13529:6:28"},"nodeType":"YulFunctionCall","src":"13529:15:28"},"nodeType":"YulExpressionStatement","src":"13529:15:28"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"13560:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"13563:4:28","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"13553:6:28"},"nodeType":"YulFunctionCall","src":"13553:15:28"},"nodeType":"YulExpressionStatement","src":"13553:15:28"}]},"name":"panic_error_0x41","nodeType":"YulFunctionDefinition","src":"13390:184:28"},{"body":{"nodeType":"YulBlock","src":"13611:152:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"13628:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"13631:77:28","type":"","value":"35408467139433450592217433187231851964531694900788300625387963629091585785856"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13621:6:28"},"nodeType":"YulFunctionCall","src":"13621:88:28"},"nodeType":"YulExpressionStatement","src":"13621:88:28"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"13725:1:28","type":"","value":"4"},{"kind":"number","nodeType":"YulLiteral","src":"13728:4:28","type":"","value":"0x32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"13718:6:28"},"nodeType":"YulFunctionCall","src":"13718:15:28"},"nodeType":"YulExpressionStatement","src":"13718:15:28"},{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"13749:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"13752:4:28","type":"","value":"0x24"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"13742:6:28"},"nodeType":"YulFunctionCall","src":"13742:15:28"},"nodeType":"YulExpressionStatement","src":"13742:15:28"}]},"name":"panic_error_0x32","nodeType":"YulFunctionDefinition","src":"13579:184:28"},{"body":{"nodeType":"YulBlock","src":"13827:104:28","statements":[{"nodeType":"YulAssignment","src":"13837:22:28","value":{"arguments":[{"name":"offset","nodeType":"YulIdentifier","src":"13852:6:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"13846:5:28"},"nodeType":"YulFunctionCall","src":"13846:13:28"},"variableNames":[{"name":"value","nodeType":"YulIdentifier","src":"13837:5:28"}]},{"body":{"nodeType":"YulBlock","src":"13909:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"13918:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"13921:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"13911:6:28"},"nodeType":"YulFunctionCall","src":"13911:12:28"},"nodeType":"YulExpressionStatement","src":"13911:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"13881:5:28"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"13892:5:28"},{"kind":"number","nodeType":"YulLiteral","src":"13899:6:28","type":"","value":"0xffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"13888:3:28"},"nodeType":"YulFunctionCall","src":"13888:18:28"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"13878:2:28"},"nodeType":"YulFunctionCall","src":"13878:29:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"13871:6:28"},"nodeType":"YulFunctionCall","src":"13871:37:28"},"nodeType":"YulIf","src":"13868:57:28"}]},"name":"abi_decode_uint16_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"offset","nodeType":"YulTypedName","src":"13806:6:28","type":""}],"returnVariables":[{"name":"value","nodeType":"YulTypedName","src":"13817:5:28","type":""}],"src":"13768:163:28"},{"body":{"nodeType":"YulBlock","src":"14093:679:28","statements":[{"body":{"nodeType":"YulBlock","src":"14140:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"14149:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"14152:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"14142:6:28"},"nodeType":"YulFunctionCall","src":"14142:12:28"},"nodeType":"YulExpressionStatement","src":"14142:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"14114:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"14123:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"14110:3:28"},"nodeType":"YulFunctionCall","src":"14110:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"14135:3:28","type":"","value":"192"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"14106:3:28"},"nodeType":"YulFunctionCall","src":"14106:33:28"},"nodeType":"YulIf","src":"14103:53:28"},{"nodeType":"YulVariableDeclaration","src":"14165:29:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14184:9:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"14178:5:28"},"nodeType":"YulFunctionCall","src":"14178:16:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"14169:5:28","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"14228:5:28"}],"functionName":{"name":"validator_revert_address","nodeType":"YulIdentifier","src":"14203:24:28"},"nodeType":"YulFunctionCall","src":"14203:31:28"},"nodeType":"YulExpressionStatement","src":"14203:31:28"},{"nodeType":"YulAssignment","src":"14243:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"14253:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"14243:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"14267:40:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14292:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"14303:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14288:3:28"},"nodeType":"YulFunctionCall","src":"14288:18:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"14282:5:28"},"nodeType":"YulFunctionCall","src":"14282:25:28"},"variables":[{"name":"value_1","nodeType":"YulTypedName","src":"14271:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_1","nodeType":"YulIdentifier","src":"14339:7:28"}],"functionName":{"name":"validator_revert_int24","nodeType":"YulIdentifier","src":"14316:22:28"},"nodeType":"YulFunctionCall","src":"14316:31:28"},"nodeType":"YulExpressionStatement","src":"14316:31:28"},{"nodeType":"YulAssignment","src":"14356:17:28","value":{"name":"value_1","nodeType":"YulIdentifier","src":"14366:7:28"},"variableNames":[{"name":"value1","nodeType":"YulIdentifier","src":"14356:6:28"}]},{"nodeType":"YulAssignment","src":"14382:58:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14425:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"14436:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14421:3:28"},"nodeType":"YulFunctionCall","src":"14421:18:28"}],"functionName":{"name":"abi_decode_uint16_fromMemory","nodeType":"YulIdentifier","src":"14392:28:28"},"nodeType":"YulFunctionCall","src":"14392:48:28"},"variableNames":[{"name":"value2","nodeType":"YulIdentifier","src":"14382:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"14449:40:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14474:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"14485:2:28","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14470:3:28"},"nodeType":"YulFunctionCall","src":"14470:18:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"14464:5:28"},"nodeType":"YulFunctionCall","src":"14464:25:28"},"variables":[{"name":"value_2","nodeType":"YulTypedName","src":"14453:7:28","type":""}]},{"body":{"nodeType":"YulBlock","src":"14541:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"14550:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"14553:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"14543:6:28"},"nodeType":"YulFunctionCall","src":"14543:12:28"},"nodeType":"YulExpressionStatement","src":"14543:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"14511:7:28"},{"arguments":[{"name":"value_2","nodeType":"YulIdentifier","src":"14524:7:28"},{"kind":"number","nodeType":"YulLiteral","src":"14533:4:28","type":"","value":"0xff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"14520:3:28"},"nodeType":"YulFunctionCall","src":"14520:18:28"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"14508:2:28"},"nodeType":"YulFunctionCall","src":"14508:31:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"14501:6:28"},"nodeType":"YulFunctionCall","src":"14501:39:28"},"nodeType":"YulIf","src":"14498:59:28"},{"nodeType":"YulAssignment","src":"14566:17:28","value":{"name":"value_2","nodeType":"YulIdentifier","src":"14576:7:28"},"variableNames":[{"name":"value3","nodeType":"YulIdentifier","src":"14566:6:28"}]},{"nodeType":"YulAssignment","src":"14592:59:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14635:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"14646:3:28","type":"","value":"128"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14631:3:28"},"nodeType":"YulFunctionCall","src":"14631:19:28"}],"functionName":{"name":"abi_decode_uint16_fromMemory","nodeType":"YulIdentifier","src":"14602:28:28"},"nodeType":"YulFunctionCall","src":"14602:49:28"},"variableNames":[{"name":"value4","nodeType":"YulIdentifier","src":"14592:6:28"}]},{"nodeType":"YulVariableDeclaration","src":"14660:41:28","value":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14685:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"14696:3:28","type":"","value":"160"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14681:3:28"},"nodeType":"YulFunctionCall","src":"14681:19:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"14675:5:28"},"nodeType":"YulFunctionCall","src":"14675:26:28"},"variables":[{"name":"value_3","nodeType":"YulTypedName","src":"14664:7:28","type":""}]},{"expression":{"arguments":[{"name":"value_3","nodeType":"YulIdentifier","src":"14732:7:28"}],"functionName":{"name":"validator_revert_bool","nodeType":"YulIdentifier","src":"14710:21:28"},"nodeType":"YulFunctionCall","src":"14710:30:28"},"nodeType":"YulExpressionStatement","src":"14710:30:28"},{"nodeType":"YulAssignment","src":"14749:17:28","value":{"name":"value_3","nodeType":"YulIdentifier","src":"14759:7:28"},"variableNames":[{"name":"value5","nodeType":"YulIdentifier","src":"14749:6:28"}]}]},"name":"abi_decode_tuple_t_uint160t_int24t_uint16t_uint8t_uint16t_bool_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"14019:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"14030:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"14042:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"14050:6:28","type":""},{"name":"value2","nodeType":"YulTypedName","src":"14058:6:28","type":""},{"name":"value3","nodeType":"YulTypedName","src":"14066:6:28","type":""},{"name":"value4","nodeType":"YulTypedName","src":"14074:6:28","type":""},{"name":"value5","nodeType":"YulTypedName","src":"14082:6:28","type":""}],"src":"13936:836:28"},{"body":{"nodeType":"YulBlock","src":"14932:256:28","statements":[{"nodeType":"YulAssignment","src":"14942:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"14954:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"14965:2:28","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"14950:3:28"},"nodeType":"YulFunctionCall","src":"14950:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"14942:4:28"}]},{"nodeType":"YulVariableDeclaration","src":"14977:52:28","value":{"kind":"number","nodeType":"YulLiteral","src":"14987:42:28","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"},"variables":[{"name":"_1","nodeType":"YulTypedName","src":"14981:2:28","type":""}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15045:9:28"},{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"15060:6:28"},{"name":"_1","nodeType":"YulIdentifier","src":"15068:2:28"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"15056:3:28"},"nodeType":"YulFunctionCall","src":"15056:15:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"15038:6:28"},"nodeType":"YulFunctionCall","src":"15038:34:28"},"nodeType":"YulExpressionStatement","src":"15038:34:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15092:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"15103:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"15088:3:28"},"nodeType":"YulFunctionCall","src":"15088:18:28"},{"arguments":[{"name":"value1","nodeType":"YulIdentifier","src":"15112:6:28"},{"name":"_1","nodeType":"YulIdentifier","src":"15120:2:28"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"15108:3:28"},"nodeType":"YulFunctionCall","src":"15108:15:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"15081:6:28"},"nodeType":"YulFunctionCall","src":"15081:43:28"},"nodeType":"YulExpressionStatement","src":"15081:43:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15144:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"15155:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"15140:3:28"},"nodeType":"YulFunctionCall","src":"15140:18:28"},{"arguments":[{"name":"value2","nodeType":"YulIdentifier","src":"15164:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"15172:8:28","type":"","value":"0xffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"15160:3:28"},"nodeType":"YulFunctionCall","src":"15160:21:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"15133:6:28"},"nodeType":"YulFunctionCall","src":"15133:49:28"},"nodeType":"YulExpressionStatement","src":"15133:49:28"}]},"name":"abi_encode_tuple_t_address_t_address_t_uint24__to_t_address_t_address_t_uint24__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"14885:9:28","type":""},{"name":"value2","nodeType":"YulTypedName","src":"14896:6:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"14904:6:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"14912:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"14923:4:28","type":""}],"src":"14777:411:28"},{"body":{"nodeType":"YulBlock","src":"15273:198:28","statements":[{"body":{"nodeType":"YulBlock","src":"15319:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"15328:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"15331:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"15321:6:28"},"nodeType":"YulFunctionCall","src":"15321:12:28"},"nodeType":"YulExpressionStatement","src":"15321:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"15294:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"15303:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"15290:3:28"},"nodeType":"YulFunctionCall","src":"15290:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"15315:2:28","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"15286:3:28"},"nodeType":"YulFunctionCall","src":"15286:32:28"},"nodeType":"YulIf","src":"15283:52:28"},{"nodeType":"YulVariableDeclaration","src":"15344:29:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15363:9:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"15357:5:28"},"nodeType":"YulFunctionCall","src":"15357:16:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"15348:5:28","type":""}]},{"body":{"nodeType":"YulBlock","src":"15425:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"15434:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"15437:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"15427:6:28"},"nodeType":"YulFunctionCall","src":"15427:12:28"},"nodeType":"YulExpressionStatement","src":"15427:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"15395:5:28"},{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"15406:5:28"},{"kind":"number","nodeType":"YulLiteral","src":"15413:8:28","type":"","value":"0xffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"15402:3:28"},"nodeType":"YulFunctionCall","src":"15402:20:28"}],"functionName":{"name":"eq","nodeType":"YulIdentifier","src":"15392:2:28"},"nodeType":"YulFunctionCall","src":"15392:31:28"}],"functionName":{"name":"iszero","nodeType":"YulIdentifier","src":"15385:6:28"},"nodeType":"YulFunctionCall","src":"15385:39:28"},"nodeType":"YulIf","src":"15382:59:28"},{"nodeType":"YulAssignment","src":"15450:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"15460:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"15450:6:28"}]}]},"name":"abi_decode_tuple_t_uint24_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"15239:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"15250:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"15262:6:28","type":""}],"src":"15193:278:28"},{"body":{"nodeType":"YulBlock","src":"15605:168:28","statements":[{"nodeType":"YulAssignment","src":"15615:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15627:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"15638:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"15623:3:28"},"nodeType":"YulFunctionCall","src":"15623:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"15615:4:28"}]},{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15657:9:28"},{"name":"value0","nodeType":"YulIdentifier","src":"15668:6:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"15650:6:28"},"nodeType":"YulFunctionCall","src":"15650:25:28"},"nodeType":"YulExpressionStatement","src":"15650:25:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15695:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"15706:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"15691:3:28"},"nodeType":"YulFunctionCall","src":"15691:18:28"},{"arguments":[{"name":"value1","nodeType":"YulIdentifier","src":"15715:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"15723:42:28","type":"","value":"0xffffffffffffffffffffffffffffffffffffffff"}],"functionName":{"name":"and","nodeType":"YulIdentifier","src":"15711:3:28"},"nodeType":"YulFunctionCall","src":"15711:55:28"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"15684:6:28"},"nodeType":"YulFunctionCall","src":"15684:83:28"},"nodeType":"YulExpressionStatement","src":"15684:83:28"}]},"name":"abi_encode_tuple_t_bytes32_t_address__to_t_bytes32_t_address__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"15566:9:28","type":""},{"name":"value1","nodeType":"YulTypedName","src":"15577:6:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"15585:6:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"15596:4:28","type":""}],"src":"15476:297:28"},{"body":{"nodeType":"YulBlock","src":"15856:167:28","statements":[{"body":{"nodeType":"YulBlock","src":"15902:16:28","statements":[{"expression":{"arguments":[{"kind":"number","nodeType":"YulLiteral","src":"15911:1:28","type":"","value":"0"},{"kind":"number","nodeType":"YulLiteral","src":"15914:1:28","type":"","value":"0"}],"functionName":{"name":"revert","nodeType":"YulIdentifier","src":"15904:6:28"},"nodeType":"YulFunctionCall","src":"15904:12:28"},"nodeType":"YulExpressionStatement","src":"15904:12:28"}]},"condition":{"arguments":[{"arguments":[{"name":"dataEnd","nodeType":"YulIdentifier","src":"15877:7:28"},{"name":"headStart","nodeType":"YulIdentifier","src":"15886:9:28"}],"functionName":{"name":"sub","nodeType":"YulIdentifier","src":"15873:3:28"},"nodeType":"YulFunctionCall","src":"15873:23:28"},{"kind":"number","nodeType":"YulLiteral","src":"15898:2:28","type":"","value":"32"}],"functionName":{"name":"slt","nodeType":"YulIdentifier","src":"15869:3:28"},"nodeType":"YulFunctionCall","src":"15869:32:28"},"nodeType":"YulIf","src":"15866:52:28"},{"nodeType":"YulVariableDeclaration","src":"15927:29:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"15946:9:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"15940:5:28"},"nodeType":"YulFunctionCall","src":"15940:16:28"},"variables":[{"name":"value","nodeType":"YulTypedName","src":"15931:5:28","type":""}]},{"expression":{"arguments":[{"name":"value","nodeType":"YulIdentifier","src":"15987:5:28"}],"functionName":{"name":"validator_revert_bool","nodeType":"YulIdentifier","src":"15965:21:28"},"nodeType":"YulFunctionCall","src":"15965:28:28"},"nodeType":"YulExpressionStatement","src":"15965:28:28"},{"nodeType":"YulAssignment","src":"16002:15:28","value":{"name":"value","nodeType":"YulIdentifier","src":"16012:5:28"},"variableNames":[{"name":"value0","nodeType":"YulIdentifier","src":"16002:6:28"}]}]},"name":"abi_decode_tuple_t_bool_fromMemory","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"15822:9:28","type":""},{"name":"dataEnd","nodeType":"YulTypedName","src":"15833:7:28","type":""}],"returnVariables":[{"name":"value0","nodeType":"YulTypedName","src":"15845:6:28","type":""}],"src":"15778:245:28"},{"body":{"nodeType":"YulBlock","src":"16202:164:28","statements":[{"expression":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"16219:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"16230:2:28","type":"","value":"32"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"16212:6:28"},"nodeType":"YulFunctionCall","src":"16212:21:28"},"nodeType":"YulExpressionStatement","src":"16212:21:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"16253:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"16264:2:28","type":"","value":"32"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"16249:3:28"},"nodeType":"YulFunctionCall","src":"16249:18:28"},{"kind":"number","nodeType":"YulLiteral","src":"16269:2:28","type":"","value":"14"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"16242:6:28"},"nodeType":"YulFunctionCall","src":"16242:30:28"},"nodeType":"YulExpressionStatement","src":"16242:30:28"},{"expression":{"arguments":[{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"16292:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"16303:2:28","type":"","value":"64"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"16288:3:28"},"nodeType":"YulFunctionCall","src":"16288:18:28"},{"hexValue":"4e6f7420617574686f72697a6564","kind":"string","nodeType":"YulLiteral","src":"16308:16:28","type":"","value":"Not authorized"}],"functionName":{"name":"mstore","nodeType":"YulIdentifier","src":"16281:6:28"},"nodeType":"YulFunctionCall","src":"16281:44:28"},"nodeType":"YulExpressionStatement","src":"16281:44:28"},{"nodeType":"YulAssignment","src":"16334:26:28","value":{"arguments":[{"name":"headStart","nodeType":"YulIdentifier","src":"16346:9:28"},{"kind":"number","nodeType":"YulLiteral","src":"16357:2:28","type":"","value":"96"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"16342:3:28"},"nodeType":"YulFunctionCall","src":"16342:18:28"},"variableNames":[{"name":"tail","nodeType":"YulIdentifier","src":"16334:4:28"}]}]},"name":"abi_encode_tuple_t_stringliteral_fac3bac318c0d00994f57b0f2f4c643c313072b71db2302bf4b900309cc50b36__to_t_string_memory_ptr__fromStack_reversed","nodeType":"YulFunctionDefinition","parameters":[{"name":"headStart","nodeType":"YulTypedName","src":"16179:9:28","type":""}],"returnVariables":[{"name":"tail","nodeType":"YulTypedName","src":"16193:4:28","type":""}],"src":"16028:338:28"},{"body":{"nodeType":"YulBlock","src":"16508:150:28","statements":[{"nodeType":"YulVariableDeclaration","src":"16518:27:28","value":{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"16538:6:28"}],"functionName":{"name":"mload","nodeType":"YulIdentifier","src":"16532:5:28"},"nodeType":"YulFunctionCall","src":"16532:13:28"},"variables":[{"name":"length","nodeType":"YulTypedName","src":"16522:6:28","type":""}]},{"expression":{"arguments":[{"arguments":[{"name":"value0","nodeType":"YulIdentifier","src":"16593:6:28"},{"kind":"number","nodeType":"YulLiteral","src":"16601:4:28","type":"","value":"0x20"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"16589:3:28"},"nodeType":"YulFunctionCall","src":"16589:17:28"},{"name":"pos","nodeType":"YulIdentifier","src":"16608:3:28"},{"name":"length","nodeType":"YulIdentifier","src":"16613:6:28"}],"functionName":{"name":"copy_memory_to_memory_with_cleanup","nodeType":"YulIdentifier","src":"16554:34:28"},"nodeType":"YulFunctionCall","src":"16554:66:28"},"nodeType":"YulExpressionStatement","src":"16554:66:28"},{"nodeType":"YulAssignment","src":"16629:23:28","value":{"arguments":[{"name":"pos","nodeType":"YulIdentifier","src":"16640:3:28"},{"name":"length","nodeType":"YulIdentifier","src":"16645:6:28"}],"functionName":{"name":"add","nodeType":"YulIdentifier","src":"16636:3:28"},"nodeType":"YulFunctionCall","src":"16636:16:28"},"variableNames":[{"name":"end","nodeType":"YulIdentifier","src":"16629:3:28"}]}]},"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":"16484:3:28","type":""},{"name":"value0","nodeType":"YulTypedName","src":"16489:6:28","type":""}],"returnVariables":[{"name":"end","nodeType":"YulTypedName","src":"16500:3:28","type":""}],"src":"16371:287:28"}]},"contents":"{\n    { }\n    function validator_revert_address(value)\n    {\n        if iszero(eq(value, and(value, 0xffffffffffffffffffffffffffffffffffffffff))) { revert(0, 0) }\n    }\n    function validator_revert_bool(value)\n    {\n        if iszero(eq(value, iszero(iszero(value)))) { revert(0, 0) }\n    }\n    function abi_decode_bytes_calldata(offset, end) -> arrayPos, length\n    {\n        if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) }\n        length := calldataload(offset)\n        if gt(length, 0xffffffffffffffff) { revert(0, 0) }\n        arrayPos := add(offset, 0x20)\n        if gt(add(add(offset, length), 0x20), end) { revert(0, 0) }\n    }\n    function abi_decode_tuple_t_addresst_addresst_boolt_int256t_uint160t_boolt_bytes_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5, value6, value7\n    {\n        if slt(sub(dataEnd, headStart), 224) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        let value_2 := calldataload(add(headStart, 64))\n        validator_revert_bool(value_2)\n        value2 := value_2\n        value3 := calldataload(add(headStart, 96))\n        let value_3 := calldataload(add(headStart, 128))\n        validator_revert_address(value_3)\n        value4 := value_3\n        let value_4 := calldataload(add(headStart, 160))\n        validator_revert_bool(value_4)\n        value5 := value_4\n        let offset := calldataload(add(headStart, 192))\n        if gt(offset, 0xffffffffffffffff) { revert(0, 0) }\n        let value6_1, value7_1 := abi_decode_bytes_calldata(add(headStart, offset), dataEnd)\n        value6 := value6_1\n        value7 := value7_1\n    }\n    function abi_encode_tuple_t_bytes4_t_uint24_t_uint24__to_t_bytes4_t_uint24_t_uint24__fromStack_reversed(headStart, value2, value1, value0) -> tail\n    {\n        tail := add(headStart, 96)\n        mstore(headStart, and(value0, 0xffffffff00000000000000000000000000000000000000000000000000000000))\n        let _1 := 0xffffff\n        mstore(add(headStart, 32), and(value1, _1))\n        mstore(add(headStart, 64), and(value2, _1))\n    }\n    function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, and(value0, 0xffffffffffffffffffffffffffffffffffffffff))\n    }\n    function abi_encode_tuple_t_bytes32__to_t_bytes32__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, value0)\n    }\n    function abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_uint256t_uint256t_bytes_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5, value6, value7\n    {\n        if slt(sub(dataEnd, headStart), 224) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        value2 := calldataload(add(headStart, 64))\n        value3 := calldataload(add(headStart, 96))\n        value4 := calldataload(add(headStart, 128))\n        value5 := calldataload(add(headStart, 160))\n        let offset := calldataload(add(headStart, 192))\n        if gt(offset, 0xffffffffffffffff) { revert(0, 0) }\n        let value6_1, value7_1 := abi_decode_bytes_calldata(add(headStart, offset), dataEnd)\n        value6 := value6_1\n        value7 := value7_1\n    }\n    function abi_encode_tuple_t_bytes4__to_t_bytes4__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, and(value0, 0xffffffff00000000000000000000000000000000000000000000000000000000))\n    }\n    function abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, value0)\n    }\n    function abi_decode_tuple_t_addresst_address(headStart, dataEnd) -> value0, value1\n    {\n        if slt(sub(dataEnd, headStart), 64) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n    }\n    function validator_revert_int24(value)\n    {\n        if iszero(eq(value, signextend(2, value))) { revert(0, 0) }\n    }\n    function abi_decode_int128(offset) -> value\n    {\n        value := calldataload(offset)\n        if iszero(eq(value, signextend(15, value))) { revert(0, 0) }\n    }\n    function abi_decode_tuple_t_addresst_addresst_int24t_int24t_int128t_bytes_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5, value6\n    {\n        if slt(sub(dataEnd, headStart), 192) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        let value_2 := calldataload(add(headStart, 64))\n        validator_revert_int24(value_2)\n        value2 := value_2\n        let value_3 := calldataload(add(headStart, 96))\n        validator_revert_int24(value_3)\n        value3 := value_3\n        value4 := abi_decode_int128(add(headStart, 128))\n        let offset := calldataload(add(headStart, 160))\n        if gt(offset, 0xffffffffffffffff) { revert(0, 0) }\n        let value5_1, value6_1 := abi_decode_bytes_calldata(add(headStart, offset), dataEnd)\n        value5 := value5_1\n        value6 := value6_1\n    }\n    function abi_encode_tuple_t_bytes4_t_uint24__to_t_bytes4_t_uint24__fromStack_reversed(headStart, value1, value0) -> tail\n    {\n        tail := add(headStart, 64)\n        mstore(headStart, and(value0, 0xffffffff00000000000000000000000000000000000000000000000000000000))\n        mstore(add(headStart, 32), and(value1, 0xffffff))\n    }\n    function abi_decode_tuple_t_addresst_uint160(headStart, dataEnd) -> value0, value1\n    {\n        if slt(sub(dataEnd, headStart), 64) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n    }\n    function abi_encode_tuple_t_uint8__to_t_uint8__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, and(value0, 0xff))\n    }\n    function abi_decode_tuple_t_addresst_uint160t_int24(headStart, dataEnd) -> value0, value1, value2\n    {\n        if slt(sub(dataEnd, headStart), 96) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        let value_2 := calldataload(add(headStart, 64))\n        validator_revert_int24(value_2)\n        value2 := value_2\n    }\n    function abi_decode_tuple_t_addresst_addresst_uint256t_uint256t_bytes_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5\n    {\n        if slt(sub(dataEnd, headStart), 160) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        value2 := calldataload(add(headStart, 64))\n        value3 := calldataload(add(headStart, 96))\n        let offset := calldataload(add(headStart, 128))\n        if gt(offset, 0xffffffffffffffff) { revert(0, 0) }\n        let value4_1, value5_1 := abi_decode_bytes_calldata(add(headStart, offset), dataEnd)\n        value4 := value4_1\n        value5 := value5_1\n    }\n    function abi_decode_tuple_t_addresst_addresst_boolt_int256t_uint160t_int256t_int256t_bytes_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5, value6, value7, value8\n    {\n        if slt(sub(dataEnd, headStart), 256) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        let value_2 := calldataload(add(headStart, 64))\n        validator_revert_bool(value_2)\n        value2 := value_2\n        value3 := calldataload(add(headStart, 96))\n        let value_3 := calldataload(add(headStart, 128))\n        validator_revert_address(value_3)\n        value4 := value_3\n        value5 := calldataload(add(headStart, 160))\n        value6 := calldataload(add(headStart, 192))\n        let offset := calldataload(add(headStart, 224))\n        if gt(offset, 0xffffffffffffffff) { revert(0, 0) }\n        let value7_1, value8_1 := abi_decode_bytes_calldata(add(headStart, offset), dataEnd)\n        value7 := value7_1\n        value8 := value8_1\n    }\n    function abi_decode_tuple_t_uint256t_uint256(headStart, dataEnd) -> value0, value1\n    {\n        if slt(sub(dataEnd, headStart), 64) { revert(0, 0) }\n        value0 := calldataload(headStart)\n        value1 := calldataload(add(headStart, 32))\n    }\n    function copy_memory_to_memory_with_cleanup(src, dst, length)\n    {\n        let i := 0\n        for { } lt(i, length) { i := add(i, 32) }\n        {\n            mstore(add(dst, i), mload(add(src, i)))\n        }\n        mstore(add(dst, length), 0)\n    }\n    function abi_encode_tuple_t_array$_t_string_memory_ptr_$dyn_memory_ptr__to_t_array$_t_string_memory_ptr_$dyn_memory_ptr__fromStack_reversed(headStart, value0) -> tail\n    {\n        let _1 := 32\n        let tail_1 := add(headStart, _1)\n        mstore(headStart, _1)\n        let pos := tail_1\n        let length := mload(value0)\n        mstore(tail_1, length)\n        pos := add(headStart, 64)\n        let tail_2 := add(add(headStart, shl(5, length)), 64)\n        let srcPtr := add(value0, _1)\n        let i := 0\n        for { } lt(i, length) { i := add(i, 1) }\n        {\n            mstore(pos, add(sub(tail_2, headStart), 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0))\n            let _2 := mload(srcPtr)\n            let length_1 := mload(_2)\n            mstore(tail_2, length_1)\n            copy_memory_to_memory_with_cleanup(add(_2, _1), add(tail_2, _1), length_1)\n            tail_2 := add(add(tail_2, and(add(length_1, 31), 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0)), _1)\n            srcPtr := add(srcPtr, _1)\n            pos := add(pos, _1)\n        }\n        tail := tail_2\n    }\n    function abi_decode_tuple_t_address(headStart, dataEnd) -> value0\n    {\n        if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n    }\n    function abi_decode_tuple_t_addresst_addresst_int24t_int24t_int128t_uint256t_uint256t_bytes_calldata_ptr(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5, value6, value7, value8\n    {\n        if slt(sub(dataEnd, headStart), 256) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := calldataload(add(headStart, 32))\n        validator_revert_address(value_1)\n        value1 := value_1\n        let value_2 := calldataload(add(headStart, 64))\n        validator_revert_int24(value_2)\n        value2 := value_2\n        let value_3 := calldataload(add(headStart, 96))\n        validator_revert_int24(value_3)\n        value3 := value_3\n        value4 := abi_decode_int128(add(headStart, 128))\n        value5 := calldataload(add(headStart, 160))\n        value6 := calldataload(add(headStart, 192))\n        let offset := calldataload(add(headStart, 224))\n        if gt(offset, 0xffffffffffffffff) { revert(0, 0) }\n        let value7_1, value8_1 := abi_decode_bytes_calldata(add(headStart, offset), dataEnd)\n        value7 := value7_1\n        value8 := value8_1\n    }\n    function abi_decode_tuple_t_addresst_uint256t_address(headStart, dataEnd) -> value0, value1, value2\n    {\n        if slt(sub(dataEnd, headStart), 96) { revert(0, 0) }\n        let value := calldataload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        value1 := calldataload(add(headStart, 32))\n        let value_1 := calldataload(add(headStart, 64))\n        validator_revert_address(value_1)\n        value2 := value_1\n    }\n    function abi_encode_tuple_t_stringliteral_7a2a4e26842155ea933fe6eb6e3137eb5a296dcdf55721c552be7b4c3cc23759__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n    {\n        mstore(headStart, 32)\n        mstore(add(headStart, 32), 46)\n        mstore(add(headStart, 64), \"Initializable: contract is alrea\")\n        mstore(add(headStart, 96), \"dy initialized\")\n        tail := add(headStart, 128)\n    }\n    function abi_encode_tuple_t_rational_1_by_1__to_t_uint8__fromStack_reversed(headStart, value0) -> tail\n    {\n        tail := add(headStart, 32)\n        mstore(headStart, and(value0, 0xff))\n    }\n    function panic_error_0x41()\n    {\n        mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n        mstore(4, 0x41)\n        revert(0, 0x24)\n    }\n    function panic_error_0x32()\n    {\n        mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n        mstore(4, 0x32)\n        revert(0, 0x24)\n    }\n    function abi_decode_uint16_fromMemory(offset) -> value\n    {\n        value := mload(offset)\n        if iszero(eq(value, and(value, 0xffff))) { revert(0, 0) }\n    }\n    function abi_decode_tuple_t_uint160t_int24t_uint16t_uint8t_uint16t_bool_fromMemory(headStart, dataEnd) -> value0, value1, value2, value3, value4, value5\n    {\n        if slt(sub(dataEnd, headStart), 192) { revert(0, 0) }\n        let value := mload(headStart)\n        validator_revert_address(value)\n        value0 := value\n        let value_1 := mload(add(headStart, 32))\n        validator_revert_int24(value_1)\n        value1 := value_1\n        value2 := abi_decode_uint16_fromMemory(add(headStart, 64))\n        let value_2 := mload(add(headStart, 96))\n        if iszero(eq(value_2, and(value_2, 0xff))) { revert(0, 0) }\n        value3 := value_2\n        value4 := abi_decode_uint16_fromMemory(add(headStart, 128))\n        let value_3 := mload(add(headStart, 160))\n        validator_revert_bool(value_3)\n        value5 := value_3\n    }\n    function abi_encode_tuple_t_address_t_address_t_uint24__to_t_address_t_address_t_uint24__fromStack_reversed(headStart, value2, value1, value0) -> tail\n    {\n        tail := add(headStart, 96)\n        let _1 := 0xffffffffffffffffffffffffffffffffffffffff\n        mstore(headStart, and(value0, _1))\n        mstore(add(headStart, 32), and(value1, _1))\n        mstore(add(headStart, 64), and(value2, 0xffffff))\n    }\n    function abi_decode_tuple_t_uint24_fromMemory(headStart, dataEnd) -> value0\n    {\n        if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n        let value := mload(headStart)\n        if iszero(eq(value, and(value, 0xffffff))) { revert(0, 0) }\n        value0 := value\n    }\n    function abi_encode_tuple_t_bytes32_t_address__to_t_bytes32_t_address__fromStack_reversed(headStart, value1, value0) -> tail\n    {\n        tail := add(headStart, 64)\n        mstore(headStart, value0)\n        mstore(add(headStart, 32), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))\n    }\n    function abi_decode_tuple_t_bool_fromMemory(headStart, dataEnd) -> value0\n    {\n        if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n        let value := mload(headStart)\n        validator_revert_bool(value)\n        value0 := value\n    }\n    function abi_encode_tuple_t_stringliteral_fac3bac318c0d00994f57b0f2f4c643c313072b71db2302bf4b900309cc50b36__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n    {\n        mstore(headStart, 32)\n        mstore(add(headStart, 32), 14)\n        mstore(add(headStart, 64), \"Not authorized\")\n        tail := add(headStart, 96)\n    }\n    function abi_encode_tuple_packed_t_bytes_memory_ptr__to_t_bytes_memory_ptr__nonPadded_inplace_fromStack_reversed(pos, value0) -> end\n    {\n        let length := mload(value0)\n        copy_memory_to_memory_with_cleanup(add(value0, 0x20), pos, length)\n        end := add(pos, length)\n    }\n}","id":28,"language":"Yul","name":"#utility.yul"}],"immutableReferences":{"81":[{"length":32,"start":890},{"length":32,"start":3557}],"84":[{"length":32,"start":948},{"length":32,"start":1561}],"2336":[{"length":32,"start":2271},{"length":32,"start":2913},{"length":32,"start":3139}]},"linkReferences":{},"object":"608060405234801561001057600080fd5b506004361061016c5760003560e01c80638de0a8ee116100cd578063c45a015511610081578063e2a1bd5911610066578063e2a1bd59146103af578063e72c652d146103d6578063f20cdc1a146103e957600080fd5b8063c45a015514610375578063d68520101461039c57600080fd5b8063aa6b14bb116100b2578063aa6b14bb1461033a578063b6f78cc91461034d578063c3da79781461036257600080fd5b80638de0a8ee146103145780639cb5a9631461032757600080fd5b8063485cc95511610124578063636fd80411610109578063636fd804146102df578063689ea370146102f257806382dd65221461030157600080fd5b8063485cc9551461027b5780635e2411b21461029057600080fd5b806331b25d1a1161015557806331b25d1a146101fa578063343d37ff1461022f57806336badf631461027357600080fd5b8063029c1cb71461017157806316f0115b146101cd575b600080fd5b61018461017f3660046110ab565b610426565b604080517fffffffff00000000000000000000000000000000000000000000000000000000909416845262ffffff92831660208501529116908201526060015b60405180910390f35b6101d5610491565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101c4565b6102217f8e8000aba5b365c0be9685da1153f7f096e76d1ecfb42c050ae1e387aa65b4f581565b6040519081526020016101c4565b61024261023d366004611155565b6104a0565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020016101c4565b610221604b81565b61028e6102893660046111c4565b6104d8565b005b6102a361029e366004611223565b6106e1565b604080517fffffffff00000000000000000000000000000000000000000000000000000000909316835262ffffff9091166020830152016101c4565b6102426102ed3660046111c4565b61071d565b604051600181526020016101c4565b61024261030f3660046112c2565b610759565b61024261032236600461130d565b61078c565b610242610335366004611389565b6107c2565b610242610348366004611437565b6107fb565b61035561082d565b6040516101c4919061147d565b61028e610370366004611533565b6108b2565b6101d57f000000000000000000000000000000000000000000000000000000000000000081565b6102426103aa366004611557565b6109ca565b6101d57f000000000000000000000000000000000000000000000000000000000000000081565b61028e6103e43660046115bf565b610a03565b7fb52f6c388bc01f052495924fd2facf0f81baeac5975b25912d0279719977d3005473ffffffffffffffffffffffffffffffffffffffff166101d5565b6000806000610433610a16565b600061043d610a84565b5092505050600061045a8d610450610b10565b8461ffff16610b24565b7f029c1cb7000000000000000000000000000000000000000000000000000000009e909d5060009c509a5050505050505050505050565b600061049b610b10565b905090565b60006104aa610a16565b507f343d37ff0000000000000000000000000000000000000000000000000000000098975050505050505050565b600054610100900460ff16158080156104f85750600054600160ff909116105b806105125750303b158015610512575060005460ff166001145b6105a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055801561060157600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610670576040517f504d572800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61067982610c1e565b80156106dc57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b6000806106ec610a16565b507f5e2411b20000000000000000000000000000000000000000000000000000000098600098509650505050505050565b6000610727610a16565b6107316001610ce5565b507f636fd8040000000000000000000000000000000000000000000000000000000092915050565b6000610763610a16565b507f82dd6522000000000000000000000000000000000000000000000000000000009392505050565b6000610796610a16565b507f8de0a8ee000000000000000000000000000000000000000000000000000000009695505050505050565b60006107cc610a16565b507f9cb5a963000000000000000000000000000000000000000000000000000000009998505050505050505050565b6000610805610a16565b507faa6b14bb0000000000000000000000000000000000000000000000000000000092915050565b604080516001808252818301909252606091816020015b60608152602001906001900390816108445790505090506040518060400160405280601381526020017f46656520446973636f756e7420506c7567696e00000000000000000000000000815250816000815181106108a4576108a46115f6565b602002602001018190525090565b6108ba610d91565b60405173ffffffffffffffffffffffffffffffffffffffff8216602482015261097d907f000000000000000000000000000000000000000000000000000000000000000090604401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fc3da797800000000000000000000000000000000000000000000000000000000179052610ecb565b5060405173ffffffffffffffffffffffffffffffffffffffff821681527f3b1f0d57f07483280d598ef402c5b2b96be1a42e65b21992bdafea3476b653279060200160405180910390a150565b60006109d4610a16565b507fd6852010000000000000000000000000000000000000000000000000000000009998505050505050505050565b610a0b610d91565b6106dc838284610f86565b610a1e610b10565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a82576040517f4b60273500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600080600080610a92610b10565b73ffffffffffffffffffffffffffffffffffffffff1663e76c01e46040518163ffffffff1660e01b815260040160c060405180830381865afa158015610adc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b009190611637565b5093989297509095509350915050565b6000806040516020604b82303c5192915050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015262ffffff821660648201526000908190610bff907f000000000000000000000000000000000000000000000000000000000000000090608401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1018860c00000000000000000000000000000000000000000000000000000000179052610ecb565b905080806020019051810190610c1591906116bc565b95945050505050565b60405173ffffffffffffffffffffffffffffffffffffffff82166024820152610ce1907f000000000000000000000000000000000000000000000000000000000000000090604401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9dd77e700000000000000000000000000000000000000000000000000000000179052610ecb565b5050565b6000610cef610a84565b93505050508160ff168160ff1614610ce157610d09610b10565b6040517fbca57f8100000000000000000000000000000000000000000000000000000000815260ff8416600482015273ffffffffffffffffffffffffffffffffffffffff919091169063bca57f8190602401600060405180830381600087803b158015610d7557600080fd5b505af1158015610d89573d6000803e3d6000fd5b505050505050565b6040517fe8ae2b690000000000000000000000000000000000000000000000000000000081527f8e8000aba5b365c0be9685da1153f7f096e76d1ecfb42c050ae1e387aa65b4f560048201523360248201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063e8ae2b6990604401602060405180830381865afa158015610e41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6591906116e1565b610a82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f4e6f7420617574686f72697a6564000000000000000000000000000000000000604482015260640161059a565b606060008373ffffffffffffffffffffffffffffffffffffffff1683604051610ef491906116fe565b600060405180830381855af49150503d8060008114610f2f576040519150601f19603f3d011682016040523d82523d6000602084013e610f34565b606091505b509250905080610f7f57815115610f4d57815182602001fd5b6040517f7047373200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5092915050565b60006040517fa9059cbb0000000000000000000000000000000000000000000000000000000060005273ffffffffffffffffffffffffffffffffffffffff841660045282602452602060006044600080895af19150813d1560203d146001600051141617169150806040525080611029576040517fe465903e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461105157600080fd5b50565b801515811461105157600080fd5b60008083601f84011261107457600080fd5b50813567ffffffffffffffff81111561108c57600080fd5b6020830191508360208285010111156110a457600080fd5b9250929050565b60008060008060008060008060e0898b0312156110c757600080fd5b88356110d28161102f565b975060208901356110e28161102f565b965060408901356110f281611054565b95506060890135945060808901356111098161102f565b935060a089013561111981611054565b925060c089013567ffffffffffffffff81111561113557600080fd5b6111418b828c01611062565b999c989b5096995094979396929594505050565b60008060008060008060008060e0898b03121561117157600080fd5b883561117c8161102f565b9750602089013561118c8161102f565b965060408901359550606089013594506080890135935060a0890135925060c089013567ffffffffffffffff81111561113557600080fd5b600080604083850312156111d757600080fd5b82356111e28161102f565b915060208301356111f28161102f565b809150509250929050565b8060020b811461105157600080fd5b8035600f81900b811461121e57600080fd5b919050565b600080600080600080600060c0888a03121561123e57600080fd5b87356112498161102f565b965060208801356112598161102f565b95506040880135611269816111fd565b94506060880135611279816111fd565b93506112876080890161120c565b925060a088013567ffffffffffffffff8111156112a357600080fd5b6112af8a828b01611062565b989b979a50959850939692959293505050565b6000806000606084860312156112d757600080fd5b83356112e28161102f565b925060208401356112f28161102f565b91506040840135611302816111fd565b809150509250925092565b60008060008060008060a0878903121561132657600080fd5b86356113318161102f565b955060208701356113418161102f565b94506040870135935060608701359250608087013567ffffffffffffffff81111561136b57600080fd5b61137789828a01611062565b979a9699509497509295939492505050565b60008060008060008060008060006101008a8c0312156113a857600080fd5b89356113b38161102f565b985060208a01356113c38161102f565b975060408a01356113d381611054565b965060608a0135955060808a01356113ea8161102f565b945060a08a0135935060c08a0135925060e08a013567ffffffffffffffff81111561141457600080fd5b6114208c828d01611062565b915080935050809150509295985092959850929598565b6000806040838503121561144a57600080fd5b50508035926020909101359150565b60005b8381101561147457818101518382015260200161145c565b50506000910152565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015611526577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0888603018452815180518087526114e9818989018a8501611459565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016959095018601945092850192908501906001016114a4565b5092979650505050505050565b60006020828403121561154557600080fd5b81356115508161102f565b9392505050565b60008060008060008060008060006101008a8c03121561157657600080fd5b89356115818161102f565b985060208a01356115918161102f565b975060408a01356115a1816111fd565b965060608a01356115b1816111fd565b95506113ea60808b0161120c565b6000806000606084860312156115d457600080fd5b83356115df8161102f565b92506020840135915060408401356113028161102f565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b805161ffff8116811461121e57600080fd5b60008060008060008060c0878903121561165057600080fd5b865161165b8161102f565b602088015190965061166c816111fd565b945061167a60408801611625565b9350606087015160ff8116811461169057600080fd5b925061169e60808801611625565b915060a08701516116ae81611054565b809150509295509295509295565b6000602082840312156116ce57600080fd5b815162ffffff8116811461155057600080fd5b6000602082840312156116f357600080fd5b815161155081611054565b60008251611710818460208701611459565b919091019291505056fea164736f6c6343000814000a","opcodes":"PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x16C JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x8DE0A8EE GT PUSH2 0xCD JUMPI DUP1 PUSH4 0xC45A0155 GT PUSH2 0x81 JUMPI DUP1 PUSH4 0xE2A1BD59 GT PUSH2 0x66 JUMPI DUP1 PUSH4 0xE2A1BD59 EQ PUSH2 0x3AF JUMPI DUP1 PUSH4 0xE72C652D EQ PUSH2 0x3D6 JUMPI DUP1 PUSH4 0xF20CDC1A EQ PUSH2 0x3E9 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xC45A0155 EQ PUSH2 0x375 JUMPI DUP1 PUSH4 0xD6852010 EQ PUSH2 0x39C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0xAA6B14BB GT PUSH2 0xB2 JUMPI DUP1 PUSH4 0xAA6B14BB EQ PUSH2 0x33A JUMPI DUP1 PUSH4 0xB6F78CC9 EQ PUSH2 0x34D JUMPI DUP1 PUSH4 0xC3DA7978 EQ PUSH2 0x362 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x8DE0A8EE EQ PUSH2 0x314 JUMPI DUP1 PUSH4 0x9CB5A963 EQ PUSH2 0x327 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x485CC955 GT PUSH2 0x124 JUMPI DUP1 PUSH4 0x636FD804 GT PUSH2 0x109 JUMPI DUP1 PUSH4 0x636FD804 EQ PUSH2 0x2DF JUMPI DUP1 PUSH4 0x689EA370 EQ PUSH2 0x2F2 JUMPI DUP1 PUSH4 0x82DD6522 EQ PUSH2 0x301 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x485CC955 EQ PUSH2 0x27B JUMPI DUP1 PUSH4 0x5E2411B2 EQ PUSH2 0x290 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x31B25D1A GT PUSH2 0x155 JUMPI DUP1 PUSH4 0x31B25D1A EQ PUSH2 0x1FA JUMPI DUP1 PUSH4 0x343D37FF EQ PUSH2 0x22F JUMPI DUP1 PUSH4 0x36BADF63 EQ PUSH2 0x273 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 PUSH4 0x29C1CB7 EQ PUSH2 0x171 JUMPI DUP1 PUSH4 0x16F0115B EQ PUSH2 0x1CD JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x184 PUSH2 0x17F CALLDATASIZE PUSH1 0x4 PUSH2 0x10AB JUMP JUMPDEST PUSH2 0x426 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 SWAP1 SWAP5 AND DUP5 MSTORE PUSH3 0xFFFFFF SWAP3 DUP4 AND PUSH1 0x20 DUP6 ADD MSTORE SWAP2 AND SWAP1 DUP3 ADD MSTORE PUSH1 0x60 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x1D5 PUSH2 0x491 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x1C4 JUMP JUMPDEST PUSH2 0x221 PUSH32 0x8E8000ABA5B365C0BE9685DA1153F7F096E76D1ECFB42C050AE1E387AA65B4F5 DUP2 JUMP JUMPDEST PUSH1 0x40 MLOAD SWAP1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x1C4 JUMP JUMPDEST PUSH2 0x242 PUSH2 0x23D CALLDATASIZE PUSH1 0x4 PUSH2 0x1155 JUMP JUMPDEST PUSH2 0x4A0 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 SWAP1 SWAP2 AND DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x1C4 JUMP JUMPDEST PUSH2 0x221 PUSH1 0x4B DUP2 JUMP JUMPDEST PUSH2 0x28E PUSH2 0x289 CALLDATASIZE PUSH1 0x4 PUSH2 0x11C4 JUMP JUMPDEST PUSH2 0x4D8 JUMP JUMPDEST STOP JUMPDEST PUSH2 0x2A3 PUSH2 0x29E CALLDATASIZE PUSH1 0x4 PUSH2 0x1223 JUMP JUMPDEST PUSH2 0x6E1 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 SWAP1 SWAP4 AND DUP4 MSTORE PUSH3 0xFFFFFF SWAP1 SWAP2 AND PUSH1 0x20 DUP4 ADD MSTORE ADD PUSH2 0x1C4 JUMP JUMPDEST PUSH2 0x242 PUSH2 0x2ED CALLDATASIZE PUSH1 0x4 PUSH2 0x11C4 JUMP JUMPDEST PUSH2 0x71D JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH1 0x1 DUP2 MSTORE PUSH1 0x20 ADD PUSH2 0x1C4 JUMP JUMPDEST PUSH2 0x242 PUSH2 0x30F CALLDATASIZE PUSH1 0x4 PUSH2 0x12C2 JUMP JUMPDEST PUSH2 0x759 JUMP JUMPDEST PUSH2 0x242 PUSH2 0x322 CALLDATASIZE PUSH1 0x4 PUSH2 0x130D JUMP JUMPDEST PUSH2 0x78C JUMP JUMPDEST PUSH2 0x242 PUSH2 0x335 CALLDATASIZE PUSH1 0x4 PUSH2 0x1389 JUMP JUMPDEST PUSH2 0x7C2 JUMP JUMPDEST PUSH2 0x242 PUSH2 0x348 CALLDATASIZE PUSH1 0x4 PUSH2 0x1437 JUMP JUMPDEST PUSH2 0x7FB JUMP JUMPDEST PUSH2 0x355 PUSH2 0x82D JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x1C4 SWAP2 SWAP1 PUSH2 0x147D JUMP JUMPDEST PUSH2 0x28E PUSH2 0x370 CALLDATASIZE PUSH1 0x4 PUSH2 0x1533 JUMP JUMPDEST PUSH2 0x8B2 JUMP JUMPDEST PUSH2 0x1D5 PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH2 0x242 PUSH2 0x3AA CALLDATASIZE PUSH1 0x4 PUSH2 0x1557 JUMP JUMPDEST PUSH2 0x9CA JUMP JUMPDEST PUSH2 0x1D5 PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH2 0x28E PUSH2 0x3E4 CALLDATASIZE PUSH1 0x4 PUSH2 0x15BF JUMP JUMPDEST PUSH2 0xA03 JUMP JUMPDEST PUSH32 0xB52F6C388BC01F052495924FD2FACF0F81BAEAC5975B25912D0279719977D300 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH2 0x1D5 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x433 PUSH2 0xA16 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x43D PUSH2 0xA84 JUMP JUMPDEST POP SWAP3 POP POP POP PUSH1 0x0 PUSH2 0x45A DUP14 PUSH2 0x450 PUSH2 0xB10 JUMP JUMPDEST DUP5 PUSH2 0xFFFF AND PUSH2 0xB24 JUMP JUMPDEST PUSH32 0x29C1CB700000000000000000000000000000000000000000000000000000000 SWAP15 SWAP1 SWAP14 POP PUSH1 0x0 SWAP13 POP SWAP11 POP POP POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x49B PUSH2 0xB10 JUMP JUMPDEST SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4AA PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0x343D37FF00000000000000000000000000000000000000000000000000000000 SWAP9 SWAP8 POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 SLOAD PUSH2 0x100 SWAP1 DIV PUSH1 0xFF AND ISZERO DUP1 DUP1 ISZERO PUSH2 0x4F8 JUMPI POP PUSH1 0x0 SLOAD PUSH1 0x1 PUSH1 0xFF SWAP1 SWAP2 AND LT JUMPDEST DUP1 PUSH2 0x512 JUMPI POP ADDRESS EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x512 JUMPI POP PUSH1 0x0 SLOAD PUSH1 0xFF AND PUSH1 0x1 EQ JUMPDEST PUSH2 0x5A3 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0x2E PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x496E697469616C697A61626C653A20636F6E747261637420697320616C726561 PUSH1 0x44 DUP3 ADD MSTORE PUSH32 0x647920696E697469616C697A6564000000000000000000000000000000000000 PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x84 ADD JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH1 0x0 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00 AND PUSH1 0x1 OR SWAP1 SSTORE DUP1 ISZERO PUSH2 0x601 JUMPI PUSH1 0x0 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00FF AND PUSH2 0x100 OR SWAP1 SSTORE JUMPDEST CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH32 0x0 AND EQ PUSH2 0x670 JUMPI PUSH1 0x40 MLOAD PUSH32 0x504D572800000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST PUSH2 0x679 DUP3 PUSH2 0xC1E JUMP JUMPDEST DUP1 ISZERO PUSH2 0x6DC JUMPI PUSH1 0x0 DUP1 SLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00FF AND SWAP1 SSTORE PUSH1 0x40 MLOAD PUSH1 0x1 DUP2 MSTORE PUSH32 0x7F26B83FF96E1F2B6A682F133852F6798A09C465DA95921460CEFB3847402498 SWAP1 PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH2 0x6EC PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0x5E2411B200000000000000000000000000000000000000000000000000000000 SWAP9 PUSH1 0x0 SWAP9 POP SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x727 PUSH2 0xA16 JUMP JUMPDEST PUSH2 0x731 PUSH1 0x1 PUSH2 0xCE5 JUMP JUMPDEST POP PUSH32 0x636FD80400000000000000000000000000000000000000000000000000000000 SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x763 PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0x82DD652200000000000000000000000000000000000000000000000000000000 SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x796 PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0x8DE0A8EE00000000000000000000000000000000000000000000000000000000 SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x7CC PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0x9CB5A96300000000000000000000000000000000000000000000000000000000 SWAP10 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x805 PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0xAA6B14BB00000000000000000000000000000000000000000000000000000000 SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x1 DUP1 DUP3 MSTORE DUP2 DUP4 ADD SWAP1 SWAP3 MSTORE PUSH1 0x60 SWAP2 DUP2 PUSH1 0x20 ADD JUMPDEST PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 SWAP1 SUB SWAP1 DUP2 PUSH2 0x844 JUMPI SWAP1 POP POP SWAP1 POP PUSH1 0x40 MLOAD DUP1 PUSH1 0x40 ADD PUSH1 0x40 MSTORE DUP1 PUSH1 0x13 DUP2 MSTORE PUSH1 0x20 ADD PUSH32 0x46656520446973636F756E7420506C7567696E00000000000000000000000000 DUP2 MSTORE POP DUP2 PUSH1 0x0 DUP2 MLOAD DUP2 LT PUSH2 0x8A4 JUMPI PUSH2 0x8A4 PUSH2 0x15F6 JUMP JUMPDEST PUSH1 0x20 MUL PUSH1 0x20 ADD ADD DUP2 SWAP1 MSTORE POP SWAP1 JUMP JUMPDEST PUSH2 0x8BA PUSH2 0xD91 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND PUSH1 0x24 DUP3 ADD MSTORE PUSH2 0x97D SWAP1 PUSH32 0x0 SWAP1 PUSH1 0x44 ADD PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 DUP2 DUP5 SUB ADD DUP2 MSTORE SWAP2 SWAP1 MSTORE PUSH1 0x20 DUP2 ADD DUP1 MLOAD PUSH28 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0xC3DA797800000000000000000000000000000000000000000000000000000000 OR SWAP1 MSTORE PUSH2 0xECB JUMP JUMPDEST POP PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND DUP2 MSTORE PUSH32 0x3B1F0D57F07483280D598EF402C5B2B96BE1A42E65B21992BDAFEA3476B65327 SWAP1 PUSH1 0x20 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x9D4 PUSH2 0xA16 JUMP JUMPDEST POP PUSH32 0xD685201000000000000000000000000000000000000000000000000000000000 SWAP10 SWAP9 POP POP POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0xA0B PUSH2 0xD91 JUMP JUMPDEST PUSH2 0x6DC DUP4 DUP3 DUP5 PUSH2 0xF86 JUMP JUMPDEST PUSH2 0xA1E PUSH2 0xB10 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND EQ PUSH2 0xA82 JUMPI PUSH1 0x40 MLOAD PUSH32 0x4B60273500000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH2 0xA92 PUSH2 0xB10 JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0xE76C01E4 PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0xC0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xADC JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xB00 SWAP2 SWAP1 PUSH2 0x1637 JUMP JUMPDEST POP SWAP4 SWAP9 SWAP3 SWAP8 POP SWAP1 SWAP6 POP SWAP4 POP SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 MLOAD PUSH1 0x20 PUSH1 0x4B DUP3 ADDRESS EXTCODECOPY MLOAD SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP1 DUP6 AND PUSH1 0x24 DUP4 ADD MSTORE DUP4 AND PUSH1 0x44 DUP3 ADD MSTORE PUSH3 0xFFFFFF DUP3 AND PUSH1 0x64 DUP3 ADD MSTORE PUSH1 0x0 SWAP1 DUP2 SWAP1 PUSH2 0xBFF SWAP1 PUSH32 0x0 SWAP1 PUSH1 0x84 ADD PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 DUP2 DUP5 SUB ADD DUP2 MSTORE SWAP2 SWAP1 MSTORE PUSH1 0x20 DUP2 ADD DUP1 MLOAD PUSH28 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0x1018860C00000000000000000000000000000000000000000000000000000000 OR SWAP1 MSTORE PUSH2 0xECB JUMP JUMPDEST SWAP1 POP DUP1 DUP1 PUSH1 0x20 ADD SWAP1 MLOAD DUP2 ADD SWAP1 PUSH2 0xC15 SWAP2 SWAP1 PUSH2 0x16BC JUMP JUMPDEST SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND PUSH1 0x24 DUP3 ADD MSTORE PUSH2 0xCE1 SWAP1 PUSH32 0x0 SWAP1 PUSH1 0x44 ADD PUSH1 0x40 DUP1 MLOAD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 DUP2 DUP5 SUB ADD DUP2 MSTORE SWAP2 SWAP1 MSTORE PUSH1 0x20 DUP2 ADD DUP1 MLOAD PUSH28 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH32 0xA9DD77E700000000000000000000000000000000000000000000000000000000 OR SWAP1 MSTORE PUSH2 0xECB JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0xCEF PUSH2 0xA84 JUMP JUMPDEST SWAP4 POP POP POP POP DUP2 PUSH1 0xFF AND DUP2 PUSH1 0xFF AND EQ PUSH2 0xCE1 JUMPI PUSH2 0xD09 PUSH2 0xB10 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xBCA57F8100000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0xFF DUP5 AND PUSH1 0x4 DUP3 ADD MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP2 SWAP1 SWAP2 AND SWAP1 PUSH4 0xBCA57F81 SWAP1 PUSH1 0x24 ADD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0xD75 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0xD89 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH32 0xE8AE2B6900000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH32 0x8E8000ABA5B365C0BE9685DA1153F7F096E76D1ECFB42C050AE1E387AA65B4F5 PUSH1 0x4 DUP3 ADD MSTORE CALLER PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND SWAP1 PUSH4 0xE8AE2B69 SWAP1 PUSH1 0x44 ADD PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0xE41 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0xE65 SWAP2 SWAP1 PUSH2 0x16E1 JUMP JUMPDEST PUSH2 0xA82 JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x20 PUSH1 0x4 DUP3 ADD MSTORE PUSH1 0xE PUSH1 0x24 DUP3 ADD MSTORE PUSH32 0x4E6F7420617574686F72697A6564000000000000000000000000000000000000 PUSH1 0x44 DUP3 ADD MSTORE PUSH1 0x64 ADD PUSH2 0x59A JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 DUP4 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP4 PUSH1 0x40 MLOAD PUSH2 0xEF4 SWAP2 SWAP1 PUSH2 0x16FE JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP6 GAS DELEGATECALL SWAP2 POP POP RETURNDATASIZE DUP1 PUSH1 0x0 DUP2 EQ PUSH2 0xF2F JUMPI PUSH1 0x40 MLOAD SWAP2 POP PUSH1 0x1F NOT PUSH1 0x3F RETURNDATASIZE ADD AND DUP3 ADD PUSH1 0x40 MSTORE RETURNDATASIZE DUP3 MSTORE RETURNDATASIZE PUSH1 0x0 PUSH1 0x20 DUP5 ADD RETURNDATACOPY PUSH2 0xF34 JUMP JUMPDEST PUSH1 0x60 SWAP2 POP JUMPDEST POP SWAP3 POP SWAP1 POP DUP1 PUSH2 0xF7F JUMPI DUP2 MLOAD ISZERO PUSH2 0xF4D JUMPI DUP2 MLOAD DUP3 PUSH1 0x20 ADD REVERT JUMPDEST PUSH1 0x40 MLOAD PUSH32 0x7047373200000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD PUSH32 0xA9059CBB00000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP5 AND PUSH1 0x4 MSTORE DUP3 PUSH1 0x24 MSTORE PUSH1 0x20 PUSH1 0x0 PUSH1 0x44 PUSH1 0x0 DUP1 DUP10 GAS CALL SWAP2 POP DUP2 RETURNDATASIZE ISZERO PUSH1 0x20 RETURNDATASIZE EQ PUSH1 0x1 PUSH1 0x0 MLOAD EQ AND OR AND SWAP2 POP DUP1 PUSH1 0x40 MSTORE POP DUP1 PUSH2 0x1029 JUMPI PUSH1 0x40 MLOAD PUSH32 0xE465903E00000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND DUP2 EQ PUSH2 0x1051 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST DUP1 ISZERO ISZERO DUP2 EQ PUSH2 0x1051 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 DUP4 PUSH1 0x1F DUP5 ADD SLT PUSH2 0x1074 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP DUP2 CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x108C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x20 DUP4 ADD SWAP2 POP DUP4 PUSH1 0x20 DUP3 DUP6 ADD ADD GT ISZERO PUSH2 0x10A4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xE0 DUP10 DUP12 SUB SLT ISZERO PUSH2 0x10C7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP9 CALLDATALOAD PUSH2 0x10D2 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP8 POP PUSH1 0x20 DUP10 ADD CALLDATALOAD PUSH2 0x10E2 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP7 POP PUSH1 0x40 DUP10 ADD CALLDATALOAD PUSH2 0x10F2 DUP2 PUSH2 0x1054 JUMP JUMPDEST SWAP6 POP PUSH1 0x60 DUP10 ADD CALLDATALOAD SWAP5 POP PUSH1 0x80 DUP10 ADD CALLDATALOAD PUSH2 0x1109 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP4 POP PUSH1 0xA0 DUP10 ADD CALLDATALOAD PUSH2 0x1119 DUP2 PUSH2 0x1054 JUMP JUMPDEST SWAP3 POP PUSH1 0xC0 DUP10 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1135 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x1141 DUP12 DUP3 DUP13 ADD PUSH2 0x1062 JUMP JUMPDEST SWAP10 SWAP13 SWAP9 SWAP12 POP SWAP7 SWAP10 POP SWAP5 SWAP8 SWAP4 SWAP7 SWAP3 SWAP6 SWAP5 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xE0 DUP10 DUP12 SUB SLT ISZERO PUSH2 0x1171 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP9 CALLDATALOAD PUSH2 0x117C DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP8 POP PUSH1 0x20 DUP10 ADD CALLDATALOAD PUSH2 0x118C DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP7 POP PUSH1 0x40 DUP10 ADD CALLDATALOAD SWAP6 POP PUSH1 0x60 DUP10 ADD CALLDATALOAD SWAP5 POP PUSH1 0x80 DUP10 ADD CALLDATALOAD SWAP4 POP PUSH1 0xA0 DUP10 ADD CALLDATALOAD SWAP3 POP PUSH1 0xC0 DUP10 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1135 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x11D7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP3 CALLDATALOAD PUSH2 0x11E2 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP2 POP PUSH1 0x20 DUP4 ADD CALLDATALOAD PUSH2 0x11F2 DUP2 PUSH2 0x102F JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST DUP1 PUSH1 0x2 SIGNEXTEND DUP2 EQ PUSH2 0x1051 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP1 CALLDATALOAD PUSH1 0xF DUP2 SWAP1 SIGNEXTEND DUP2 EQ PUSH2 0x121E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0xC0 DUP9 DUP11 SUB SLT ISZERO PUSH2 0x123E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP8 CALLDATALOAD PUSH2 0x1249 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP7 POP PUSH1 0x20 DUP9 ADD CALLDATALOAD PUSH2 0x1259 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP6 POP PUSH1 0x40 DUP9 ADD CALLDATALOAD PUSH2 0x1269 DUP2 PUSH2 0x11FD JUMP JUMPDEST SWAP5 POP PUSH1 0x60 DUP9 ADD CALLDATALOAD PUSH2 0x1279 DUP2 PUSH2 0x11FD JUMP JUMPDEST SWAP4 POP PUSH2 0x1287 PUSH1 0x80 DUP10 ADD PUSH2 0x120C JUMP JUMPDEST SWAP3 POP PUSH1 0xA0 DUP9 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x12A3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x12AF DUP11 DUP3 DUP12 ADD PUSH2 0x1062 JUMP JUMPDEST SWAP9 SWAP12 SWAP8 SWAP11 POP SWAP6 SWAP9 POP SWAP4 SWAP7 SWAP3 SWAP6 SWAP3 SWAP4 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x12D7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP4 CALLDATALOAD PUSH2 0x12E2 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD CALLDATALOAD PUSH2 0x12F2 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH2 0x1302 DUP2 PUSH2 0x11FD JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 POP SWAP3 POP SWAP3 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xA0 DUP8 DUP10 SUB SLT ISZERO PUSH2 0x1326 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP7 CALLDATALOAD PUSH2 0x1331 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP6 POP PUSH1 0x20 DUP8 ADD CALLDATALOAD PUSH2 0x1341 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP5 POP PUSH1 0x40 DUP8 ADD CALLDATALOAD SWAP4 POP PUSH1 0x60 DUP8 ADD CALLDATALOAD SWAP3 POP PUSH1 0x80 DUP8 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x136B JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x1377 DUP10 DUP3 DUP11 ADD PUSH2 0x1062 JUMP JUMPDEST SWAP8 SWAP11 SWAP7 SWAP10 POP SWAP5 SWAP8 POP SWAP3 SWAP6 SWAP4 SWAP5 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x100 DUP11 DUP13 SUB SLT ISZERO PUSH2 0x13A8 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP10 CALLDATALOAD PUSH2 0x13B3 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP9 POP PUSH1 0x20 DUP11 ADD CALLDATALOAD PUSH2 0x13C3 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP8 POP PUSH1 0x40 DUP11 ADD CALLDATALOAD PUSH2 0x13D3 DUP2 PUSH2 0x1054 JUMP JUMPDEST SWAP7 POP PUSH1 0x60 DUP11 ADD CALLDATALOAD SWAP6 POP PUSH1 0x80 DUP11 ADD CALLDATALOAD PUSH2 0x13EA DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP5 POP PUSH1 0xA0 DUP11 ADD CALLDATALOAD SWAP4 POP PUSH1 0xC0 DUP11 ADD CALLDATALOAD SWAP3 POP PUSH1 0xE0 DUP11 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x1414 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x1420 DUP13 DUP3 DUP14 ADD PUSH2 0x1062 JUMP JUMPDEST SWAP2 POP DUP1 SWAP4 POP POP DUP1 SWAP2 POP POP SWAP3 SWAP6 SWAP9 POP SWAP3 SWAP6 SWAP9 POP SWAP3 SWAP6 SWAP9 JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x144A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP POP DUP1 CALLDATALOAD SWAP3 PUSH1 0x20 SWAP1 SWAP2 ADD CALLDATALOAD SWAP2 POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x1474 JUMPI DUP2 DUP2 ADD MLOAD DUP4 DUP3 ADD MSTORE PUSH1 0x20 ADD PUSH2 0x145C JUMP JUMPDEST POP POP PUSH1 0x0 SWAP2 ADD MSTORE JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP1 DUP4 ADD DUP2 DUP5 MSTORE DUP1 DUP6 MLOAD DUP1 DUP4 MSTORE PUSH1 0x40 DUP7 ADD SWAP2 POP PUSH1 0x40 DUP2 PUSH1 0x5 SHL DUP8 ADD ADD SWAP3 POP DUP4 DUP8 ADD PUSH1 0x0 JUMPDEST DUP3 DUP2 LT ISZERO PUSH2 0x1526 JUMPI PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0 DUP9 DUP7 SUB ADD DUP5 MSTORE DUP2 MLOAD DUP1 MLOAD DUP1 DUP8 MSTORE PUSH2 0x14E9 DUP2 DUP10 DUP10 ADD DUP11 DUP6 ADD PUSH2 0x1459 JUMP JUMPDEST PUSH1 0x1F ADD PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 AND SWAP6 SWAP1 SWAP6 ADD DUP7 ADD SWAP5 POP SWAP3 DUP6 ADD SWAP3 SWAP1 DUP6 ADD SWAP1 PUSH1 0x1 ADD PUSH2 0x14A4 JUMP JUMPDEST POP SWAP3 SWAP8 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x1545 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 CALLDATALOAD PUSH2 0x1550 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 PUSH2 0x100 DUP11 DUP13 SUB SLT ISZERO PUSH2 0x1576 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP10 CALLDATALOAD PUSH2 0x1581 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP9 POP PUSH1 0x20 DUP11 ADD CALLDATALOAD PUSH2 0x1591 DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP8 POP PUSH1 0x40 DUP11 ADD CALLDATALOAD PUSH2 0x15A1 DUP2 PUSH2 0x11FD JUMP JUMPDEST SWAP7 POP PUSH1 0x60 DUP11 ADD CALLDATALOAD PUSH2 0x15B1 DUP2 PUSH2 0x11FD JUMP JUMPDEST SWAP6 POP PUSH2 0x13EA PUSH1 0x80 DUP12 ADD PUSH2 0x120C JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 PUSH1 0x60 DUP5 DUP7 SUB SLT ISZERO PUSH2 0x15D4 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP4 CALLDATALOAD PUSH2 0x15DF DUP2 PUSH2 0x102F JUMP JUMPDEST SWAP3 POP PUSH1 0x20 DUP5 ADD CALLDATALOAD SWAP2 POP PUSH1 0x40 DUP5 ADD CALLDATALOAD PUSH2 0x1302 DUP2 PUSH2 0x102F JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x32 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST DUP1 MLOAD PUSH2 0xFFFF DUP2 AND DUP2 EQ PUSH2 0x121E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0x0 DUP1 PUSH1 0xC0 DUP8 DUP10 SUB SLT ISZERO PUSH2 0x1650 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP7 MLOAD PUSH2 0x165B DUP2 PUSH2 0x102F JUMP JUMPDEST PUSH1 0x20 DUP9 ADD MLOAD SWAP1 SWAP7 POP PUSH2 0x166C DUP2 PUSH2 0x11FD JUMP JUMPDEST SWAP5 POP PUSH2 0x167A PUSH1 0x40 DUP9 ADD PUSH2 0x1625 JUMP JUMPDEST SWAP4 POP PUSH1 0x60 DUP8 ADD MLOAD PUSH1 0xFF DUP2 AND DUP2 EQ PUSH2 0x1690 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST SWAP3 POP PUSH2 0x169E PUSH1 0x80 DUP9 ADD PUSH2 0x1625 JUMP JUMPDEST SWAP2 POP PUSH1 0xA0 DUP8 ADD MLOAD PUSH2 0x16AE DUP2 PUSH2 0x1054 JUMP JUMPDEST DUP1 SWAP2 POP POP SWAP3 SWAP6 POP SWAP3 SWAP6 POP SWAP3 SWAP6 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x16CE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH3 0xFFFFFF DUP2 AND DUP2 EQ PUSH2 0x1550 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x16F3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP2 MLOAD PUSH2 0x1550 DUP2 PUSH2 0x1054 JUMP JUMPDEST PUSH1 0x0 DUP3 MLOAD PUSH2 0x1710 DUP2 DUP5 PUSH1 0x20 DUP8 ADD PUSH2 0x1459 JUMP JUMPDEST SWAP2 SWAP1 SWAP2 ADD SWAP3 SWAP2 POP POP JUMP INVALID LOG1 PUSH5 0x736F6C6343 STOP ADDMOD EQ STOP EXP ","sourceMap":"507:2200:27:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2004:367;;;;;;:::i;:::-;;:::i;:::-;;;;2046:66:28;2034:79;;;2016:98;;2133:8;2177:15;;;2172:2;2157:18;;2150:43;2229:15;;2209:18;;;2202:43;2004:2;1989:18;2004:367:27;;;;;;;;2716:74:1;;;:::i;:::-;;;2432:42:28;2420:55;;;2402:74;;2390:2;2375:18;2716:74:1;2256:226:28;1199:94:1;;1253:40;1199:94;;;;;2633:25:28;;;2621:2;2606:18;1199:94:1;2487:177:28;5119:226:1;;;;;;:::i;:::-;;:::i;:::-;;;3809:66:28;3797:79;;;3779:98;;3767:2;3752:18;5119:226:1;3635:248:28;1094:48:1;;1140:2;1094:48;;1277:159:27;;;;;;:::i;:::-;;:::i;:::-;;3954:241:1;;;;;;:::i;:::-;;:::i;:::-;;;;5992:66:28;5980:79;;;5962:98;;6108:8;6096:21;;;6091:2;6076:18;;6069:49;5935:18;3954:241:1;5792:332:28;1800:200:27;;;;;;:::i;:::-;;:::i;1658:112::-;;;724:1:16;6664:36:28;;6652:2;6637:18;1658:112:27;6522:184:28;3791:159:1;;;;;;:::i;:::-;;:::i;4937:178::-;;;;;;:::i;:::-;;:::i;4702:231::-;;;;;;:::i;:::-;;:::i;3446:157::-;;;;;;:::i;:::-;;:::i;1474:180:27:-;;;:::i;:::-;;;;;;;:::i;1747:262:20:-;;;;;;:::i;:::-;;:::i;1335:32:1:-;;;;;4199:252;;;;;;:::i;:::-;;:::i;1409:38::-;;;;;3227:182;;;;;;:::i;:::-;;:::i;2050:137:20:-;350:66:26;2135:47:20;;;2050:137;;2004:367:27;2162:6;2170;2178;1478:18:1;:16;:18::i;:::-;2197:10:27::1;2213:15;:13;:15::i;:::-;2192:36;;;;;2234:20;2257:42;2275:6;2283:10;:8;:10::i;:::-;2295:3;2257:42;;:17;:42::i;:::-;2313:34:::0;;2234:65;;-1:-1:-1;2364:1:27::1;::::0;-1:-1:-1;2004:367:27;-1:-1:-1;;;;;;;;;;;2004:367:27:o;2716:74:1:-;2753:7;2775:10;:8;:10::i;:::-;2768:17;;2716:74;:::o;5119:226::-;5285:6;1478:18;:16;:18::i;:::-;-1:-1:-1;5306:34:1;5119:226;;;;;;;;;;:::o;1277:159:27:-;3279:19:18;3302:13;;;;;;3301:14;;3347:34;;;;-1:-1:-1;3365:12:18;;3380:1;3365:12;;;;:16;3347:34;3346:108;;;-1:-1:-1;3426:4:18;1713:19:19;:23;;;3387:66:18;;-1:-1:-1;3436:12:18;;;;;:17;3387:66;3325:201;;;;;;;12978:2:28;3325:201:18;;;12960:21:28;13017:2;12997:18;;;12990:30;13056:34;13036:18;;;13029:62;13127:16;13107:18;;;13100:44;13161:19;;3325:201:18;;;;;;;;;3536:12;:16;;;;3551:1;3536:16;;;3562:65;;;;3596:13;:20;;;;;;;;3562:65;1551:10:1::1;:27;1565:13;1551:27;;1547:59;;1587:19;;;;;;;;;;;;;;1547:59;1387:44:27::2;1410:20;1387:22;:44::i;:::-;3651:14:18::0;3647:99;;;3697:5;3681:21;;;;;;3721:14;;-1:-1:-1;6664:36:28;;3721:14:18;;6652:2:28;6637:18;3721:14:18;;;;;;;3647:99;3269:483;1277:159:27;;:::o;3954:241:1:-;4112:6;4120;1478:18;:16;:18::i;:::-;-1:-1:-1;4142:44:1;;4188:1:::1;::::0;-1:-1:-1;3954:241:1;-1:-1:-1;;;;;;;3954:241:1:o;1800:200:27:-;1880:6;1478:18:1;:16;:18::i;:::-;1894:48:27::1;724:1:16::0;1894:25:27::1;:48::i;:::-;-1:-1:-1::0;1955:40:27;1800:200;;;;:::o;3791:159:1:-;3885:6;1478:18;:16;:18::i;:::-;-1:-1:-1;3906:39:1;3791:159;;;;;:::o;4937:178::-;5054:6;1478:18;:16;:18::i;:::-;-1:-1:-1;5075:35:1;4937:178;;;;;;;;:::o;4702:231::-;4874:6;1478:18;:16;:18::i;:::-;-1:-1:-1;4895:33:1;4702:231;;;;;;;;;;;:::o;3446:157::-;3538:6;1478:18;:16;:18::i;:::-;-1:-1:-1;3559:39:1;3446:157;;;;:::o;1474:180:27:-;1587:15;;;1600:1;1587:15;;;;;;;;;1538:27;;1587:15;;;;;;;;;;;;;;;;;;;;1573:29;;1625:24;;;;;;;;;;;;;;;;;1608:11;1620:1;1608:14;;;;;;;;:::i;:::-;;;;;;:41;;;;1474:180;:::o;1747:262:20:-;1821:12;:10;:12::i;:::-;1880:83;;2432:42:28;2420:55;;1880:83:20;;;2402:74:28;1839:125:20;;1853:25;;2375:18:28;;1880:83:20;;;;;;;;;;;;;;;;;;;;;;;;1839:13;:125::i;:::-;-1:-1:-1;1975:29:20;;2432:42:28;2420:55;;2402:74;;1975:29:20;;2390:2:28;2375:18;1975:29:20;;;;;;;1747:262;:::o;4199:252:1:-;4382:6;1478:18;:16;:18::i;:::-;-1:-1:-1;4403:43:1;4199:252;;;;;;;;;;;:::o;3227:182::-;3335:12;:10;:12::i;:::-;3353:51;3379:5;3386:9;3397:6;3353:25;:51::i;2106:100::-;2172:10;:8;:10::i;:::-;2158:24;;:10;:24;;;2154:47;;2191:10;;;;;;;;;;;;;;2154:47;2106:100::o;2382:208::-;2438:13;2453:10;2465;2477:18;2560:10;:8;:10::i;:::-;2542:41;;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;2503:82:1;;;;-1:-1:-1;2503:82:1;;-1:-1:-1;2503:82:1;-1:-1:-1;2382:208:1;-1:-1:-1;;2382:208:1:o;1841:261::-;1892:7;1907:12;1959:4;1953:11;2020:2;1999:19;1994:3;1983:9;1971:52;2038:10;;1841:261;-1:-1:-1;;1841:261:1:o;1329:319:20:-;1508:84;;14987:42:28;15056:15;;;1508:84:20;;;15038:34:28;15108:15;;15088:18;;;15081:43;15172:8;15160:21;;15140:18;;;15133:49;1414:6:20;;;;1454:144;;1475:25;;14950:18:28;;1508:84:20;;;;;;;;;;;;;;;;;;;;;;;;1454:13;:144::i;:::-;1428:170;;1622:10;1611:32;;;;;;;;;;;;:::i;:::-;1604:39;1329:319;-1:-1:-1;;;;;1329:319:20:o;1039:236::-;1170:94;;2432:42:28;2420:55;;1170:94:20;;;2402:74:28;1116:154:20;;1137:25;;2375:18:28;;1170:94:20;;;;;;;;;;;;;;;;;;;;;;;;1116:13;:154::i;:::-;;1039:236;:::o;5349:250:1:-;5429:25;5458:15;:13;:15::i;:::-;5422:51;;;;;5506:15;5483:38;;:19;:38;;;5479:116;;5544:10;:8;:10::i;:::-;5531:57;;;;;6694:4:28;6682:17;;5531:57:1;;;6664:36:28;5531:40:1;;;;;;;;6637:18:28;;5531:57:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5416:183;5349:250;:::o;2500:205:27:-;2601:80;;;;;1253:40:1;2601:80:27;;;15650:25:28;2670:10:27;15691:18:28;;;15684:83;2617:7:27;2601:39;;;;;15623:18:28;;2601:80:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2593:107;;;;;;;16230:2:28;2593:107:27;;;16212:21:28;16269:2;16249:18;;;16242:30;16308:16;16288:18;;;16281:44;16342:18;;2593:107:27;16028:338:28;522:394:0;606:23;637:12;679:14;:27;;707:4;679:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;655:57:0;-1:-1:-1;655:57:0;-1:-1:-1;655:57:0;718:194;;744:17;;:21;740:122;;832:10;826:17;813:10;809:2;805:19;798:46;740:122;876:29;;;;;;;;;;;;;;718:194;631:285;522:394;;;;:::o;865:967:17:-;945:12;1011:4;1005:11;1073:66;1067:4;1060:80;1208:42;1204:2;1200:51;1194:4;1187:65;1303:6;1297:4;1290:20;1433:4;1430:1;1424:4;1421:1;1418;1411:5;1404;1399:39;1388:50;;1673:7;1645:16;1638:24;1632:2;1614:16;1611:24;1607:1;1603;1597:8;1594:15;1590:46;1587:76;1456:232;1445:243;;1708:17;1702:4;1695:31;;1776:7;1771:56;;1792:35;;;;;;;;;;;;;;1771:56;939:893;865:967;;;:::o;14:154:28:-;100:42;93:5;89:54;82:5;79:65;69:93;;158:1;155;148:12;69:93;14:154;:::o;173:118::-;259:5;252:13;245:21;238:5;235:32;225:60;;281:1;278;271:12;296:347;347:8;357:6;411:3;404:4;396:6;392:17;388:27;378:55;;429:1;426;419:12;378:55;-1:-1:-1;452:20:28;;495:18;484:30;;481:50;;;527:1;524;517:12;481:50;564:4;556:6;552:17;540:29;;616:3;609:4;600:6;592;588:19;584:30;581:39;578:59;;;633:1;630;623:12;578:59;296:347;;;;;:::o;648:1167::-;765:6;773;781;789;797;805;813;821;874:3;862:9;853:7;849:23;845:33;842:53;;;891:1;888;881:12;842:53;930:9;917:23;949:31;974:5;949:31;:::i;:::-;999:5;-1:-1:-1;1056:2:28;1041:18;;1028:32;1069:33;1028:32;1069:33;:::i;:::-;1121:7;-1:-1:-1;1180:2:28;1165:18;;1152:32;1193:30;1152:32;1193:30;:::i;:::-;1242:7;-1:-1:-1;1296:2:28;1281:18;;1268:32;;-1:-1:-1;1352:3:28;1337:19;;1324:33;1366;1324;1366;:::i;:::-;1418:7;-1:-1:-1;1477:3:28;1462:19;;1449:33;1491:30;1449:33;1491:30;:::i;:::-;1540:7;-1:-1:-1;1598:3:28;1583:19;;1570:33;1626:18;1615:30;;1612:50;;;1658:1;1655;1648:12;1612:50;1697:58;1747:7;1738:6;1727:9;1723:22;1697:58;:::i;:::-;648:1167;;;;-1:-1:-1;648:1167:28;;-1:-1:-1;648:1167:28;;;;;;1774:8;-1:-1:-1;;;648:1167:28:o;2669:961::-;2793:6;2801;2809;2817;2825;2833;2841;2849;2902:3;2890:9;2881:7;2877:23;2873:33;2870:53;;;2919:1;2916;2909:12;2870:53;2958:9;2945:23;2977:31;3002:5;2977:31;:::i;:::-;3027:5;-1:-1:-1;3084:2:28;3069:18;;3056:32;3097:33;3056:32;3097:33;:::i;:::-;3149:7;-1:-1:-1;3203:2:28;3188:18;;3175:32;;-1:-1:-1;3254:2:28;3239:18;;3226:32;;-1:-1:-1;3305:3:28;3290:19;;3277:33;;-1:-1:-1;3357:3:28;3342:19;;3329:33;;-1:-1:-1;3413:3:28;3398:19;;3385:33;3441:18;3430:30;;3427:50;;;3473:1;3470;3463:12;4070:388;4138:6;4146;4199:2;4187:9;4178:7;4174:23;4170:32;4167:52;;;4215:1;4212;4205:12;4167:52;4254:9;4241:23;4273:31;4298:5;4273:31;:::i;:::-;4323:5;-1:-1:-1;4380:2:28;4365:18;;4352:32;4393:33;4352:32;4393:33;:::i;:::-;4445:7;4435:17;;;4070:388;;;;;:::o;4463:118::-;4550:5;4547:1;4536:20;4529:5;4526:31;4516:59;;4571:1;4568;4561:12;4586:162;4653:20;;4713:2;4702:21;;;4692:32;;4682:60;;4738:1;4735;4728:12;4682:60;4586:162;;;:::o;4753:1034::-;4863:6;4871;4879;4887;4895;4903;4911;4964:3;4952:9;4943:7;4939:23;4935:33;4932:53;;;4981:1;4978;4971:12;4932:53;5020:9;5007:23;5039:31;5064:5;5039:31;:::i;:::-;5089:5;-1:-1:-1;5146:2:28;5131:18;;5118:32;5159:33;5118:32;5159:33;:::i;:::-;5211:7;-1:-1:-1;5270:2:28;5255:18;;5242:32;5283:31;5242:32;5283:31;:::i;:::-;5333:7;-1:-1:-1;5392:2:28;5377:18;;5364:32;5405:31;5364:32;5405:31;:::i;:::-;5455:7;-1:-1:-1;5481:38:28;5514:3;5499:19;;5481:38;:::i;:::-;5471:48;;5570:3;5559:9;5555:19;5542:33;5598:18;5590:6;5587:30;5584:50;;;5630:1;5627;5620:12;5584:50;5669:58;5719:7;5710:6;5699:9;5695:22;5669:58;:::i;:::-;4753:1034;;;;-1:-1:-1;4753:1034:28;;-1:-1:-1;4753:1034:28;;;;5643:84;;-1:-1:-1;;;4753:1034:28:o;6711:525::-;6786:6;6794;6802;6855:2;6843:9;6834:7;6830:23;6826:32;6823:52;;;6871:1;6868;6861:12;6823:52;6910:9;6897:23;6929:31;6954:5;6929:31;:::i;:::-;6979:5;-1:-1:-1;7036:2:28;7021:18;;7008:32;7049:33;7008:32;7049:33;:::i;:::-;7101:7;-1:-1:-1;7160:2:28;7145:18;;7132:32;7173:31;7132:32;7173:31;:::i;:::-;7223:7;7213:17;;;6711:525;;;;;:::o;7241:823::-;7347:6;7355;7363;7371;7379;7387;7440:3;7428:9;7419:7;7415:23;7411:33;7408:53;;;7457:1;7454;7447:12;7408:53;7496:9;7483:23;7515:31;7540:5;7515:31;:::i;:::-;7565:5;-1:-1:-1;7622:2:28;7607:18;;7594:32;7635:33;7594:32;7635:33;:::i;:::-;7687:7;-1:-1:-1;7741:2:28;7726:18;;7713:32;;-1:-1:-1;7792:2:28;7777:18;;7764:32;;-1:-1:-1;7847:3:28;7832:19;;7819:33;7875:18;7864:30;;7861:50;;;7907:1;7904;7897:12;7861:50;7946:58;7996:7;7987:6;7976:9;7972:22;7946:58;:::i;:::-;7241:823;;;;-1:-1:-1;7241:823:28;;-1:-1:-1;7241:823:28;;8023:8;;7241:823;-1:-1:-1;;;7241:823:28:o;8069:1167::-;8196:6;8204;8212;8220;8228;8236;8244;8252;8260;8313:3;8301:9;8292:7;8288:23;8284:33;8281:53;;;8330:1;8327;8320:12;8281:53;8369:9;8356:23;8388:31;8413:5;8388:31;:::i;:::-;8438:5;-1:-1:-1;8495:2:28;8480:18;;8467:32;8508:33;8467:32;8508:33;:::i;:::-;8560:7;-1:-1:-1;8619:2:28;8604:18;;8591:32;8632:30;8591:32;8632:30;:::i;:::-;8681:7;-1:-1:-1;8735:2:28;8720:18;;8707:32;;-1:-1:-1;8791:3:28;8776:19;;8763:33;8805;8763;8805;:::i;:::-;8857:7;-1:-1:-1;8911:3:28;8896:19;;8883:33;;-1:-1:-1;8963:3:28;8948:19;;8935:33;;-1:-1:-1;9019:3:28;9004:19;;8991:33;9047:18;9036:30;;9033:50;;;9079:1;9076;9069:12;9033:50;9118:58;9168:7;9159:6;9148:9;9144:22;9118:58;:::i;:::-;9092:84;;9195:8;9185:18;;;9222:8;9212:18;;;8069:1167;;;;;;;;;;;:::o;9241:248::-;9309:6;9317;9370:2;9358:9;9349:7;9345:23;9341:32;9338:52;;;9386:1;9383;9376:12;9338:52;-1:-1:-1;;9409:23:28;;;9479:2;9464:18;;;9451:32;;-1:-1:-1;9241:248:28:o;9494:250::-;9579:1;9589:113;9603:6;9600:1;9597:13;9589:113;;;9679:11;;;9673:18;9660:11;;;9653:39;9625:2;9618:10;9589:113;;;-1:-1:-1;;9736:1:28;9718:16;;9711:27;9494:250::o;9749:1132::-;9911:4;9940:2;9980;9969:9;9965:18;10010:2;9999:9;9992:21;10033:6;10068;10062:13;10099:6;10091;10084:22;10137:2;10126:9;10122:18;10115:25;;10199:2;10189:6;10186:1;10182:14;10171:9;10167:30;10163:39;10149:53;;10237:2;10229:6;10225:15;10258:1;10268:584;10282:6;10279:1;10276:13;10268:584;;;10371:66;10359:9;10351:6;10347:22;10343:95;10338:3;10331:108;10468:6;10462:13;10510:2;10504:9;10541:8;10533:6;10526:24;10563:74;10628:8;10623:2;10615:6;10611:15;10606:2;10602;10598:11;10563:74;:::i;:::-;10694:2;10680:17;10699:66;10676:90;10664:103;;;;10660:112;;;-1:-1:-1;10830:12:28;;;;10795:15;;;;10304:1;10297:9;10268:584;;;-1:-1:-1;10869:6:28;;9749:1132;-1:-1:-1;;;;;;;9749:1132:28:o;10886:247::-;10945:6;10998:2;10986:9;10977:7;10973:23;10969:32;10966:52;;;11014:1;11011;11004:12;10966:52;11053:9;11040:23;11072:31;11097:5;11072:31;:::i;:::-;11122:5;10886:247;-1:-1:-1;;;10886:247:28:o;11138:1172::-;11266:6;11274;11282;11290;11298;11306;11314;11322;11330;11383:3;11371:9;11362:7;11358:23;11354:33;11351:53;;;11400:1;11397;11390:12;11351:53;11439:9;11426:23;11458:31;11483:5;11458:31;:::i;:::-;11508:5;-1:-1:-1;11565:2:28;11550:18;;11537:32;11578:33;11537:32;11578:33;:::i;:::-;11630:7;-1:-1:-1;11689:2:28;11674:18;;11661:32;11702:31;11661:32;11702:31;:::i;:::-;11752:7;-1:-1:-1;11811:2:28;11796:18;;11783:32;11824:31;11783:32;11824:31;:::i;:::-;11874:7;-1:-1:-1;11900:38:28;11933:3;11918:19;;11900:38;:::i;12315:456::-;12392:6;12400;12408;12461:2;12449:9;12440:7;12436:23;12432:32;12429:52;;;12477:1;12474;12467:12;12429:52;12516:9;12503:23;12535:31;12560:5;12535:31;:::i;:::-;12585:5;-1:-1:-1;12637:2:28;12622:18;;12609:32;;-1:-1:-1;12693:2:28;12678:18;;12665:32;12706:33;12665:32;12706:33;:::i;13579:184::-;13631:77;13628:1;13621:88;13728:4;13725:1;13718:15;13752:4;13749:1;13742:15;13768:163;13846:13;;13899:6;13888:18;;13878:29;;13868:57;;13921:1;13918;13911:12;13936:836;14042:6;14050;14058;14066;14074;14082;14135:3;14123:9;14114:7;14110:23;14106:33;14103:53;;;14152:1;14149;14142:12;14103:53;14184:9;14178:16;14203:31;14228:5;14203:31;:::i;:::-;14303:2;14288:18;;14282:25;14253:5;;-1:-1:-1;14316:31:28;14282:25;14316:31;:::i;:::-;14366:7;-1:-1:-1;14392:48:28;14436:2;14421:18;;14392:48;:::i;:::-;14382:58;;14485:2;14474:9;14470:18;14464:25;14533:4;14524:7;14520:18;14511:7;14508:31;14498:59;;14553:1;14550;14543:12;14498:59;14576:7;-1:-1:-1;14602:49:28;14646:3;14631:19;;14602:49;:::i;:::-;14592:59;;14696:3;14685:9;14681:19;14675:26;14710:30;14732:7;14710:30;:::i;:::-;14759:7;14749:17;;;13936:836;;;;;;;;:::o;15193:278::-;15262:6;15315:2;15303:9;15294:7;15290:23;15286:32;15283:52;;;15331:1;15328;15321:12;15283:52;15363:9;15357:16;15413:8;15406:5;15402:20;15395:5;15392:31;15382:59;;15437:1;15434;15427:12;15778:245;15845:6;15898:2;15886:9;15877:7;15873:23;15869:32;15866:52;;;15914:1;15911;15904:12;15866:52;15946:9;15940:16;15965:28;15987:5;15965:28;:::i;16371:287::-;16500:3;16538:6;16532:13;16554:66;16613:6;16608:3;16601:4;16593:6;16589:17;16554:66;:::i;:::-;16636:16;;;;;16371:287;-1:-1:-1;;16371:287:28:o"},"methodIdentifiers":{"ALGEBRA_BASE_PLUGIN_MANAGER()":"31b25d1a","POOL_ADDRESS_OFFSET()":"36badf63","afterFlash(address,address,uint256,uint256,uint256,uint256,bytes)":"343d37ff","afterInitialize(address,uint160,int24)":"82dd6522","afterModifyPosition(address,address,int24,int24,int128,uint256,uint256,bytes)":"d6852010","afterSwap(address,address,bool,int256,uint160,int256,int256,bytes)":"9cb5a963","beforeFlash(address,address,uint256,uint256,bytes)":"8de0a8ee","beforeInitialize(address,uint160)":"636fd804","beforeModifyPosition(address,address,int24,int24,int128,bytes)":"5e2411b2","beforeSwap(address,address,bool,int256,uint160,bool,bytes)":"029c1cb7","collectPluginFee(address,uint256,address)":"e72c652d","defaultPluginConfig()":"689ea370","factory()":"c45a0155","feeDiscountRegistry()":"f20cdc1a","getActiveModuleNames()":"b6f78cc9","handlePluginFee(uint256,uint256)":"aa6b14bb","initialize(address,address)":"485cc955","pluginFactory()":"e2a1bd59","pool()":"16f0115b","setFeeDiscountRegistry(address)":"c3da7978"}},"metadata":"{\"compiler\":{\"version\":\"0.8.20+commit.a1b79de6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_factory\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_pluginFactory\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_feeDiscountImplementation\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ConnectorDelegatecallFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyAdministrator\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyPluginFactory\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyPool\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"transferFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"name\":\"FeeDiscountRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ALGEBRA_BASE_PLUGIN_MANAGER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"POOL_ADDRESS_OFFSET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"name\":\"afterInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"afterSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeFlash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"}],\"name\":\"beforeInitialize\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"},{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeModifyPosition\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"\",\"type\":\"uint160\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"beforeSwap\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"collectPluginFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"defaultPluginConfig\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeDiscountRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getActiveModuleNames\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"moduleNames\",\"type\":\"string[]\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"handlePluginFee\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_feeDiscountRegistry\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pluginFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"registry\",\"type\":\"address\"}],\"name\":\"setFeeDiscountRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"}},\"kind\":\"dev\",\"methods\":{\"collectPluginFee(address,uint256,address)\":{\"params\":{\"amount\":\"Amount of tokens\",\"recipient\":\"Recipient address\",\"token\":\"The token address\"}},\"constructor\":{\"details\":\"Constructor sets immutable implementation address\",\"params\":{\"_factory\":\"The Algebra factory address\",\"_feeDiscountImplementation\":\"The FeeDiscount implementation address\",\"_pluginFactory\":\"The plugin factory address\"}},\"defaultPluginConfig()\":{\"details\":\"Must be implemented by the default plugin, used to sync config into the pool\"},\"getActiveModuleNames()\":{\"returns\":{\"moduleNames\":\"Array of active module names\"}},\"handlePluginFee(uint256,uint256)\":{\"params\":{\"pluginFee0\":\"Fee0 amount transferred to plugin\",\"pluginFee1\":\"Fee1 amount transferred to plugin\"},\"returns\":{\"_0\":\"bytes4 The function selector\"}},\"initialize(address,address)\":{\"params\":{\"_feeDiscountRegistry\":\"The fee discount registry address\",\"_pool\":\"The pool address this plugin is attached to\"}}},\"title\":\"Upgradeable FeeDiscount Plugin for Testing\",\"version\":1},\"userdoc\":{\"errors\":{\"transferFailed()\":[{\"notice\":\"Emitted if token transfer failed internally\"}]},\"kind\":\"user\",\"methods\":{\"collectPluginFee(address,uint256,address)\":{\"notice\":\"Claim plugin fee\"},\"defaultPluginConfig()\":{\"notice\":\"Returns the default plugin config\"},\"getActiveModuleNames()\":{\"notice\":\"Get all active module names\"},\"handlePluginFee(uint256,uint256)\":{\"notice\":\"Handle plugin fee transfer on plugin contract\"},\"initialize(address,address)\":{\"notice\":\"Initialize the plugin for a specific pool\"}},\"notice\":\"Test implementation of an upgradeable plugin using Beacon Proxy pattern with FeeDiscount connector\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/test/UpgradeableFeeDiscountPluginTest.sol\":\"UpgradeableFeeDiscountPluginTest\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"none\"},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"@cryptoalgebra/abstract-plugin/contracts/BaseConnector.sol\":{\"keccak256\":\"0x4d00d580227bab1f04a401d26846f48ced21c785dd7e7b5485da21653fef8722\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://fdc52831c08d9cd58ec8b3c95320fdbe97e1a0a72663da2575fae4c3027822f8\",\"dweb:/ipfs/QmSwnbXtswaioxM5tNVr8VYxEDRY8V1oJZYVHdFgbDhCBH\"]},\"@cryptoalgebra/abstract-plugin/contracts/UpgradeableAbstractPlugin.sol\":{\"keccak256\":\"0x9dc4212743f653ff5398574f1d1de9d184153f9b587e8983e7f45a948fba775d\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://a3e62a82eda8d6d747907c64be46ee5dd068c1734f1314b6bad0d56bf104f5e4\",\"dweb:/ipfs/QmcTvDL6CB1ZvLckiXy8m6gM9EEr3V4Z2n7afDbCBUvKU2\"]},\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAbstractPlugin.sol\":{\"keccak256\":\"0x71e54050ebdbcf299b5f7b5766d041442a79943c44e58edaeebe5f5624ca5165\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://ea13296f61bcc653ff70eb6529f2946f6714b2800115f684c591cef5466b92be\",\"dweb:/ipfs/QmZieuJwje1kFHzyH3Dq5a4QT5VWjEVYba7hVidWiosfcP\"]},\"@cryptoalgebra/abstract-plugin/contracts/interfaces/IAlgebraPluginProxy.sol\":{\"keccak256\":\"0xb48c9713e84cb8e652ce2d1b6c0986ac06bbf53256f442e9e98d34e84ffea2ad\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://102ede8adf1a8367f36364a84afa896fc36b03e90172a70dfef7e9c8af9f0280\",\"dweb:/ipfs/QmPsXH7X7jX5WcsnoTwRJXcoaAi2zMTAD4PhR3EX9jQcan\"]},\"@cryptoalgebra/integral-core/contracts/base/common/Timestamp.sol\":{\"keccak256\":\"0x28e2aac84d585bbe96ecb9d5cd124fa7cd5929584c70e43a7c96f6faa93022d3\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d1347582a9d12cf03fc99ca899f7788f9223773be12c35aa2b8c2145d2e6a2c8\",\"dweb:/ipfs/QmYDrse9BuFsrwHxAZdghycY9F6XQfGDrm8ZifUfFnx2n3\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol\":{\"keccak256\":\"0xb87bef911483f054559e6567a5a958200131b5101fbcee1ed7daefcfc082faf7\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://46c8f76cde3c16aed0446e98dc61ddb196288652f6a8735ed87d6e53a13b4142\",\"dweb:/ipfs/Qmd7omugWuFrjrCcwfeRQbeUS1FhqvhscTij4xtqCmjNKG\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol\":{\"keccak256\":\"0x1d8bb94007c874be2640401aeed6219392c07e8b2e779fa24c618adc58bd7ae0\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://55d37783d81c98cb58ed41e6d7283af5fb07261b676a833f632cd6d128fc2e04\",\"dweb:/ipfs/QmXiJ63fWeBfkfJkLzBv1zLDyCjn5shW44ugYv44CqtTca\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPlugin.sol\":{\"keccak256\":\"0xdf59e7e2f672d08ecd361eb9a61fbd21ce70ad47e64f34dcd8bd8101e0e7aa5a\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://7719afe8dbd6803ecda550933f66d447a6fd9866a1a1b06d8c1eaad6c6fa8a63\",\"dweb:/ipfs/QmPwz3RuSWYuQaHMzwF6HP4MAomD2ZoZRm6YRKhdWNhPWb\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/plugin/IAlgebraPluginFactory.sol\":{\"keccak256\":\"0xf1cc5f09fc738bf41381fdf6864919c07965f25e715af6982df54605ce3a32fc\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://6fa8803e45159a6c404fd714321bc2ba0e010e76e3755594628f0c0bc9204182\",\"dweb:/ipfs/QmSAtmyH38VtzgycYTjGF3Y5aWG6DPjWD3JDjGVAn4fi2m\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolActions.sol\":{\"keccak256\":\"0x4f9b70282bac671383d001cffca1479dd64f507db84cdab16da886804c64a60c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://b1bc8b774ab5027d97625c3ac01ee3f4bbdefcd012ff0bb0e4c9752096bd9562\",\"dweb:/ipfs/Qmcn5kGihMiZAMjwpY1f12nTSWMyrLqmXLvoifaqPtQYYo\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolErrors.sol\":{\"keccak256\":\"0x5ee2c56b4acc88f0c4649e39ebb0f8452381e13305bd297b53358cbe32c16069\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d25e93950215a98988cf189d2eb1cd0bc41c91d7f190b7e3c5cdfb92651dcfd5\",\"dweb:/ipfs/QmXkA7xk83yJtooAqJSRwUfR7V6iwjsiwbvEfATyasuiEM\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolEvents.sol\":{\"keccak256\":\"0xd6b18486bd0eaee545ad10115d33c527e5ba5ddff571120678e7db58ca00b726\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://470a64313758d0a26a6910c924eae39e5c4df6912c61e7239e0d930097f8512f\",\"dweb:/ipfs/QmY18B9x18hLCKQ3kAqjPhHzMvZxKrvNeUjPycKYodETaa\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolImmutables.sol\":{\"keccak256\":\"0x02d0fb9c64fba4c4dd0509bb9333825c801a0587d5b957c46f5cb1c610acc447\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://8480784b2654829c0958b00aa3109249ce9088dbe94b6eadeaf8e9138829a764\",\"dweb:/ipfs/QmeFG5AsPUQfhMPtvYC3f9BhGu7sVm71wj2PgXDczaM7XP\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolPermissionedActions.sol\":{\"keccak256\":\"0xbd9faad7e7599c61c3141cfe2dd2e423ad4746a6119f047b0ae6d2eccb77bc9c\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d0df4bed6cf34a8c0f6b971fb71411373b4d204afda35eabe8555d8cbe67e291\",\"dweb:/ipfs/QmY6z3BseKy3tEvmLVjhL7VFrNJRuQgDXJXNAFBkBQ218A\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/pool/IAlgebraPoolState.sol\":{\"keccak256\":\"0xe061f0f9b5b16934173b1127efe13ccfe80465db17156d91c04e018b31e993fa\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://c607033ec09828f4a8667e7fd2e562814ec689d5806d95b4a248f57e0eff9d38\",\"dweb:/ipfs/QmbGBxBMSzPKitHmRjYJwGGEZVsXDQB6emSsZ19hjy6LUz\"]},\"@cryptoalgebra/integral-core/contracts/interfaces/vault/IAlgebraVaultFactory.sol\":{\"keccak256\":\"0xcdaae6cd6af79c4f344e673fe886a980ef5203b15b49f7a466c336c0152ce6ae\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://fa2d3073bd4ca013e2769cf0fa5b68f32cec4fa53a6cc66adb59d86e6293cf15\",\"dweb:/ipfs/QmcwveJdf3JLAPfFZShijKTTxMTP4joDDuSuFboXBe711S\"]},\"@cryptoalgebra/integral-core/contracts/libraries/Plugins.sol\":{\"keccak256\":\"0x354b1e099e9a47ce6fdc2ff4a4549249fa9c54434bf4dedb14fd4afe7d94d2d5\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://d9efe57e2239df29c7290fc1a27c8f0a6d8aa1f9e4c9271efadb8b29b29d7058\",\"dweb:/ipfs/QmbRJqfJR62Bx7XhN8qNBk85zjpWfyxSSiC5vHpxXnYMKb\"]},\"@cryptoalgebra/integral-core/contracts/libraries/SafeTransfer.sol\":{\"keccak256\":\"0x14e91c94e35c50efcd97e13609f686499c1dfa726ee0b3f6078fa4b99bde9a0a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1d9a7efa21d03180ded0e99d7ba05abd5c8ebedf2439a5a78091b679eadc4064\",\"dweb:/ipfs/QmVUZPhYPTb2yY9381AL242tfVsb3iWxmE2XwqcN9HG6eW\"]},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"keccak256\":\"0x89be10e757d242e9b18d5a32c9fbe2019f6d63052bbe46397a430a1d60d7f794\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f103ee2e4aecd37aac6ceefe670709cdd7613dee25fa2d4d9feaf7fc0aaa155e\",\"dweb:/ipfs/QmRiNZLoJk5k3HPMYGPGjZFd2ke1ZxjhJZkM45Ec9GH9hv\"]},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"keccak256\":\"0x9c80f545915582e63fe206c6ce27cbe85a86fc10b9cd2a0e8c9488fb7c2ee422\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://310136ad60820af4177a11a61d77a3686faf5fca4942b600e08fc940db38396b\",\"dweb:/ipfs/QmbCzMNSTL7Zi7M4UCSqBrkHtp4jjxUnGbkneCZKdR1qeq\"]},\"contracts/FeeDiscountConnector.sol\":{\"keccak256\":\"0x0eda4960b8edd40d8ed4df642546f2853839ab3f9d67eb0f4a9b191226b93a5f\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://918aef2151f6dd109c1e241a326bc73504dbafcc1db2703b2a33e04b6ce9199c\",\"dweb:/ipfs/QmVZEJpqR39Q5ou7H8MUWsWYdPGKb7BnRUfYvm36Vu8ovN\"]},\"contracts/interfaces/IFeeDiscountPlugin.sol\":{\"keccak256\":\"0x6c71fab8279bcef79c72d2b5db33892d3aa397ead4265aff42ea8c3f34717e36\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://13840df9f58030922eb8b92a3ac17270092ff9d3ea04f90b5d7c76d6d1e25c9f\",\"dweb:/ipfs/QmVLVsMa9GshFvqK6R8H55XeZSWF7KxWa6hj7tgujGCSxM\"]},\"contracts/interfaces/IFeeDiscountPluginImplementation.sol\":{\"keccak256\":\"0x388b2bedd1462ecefec2b8af7226af30660a690bbb73edd51eb3777755c6cb3c\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://93dbcd7945b2577d17b765dda38d4ae88011e52dbf2b09c7a2d5b330593d735a\",\"dweb:/ipfs/QmayEF2dSYVgy1WJx5JHKje6pFYEgWGuFNh5CebpQJJ8mh\"]},\"contracts/libraries/FeeDiscountStorage.sol\":{\"keccak256\":\"0x5acfdadbe80260a844fc8c367e5d552cd2371495b9b81494602dfb4cc073ac51\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://9a84ec317e06d69b00a7c8986f641a1ec5e17b4c9a17ac6d58cf571b929b5173\",\"dweb:/ipfs/QmcafqAcQXqnmyKy9omy4xfSjk31cBUvoM7jZRfN5oB54v\"]},\"contracts/test/UpgradeableFeeDiscountPluginTest.sol\":{\"keccak256\":\"0xe8d59ef6b51f3ccb14b6a3be597352d5b72f1992ae083406522e4728a5efa73c\",\"license\":\"BUSL-1.1\",\"urls\":[\"bzz-raw://97d576340ca6bd03961a5c807487f06947d630c6495e3ba5c4aee342a951fe96\",\"dweb:/ipfs/QmbQfp9gk3cEzctnruMKkm1mZoEk4yB5ekvT4MBW6ENBph\"]}},\"version\":1}"}}}}}