diff --git a/.changeset/green-years-work.md b/.changeset/green-years-work.md new file mode 100644 index 00000000..c2999b7d --- /dev/null +++ b/.changeset/green-years-work.md @@ -0,0 +1,5 @@ +--- +"@enzymefinance/abis": patch +--- + +Updated generated abis diff --git a/packages/abis/abis/IAaveDebtPositionLib.abi.json b/packages/abis/abis/IAaveDebtPositionLib.abi.json index aa9601b1..08eda1ca 100644 --- a/packages/abis/abis/IAaveDebtPositionLib.abi.json +++ b/packages/abis/abis/IAaveDebtPositionLib.abi.json @@ -1,194 +1,194 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_aaveDataProvider", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_aaveLendingPoolAddressProvider", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_aaveIncentivesController", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "BorrowedAssetAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "BorrowedAssetRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "CollateralAssetAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "CollateralAssetRemoved", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "assetIsBorrowed", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "assetIsBorrowed", "outputs": [ { - "internalType": "bool", "name": "isBorrowed_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "assetIsCollateral", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "assetIsCollateral", "outputs": [ { - "internalType": "bool", "name": "isCollateral_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getDebtTokenForBorrowedAsset", "inputs": [ { - "internalType": "address", "name": "_borrowedAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getDebtTokenForBorrowedAsset", "outputs": [ { - "internalType": "address", "name": "debtToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "BorrowedAssetAdded", + "inputs": [ + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "BorrowedAssetRemoved", + "inputs": [ + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "CollateralAssetAdded", + "inputs": [ + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "CollateralAssetRemoved", + "inputs": [ + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IAaveDebtPositionLib.sol b/packages/abis/abis/IAaveDebtPositionLib.sol index ceb8cba9..e5276fd6 100644 --- a/packages/abis/abis/IAaveDebtPositionLib.sol +++ b/packages/abis/abis/IAaveDebtPositionLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAaveDebtPositionLib { diff --git a/packages/abis/abis/IAaveDebtPositionParser.abi.json b/packages/abis/abis/IAaveDebtPositionParser.abi.json index f8c10c55..6c60585e 100644 --- a/packages/abis/abis/IAaveDebtPositionParser.abi.json +++ b/packages/abis/abis/IAaveDebtPositionParser.abi.json @@ -1,76 +1,76 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "_externalPosition", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_encodedActionArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "address[]", "name": "assetsToTransfer_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amountsToTransfer_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "assetsToReceive_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseInitArgs", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseInitArgs", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IAaveDebtPositionParser.sol b/packages/abis/abis/IAaveDebtPositionParser.sol index 11aebc57..8d338379 100644 --- a/packages/abis/abis/IAaveDebtPositionParser.sol +++ b/packages/abis/abis/IAaveDebtPositionParser.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAaveDebtPositionParser { diff --git a/packages/abis/abis/IAaveV2ATokenListOwner.abi.json b/packages/abis/abis/IAaveV2ATokenListOwner.abi.json index b1306a8d..3ebb1228 100644 --- a/packages/abis/abis/IAaveV2ATokenListOwner.abi.json +++ b/packages/abis/abis/IAaveV2ATokenListOwner.abi.json @@ -1,36 +1,36 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "string", "name": "_listDescription", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "address", "name": "_lendingPoolAddressProvider", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addValidatedItemsToList", "inputs": [ { - "internalType": "address[]", "name": "_items", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addValidatedItemsToList", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IAaveV2ATokenListOwner.sol b/packages/abis/abis/IAaveV2ATokenListOwner.sol index b4e258a3..783533c4 100644 --- a/packages/abis/abis/IAaveV2ATokenListOwner.sol +++ b/packages/abis/abis/IAaveV2ATokenListOwner.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAaveV2ATokenListOwner { diff --git a/packages/abis/abis/IAaveV2Adapter.abi.json b/packages/abis/abis/IAaveV2Adapter.abi.json index d4dbcfff..cd070e18 100644 --- a/packages/abis/abis/IAaveV2Adapter.abi.json +++ b/packages/abis/abis/IAaveV2Adapter.abi.json @@ -1,253 +1,253 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_aTokenListId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_lendingPool", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lend", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lend", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "redeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IAaveV2Adapter.sol b/packages/abis/abis/IAaveV2Adapter.sol index 2ba33ae0..8a8ba005 100644 --- a/packages/abis/abis/IAaveV2Adapter.sol +++ b/packages/abis/abis/IAaveV2Adapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAaveV2Adapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -17,7 +19,7 @@ interface IAaveV2Adapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IAaveV3ATokenListOwner.abi.json b/packages/abis/abis/IAaveV3ATokenListOwner.abi.json index f4966120..1626c2da 100644 --- a/packages/abis/abis/IAaveV3ATokenListOwner.abi.json +++ b/packages/abis/abis/IAaveV3ATokenListOwner.abi.json @@ -1,36 +1,36 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "string", "name": "_listDescription", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "address", "name": "_poolAddressProvider", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addValidatedItemsToList", "inputs": [ { - "internalType": "address[]", "name": "_items", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addValidatedItemsToList", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IAaveV3ATokenListOwner.sol b/packages/abis/abis/IAaveV3ATokenListOwner.sol index c9f21ad2..8f26a188 100644 --- a/packages/abis/abis/IAaveV3ATokenListOwner.sol +++ b/packages/abis/abis/IAaveV3ATokenListOwner.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAaveV3ATokenListOwner { diff --git a/packages/abis/abis/IAaveV3Adapter.abi.json b/packages/abis/abis/IAaveV3Adapter.abi.json index 62471a43..3469db32 100644 --- a/packages/abis/abis/IAaveV3Adapter.abi.json +++ b/packages/abis/abis/IAaveV3Adapter.abi.json @@ -1,258 +1,258 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_aTokenListId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_pool", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint16", "name": "_referralCode", - "type": "uint16" + "type": "uint16", + "internalType": "uint16" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lend", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lend", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "redeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IAaveV3Adapter.sol b/packages/abis/abis/IAaveV3Adapter.sol index 8ea2d439..643fcef5 100644 --- a/packages/abis/abis/IAaveV3Adapter.sol +++ b/packages/abis/abis/IAaveV3Adapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAaveV3Adapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -17,7 +19,7 @@ interface IAaveV3Adapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IAaveV3DebtPositionLib.abi.json b/packages/abis/abis/IAaveV3DebtPositionLib.abi.json index e9a821bb..0d84d863 100644 --- a/packages/abis/abis/IAaveV3DebtPositionLib.abi.json +++ b/packages/abis/abis/IAaveV3DebtPositionLib.abi.json @@ -1,194 +1,194 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "contract IAaveV3ProtocolDataProvider", "name": "_dataProvider", - "type": "address" + "type": "address", + "internalType": "contract IAaveV3ProtocolDataProvider" }, { - "internalType": "contract IAaveV3PoolAddressProvider", "name": "_lendingPoolAddressProvider", - "type": "address" + "type": "address", + "internalType": "contract IAaveV3PoolAddressProvider" }, { - "internalType": "uint16", "name": "_referralCode", - "type": "uint16" + "type": "uint16", + "internalType": "uint16" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "BorrowedAssetAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "BorrowedAssetRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "CollateralAssetAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "CollateralAssetRemoved", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "assetIsBorrowed", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "assetIsBorrowed", "outputs": [ { - "internalType": "bool", "name": "isBorrowed_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "assetIsCollateral", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "assetIsCollateral", "outputs": [ { - "internalType": "bool", "name": "isCollateral_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getDebtTokenForBorrowedAsset", "inputs": [ { - "internalType": "address", "name": "_borrowedAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getDebtTokenForBorrowedAsset", "outputs": [ { - "internalType": "address", "name": "debtToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "BorrowedAssetAdded", + "inputs": [ + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "BorrowedAssetRemoved", + "inputs": [ + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "CollateralAssetAdded", + "inputs": [ + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "CollateralAssetRemoved", + "inputs": [ + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IAaveV3DebtPositionLib.sol b/packages/abis/abis/IAaveV3DebtPositionLib.sol index abb68c87..66ddf3bf 100644 --- a/packages/abis/abis/IAaveV3DebtPositionLib.sol +++ b/packages/abis/abis/IAaveV3DebtPositionLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAaveV3DebtPositionLib { diff --git a/packages/abis/abis/IAaveV3DebtPositionParser.abi.json b/packages/abis/abis/IAaveV3DebtPositionParser.abi.json index dfaf7653..867478a0 100644 --- a/packages/abis/abis/IAaveV3DebtPositionParser.abi.json +++ b/packages/abis/abis/IAaveV3DebtPositionParser.abi.json @@ -1,81 +1,81 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_aTokenListId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "_externalPosition", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_encodedActionArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "address[]", "name": "assetsToTransfer_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amountsToTransfer_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "assetsToReceive_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseInitArgs", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseInitArgs", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IAaveV3DebtPositionParser.sol b/packages/abis/abis/IAaveV3DebtPositionParser.sol index 3211fdc0..3482fdcf 100644 --- a/packages/abis/abis/IAaveV3DebtPositionParser.sol +++ b/packages/abis/abis/IAaveV3DebtPositionParser.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAaveV3DebtPositionParser { diff --git a/packages/abis/abis/IAddressListRegistry.abi.json b/packages/abis/abis/IAddressListRegistry.abi.json index f460a07d..888740b0 100644 --- a/packages/abis/abis/IAddressListRegistry.abi.json +++ b/packages/abis/abis/IAddressListRegistry.abi.json @@ -1,520 +1,520 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "item", - "type": "address" - } - ], - "name": "ItemAddedToList", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "item", - "type": "address" - } - ], - "name": "ItemRemovedFromList", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "description", - "type": "string" - } - ], - "name": "ListAttested", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "creator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "enum IAddressListRegistry.UpdateType", - "name": "updateType", - "type": "uint8" - } - ], - "name": "ListCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "nextOwner", - "type": "address" - } - ], - "name": "ListOwnerSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "enum IAddressListRegistry.UpdateType", - "name": "prevUpdateType", - "type": "uint8" - }, - { - "indexed": true, - "internalType": "enum IAddressListRegistry.UpdateType", - "name": "nextUpdateType", - "type": "uint8" - } - ], - "name": "ListUpdateTypeSet", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addToList", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address[]", "name": "_items", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addToList", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "areAllInAllLists", "inputs": [ { - "internalType": "uint256[]", "name": "_ids", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "_items", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "areAllInAllLists", "outputs": [ { - "internalType": "bool", "name": "areAllInAllLists_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "areAllInList", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address[]", "name": "_items", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "areAllInList", "outputs": [ { - "internalType": "bool", "name": "areAllInList_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "areAllInSomeOfLists", "inputs": [ { - "internalType": "uint256[]", "name": "_ids", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "_items", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "areAllInSomeOfLists", "outputs": [ { - "internalType": "bool", "name": "areAllInSomeOfLists_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "areAllNotInAnyOfLists", "inputs": [ { - "internalType": "uint256[]", "name": "_ids", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "_items", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "areAllNotInAnyOfLists", "outputs": [ { - "internalType": "bool", "name": "areAllNotInAnyOfLists_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "areAllNotInList", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address[]", "name": "_items", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "areAllNotInList", "outputs": [ { - "internalType": "bool", "name": "areAllNotInList_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "attestLists", "inputs": [ { - "internalType": "uint256[]", "name": "_ids", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "string[]", "name": "_descriptions", - "type": "string[]" + "type": "string[]", + "internalType": "string[]" } ], - "name": "attestLists", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "createList", "inputs": [ { - "internalType": "address", "name": "_owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IAddressListRegistry.UpdateType", "name": "_updateType", - "type": "uint8" + "type": "uint8", + "internalType": "enum IAddressListRegistry.UpdateType" }, { - "internalType": "address[]", "name": "_initialItems", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "createList", "outputs": [ { - "internalType": "uint256", "name": "id_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getDispatcher", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "dispatcher_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getListCount", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "count_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getListOwner", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getListOwner", "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getListUpdateType", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getListUpdateType", "outputs": [ { - "internalType": "enum IAddressListRegistry.UpdateType", "name": "updateType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IAddressListRegistry.UpdateType" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isInAllLists", "inputs": [ { - "internalType": "uint256[]", "name": "_ids", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address", "name": "_item", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isInAllLists", "outputs": [ { - "internalType": "bool", "name": "isInAllLists_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isInList", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_item", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isInList", "outputs": [ { - "internalType": "bool", "name": "isInList_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isInSomeOfLists", "inputs": [ { - "internalType": "uint256[]", "name": "_ids", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address", "name": "_item", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isInSomeOfLists", "outputs": [ { - "internalType": "bool", "name": "isInSomeOfLists_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "removeFromList", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address[]", "name": "_items", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "removeFromList", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setListOwner", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_nextOwner", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setListOwner", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setListUpdateType", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "enum IAddressListRegistry.UpdateType", "name": "_nextUpdateType", - "type": "uint8" + "type": "uint8", + "internalType": "enum IAddressListRegistry.UpdateType" } ], - "name": "setListUpdateType", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ItemAddedToList", + "inputs": [ + { + "name": "id", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "item", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ItemRemovedFromList", + "inputs": [ + { + "name": "id", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "item", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ListAttested", + "inputs": [ + { + "name": "id", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "description", + "type": "string", + "indexed": false, + "internalType": "string" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ListCreated", + "inputs": [ + { + "name": "creator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "id", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "updateType", + "type": "uint8", + "indexed": false, + "internalType": "enum IAddressListRegistry.UpdateType" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ListOwnerSet", + "inputs": [ + { + "name": "id", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "nextOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ListUpdateTypeSet", + "inputs": [ + { + "name": "id", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "prevUpdateType", + "type": "uint8", + "indexed": false, + "internalType": "enum IAddressListRegistry.UpdateType" + }, + { + "name": "nextUpdateType", + "type": "uint8", + "indexed": true, + "internalType": "enum IAddressListRegistry.UpdateType" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IAddressListRegistry.sol b/packages/abis/abis/IAddressListRegistry.sol index f68e74c1..dd9f3f62 100644 --- a/packages/abis/abis/IAddressListRegistry.sol +++ b/packages/abis/abis/IAddressListRegistry.sol @@ -1,13 +1,15 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAddressListRegistry { + type UpdateType is uint8; + event ItemAddedToList(uint256 indexed id, address item); event ItemRemovedFromList(uint256 indexed id, address item); event ListAttested(uint256 indexed id, string description); - event ListCreated(address indexed creator, address indexed owner, uint256 id, uint8 updateType); + event ListCreated(address indexed creator, address indexed owner, uint256 id, UpdateType updateType); event ListOwnerSet(uint256 indexed id, address indexed nextOwner); - event ListUpdateTypeSet(uint256 indexed id, uint8 prevUpdateType, uint8 indexed nextUpdateType); + event ListUpdateTypeSet(uint256 indexed id, UpdateType prevUpdateType, UpdateType indexed nextUpdateType); function addToList(uint256 _id, address[] memory _items) external; function areAllInAllLists(uint256[] memory _ids, address[] memory _items) @@ -25,17 +27,17 @@ interface IAddressListRegistry { returns (bool areAllNotInAnyOfLists_); function areAllNotInList(uint256 _id, address[] memory _items) external view returns (bool areAllNotInList_); function attestLists(uint256[] memory _ids, string[] memory _descriptions) external; - function createList(address _owner, uint8 _updateType, address[] memory _initialItems) + function createList(address _owner, UpdateType _updateType, address[] memory _initialItems) external returns (uint256 id_); function getDispatcher() external view returns (address dispatcher_); function getListCount() external view returns (uint256 count_); function getListOwner(uint256 _id) external view returns (address owner_); - function getListUpdateType(uint256 _id) external view returns (uint8 updateType_); + function getListUpdateType(uint256 _id) external view returns (UpdateType updateType_); function isInAllLists(uint256[] memory _ids, address _item) external view returns (bool isInAllLists_); function isInList(uint256 _id, address _item) external view returns (bool isInList_); function isInSomeOfLists(uint256[] memory _ids, address _item) external view returns (bool isInSomeOfLists_); function removeFromList(uint256 _id, address[] memory _items) external; function setListOwner(uint256 _id, address _nextOwner) external; - function setListUpdateType(uint256 _id, uint8 _nextUpdateType) external; + function setListUpdateType(uint256 _id, UpdateType _nextUpdateType) external; } diff --git a/packages/abis/abis/IAllowedAdapterIncomingAssetsPolicy.abi.json b/packages/abis/abis/IAllowedAdapterIncomingAssetsPolicy.abi.json index 36373ed9..a5fb1a70 100644 --- a/packages/abis/abis/IAllowedAdapterIncomingAssetsPolicy.abi.json +++ b/packages/abis/abis/IAllowedAdapterIncomingAssetsPolicy.abi.json @@ -1,223 +1,223 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "listIds", - "type": "uint256[]" - } - ], - "name": "ListsSetForFund", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "getAddressListRegistry", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "addressListRegistry_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getListIdsForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getListIdsForFund", "outputs": [ { - "internalType": "uint256[]", "name": "listIds_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "passesRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address[]", "name": "_assets", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "passesRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ListsSetForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "listIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IAllowedAdapterIncomingAssetsPolicy.sol b/packages/abis/abis/IAllowedAdapterIncomingAssetsPolicy.sol index a1a7bacc..8edd3204 100644 --- a/packages/abis/abis/IAllowedAdapterIncomingAssetsPolicy.sol +++ b/packages/abis/abis/IAllowedAdapterIncomingAssetsPolicy.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAllowedAdapterIncomingAssetsPolicy { + type PolicyHook is uint8; + event ListsSetForFund(address indexed comptrollerProxy, uint256[] listIds); function activateForFund(address) external; @@ -11,10 +13,10 @@ interface IAllowedAdapterIncomingAssetsPolicy { function getListIdsForFund(address _comptrollerProxy) external view returns (uint256[] memory listIds_); function getPolicyManager() external view returns (address policyManager_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function passesRule(address _comptrollerProxy, address[] memory _assets) external view returns (bool isValid_); function updateFundSettings(address, bytes memory) external; - function validateRule(address _comptrollerProxy, uint8, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/IAllowedAdaptersPerManagerPolicy.abi.json b/packages/abis/abis/IAllowedAdaptersPerManagerPolicy.abi.json index 41093fc4..cab4f23d 100644 --- a/packages/abis/abis/IAllowedAdaptersPerManagerPolicy.abi.json +++ b/packages/abis/abis/IAllowedAdaptersPerManagerPolicy.abi.json @@ -1,239 +1,239 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "listIds", - "type": "uint256[]" - } - ], - "name": "ListsSetForFundAndUser", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "BYPASS_FLAG", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "getListIdsForFundAndUser", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_user", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getListIdsForFundAndUser", "outputs": [ { - "internalType": "uint256[]", "name": "listIds_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "passesRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_caller", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_adapter", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "passesRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ListsSetForFundAndUser", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "listIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IAllowedAdaptersPerManagerPolicy.sol b/packages/abis/abis/IAllowedAdaptersPerManagerPolicy.sol index 929cfc3d..5823ad58 100644 --- a/packages/abis/abis/IAllowedAdaptersPerManagerPolicy.sol +++ b/packages/abis/abis/IAllowedAdaptersPerManagerPolicy.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAllowedAdaptersPerManagerPolicy { + type PolicyHook is uint8; + event ListsSetForFundAndUser(address indexed comptrollerProxy, address indexed user, uint256[] listIds); function BYPASS_FLAG() external view returns (uint256); @@ -14,13 +16,13 @@ interface IAllowedAdaptersPerManagerPolicy { returns (uint256[] memory listIds_); function getPolicyManager() external view returns (address policyManager_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function passesRule(address _comptrollerProxy, address _caller, address _adapter) external view returns (bool isValid_); function updateFundSettings(address _comptrollerProxy, bytes memory _encodedSettings) external; - function validateRule(address _comptrollerProxy, uint8, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/IAllowedAdaptersPolicy.abi.json b/packages/abis/abis/IAllowedAdaptersPolicy.abi.json index e47cd622..e6ae6e8b 100644 --- a/packages/abis/abis/IAllowedAdaptersPolicy.abi.json +++ b/packages/abis/abis/IAllowedAdaptersPolicy.abi.json @@ -1,223 +1,223 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "listIds", - "type": "uint256[]" - } - ], - "name": "ListsSetForFund", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "getAddressListRegistry", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "addressListRegistry_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getListIdsForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getListIdsForFund", "outputs": [ { - "internalType": "uint256[]", "name": "listIds_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "passesRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_adapter", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "passesRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ListsSetForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "listIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IAllowedAdaptersPolicy.sol b/packages/abis/abis/IAllowedAdaptersPolicy.sol index f0acaa25..e264387c 100644 --- a/packages/abis/abis/IAllowedAdaptersPolicy.sol +++ b/packages/abis/abis/IAllowedAdaptersPolicy.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAllowedAdaptersPolicy { + type PolicyHook is uint8; + event ListsSetForFund(address indexed comptrollerProxy, uint256[] listIds); function activateForFund(address) external; @@ -11,10 +13,10 @@ interface IAllowedAdaptersPolicy { function getListIdsForFund(address _comptrollerProxy) external view returns (uint256[] memory listIds_); function getPolicyManager() external view returns (address policyManager_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function passesRule(address _comptrollerProxy, address _adapter) external view returns (bool isValid_); function updateFundSettings(address, bytes memory) external; - function validateRule(address _comptrollerProxy, uint8, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/IAllowedAssetsForRedemptionPolicy.abi.json b/packages/abis/abis/IAllowedAssetsForRedemptionPolicy.abi.json index 36373ed9..a5fb1a70 100644 --- a/packages/abis/abis/IAllowedAssetsForRedemptionPolicy.abi.json +++ b/packages/abis/abis/IAllowedAssetsForRedemptionPolicy.abi.json @@ -1,223 +1,223 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "listIds", - "type": "uint256[]" - } - ], - "name": "ListsSetForFund", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "getAddressListRegistry", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "addressListRegistry_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getListIdsForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getListIdsForFund", "outputs": [ { - "internalType": "uint256[]", "name": "listIds_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "passesRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address[]", "name": "_assets", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "passesRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ListsSetForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "listIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IAllowedAssetsForRedemptionPolicy.sol b/packages/abis/abis/IAllowedAssetsForRedemptionPolicy.sol index 1866a397..0c2b87bb 100644 --- a/packages/abis/abis/IAllowedAssetsForRedemptionPolicy.sol +++ b/packages/abis/abis/IAllowedAssetsForRedemptionPolicy.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAllowedAssetsForRedemptionPolicy { + type PolicyHook is uint8; + event ListsSetForFund(address indexed comptrollerProxy, uint256[] listIds); function activateForFund(address) external; @@ -11,10 +13,10 @@ interface IAllowedAssetsForRedemptionPolicy { function getListIdsForFund(address _comptrollerProxy) external view returns (uint256[] memory listIds_); function getPolicyManager() external view returns (address policyManager_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function passesRule(address _comptrollerProxy, address[] memory _assets) external view returns (bool isValid_); function updateFundSettings(address, bytes memory) external; - function validateRule(address _comptrollerProxy, uint8, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/IAllowedDepositRecipientsPolicy.abi.json b/packages/abis/abis/IAllowedDepositRecipientsPolicy.abi.json index 565c6b50..477b0dea 100644 --- a/packages/abis/abis/IAllowedDepositRecipientsPolicy.abi.json +++ b/packages/abis/abis/IAllowedDepositRecipientsPolicy.abi.json @@ -1,223 +1,223 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "listIds", - "type": "uint256[]" - } - ], - "name": "ListsSetForFund", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "getAddressListRegistry", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "addressListRegistry_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getListIdsForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getListIdsForFund", "outputs": [ { - "internalType": "uint256[]", "name": "listIds_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "passesRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_recipient", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "passesRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ListsSetForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "listIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IAllowedDepositRecipientsPolicy.sol b/packages/abis/abis/IAllowedDepositRecipientsPolicy.sol index bfeb57a8..8986ce61 100644 --- a/packages/abis/abis/IAllowedDepositRecipientsPolicy.sol +++ b/packages/abis/abis/IAllowedDepositRecipientsPolicy.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAllowedDepositRecipientsPolicy { + type PolicyHook is uint8; + event ListsSetForFund(address indexed comptrollerProxy, uint256[] listIds); function activateForFund(address) external; @@ -11,10 +13,10 @@ interface IAllowedDepositRecipientsPolicy { function getListIdsForFund(address _comptrollerProxy) external view returns (uint256[] memory listIds_); function getPolicyManager() external view returns (address policyManager_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function passesRule(address _comptrollerProxy, address _recipient) external view returns (bool isValid_); function updateFundSettings(address _comptrollerProxy, bytes memory _encodedSettings) external; - function validateRule(address _comptrollerProxy, uint8, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/IAllowedExternalPositionTypesPerManagerPolicy.abi.json b/packages/abis/abis/IAllowedExternalPositionTypesPerManagerPolicy.abi.json index 7b840354..594dfe30 100644 --- a/packages/abis/abis/IAllowedExternalPositionTypesPerManagerPolicy.abi.json +++ b/packages/abis/abis/IAllowedExternalPositionTypesPerManagerPolicy.abi.json @@ -1,239 +1,239 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_uintListRegistry", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "listIds", - "type": "uint256[]" - } - ], - "name": "ListsSetForFundAndUser", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "BYPASS_FLAG", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "getListIdsForFundAndUser", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_user", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getListIdsForFundAndUser", "outputs": [ { - "internalType": "uint256[]", "name": "listIds_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "passesRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_caller", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_externalPositionTypeId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "passesRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ListsSetForFundAndUser", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "listIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IAllowedExternalPositionTypesPerManagerPolicy.sol b/packages/abis/abis/IAllowedExternalPositionTypesPerManagerPolicy.sol index ad45d5eb..daebcf82 100644 --- a/packages/abis/abis/IAllowedExternalPositionTypesPerManagerPolicy.sol +++ b/packages/abis/abis/IAllowedExternalPositionTypesPerManagerPolicy.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAllowedExternalPositionTypesPerManagerPolicy { + type PolicyHook is uint8; + event ListsSetForFundAndUser(address indexed comptrollerProxy, address indexed user, uint256[] listIds); function BYPASS_FLAG() external view returns (uint256); @@ -14,13 +16,13 @@ interface IAllowedExternalPositionTypesPerManagerPolicy { returns (uint256[] memory listIds_); function getPolicyManager() external view returns (address policyManager_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function passesRule(address _comptrollerProxy, address _caller, uint256 _externalPositionTypeId) external view returns (bool isValid_); function updateFundSettings(address _comptrollerProxy, bytes memory _encodedSettings) external; - function validateRule(address _comptrollerProxy, uint8 _hook, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook _hook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/IAllowedExternalPositionTypesPolicy.abi.json b/packages/abis/abis/IAllowedExternalPositionTypesPolicy.abi.json index 480a18df..5be221e9 100644 --- a/packages/abis/abis/IAllowedExternalPositionTypesPolicy.abi.json +++ b/packages/abis/abis/IAllowedExternalPositionTypesPolicy.abi.json @@ -1,186 +1,186 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "externalPositionTypeId", - "type": "uint256" - } - ], - "name": "AllowedExternalPositionTypeAddedForFund", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "externalPositionTypeIsAllowedForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_externalPositionTypeId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "externalPositionTypeIsAllowedForFund", "outputs": [ { - "internalType": "bool", "name": "isAllowed_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "AllowedExternalPositionTypeAddedForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "externalPositionTypeId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IAllowedExternalPositionTypesPolicy.sol b/packages/abis/abis/IAllowedExternalPositionTypesPolicy.sol index b2025fd4..8fbcef46 100644 --- a/packages/abis/abis/IAllowedExternalPositionTypesPolicy.sol +++ b/packages/abis/abis/IAllowedExternalPositionTypesPolicy.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAllowedExternalPositionTypesPolicy { + type PolicyHook is uint8; + event AllowedExternalPositionTypeAddedForFund( address indexed comptrollerProxy, uint256 indexed externalPositionTypeId ); @@ -15,9 +17,9 @@ interface IAllowedExternalPositionTypesPolicy { returns (bool isAllowed_); function getPolicyManager() external view returns (address policyManager_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function updateFundSettings(address, bytes memory) external; - function validateRule(address _comptrollerProxy, uint8 _hook, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook _hook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/IAllowedSharesTransferRecipientsPolicy.abi.json b/packages/abis/abis/IAllowedSharesTransferRecipientsPolicy.abi.json index 565c6b50..477b0dea 100644 --- a/packages/abis/abis/IAllowedSharesTransferRecipientsPolicy.abi.json +++ b/packages/abis/abis/IAllowedSharesTransferRecipientsPolicy.abi.json @@ -1,223 +1,223 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "listIds", - "type": "uint256[]" - } - ], - "name": "ListsSetForFund", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "getAddressListRegistry", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "addressListRegistry_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getListIdsForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getListIdsForFund", "outputs": [ { - "internalType": "uint256[]", "name": "listIds_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "passesRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_recipient", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "passesRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ListsSetForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "listIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IAllowedSharesTransferRecipientsPolicy.sol b/packages/abis/abis/IAllowedSharesTransferRecipientsPolicy.sol index f2fb472a..0166734e 100644 --- a/packages/abis/abis/IAllowedSharesTransferRecipientsPolicy.sol +++ b/packages/abis/abis/IAllowedSharesTransferRecipientsPolicy.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAllowedSharesTransferRecipientsPolicy { + type PolicyHook is uint8; + event ListsSetForFund(address indexed comptrollerProxy, uint256[] listIds); function activateForFund(address) external; @@ -11,10 +13,10 @@ interface IAllowedSharesTransferRecipientsPolicy { function getListIdsForFund(address _comptrollerProxy) external view returns (uint256[] memory listIds_); function getPolicyManager() external view returns (address policyManager_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function passesRule(address _comptrollerProxy, address _recipient) external view returns (bool isValid_); function updateFundSettings(address _comptrollerProxy, bytes memory _encodedSettings) external; - function validateRule(address _comptrollerProxy, uint8, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/IArbitraryLoanPositionLib.abi.json b/packages/abis/abis/IArbitraryLoanPositionLib.abi.json index 7908ac03..72fa309c 100644 --- a/packages/abis/abis/IArbitraryLoanPositionLib.abi.json +++ b/packages/abis/abis/IArbitraryLoanPositionLib.abi.json @@ -1,268 +1,268 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_wrappedNativeAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "borrowableAmount", - "type": "uint256" - } - ], - "name": "BorrowableAmountUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "LoanClosed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "loanAsset", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "accountingModule", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "description", - "type": "bytes32" - } - ], - "name": "LoanConfigured", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "totalBorrowed", - "type": "uint256" - } - ], - "name": "TotalBorrowedUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "totalRepaid", - "type": "uint256" - } - ], - "name": "TotalRepaidUpdated", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "borrow", "inputs": [ { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "borrow", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getAccountingModule", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "accountingModule_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getBorrowableAmount", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "borrowableAmount_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getBorrower", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "borrower_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getLoanAsset", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "asset_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getTotalBorrowed", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "totalBorrowed_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getTotalRepaid", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "totalRepaid_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "loanIsClosed", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "isClosed_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "repay", "inputs": [ { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "repay", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "BorrowableAmountUpdated", + "inputs": [ + { + "name": "borrowableAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "LoanClosed", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "LoanConfigured", + "inputs": [ + { + "name": "borrower", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "loanAsset", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "accountingModule", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "description", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TotalBorrowedUpdated", + "inputs": [ + { + "name": "totalBorrowed", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TotalRepaidUpdated", + "inputs": [ + { + "name": "totalRepaid", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IArbitraryLoanPositionLib.sol b/packages/abis/abis/IArbitraryLoanPositionLib.sol index 8b4ccb54..3ffb34e6 100644 --- a/packages/abis/abis/IArbitraryLoanPositionLib.sol +++ b/packages/abis/abis/IArbitraryLoanPositionLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IArbitraryLoanPositionLib { diff --git a/packages/abis/abis/IArbitraryLoanPositionParser.abi.json b/packages/abis/abis/IArbitraryLoanPositionParser.abi.json index e3756bb7..5b5b1a1e 100644 --- a/packages/abis/abis/IArbitraryLoanPositionParser.abi.json +++ b/packages/abis/abis/IArbitraryLoanPositionParser.abi.json @@ -1,65 +1,65 @@ [ { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "_externalPosition", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_encodedActionArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "address[]", "name": "assetsToTransfer_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amountsToTransfer_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "assetsToReceive_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseInitArgs", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseInitArgs", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IArbitraryLoanPositionParser.sol b/packages/abis/abis/IArbitraryLoanPositionParser.sol index 3c9a5f9e..9e886332 100644 --- a/packages/abis/abis/IArbitraryLoanPositionParser.sol +++ b/packages/abis/abis/IArbitraryLoanPositionParser.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IArbitraryLoanPositionParser { diff --git a/packages/abis/abis/IArbitraryLoanTotalNominalDeltaOracleModule.abi.json b/packages/abis/abis/IArbitraryLoanTotalNominalDeltaOracleModule.abi.json index 6e0f8333..985c525f 100644 --- a/packages/abis/abis/IArbitraryLoanTotalNominalDeltaOracleModule.abi.json +++ b/packages/abis/abis/IArbitraryLoanTotalNominalDeltaOracleModule.abi.json @@ -1,212 +1,212 @@ [ { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "loan", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "oracle", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "stalenessThreshold", - "type": "uint32" - } - ], - "name": "OracleSetForLoan", - "type": "event" - }, - { + "type": "function", + "name": "calcFaceValue", "inputs": [ { - "internalType": "uint256", "name": "_totalBorrowed", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_totalRepaid", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcFaceValue", "outputs": [ { - "internalType": "uint256", "name": "faceValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "configure", "inputs": [ { - "internalType": "bytes", "name": "_configData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "configure", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getOracleInfoForLoan", "inputs": [ { - "internalType": "address", "name": "_loan", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getOracleInfoForLoan", "outputs": [ { + "name": "oracleInfo_", + "type": "tuple", + "internalType": "struct ArbitraryLoanTotalNominalDeltaOracleModule.OracleInfo", "components": [ { - "internalType": "address", "name": "oracle", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint32", "name": "stalenessThreshold", - "type": "uint32" + "type": "uint32", + "internalType": "uint32" } - ], - "internalType": "struct ArbitraryLoanTotalNominalDeltaOracleModule.OracleInfo", - "name": "oracleInfo_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "preBorrow", "inputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "preBorrow", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "preClose", "inputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "preClose", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "preReconcile", "inputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_repayableLoanAssetAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address[]", "name": "", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "preReconcile", "outputs": [ { - "internalType": "uint256", "name": "repayAmount_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "preRepay", "inputs": [ { - "internalType": "uint256", "name": "_totalBorrowed", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_prevTotalRepaid", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_repayAmountInput", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "preRepay", "outputs": [ { - "internalType": "uint256", "name": "repayAmount_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "receiveCallFromLoan", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromLoan", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "OracleSetForLoan", + "inputs": [ + { + "name": "loan", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "oracle", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "stalenessThreshold", + "type": "uint32", + "indexed": false, + "internalType": "uint32" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IArbitraryLoanTotalNominalDeltaOracleModule.sol b/packages/abis/abis/IArbitraryLoanTotalNominalDeltaOracleModule.sol index 711191af..d94621fb 100644 --- a/packages/abis/abis/IArbitraryLoanTotalNominalDeltaOracleModule.sol +++ b/packages/abis/abis/IArbitraryLoanTotalNominalDeltaOracleModule.sol @@ -1,14 +1,14 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IArbitraryLoanTotalNominalDeltaOracleModule { - event OracleSetForLoan(address indexed loan, address indexed oracle, uint32 stalenessThreshold); - struct OracleInfo { address oracle; uint32 stalenessThreshold; } + event OracleSetForLoan(address indexed loan, address indexed oracle, uint32 stalenessThreshold); + function calcFaceValue(uint256 _totalBorrowed, uint256 _totalRepaid) external view returns (uint256 faceValue_); function configure(bytes memory _configData) external; function getOracleInfoForLoan(address _loan) external view returns (OracleInfo memory oracleInfo_); diff --git a/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperFactory.abi.json b/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperFactory.abi.json index c89cc79f..5472af15 100644 --- a/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperFactory.abi.json +++ b/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperFactory.abi.json @@ -1,111 +1,111 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_fundDeployerV4", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_protocolFeeRecipient", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_protocolFeeBps", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "caller", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "name": "ProxyDeployed", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "deploy", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_depositToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint128", "name": "_allowedDepositorListId", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" }, { - "internalType": "bool", "name": "_transfersAllowed", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "uint128", "name": "_totalDepositMax", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" }, { - "internalType": "address", "name": "_feeRecipient", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint16", "name": "_feeBps", - "type": "uint16" + "type": "uint16", + "internalType": "uint16" }, { - "internalType": "bool", "name": "_feeExcludesDepositTokenPrincipal", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "address", "name": "_manager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "deploy", "outputs": [ { - "internalType": "address", "name": "wrapperProxy_", - "type": "address" + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ProxyDeployed", + "inputs": [ + { + "name": "caller", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "proxy", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperFactory.sol b/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperFactory.sol index 8d8ec9fa..212bc9fc 100644 --- a/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperFactory.sol +++ b/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperFactory.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IArbitraryTokenPhasedSharesWrapperFactory { diff --git a/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperLib.abi.json b/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperLib.abi.json index 5a13c53d..ac373388 100644 --- a/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperLib.abi.json +++ b/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperLib.abi.json @@ -1,807 +1,807 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_fundDeployerV4", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_protocolFeeRecipient", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_protocolFeeBps", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_initializer", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "listId", - "type": "uint256" - } - ], - "name": "AllowedDepositorListIdSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Deposited", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "FeePaid", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "depositToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "transfersAllowed", - "type": "bool" - }, - { - "indexed": false, - "internalType": "address", - "name": "feeRecipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint16", - "name": "feeBps", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "bool", - "name": "feeExcludesDepositTokenPrincipal", - "type": "bool" - } - ], - "name": "Initialized", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "manager", - "type": "address" - } - ], - "name": "ManagerSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "ProtocolFeePaid", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "ProtocolFeeStarted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "enum ArbitraryTokenPhasedSharesWrapperLib.State", - "name": "state", - "type": "uint8" - } - ], - "name": "StateSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "totalDepositMax", - "type": "uint256" - } - ], - "name": "TotalDepositMaxSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "claimedAssets", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "claimedAssetAmounts", - "type": "uint256[]" - } - ], - "name": "Withdrawn", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "allowance", "inputs": [ { - "internalType": "address", "name": "owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "spender", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "allowance", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "approve", "inputs": [ { - "internalType": "address", "name": "spender", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "approve", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "balanceOf", "inputs": [ { - "internalType": "address", "name": "account", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "balanceOf", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "decimals", + "inputs": [], "outputs": [ { - "internalType": "uint8", "name": "decimals_", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "decreaseAllowance", "inputs": [ { - "internalType": "address", "name": "spender", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "subtractedValue", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "decreaseAllowance", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "deposit", "inputs": [ { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "deposit", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "enterLockedState", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "enterRedeemState", "inputs": [ { - "internalType": "address[]", "name": "_untrackedAssetsToClaim", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "enterRedeemState", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getAllowedDepositorListId", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "allowedDepositorListId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDepositToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "depositToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFeeBps", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "feeBps_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFeeExcludesDepositTokenPrincipal", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "excludesPrincipal_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFeeRecipient", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "feeRecipient_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "manager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getProtocolFeeStart", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "protocolFeeStart_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getRedeemedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "redeemedAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getState", + "inputs": [], "outputs": [ { - "internalType": "enum ArbitraryTokenPhasedSharesWrapperLib.State", "name": "state_", - "type": "uint8" + "type": "uint8", + "internalType": "enum ArbitraryTokenPhasedSharesWrapperLib.State" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getTotalDepositMax", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "totalDepositMax_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getTransfersAllowed", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "transfersAllowed_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getVaultProxy", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "vaultProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "increaseAllowance", "inputs": [ { - "internalType": "address", "name": "spender", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "addedValue", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "increaseAllowance", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_depositToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint128", "name": "_allowedDepositorListId", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" }, { - "internalType": "bool", "name": "_transfersAllowed", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "uint128", "name": "_totalDepositMax", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" }, { - "internalType": "address", "name": "_feeRecipient", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint16", "name": "_feeBps", - "type": "uint16" + "type": "uint16", + "internalType": "uint16" }, { - "internalType": "bool", "name": "_feeExcludesDepositTokenPrincipal", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "address", "name": "_manager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "name", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "name_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "setAllowedDepositorListId", "inputs": [ { - "internalType": "uint128", "name": "_nextAllowedDepositorListId", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" } ], - "name": "setAllowedDepositorListId", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setManager", "inputs": [ { - "internalType": "address", "name": "_nextManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setManager", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setTotalDepositMax", "inputs": [ { - "internalType": "uint128", "name": "_nextTotalDepositMax", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" } ], - "name": "setTotalDepositMax", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "symbol", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "symbol_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "totalSupply", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "transfer", "inputs": [ { - "internalType": "address", "name": "_recipient", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "transfer", "outputs": [ { - "internalType": "bool", "name": "success_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "transferFrom", "inputs": [ { - "internalType": "address", "name": "_sender", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_recipient", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "transferFrom", "outputs": [ { - "internalType": "bool", "name": "success_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "withdraw", "inputs": [ { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address[]", "name": "_additionalAssets", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "withdraw", "outputs": [ { - "internalType": "address[]", "name": "claimedAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "claimedAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "AllowedDepositorListIdSet", + "inputs": [ + { + "name": "listId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Deposited", + "inputs": [ + { + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "FeePaid", + "inputs": [ + { + "name": "token", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "vaultProxy", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "depositToken", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "transfersAllowed", + "type": "bool", + "indexed": false, + "internalType": "bool" + }, + { + "name": "feeRecipient", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "feeBps", + "type": "uint16", + "indexed": false, + "internalType": "uint16" + }, + { + "name": "feeExcludesDepositTokenPrincipal", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ManagerSet", + "inputs": [ + { + "name": "manager", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ProtocolFeePaid", + "inputs": [ + { + "name": "token", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ProtocolFeeStarted", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "StateSet", + "inputs": [ + { + "name": "state", + "type": "uint8", + "indexed": false, + "internalType": "enum ArbitraryTokenPhasedSharesWrapperLib.State" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TotalDepositMaxSet", + "inputs": [ + { + "name": "totalDepositMax", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Withdrawn", + "inputs": [ + { + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "claimedAssets", + "type": "address[]", + "indexed": false, + "internalType": "address[]" + }, + { + "name": "claimedAssetAmounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperLib.sol b/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperLib.sol index 8dff07c8..54188e02 100644 --- a/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperLib.sol +++ b/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperLib.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IArbitraryTokenPhasedSharesWrapperLib { + type State is uint8; + event AllowedDepositorListIdSet(uint256 listId); event Approval(address indexed owner, address indexed spender, uint256 value); event Deposited(address indexed user, uint256 amount); @@ -17,7 +19,7 @@ interface IArbitraryTokenPhasedSharesWrapperLib { event ManagerSet(address manager); event ProtocolFeePaid(address token, uint256 amount); event ProtocolFeeStarted(); - event StateSet(uint8 state); + event StateSet(State state); event TotalDepositMaxSet(uint256 totalDepositMax); event Transfer(address indexed from, address indexed to, uint256 value); event Withdrawn(address indexed user, uint256 amount, address[] claimedAssets, uint256[] claimedAssetAmounts); @@ -38,7 +40,7 @@ interface IArbitraryTokenPhasedSharesWrapperLib { function getManager() external view returns (address manager_); function getProtocolFeeStart() external view returns (uint256 protocolFeeStart_); function getRedeemedAssets() external view returns (address[] memory redeemedAssets_); - function getState() external view returns (uint8 state_); + function getState() external view returns (State state_); function getTotalDepositMax() external view returns (uint256 totalDepositMax_); function getTransfersAllowed() external view returns (bool transfersAllowed_); function getVaultProxy() external view returns (address vaultProxy_); diff --git a/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperProxy.abi.json b/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperProxy.abi.json index d1889c6c..83f183f2 100644 --- a/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperProxy.abi.json +++ b/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperProxy.abi.json @@ -1,22 +1,22 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "bytes", "name": "_constructData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "address", "name": "_lib", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "stateMutability": "payable", - "type": "fallback" + "type": "fallback", + "stateMutability": "payable" } ] diff --git a/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperProxy.sol b/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperProxy.sol index fde3eb58..c6e5bbc9 100644 --- a/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperProxy.sol +++ b/packages/abis/abis/IArbitraryTokenPhasedSharesWrapperProxy.sol @@ -1,4 +1,6 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; -interface IArbitraryTokenPhasedSharesWrapperProxy {} +interface IArbitraryTokenPhasedSharesWrapperProxy { + fallback() external payable; +} diff --git a/packages/abis/abis/IArbitraryValueOracle.abi.json b/packages/abis/abis/IArbitraryValueOracle.abi.json index 4d000419..564144f4 100644 --- a/packages/abis/abis/IArbitraryValueOracle.abi.json +++ b/packages/abis/abis/IArbitraryValueOracle.abi.json @@ -1,46 +1,46 @@ [ { - "inputs": [], + "type": "function", "name": "getLastUpdated", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "lastUpdated_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getValue", + "inputs": [], "outputs": [ { - "internalType": "int256", "name": "value_", - "type": "int256" + "type": "int256", + "internalType": "int256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getValueWithTimestamp", + "inputs": [], "outputs": [ { - "internalType": "int256", "name": "value_", - "type": "int256" + "type": "int256", + "internalType": "int256" }, { - "internalType": "uint256", "name": "lastUpdated_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IArbitraryValueOracle.sol b/packages/abis/abis/IArbitraryValueOracle.sol index bdcfa813..0d973a73 100644 --- a/packages/abis/abis/IArbitraryValueOracle.sol +++ b/packages/abis/abis/IArbitraryValueOracle.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IArbitraryValueOracle { diff --git a/packages/abis/abis/IArrakisV2Adapter.abi.json b/packages/abis/abis/IArrakisV2Adapter.abi.json index fef8488d..239a8271 100644 --- a/packages/abis/abis/IArrakisV2Adapter.abi.json +++ b/packages/abis/abis/IArrakisV2Adapter.abi.json @@ -1,238 +1,238 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lend", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lend", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "redeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IArrakisV2Adapter.sol b/packages/abis/abis/IArrakisV2Adapter.sol index 4d82d2e8..22436590 100644 --- a/packages/abis/abis/IArrakisV2Adapter.sol +++ b/packages/abis/abis/IArrakisV2Adapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IArrakisV2Adapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -17,7 +19,7 @@ interface IArrakisV2Adapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IArrakisV2PriceFeed.abi.json b/packages/abis/abis/IArrakisV2PriceFeed.abi.json index f9030f29..0f3b5d5a 100644 --- a/packages/abis/abis/IArrakisV2PriceFeed.abi.json +++ b/packages/abis/abis/IArrakisV2PriceFeed.abi.json @@ -1,71 +1,71 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_uniswapV3FactoryAddress", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_valueInterpreterAddress", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "T", - "type": "error" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_derivativeAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "underlyings_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "underlyingAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" + }, + { + "type": "error", + "name": "T", + "inputs": [] } ] diff --git a/packages/abis/abis/IArrakisV2PriceFeed.sol b/packages/abis/abis/IArrakisV2PriceFeed.sol index 64d75847..ccf2221b 100644 --- a/packages/abis/abis/IArrakisV2PriceFeed.sol +++ b/packages/abis/abis/IArrakisV2PriceFeed.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IArrakisV2PriceFeed { + error T(); + function calcUnderlyingValues(address _derivative, uint256 _derivativeAmount) external returns (address[] memory underlyings_, uint256[] memory underlyingAmounts_); diff --git a/packages/abis/abis/IAssetValueCalculator.abi.json b/packages/abis/abis/IAssetValueCalculator.abi.json index 95ba555c..54a144c7 100644 --- a/packages/abis/abis/IAssetValueCalculator.abi.json +++ b/packages/abis/abis/IAssetValueCalculator.abi.json @@ -1,60 +1,60 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNormalizedAssetValue", "inputs": [ { - "internalType": "address", "name": "_baseAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_quoteAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNormalizedAssetValue", "outputs": [ { - "internalType": "uint256", "name": "timestamp_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "value_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bool", "name": "valueIsValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getValueInterpreter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "valueInterpreter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IAssetValueCalculator.sol b/packages/abis/abis/IAssetValueCalculator.sol index 3709fb2e..e0f4ed35 100644 --- a/packages/abis/abis/IAssetValueCalculator.sol +++ b/packages/abis/abis/IAssetValueCalculator.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAssetValueCalculator { diff --git a/packages/abis/abis/IAuraBalancerV2LpStakingAdapter.abi.json b/packages/abis/abis/IAuraBalancerV2LpStakingAdapter.abi.json index 57f633eb..04a89385 100644 --- a/packages/abis/abis/IAuraBalancerV2LpStakingAdapter.abi.json +++ b/packages/abis/abis/IAuraBalancerV2LpStakingAdapter.abi.json @@ -1,340 +1,340 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_balancerVault", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_stakingWrapperFactory", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "claimRewards", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "claimRewards", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lendAndStake", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lendAndStake", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "stake", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "stake", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "takeOrder", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "takeOrder", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "unstake", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "unstake", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "unstakeAndRedeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "unstakeAndRedeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IAuraBalancerV2LpStakingAdapter.sol b/packages/abis/abis/IAuraBalancerV2LpStakingAdapter.sol index 276327b7..20011139 100644 --- a/packages/abis/abis/IAuraBalancerV2LpStakingAdapter.sol +++ b/packages/abis/abis/IAuraBalancerV2LpStakingAdapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAuraBalancerV2LpStakingAdapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -18,7 +20,7 @@ interface IAuraBalancerV2LpStakingAdapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IAuraBalancerV2LpStakingWrapperFactory.abi.json b/packages/abis/abis/IAuraBalancerV2LpStakingWrapperFactory.abi.json index 2d44f73c..4b3637e4 100644 --- a/packages/abis/abis/IAuraBalancerV2LpStakingWrapperFactory.abi.json +++ b/packages/abis/abis/IAuraBalancerV2LpStakingWrapperFactory.abi.json @@ -1,191 +1,191 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_implementation", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "implementation", - "type": "address" - } - ], - "name": "ImplementationSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "name": "ProxyDeployed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "pid", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "wrapperProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "curveLpToken", - "type": "address" - } - ], - "name": "WrapperDeployed", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "deploy", "inputs": [ { - "internalType": "uint256", "name": "_pid", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "deploy", "outputs": [ { - "internalType": "address", "name": "wrapperProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getCurveLpTokenForWrapper", "inputs": [ { - "internalType": "address", "name": "_wrapper", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getCurveLpTokenForWrapper", "outputs": [ { - "internalType": "address", "name": "lpToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getWrapperForConvexPool", "inputs": [ { - "internalType": "uint256", "name": "_pid", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getWrapperForConvexPool", "outputs": [ { - "internalType": "address", "name": "wrapper_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "implementation", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "pauseWrappers", "inputs": [ { - "internalType": "address[]", "name": "_wrappers", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "pauseWrappers", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setImplementation", "inputs": [ { - "internalType": "address", "name": "_nextImplementation", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setImplementation", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "unpauseWrappers", "inputs": [ { - "internalType": "address[]", "name": "_wrappers", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "unpauseWrappers", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ImplementationSet", + "inputs": [ + { + "name": "implementation", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ProxyDeployed", + "inputs": [ + { + "name": "proxy", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "WrapperDeployed", + "inputs": [ + { + "name": "pid", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "wrapperProxy", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "curveLpToken", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IAuraBalancerV2LpStakingWrapperFactory.sol b/packages/abis/abis/IAuraBalancerV2LpStakingWrapperFactory.sol index c718ddf3..50810c26 100644 --- a/packages/abis/abis/IAuraBalancerV2LpStakingWrapperFactory.sol +++ b/packages/abis/abis/IAuraBalancerV2LpStakingWrapperFactory.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAuraBalancerV2LpStakingWrapperFactory { diff --git a/packages/abis/abis/IAuraBalancerV2LpStakingWrapperPriceFeed.abi.json b/packages/abis/abis/IAuraBalancerV2LpStakingWrapperPriceFeed.abi.json index 75c3da3b..571fbbc0 100644 --- a/packages/abis/abis/IAuraBalancerV2LpStakingWrapperPriceFeed.abi.json +++ b/packages/abis/abis/IAuraBalancerV2LpStakingWrapperPriceFeed.abi.json @@ -1,61 +1,61 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_wrapperFactory", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_derivativeAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "underlyings_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "underlyingAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IAuraBalancerV2LpStakingWrapperPriceFeed.sol b/packages/abis/abis/IAuraBalancerV2LpStakingWrapperPriceFeed.sol index 5d9804d6..812762a4 100644 --- a/packages/abis/abis/IAuraBalancerV2LpStakingWrapperPriceFeed.sol +++ b/packages/abis/abis/IAuraBalancerV2LpStakingWrapperPriceFeed.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IAuraBalancerV2LpStakingWrapperPriceFeed { diff --git a/packages/abis/abis/IBalancerV2GaugeTokenPriceFeed.abi.json b/packages/abis/abis/IBalancerV2GaugeTokenPriceFeed.abi.json index a28549a2..4ee1fa8f 100644 --- a/packages/abis/abis/IBalancerV2GaugeTokenPriceFeed.abi.json +++ b/packages/abis/abis/IBalancerV2GaugeTokenPriceFeed.abi.json @@ -1,50 +1,50 @@ [ { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_derivativeAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "underlyings_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "underlyingAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IBalancerV2GaugeTokenPriceFeed.sol b/packages/abis/abis/IBalancerV2GaugeTokenPriceFeed.sol index d61deb3c..2bbd673c 100644 --- a/packages/abis/abis/IBalancerV2GaugeTokenPriceFeed.sol +++ b/packages/abis/abis/IBalancerV2GaugeTokenPriceFeed.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IBalancerV2GaugeTokenPriceFeed { diff --git a/packages/abis/abis/IBalancerV2LiquidityAdapter.abi.json b/packages/abis/abis/IBalancerV2LiquidityAdapter.abi.json index de3886a6..3f131f36 100644 --- a/packages/abis/abis/IBalancerV2LiquidityAdapter.abi.json +++ b/packages/abis/abis/IBalancerV2LiquidityAdapter.abi.json @@ -1,417 +1,417 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_balancerVault", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_balancerMinter", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_balToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "claimRewards", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "claimRewards", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getCurveGaugeV2RewardsHandlerCrvToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "crvToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getCurveGaugeV2RewardsHandlerMinter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "minter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lend", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lend", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "lendAndStake", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lendAndStake", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "redeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "stake", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "stake", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "takeOrder", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "takeOrder", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "unstake", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "unstake", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "unstakeAndRedeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "unstakeAndRedeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IBalancerV2LiquidityAdapter.sol b/packages/abis/abis/IBalancerV2LiquidityAdapter.sol index f6e7288a..6a66d4c4 100644 --- a/packages/abis/abis/IBalancerV2LiquidityAdapter.sol +++ b/packages/abis/abis/IBalancerV2LiquidityAdapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IBalancerV2LiquidityAdapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -21,7 +23,7 @@ interface IBalancerV2LiquidityAdapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IBalancerV2StablePoolPriceFeed.abi.json b/packages/abis/abis/IBalancerV2StablePoolPriceFeed.abi.json index c121b3ae..ca758fad 100644 --- a/packages/abis/abis/IBalancerV2StablePoolPriceFeed.abi.json +++ b/packages/abis/abis/IBalancerV2StablePoolPriceFeed.abi.json @@ -1,256 +1,256 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_balancerVault", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address[]", "name": "_poolFactories", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "pool", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "invariantProxyAsset", - "type": "address" - } - ], - "name": "PoolAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "poolFactory", - "type": "address" - } - ], - "name": "PoolFactoryAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "poolFactory", - "type": "address" - } - ], - "name": "PoolFactoryRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "pool", - "type": "address" - } - ], - "name": "PoolRemoved", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addPoolFactories", "inputs": [ { - "internalType": "address[]", "name": "_poolFactories", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addPoolFactories", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addPools", "inputs": [ { - "internalType": "address[]", "name": "_pools", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_invariantProxyAssets", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addPools", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_derivativeAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "underlyings_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "underlyingAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPoolFactories", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "factories_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getPoolInfo", "inputs": [ { - "internalType": "address", "name": "_pool", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getPoolInfo", "outputs": [ { + "name": "poolInfo_", + "type": "tuple", + "internalType": "struct BalancerV2StablePoolPriceFeed.PoolInfo", "components": [ { - "internalType": "address", "name": "invariantProxyAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint8", "name": "invariantProxyAssetDecimals", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } - ], - "internalType": "struct BalancerV2StablePoolPriceFeed.PoolInfo", - "name": "poolInfo_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "removePoolFactories", "inputs": [ { - "internalType": "address[]", "name": "_poolFactories", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "removePoolFactories", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "removePools", "inputs": [ { - "internalType": "address[]", "name": "_pools", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "removePools", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "PoolAdded", + "inputs": [ + { + "name": "pool", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "invariantProxyAsset", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PoolFactoryAdded", + "inputs": [ + { + "name": "poolFactory", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PoolFactoryRemoved", + "inputs": [ + { + "name": "poolFactory", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PoolRemoved", + "inputs": [ + { + "name": "pool", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IBalancerV2StablePoolPriceFeed.sol b/packages/abis/abis/IBalancerV2StablePoolPriceFeed.sol index 1cb4a6fe..3e8587d7 100644 --- a/packages/abis/abis/IBalancerV2StablePoolPriceFeed.sol +++ b/packages/abis/abis/IBalancerV2StablePoolPriceFeed.sol @@ -1,17 +1,17 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IBalancerV2StablePoolPriceFeed { - event PoolAdded(address indexed pool, address indexed invariantProxyAsset); - event PoolFactoryAdded(address indexed poolFactory); - event PoolFactoryRemoved(address indexed poolFactory); - event PoolRemoved(address indexed pool); - struct PoolInfo { address invariantProxyAsset; uint8 invariantProxyAssetDecimals; } + event PoolAdded(address indexed pool, address indexed invariantProxyAsset); + event PoolFactoryAdded(address indexed poolFactory); + event PoolFactoryRemoved(address indexed poolFactory); + event PoolRemoved(address indexed pool); + function addPoolFactories(address[] memory _poolFactories) external; function addPools(address[] memory _pools, address[] memory _invariantProxyAssets) external; function calcUnderlyingValues(address _derivative, uint256 _derivativeAmount) diff --git a/packages/abis/abis/IBalancerV2WeightedPoolPriceFeed.abi.json b/packages/abis/abis/IBalancerV2WeightedPoolPriceFeed.abi.json index 390c279a..4455008e 100644 --- a/packages/abis/abis/IBalancerV2WeightedPoolPriceFeed.abi.json +++ b/packages/abis/abis/IBalancerV2WeightedPoolPriceFeed.abi.json @@ -1,172 +1,172 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_intermediaryAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_balancerVault", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address[]", "name": "_poolFactories", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "poolFactory", - "type": "address" - } - ], - "name": "PoolFactoryAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "poolFactory", - "type": "address" - } - ], - "name": "PoolFactoryRemoved", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addPoolFactories", "inputs": [ { - "internalType": "address[]", "name": "_poolFactories", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addPoolFactories", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_derivativeAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "underlyings_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "underlyingAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPoolFactories", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "factories_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "removePoolFactories", "inputs": [ { - "internalType": "address[]", "name": "_poolFactories", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "removePoolFactories", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "PoolFactoryAdded", + "inputs": [ + { + "name": "poolFactory", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PoolFactoryRemoved", + "inputs": [ + { + "name": "poolFactory", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IBalancerV2WeightedPoolPriceFeed.sol b/packages/abis/abis/IBalancerV2WeightedPoolPriceFeed.sol index 114c6758..051cfca2 100644 --- a/packages/abis/abis/IBalancerV2WeightedPoolPriceFeed.sol +++ b/packages/abis/abis/IBalancerV2WeightedPoolPriceFeed.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IBalancerV2WeightedPoolPriceFeed { diff --git a/packages/abis/abis/IChainlinkPriceFeedMixin.abi.json b/packages/abis/abis/IChainlinkPriceFeedMixin.abi.json index 0060923f..2b5c888f 100644 --- a/packages/abis/abis/IChainlinkPriceFeedMixin.abi.json +++ b/packages/abis/abis/IChainlinkPriceFeedMixin.abi.json @@ -1,177 +1,177 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_staleRateThreshold", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "getAggregatorForPrimitive", "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "prevEthUsdAggregator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "nextEthUsdAggregator", - "type": "address" + "name": "_primitive", + "type": "address", + "internalType": "address" } ], - "name": "EthUsdAggregatorSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "primitive", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "aggregator", - "type": "address" - }, - { - "indexed": false, - "internalType": "enum IChainlinkPriceFeedMixin.RateAsset", - "name": "rateAsset", - "type": "uint8" - }, + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "unit", - "type": "uint256" + "name": "aggregator_", + "type": "address", + "internalType": "address" } ], - "name": "PrimitiveAdded", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, - "inputs": [ + "type": "function", + "name": "getEthUsdAggregator", + "inputs": [], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "primitive", - "type": "address" + "name": "ethUsdAggregator_", + "type": "address", + "internalType": "address" } ], - "name": "PrimitiveRemoved", - "type": "event" + "stateMutability": "view" }, { + "type": "function", + "name": "getRateAssetForPrimitive", "inputs": [ { - "internalType": "address", "name": "_primitive", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getAggregatorForPrimitive", "outputs": [ { - "internalType": "address", - "name": "aggregator_", - "type": "address" + "name": "rateAsset_", + "type": "uint8", + "internalType": "enum IChainlinkPriceFeedMixin.RateAsset" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getStaleRateThreshold", "inputs": [], - "name": "getEthUsdAggregator", "outputs": [ { - "internalType": "address", - "name": "ethUsdAggregator_", - "type": "address" + "name": "staleRateThreshold_", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getUnitForPrimitive", "inputs": [ { - "internalType": "address", "name": "_primitive", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getRateAssetForPrimitive", "outputs": [ { - "internalType": "enum IChainlinkPriceFeedMixin.RateAsset", - "name": "rateAsset_", - "type": "uint8" + "name": "unit_", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getWethToken", "inputs": [], - "name": "getStaleRateThreshold", "outputs": [ { - "internalType": "uint256", - "name": "staleRateThreshold_", - "type": "uint256" + "name": "wethToken_", + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "event", + "name": "EthUsdAggregatorSet", "inputs": [ { - "internalType": "address", - "name": "_primitive", - "type": "address" + "name": "prevEthUsdAggregator", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "nextEthUsdAggregator", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "name": "getUnitForPrimitive", - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "PrimitiveAdded", + "inputs": [ { - "internalType": "uint256", - "name": "unit_", - "type": "uint256" + "name": "primitive", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "aggregator", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "rateAsset", + "type": "uint8", + "indexed": false, + "internalType": "enum IChainlinkPriceFeedMixin.RateAsset" + }, + { + "name": "unit", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "getWethToken", - "outputs": [ + "type": "event", + "name": "PrimitiveRemoved", + "inputs": [ { - "internalType": "address", - "name": "wethToken_", - "type": "address" + "name": "primitive", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IChainlinkPriceFeedMixin.sol b/packages/abis/abis/IChainlinkPriceFeedMixin.sol index 535cd1be..ba24d6e3 100644 --- a/packages/abis/abis/IChainlinkPriceFeedMixin.sol +++ b/packages/abis/abis/IChainlinkPriceFeedMixin.sol @@ -1,14 +1,16 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IChainlinkPriceFeedMixin { + type RateAsset is uint8; + event EthUsdAggregatorSet(address prevEthUsdAggregator, address nextEthUsdAggregator); - event PrimitiveAdded(address indexed primitive, address aggregator, uint8 rateAsset, uint256 unit); + event PrimitiveAdded(address indexed primitive, address aggregator, RateAsset rateAsset, uint256 unit); event PrimitiveRemoved(address indexed primitive); function getAggregatorForPrimitive(address _primitive) external view returns (address aggregator_); function getEthUsdAggregator() external view returns (address ethUsdAggregator_); - function getRateAssetForPrimitive(address _primitive) external view returns (uint8 rateAsset_); + function getRateAssetForPrimitive(address _primitive) external view returns (RateAsset rateAsset_); function getStaleRateThreshold() external view returns (uint256 staleRateThreshold_); function getUnitForPrimitive(address _primitive) external view returns (uint256 unit_); function getWethToken() external view returns (address wethToken_); diff --git a/packages/abis/abis/ICompoundAdapter.abi.json b/packages/abis/abis/ICompoundAdapter.abi.json index d04caad2..81aebcb8 100644 --- a/packages/abis/abis/ICompoundAdapter.abi.json +++ b/packages/abis/abis/ICompoundAdapter.abi.json @@ -1,301 +1,301 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_compoundPriceFeed", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "receive", + "stateMutability": "payable" + }, + { + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "claimRewards", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "claimRewards", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getCompoundPriceFeed", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "compoundPriceFeed_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getCompoundWethToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "compoundWethToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lend", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lend", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "redeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/ICompoundAdapter.sol b/packages/abis/abis/ICompoundAdapter.sol index c070f95b..16296fba 100644 --- a/packages/abis/abis/ICompoundAdapter.sol +++ b/packages/abis/abis/ICompoundAdapter.sol @@ -1,7 +1,11 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ICompoundAdapter { + type SpendAssetsHandleType is uint8; + + receive() external payable; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -20,7 +24,7 @@ interface ICompoundAdapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/ICompoundDebtPositionLib.abi.json b/packages/abis/abis/ICompoundDebtPositionLib.abi.json index 550499eb..d2be11b6 100644 --- a/packages/abis/abis/ICompoundDebtPositionLib.abi.json +++ b/packages/abis/abis/ICompoundDebtPositionLib.abi.json @@ -1,238 +1,238 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_compoundComptroller", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_compToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_weth", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "AssetBorrowed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "BorrowedAssetRepaid", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "CollateralAssetAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "CollateralAssetRemoved", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "assetIsCollateral", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "assetIsCollateral", "outputs": [ { - "internalType": "bool", "name": "isCollateral", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getCTokenFromBorrowedAsset", "inputs": [ { - "internalType": "address", "name": "_borrowedAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getCTokenFromBorrowedAsset", "outputs": [ { - "internalType": "address", "name": "cToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getCompToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "compToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getCompoundComptroller", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "compoundComptroller_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getWethToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "wethToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "AssetBorrowed", + "inputs": [ + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "BorrowedAssetRepaid", + "inputs": [ + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "CollateralAssetAdded", + "inputs": [ + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "CollateralAssetRemoved", + "inputs": [ + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/ICompoundDebtPositionLib.sol b/packages/abis/abis/ICompoundDebtPositionLib.sol index 79bde27e..a00eb17d 100644 --- a/packages/abis/abis/ICompoundDebtPositionLib.sol +++ b/packages/abis/abis/ICompoundDebtPositionLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ICompoundDebtPositionLib { diff --git a/packages/abis/abis/ICompoundDebtPositionParser.abi.json b/packages/abis/abis/ICompoundDebtPositionParser.abi.json index ed5806c1..d51a3beb 100644 --- a/packages/abis/abis/ICompoundDebtPositionParser.abi.json +++ b/packages/abis/abis/ICompoundDebtPositionParser.abi.json @@ -1,125 +1,125 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_compoundPriceFeed", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_compToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getCompToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "compToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getCompoundPriceFeed", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "compoundPriceFeed_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getValueInterpreter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "valueInterpreter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "_externalPosition", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_encodedActionArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "address[]", "name": "assetsToTransfer_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amountsToTransfer_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "assetsToReceive_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseInitArgs", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseInitArgs", "outputs": [ { - "internalType": "bytes", "name": "initArgs_", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/ICompoundDebtPositionParser.sol b/packages/abis/abis/ICompoundDebtPositionParser.sol index 941f56d4..c878a089 100644 --- a/packages/abis/abis/ICompoundDebtPositionParser.sol +++ b/packages/abis/abis/ICompoundDebtPositionParser.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ICompoundDebtPositionParser { diff --git a/packages/abis/abis/ICompoundPriceFeed.abi.json b/packages/abis/abis/ICompoundPriceFeed.abi.json index e6b24609..1a25b94a 100644 --- a/packages/abis/abis/ICompoundPriceFeed.abi.json +++ b/packages/abis/abis/ICompoundPriceFeed.abi.json @@ -1,148 +1,148 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_weth", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_ceth", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "cToken", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "token", - "type": "address" - } - ], - "name": "CTokenAdded", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addCTokens", "inputs": [ { - "internalType": "address[]", "name": "_cTokens", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addCTokens", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_derivativeAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "underlyings_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "underlyingAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getTokenFromCToken", "inputs": [ { - "internalType": "address", "name": "_cToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getTokenFromCToken", "outputs": [ { - "internalType": "address", "name": "token_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "CTokenAdded", + "inputs": [ + { + "name": "cToken", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "token", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/ICompoundPriceFeed.sol b/packages/abis/abis/ICompoundPriceFeed.sol index f51ac189..50e7b1e8 100644 --- a/packages/abis/abis/ICompoundPriceFeed.sol +++ b/packages/abis/abis/ICompoundPriceFeed.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ICompoundPriceFeed { diff --git a/packages/abis/abis/ICompoundV3Adapter.abi.json b/packages/abis/abis/ICompoundV3Adapter.abi.json index 3bd38b9f..dd4314b4 100644 --- a/packages/abis/abis/ICompoundV3Adapter.abi.json +++ b/packages/abis/abis/ICompoundV3Adapter.abi.json @@ -1,281 +1,281 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_compoundV3Configurator", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_compoundV3Rewards", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_cTokenListId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "claimRewards", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "claimRewards", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lend", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lend", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "redeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/ICompoundV3Adapter.sol b/packages/abis/abis/ICompoundV3Adapter.sol index 5215781e..27f5b549 100644 --- a/packages/abis/abis/ICompoundV3Adapter.sol +++ b/packages/abis/abis/ICompoundV3Adapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ICompoundV3Adapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -18,7 +20,7 @@ interface ICompoundV3Adapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/ICompoundV3CTokenListOwner.abi.json b/packages/abis/abis/ICompoundV3CTokenListOwner.abi.json index e487a805..3b1d4618 100644 --- a/packages/abis/abis/ICompoundV3CTokenListOwner.abi.json +++ b/packages/abis/abis/ICompoundV3CTokenListOwner.abi.json @@ -1,36 +1,36 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "string", "name": "_listDescription", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "address", "name": "_compoundV3Configurator", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addValidatedItemsToList", "inputs": [ { - "internalType": "address[]", "name": "_items", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addValidatedItemsToList", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/ICompoundV3CTokenListOwner.sol b/packages/abis/abis/ICompoundV3CTokenListOwner.sol index 98d7ae9a..c7a08159 100644 --- a/packages/abis/abis/ICompoundV3CTokenListOwner.sol +++ b/packages/abis/abis/ICompoundV3CTokenListOwner.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ICompoundV3CTokenListOwner { diff --git a/packages/abis/abis/IComptrollerLib.abi.json b/packages/abis/abis/IComptrollerLib.abi.json index 286c107d..6b62dcc6 100644 --- a/packages/abis/abis/IComptrollerLib.abi.json +++ b/packages/abis/abis/IComptrollerLib.abi.json @@ -1,897 +1,897 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_protocolFeeReserve", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_externalPositionManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_feeManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_gasRelayPaymasterFactory", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_mlnToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bool", - "name": "autoProtocolFeeSharesBuyback", - "type": "bool" - } - ], - "name": "AutoProtocolFeeSharesBuybackSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes", - "name": "failureReturnData", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "buybackValueInMln", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "gav", - "type": "uint256" - } - ], - "name": "BuyBackMaxProtocolFeeSharesFailed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "DeactivateFeeManagerFailed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "gasRelayPaymaster", - "type": "address" - } - ], - "name": "GasRelayPaymasterSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "sharesDue", - "type": "uint256" - } - ], - "name": "MigratedSharesDuePaid", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "PayProtocolFeeDuringDestructFailed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes", - "name": "failureReturnData", - "type": "bytes" - }, - { - "indexed": true, - "internalType": "address", - "name": "redeemer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesAmount", - "type": "uint256" - } - ], - "name": "PreRedeemSharesHookFailed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RedeemSharesInKindCalcGavFailed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "buyer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "investmentAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesIssued", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesReceived", - "type": "uint256" - } - ], - "name": "SharesBought", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "redeemer", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "receivedAssets", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "receivedAssetAmounts", - "type": "uint256[]" - } - ], - "name": "SharesRedeemed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - } - ], - "name": "VaultProxySet", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activate", "inputs": [ { - "internalType": "bool", "name": "_isMigration", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "name": "activate", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "buyBackProtocolFeeShares", "inputs": [ { - "internalType": "uint256", "name": "_sharesAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "buyBackProtocolFeeShares", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "buyShares", "inputs": [ { - "internalType": "uint256", "name": "_investmentAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_minSharesQuantity", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "buyShares", "outputs": [ { - "internalType": "uint256", "name": "sharesReceived_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "buySharesOnBehalf", "inputs": [ { - "internalType": "address", "name": "_buyer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_investmentAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_minSharesQuantity", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "buySharesOnBehalf", "outputs": [ { - "internalType": "uint256", "name": "sharesReceived_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "calcGav", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "gav_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "calcGrossShareValue", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "grossShareValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "callOnExtension", "inputs": [ { - "internalType": "address", "name": "_extension", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_callArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "callOnExtension", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "deployGasRelayPaymaster", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "depositToGasRelayPaymaster", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "destructActivated", "inputs": [ { - "internalType": "uint256", "name": "_deactivateFeeManagerGasLimit", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_payProtocolFeeGasLimit", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "destructActivated", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "destructUnactivated", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "doesAutoProtocolFeeSharesBuyback", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "doesAutoBuyback_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDenominationAsset", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "denominationAsset_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDispatcher", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "dispatcher_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getExternalPositionManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "externalPositionManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFeeManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "feeManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getGasRelayPaymaster", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "gasRelayPaymaster_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getGasRelayPaymasterFactory", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "gasRelayPaymasterFactory_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getGasRelayTrustedForwarder", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "trustedForwarder_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getLastSharesBoughtTimestampForAccount", "inputs": [ { - "internalType": "address", "name": "_who", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getLastSharesBoughtTimestampForAccount", "outputs": [ { - "internalType": "uint256", "name": "lastSharesBoughtTimestamp_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getMlnToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "mlnToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getProtocolFeeReserve", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "protocolFeeReserve_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getSharesActionTimelock", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "sharesActionTimelock_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getValueInterpreter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "valueInterpreter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getVaultProxy", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "vaultProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getWethToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "wethToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "address", "name": "_denominationAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_sharesActionTimelock", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "permissionedVaultAction", "inputs": [ { - "internalType": "enum IVault.VaultAction", "name": "_action", - "type": "uint8" + "type": "uint8", + "internalType": "enum IVault.VaultAction" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "permissionedVaultAction", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "preTransferSharesHook", "inputs": [ { - "internalType": "address", "name": "_sender", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_recipient", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "preTransferSharesHook", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "preTransferSharesHookFreelyTransferable", "inputs": [ { - "internalType": "address", "name": "_sender", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "preTransferSharesHookFreelyTransferable", "outputs": [], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "pullWethForGasRelayer", "inputs": [ { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "pullWethForGasRelayer", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "redeemSharesForSpecificAssets", "inputs": [ { - "internalType": "address", "name": "_recipient", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_sharesQuantity", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address[]", "name": "_payoutAssets", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "_payoutAssetPercentages", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "redeemSharesForSpecificAssets", "outputs": [ { - "internalType": "uint256[]", "name": "payoutAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "redeemSharesInKind", "inputs": [ { - "internalType": "address", "name": "_recipient", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_sharesQuantity", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address[]", "name": "_additionalAssets", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_assetsToSkip", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "redeemSharesInKind", "outputs": [ { - "internalType": "address[]", "name": "payoutAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "payoutAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setAutoProtocolFeeSharesBuyback", "inputs": [ { - "internalType": "bool", "name": "_nextAutoProtocolFeeSharesBuyback", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "name": "setAutoProtocolFeeSharesBuyback", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setGasRelayPaymaster", "inputs": [ { - "internalType": "address", "name": "_nextGasRelayPaymaster", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setGasRelayPaymaster", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setVaultProxy", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setVaultProxy", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "shutdownGasRelayPaymaster", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "vaultCallOnContract", "inputs": [ { - "internalType": "address", "name": "_contract", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "vaultCallOnContract", "outputs": [ { - "internalType": "bytes", "name": "returnData_", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "AutoProtocolFeeSharesBuybackSet", + "inputs": [ + { + "name": "autoProtocolFeeSharesBuyback", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "BuyBackMaxProtocolFeeSharesFailed", + "inputs": [ + { + "name": "failureReturnData", + "type": "bytes", + "indexed": true, + "internalType": "bytes" + }, + { + "name": "sharesAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "buybackValueInMln", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "gav", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "DeactivateFeeManagerFailed", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "GasRelayPaymasterSet", + "inputs": [ + { + "name": "gasRelayPaymaster", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "MigratedSharesDuePaid", + "inputs": [ + { + "name": "sharesDue", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PayProtocolFeeDuringDestructFailed", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "PreRedeemSharesHookFailed", + "inputs": [ + { + "name": "failureReturnData", + "type": "bytes", + "indexed": true, + "internalType": "bytes" + }, + { + "name": "redeemer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharesAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RedeemSharesInKindCalcGavFailed", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "SharesBought", + "inputs": [ + { + "name": "buyer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "investmentAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "sharesIssued", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "sharesReceived", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "SharesRedeemed", + "inputs": [ + { + "name": "redeemer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "recipient", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharesAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "receivedAssets", + "type": "address[]", + "indexed": false, + "internalType": "address[]" + }, + { + "name": "receivedAssetAmounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "VaultProxySet", + "inputs": [ + { + "name": "vaultProxy", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IComptrollerLib.sol b/packages/abis/abis/IComptrollerLib.sol index 699b5ba0..3316e401 100644 --- a/packages/abis/abis/IComptrollerLib.sol +++ b/packages/abis/abis/IComptrollerLib.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IComptrollerLib { + type VaultAction is uint8; + event AutoProtocolFeeSharesBuybackSet(bool autoProtocolFeeSharesBuyback); event BuyBackMaxProtocolFeeSharesFailed( bytes indexed failureReturnData, uint256 sharesAmount, uint256 buybackValueInMln, uint256 gav @@ -59,7 +61,7 @@ interface IComptrollerLib { function getVaultProxy() external view returns (address vaultProxy_); function getWethToken() external view returns (address wethToken_); function init(address _denominationAsset, uint256 _sharesActionTimelock) external; - function permissionedVaultAction(uint8 _action, bytes memory _actionData) external; + function permissionedVaultAction(VaultAction _action, bytes memory _actionData) external; function preTransferSharesHook(address _sender, address _recipient, uint256 _amount) external; function preTransferSharesHookFreelyTransferable(address _sender) external view; function pullWethForGasRelayer(uint256 _amount) external; diff --git a/packages/abis/abis/IConvexCurveLpStakingAdapter.abi.json b/packages/abis/abis/IConvexCurveLpStakingAdapter.abi.json index f968c302..a296cfeb 100644 --- a/packages/abis/abis/IConvexCurveLpStakingAdapter.abi.json +++ b/packages/abis/abis/IConvexCurveLpStakingAdapter.abi.json @@ -1,344 +1,344 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_curvePriceFeed", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wrappedNativeAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_stakingWrapperFactory", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_nativeAssetAddress", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "receive", + "stateMutability": "payable" + }, + { + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "claimRewards", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "claimRewards", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getCurveLiquidityWrappedNativeAsset", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "addressProvider_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lendAndStake", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lendAndStake", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "stake", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "stake", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "unstake", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "unstake", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "unstakeAndRedeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "unstakeAndRedeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IConvexCurveLpStakingAdapter.sol b/packages/abis/abis/IConvexCurveLpStakingAdapter.sol index e445868b..cac45d31 100644 --- a/packages/abis/abis/IConvexCurveLpStakingAdapter.sol +++ b/packages/abis/abis/IConvexCurveLpStakingAdapter.sol @@ -1,7 +1,11 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IConvexCurveLpStakingAdapter { + type SpendAssetsHandleType is uint8; + + receive() external payable; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -19,7 +23,7 @@ interface IConvexCurveLpStakingAdapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IConvexCurveLpStakingWrapperFactory.abi.json b/packages/abis/abis/IConvexCurveLpStakingWrapperFactory.abi.json index 2d44f73c..4b3637e4 100644 --- a/packages/abis/abis/IConvexCurveLpStakingWrapperFactory.abi.json +++ b/packages/abis/abis/IConvexCurveLpStakingWrapperFactory.abi.json @@ -1,191 +1,191 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_implementation", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "implementation", - "type": "address" - } - ], - "name": "ImplementationSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "name": "ProxyDeployed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "pid", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "wrapperProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "curveLpToken", - "type": "address" - } - ], - "name": "WrapperDeployed", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "deploy", "inputs": [ { - "internalType": "uint256", "name": "_pid", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "deploy", "outputs": [ { - "internalType": "address", "name": "wrapperProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getCurveLpTokenForWrapper", "inputs": [ { - "internalType": "address", "name": "_wrapper", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getCurveLpTokenForWrapper", "outputs": [ { - "internalType": "address", "name": "lpToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getWrapperForConvexPool", "inputs": [ { - "internalType": "uint256", "name": "_pid", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getWrapperForConvexPool", "outputs": [ { - "internalType": "address", "name": "wrapper_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "implementation", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "pauseWrappers", "inputs": [ { - "internalType": "address[]", "name": "_wrappers", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "pauseWrappers", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setImplementation", "inputs": [ { - "internalType": "address", "name": "_nextImplementation", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setImplementation", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "unpauseWrappers", "inputs": [ { - "internalType": "address[]", "name": "_wrappers", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "unpauseWrappers", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ImplementationSet", + "inputs": [ + { + "name": "implementation", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ProxyDeployed", + "inputs": [ + { + "name": "proxy", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "WrapperDeployed", + "inputs": [ + { + "name": "pid", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "wrapperProxy", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "curveLpToken", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IConvexCurveLpStakingWrapperFactory.sol b/packages/abis/abis/IConvexCurveLpStakingWrapperFactory.sol index d5b594f2..869dc582 100644 --- a/packages/abis/abis/IConvexCurveLpStakingWrapperFactory.sol +++ b/packages/abis/abis/IConvexCurveLpStakingWrapperFactory.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IConvexCurveLpStakingWrapperFactory { diff --git a/packages/abis/abis/IConvexCurveLpStakingWrapperLib.abi.json b/packages/abis/abis/IConvexCurveLpStakingWrapperLib.abi.json index 0be0f367..885dacf7 100644 --- a/packages/abis/abis/IConvexCurveLpStakingWrapperLib.abi.json +++ b/packages/abis/abis/IConvexCurveLpStakingWrapperLib.abi.json @@ -1,804 +1,804 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_convexBooster", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_crvToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_cvxToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Deposited", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bool", - "name": "isPaused", - "type": "bool" - } - ], - "name": "PauseToggled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "token", - "type": "address" - } - ], - "name": "RewardTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "name", - "type": "string" - } - ], - "name": "TokenNameSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "symbol", - "type": "string" - } - ], - "name": "TokenSymbolSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "integral", - "type": "uint256" - } - ], - "name": "TotalHarvestIntegralUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "lastCheckpointBalance", - "type": "uint256" - } - ], - "name": "TotalHarvestLastCheckpointBalanceUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "integral", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "claimableReward", - "type": "uint256" - } - ], - "name": "UserHarvestUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Withdrawn", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "addExtraRewards", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "allowance", "inputs": [ { - "internalType": "address", "name": "owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "spender", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "allowance", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "approve", "inputs": [ { - "internalType": "address", "name": "spender", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "approve", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "balanceOf", "inputs": [ { - "internalType": "address", "name": "account", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "balanceOf", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "claimRewardsFor", "inputs": [ { - "internalType": "address", "name": "_for", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "claimRewardsFor", "outputs": [ { - "internalType": "address[]", "name": "rewardTokens_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "claimedAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "claimRewardsForWithoutCheckpoint", "inputs": [ { - "internalType": "address", "name": "_for", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "claimRewardsForWithoutCheckpoint", "outputs": [ { - "internalType": "address[]", "name": "rewardTokens_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "claimedAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "decimals", + "inputs": [], "outputs": [ { - "internalType": "uint8", "name": "decimals_", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "decreaseAllowance", "inputs": [ { - "internalType": "address", "name": "spender", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "subtractedValue", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "decreaseAllowance", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "depositTo", "inputs": [ { - "internalType": "address", "name": "_to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "depositTo", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getConvexPool", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "convexPool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getConvexPoolId", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "convexPoolId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getCurveLpToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "curveLPToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRewardTokenAtIndex", "inputs": [ { - "internalType": "uint256", "name": "_index", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getRewardTokenAtIndex", "outputs": [ { - "internalType": "address", "name": "rewardToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getRewardTokenCount", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "count_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getRewardTokens", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "rewardTokens_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getTotalHarvestDataForRewardToken", "inputs": [ { - "internalType": "address", "name": "_rewardToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getTotalHarvestDataForRewardToken", "outputs": [ { + "name": "totalHarvestData_", + "type": "tuple", + "internalType": "struct IStakingWrapper.TotalHarvestData", "components": [ { - "internalType": "uint128", "name": "integral", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" }, { - "internalType": "uint128", "name": "lastCheckpointBalance", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" } - ], - "internalType": "struct IStakingWrapper.TotalHarvestData", - "name": "totalHarvestData_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getUserHarvestDataForRewardToken", "inputs": [ { - "internalType": "address", "name": "_user", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_rewardToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getUserHarvestDataForRewardToken", "outputs": [ { + "name": "userHarvestData_", + "type": "tuple", + "internalType": "struct IStakingWrapper.UserHarvestData", "components": [ { - "internalType": "uint128", "name": "integral", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" }, { - "internalType": "uint128", "name": "claimableReward", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" } - ], - "internalType": "struct IStakingWrapper.UserHarvestData", - "name": "userHarvestData_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "increaseAllowance", "inputs": [ { - "internalType": "address", "name": "spender", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "addedValue", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "increaseAllowance", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "uint256", "name": "_pid", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "isPaused", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "isPaused_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "name", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "name_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "setApprovals", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "symbol", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "symbol_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "togglePause", "inputs": [ { - "internalType": "bool", "name": "_isPaused", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "name": "togglePause", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "totalSupply", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "transfer", "inputs": [ { - "internalType": "address", "name": "to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "transfer", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "transferFrom", "inputs": [ { - "internalType": "address", "name": "from", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "transferFrom", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "withdrawTo", "inputs": [ { - "internalType": "address", "name": "_to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "withdrawTo", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "withdrawToOnBehalf", "inputs": [ { - "internalType": "address", "name": "_onBehalf", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "withdrawToOnBehalf", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "withdrawToWithoutCheckpoint", "inputs": [ { - "internalType": "address", "name": "_to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "withdrawToWithoutCheckpoint", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Deposited", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PauseToggled", + "inputs": [ + { + "name": "isPaused", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardTokenAdded", + "inputs": [ + { + "name": "token", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TokenNameSet", + "inputs": [ + { + "name": "name", + "type": "string", + "indexed": false, + "internalType": "string" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TokenSymbolSet", + "inputs": [ + { + "name": "symbol", + "type": "string", + "indexed": false, + "internalType": "string" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TotalHarvestIntegralUpdated", + "inputs": [ + { + "name": "rewardToken", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "integral", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TotalHarvestLastCheckpointBalanceUpdated", + "inputs": [ + { + "name": "rewardToken", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "lastCheckpointBalance", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "UserHarvestUpdated", + "inputs": [ + { + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "rewardToken", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "integral", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "claimableReward", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Withdrawn", + "inputs": [ + { + "name": "caller", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IConvexCurveLpStakingWrapperLib.sol b/packages/abis/abis/IConvexCurveLpStakingWrapperLib.sol index 88f55e68..fae42a2d 100644 --- a/packages/abis/abis/IConvexCurveLpStakingWrapperLib.sol +++ b/packages/abis/abis/IConvexCurveLpStakingWrapperLib.sol @@ -1,7 +1,17 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IConvexCurveLpStakingWrapperLib { + struct TotalHarvestData { + uint128 integral; + uint128 lastCheckpointBalance; + } + + struct UserHarvestData { + uint128 integral; + uint128 claimableReward; + } + event Approval(address indexed owner, address indexed spender, uint256 value); event Deposited(address indexed from, address indexed to, uint256 amount); event PauseToggled(bool isPaused); @@ -16,16 +26,6 @@ interface IConvexCurveLpStakingWrapperLib { ); event Withdrawn(address indexed caller, address indexed from, address indexed to, uint256 amount); - struct TotalHarvestData { - uint128 integral; - uint128 lastCheckpointBalance; - } - - struct UserHarvestData { - uint128 integral; - uint128 claimableReward; - } - function addExtraRewards() external; function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); diff --git a/packages/abis/abis/IConvexCurveLpStakingWrapperPriceFeed.abi.json b/packages/abis/abis/IConvexCurveLpStakingWrapperPriceFeed.abi.json index 75c3da3b..571fbbc0 100644 --- a/packages/abis/abis/IConvexCurveLpStakingWrapperPriceFeed.abi.json +++ b/packages/abis/abis/IConvexCurveLpStakingWrapperPriceFeed.abi.json @@ -1,61 +1,61 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_wrapperFactory", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_derivativeAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "underlyings_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "underlyingAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IConvexCurveLpStakingWrapperPriceFeed.sol b/packages/abis/abis/IConvexCurveLpStakingWrapperPriceFeed.sol index 30fae567..c1d59b56 100644 --- a/packages/abis/abis/IConvexCurveLpStakingWrapperPriceFeed.sol +++ b/packages/abis/abis/IConvexCurveLpStakingWrapperPriceFeed.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IConvexCurveLpStakingWrapperPriceFeed { diff --git a/packages/abis/abis/IConvexVotingPositionLib.abi.json b/packages/abis/abis/IConvexVotingPositionLib.abi.json index 6c248421..93a75a0e 100644 --- a/packages/abis/abis/IConvexVotingPositionLib.abi.json +++ b/packages/abis/abis/IConvexVotingPositionLib.abi.json @@ -1,100 +1,100 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_vlCvx", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vlCvxExtraRewards", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_cvxCrvStaking", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_cvxToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_snapshotDelegateRegistry", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_votiumMultiMerkleStash", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IConvexVotingPositionLib.sol b/packages/abis/abis/IConvexVotingPositionLib.sol index 24a5522e..ca3647eb 100644 --- a/packages/abis/abis/IConvexVotingPositionLib.sol +++ b/packages/abis/abis/IConvexVotingPositionLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IConvexVotingPositionLib { diff --git a/packages/abis/abis/IConvexVotingPositionParser.abi.json b/packages/abis/abis/IConvexVotingPositionParser.abi.json index 4c8b0013..7c227cd7 100644 --- a/packages/abis/abis/IConvexVotingPositionParser.abi.json +++ b/packages/abis/abis/IConvexVotingPositionParser.abi.json @@ -1,76 +1,76 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_cvxToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_encodedActionArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "address[]", "name": "assetsToTransfer_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amountsToTransfer_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "assetsToReceive_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseInitArgs", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseInitArgs", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IConvexVotingPositionParser.sol b/packages/abis/abis/IConvexVotingPositionParser.sol index e98038b4..10363c00 100644 --- a/packages/abis/abis/IConvexVotingPositionParser.sol +++ b/packages/abis/abis/IConvexVotingPositionParser.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IConvexVotingPositionParser { diff --git a/packages/abis/abis/ICumulativeSlippageTolerancePolicy.abi.json b/packages/abis/abis/ICumulativeSlippageTolerancePolicy.abi.json index dfac8563..a4d60470 100644 --- a/packages/abis/abis/ICumulativeSlippageTolerancePolicy.abi.json +++ b/packages/abis/abis/ICumulativeSlippageTolerancePolicy.abi.json @@ -1,442 +1,442 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_bypassableAdaptersListId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_tolerancePeriodDuration", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_pricelessAssetBypassTimelock", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_pricelessAssetBypassTimeLimit", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "nextCumulativeSlippage", - "type": "uint256" - } - ], - "name": "CumulativeSlippageUpdatedForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "tolerance", - "type": "uint256" - } - ], - "name": "FundSettingsSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "PricelessAssetBypassed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "PricelessAssetTimelockStarted", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "assetIsBypassableForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "assetIsBypassableForFund", "outputs": [ { - "internalType": "bool", "name": "isBypassable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "getAddressListRegistry", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "addressListRegistry_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getAssetBypassWindowStartForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getAssetBypassWindowStartForFund", "outputs": [ { - "internalType": "uint256", "name": "windowStart_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getBypassableAdaptersListId", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "bypassableAdaptersListId_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getPolicyInfoForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getPolicyInfoForFund", "outputs": [ { + "name": "policyInfo_", + "type": "tuple", + "internalType": "struct CumulativeSlippageTolerancePolicy.PolicyInfo", "components": [ { - "internalType": "uint64", "name": "tolerance", - "type": "uint64" + "type": "uint64", + "internalType": "uint64" }, { - "internalType": "uint64", "name": "cumulativeSlippage", - "type": "uint64" + "type": "uint64", + "internalType": "uint64" }, { - "internalType": "uint128", "name": "lastSlippageTimestamp", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" } - ], - "internalType": "struct CumulativeSlippageTolerancePolicy.PolicyInfo", - "name": "policyInfo_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPricelessAssetBypassTimeLimit", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "timeLimit_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPricelessAssetBypassTimelock", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "timelock_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPricelessAssetBypassValueInterpreter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "valueInterpreter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPricelessAssetBypassWethToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "wethToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getTolerancePeriodDuration", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "tolerancePeriodDuration_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "startAssetBypassTimelock", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "startAssetBypassTimelock", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "CumulativeSlippageUpdatedForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "nextCumulativeSlippage", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "FundSettingsSet", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tolerance", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PricelessAssetBypassed", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PricelessAssetTimelockStarted", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/ICumulativeSlippageTolerancePolicy.sol b/packages/abis/abis/ICumulativeSlippageTolerancePolicy.sol index 86125b07..b92b70c8 100644 --- a/packages/abis/abis/ICumulativeSlippageTolerancePolicy.sol +++ b/packages/abis/abis/ICumulativeSlippageTolerancePolicy.sol @@ -1,11 +1,8 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ICumulativeSlippageTolerancePolicy { - event CumulativeSlippageUpdatedForFund(address indexed comptrollerProxy, uint256 nextCumulativeSlippage); - event FundSettingsSet(address indexed comptrollerProxy, uint256 tolerance); - event PricelessAssetBypassed(address indexed comptrollerProxy, address indexed asset); - event PricelessAssetTimelockStarted(address indexed comptrollerProxy, address indexed asset); + type PolicyHook is uint8; struct PolicyInfo { uint64 tolerance; @@ -13,6 +10,11 @@ interface ICumulativeSlippageTolerancePolicy { uint128 lastSlippageTimestamp; } + event CumulativeSlippageUpdatedForFund(address indexed comptrollerProxy, uint256 nextCumulativeSlippage); + event FundSettingsSet(address indexed comptrollerProxy, uint256 tolerance); + event PricelessAssetBypassed(address indexed comptrollerProxy, address indexed asset); + event PricelessAssetTimelockStarted(address indexed comptrollerProxy, address indexed asset); + function activateForFund(address) external; function addFundSettings(address _comptrollerProxy, bytes memory _encodedSettings) external; function assetIsBypassableForFund(address _comptrollerProxy, address _asset) @@ -34,10 +36,10 @@ interface ICumulativeSlippageTolerancePolicy { function getPricelessAssetBypassWethToken() external view returns (address wethToken_); function getTolerancePeriodDuration() external view returns (uint256 tolerancePeriodDuration_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function startAssetBypassTimelock(address _asset) external; function updateFundSettings(address, bytes memory) external; - function validateRule(address _comptrollerProxy, uint8, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/ICurveExchangeAdapter.abi.json b/packages/abis/abis/ICurveExchangeAdapter.abi.json index e4f5102b..0d8271a3 100644 --- a/packages/abis/abis/ICurveExchangeAdapter.abi.json +++ b/packages/abis/abis/ICurveExchangeAdapter.abi.json @@ -1,255 +1,255 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressProvider", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "receive", + "stateMutability": "payable" + }, + { + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getCurveExchangeAddressProvider", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "curveExchangeAddressProvider_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getCurveExchangeWethToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "curveExchangeWethToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "takeOrder", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "takeOrder", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/ICurveExchangeAdapter.sol b/packages/abis/abis/ICurveExchangeAdapter.sol index 2795338f..744d8c56 100644 --- a/packages/abis/abis/ICurveExchangeAdapter.sol +++ b/packages/abis/abis/ICurveExchangeAdapter.sol @@ -1,7 +1,11 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ICurveExchangeAdapter { + type SpendAssetsHandleType is uint8; + + receive() external payable; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -18,7 +22,7 @@ interface ICurveExchangeAdapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/ICurveLiquidityAdapter.abi.json b/packages/abis/abis/ICurveLiquidityAdapter.abi.json index 565013e1..1c2ceb08 100644 --- a/packages/abis/abis/ICurveLiquidityAdapter.abi.json +++ b/packages/abis/abis/ICurveLiquidityAdapter.abi.json @@ -1,421 +1,421 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_curvePriceFeed", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wrappedNativeAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_curveMinter", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_crvToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_nativeAssetAddress", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "receive", + "stateMutability": "payable" + }, + { + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "claimRewards", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "claimRewards", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getCurveGaugeV2RewardsHandlerCrvToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "crvToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getCurveGaugeV2RewardsHandlerMinter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "minter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getCurveLiquidityWrappedNativeAsset", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "addressProvider_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lend", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lend", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "lendAndStake", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lendAndStake", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "redeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "stake", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "stake", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "unstake", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "unstake", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "unstakeAndRedeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "unstakeAndRedeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/ICurveLiquidityAdapter.sol b/packages/abis/abis/ICurveLiquidityAdapter.sol index eca8769a..073d8b62 100644 --- a/packages/abis/abis/ICurveLiquidityAdapter.sol +++ b/packages/abis/abis/ICurveLiquidityAdapter.sol @@ -1,7 +1,11 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ICurveLiquidityAdapter { + type SpendAssetsHandleType is uint8; + + receive() external payable; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -22,7 +26,7 @@ interface ICurveLiquidityAdapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/ICurvePriceFeed.abi.json b/packages/abis/abis/ICurvePriceFeed.abi.json index 89ea49e0..14fca424 100644 --- a/packages/abis/abis/ICurvePriceFeed.abi.json +++ b/packages/abis/abis/ICurvePriceFeed.abi.json @@ -1,449 +1,449 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressProvider", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_poolOwner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_virtualPriceDeviationThreshold", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "poolOwner", - "type": "address" - } - ], - "name": "CurvePoolOwnerSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "derivative", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "pool", - "type": "address" - } - ], - "name": "DerivativeAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "derivative", - "type": "address" - } - ], - "name": "DerivativeRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "pool", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "invariantProxyAsset", - "type": "address" - } - ], - "name": "InvariantProxyAssetForPoolSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "pool", - "type": "address" - } - ], - "name": "PoolRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "pool", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "virtualPrice", - "type": "uint256" - } - ], - "name": "ValidatedVirtualPriceForPoolUpdated", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addGaugeTokens", "inputs": [ { - "internalType": "address[]", "name": "_gaugeTokens", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_pools", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addGaugeTokens", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addGaugeTokensWithoutValidation", "inputs": [ { - "internalType": "address[]", "name": "_gaugeTokens", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_pools", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addGaugeTokensWithoutValidation", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addPools", "inputs": [ { - "internalType": "address[]", "name": "_pools", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_invariantProxyAssets", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "bool[]", "name": "_reentrantVirtualPrices", - "type": "bool[]" + "type": "bool[]", + "internalType": "bool[]" }, { - "internalType": "address[]", "name": "_lpTokens", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_gaugeTokens", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addPools", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addPoolsWithoutValidation", "inputs": [ { - "internalType": "address[]", "name": "_pools", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_invariantProxyAssets", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "bool[]", "name": "_reentrantVirtualPrices", - "type": "bool[]" + "type": "bool[]", + "internalType": "bool[]" }, { - "internalType": "address[]", "name": "_lpTokens", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_gaugeTokens", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addPoolsWithoutValidation", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_derivativeAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "underlyings_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "underlyingAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getCurvePoolOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "poolOwner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getLpTokenForPool", "inputs": [ { - "internalType": "address", "name": "_pool", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getLpTokenForPool", "outputs": [ { - "internalType": "address", "name": "lpToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getPoolForDerivative", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getPoolForDerivative", "outputs": [ { - "internalType": "address", "name": "pool_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getPoolInfo", "inputs": [ { - "internalType": "address", "name": "_pool", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getPoolInfo", "outputs": [ { + "name": "poolInfo_", + "type": "tuple", + "internalType": "struct CurvePriceFeed.PoolInfo", "components": [ { - "internalType": "address", "name": "invariantProxyAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint8", "name": "invariantProxyAssetDecimals", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" }, { - "internalType": "uint88", "name": "lastValidatedVirtualPrice", - "type": "uint88" + "type": "uint88", + "internalType": "uint88" } - ], - "internalType": "struct CurvePriceFeed.PoolInfo", - "name": "poolInfo_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "removeDerivatives", "inputs": [ { - "internalType": "address[]", "name": "_derivatives", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "removeDerivatives", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "removePools", "inputs": [ { - "internalType": "address[]", "name": "_pools", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "removePools", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setCurvePoolOwner", "inputs": [ { - "internalType": "address", "name": "_nextPoolOwner", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setCurvePoolOwner", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updatePoolInfo", "inputs": [ { - "internalType": "address[]", "name": "_pools", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_invariantProxyAssets", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "bool[]", "name": "_reentrantVirtualPrices", - "type": "bool[]" + "type": "bool[]", + "internalType": "bool[]" } ], - "name": "updatePoolInfo", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "CurvePoolOwnerSet", + "inputs": [ + { + "name": "poolOwner", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "DerivativeAdded", + "inputs": [ + { + "name": "derivative", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "pool", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "DerivativeRemoved", + "inputs": [ + { + "name": "derivative", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "InvariantProxyAssetForPoolSet", + "inputs": [ + { + "name": "pool", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "invariantProxyAsset", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PoolRemoved", + "inputs": [ + { + "name": "pool", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ValidatedVirtualPriceForPoolUpdated", + "inputs": [ + { + "name": "pool", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "virtualPrice", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/ICurvePriceFeed.sol b/packages/abis/abis/ICurvePriceFeed.sol index 748b4b18..4832edd1 100644 --- a/packages/abis/abis/ICurvePriceFeed.sol +++ b/packages/abis/abis/ICurvePriceFeed.sol @@ -1,7 +1,13 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ICurvePriceFeed { + struct PoolInfo { + address invariantProxyAsset; + uint8 invariantProxyAssetDecimals; + uint88 lastValidatedVirtualPrice; + } + event CurvePoolOwnerSet(address poolOwner); event DerivativeAdded(address indexed derivative, address indexed pool); event DerivativeRemoved(address indexed derivative); @@ -9,12 +15,6 @@ interface ICurvePriceFeed { event PoolRemoved(address indexed pool); event ValidatedVirtualPriceForPoolUpdated(address indexed pool, uint256 virtualPrice); - struct PoolInfo { - address invariantProxyAsset; - uint8 invariantProxyAssetDecimals; - uint88 lastValidatedVirtualPrice; - } - function addGaugeTokens(address[] memory _gaugeTokens, address[] memory _pools) external; function addGaugeTokensWithoutValidation(address[] memory _gaugeTokens, address[] memory _pools) external; function addPools( diff --git a/packages/abis/abis/IDepositWrapper.abi.json b/packages/abis/abis/IDepositWrapper.abi.json index c92c5f9c..4778e1de 100644 --- a/packages/abis/abis/IDepositWrapper.abi.json +++ b/packages/abis/abis/IDepositWrapper.abi.json @@ -1,125 +1,125 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_addressListRegistryAddress", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_allowedExchangesListId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "contract IWETH", "name": "_wrappedNativeAsset", - "type": "address" + "type": "address", + "internalType": "contract IWETH" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "receive", + "stateMutability": "payable" + }, + { + "type": "function", + "name": "exchangeErc20AndBuyShares", "inputs": [ { - "internalType": "contract IComptroller", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "contract IComptroller" }, { - "internalType": "uint256", "name": "_minSharesQuantity", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "contract ERC20", "name": "_inputAsset", - "type": "address" + "type": "address", + "internalType": "contract ERC20" }, { - "internalType": "uint256", "name": "_maxInputAssetAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_exchange", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_exchangeApproveTarget", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_exchangeData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "_exchangeMinReceived", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "exchangeErc20AndBuyShares", "outputs": [ { - "internalType": "uint256", "name": "sharesReceived_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "exchangeEthAndBuyShares", "inputs": [ { - "internalType": "contract IComptroller", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "contract IComptroller" }, { - "internalType": "uint256", "name": "_minSharesQuantity", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_exchange", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_exchangeApproveTarget", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_exchangeData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "_exchangeMinReceived", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "exchangeEthAndBuyShares", "outputs": [ { - "internalType": "uint256", "name": "sharesReceived_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "payable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" + "stateMutability": "payable" } ] diff --git a/packages/abis/abis/IDepositWrapper.sol b/packages/abis/abis/IDepositWrapper.sol index f63aaa21..96701e72 100644 --- a/packages/abis/abis/IDepositWrapper.sol +++ b/packages/abis/abis/IDepositWrapper.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IDepositWrapper { + receive() external payable; + function exchangeErc20AndBuyShares( address _comptrollerProxy, uint256 _minSharesQuantity, diff --git a/packages/abis/abis/IDerivativePriceFeed.abi.json b/packages/abis/abis/IDerivativePriceFeed.abi.json index c0305a29..4ee1fa8f 100644 --- a/packages/abis/abis/IDerivativePriceFeed.abi.json +++ b/packages/abis/abis/IDerivativePriceFeed.abi.json @@ -1,50 +1,50 @@ [ { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", - "name": "", - "type": "address" + "name": "_derivative", + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "_derivativeAmount", + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", - "name": "", - "type": "address[]" + "name": "underlyings_", + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" + "name": "underlyingAmounts_", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", - "name": "", - "type": "address" + "name": "_asset", + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "name": "isSupported_", + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IDerivativePriceFeed.sol b/packages/abis/abis/IDerivativePriceFeed.sol index ccc53883..cd4906db 100644 --- a/packages/abis/abis/IDerivativePriceFeed.sol +++ b/packages/abis/abis/IDerivativePriceFeed.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IDerivativePriceFeed { - function calcUnderlyingValues(address, uint256) external returns (address[] memory, uint256[] memory); - function isSupportedAsset(address) external view returns (bool); + function calcUnderlyingValues(address _derivative, uint256 _derivativeAmount) + external + returns (address[] memory underlyings_, uint256[] memory underlyingAmounts_); + function isSupportedAsset(address _asset) external view returns (bool isSupported_); } diff --git a/packages/abis/abis/IDispatcher.abi.json b/packages/abis/abis/IDispatcher.abi.json index af28f13e..e0991801 100644 --- a/packages/abis/abis/IDispatcher.abi.json +++ b/packages/abis/abis/IDispatcher.abi.json @@ -1,706 +1,706 @@ [ { + "type": "constructor", "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "cancelMigration", "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "prevFundDeployer", - "type": "address" + "name": "_vaultProxy", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "address", - "name": "nextFundDeployer", - "type": "address" + "name": "_bypassFailure", + "type": "bool", + "internalType": "bool" } ], - "name": "CurrentFundDeployerSet", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "claimOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "deployVaultProxy", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "prevFundDeployer", - "type": "address" + "name": "_vaultLib", + "type": "address", + "internalType": "address" }, { - "indexed": true, - "internalType": "address", - "name": "nextFundDeployer", - "type": "address" + "name": "_owner", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "address", - "name": "nextVaultAccessor", - "type": "address" + "name": "_vaultAccessor", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "address", - "name": "nextVaultLib", - "type": "address" - }, + "name": "_fundName", + "type": "string", + "internalType": "string" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "executableTimestamp", - "type": "uint256" + "name": "vaultProxy_", + "type": "address", + "internalType": "address" } ], - "name": "MigrationCancelled", - "type": "event" + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "executeMigration", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "prevFundDeployer", - "type": "address" + "name": "_vaultProxy", + "type": "address", + "internalType": "address" }, { - "indexed": true, - "internalType": "address", - "name": "nextFundDeployer", - "type": "address" - }, + "name": "_bypassFailure", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "getCurrentFundDeployer", + "inputs": [], + "outputs": [ { - "indexed": false, - "internalType": "address", - "name": "nextVaultAccessor", - "type": "address" - }, + "name": "currentFundDeployer_", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getFundDeployerForVaultProxy", + "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "nextVaultLib", - "type": "address" - }, + "name": "_vaultProxy", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "executableTimestamp", - "type": "uint256" + "name": "fundDeployer_", + "type": "address", + "internalType": "address" } ], - "name": "MigrationExecuted", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "getMigrationRequestDetailsForVaultProxy", "inputs": [ { - "indexed": false, - "internalType": "bytes", - "name": "failureReturnData", - "type": "bytes" - }, - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, + "name": "_vaultProxy", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "prevFundDeployer", - "type": "address" + "name": "nextFundDeployer_", + "type": "address", + "internalType": "address" }, { - "indexed": true, - "internalType": "address", - "name": "nextFundDeployer", - "type": "address" + "name": "nextVaultAccessor_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "address", - "name": "nextVaultAccessor", - "type": "address" + "name": "nextVaultLib_", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "address", - "name": "nextVaultLib", - "type": "address" + "name": "executableTimestamp_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "MigrationInCancelHookFailed", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes", - "name": "failureReturnData", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "enum IMigrationHookHandler.MigrationOutHook", - "name": "hook", - "type": "uint8" - }, - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, + "type": "function", + "name": "getMigrationTimelock", + "inputs": [], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "prevFundDeployer", - "type": "address" - }, + "name": "migrationTimelock_", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getNominatedOwner", + "inputs": [], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "nextFundDeployer", - "type": "address" - }, + "name": "nominatedOwner_", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getOwner", + "inputs": [], + "outputs": [ { - "indexed": false, - "internalType": "address", - "name": "nextVaultAccessor", - "type": "address" - }, + "name": "owner_", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getSharesTokenSymbol", + "inputs": [], + "outputs": [ { - "indexed": false, - "internalType": "address", - "name": "nextVaultLib", - "type": "address" + "name": "sharesTokenSymbol_", + "type": "string", + "internalType": "string" } ], - "name": "MigrationOutHookFailed", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "getTimelockRemainingForMigrationRequest", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, + "name": "_vaultProxy", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "prevFundDeployer", - "type": "address" - }, + "name": "secondsRemaining_", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "hasExecutableMigrationRequest", + "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "nextFundDeployer", - "type": "address" - }, + "name": "_vaultProxy", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "address", - "name": "nextVaultAccessor", - "type": "address" - }, + "name": "hasExecutableRequest_", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "hasMigrationRequest", + "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "nextVaultLib", - "type": "address" - }, + "name": "_vaultProxy", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "executableTimestamp", - "type": "uint256" + "name": "hasMigrationRequest_", + "type": "bool", + "internalType": "bool" } ], - "name": "MigrationSignaled", - "type": "event" + "stateMutability": "view" + }, + { + "type": "function", + "name": "removeNominatedOwner", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "setCurrentFundDeployer", "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "prevTimelock", - "type": "uint256" - }, + "name": "_nextFundDeployer", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setMigrationTimelock", + "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "nextTimelock", - "type": "uint256" + "name": "_nextTimelock", + "type": "uint256", + "internalType": "uint256" } ], - "name": "MigrationTimelockSet", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "setNominatedOwner", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "nominatedOwner", - "type": "address" + "name": "_nextNominatedOwner", + "type": "address", + "internalType": "address" } ], - "name": "NominatedOwnerRemoved", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "setSharesTokenSymbol", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "nominatedOwner", - "type": "address" + "name": "_nextSymbol", + "type": "string", + "internalType": "string" } ], - "name": "NominatedOwnerSet", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "signalMigration", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "prevOwner", - "type": "address" + "name": "_vaultProxy", + "type": "address", + "internalType": "address" }, { - "indexed": true, - "internalType": "address", - "name": "nextOwner", - "type": "address" + "name": "_nextVaultAccessor", + "type": "address", + "internalType": "address" + }, + { + "name": "_nextVaultLib", + "type": "address", + "internalType": "address" + }, + { + "name": "_bypassFailure", + "type": "bool", + "internalType": "bool" } ], - "name": "OwnershipTransferred", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "event", + "name": "CurrentFundDeployerSet", "inputs": [ { + "name": "prevFundDeployer", + "type": "address", "indexed": false, - "internalType": "string", - "name": "_nextSymbol", - "type": "string" + "internalType": "address" + }, + { + "name": "nextFundDeployer", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "name": "SharesTokenSymbolSet", - "type": "event" + "anonymous": false }, { - "anonymous": false, + "type": "event", + "name": "MigrationCancelled", "inputs": [ { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "prevFundDeployer", + "type": "address", "indexed": true, - "internalType": "address", - "name": "fundDeployer", - "type": "address" + "internalType": "address" }, { + "name": "nextFundDeployer", + "type": "address", "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" + "internalType": "address" }, { + "name": "nextVaultAccessor", + "type": "address", "indexed": false, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "vaultLib", - "type": "address" + "internalType": "address" }, { + "name": "nextVaultLib", + "type": "address", "indexed": false, - "internalType": "address", - "name": "vaultAccessor", - "type": "address" + "internalType": "address" }, { + "name": "executableTimestamp", + "type": "uint256", "indexed": false, - "internalType": "string", - "name": "fundName", - "type": "string" + "internalType": "uint256" } ], - "name": "VaultProxyDeployed", - "type": "event" + "anonymous": false }, { + "type": "event", + "name": "MigrationExecuted", "inputs": [ { - "internalType": "address", - "name": "_vaultProxy", - "type": "address" + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "bool", - "name": "_bypassFailure", - "type": "bool" - } - ], - "name": "cancelMigration", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "claimOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_vaultLib", - "type": "address" + "name": "prevFundDeployer", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "_owner", - "type": "address" + "name": "nextFundDeployer", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "_vaultAccessor", - "type": "address" + "name": "nextVaultAccessor", + "type": "address", + "indexed": false, + "internalType": "address" }, { - "internalType": "string", - "name": "_fundName", - "type": "string" - } - ], - "name": "deployVaultProxy", - "outputs": [ + "name": "nextVaultLib", + "type": "address", + "indexed": false, + "internalType": "address" + }, { - "internalType": "address", - "name": "vaultProxy_", - "type": "address" + "name": "executableTimestamp", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "MigrationInCancelHookFailed", "inputs": [ { - "internalType": "address", - "name": "_vaultProxy", - "type": "address" + "name": "failureReturnData", + "type": "bytes", + "indexed": false, + "internalType": "bytes" }, { - "internalType": "bool", - "name": "_bypassFailure", - "type": "bool" - } - ], - "name": "executeMigration", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getCurrentFundDeployer", - "outputs": [ + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "address", - "name": "currentFundDeployer_", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + "name": "prevFundDeployer", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "address", - "name": "_vaultProxy", - "type": "address" - } - ], - "name": "getFundDeployerForVaultProxy", - "outputs": [ + "name": "nextFundDeployer", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "address", - "name": "fundDeployer_", - "type": "address" + "name": "nextVaultAccessor", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "nextVaultLib", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "MigrationOutHookFailed", "inputs": [ { - "internalType": "address", - "name": "_vaultProxy", - "type": "address" - } - ], - "name": "getMigrationRequestDetailsForVaultProxy", - "outputs": [ + "name": "failureReturnData", + "type": "bytes", + "indexed": false, + "internalType": "bytes" + }, { - "internalType": "address", - "name": "nextFundDeployer_", - "type": "address" + "name": "hook", + "type": "uint8", + "indexed": false, + "internalType": "enum IMigrationHookHandler.MigrationOutHook" }, { - "internalType": "address", - "name": "nextVaultAccessor_", - "type": "address" + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "nextVaultLib_", - "type": "address" + "name": "prevFundDeployer", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "executableTimestamp_", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getMigrationTimelock", - "outputs": [ + "name": "nextFundDeployer", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "uint256", - "name": "migrationTimelock_", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getNominatedOwner", - "outputs": [ + "name": "nextVaultAccessor", + "type": "address", + "indexed": false, + "internalType": "address" + }, { - "internalType": "address", - "name": "nominatedOwner_", - "type": "address" + "name": "nextVaultLib", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "getOwner", - "outputs": [ + "type": "event", + "name": "MigrationSignaled", + "inputs": [ { - "internalType": "address", - "name": "owner_", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getSharesTokenSymbol", - "outputs": [ + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "string", - "name": "sharesTokenSymbol_", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + "name": "prevFundDeployer", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "address", - "name": "_vaultProxy", - "type": "address" - } - ], - "name": "getTimelockRemainingForMigrationRequest", - "outputs": [ + "name": "nextFundDeployer", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "uint256", - "name": "secondsRemaining_", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + "name": "nextVaultAccessor", + "type": "address", + "indexed": false, + "internalType": "address" + }, { - "internalType": "address", - "name": "_vaultProxy", - "type": "address" - } - ], - "name": "hasExecutableMigrationRequest", - "outputs": [ + "name": "nextVaultLib", + "type": "address", + "indexed": false, + "internalType": "address" + }, { - "internalType": "bool", - "name": "hasExecutableRequest_", - "type": "bool" + "name": "executableTimestamp", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "MigrationTimelockSet", "inputs": [ { - "internalType": "address", - "name": "_vaultProxy", - "type": "address" - } - ], - "name": "hasMigrationRequest", - "outputs": [ + "name": "prevTimelock", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, { - "internalType": "bool", - "name": "hasMigrationRequest_", - "type": "bool" + "name": "nextTimelock", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "removeNominatedOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "NominatedOwnerRemoved", "inputs": [ { - "internalType": "address", - "name": "_nextFundDeployer", - "type": "address" + "name": "nominatedOwner", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "name": "setCurrentFundDeployer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "NominatedOwnerSet", "inputs": [ { - "internalType": "uint256", - "name": "_nextTimelock", - "type": "uint256" + "name": "nominatedOwner", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "name": "setMigrationTimelock", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "OwnershipTransferred", "inputs": [ { - "internalType": "address", - "name": "_nextNominatedOwner", - "type": "address" + "name": "prevOwner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "nextOwner", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "name": "setNominatedOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "SharesTokenSymbolSet", "inputs": [ { - "internalType": "string", "name": "_nextSymbol", - "type": "string" + "type": "string", + "indexed": false, + "internalType": "string" } ], - "name": "setSharesTokenSymbol", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "VaultProxyDeployed", "inputs": [ { - "internalType": "address", - "name": "_vaultProxy", - "type": "address" + "name": "fundDeployer", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "_nextVaultAccessor", - "type": "address" + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "_nextVaultLib", - "type": "address" + "name": "vaultProxy", + "type": "address", + "indexed": false, + "internalType": "address" }, { - "internalType": "bool", - "name": "_bypassFailure", - "type": "bool" + "name": "vaultLib", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "vaultAccessor", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "fundName", + "type": "string", + "indexed": false, + "internalType": "string" } ], - "name": "signalMigration", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IDispatcher.sol b/packages/abis/abis/IDispatcher.sol index 3f06ffa2..33f6c24d 100644 --- a/packages/abis/abis/IDispatcher.sol +++ b/packages/abis/abis/IDispatcher.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IDispatcher { + type MigrationOutHook is uint8; + event CurrentFundDeployerSet(address prevFundDeployer, address nextFundDeployer); event MigrationCancelled( address indexed vaultProxy, @@ -29,7 +31,7 @@ interface IDispatcher { ); event MigrationOutHookFailed( bytes failureReturnData, - uint8 hook, + MigrationOutHook hook, address indexed vaultProxy, address indexed prevFundDeployer, address indexed nextFundDeployer, diff --git a/packages/abis/abis/IERC4626Adapter.abi.json b/packages/abis/abis/IERC4626Adapter.abi.json index 3c8bdca7..91801c4d 100644 --- a/packages/abis/abis/IERC4626Adapter.abi.json +++ b/packages/abis/abis/IERC4626Adapter.abi.json @@ -1,238 +1,238 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lend", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lend", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "redeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IERC4626Adapter.sol b/packages/abis/abis/IERC4626Adapter.sol index 014a1bdd..35621753 100644 --- a/packages/abis/abis/IERC4626Adapter.sol +++ b/packages/abis/abis/IERC4626Adapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IERC4626Adapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -17,7 +19,7 @@ interface IERC4626Adapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IERC4626PriceFeed.abi.json b/packages/abis/abis/IERC4626PriceFeed.abi.json index 147d05b0..1db6b7f0 100644 --- a/packages/abis/abis/IERC4626PriceFeed.abi.json +++ b/packages/abis/abis/IERC4626PriceFeed.abi.json @@ -1,50 +1,50 @@ [ { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_derivativeAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "underlyings_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "underlyingAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IERC4626PriceFeed.sol b/packages/abis/abis/IERC4626PriceFeed.sol index 3c79d184..633b43cf 100644 --- a/packages/abis/abis/IERC4626PriceFeed.sol +++ b/packages/abis/abis/IERC4626PriceFeed.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IERC4626PriceFeed { diff --git a/packages/abis/abis/IEntranceRateBurnFee.abi.json b/packages/abis/abis/IEntranceRateBurnFee.abi.json index 5643b8cc..21f833af 100644 --- a/packages/abis/abis/IEntranceRateBurnFee.abi.json +++ b/packages/abis/abis/IEntranceRateBurnFee.abi.json @@ -1,311 +1,311 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_feeManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rate", - "type": "uint256" - } - ], - "name": "FundSettingsAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "payer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesQuantity", - "type": "uint256" - } - ], - "name": "Settled", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_settingsData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getFeeManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "feeManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRateForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getRateForFund", "outputs": [ { - "internalType": "uint256", "name": "rate_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRecipientForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getRecipientForFund", "outputs": [ { - "internalType": "address", "name": "recipient_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getSettlementType", + "inputs": [], "outputs": [ { - "internalType": "enum IFeeManager.SettlementType", "name": "settlementType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.SettlementType" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "payout", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "payout", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settle", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "_settlementData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "settle", "outputs": [ { - "internalType": "enum IFeeManager.SettlementType", "name": "settlementType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.SettlementType" }, { - "internalType": "address", "name": "payer_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "sharesDue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settlesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "settlesOnHook", "outputs": [ { - "internalType": "bool", "name": "settles_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "update", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "update", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updatesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "updatesOnHook", "outputs": [ { - "internalType": "bool", "name": "updates_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "FundSettingsAdded", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "rate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Settled", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "payer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharesQuantity", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IEntranceRateBurnFee.sol b/packages/abis/abis/IEntranceRateBurnFee.sol index cfeb9270..38c7b4b1 100644 --- a/packages/abis/abis/IEntranceRateBurnFee.sol +++ b/packages/abis/abis/IEntranceRateBurnFee.sol @@ -1,7 +1,10 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IEntranceRateBurnFee { + type FeeHook is uint8; + type SettlementType is uint8; + event FundSettingsAdded(address indexed comptrollerProxy, uint256 rate); event Settled(address indexed comptrollerProxy, address indexed payer, uint256 sharesQuantity); @@ -10,12 +13,12 @@ interface IEntranceRateBurnFee { function getFeeManager() external view returns (address feeManager_); function getRateForFund(address _comptrollerProxy) external view returns (uint256 rate_); function getRecipientForFund(address) external view returns (address recipient_); - function getSettlementType() external view returns (uint8 settlementType_); + function getSettlementType() external view returns (SettlementType settlementType_); function payout(address, address) external returns (bool); - function settle(address _comptrollerProxy, address, uint8, bytes memory _settlementData, uint256) + function settle(address _comptrollerProxy, address, FeeHook, bytes memory _settlementData, uint256) external - returns (uint8 settlementType_, address payer_, uint256 sharesDue_); - function settlesOnHook(uint8 _hook) external view returns (bool settles_, bool usesGav_); - function update(address, address, uint8, bytes memory, uint256) external; - function updatesOnHook(uint8) external view returns (bool updates_, bool usesGav_); + returns (SettlementType settlementType_, address payer_, uint256 sharesDue_); + function settlesOnHook(FeeHook _hook) external view returns (bool settles_, bool usesGav_); + function update(address, address, FeeHook, bytes memory, uint256) external; + function updatesOnHook(FeeHook) external view returns (bool updates_, bool usesGav_); } diff --git a/packages/abis/abis/IEntranceRateDirectFee.abi.json b/packages/abis/abis/IEntranceRateDirectFee.abi.json index 47c82934..88d74227 100644 --- a/packages/abis/abis/IEntranceRateDirectFee.abi.json +++ b/packages/abis/abis/IEntranceRateDirectFee.abi.json @@ -1,348 +1,348 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_feeManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rate", - "type": "uint256" - } - ], - "name": "FundSettingsAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - } - ], - "name": "RecipientSetForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "payer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesQuantity", - "type": "uint256" - } - ], - "name": "Settled", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_settingsData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getFeeManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "feeManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRateForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getRateForFund", "outputs": [ { - "internalType": "uint256", "name": "rate_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRecipientForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getRecipientForFund", "outputs": [ { - "internalType": "address", "name": "recipient_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getSettlementType", + "inputs": [], "outputs": [ { - "internalType": "enum IFeeManager.SettlementType", "name": "settlementType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.SettlementType" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "payout", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "payout", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setRecipientForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_recipient", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setRecipientForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settle", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "_settlementData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "settle", "outputs": [ { - "internalType": "enum IFeeManager.SettlementType", "name": "settlementType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.SettlementType" }, { - "internalType": "address", "name": "payer_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "sharesDue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settlesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "settlesOnHook", "outputs": [ { - "internalType": "bool", "name": "settles_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "update", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "update", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updatesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "updatesOnHook", "outputs": [ { - "internalType": "bool", "name": "updates_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "FundSettingsAdded", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "rate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RecipientSetForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "recipient", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Settled", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "payer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharesQuantity", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IEntranceRateDirectFee.sol b/packages/abis/abis/IEntranceRateDirectFee.sol index 2acfe239..3ae75c6c 100644 --- a/packages/abis/abis/IEntranceRateDirectFee.sol +++ b/packages/abis/abis/IEntranceRateDirectFee.sol @@ -1,7 +1,10 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IEntranceRateDirectFee { + type FeeHook is uint8; + type SettlementType is uint8; + event FundSettingsAdded(address indexed comptrollerProxy, uint256 rate); event RecipientSetForFund(address indexed comptrollerProxy, address indexed recipient); event Settled(address indexed comptrollerProxy, address indexed payer, uint256 sharesQuantity); @@ -11,13 +14,13 @@ interface IEntranceRateDirectFee { function getFeeManager() external view returns (address feeManager_); function getRateForFund(address _comptrollerProxy) external view returns (uint256 rate_); function getRecipientForFund(address _comptrollerProxy) external view returns (address recipient_); - function getSettlementType() external view returns (uint8 settlementType_); + function getSettlementType() external view returns (SettlementType settlementType_); function payout(address, address) external returns (bool); function setRecipientForFund(address _comptrollerProxy, address _recipient) external; - function settle(address _comptrollerProxy, address, uint8, bytes memory _settlementData, uint256) + function settle(address _comptrollerProxy, address, FeeHook, bytes memory _settlementData, uint256) external - returns (uint8 settlementType_, address payer_, uint256 sharesDue_); - function settlesOnHook(uint8 _hook) external view returns (bool settles_, bool usesGav_); - function update(address, address, uint8, bytes memory, uint256) external; - function updatesOnHook(uint8) external view returns (bool updates_, bool usesGav_); + returns (SettlementType settlementType_, address payer_, uint256 sharesDue_); + function settlesOnHook(FeeHook _hook) external view returns (bool settles_, bool usesGav_); + function update(address, address, FeeHook, bytes memory, uint256) external; + function updatesOnHook(FeeHook) external view returns (bool updates_, bool usesGav_); } diff --git a/packages/abis/abis/IExitRateBurnFee.abi.json b/packages/abis/abis/IExitRateBurnFee.abi.json index 72b6fd2e..409b4662 100644 --- a/packages/abis/abis/IExitRateBurnFee.abi.json +++ b/packages/abis/abis/IExitRateBurnFee.abi.json @@ -1,342 +1,342 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_feeManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "inKindRate", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "specificAssetsRate", - "type": "uint256" - } - ], - "name": "FundSettingsAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "payer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesQuantity", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "bool", - "name": "forSpecificAssets", - "type": "bool" - } - ], - "name": "Settled", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_settingsData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getFeeManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "feeManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getInKindRateForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getInKindRateForFund", "outputs": [ { - "internalType": "uint256", "name": "rate_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRecipientForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getRecipientForFund", "outputs": [ { - "internalType": "address", "name": "recipient_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getSettlementType", + "inputs": [], "outputs": [ { - "internalType": "enum IFeeManager.SettlementType", "name": "settlementType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.SettlementType" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getSpecificAssetsRateForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getSpecificAssetsRateForFund", "outputs": [ { - "internalType": "uint256", "name": "rate_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "payout", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "payout", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settle", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "_settlementData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "settle", "outputs": [ { - "internalType": "enum IFeeManager.SettlementType", "name": "settlementType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.SettlementType" }, { - "internalType": "address", "name": "payer_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "sharesDue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settlesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "settlesOnHook", "outputs": [ { - "internalType": "bool", "name": "settles_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "update", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "update", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updatesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "updatesOnHook", "outputs": [ { - "internalType": "bool", "name": "updates_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "FundSettingsAdded", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "inKindRate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "specificAssetsRate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Settled", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "payer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharesQuantity", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "forSpecificAssets", + "type": "bool", + "indexed": true, + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IExitRateBurnFee.sol b/packages/abis/abis/IExitRateBurnFee.sol index f5114ac1..f48fc7de 100644 --- a/packages/abis/abis/IExitRateBurnFee.sol +++ b/packages/abis/abis/IExitRateBurnFee.sol @@ -1,7 +1,10 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IExitRateBurnFee { + type FeeHook is uint8; + type SettlementType is uint8; + event FundSettingsAdded(address indexed comptrollerProxy, uint256 inKindRate, uint256 specificAssetsRate); event Settled( address indexed comptrollerProxy, address indexed payer, uint256 sharesQuantity, bool indexed forSpecificAssets @@ -12,13 +15,13 @@ interface IExitRateBurnFee { function getFeeManager() external view returns (address feeManager_); function getInKindRateForFund(address _comptrollerProxy) external view returns (uint256 rate_); function getRecipientForFund(address) external view returns (address recipient_); - function getSettlementType() external view returns (uint8 settlementType_); + function getSettlementType() external view returns (SettlementType settlementType_); function getSpecificAssetsRateForFund(address _comptrollerProxy) external view returns (uint256 rate_); function payout(address, address) external returns (bool); - function settle(address _comptrollerProxy, address, uint8, bytes memory _settlementData, uint256) + function settle(address _comptrollerProxy, address, FeeHook, bytes memory _settlementData, uint256) external - returns (uint8 settlementType_, address payer_, uint256 sharesDue_); - function settlesOnHook(uint8 _hook) external view returns (bool settles_, bool usesGav_); - function update(address, address, uint8, bytes memory, uint256) external; - function updatesOnHook(uint8) external view returns (bool updates_, bool usesGav_); + returns (SettlementType settlementType_, address payer_, uint256 sharesDue_); + function settlesOnHook(FeeHook _hook) external view returns (bool settles_, bool usesGav_); + function update(address, address, FeeHook, bytes memory, uint256) external; + function updatesOnHook(FeeHook) external view returns (bool updates_, bool usesGav_); } diff --git a/packages/abis/abis/IExitRateDirectFee.abi.json b/packages/abis/abis/IExitRateDirectFee.abi.json index 123400d4..c865b660 100644 --- a/packages/abis/abis/IExitRateDirectFee.abi.json +++ b/packages/abis/abis/IExitRateDirectFee.abi.json @@ -1,379 +1,379 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_feeManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "inKindRate", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "specificAssetsRate", - "type": "uint256" - } - ], - "name": "FundSettingsAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - } - ], - "name": "RecipientSetForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "payer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesQuantity", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "bool", - "name": "forSpecificAssets", - "type": "bool" - } - ], - "name": "Settled", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_settingsData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getFeeManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "feeManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getInKindRateForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getInKindRateForFund", "outputs": [ { - "internalType": "uint256", "name": "rate_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRecipientForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getRecipientForFund", "outputs": [ { - "internalType": "address", "name": "recipient_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getSettlementType", + "inputs": [], "outputs": [ { - "internalType": "enum IFeeManager.SettlementType", "name": "settlementType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.SettlementType" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getSpecificAssetsRateForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getSpecificAssetsRateForFund", "outputs": [ { - "internalType": "uint256", "name": "rate_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "payout", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "payout", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setRecipientForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_recipient", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setRecipientForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settle", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "_settlementData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "settle", "outputs": [ { - "internalType": "enum IFeeManager.SettlementType", "name": "settlementType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.SettlementType" }, { - "internalType": "address", "name": "payer_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "sharesDue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settlesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "settlesOnHook", "outputs": [ { - "internalType": "bool", "name": "settles_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "update", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "update", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updatesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "updatesOnHook", "outputs": [ { - "internalType": "bool", "name": "updates_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "FundSettingsAdded", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "inKindRate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "specificAssetsRate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RecipientSetForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "recipient", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Settled", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "payer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharesQuantity", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "forSpecificAssets", + "type": "bool", + "indexed": true, + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IExitRateDirectFee.sol b/packages/abis/abis/IExitRateDirectFee.sol index 80320200..d9935d4b 100644 --- a/packages/abis/abis/IExitRateDirectFee.sol +++ b/packages/abis/abis/IExitRateDirectFee.sol @@ -1,7 +1,10 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IExitRateDirectFee { + type FeeHook is uint8; + type SettlementType is uint8; + event FundSettingsAdded(address indexed comptrollerProxy, uint256 inKindRate, uint256 specificAssetsRate); event RecipientSetForFund(address indexed comptrollerProxy, address indexed recipient); event Settled( @@ -13,14 +16,14 @@ interface IExitRateDirectFee { function getFeeManager() external view returns (address feeManager_); function getInKindRateForFund(address _comptrollerProxy) external view returns (uint256 rate_); function getRecipientForFund(address _comptrollerProxy) external view returns (address recipient_); - function getSettlementType() external view returns (uint8 settlementType_); + function getSettlementType() external view returns (SettlementType settlementType_); function getSpecificAssetsRateForFund(address _comptrollerProxy) external view returns (uint256 rate_); function payout(address, address) external returns (bool); function setRecipientForFund(address _comptrollerProxy, address _recipient) external; - function settle(address _comptrollerProxy, address, uint8, bytes memory _settlementData, uint256) + function settle(address _comptrollerProxy, address, FeeHook, bytes memory _settlementData, uint256) external - returns (uint8 settlementType_, address payer_, uint256 sharesDue_); - function settlesOnHook(uint8 _hook) external view returns (bool settles_, bool usesGav_); - function update(address, address, uint8, bytes memory, uint256) external; - function updatesOnHook(uint8) external view returns (bool updates_, bool usesGav_); + returns (SettlementType settlementType_, address payer_, uint256 sharesDue_); + function settlesOnHook(FeeHook _hook) external view returns (bool settles_, bool usesGav_); + function update(address, address, FeeHook, bytes memory, uint256) external; + function updatesOnHook(FeeHook) external view returns (bool updates_, bool usesGav_); } diff --git a/packages/abis/abis/IExternalPosition.abi.json b/packages/abis/abis/IExternalPosition.abi.json index 4a2756b2..d3aa5168 100644 --- a/packages/abis/abis/IExternalPosition.abi.json +++ b/packages/abis/abis/IExternalPosition.abi.json @@ -1,64 +1,64 @@ [ { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", - "name": "", - "type": "address[]" + "name": "assets_", + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" + "name": "amounts_", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", - "name": "", - "type": "address[]" + "name": "assets_", + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", - "name": "", - "type": "uint256[]" + "name": "amounts_", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", - "name": "", - "type": "bytes" + "name": "_data", + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", - "name": "", - "type": "bytes" + "name": "_data", + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IExternalPosition.sol b/packages/abis/abis/IExternalPosition.sol index 8c00d55e..bcf5c785 100644 --- a/packages/abis/abis/IExternalPosition.sol +++ b/packages/abis/abis/IExternalPosition.sol @@ -1,9 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IExternalPosition { - function getDebtAssets() external returns (address[] memory, uint256[] memory); - function getManagedAssets() external returns (address[] memory, uint256[] memory); - function init(bytes memory) external; - function receiveCallFromVault(bytes memory) external; + function getDebtAssets() external returns (address[] memory assets_, uint256[] memory amounts_); + function getManagedAssets() external returns (address[] memory assets_, uint256[] memory amounts_); + function init(bytes memory _data) external; + function receiveCallFromVault(bytes memory _data) external; } diff --git a/packages/abis/abis/IExternalPositionFactory.abi.json b/packages/abis/abis/IExternalPositionFactory.abi.json index 51cf71a4..006bcbf3 100644 --- a/packages/abis/abis/IExternalPositionFactory.abi.json +++ b/packages/abis/abis/IExternalPositionFactory.abi.json @@ -1,282 +1,282 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "typeId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "constructLib", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "constructData", - "type": "bytes" - } - ], - "name": "PositionDeployed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "positionDeployer", - "type": "address" - } - ], - "name": "PositionDeployerAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "positionDeployer", - "type": "address" - } - ], - "name": "PositionDeployerRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "typeId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "label", - "type": "string" - } - ], - "name": "PositionTypeAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "typeId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "label", - "type": "string" - } - ], - "name": "PositionTypeLabelUpdated", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addNewPositionTypes", "inputs": [ { - "internalType": "string[]", "name": "_labels", - "type": "string[]" + "type": "string[]", + "internalType": "string[]" } ], - "name": "addNewPositionTypes", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addPositionDeployers", "inputs": [ { - "internalType": "address[]", "name": "_accounts", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addPositionDeployers", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "deploy", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_typeId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_constructLib", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_constructData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "deploy", "outputs": [ { - "internalType": "address", "name": "externalPositionProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getDispatcher", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "dispatcher_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getLabelForPositionType", "inputs": [ { - "internalType": "uint256", "name": "_typeId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getLabelForPositionType", "outputs": [ { - "internalType": "string", "name": "label_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPositionTypeCounter", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "positionTypeCounter_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isExternalPositionProxy", "inputs": [ { - "internalType": "address", "name": "_account", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isExternalPositionProxy", "outputs": [ { - "internalType": "bool", "name": "isExternalPositionProxy_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isPositionDeployer", "inputs": [ { - "internalType": "address", "name": "_account", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isPositionDeployer", "outputs": [ { - "internalType": "bool", "name": "isPositionDeployer_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "removePositionDeployers", "inputs": [ { - "internalType": "address[]", "name": "_accounts", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "removePositionDeployers", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updatePositionTypeLabels", "inputs": [ { - "internalType": "uint256[]", "name": "_typeIds", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "string[]", "name": "_labels", - "type": "string[]" + "type": "string[]", + "internalType": "string[]" } ], - "name": "updatePositionTypeLabels", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "PositionDeployed", + "inputs": [ + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "typeId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "constructLib", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "constructData", + "type": "bytes", + "indexed": false, + "internalType": "bytes" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PositionDeployerAdded", + "inputs": [ + { + "name": "positionDeployer", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PositionDeployerRemoved", + "inputs": [ + { + "name": "positionDeployer", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PositionTypeAdded", + "inputs": [ + { + "name": "typeId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "label", + "type": "string", + "indexed": false, + "internalType": "string" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PositionTypeLabelUpdated", + "inputs": [ + { + "name": "typeId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "label", + "type": "string", + "indexed": false, + "internalType": "string" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IExternalPositionFactory.sol b/packages/abis/abis/IExternalPositionFactory.sol index 2381c0d7..1d16df17 100644 --- a/packages/abis/abis/IExternalPositionFactory.sol +++ b/packages/abis/abis/IExternalPositionFactory.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IExternalPositionFactory { diff --git a/packages/abis/abis/IExternalPositionManager.abi.json b/packages/abis/abis/IExternalPositionManager.abi.json index 58fb4e57..0ce8bed8 100644 --- a/packages/abis/abis/IExternalPositionManager.abi.json +++ b/packages/abis/abis/IExternalPositionManager.abi.json @@ -1,357 +1,357 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_externalPositionFactory", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "externalPosition", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "actionId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "actionArgs", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "assetsToTransfer", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "amountsToTransfer", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "assetsToReceive", - "type": "address[]" - } - ], - "name": "CallOnExternalPositionExecutedForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "externalPosition", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "externalPositionTypeId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "ExternalPositionDeployedForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "typeId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "lib", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "parser", - "type": "address" - } - ], - "name": "ExternalPositionTypeInfoUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - } - ], - "name": "ValidatedVaultProxySetForFund", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "deactivateForFund", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getExternalPositionFactory", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "externalPositionFactory_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getExternalPositionLibForType", "inputs": [ { - "internalType": "uint256", "name": "_typeId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getExternalPositionLibForType", "outputs": [ { - "internalType": "address", "name": "lib_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getExternalPositionParserForType", "inputs": [ { - "internalType": "uint256", "name": "_typeId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getExternalPositionParserForType", "outputs": [ { - "internalType": "address", "name": "parser_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getVaultProxyForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultProxyForFund", "outputs": [ { - "internalType": "address", "name": "vaultProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "receiveCallFromComptroller", "inputs": [ { - "internalType": "address", "name": "_caller", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_callArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromComptroller", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setConfigForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "setConfigForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updateExternalPositionTypesInfo", "inputs": [ { - "internalType": "uint256[]", "name": "_typeIds", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "_libs", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_parsers", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "updateExternalPositionTypesInfo", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "CallOnExternalPositionExecutedForFund", + "inputs": [ + { + "name": "caller", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "externalPosition", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "actionId", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "actionArgs", + "type": "bytes", + "indexed": false, + "internalType": "bytes" + }, + { + "name": "assetsToTransfer", + "type": "address[]", + "indexed": false, + "internalType": "address[]" + }, + { + "name": "amountsToTransfer", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + }, + { + "name": "assetsToReceive", + "type": "address[]", + "indexed": false, + "internalType": "address[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ExternalPositionDeployedForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "externalPosition", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "externalPositionTypeId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "data", + "type": "bytes", + "indexed": false, + "internalType": "bytes" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ExternalPositionTypeInfoUpdated", + "inputs": [ + { + "name": "typeId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "lib", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "parser", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ValidatedVaultProxySetForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IExternalPositionManager.sol b/packages/abis/abis/IExternalPositionManager.sol index d4c1b6f1..89d99f83 100644 --- a/packages/abis/abis/IExternalPositionManager.sol +++ b/packages/abis/abis/IExternalPositionManager.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IExternalPositionManager { diff --git a/packages/abis/abis/IExternalPositionProxy.abi.json b/packages/abis/abis/IExternalPositionProxy.abi.json index 28529de5..f85b4ec4 100644 --- a/packages/abis/abis/IExternalPositionProxy.abi.json +++ b/packages/abis/abis/IExternalPositionProxy.abi.json @@ -1,75 +1,75 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_typeId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_constructLib", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_constructData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "stateMutability": "payable", - "type": "fallback" + "type": "fallback", + "stateMutability": "payable" }, { - "inputs": [], + "type": "receive", + "stateMutability": "payable" + }, + { + "type": "function", "name": "getExternalPositionType", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "externalPositionType_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getVaultProxy", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "vaultProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_data", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "stateMutability": "payable", - "type": "receive" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IExternalPositionProxy.sol b/packages/abis/abis/IExternalPositionProxy.sol index 5aee55af..7cb60c00 100644 --- a/packages/abis/abis/IExternalPositionProxy.sol +++ b/packages/abis/abis/IExternalPositionProxy.sol @@ -1,7 +1,11 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IExternalPositionProxy { + fallback() external payable; + + receive() external payable; + function getExternalPositionType() external view returns (uint256 externalPositionType_); function getVaultProxy() external view returns (address vaultProxy_); function receiveCallFromVault(bytes memory _data) external; diff --git a/packages/abis/abis/IExternalPositionVault.abi.json b/packages/abis/abis/IExternalPositionVault.abi.json index 3a4120d6..528f23ed 100644 --- a/packages/abis/abis/IExternalPositionVault.abi.json +++ b/packages/abis/abis/IExternalPositionVault.abi.json @@ -1,21 +1,21 @@ [ { + "type": "function", + "name": "getExternalPositionLibForType", "inputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getExternalPositionLibForType", "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IExternalPositionVault.sol b/packages/abis/abis/IExternalPositionVault.sol index 0cb1292a..239b4ee9 100644 --- a/packages/abis/abis/IExternalPositionVault.sol +++ b/packages/abis/abis/IExternalPositionVault.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IExternalPositionVault { diff --git a/packages/abis/abis/IFee.abi.json b/packages/abis/abis/IFee.abi.json index 7e7a728f..869604d1 100644 --- a/packages/abis/abis/IFee.abi.json +++ b/packages/abis/abis/IFee.abi.json @@ -1,211 +1,211 @@ [ { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_settingsData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getRecipientForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getRecipientForFund", "outputs": [ { - "internalType": "address", "name": "recipient_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "payout", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "payout", "outputs": [ { - "internalType": "bool", "name": "isPayable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settle", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "_settlementData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "_gav", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "settle", "outputs": [ { - "internalType": "enum IFeeManager.SettlementType", "name": "settlementType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.SettlementType" }, { - "internalType": "address", "name": "payer_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "sharesDue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settlesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "settlesOnHook", "outputs": [ { - "internalType": "bool", "name": "settles_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "update", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "_settlementData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "_gav", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "update", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updatesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "updatesOnHook", "outputs": [ { - "internalType": "bool", "name": "updates_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IFee.sol b/packages/abis/abis/IFee.sol index 7190a33d..2c79fff7 100644 --- a/packages/abis/abis/IFee.sol +++ b/packages/abis/abis/IFee.sol @@ -1,7 +1,10 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IFee { + type FeeHook is uint8; + type SettlementType is uint8; + function activateForFund(address _comptrollerProxy, address _vaultProxy) external; function addFundSettings(address _comptrollerProxy, bytes memory _settingsData) external; function getRecipientForFund(address _comptrollerProxy) external view returns (address recipient_); @@ -9,17 +12,17 @@ interface IFee { function settle( address _comptrollerProxy, address _vaultProxy, - uint8 _hook, + FeeHook _hook, bytes memory _settlementData, uint256 _gav - ) external returns (uint8 settlementType_, address payer_, uint256 sharesDue_); - function settlesOnHook(uint8 _hook) external view returns (bool settles_, bool usesGav_); + ) external returns (SettlementType settlementType_, address payer_, uint256 sharesDue_); + function settlesOnHook(FeeHook _hook) external view returns (bool settles_, bool usesGav_); function update( address _comptrollerProxy, address _vaultProxy, - uint8 _hook, + FeeHook _hook, bytes memory _settlementData, uint256 _gav ) external; - function updatesOnHook(uint8 _hook) external view returns (bool updates_, bool usesGav_); + function updatesOnHook(FeeHook _hook) external view returns (bool updates_, bool usesGav_); } diff --git a/packages/abis/abis/IFeeManager.abi.json b/packages/abis/abis/IFeeManager.abi.json index 4bfb7ac9..5aabf9c2 100644 --- a/packages/abis/abis/IFeeManager.abi.json +++ b/packages/abis/abis/IFeeManager.abi.json @@ -1,308 +1,308 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "fee", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "settingsData", - "type": "bytes" - } - ], - "name": "FeeEnabledForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "fee", - "type": "address" - }, - { - "indexed": true, - "internalType": "enum IFeeManager.SettlementType", - "name": "settlementType", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "address", - "name": "payer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "payee", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesDue", - "type": "uint256" - } - ], - "name": "FeeSettledForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "fee", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "payee", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesDue", - "type": "uint256" - } - ], - "name": "SharesOutstandingPaidForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - } - ], - "name": "ValidatedVaultProxySetForFund", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "deactivateForFund", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getEnabledFeesForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getEnabledFeesForFund", "outputs": [ { - "internalType": "address[]", "name": "enabledFees_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getFeeSharesOutstandingForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_fee", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getFeeSharesOutstandingForFund", "outputs": [ { - "internalType": "uint256", "name": "sharesOutstanding_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getVaultProxyForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultProxyForFund", "outputs": [ { - "internalType": "address", "name": "vaultProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "invokeHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "_settlementData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "_gav", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "invokeHook", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "receiveCallFromComptroller", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_callArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromComptroller", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setConfigForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_configData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "setConfigForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "FeeEnabledForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "fee", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "settingsData", + "type": "bytes", + "indexed": false, + "internalType": "bytes" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "FeeSettledForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "fee", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "settlementType", + "type": "uint8", + "indexed": true, + "internalType": "enum IFeeManager.SettlementType" + }, + { + "name": "payer", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "payee", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "sharesDue", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "SharesOutstandingPaidForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "fee", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "payee", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharesDue", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ValidatedVaultProxySetForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IFeeManager.sol b/packages/abis/abis/IFeeManager.sol index 7614b818..704bbe99 100644 --- a/packages/abis/abis/IFeeManager.sol +++ b/packages/abis/abis/IFeeManager.sol @@ -1,12 +1,15 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IFeeManager { + type FeeHook is uint8; + type SettlementType is uint8; + event FeeEnabledForFund(address indexed comptrollerProxy, address indexed fee, bytes settingsData); event FeeSettledForFund( address indexed comptrollerProxy, address indexed fee, - uint8 indexed settlementType, + SettlementType indexed settlementType, address payer, address payee, uint256 sharesDue @@ -26,7 +29,7 @@ interface IFeeManager { function getFundDeployer() external view returns (address fundDeployer_); function getOwner() external view returns (address owner_); function getVaultProxyForFund(address _comptrollerProxy) external view returns (address vaultProxy_); - function invokeHook(uint8 _hook, bytes memory _settlementData, uint256 _gav) external; + function invokeHook(FeeHook _hook, bytes memory _settlementData, uint256 _gav) external; function receiveCallFromComptroller(address, uint256 _actionId, bytes memory _callArgs) external; function setConfigForFund(address _comptrollerProxy, address _vaultProxy, bytes memory _configData) external; } diff --git a/packages/abis/abis/IFundDataProviderRouter.abi.json b/packages/abis/abis/IFundDataProviderRouter.abi.json index bbc3b078..15c9c228 100644 --- a/packages/abis/abis/IFundDataProviderRouter.abi.json +++ b/packages/abis/abis/IFundDataProviderRouter.abi.json @@ -1,88 +1,88 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundValueCalculatorRouter", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getFundValueCalculatorRouter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundValueCalculatorRouter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getFundValueMetrics", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getFundValueMetrics", "outputs": [ { - "internalType": "uint256", "name": "timestamp_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "sharesSupply_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "gavInEth_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bool", "name": "gavIsValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "uint256", "name": "navInEth_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bool", "name": "navIsValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getWethToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "wethToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IFundDataProviderRouter.sol b/packages/abis/abis/IFundDataProviderRouter.sol index 9c2326f8..ad06c679 100644 --- a/packages/abis/abis/IFundDataProviderRouter.sol +++ b/packages/abis/abis/IFundDataProviderRouter.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IFundDataProviderRouter { diff --git a/packages/abis/abis/IFundDeployer.abi.json b/packages/abis/abis/IFundDeployer.abi.json index 821c0d33..44e3ce9c 100644 --- a/packages/abis/abis/IFundDeployer.abi.json +++ b/packages/abis/abis/IFundDeployer.abi.json @@ -1,1011 +1,1011 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_gasRelayPaymasterFactory", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "BuySharesOnBehalfCallerDeregistered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "caller", - "type": "address" - } - ], - "name": "BuySharesOnBehalfCallerRegistered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "comptrollerLib", - "type": "address" - } - ], - "name": "ComptrollerLibSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "creator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "denominationAsset", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesActionTimelock", - "type": "uint256" - } - ], - "name": "ComptrollerProxyDeployed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "nextDeactivateFeeManagerGasLimit", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "nextPayProtocolFeeGasLimit", - "type": "uint256" - } - ], - "name": "GasLimitsForDestructCallSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "creator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - } - ], - "name": "MigrationRequestCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "creator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - } - ], - "name": "NewFundCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "protocolFeeTracker", - "type": "address" - } - ], - "name": "ProtocolFeeTrackerSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "nextComptrollerProxy", - "type": "address" - } - ], - "name": "ReconfigurationRequestCancelled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "creator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "executableTimestamp", - "type": "uint256" - } - ], - "name": "ReconfigurationRequestCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "prevComptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "nextComptrollerProxy", - "type": "address" - } - ], - "name": "ReconfigurationRequestExecuted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "nextTimelock", - "type": "uint256" - } - ], - "name": "ReconfigurationTimelockSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "ReleaseIsLive", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "contractAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes4", - "name": "selector", - "type": "bytes4" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - } - ], - "name": "VaultCallDeregistered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "contractAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes4", - "name": "selector", - "type": "bytes4" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "dataHash", - "type": "bytes32" - } - ], - "name": "VaultCallRegistered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "vaultLib", - "type": "address" - } - ], - "name": "VaultLibSet", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "cancelMigration", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bool", "name": "_bypassPrevReleaseFailure", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "name": "cancelMigration", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "cancelReconfiguration", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "cancelReconfiguration", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "createMigrationRequest", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_denominationAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_sharesActionTimelock", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_feeManagerConfigData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_policyManagerConfigData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bool", "name": "_bypassPrevReleaseFailure", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "name": "createMigrationRequest", "outputs": [ { - "internalType": "address", "name": "comptrollerProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "createNewFund", "inputs": [ { - "internalType": "address", "name": "_fundOwner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "string", "name": "_fundName", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "string", "name": "_fundSymbol", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "address", "name": "_denominationAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_sharesActionTimelock", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_feeManagerConfigData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_policyManagerConfigData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "createNewFund", "outputs": [ { - "internalType": "address", "name": "comptrollerProxy_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "vaultProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "createReconfigurationRequest", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_denominationAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_sharesActionTimelock", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_feeManagerConfigData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_policyManagerConfigData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "createReconfigurationRequest", "outputs": [ { - "internalType": "address", "name": "comptrollerProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "deregisterBuySharesOnBehalfCallers", "inputs": [ { - "internalType": "address[]", "name": "_callers", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "deregisterBuySharesOnBehalfCallers", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "deregisterVaultCalls", "inputs": [ { - "internalType": "address[]", "name": "_contracts", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "bytes4[]", "name": "_selectors", - "type": "bytes4[]" + "type": "bytes4[]", + "internalType": "bytes4[]" }, { - "internalType": "bytes32[]", "name": "_dataHashes", - "type": "bytes32[]" + "type": "bytes32[]", + "internalType": "bytes32[]" } ], - "name": "deregisterVaultCalls", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "executeMigration", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bool", "name": "_bypassPrevReleaseFailure", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "name": "executeMigration", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "executeReconfiguration", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "executeReconfiguration", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getComptrollerLib", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "comptrollerLib_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getCreator", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "creator_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDispatcher", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "dispatcher_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getGasLimitsForDestructCall", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "deactivateFeeManagerGasLimit_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "payProtocolFeeGasLimit_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getGasRelayPaymasterFactory", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "gasRelayPaymasterFactory_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getGasRelayTrustedForwarder", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "trustedForwarder_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getProtocolFeeTracker", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "protocolFeeTracker_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getReconfigurationRequestForVaultProxy", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getReconfigurationRequestForVaultProxy", "outputs": [ { + "name": "reconfigurationRequest_", + "type": "tuple", + "internalType": "struct IFundDeployer.ReconfigurationRequest", "components": [ { - "internalType": "address", "name": "nextComptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "executableTimestamp", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct IFundDeployer.ReconfigurationRequest", - "name": "reconfigurationRequest_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getReconfigurationTimelock", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "reconfigurationTimelock_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getVaultLib", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "vaultLib_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "hasReconfigurationRequest", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "hasReconfigurationRequest", "outputs": [ { - "internalType": "bool", "name": "hasReconfigurationRequest_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "invokeMigrationInCancelHook", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_nextComptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "invokeMigrationInCancelHook", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "invokeMigrationOutHook", "inputs": [ { - "internalType": "enum IMigrationHookHandler.MigrationOutHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IMigrationHookHandler.MigrationOutHook" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "invokeMigrationOutHook", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "isAllowedBuySharesOnBehalfCaller", "inputs": [ { - "internalType": "address", "name": "_who", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isAllowedBuySharesOnBehalfCaller", "outputs": [ { - "internalType": "bool", "name": "isAllowed_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isAllowedVaultCall", "inputs": [ { - "internalType": "address", "name": "_contract", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes32", "name": "_dataHash", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "name": "isAllowedVaultCall", "outputs": [ { - "internalType": "bool", "name": "isAllowed_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isRegisteredVaultCall", "inputs": [ { - "internalType": "address", "name": "_contract", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes32", "name": "_dataHash", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "name": "isRegisteredVaultCall", "outputs": [ { - "internalType": "bool", "name": "isRegistered_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "registerBuySharesOnBehalfCallers", "inputs": [ { - "internalType": "address[]", "name": "_callers", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "registerBuySharesOnBehalfCallers", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "registerVaultCalls", "inputs": [ { - "internalType": "address[]", "name": "_contracts", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "bytes4[]", "name": "_selectors", - "type": "bytes4[]" + "type": "bytes4[]", + "internalType": "bytes4[]" }, { - "internalType": "bytes32[]", "name": "_dataHashes", - "type": "bytes32[]" + "type": "bytes32[]", + "internalType": "bytes32[]" } ], - "name": "registerVaultCalls", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "releaseIsLive", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "isLive_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "setComptrollerLib", "inputs": [ { - "internalType": "address", "name": "_comptrollerLib", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setComptrollerLib", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setGasLimitsForDestructCall", "inputs": [ { - "internalType": "uint32", "name": "_nextDeactivateFeeManagerGasLimit", - "type": "uint32" + "type": "uint32", + "internalType": "uint32" }, { - "internalType": "uint32", "name": "_nextPayProtocolFeeGasLimit", - "type": "uint32" + "type": "uint32", + "internalType": "uint32" } ], - "name": "setGasLimitsForDestructCall", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setProtocolFeeTracker", "inputs": [ { - "internalType": "address", "name": "_protocolFeeTracker", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setProtocolFeeTracker", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setReconfigurationTimelock", "inputs": [ { - "internalType": "uint256", "name": "_nextTimelock", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "setReconfigurationTimelock", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "setReleaseLive", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setVaultLib", "inputs": [ { - "internalType": "address", "name": "_vaultLib", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setVaultLib", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "BuySharesOnBehalfCallerDeregistered", + "inputs": [ + { + "name": "caller", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "BuySharesOnBehalfCallerRegistered", + "inputs": [ + { + "name": "caller", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ComptrollerLibSet", + "inputs": [ + { + "name": "comptrollerLib", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ComptrollerProxyDeployed", + "inputs": [ + { + "name": "creator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "comptrollerProxy", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "denominationAsset", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharesActionTimelock", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "GasLimitsForDestructCallSet", + "inputs": [ + { + "name": "nextDeactivateFeeManagerGasLimit", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "nextPayProtocolFeeGasLimit", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "MigrationRequestCreated", + "inputs": [ + { + "name": "creator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "comptrollerProxy", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NewFundCreated", + "inputs": [ + { + "name": "creator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "vaultProxy", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "comptrollerProxy", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ProtocolFeeTrackerSet", + "inputs": [ + { + "name": "protocolFeeTracker", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReconfigurationRequestCancelled", + "inputs": [ + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "nextComptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReconfigurationRequestCreated", + "inputs": [ + { + "name": "creator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "comptrollerProxy", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "executableTimestamp", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReconfigurationRequestExecuted", + "inputs": [ + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "prevComptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "nextComptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReconfigurationTimelockSet", + "inputs": [ + { + "name": "nextTimelock", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReleaseIsLive", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "VaultCallDeregistered", + "inputs": [ + { + "name": "contractAddress", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "selector", + "type": "bytes4", + "indexed": false, + "internalType": "bytes4" + }, + { + "name": "dataHash", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "VaultCallRegistered", + "inputs": [ + { + "name": "contractAddress", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "selector", + "type": "bytes4", + "indexed": false, + "internalType": "bytes4" + }, + { + "name": "dataHash", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "VaultLibSet", + "inputs": [ + { + "name": "vaultLib", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IFundDeployer.sol b/packages/abis/abis/IFundDeployer.sol index 19e031b8..0be327d4 100644 --- a/packages/abis/abis/IFundDeployer.sol +++ b/packages/abis/abis/IFundDeployer.sol @@ -1,7 +1,14 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IFundDeployer { + type MigrationOutHook is uint8; + + struct ReconfigurationRequest { + address nextComptrollerProxy; + uint256 executableTimestamp; + } + event BuySharesOnBehalfCallerDeregistered(address caller); event BuySharesOnBehalfCallerRegistered(address caller); event ComptrollerLibSet(address comptrollerLib); @@ -28,11 +35,6 @@ interface IFundDeployer { event VaultCallRegistered(address indexed contractAddress, bytes4 selector, bytes32 dataHash); event VaultLibSet(address vaultLib); - struct ReconfigurationRequest { - address nextComptrollerProxy; - uint256 executableTimestamp; - } - function cancelMigration(address _vaultProxy, bool _bypassPrevReleaseFailure) external; function cancelReconfiguration(address _vaultProxy) external; function createMigrationRequest( @@ -83,7 +85,7 @@ interface IFundDeployer { function getVaultLib() external view returns (address vaultLib_); function hasReconfigurationRequest(address _vaultProxy) external view returns (bool hasReconfigurationRequest_); function invokeMigrationInCancelHook(address, address, address _nextComptrollerProxy, address) external; - function invokeMigrationOutHook(uint8 _hook, address _vaultProxy, address, address, address) external; + function invokeMigrationOutHook(MigrationOutHook _hook, address _vaultProxy, address, address, address) external; function isAllowedBuySharesOnBehalfCaller(address _who) external view returns (bool isAllowed_); function isAllowedVaultCall(address _contract, bytes4 _selector, bytes32 _dataHash) external diff --git a/packages/abis/abis/IFundValueCalculator.abi.json b/packages/abis/abis/IFundValueCalculator.abi.json index a46f0ee5..8f73856b 100644 --- a/packages/abis/abis/IFundValueCalculator.abi.json +++ b/packages/abis/abis/IFundValueCalculator.abi.json @@ -1,331 +1,331 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_feeManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_protocolFeeTracker", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcGav", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcGav", "outputs": [ { - "internalType": "address", "name": "denominationAsset_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "gav_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcGavInAsset", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_quoteAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcGavInAsset", "outputs": [ { - "internalType": "uint256", "name": "gav_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcGrossShareValue", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcGrossShareValue", "outputs": [ { - "internalType": "address", "name": "denominationAsset_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "grossShareValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcGrossShareValueInAsset", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_quoteAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcGrossShareValueInAsset", "outputs": [ { - "internalType": "uint256", "name": "grossShareValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNav", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNav", "outputs": [ { - "internalType": "address", "name": "denominationAsset_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "nav_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNavInAsset", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_quoteAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNavInAsset", "outputs": [ { - "internalType": "uint256", "name": "nav_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNetShareValue", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNetShareValue", "outputs": [ { - "internalType": "address", "name": "denominationAsset_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "netShareValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNetShareValueInAsset", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_quoteAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNetShareValueInAsset", "outputs": [ { - "internalType": "uint256", "name": "netShareValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNetValueForSharesHolder", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_sharesHolder", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNetValueForSharesHolder", "outputs": [ { - "internalType": "address", "name": "denominationAsset_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "netValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNetValueForSharesHolderInAsset", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_sharesHolder", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_quoteAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNetValueForSharesHolderInAsset", "outputs": [ { - "internalType": "uint256", "name": "netValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcProtocolFeeDueForFund", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcProtocolFeeDueForFund", "outputs": [ { - "internalType": "uint256", "name": "sharesDue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFeeManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "feeManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getProtocolFeeTracker", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "protocolFeeTracker_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getValueInterpreter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "valueInterpreter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IFundValueCalculator.sol b/packages/abis/abis/IFundValueCalculator.sol index 6da80f13..779b64e2 100644 --- a/packages/abis/abis/IFundValueCalculator.sol +++ b/packages/abis/abis/IFundValueCalculator.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IFundValueCalculator { diff --git a/packages/abis/abis/IFundValueCalculatorRouter.abi.json b/packages/abis/abis/IFundValueCalculatorRouter.abi.json index 391a46ef..e1539f56 100644 --- a/packages/abis/abis/IFundValueCalculatorRouter.abi.json +++ b/packages/abis/abis/IFundValueCalculatorRouter.abi.json @@ -1,361 +1,361 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address[]", "name": "_fundDeployers", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_fundValueCalculators", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "fundDeployer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "fundValueCalculator", - "type": "address" - } - ], - "name": "FundValueCalculatorUpdated", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcGav", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcGav", "outputs": [ { - "internalType": "address", "name": "denominationAsset_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "gav_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcGavInAsset", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_quoteAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcGavInAsset", "outputs": [ { - "internalType": "uint256", "name": "gav_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcGrossShareValue", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcGrossShareValue", "outputs": [ { - "internalType": "address", "name": "denominationAsset_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "grossShareValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcGrossShareValueInAsset", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_quoteAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcGrossShareValueInAsset", "outputs": [ { - "internalType": "uint256", "name": "grossShareValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNav", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNav", "outputs": [ { - "internalType": "address", "name": "denominationAsset_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "nav_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNavInAsset", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_quoteAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNavInAsset", "outputs": [ { - "internalType": "uint256", "name": "nav_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNetShareValue", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNetShareValue", "outputs": [ { - "internalType": "address", "name": "denominationAsset_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "netShareValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNetShareValueInAsset", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_quoteAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNetShareValueInAsset", "outputs": [ { - "internalType": "uint256", "name": "netShareValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNetValueForSharesHolder", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_sharesHolder", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNetValueForSharesHolder", "outputs": [ { - "internalType": "address", "name": "denominationAsset_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "netValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNetValueForSharesHolderInAsset", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_sharesHolder", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_quoteAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNetValueForSharesHolderInAsset", "outputs": [ { - "internalType": "uint256", "name": "netValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getDispatcher", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "dispatcher_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getFundValueCalculatorForFundDeployer", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getFundValueCalculatorForFundDeployer", "outputs": [ { - "internalType": "address", "name": "fundValueCalculator_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getFundValueCalculatorForVault", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getFundValueCalculatorForVault", "outputs": [ { - "internalType": "contract IFundValueCalculator", "name": "fundValueCalculatorContract_", - "type": "address" + "type": "address", + "internalType": "contract IFundValueCalculator" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "setFundValueCalculators", "inputs": [ { - "internalType": "address[]", "name": "_fundDeployers", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_fundValueCalculators", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "setFundValueCalculators", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "FundValueCalculatorUpdated", + "inputs": [ + { + "name": "fundDeployer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "fundValueCalculator", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IFundValueCalculatorRouter.sol b/packages/abis/abis/IFundValueCalculatorRouter.sol index b33f51b8..6f3a0e25 100644 --- a/packages/abis/abis/IFundValueCalculatorRouter.sol +++ b/packages/abis/abis/IFundValueCalculatorRouter.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IFundValueCalculatorRouter { diff --git a/packages/abis/abis/IFundValueCalculatorUsdWrapper.abi.json b/packages/abis/abis/IFundValueCalculatorUsdWrapper.abi.json index cf99f855..bc47a2d4 100644 --- a/packages/abis/abis/IFundValueCalculatorUsdWrapper.abi.json +++ b/packages/abis/abis/IFundValueCalculatorUsdWrapper.abi.json @@ -1,180 +1,180 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundValueCalculatorRouter", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_ethUsdAggregator", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_staleRateThreshold", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcGav", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcGav", "outputs": [ { - "internalType": "uint256", "name": "gav_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcGrossShareValue", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcGrossShareValue", "outputs": [ { - "internalType": "uint256", "name": "grossShareValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNav", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNav", "outputs": [ { - "internalType": "uint256", "name": "nav_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNetShareValue", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNetShareValue", "outputs": [ { - "internalType": "uint256", "name": "netShareValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcNetValueForSharesHolder", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_sharesHolder", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcNetValueForSharesHolder", "outputs": [ { - "internalType": "uint256", "name": "netValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getEthUsdAggregatorContract", + "inputs": [], "outputs": [ { - "internalType": "contract IChainlinkAggregatorFundValueCalculatorUsdWrapper", "name": "ethUsdAggregatorContract_", - "type": "address" + "type": "address", + "internalType": "contract IChainlinkAggregatorFundValueCalculatorUsdWrapper" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFundValueCalculatorRouter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundValueCalculatorRouter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getStaleRateThreshold", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "staleRateThreshold_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getWethToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "wethToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IFundValueCalculatorUsdWrapper.sol b/packages/abis/abis/IFundValueCalculatorUsdWrapper.sol index b09e6244..c7908f64 100644 --- a/packages/abis/abis/IFundValueCalculatorUsdWrapper.sol +++ b/packages/abis/abis/IFundValueCalculatorUsdWrapper.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IFundValueCalculatorUsdWrapper { diff --git a/packages/abis/abis/IGasRelayPaymasterFactory.abi.json b/packages/abis/abis/IGasRelayPaymasterFactory.abi.json index 4eb7dcc7..63c3ec65 100644 --- a/packages/abis/abis/IGasRelayPaymasterFactory.abi.json +++ b/packages/abis/abis/IGasRelayPaymasterFactory.abi.json @@ -1,127 +1,127 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_paymasterLib", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "nextCanonicalLib", - "type": "address" - } - ], - "name": "CanonicalLibSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "caller", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "proxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "constructData", - "type": "bytes" - } - ], - "name": "ProxyDeployed", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "deployProxy", "inputs": [ { - "internalType": "bytes", "name": "_constructData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "deployProxy", "outputs": [ { - "internalType": "address", "name": "proxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getCanonicalLib", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "canonicalLib_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDispatcher", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "dispatcher_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "setCanonicalLib", "inputs": [ { - "internalType": "address", "name": "_nextCanonicalLib", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setCanonicalLib", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "CanonicalLibSet", + "inputs": [ + { + "name": "nextCanonicalLib", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ProxyDeployed", + "inputs": [ + { + "name": "caller", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "proxy", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "constructData", + "type": "bytes", + "indexed": false, + "internalType": "bytes" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IGasRelayPaymasterFactory.sol b/packages/abis/abis/IGasRelayPaymasterFactory.sol index 9b75295f..c8fb8e2d 100644 --- a/packages/abis/abis/IGasRelayPaymasterFactory.sol +++ b/packages/abis/abis/IGasRelayPaymasterFactory.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IGasRelayPaymasterFactory { diff --git a/packages/abis/abis/IGasRelayPaymasterLib.abi.json b/packages/abis/abis/IGasRelayPaymasterLib.abi.json index b2c229a9..c98c2850 100644 --- a/packages/abis/abis/IGasRelayPaymasterLib.abi.json +++ b/packages/abis/abis/IGasRelayPaymasterLib.abi.json @@ -1,460 +1,460 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_relayHub", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_trustedForwarder", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_depositCooldown", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_depositMaxTotal", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_relayFeeMaxBase", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_relayFeeMaxPercent", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Deposited", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "authorizer", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes4", - "name": "invokedSelector", - "type": "bytes4" - }, - { - "indexed": false, - "internalType": "bool", - "name": "successful", - "type": "bool" - } - ], - "name": "TransactionRelayed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Withdrawn", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "deposit", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getGasAndDataLimits", + "inputs": [], "outputs": [ { + "name": "limits_", + "type": "tuple", + "internalType": "struct IGsnPaymaster.GasAndDataLimits", "components": [ { - "internalType": "uint256", "name": "acceptanceBudget", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "preRelayedCallGasLimit", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "postRelayedCallGasLimit", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "calldataSizeLimit", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct IGsnPaymaster.GasAndDataLimits", - "name": "limits_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getHubAddr", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "relayHub_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getLastDepositTimestamp", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "lastDepositTimestamp_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getParentComptroller", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "parentComptroller_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getParentVault", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "parentVault_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getRelayHubDeposit", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "depositBalance_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getWethToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "wethToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "address", "name": "_vault", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "postRelayedCall", "inputs": [ { - "internalType": "bytes", "name": "_context", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bool", "name": "_success", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { + "name": "_relayData", + "type": "tuple", + "internalType": "struct IGsnTypes.RelayData", "components": [ { - "internalType": "uint256", "name": "gasPrice", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "pctRelayFee", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "baseRelayFee", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "relayWorker", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "paymaster", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "forwarder", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "paymasterData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "clientId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct IGsnTypes.RelayData", - "name": "_relayData", - "type": "tuple" + ] } ], - "name": "postRelayedCall", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "preRelayedCall", "inputs": [ { + "name": "_relayRequest", + "type": "tuple", + "internalType": "struct IGsnTypes.RelayRequest", "components": [ { + "name": "request", + "type": "tuple", + "internalType": "struct IGsnForwarder.ForwardRequest", "components": [ { - "internalType": "address", "name": "from", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "value", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "gas", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "nonce", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "data", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "validUntil", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct IGsnForwarder.ForwardRequest", - "name": "request", - "type": "tuple" + ] }, { + "name": "relayData", + "type": "tuple", + "internalType": "struct IGsnTypes.RelayData", "components": [ { - "internalType": "uint256", "name": "gasPrice", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "pctRelayFee", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "baseRelayFee", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "relayWorker", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "paymaster", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "forwarder", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "paymasterData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "clientId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct IGsnTypes.RelayData", - "name": "relayData", - "type": "tuple" + ] } - ], - "internalType": "struct IGsnTypes.RelayRequest", - "name": "_relayRequest", - "type": "tuple" + ] }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "preRelayedCall", "outputs": [ { - "internalType": "bytes", "name": "context_", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bool", "name": "rejectOnRecipientRevert_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "trustedForwarder", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "trustedForwarder_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "versionPaymaster", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "versionString_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "withdrawBalance", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "Deposited", + "inputs": [ + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TransactionRelayed", + "inputs": [ + { + "name": "authorizer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "invokedSelector", + "type": "bytes4", + "indexed": false, + "internalType": "bytes4" + }, + { + "name": "successful", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Withdrawn", + "inputs": [ + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IGasRelayPaymasterLib.sol b/packages/abis/abis/IGasRelayPaymasterLib.sol index 5ce3af24..28abac1a 100644 --- a/packages/abis/abis/IGasRelayPaymasterLib.sol +++ b/packages/abis/abis/IGasRelayPaymasterLib.sol @@ -1,11 +1,7 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IGasRelayPaymasterLib { - event Deposited(uint256 amount); - event TransactionRelayed(address indexed authorizer, bytes4 invokedSelector, bool successful); - event Withdrawn(uint256 amount); - struct ForwardRequest { address from; address to; @@ -39,6 +35,10 @@ interface IGasRelayPaymasterLib { RelayData relayData; } + event Deposited(uint256 amount); + event TransactionRelayed(address indexed authorizer, bytes4 invokedSelector, bool successful); + event Withdrawn(uint256 amount); + function deposit() external; function getGasAndDataLimits() external view returns (GasAndDataLimits memory limits_); function getHubAddr() external view returns (address relayHub_); diff --git a/packages/abis/abis/IGatedRedemptionQueueSharesWrapperFactory.abi.json b/packages/abis/abis/IGatedRedemptionQueueSharesWrapperFactory.abi.json index 48d66986..083cefdf 100644 --- a/packages/abis/abis/IGatedRedemptionQueueSharesWrapperFactory.abi.json +++ b/packages/abis/abis/IGatedRedemptionQueueSharesWrapperFactory.abi.json @@ -1,152 +1,152 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_implementation", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "implementation", - "type": "address" - } - ], - "name": "ImplementationSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "caller", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "name": "ProxyDeployed", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "deploy", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address[]", "name": "_managers", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address", "name": "_redemptionAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bool", "name": "_useDepositApprovals", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "_useRedemptionApprovals", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "_useTransferApprovals", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", "name": "_depositMode", - "type": "uint8" + "type": "uint8", + "internalType": "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode" }, { + "name": "_windowConfig", + "type": "tuple", + "internalType": "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", "components": [ { - "internalType": "uint64", "name": "firstWindowStart", - "type": "uint64" + "type": "uint64", + "internalType": "uint64" }, { - "internalType": "uint32", "name": "frequency", - "type": "uint32" + "type": "uint32", + "internalType": "uint32" }, { - "internalType": "uint32", "name": "duration", - "type": "uint32" + "type": "uint32", + "internalType": "uint32" }, { - "internalType": "uint64", "name": "relativeSharesCap", - "type": "uint64" + "type": "uint64", + "internalType": "uint64" } - ], - "internalType": "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", - "name": "_windowConfig", - "type": "tuple" + ] } ], - "name": "deploy", "outputs": [ { - "internalType": "address", "name": "wrapperProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "implementation", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "setImplementation", "inputs": [ { - "internalType": "address", "name": "_nextImplementation", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setImplementation", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ImplementationSet", + "inputs": [ + { + "name": "implementation", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ProxyDeployed", + "inputs": [ + { + "name": "caller", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "proxy", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IGatedRedemptionQueueSharesWrapperFactory.sol b/packages/abis/abis/IGatedRedemptionQueueSharesWrapperFactory.sol index f23f5a35..6e11bf82 100644 --- a/packages/abis/abis/IGatedRedemptionQueueSharesWrapperFactory.sol +++ b/packages/abis/abis/IGatedRedemptionQueueSharesWrapperFactory.sol @@ -1,9 +1,8 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IGatedRedemptionQueueSharesWrapperFactory { - event ImplementationSet(address implementation); - event ProxyDeployed(address indexed caller, address proxy); + type DepositMode is uint8; struct RedemptionWindowConfig { uint64 firstWindowStart; @@ -12,6 +11,9 @@ interface IGatedRedemptionQueueSharesWrapperFactory { uint64 relativeSharesCap; } + event ImplementationSet(address implementation); + event ProxyDeployed(address indexed caller, address proxy); + function deploy( address _vaultProxy, address[] memory _managers, @@ -19,7 +21,7 @@ interface IGatedRedemptionQueueSharesWrapperFactory { bool _useDepositApprovals, bool _useRedemptionApprovals, bool _useTransferApprovals, - uint8 _depositMode, + DepositMode _depositMode, RedemptionWindowConfig memory _windowConfig ) external returns (address wrapperProxy_); function implementation() external view returns (address); diff --git a/packages/abis/abis/IGatedRedemptionQueueSharesWrapperLib.abi.json b/packages/abis/abis/IGatedRedemptionQueueSharesWrapperLib.abi.json index 8eb9ad60..e8b1a21f 100644 --- a/packages/abis/abis/IGatedRedemptionQueueSharesWrapperLib.abi.json +++ b/packages/abis/abis/IGatedRedemptionQueueSharesWrapperLib.abi.json @@ -1,1514 +1,1514 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_globalConfigProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wrappedNativeAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "receive", + "stateMutability": "payable" + }, + { + "type": "function", + "name": "addManagers", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" + "name": "_managers", + "type": "address[]", + "internalType": "address[]" } ], - "name": "Approval", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "allowance", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" + "name": "owner", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "spender", + "type": "address", + "internalType": "address" } ], - "name": "DepositApproval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "outputs": [ { - "indexed": false, - "internalType": "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", - "name": "mode", - "type": "uint8" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "DepositModeSet", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "approve", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "name": "spender", + "type": "address", + "internalType": "address" }, { - "indexed": true, - "internalType": "address", - "name": "depositAsset", - "type": "address" - }, + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "depositAssetAmount", - "type": "uint256" + "name": "", + "type": "bool", + "internalType": "bool" } ], - "name": "DepositRequestAdded", - "type": "event" + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "balanceOf", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, + "name": "account", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "depositAsset", - "type": "address" + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "name": "DepositRequestRemoved", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "depositToken", - "type": "address" - }, + "type": "function", + "name": "calcLatestRedemptionWindow", + "inputs": [], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "depositTokenAmount", - "type": "uint256" + "name": "windowStart_", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": false, - "internalType": "uint256", - "name": "sharesReceived", - "type": "uint256" + "name": "windowEnd_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "Deposited", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "cancelRequestDeposit", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" + "name": "_depositAsset", + "type": "address", + "internalType": "address" } ], - "name": "Initialized", - "type": "event" + "outputs": [], + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, + "type": "function", + "name": "cancelRequestRedeem", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "decimals", + "inputs": [], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "sharesAmount", - "type": "uint256" + "name": "decimals_", + "type": "uint8", + "internalType": "uint8" } ], - "name": "Kicked", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "decreaseAllowance", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "subtractedValue", + "type": "uint256", + "internalType": "uint256" } ], - "name": "ManagerAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "name": "", + "type": "bool", + "internalType": "bool" } ], - "name": "ManagerRemoved", - "type": "event" + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "deposit", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "name": "_depositAsset", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "sharesAmount", - "type": "uint256" + "name": "_depositAssetAmount", + "type": "uint256", + "internalType": "uint256" }, { - "indexed": true, - "internalType": "address", - "name": "redemptionAsset", - "type": "address" - }, + "name": "_minSharesAmount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "redemptionAssetAmount", - "type": "uint256" + "name": "sharesReceived_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "Redeemed", - "type": "event" + "stateMutability": "payable" }, { - "anonymous": false, + "type": "function", + "name": "depositAllFromQueue", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "name": "_depositAsset", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "users_", + "type": "address[]", + "internalType": "address[]" }, { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "userSharesReceived_", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "RedemptionApproval", - "type": "event" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ + "type": "function", + "name": "depositApprovalsAreUsed", + "inputs": [], + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" + "name": "approvalsUsed_", + "type": "bool", + "internalType": "bool" } ], - "name": "RedemptionAssetSet", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "depositFromQueue", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "name": "_depositAsset", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "sharesAmount", - "type": "uint256" + "name": "_users", + "type": "address[]", + "internalType": "address[]" } ], - "name": "RedemptionRequestAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "name": "userSharesReceived_", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "RedemptionRequestRemoved", - "type": "event" + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "forceTransfer", "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "firstWindowStart", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "frequency", - "type": "uint256" + "name": "_sender", + "type": "address", + "internalType": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, + "name": "_recipient", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "relativeSharesCap", - "type": "uint256" + "name": "amount_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "RedemptionWindowConfigSet", - "type": "event" + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "getDepositApproval", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" + "name": "_user", + "type": "address", + "internalType": "address" }, { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, + "name": "_asset", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" + "name": "amount_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "Transfer", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, + "type": "function", + "name": "getDepositMode", + "inputs": [], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "mode_", + "type": "uint8", + "internalType": "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode" } ], - "name": "TransferApproval", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "getDepositQueueUserRequest", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" + "name": "_depositAsset", + "type": "address", + "internalType": "address" }, { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, + "name": "_user", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "request_", + "type": "tuple", + "internalType": "struct GatedRedemptionQueueSharesWrapperLibBase1.DepositRequest", + "components": [ + { + "name": "index", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "assetAmount", + "type": "uint128", + "internalType": "uint128" + } + ] } ], - "name": "TransferForced", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "getDepositQueueUsers", "inputs": [ { - "indexed": false, - "internalType": "bool", - "name": "useApprovals", - "type": "bool" + "name": "_depositAsset", + "type": "address", + "internalType": "address" } ], - "name": "UseDepositApprovalsSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "outputs": [ { - "indexed": false, - "internalType": "bool", - "name": "useApprovals", - "type": "bool" + "name": "users_", + "type": "address[]", + "internalType": "address[]" } ], - "name": "UseRedemptionApprovalsSet", - "type": "event" + "stateMutability": "view" }, { - "anonymous": false, + "type": "function", + "name": "getRedemptionApproval", "inputs": [ { - "indexed": false, - "internalType": "bool", - "name": "useApprovals", - "type": "bool" + "name": "_user", + "type": "address", + "internalType": "address" } ], - "name": "UseTransferApprovalsSet", - "type": "event" + "outputs": [ + { + "name": "amount_", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" }, { - "inputs": [ + "type": "function", + "name": "getRedemptionAsset", + "inputs": [], + "outputs": [ { - "internalType": "address[]", - "name": "_managers", - "type": "address[]" + "name": "asset_", + "type": "address", + "internalType": "address" } ], - "name": "addManagers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "view" }, { - "inputs": [ + "type": "function", + "name": "getRedemptionQueue", + "inputs": [], + "outputs": [ { - "internalType": "address", - "name": "owner", - "type": "address" + "name": "totalSharesPending_", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", - "name": "spender", - "type": "address" - } - ], - "name": "allowance", - "outputs": [ + "name": "relativeSharesAllowed_", + "type": "uint256", + "internalType": "uint256" + }, { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "relativeSharesCheckpointed_", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRedemptionQueueUserByIndex", "inputs": [ { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" + "name": "_index", + "type": "uint256", + "internalType": "uint256" } ], - "name": "approve", "outputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "name": "user_", + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRedemptionQueueUserRequest", "inputs": [ { - "internalType": "address", - "name": "account", - "type": "address" + "name": "_user", + "type": "address", + "internalType": "address" } ], - "name": "balanceOf", "outputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "request_", + "type": "tuple", + "internalType": "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionRequest", + "components": [ + { + "name": "index", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "lastRedeemed", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "sharesPending", + "type": "uint128", + "internalType": "uint128" + } + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRedemptionQueueUsers", "inputs": [], - "name": "calcLatestRedemptionWindow", "outputs": [ { - "internalType": "uint256", - "name": "windowStart_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "windowEnd_", - "type": "uint256" + "name": "users_", + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [ + "type": "function", + "name": "getRedemptionQueueUsersLength", + "inputs": [], + "outputs": [ { - "internalType": "address", - "name": "_depositAsset", - "type": "address" + "name": "length_", + "type": "uint256", + "internalType": "uint256" } ], - "name": "cancelRequestDeposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "cancelRequestRedeem", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRedemptionWindowConfig", "inputs": [], - "name": "decimals", "outputs": [ { - "internalType": "uint8", - "name": "decimals_", - "type": "uint8" + "name": "redemptionWindowConfig_", + "type": "tuple", + "internalType": "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", + "components": [ + { + "name": "firstWindowStart", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "frequency", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "duration", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "relativeSharesCap", + "type": "uint64", + "internalType": "uint64" + } + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getTransferApproval", "inputs": [ { - "internalType": "address", - "name": "spender", - "type": "address" + "name": "_sender", + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", - "name": "subtractedValue", - "type": "uint256" + "name": "_recipient", + "type": "address", + "internalType": "address" } ], - "name": "decreaseAllowance", "outputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "name": "amount_", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "view" }, { - "inputs": [ - { - "internalType": "address", - "name": "_depositAsset", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_depositAssetAmount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_minSharesAmount", - "type": "uint256" - } - ], - "name": "deposit", + "type": "function", + "name": "getVaultProxy", + "inputs": [], "outputs": [ { - "internalType": "uint256", - "name": "sharesReceived_", - "type": "uint256" + "name": "vaultProxy_", + "type": "address", + "internalType": "address" } ], - "stateMutability": "payable", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "increaseAllowance", "inputs": [ { - "internalType": "address", - "name": "_depositAsset", - "type": "address" - } - ], - "name": "depositAllFromQueue", - "outputs": [ - { - "internalType": "address[]", - "name": "users_", - "type": "address[]" + "name": "spender", + "type": "address", + "internalType": "address" }, { - "internalType": "uint256[]", - "name": "userSharesReceived_", - "type": "uint256[]" + "name": "addedValue", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositApprovalsAreUsed", "outputs": [ { - "internalType": "bool", - "name": "approvalsUsed_", - "type": "bool" + "name": "", + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "address", - "name": "_depositAsset", - "type": "address" + "name": "_vaultProxy", + "type": "address", + "internalType": "address" }, { - "internalType": "address[]", - "name": "_users", - "type": "address[]" - } - ], - "name": "depositFromQueue", - "outputs": [ + "name": "_managers", + "type": "address[]", + "internalType": "address[]" + }, { - "internalType": "uint256[]", - "name": "userSharesReceived_", - "type": "uint256[]" + "name": "_redemptionAsset", + "type": "address", + "internalType": "address" + }, + { + "name": "_useDepositApprovals", + "type": "bool", + "internalType": "bool" + }, + { + "name": "_useRedemptionApprovals", + "type": "bool", + "internalType": "bool" + }, + { + "name": "_useTransferApprovals", + "type": "bool", + "internalType": "bool" + }, + { + "name": "_depositMode", + "type": "uint8", + "internalType": "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode" + }, + { + "name": "_windowConfig", + "type": "tuple", + "internalType": "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", + "components": [ + { + "name": "firstWindowStart", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "frequency", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "duration", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "relativeSharesCap", + "type": "uint64", + "internalType": "uint64" + } + ] } ], - "stateMutability": "nonpayable", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { - "inputs": [ - { - "internalType": "address", - "name": "_sender", - "type": "address" - }, + "type": "function", + "name": "isManager", + "inputs": [ { - "internalType": "address", - "name": "_recipient", - "type": "address" + "name": "_user", + "type": "address", + "internalType": "address" } ], - "name": "forceTransfer", "outputs": [ { - "internalType": "uint256", - "name": "amount_", - "type": "uint256" + "name": "isManager_", + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "kick", "inputs": [ { - "internalType": "address", "name": "_user", - "type": "address" - }, - { - "internalType": "address", - "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getDepositApproval", "outputs": [ { - "internalType": "uint256", - "name": "amount_", - "type": "uint256" + "name": "sharesRedeemed_", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "name", "inputs": [], - "name": "getDepositMode", "outputs": [ { - "internalType": "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", - "name": "mode_", - "type": "uint8" + "name": "name_", + "type": "string", + "internalType": "string" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeemFromQueue", "inputs": [ { - "internalType": "address", - "name": "_depositAsset", - "type": "address" + "name": "_startIndex", + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", - "name": "_user", - "type": "address" + "name": "_endIndex", + "type": "uint256", + "internalType": "uint256" } ], - "name": "getDepositQueueUserRequest", "outputs": [ { - "components": [ - { - "internalType": "uint64", - "name": "index", - "type": "uint64" - }, - { - "internalType": "uint128", - "name": "assetAmount", - "type": "uint128" - } - ], - "internalType": "struct GatedRedemptionQueueSharesWrapperLibBase1.DepositRequest", - "name": "request_", - "type": "tuple" + "name": "usersRedeemed_", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "sharesRedeemed_", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [ - { - "internalType": "address", - "name": "_depositAsset", - "type": "address" - } - ], - "name": "getDepositQueueUsers", + "type": "function", + "name": "redemptionApprovalsAreUsed", + "inputs": [], "outputs": [ { - "internalType": "address[]", - "name": "users_", - "type": "address[]" + "name": "approvalsUsed_", + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "removeManagers", "inputs": [ { - "internalType": "address", - "name": "_user", - "type": "address" + "name": "_managers", + "type": "address[]", + "internalType": "address[]" } ], - "name": "getRedemptionApproval", - "outputs": [ + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "requestDeposit", + "inputs": [ { - "internalType": "uint256", - "name": "amount_", - "type": "uint256" + "name": "_depositAsset", + "type": "address", + "internalType": "address" + }, + { + "name": "_depositAssetAmount", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "payable" }, { - "inputs": [], - "name": "getRedemptionAsset", - "outputs": [ + "type": "function", + "name": "requestRedeem", + "inputs": [ { - "internalType": "address", - "name": "asset_", - "type": "address" + "name": "_sharesAmount", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { - "inputs": [], - "name": "getRedemptionQueue", - "outputs": [ + "type": "function", + "name": "setDepositApprovals", + "inputs": [ { - "internalType": "uint256", - "name": "totalSharesPending_", - "type": "uint256" + "name": "_users", + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256", - "name": "relativeSharesAllowed_", - "type": "uint256" + "name": "_assets", + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256", - "name": "relativeSharesCheckpointed_", - "type": "uint256" + "name": "_amounts", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setDepositMode", "inputs": [ { - "internalType": "uint256", - "name": "_index", - "type": "uint256" - } - ], - "name": "getRedemptionQueueUserByIndex", - "outputs": [ - { - "internalType": "address", - "name": "user_", - "type": "address" + "name": "_mode", + "type": "uint8", + "internalType": "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode" } ], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setRedemptionApprovals", "inputs": [ { - "internalType": "address", - "name": "_user", - "type": "address" - } - ], - "name": "getRedemptionQueueUserRequest", - "outputs": [ - { - "components": [ - { - "internalType": "uint64", - "name": "index", - "type": "uint64" - }, - { - "internalType": "uint64", - "name": "lastRedeemed", - "type": "uint64" - }, - { - "internalType": "uint128", - "name": "sharesPending", - "type": "uint128" - } - ], - "internalType": "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionRequest", - "name": "request_", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getRedemptionQueueUsers", - "outputs": [ + "name": "_users", + "type": "address[]", + "internalType": "address[]" + }, { - "internalType": "address[]", - "name": "users_", - "type": "address[]" + "name": "_amounts", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { - "inputs": [], - "name": "getRedemptionQueueUsersLength", - "outputs": [ + "type": "function", + "name": "setRedemptionAsset", + "inputs": [ { - "internalType": "uint256", - "name": "length_", - "type": "uint256" + "name": "_nextRedemptionAsset", + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { - "inputs": [], - "name": "getRedemptionWindowConfig", - "outputs": [ + "type": "function", + "name": "setRedemptionWindowConfig", + "inputs": [ { + "name": "_nextWindowConfig", + "type": "tuple", + "internalType": "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", "components": [ { - "internalType": "uint64", "name": "firstWindowStart", - "type": "uint64" + "type": "uint64", + "internalType": "uint64" }, { - "internalType": "uint32", "name": "frequency", - "type": "uint32" + "type": "uint32", + "internalType": "uint32" }, { - "internalType": "uint32", "name": "duration", - "type": "uint32" + "type": "uint32", + "internalType": "uint32" }, { - "internalType": "uint64", "name": "relativeSharesCap", - "type": "uint64" + "type": "uint64", + "internalType": "uint64" } - ], - "internalType": "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", - "name": "redemptionWindowConfig_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setTransferApprovals", "inputs": [ { - "internalType": "address", - "name": "_sender", - "type": "address" + "name": "_users", + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address", - "name": "_recipient", - "type": "address" + "name": "_recipients", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "_amounts", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "getTransferApproval", - "outputs": [ + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setUseDepositApprovals", + "inputs": [ { - "internalType": "uint256", - "name": "amount_", - "type": "uint256" + "name": "_nextUseDepositApprovals", + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { - "inputs": [], - "name": "getVaultProxy", - "outputs": [ + "type": "function", + "name": "setUseRedemptionApprovals", + "inputs": [ { - "internalType": "address", - "name": "vaultProxy_", - "type": "address" + "name": "_nextUseRedemptionApprovals", + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "outputs": [], + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setUseTransferApprovals", "inputs": [ { - "internalType": "address", - "name": "spender", - "type": "address" - }, + "name": "_nextUseTransferApprovals", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "symbol", + "inputs": [], + "outputs": [ { - "internalType": "uint256", - "name": "addedValue", - "type": "uint256" + "name": "symbol_", + "type": "string", + "internalType": "string" } ], - "name": "increaseAllowance", + "stateMutability": "view" + }, + { + "type": "function", + "name": "totalSupply", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "transfer", "inputs": [ { - "internalType": "address", - "name": "_vaultProxy", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_managers", - "type": "address[]" - }, - { - "internalType": "address", - "name": "_redemptionAsset", - "type": "address" - }, - { - "internalType": "bool", - "name": "_useDepositApprovals", - "type": "bool" - }, - { - "internalType": "bool", - "name": "_useRedemptionApprovals", - "type": "bool" - }, - { - "internalType": "bool", - "name": "_useTransferApprovals", - "type": "bool" - }, - { - "internalType": "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", - "name": "_depositMode", - "type": "uint8" + "name": "_recipient", + "type": "address", + "internalType": "address" }, { - "components": [ - { - "internalType": "uint64", - "name": "firstWindowStart", - "type": "uint64" - }, - { - "internalType": "uint32", - "name": "frequency", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "duration", - "type": "uint32" - }, - { - "internalType": "uint64", - "name": "relativeSharesCap", - "type": "uint64" - } - ], - "internalType": "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", - "name": "_windowConfig", - "type": "tuple" + "name": "_amount", + "type": "uint256", + "internalType": "uint256" } ], - "name": "init", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ + "outputs": [ { - "internalType": "address", - "name": "_user", - "type": "address" + "name": "success_", + "type": "bool", + "internalType": "bool" } ], - "name": "isManager", + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferApprovalsAreUsed", + "inputs": [], "outputs": [ { - "internalType": "bool", - "name": "isManager_", - "type": "bool" + "name": "approvalsUsed_", + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "transferFrom", "inputs": [ { - "internalType": "address", - "name": "_user", - "type": "address" - } - ], - "name": "kick", - "outputs": [ + "name": "_sender", + "type": "address", + "internalType": "address" + }, { - "internalType": "uint256", - "name": "sharesRedeemed_", - "type": "uint256" + "name": "_recipient", + "type": "address", + "internalType": "address" + }, + { + "name": "_amount", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", "outputs": [ { - "internalType": "string", - "name": "name_", - "type": "string" + "name": "success_", + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "event", + "name": "Approval", "inputs": [ { - "internalType": "uint256", - "name": "_startIndex", - "type": "uint256" + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "_endIndex", - "type": "uint256" - } - ], - "name": "redeemFromQueue", - "outputs": [ - { - "internalType": "address[]", - "name": "usersRedeemed_", - "type": "address[]" + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256[]", - "name": "sharesRedeemed_", - "type": "uint256[]" + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "redemptionApprovalsAreUsed", - "outputs": [ + "type": "event", + "name": "DepositApproval", + "inputs": [ { - "internalType": "bool", - "name": "approvalsUsed_", - "type": "bool" + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "DepositModeSet", "inputs": [ { - "internalType": "address[]", - "name": "_managers", - "type": "address[]" + "name": "mode", + "type": "uint8", + "indexed": false, + "internalType": "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode" } ], - "name": "removeManagers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "DepositRequestAdded", "inputs": [ { - "internalType": "address", - "name": "_depositAsset", - "type": "address" + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "_depositAssetAmount", - "type": "uint256" + "name": "depositAsset", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "depositAssetAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "requestDeposit", - "outputs": [], - "stateMutability": "payable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "DepositRequestRemoved", "inputs": [ { - "internalType": "uint256", - "name": "_sharesAmount", - "type": "uint256" + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "depositAsset", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "name": "requestRedeem", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Deposited", "inputs": [ { - "internalType": "address[]", - "name": "_users", - "type": "address[]" + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address[]", - "name": "_assets", - "type": "address[]" + "name": "depositToken", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256[]", - "name": "_amounts", - "type": "uint256[]" + "name": "depositTokenAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "sharesReceived", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "setDepositApprovals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Initialized", "inputs": [ { - "internalType": "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", - "name": "_mode", - "type": "uint8" + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "name": "setDepositMode", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Kicked", "inputs": [ { - "internalType": "address[]", - "name": "_users", - "type": "address[]" + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256[]", - "name": "_amounts", - "type": "uint256[]" + "name": "sharesAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "setRedemptionApprovals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "ManagerAdded", "inputs": [ { - "internalType": "address", - "name": "_nextRedemptionAsset", - "type": "address" + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "name": "setRedemptionAsset", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "ManagerRemoved", "inputs": [ { - "components": [ - { - "internalType": "uint64", - "name": "firstWindowStart", - "type": "uint64" - }, - { - "internalType": "uint32", - "name": "frequency", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "duration", - "type": "uint32" - }, - { - "internalType": "uint64", - "name": "relativeSharesCap", - "type": "uint64" - } - ], - "internalType": "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", - "name": "_nextWindowConfig", - "type": "tuple" + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "name": "setRedemptionWindowConfig", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Redeemed", "inputs": [ { - "internalType": "address[]", - "name": "_users", - "type": "address[]" + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address[]", - "name": "_recipients", - "type": "address[]" + "name": "sharesAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256[]", - "name": "_amounts", - "type": "uint256[]" + "name": "redemptionAsset", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "redemptionAssetAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "setTransferApprovals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "RedemptionApproval", "inputs": [ { - "internalType": "bool", - "name": "_nextUseDepositApprovals", - "type": "bool" + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "setUseDepositApprovals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "RedemptionAssetSet", "inputs": [ { - "internalType": "bool", - "name": "_nextUseRedemptionApprovals", - "type": "bool" + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "name": "setUseRedemptionApprovals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "RedemptionRequestAdded", "inputs": [ { - "internalType": "bool", - "name": "_nextUseTransferApprovals", - "type": "bool" + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharesAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "setUseTransferApprovals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "symbol", - "outputs": [ + "type": "event", + "name": "RedemptionRequestRemoved", + "inputs": [ { - "internalType": "string", - "name": "symbol_", - "type": "string" + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "totalSupply", - "outputs": [ + "type": "event", + "name": "RedemptionWindowConfigSet", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "firstWindowStart", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "frequency", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "duration", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "relativeSharesCap", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Transfer", "inputs": [ { - "internalType": "address", - "name": "_recipient", - "type": "address" + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, { - "internalType": "bool", - "name": "success_", - "type": "bool" + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "transferApprovalsAreUsed", - "outputs": [ + "type": "event", + "name": "TransferApproval", + "inputs": [ { - "internalType": "bool", - "name": "approvalsUsed_", - "type": "bool" + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "recipient", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "TransferForced", "inputs": [ { - "internalType": "address", - "name": "_sender", - "type": "address" + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "_recipient", - "type": "address" + "name": "recipient", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "transferFrom", - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "UseDepositApprovalsSet", + "inputs": [ { - "internalType": "bool", - "name": "success_", - "type": "bool" + "name": "useApprovals", + "type": "bool", + "indexed": false, + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { - "stateMutability": "payable", - "type": "receive" + "type": "event", + "name": "UseRedemptionApprovalsSet", + "inputs": [ + { + "name": "useApprovals", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "UseTransferApprovalsSet", + "inputs": [ + { + "name": "useApprovals", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IGatedRedemptionQueueSharesWrapperLib.sol b/packages/abis/abis/IGatedRedemptionQueueSharesWrapperLib.sol index f84edcb1..4cdb7e7b 100644 --- a/packages/abis/abis/IGatedRedemptionQueueSharesWrapperLib.sol +++ b/packages/abis/abis/IGatedRedemptionQueueSharesWrapperLib.sol @@ -1,10 +1,30 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IGatedRedemptionQueueSharesWrapperLib { + type DepositMode is uint8; + + struct DepositRequest { + uint64 index; + uint128 assetAmount; + } + + struct RedemptionRequest { + uint64 index; + uint64 lastRedeemed; + uint128 sharesPending; + } + + struct RedemptionWindowConfig { + uint64 firstWindowStart; + uint32 frequency; + uint32 duration; + uint64 relativeSharesCap; + } + event Approval(address indexed owner, address indexed spender, uint256 value); event DepositApproval(address indexed user, address indexed asset, uint256 amount); - event DepositModeSet(uint8 mode); + event DepositModeSet(DepositMode mode); event DepositRequestAdded(address indexed user, address indexed depositAsset, uint256 depositAssetAmount); event DepositRequestRemoved(address indexed user, address indexed depositAsset); event Deposited( @@ -31,23 +51,7 @@ interface IGatedRedemptionQueueSharesWrapperLib { event UseRedemptionApprovalsSet(bool useApprovals); event UseTransferApprovalsSet(bool useApprovals); - struct DepositRequest { - uint64 index; - uint128 assetAmount; - } - - struct RedemptionRequest { - uint64 index; - uint64 lastRedeemed; - uint128 sharesPending; - } - - struct RedemptionWindowConfig { - uint64 firstWindowStart; - uint32 frequency; - uint32 duration; - uint64 relativeSharesCap; - } + receive() external payable; function addManagers(address[] memory _managers) external; function allowance(address owner, address spender) external view returns (uint256); @@ -71,7 +75,7 @@ interface IGatedRedemptionQueueSharesWrapperLib { returns (uint256[] memory userSharesReceived_); function forceTransfer(address _sender, address _recipient) external returns (uint256 amount_); function getDepositApproval(address _user, address _asset) external view returns (uint256 amount_); - function getDepositMode() external view returns (uint8 mode_); + function getDepositMode() external view returns (DepositMode mode_); function getDepositQueueUserRequest(address _depositAsset, address _user) external view @@ -101,7 +105,7 @@ interface IGatedRedemptionQueueSharesWrapperLib { bool _useDepositApprovals, bool _useRedemptionApprovals, bool _useTransferApprovals, - uint8 _depositMode, + DepositMode _depositMode, RedemptionWindowConfig memory _windowConfig ) external; function isManager(address _user) external view returns (bool isManager_); @@ -116,7 +120,7 @@ interface IGatedRedemptionQueueSharesWrapperLib { function requestRedeem(uint256 _sharesAmount) external; function setDepositApprovals(address[] memory _users, address[] memory _assets, uint256[] memory _amounts) external; - function setDepositMode(uint8 _mode) external; + function setDepositMode(DepositMode _mode) external; function setRedemptionApprovals(address[] memory _users, uint256[] memory _amounts) external; function setRedemptionAsset(address _nextRedemptionAsset) external; function setRedemptionWindowConfig(RedemptionWindowConfig memory _nextWindowConfig) external; diff --git a/packages/abis/abis/IGlobalConfigLib.abi.json b/packages/abis/abis/IGlobalConfigLib.abi.json index 05702af2..ebfd9ba0 100644 --- a/packages/abis/abis/IGlobalConfigLib.abi.json +++ b/packages/abis/abis/IGlobalConfigLib.abi.json @@ -1,213 +1,213 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployerV4", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "nextGlobalConfigLib", - "type": "address" - } - ], - "name": "GlobalConfigLibSet", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "formatDepositCall", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_depositAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_depositAssetAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "formatDepositCall", "outputs": [ { - "internalType": "address", "name": "target_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "payload_", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "formatSingleAssetRedemptionCall", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_recipient", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bool", "name": "_amountIsShares", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "name": "formatSingleAssetRedemptionCall", "outputs": [ { - "internalType": "address", "name": "target_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "payload_", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDispatcher", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "dispatcher_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getGlobalConfigLib", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "globalConfigLib_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "isValidRedeemSharesCall", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_recipientToValidate", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_sharesAmountToValidate", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_redeemContract", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_redeemSelector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_redeemData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "isValidRedeemSharesCall", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "proxiableUUID", + "inputs": [], "outputs": [ { - "internalType": "bytes32", "name": "uuid_", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "setGlobalConfigLib", "inputs": [ { - "internalType": "address", "name": "_nextGlobalConfigLib", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setGlobalConfigLib", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "GlobalConfigLibSet", + "inputs": [ + { + "name": "nextGlobalConfigLib", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IGlobalConfigLib.sol b/packages/abis/abis/IGlobalConfigLib.sol index 803565a0..b30ba518 100644 --- a/packages/abis/abis/IGlobalConfigLib.sol +++ b/packages/abis/abis/IGlobalConfigLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IGlobalConfigLib { diff --git a/packages/abis/abis/IHelperDataReader.abi.json b/packages/abis/abis/IHelperDataReader.abi.json index c14e3bc0..0725f89e 100644 --- a/packages/abis/abis/IHelperDataReader.abi.json +++ b/packages/abis/abis/IHelperDataReader.abi.json @@ -1,534 +1,534 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "contract IFundValueCalculatorRouter", "name": "_fundValueCalculatorRouter", - "type": "address" + "type": "address", + "internalType": "contract IFundValueCalculatorRouter" }, { - "internalType": "contract IExternalPositionFactory", "name": "_externalPositionFactory", - "type": "address" + "type": "address", + "internalType": "contract IExternalPositionFactory" }, { - "internalType": "contract IPolicyManagerExtended", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "contract IPolicyManagerExtended" }, { - "internalType": "contract IFeeManagerExtended", "name": "_feeManager", - "type": "address" + "type": "address", + "internalType": "contract IFeeManagerExtended" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getVaultActiveExternalPositionsDetails", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultActiveExternalPositionsDetails", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getVaultActiveExternalPositionsDetailsDecoded", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultActiveExternalPositionsDetailsDecoded", "outputs": [ { + "name": "", + "type": "tuple[]", + "internalType": "struct HelperDataReader.ExternalPositionDetails[]", "components": [ { - "internalType": "string", "name": "label", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "address", "name": "id", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "typeId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { + "name": "debtAssetsAmounts", + "type": "tuple[]", + "internalType": "struct HelperDataReader.AssetAmount[]", "components": [ { - "internalType": "address", "name": "asset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct HelperDataReader.AssetAmount[]", - "name": "debtAssetsAmounts", - "type": "tuple[]" + ] }, { + "name": "managedAssetsAmounts", + "type": "tuple[]", + "internalType": "struct HelperDataReader.AssetAmount[]", "components": [ { - "internalType": "address", "name": "asset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct HelperDataReader.AssetAmount[]", - "name": "managedAssetsAmounts", - "type": "tuple[]" + ] } - ], - "internalType": "struct HelperDataReader.ExternalPositionDetails[]", - "name": "", - "type": "tuple[]" + ] } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getVaultDetails", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultDetails", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getVaultDetailsDecoded", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultDetailsDecoded", "outputs": [ { + "name": "", + "type": "tuple", + "internalType": "struct HelperDataReader.VaultDetails", "components": [ { - "internalType": "string", "name": "name", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "string", "name": "symbol", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "uint256", "name": "totalSupply", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "denominationAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "netShareValue", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "grossAssetValue", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bool", "name": "hasInvalidAum", - "type": "bool" + "type": "bool", + "internalType": "bool" } - ], - "internalType": "struct HelperDataReader.VaultDetails", - "name": "", - "type": "tuple" + ] } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getVaultDetailsExtended", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultDetailsExtended", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getVaultDetailsExtendedDecoded", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultDetailsExtendedDecoded", "outputs": [ { + "name": "", + "type": "tuple", + "internalType": "struct HelperDataReader.VaultDetailsExtended", "components": [ { - "internalType": "string", "name": "name", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "string", "name": "symbol", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "uint256", "name": "totalSupply", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "denominationAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "netShareValue", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "grossAssetValue", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bool", "name": "hasInvalidAum", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { + "name": "trackedAssetsAmounts", + "type": "tuple[]", + "internalType": "struct HelperDataReader.AssetAmount[]", "components": [ { - "internalType": "address", "name": "asset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct HelperDataReader.AssetAmount[]", - "name": "trackedAssetsAmounts", - "type": "tuple[]" + ] }, { + "name": "activeExternalPositionsDetails", + "type": "tuple[]", + "internalType": "struct HelperDataReader.ExternalPositionDetails[]", "components": [ { - "internalType": "string", "name": "label", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "address", "name": "id", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "typeId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { + "name": "debtAssetsAmounts", + "type": "tuple[]", + "internalType": "struct HelperDataReader.AssetAmount[]", "components": [ { - "internalType": "address", "name": "asset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct HelperDataReader.AssetAmount[]", - "name": "debtAssetsAmounts", - "type": "tuple[]" + ] }, { + "name": "managedAssetsAmounts", + "type": "tuple[]", + "internalType": "struct HelperDataReader.AssetAmount[]", "components": [ { - "internalType": "address", "name": "asset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct HelperDataReader.AssetAmount[]", - "name": "managedAssetsAmounts", - "type": "tuple[]" + ] } - ], - "internalType": "struct HelperDataReader.ExternalPositionDetails[]", - "name": "activeExternalPositionsDetails", - "type": "tuple[]" + ] }, { + "name": "policiesDetails", + "type": "tuple[]", + "internalType": "struct HelperDataReader.PolicyDetails[]", "components": [ { - "internalType": "string", "name": "identifier", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "address", "name": "id", - "type": "address" + "type": "address", + "internalType": "address" } - ], - "internalType": "struct HelperDataReader.PolicyDetails[]", - "name": "policiesDetails", - "type": "tuple[]" + ] }, { + "name": "feesDetails", + "type": "tuple[]", + "internalType": "struct HelperDataReader.FeeDetails[]", "components": [ { - "internalType": "address", "name": "recipientForFund", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "id", - "type": "address" + "type": "address", + "internalType": "address" } - ], - "internalType": "struct HelperDataReader.FeeDetails[]", - "name": "feesDetails", - "type": "tuple[]" + ] } - ], - "internalType": "struct HelperDataReader.VaultDetailsExtended", - "name": "", - "type": "tuple" + ] } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getVaultFeesDetails", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultFeesDetails", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getVaultFeesDetailsDecoded", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultFeesDetailsDecoded", "outputs": [ { + "name": "", + "type": "tuple[]", + "internalType": "struct HelperDataReader.FeeDetails[]", "components": [ { - "internalType": "address", "name": "recipientForFund", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "id", - "type": "address" + "type": "address", + "internalType": "address" } - ], - "internalType": "struct HelperDataReader.FeeDetails[]", - "name": "", - "type": "tuple[]" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getVaultPoliciesDetails", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultPoliciesDetails", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getVaultPoliciesDetailsDecoded", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultPoliciesDetailsDecoded", "outputs": [ { + "name": "", + "type": "tuple[]", + "internalType": "struct HelperDataReader.PolicyDetails[]", "components": [ { - "internalType": "string", "name": "identifier", - "type": "string" + "type": "string", + "internalType": "string" }, { - "internalType": "address", "name": "id", - "type": "address" + "type": "address", + "internalType": "address" } - ], - "internalType": "struct HelperDataReader.PolicyDetails[]", - "name": "", - "type": "tuple[]" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getVaultTrackedAssetsAmounts", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultTrackedAssetsAmounts", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getVaultTrackedAssetsAmountsDecoded", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultTrackedAssetsAmountsDecoded", "outputs": [ { + "name": "", + "type": "tuple[]", + "internalType": "struct HelperDataReader.AssetAmount[]", "components": [ { - "internalType": "address", "name": "asset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct HelperDataReader.AssetAmount[]", - "name": "", - "type": "tuple[]" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IHelperDataReader.sol b/packages/abis/abis/IHelperDataReader.sol index 11e17406..af2f8ba0 100644 --- a/packages/abis/abis/IHelperDataReader.sol +++ b/packages/abis/abis/IHelperDataReader.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IHelperDataReader { diff --git a/packages/abis/abis/IHelperDataReaderRouter.abi.json b/packages/abis/abis/IHelperDataReaderRouter.abi.json index ef5d46e2..efaac0a9 100644 --- a/packages/abis/abis/IHelperDataReaderRouter.abi.json +++ b/packages/abis/abis/IHelperDataReaderRouter.abi.json @@ -1,291 +1,291 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address[]", "name": "_fundDeployers", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "components": [ - { - "internalType": "contract IHelperDataReader", - "name": "helperDataReader", - "type": "address" - }, - { - "internalType": "uint8", - "name": "version", - "type": "uint8" - } - ], - "internalType": "struct HelperDataReaderRouter.HelperDataReaderInfo[]", "name": "_helperDataReadersInfo", - "type": "tuple[]" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "fundDeployer", - "type": "address" - }, - { + "type": "tuple[]", + "internalType": "struct HelperDataReaderRouter.HelperDataReaderInfo[]", "components": [ { - "internalType": "contract IHelperDataReader", "name": "helperDataReader", - "type": "address" + "type": "address", + "internalType": "contract IHelperDataReader" }, { - "internalType": "uint8", "name": "version", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } - ], - "indexed": false, - "internalType": "struct HelperDataReaderRouter.HelperDataReaderInfo", - "name": "HelperDataReader", - "type": "tuple" + ] } ], - "name": "HelperDataReaderUpdated", - "type": "event" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getDispatcher", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "dispatcher_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getHelperDataReaderForVault", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getHelperDataReaderForVault", "outputs": [ { + "name": "", + "type": "tuple", + "internalType": "struct HelperDataReaderRouter.HelperDataReaderInfo", "components": [ { - "internalType": "contract IHelperDataReader", "name": "helperDataReader", - "type": "address" + "type": "address", + "internalType": "contract IHelperDataReader" }, { - "internalType": "uint8", "name": "version", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } - ], - "internalType": "struct HelperDataReaderRouter.HelperDataReaderInfo", - "name": "", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getHelperDataReaderInfoForFundDeployer", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getHelperDataReaderInfoForFundDeployer", "outputs": [ { + "name": "helperDataReader_", + "type": "tuple", + "internalType": "struct HelperDataReaderRouter.HelperDataReaderInfo", "components": [ { - "internalType": "contract IHelperDataReader", "name": "helperDataReader", - "type": "address" + "type": "address", + "internalType": "contract IHelperDataReader" }, { - "internalType": "uint8", "name": "version", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } - ], - "internalType": "struct HelperDataReaderRouter.HelperDataReaderInfo", - "name": "helperDataReader_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getVaultActiveExternalPositionsDetails", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultActiveExternalPositionsDetails", "outputs": [ { - "internalType": "bytes", "name": "data", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint8", "name": "version", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getVaultDetails", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultDetails", "outputs": [ { - "internalType": "bytes", "name": "data", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint8", "name": "version", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getVaultFeesDetails", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultFeesDetails", "outputs": [ { - "internalType": "bytes", "name": "data", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint8", "name": "version", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getVaultPoliciesDetails", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultPoliciesDetails", "outputs": [ { - "internalType": "bytes", "name": "data", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint8", "name": "version", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getVaultTrackedAssetsAmounts", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultTrackedAssetsAmounts", "outputs": [ { - "internalType": "bytes", "name": "data", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint8", "name": "version", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setHelperDataReaders", "inputs": [ { - "internalType": "address[]", "name": "_fundDeployers", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { + "name": "_helperDataReadersInfo", + "type": "tuple[]", + "internalType": "struct HelperDataReaderRouter.HelperDataReaderInfo[]", "components": [ { - "internalType": "contract IHelperDataReader", "name": "helperDataReader", - "type": "address" + "type": "address", + "internalType": "contract IHelperDataReader" }, { - "internalType": "uint8", "name": "version", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } - ], - "internalType": "struct HelperDataReaderRouter.HelperDataReaderInfo[]", - "name": "_helperDataReadersInfo", - "type": "tuple[]" + ] } ], - "name": "setHelperDataReaders", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "HelperDataReaderUpdated", + "inputs": [ + { + "name": "fundDeployer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "HelperDataReader", + "type": "tuple", + "indexed": false, + "internalType": "struct HelperDataReaderRouter.HelperDataReaderInfo", + "components": [ + { + "name": "helperDataReader", + "type": "address", + "internalType": "contract IHelperDataReader" + }, + { + "name": "version", + "type": "uint8", + "internalType": "uint8" + } + ] + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IHelperDataReaderRouter.sol b/packages/abis/abis/IHelperDataReaderRouter.sol index b10941d2..2124538c 100644 --- a/packages/abis/abis/IHelperDataReaderRouter.sol +++ b/packages/abis/abis/IHelperDataReaderRouter.sol @@ -1,14 +1,14 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IHelperDataReaderRouter { - event HelperDataReaderUpdated(address indexed fundDeployer, HelperDataReaderInfo HelperDataReader); - struct HelperDataReaderInfo { address helperDataReader; uint8 version; } + event HelperDataReaderUpdated(address indexed fundDeployer, HelperDataReaderInfo HelperDataReader); + function getDispatcher() external view returns (address dispatcher_); function getHelperDataReaderForVault(address _vaultProxy) external view returns (HelperDataReaderInfo memory); function getHelperDataReaderInfoForFundDeployer(address _fundDeployer) diff --git a/packages/abis/abis/IIdleAdapter.abi.json b/packages/abis/abis/IIdleAdapter.abi.json index a9619049..d225315f 100644 --- a/packages/abis/abis/IIdleAdapter.abi.json +++ b/packages/abis/abis/IIdleAdapter.abi.json @@ -1,279 +1,279 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_idlePriceFeed", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "claimRewards", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "claimRewards", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getIdlePriceFeed", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "idlePriceFeed_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lend", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lend", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "redeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IIdleAdapter.sol b/packages/abis/abis/IIdleAdapter.sol index f997dec7..2d0730c4 100644 --- a/packages/abis/abis/IIdleAdapter.sol +++ b/packages/abis/abis/IIdleAdapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IIdleAdapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -19,7 +21,7 @@ interface IIdleAdapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IIdlePriceFeed.abi.json b/packages/abis/abis/IIdlePriceFeed.abi.json index f48da01e..a6b8dfe7 100644 --- a/packages/abis/abis/IIdlePriceFeed.abi.json +++ b/packages/abis/abis/IIdlePriceFeed.abi.json @@ -1,169 +1,169 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "derivative", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "underlying", - "type": "address" - } - ], - "name": "DerivativeAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "derivative", - "type": "address" - } - ], - "name": "DerivativeRemoved", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addDerivatives", "inputs": [ { - "internalType": "address[]", "name": "_derivatives", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_underlyings", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addDerivatives", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_derivativeAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "underlyings_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "underlyingAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getUnderlyingForDerivative", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getUnderlyingForDerivative", "outputs": [ { - "internalType": "address", "name": "underlying_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "removeDerivatives", "inputs": [ { - "internalType": "address[]", "name": "_derivatives", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "removeDerivatives", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "DerivativeAdded", + "inputs": [ + { + "name": "derivative", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "underlying", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "DerivativeRemoved", + "inputs": [ + { + "name": "derivative", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IIdlePriceFeed.sol b/packages/abis/abis/IIdlePriceFeed.sol index a04bf677..7f0ed417 100644 --- a/packages/abis/abis/IIdlePriceFeed.sol +++ b/packages/abis/abis/IIdlePriceFeed.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IIdlePriceFeed { diff --git a/packages/abis/abis/IIntegrationAdapter.abi.json b/packages/abis/abis/IIntegrationAdapter.abi.json index 0b6c658d..d3c771f2 100644 --- a/packages/abis/abis/IIntegrationAdapter.abi.json +++ b/packages/abis/abis/IIntegrationAdapter.abi.json @@ -1,51 +1,51 @@ [ { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_encodedCallArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IIntegrationAdapter.sol b/packages/abis/abis/IIntegrationAdapter.sol index f84a264b..c64f9a81 100644 --- a/packages/abis/abis/IIntegrationAdapter.sol +++ b/packages/abis/abis/IIntegrationAdapter.sol @@ -1,12 +1,14 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IIntegrationAdapter { + type SpendAssetsHandleType is uint8; + function parseAssetsForAction(address _vaultProxy, bytes4 _selector, bytes memory _encodedCallArgs) external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IIntegrationManager.abi.json b/packages/abis/abis/IIntegrationManager.abi.json index 419a4684..9685d815 100644 --- a/packages/abis/abis/IIntegrationManager.abi.json +++ b/packages/abis/abis/IIntegrationManager.abi.json @@ -1,240 +1,240 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "adapter", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes4", - "name": "selector", - "type": "bytes4" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "integrationData", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "incomingAssets", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "incomingAssetAmounts", - "type": "uint256[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "spendAssets", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "spendAssetAmounts", - "type": "uint256[]" - } - ], - "name": "CallOnIntegrationExecutedForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - } - ], - "name": "ValidatedVaultProxySetForFund", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "deactivateForFund", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getValueInterpreter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "valueInterpreter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getVaultProxyForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultProxyForFund", "outputs": [ { - "internalType": "address", "name": "vaultProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "receiveCallFromComptroller", "inputs": [ { - "internalType": "address", "name": "_caller", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_callArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromComptroller", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setConfigForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "setConfigForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "CallOnIntegrationExecutedForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "caller", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "adapter", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "selector", + "type": "bytes4", + "indexed": true, + "internalType": "bytes4" + }, + { + "name": "integrationData", + "type": "bytes", + "indexed": false, + "internalType": "bytes" + }, + { + "name": "incomingAssets", + "type": "address[]", + "indexed": false, + "internalType": "address[]" + }, + { + "name": "incomingAssetAmounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + }, + { + "name": "spendAssets", + "type": "address[]", + "indexed": false, + "internalType": "address[]" + }, + { + "name": "spendAssetAmounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ValidatedVaultProxySetForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IIntegrationManager.sol b/packages/abis/abis/IIntegrationManager.sol index 42ac5fe6..a6097b14 100644 --- a/packages/abis/abis/IIntegrationManager.sol +++ b/packages/abis/abis/IIntegrationManager.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IIntegrationManager { diff --git a/packages/abis/abis/IKilnStakingPositionLib.abi.json b/packages/abis/abis/IKilnStakingPositionLib.abi.json index ad8fa26d..ee11e606 100644 --- a/packages/abis/abis/IKilnStakingPositionLib.abi.json +++ b/packages/abis/abis/IKilnStakingPositionLib.abi.json @@ -1,156 +1,156 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_exitedValidatorEthThreshold", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [], - "name": "PositionValuePaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "PositionValueUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "stakingContractAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "validatorAmount", - "type": "uint256" - } - ], - "name": "ValidatorsAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "stakingContractAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "validatorAmount", - "type": "uint256" - } - ], - "name": "ValidatorsRemoved", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getValidatorCount", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "validatorCount_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "positionValueIsPaused", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "paused_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "PositionValuePaused", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "PositionValueUnpaused", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "ValidatorsAdded", + "inputs": [ + { + "name": "stakingContractAddress", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "validatorAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ValidatorsRemoved", + "inputs": [ + { + "name": "stakingContractAddress", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "validatorAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IKilnStakingPositionLib.sol b/packages/abis/abis/IKilnStakingPositionLib.sol index a7755094..62f1dd4d 100644 --- a/packages/abis/abis/IKilnStakingPositionLib.sol +++ b/packages/abis/abis/IKilnStakingPositionLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IKilnStakingPositionLib { diff --git a/packages/abis/abis/IKilnStakingPositionParser.abi.json b/packages/abis/abis/IKilnStakingPositionParser.abi.json index d1d5e077..550a5650 100644 --- a/packages/abis/abis/IKilnStakingPositionParser.abi.json +++ b/packages/abis/abis/IKilnStakingPositionParser.abi.json @@ -1,138 +1,138 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_stakingContractsListId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_weth", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "ADDRESS_LIST_REGISTRY_CONTRACT", + "inputs": [], "outputs": [ { - "internalType": "contract IAddressListRegistry", "name": "", - "type": "address" + "type": "address", + "internalType": "contract IAddressListRegistry" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "ETH_AMOUNT_PER_NODE", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKING_CONTRACTS_LIST_ID", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "WETH_TOKEN", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_encodedActionArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "address[]", "name": "assetsToTransfer_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amountsToTransfer_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "assetsToReceive_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "parseInitArgs", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseInitArgs", "outputs": [ { - "internalType": "bytes", "name": "initArgs_", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" } ] diff --git a/packages/abis/abis/IKilnStakingPositionParser.sol b/packages/abis/abis/IKilnStakingPositionParser.sol index c949dfd3..dd40a20e 100644 --- a/packages/abis/abis/IKilnStakingPositionParser.sol +++ b/packages/abis/abis/IKilnStakingPositionParser.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IKilnStakingPositionParser { diff --git a/packages/abis/abis/ILidoWithdrawalsPositionLib.abi.json b/packages/abis/abis/ILidoWithdrawalsPositionLib.abi.json index 50e5f919..9ccebd6d 100644 --- a/packages/abis/abis/ILidoWithdrawalsPositionLib.abi.json +++ b/packages/abis/abis/ILidoWithdrawalsPositionLib.abi.json @@ -1,137 +1,137 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "contract ILidoWithdrawalQueue", "name": "_withdrawalQueue", - "type": "address" + "type": "address", + "internalType": "contract ILidoWithdrawalQueue" }, { - "internalType": "address", "name": "_stethAddress", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RequestAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "id", - "type": "uint256" - } - ], - "name": "RequestRemoved", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getRequests", + "inputs": [], "outputs": [ { + "name": "requests_", + "type": "tuple[]", + "internalType": "struct LidoWithdrawalsPositionLibBase1.Request[]", "components": [ { - "internalType": "uint128", "name": "amount", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" }, { - "internalType": "uint128", "name": "id", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" } - ], - "internalType": "struct LidoWithdrawalsPositionLibBase1.Request[]", - "name": "requests_", - "type": "tuple[]" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "RequestAdded", + "inputs": [ + { + "name": "id", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RequestRemoved", + "inputs": [ + { + "name": "id", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/ILidoWithdrawalsPositionLib.sol b/packages/abis/abis/ILidoWithdrawalsPositionLib.sol index f15dbbc8..3f5b185b 100644 --- a/packages/abis/abis/ILidoWithdrawalsPositionLib.sol +++ b/packages/abis/abis/ILidoWithdrawalsPositionLib.sol @@ -1,15 +1,15 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ILidoWithdrawalsPositionLib { - event RequestAdded(uint256 indexed id, uint256 amount); - event RequestRemoved(uint256 indexed id); - struct Request { uint128 amount; uint128 id; } + event RequestAdded(uint256 indexed id, uint256 amount); + event RequestRemoved(uint256 indexed id); + function getDebtAssets() external pure returns (address[] memory assets_, uint256[] memory amounts_); function getManagedAssets() external view returns (address[] memory assets_, uint256[] memory amounts_); function getRequests() external view returns (Request[] memory requests_); diff --git a/packages/abis/abis/ILiquityDebtPositionLib.abi.json b/packages/abis/abis/ILiquityDebtPositionLib.abi.json index f4af093a..66f61b59 100644 --- a/packages/abis/abis/ILiquityDebtPositionLib.abi.json +++ b/packages/abis/abis/ILiquityDebtPositionLib.abi.json @@ -1,90 +1,90 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_liquityBorrowerOperations", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_liquityTroveManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_lusd", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_weth", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/ILiquityDebtPositionLib.sol b/packages/abis/abis/ILiquityDebtPositionLib.sol index 5119076b..283fa344 100644 --- a/packages/abis/abis/ILiquityDebtPositionLib.sol +++ b/packages/abis/abis/ILiquityDebtPositionLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ILiquityDebtPositionLib { diff --git a/packages/abis/abis/ILiquityDebtPositionParser.abi.json b/packages/abis/abis/ILiquityDebtPositionParser.abi.json index 09805f1f..0fda8ce1 100644 --- a/packages/abis/abis/ILiquityDebtPositionParser.abi.json +++ b/packages/abis/abis/ILiquityDebtPositionParser.abi.json @@ -1,86 +1,86 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_liquityTroveManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_lusdToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "_externalPosition", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_encodedActionArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "address[]", "name": "assetsToTransfer_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amountsToTransfer_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "assetsToReceive_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseInitArgs", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseInitArgs", "outputs": [ { - "internalType": "bytes", "name": "initArgs_", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/ILiquityDebtPositionParser.sol b/packages/abis/abis/ILiquityDebtPositionParser.sol index 3761b618..a3a96870 100644 --- a/packages/abis/abis/ILiquityDebtPositionParser.sol +++ b/packages/abis/abis/ILiquityDebtPositionParser.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ILiquityDebtPositionParser { diff --git a/packages/abis/abis/IManagementFee.abi.json b/packages/abis/abis/IManagementFee.abi.json index 7f046173..53c52cca 100644 --- a/packages/abis/abis/IManagementFee.abi.json +++ b/packages/abis/abis/IManagementFee.abi.json @@ -1,360 +1,360 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_feeManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - } - ], - "name": "ActivatedForMigratedFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "scaledPerSecondRate", - "type": "uint128" - } - ], - "name": "FundSettingsAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - } - ], - "name": "RecipientSetForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesQuantity", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "secondsSinceSettlement", - "type": "uint256" - } - ], - "name": "Settled", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_settingsData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getFeeInfoForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getFeeInfoForFund", "outputs": [ { + "name": "feeInfo_", + "type": "tuple", + "internalType": "struct ManagementFee.FeeInfo", "components": [ { - "internalType": "uint128", "name": "scaledPerSecondRate", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" }, { - "internalType": "uint128", "name": "lastSettled", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" } - ], - "internalType": "struct ManagementFee.FeeInfo", - "name": "feeInfo_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFeeManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "feeManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRecipientForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getRecipientForFund", "outputs": [ { - "internalType": "address", "name": "recipient_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "payout", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "payout", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setRecipientForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_recipient", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setRecipientForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settle", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "settle", "outputs": [ { - "internalType": "enum IFeeManager.SettlementType", "name": "settlementType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.SettlementType" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "sharesDue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settlesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "settlesOnHook", "outputs": [ { - "internalType": "bool", "name": "settles_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "update", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "update", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updatesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "updatesOnHook", "outputs": [ { - "internalType": "bool", "name": "updates_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "ActivatedForMigratedFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "FundSettingsAdded", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "scaledPerSecondRate", + "type": "uint128", + "indexed": false, + "internalType": "uint128" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RecipientSetForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "recipient", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Settled", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharesQuantity", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "secondsSinceSettlement", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IManagementFee.sol b/packages/abis/abis/IManagementFee.sol index f4e5fb30..7cb37e35 100644 --- a/packages/abis/abis/IManagementFee.sol +++ b/packages/abis/abis/IManagementFee.sol @@ -1,17 +1,20 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IManagementFee { - event ActivatedForMigratedFund(address indexed comptrollerProxy); - event FundSettingsAdded(address indexed comptrollerProxy, uint128 scaledPerSecondRate); - event RecipientSetForFund(address indexed comptrollerProxy, address indexed recipient); - event Settled(address indexed comptrollerProxy, uint256 sharesQuantity, uint256 secondsSinceSettlement); + type FeeHook is uint8; + type SettlementType is uint8; struct FeeInfo { uint128 scaledPerSecondRate; uint128 lastSettled; } + event ActivatedForMigratedFund(address indexed comptrollerProxy); + event FundSettingsAdded(address indexed comptrollerProxy, uint128 scaledPerSecondRate); + event RecipientSetForFund(address indexed comptrollerProxy, address indexed recipient); + event Settled(address indexed comptrollerProxy, uint256 sharesQuantity, uint256 secondsSinceSettlement); + function activateForFund(address _comptrollerProxy, address _vaultProxy) external; function addFundSettings(address _comptrollerProxy, bytes memory _settingsData) external; function getFeeInfoForFund(address _comptrollerProxy) external view returns (FeeInfo memory feeInfo_); @@ -19,10 +22,10 @@ interface IManagementFee { function getRecipientForFund(address _comptrollerProxy) external view returns (address recipient_); function payout(address, address) external returns (bool); function setRecipientForFund(address _comptrollerProxy, address _recipient) external; - function settle(address _comptrollerProxy, address _vaultProxy, uint8, bytes memory, uint256) + function settle(address _comptrollerProxy, address _vaultProxy, FeeHook, bytes memory, uint256) external - returns (uint8 settlementType_, address, uint256 sharesDue_); - function settlesOnHook(uint8 _hook) external view returns (bool settles_, bool usesGav_); - function update(address, address, uint8, bytes memory, uint256) external; - function updatesOnHook(uint8) external view returns (bool updates_, bool usesGav_); + returns (SettlementType settlementType_, address, uint256 sharesDue_); + function settlesOnHook(FeeHook _hook) external view returns (bool settles_, bool usesGav_); + function update(address, address, FeeHook, bytes memory, uint256) external; + function updatesOnHook(FeeHook) external view returns (bool updates_, bool usesGav_); } diff --git a/packages/abis/abis/IManualValueOracleFactory.abi.json b/packages/abis/abis/IManualValueOracleFactory.abi.json index a9fdb6e2..c90a5dab 100644 --- a/packages/abis/abis/IManualValueOracleFactory.abi.json +++ b/packages/abis/abis/IManualValueOracleFactory.abi.json @@ -1,55 +1,55 @@ [ { + "type": "constructor", "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "caller", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "proxy", - "type": "address" - } - ], - "name": "ProxyDeployed", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "deploy", "inputs": [ { - "internalType": "address", "name": "_owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_updater", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes32", "name": "_description", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "name": "deploy", "outputs": [ { - "internalType": "address", "name": "proxy_", - "type": "address" + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ProxyDeployed", + "inputs": [ + { + "name": "caller", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "proxy", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IManualValueOracleFactory.sol b/packages/abis/abis/IManualValueOracleFactory.sol index 5398d947..67e2716c 100644 --- a/packages/abis/abis/IManualValueOracleFactory.sol +++ b/packages/abis/abis/IManualValueOracleFactory.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IManualValueOracleFactory { diff --git a/packages/abis/abis/IManualValueOracleLib.abi.json b/packages/abis/abis/IManualValueOracleLib.abi.json index 911b6ce7..392496d5 100644 --- a/packages/abis/abis/IManualValueOracleLib.abi.json +++ b/packages/abis/abis/IManualValueOracleLib.abi.json @@ -1,219 +1,219 @@ [ { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "description", - "type": "bytes32" - } - ], - "name": "Initialized", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "nominatedOwner", - "type": "address" - } - ], - "name": "NominatedOwnerSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - } - ], - "name": "OwnerSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "updater", - "type": "address" - } - ], - "name": "UpdaterSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "int256", - "name": "value", - "type": "int256" - } - ], - "name": "ValueUpdated", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "claimOwnership", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getLastUpdated", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "lastUpdated_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getNominatedOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "nominatedOwner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getUpdater", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "updater_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getValue", + "inputs": [], "outputs": [ { - "internalType": "int256", "name": "value_", - "type": "int256" + "type": "int256", + "internalType": "int256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getValueWithTimestamp", + "inputs": [], "outputs": [ { - "internalType": "int256", "name": "value_", - "type": "int256" + "type": "int256", + "internalType": "int256" }, { - "internalType": "uint256", "name": "lastUpdated_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "address", "name": "_owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_updater", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes32", "name": "_description", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setNominatedOwner", "inputs": [ { - "internalType": "address", "name": "_nextNominatedOwner", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setNominatedOwner", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setUpdater", "inputs": [ { - "internalType": "address", "name": "_nextUpdater", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setUpdater", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updateValue", "inputs": [ { - "internalType": "int192", "name": "_nextValue", - "type": "int192" + "type": "int192", + "internalType": "int192" } ], - "name": "updateValue", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "description", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NominatedOwnerSet", + "inputs": [ + { + "name": "nominatedOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OwnerSet", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "UpdaterSet", + "inputs": [ + { + "name": "updater", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ValueUpdated", + "inputs": [ + { + "name": "value", + "type": "int256", + "indexed": false, + "internalType": "int256" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IManualValueOracleLib.sol b/packages/abis/abis/IManualValueOracleLib.sol index 6d3003e1..b6fb7fb9 100644 --- a/packages/abis/abis/IManualValueOracleLib.sol +++ b/packages/abis/abis/IManualValueOracleLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IManualValueOracleLib { diff --git a/packages/abis/abis/IMapleLiquidityPositionLib.abi.json b/packages/abis/abis/IMapleLiquidityPositionLib.abi.json index 6175ff94..261ee44f 100644 --- a/packages/abis/abis/IMapleLiquidityPositionLib.abi.json +++ b/packages/abis/abis/IMapleLiquidityPositionLib.abi.json @@ -1,224 +1,224 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_mapleV1ToV2PoolMapper", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "lendingPoolV1", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "PoolTokenV1PreMigrationValueSnapshotted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "lendingPool", - "type": "address" - } - ], - "name": "UsedLendingPoolAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "lendingPool", - "type": "address" - } - ], - "name": "UsedLendingPoolRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "lendingPoolV2", - "type": "address" - } - ], - "name": "UsedLendingPoolV2Added", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "lendingPoolV2", - "type": "address" - } - ], - "name": "UsedLendingPoolV2Removed", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getPreMigrationValueSnapshotOfPoolTokenV1", "inputs": [ { - "internalType": "address", "name": "_poolV1", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getPreMigrationValueSnapshotOfPoolTokenV1", "outputs": [ { - "internalType": "uint256", "name": "valueSnapshot_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getUsedLendingPoolsV1", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "poolsV1_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getUsedLendingPoolsV2", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "poolsV2_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "isUsedLendingPoolV2", "inputs": [ { - "internalType": "address", "name": "_poolV2", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isUsedLendingPoolV2", "outputs": [ { - "internalType": "bool", "name": "isUsed_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "migratePoolsV1ToV2", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "snapshotPoolTokenV1BalanceValues", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "PoolTokenV1PreMigrationValueSnapshotted", + "inputs": [ + { + "name": "lendingPoolV1", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "UsedLendingPoolAdded", + "inputs": [ + { + "name": "lendingPool", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "UsedLendingPoolRemoved", + "inputs": [ + { + "name": "lendingPool", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "UsedLendingPoolV2Added", + "inputs": [ + { + "name": "lendingPoolV2", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "UsedLendingPoolV2Removed", + "inputs": [ + { + "name": "lendingPoolV2", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IMapleLiquidityPositionLib.sol b/packages/abis/abis/IMapleLiquidityPositionLib.sol index 73bc9140..9335ec06 100644 --- a/packages/abis/abis/IMapleLiquidityPositionLib.sol +++ b/packages/abis/abis/IMapleLiquidityPositionLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IMapleLiquidityPositionLib { diff --git a/packages/abis/abis/IMapleLiquidityPositionParser.abi.json b/packages/abis/abis/IMapleLiquidityPositionParser.abi.json index f5d95919..a0223215 100644 --- a/packages/abis/abis/IMapleLiquidityPositionParser.abi.json +++ b/packages/abis/abis/IMapleLiquidityPositionParser.abi.json @@ -1,81 +1,81 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_mapleV2Globals", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_mapleV1MplRewardsFactory", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_encodedActionArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "address[]", "name": "assetsToTransfer_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amountsToTransfer_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "assetsToReceive_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseInitArgs", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseInitArgs", "outputs": [ { - "internalType": "bytes", "name": "initArgs_", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IMapleLiquidityPositionParser.sol b/packages/abis/abis/IMapleLiquidityPositionParser.sol index 058b5cab..8067c7ee 100644 --- a/packages/abis/abis/IMapleLiquidityPositionParser.sol +++ b/packages/abis/abis/IMapleLiquidityPositionParser.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IMapleLiquidityPositionParser { diff --git a/packages/abis/abis/IMapleV1ToV2PoolMapper.abi.json b/packages/abis/abis/IMapleV1ToV2PoolMapper.abi.json index d502e0cb..e89e5521 100644 --- a/packages/abis/abis/IMapleV1ToV2PoolMapper.abi.json +++ b/packages/abis/abis/IMapleV1ToV2PoolMapper.abi.json @@ -1,147 +1,147 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispacher", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [], - "name": "MigrationAllowed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "poolTokenV1", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "poolTokenV2", - "type": "address" - } - ], - "name": "PoolMapped", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "SnapshotsFrozen", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "allowMigration", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "freezeSnapshots", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getPoolTokenV2FromPoolTokenV1", "inputs": [ { - "internalType": "address", "name": "_poolTokenV1", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getPoolTokenV2FromPoolTokenV1", "outputs": [ { - "internalType": "address", "name": "poolTokenV2_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "mapPools", "inputs": [ { - "internalType": "address[]", "name": "_poolTokensV1", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_poolTokensV2", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "mapPools", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "migrateExternalPositions", "inputs": [ { - "internalType": "address[]", "name": "_proxies", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "migrateExternalPositions", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "migrationIsAllowed", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "allowed_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "snapshotExternalPositions", "inputs": [ { - "internalType": "address[]", "name": "_proxies", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "snapshotExternalPositions", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "snapshotsAreAllowed", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "allowed_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" + }, + { + "type": "event", + "name": "MigrationAllowed", + "inputs": [], + "anonymous": false + }, + { + "type": "event", + "name": "PoolMapped", + "inputs": [ + { + "name": "poolTokenV1", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "poolTokenV2", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "SnapshotsFrozen", + "inputs": [], + "anonymous": false } ] diff --git a/packages/abis/abis/IMapleV1ToV2PoolMapper.sol b/packages/abis/abis/IMapleV1ToV2PoolMapper.sol index eab15afb..809df444 100644 --- a/packages/abis/abis/IMapleV1ToV2PoolMapper.sol +++ b/packages/abis/abis/IMapleV1ToV2PoolMapper.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IMapleV1ToV2PoolMapper { diff --git a/packages/abis/abis/IMigrationHookHandler.abi.json b/packages/abis/abis/IMigrationHookHandler.abi.json index 3b2ec045..b22b7e9b 100644 --- a/packages/abis/abis/IMigrationHookHandler.abi.json +++ b/packages/abis/abis/IMigrationHookHandler.abi.json @@ -1,63 +1,63 @@ [ { + "type": "function", + "name": "invokeMigrationInCancelHook", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_prevFundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_nextVaultAccessor", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_nextVaultLib", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "invokeMigrationInCancelHook", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "invokeMigrationOutHook", "inputs": [ { - "internalType": "enum IMigrationHookHandler.MigrationOutHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IMigrationHookHandler.MigrationOutHook" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_nextFundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_nextVaultAccessor", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_nextVaultLib", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "invokeMigrationOutHook", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IMigrationHookHandler.sol b/packages/abis/abis/IMigrationHookHandler.sol index fab562f7..dc0f9b46 100644 --- a/packages/abis/abis/IMigrationHookHandler.sol +++ b/packages/abis/abis/IMigrationHookHandler.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IMigrationHookHandler { + type MigrationOutHook is uint8; + function invokeMigrationInCancelHook( address _vaultProxy, address _prevFundDeployer, @@ -9,7 +11,7 @@ interface IMigrationHookHandler { address _nextVaultLib ) external; function invokeMigrationOutHook( - uint8 _hook, + MigrationOutHook _hook, address _vaultProxy, address _nextFundDeployer, address _nextVaultAccessor, diff --git a/packages/abis/abis/IMinAssetBalancesPostRedemptionPolicy.abi.json b/packages/abis/abis/IMinAssetBalancesPostRedemptionPolicy.abi.json index 05c88b09..82589a41 100644 --- a/packages/abis/abis/IMinAssetBalancesPostRedemptionPolicy.abi.json +++ b/packages/abis/abis/IMinAssetBalancesPostRedemptionPolicy.abi.json @@ -1,192 +1,192 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "minBalance", - "type": "uint256" - } - ], - "name": "MinAssetBalanceAddedForFund", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "getMinAssetBalanceForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getMinAssetBalanceForFund", "outputs": [ { - "internalType": "uint256", "name": "minBalance_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "MinAssetBalanceAddedForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "minBalance", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IMinAssetBalancesPostRedemptionPolicy.sol b/packages/abis/abis/IMinAssetBalancesPostRedemptionPolicy.sol index dcf5c708..a0eac61b 100644 --- a/packages/abis/abis/IMinAssetBalancesPostRedemptionPolicy.sol +++ b/packages/abis/abis/IMinAssetBalancesPostRedemptionPolicy.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IMinAssetBalancesPostRedemptionPolicy { + type PolicyHook is uint8; + event MinAssetBalanceAddedForFund(address indexed comptrollerProxy, address indexed asset, uint256 minBalance); function activateForFund(address) external; @@ -13,9 +15,9 @@ interface IMinAssetBalancesPostRedemptionPolicy { returns (uint256 minBalance_); function getPolicyManager() external view returns (address policyManager_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function updateFundSettings(address, bytes memory) external; - function validateRule(address _comptrollerProxy, uint8, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/IMinMaxInvestmentPolicy.abi.json b/packages/abis/abis/IMinMaxInvestmentPolicy.abi.json index 4b35a917..891b3d55 100644 --- a/packages/abis/abis/IMinMaxInvestmentPolicy.abi.json +++ b/packages/abis/abis/IMinMaxInvestmentPolicy.abi.json @@ -1,223 +1,223 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "minInvestmentAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "maxInvestmentAmount", - "type": "uint256" - } - ], - "name": "FundSettingsSet", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "getFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getFundSettings", "outputs": [ { + "name": "fundSettings_", + "type": "tuple", + "internalType": "struct MinMaxInvestmentPolicy.FundSettings", "components": [ { - "internalType": "uint256", "name": "minInvestmentAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "maxInvestmentAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct MinMaxInvestmentPolicy.FundSettings", - "name": "fundSettings_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "passesRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_investmentAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "passesRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "FundSettingsSet", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "minInvestmentAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "maxInvestmentAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IMinMaxInvestmentPolicy.sol b/packages/abis/abis/IMinMaxInvestmentPolicy.sol index 86a20954..a103f683 100644 --- a/packages/abis/abis/IMinMaxInvestmentPolicy.sol +++ b/packages/abis/abis/IMinMaxInvestmentPolicy.sol @@ -1,24 +1,26 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IMinMaxInvestmentPolicy { - event FundSettingsSet(address indexed comptrollerProxy, uint256 minInvestmentAmount, uint256 maxInvestmentAmount); + type PolicyHook is uint8; struct FundSettings { uint256 minInvestmentAmount; uint256 maxInvestmentAmount; } + event FundSettingsSet(address indexed comptrollerProxy, uint256 minInvestmentAmount, uint256 maxInvestmentAmount); + function activateForFund(address) external; function addFundSettings(address _comptrollerProxy, bytes memory _encodedSettings) external; function canDisable() external pure returns (bool canDisable_); function getFundSettings(address _comptrollerProxy) external view returns (FundSettings memory fundSettings_); function getPolicyManager() external view returns (address policyManager_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function passesRule(address _comptrollerProxy, uint256 _investmentAmount) external view returns (bool isValid_); function updateFundSettings(address _comptrollerProxy, bytes memory _encodedSettings) external; - function validateRule(address _comptrollerProxy, uint8, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/IMinSharesSupplyFee.abi.json b/packages/abis/abis/IMinSharesSupplyFee.abi.json index 850b7087..067b77c3 100644 --- a/packages/abis/abis/IMinSharesSupplyFee.abi.json +++ b/packages/abis/abis/IMinSharesSupplyFee.abi.json @@ -1,260 +1,260 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_feeManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "payer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesQuantity", - "type": "uint256" - } - ], - "name": "Settled", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getFeeManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "feeManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRecipientForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getRecipientForFund", "outputs": [ { - "internalType": "address", "name": "recipient_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "payout", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "payout", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settle", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "_settlementData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "settle", "outputs": [ { - "internalType": "enum IFeeManager.SettlementType", "name": "settlementType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.SettlementType" }, { - "internalType": "address", "name": "payer_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "sharesDue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settlesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "settlesOnHook", "outputs": [ { - "internalType": "bool", "name": "settles_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "update", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "update", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updatesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "updatesOnHook", "outputs": [ { - "internalType": "bool", "name": "updates_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "Settled", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "payer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharesQuantity", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IMinSharesSupplyFee.sol b/packages/abis/abis/IMinSharesSupplyFee.sol index 77b5a9ff..95a8982e 100644 --- a/packages/abis/abis/IMinSharesSupplyFee.sol +++ b/packages/abis/abis/IMinSharesSupplyFee.sol @@ -1,7 +1,10 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IMinSharesSupplyFee { + type FeeHook is uint8; + type SettlementType is uint8; + event Settled(address indexed comptrollerProxy, address indexed payer, uint256 sharesQuantity); function activateForFund(address, address) external; @@ -9,10 +12,10 @@ interface IMinSharesSupplyFee { function getFeeManager() external view returns (address feeManager_); function getRecipientForFund(address) external view returns (address recipient_); function payout(address, address) external returns (bool); - function settle(address _comptrollerProxy, address _vaultProxy, uint8, bytes memory _settlementData, uint256) + function settle(address _comptrollerProxy, address _vaultProxy, FeeHook, bytes memory _settlementData, uint256) external - returns (uint8 settlementType_, address payer_, uint256 sharesDue_); - function settlesOnHook(uint8 _hook) external view returns (bool settles_, bool usesGav_); - function update(address, address, uint8, bytes memory, uint256) external; - function updatesOnHook(uint8) external view returns (bool updates_, bool usesGav_); + returns (SettlementType settlementType_, address payer_, uint256 sharesDue_); + function settlesOnHook(FeeHook _hook) external view returns (bool settles_, bool usesGav_); + function update(address, address, FeeHook, bytes memory, uint256) external; + function updatesOnHook(FeeHook) external view returns (bool updates_, bool usesGav_); } diff --git a/packages/abis/abis/INoDepegOnRedeemSharesForSpecificAssetsPolicy.abi.json b/packages/abis/abis/INoDepegOnRedeemSharesForSpecificAssetsPolicy.abi.json index a11b6da5..031dac2c 100644 --- a/packages/abis/abis/INoDepegOnRedeemSharesForSpecificAssetsPolicy.abi.json +++ b/packages/abis/abis/INoDepegOnRedeemSharesForSpecificAssetsPolicy.abi.json @@ -1,220 +1,220 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManagerAddress", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "contract IValueInterpreter", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "contract IValueInterpreter" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "components": [ - { - "internalType": "contract ERC20", - "name": "asset", - "type": "address" - }, - { - "internalType": "contract ERC20", - "name": "referenceAsset", - "type": "address" - }, - { - "internalType": "uint16", - "name": "deviationToleranceInBps", - "type": "uint16" - } - ], - "indexed": false, - "internalType": "struct NoDepegPolicyBase.AssetConfig[]", - "name": "assetConfigs", - "type": "tuple[]" - } - ], - "name": "FundSettingsUpdated", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "getAssetConfigsForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getAssetConfigsForFund", "outputs": [ { + "name": "assetConfigs_", + "type": "tuple[]", + "internalType": "struct NoDepegPolicyBase.AssetConfig[]", "components": [ { - "internalType": "contract ERC20", "name": "asset", - "type": "address" + "type": "address", + "internalType": "contract ERC20" }, { - "internalType": "contract ERC20", "name": "referenceAsset", - "type": "address" + "type": "address", + "internalType": "contract ERC20" }, { - "internalType": "uint16", "name": "deviationToleranceInBps", - "type": "uint16" + "type": "uint16", + "internalType": "uint16" } - ], - "internalType": "struct NoDepegPolicyBase.AssetConfig[]", - "name": "assetConfigs_", - "type": "tuple[]" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "FundSettingsUpdated", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "assetConfigs", + "type": "tuple[]", + "indexed": false, + "internalType": "struct NoDepegPolicyBase.AssetConfig[]", + "components": [ + { + "name": "asset", + "type": "address", + "internalType": "contract ERC20" + }, + { + "name": "referenceAsset", + "type": "address", + "internalType": "contract ERC20" + }, + { + "name": "deviationToleranceInBps", + "type": "uint16", + "internalType": "uint16" + } + ] } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/INoDepegOnRedeemSharesForSpecificAssetsPolicy.sol b/packages/abis/abis/INoDepegOnRedeemSharesForSpecificAssetsPolicy.sol index 116a8b93..c205e673 100644 --- a/packages/abis/abis/INoDepegOnRedeemSharesForSpecificAssetsPolicy.sol +++ b/packages/abis/abis/INoDepegOnRedeemSharesForSpecificAssetsPolicy.sol @@ -1,8 +1,8 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface INoDepegOnRedeemSharesForSpecificAssetsPolicy { - event FundSettingsUpdated(address indexed comptrollerProxy, AssetConfig[] assetConfigs); + type PolicyHook is uint8; struct AssetConfig { address asset; @@ -10,6 +10,8 @@ interface INoDepegOnRedeemSharesForSpecificAssetsPolicy { uint16 deviationToleranceInBps; } + event FundSettingsUpdated(address indexed comptrollerProxy, AssetConfig[] assetConfigs); + function activateForFund(address) external; function addFundSettings(address _comptrollerProxy, bytes memory _encodedSettings) external; function canDisable() external pure returns (bool canDisable_); @@ -19,7 +21,7 @@ interface INoDepegOnRedeemSharesForSpecificAssetsPolicy { returns (AssetConfig[] memory assetConfigs_); function getPolicyManager() external view returns (address policyManager_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function updateFundSettings(address _comptrollerProxy, bytes memory _encodedSettings) external; - function validateRule(address _comptrollerProxy, uint8, bytes memory) external returns (bool isValid_); + function validateRule(address _comptrollerProxy, PolicyHook, bytes memory) external returns (bool isValid_); } diff --git a/packages/abis/abis/INotionalV3PositionLib.abi.json b/packages/abis/abis/INotionalV3PositionLib.abi.json deleted file mode 100644 index cd8ac425..00000000 --- a/packages/abis/abis/INotionalV3PositionLib.abi.json +++ /dev/null @@ -1,80 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "address", - "name": "_notionalV2Router", - "type": "address" - }, - { - "internalType": "address", - "name": "_wethToken", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "getDebtAssets", - "outputs": [ - { - "internalType": "address[]", - "name": "assets_", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "amounts_", - "type": "uint256[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getManagedAssets", - "outputs": [ - { - "internalType": "address[]", - "name": "assets_", - "type": "address[]" - }, - { - "internalType": "uint256[]", - "name": "amounts_", - "type": "uint256[]" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "", - "type": "bytes" - } - ], - "name": "init", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "_actionData", - "type": "bytes" - } - ], - "name": "receiveCallFromVault", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/packages/abis/abis/INotionalV3PositionLib.sol b/packages/abis/abis/INotionalV3PositionLib.sol deleted file mode 100644 index bc646c45..00000000 --- a/packages/abis/abis/INotionalV3PositionLib.sol +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-License-Identifier: Unlicense -pragma solidity >=0.6.0 <0.9.0; - -interface INotionalV3PositionLib { - function getDebtAssets() external returns (address[] memory assets_, uint256[] memory amounts_); - function getManagedAssets() external returns (address[] memory assets_, uint256[] memory amounts_); - function init(bytes memory) external; - function receiveCallFromVault(bytes memory _actionData) external; -} diff --git a/packages/abis/abis/IOnlyRemoveDustExternalPositionPolicy.abi.json b/packages/abis/abis/IOnlyRemoveDustExternalPositionPolicy.abi.json index 4cc4d51d..19aa5b65 100644 --- a/packages/abis/abis/IOnlyRemoveDustExternalPositionPolicy.abi.json +++ b/packages/abis/abis/IOnlyRemoveDustExternalPositionPolicy.abi.json @@ -1,384 +1,384 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_pricelessAssetBypassTimelock", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_pricelessAssetBypassTimeLimit", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "nextDustToleranceInWeth", - "type": "uint256" - } - ], - "name": "DustToleranceInWethSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "PricelessAssetBypassed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "PricelessAssetTimelockStarted", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "assetIsBypassableForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "assetIsBypassableForFund", "outputs": [ { - "internalType": "bool", "name": "isBypassable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "getAssetBypassWindowStartForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getAssetBypassWindowStartForFund", "outputs": [ { - "internalType": "uint256", "name": "windowStart_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDustToleranceInWeth", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "dustToleranceInWeth_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPricelessAssetBypassTimeLimit", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "timeLimit_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPricelessAssetBypassTimelock", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "timelock_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPricelessAssetBypassValueInterpreter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "valueInterpreter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPricelessAssetBypassWethToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "wethToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "setDustToleranceInWeth", "inputs": [ { - "internalType": "uint256", "name": "_nextDustToleranceInWeth", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "setDustToleranceInWeth", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "startAssetBypassTimelock", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "startAssetBypassTimelock", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "DustToleranceInWethSet", + "inputs": [ + { + "name": "nextDustToleranceInWeth", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PricelessAssetBypassed", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PricelessAssetTimelockStarted", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IOnlyRemoveDustExternalPositionPolicy.sol b/packages/abis/abis/IOnlyRemoveDustExternalPositionPolicy.sol index abb33836..7dc5608b 100644 --- a/packages/abis/abis/IOnlyRemoveDustExternalPositionPolicy.sol +++ b/packages/abis/abis/IOnlyRemoveDustExternalPositionPolicy.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IOnlyRemoveDustExternalPositionPolicy { + type PolicyHook is uint8; + event DustToleranceInWethSet(uint256 nextDustToleranceInWeth); event PricelessAssetBypassed(address indexed comptrollerProxy, address indexed asset); event PricelessAssetTimelockStarted(address indexed comptrollerProxy, address indexed asset); @@ -26,11 +28,11 @@ interface IOnlyRemoveDustExternalPositionPolicy { function getPricelessAssetBypassValueInterpreter() external view returns (address valueInterpreter_); function getPricelessAssetBypassWethToken() external view returns (address wethToken_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function setDustToleranceInWeth(uint256 _nextDustToleranceInWeth) external; function startAssetBypassTimelock(address _asset) external; function updateFundSettings(address, bytes memory) external; - function validateRule(address _comptrollerProxy, uint8, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/IOnlyUntrackDustOrPricelessAssetsPolicy.abi.json b/packages/abis/abis/IOnlyUntrackDustOrPricelessAssetsPolicy.abi.json index 4cc4d51d..19aa5b65 100644 --- a/packages/abis/abis/IOnlyUntrackDustOrPricelessAssetsPolicy.abi.json +++ b/packages/abis/abis/IOnlyUntrackDustOrPricelessAssetsPolicy.abi.json @@ -1,384 +1,384 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_policyManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_pricelessAssetBypassTimelock", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_pricelessAssetBypassTimeLimit", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "nextDustToleranceInWeth", - "type": "uint256" - } - ], - "name": "DustToleranceInWethSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "PricelessAssetBypassed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "PricelessAssetTimelockStarted", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "assetIsBypassableForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "assetIsBypassableForFund", "outputs": [ { - "internalType": "bool", "name": "isBypassable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "getAssetBypassWindowStartForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getAssetBypassWindowStartForFund", "outputs": [ { - "internalType": "uint256", "name": "windowStart_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDustToleranceInWeth", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "dustToleranceInWeth_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPolicyManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "policyManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPricelessAssetBypassTimeLimit", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "timeLimit_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPricelessAssetBypassTimelock", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "timelock_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPricelessAssetBypassValueInterpreter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "valueInterpreter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPricelessAssetBypassWethToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "wethToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "setDustToleranceInWeth", "inputs": [ { - "internalType": "uint256", "name": "_nextDustToleranceInWeth", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "setDustToleranceInWeth", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "startAssetBypassTimelock", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "startAssetBypassTimelock", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "DustToleranceInWethSet", + "inputs": [ + { + "name": "nextDustToleranceInWeth", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PricelessAssetBypassed", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PricelessAssetTimelockStarted", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IOnlyUntrackDustOrPricelessAssetsPolicy.sol b/packages/abis/abis/IOnlyUntrackDustOrPricelessAssetsPolicy.sol index d1c66fad..1ff22784 100644 --- a/packages/abis/abis/IOnlyUntrackDustOrPricelessAssetsPolicy.sol +++ b/packages/abis/abis/IOnlyUntrackDustOrPricelessAssetsPolicy.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IOnlyUntrackDustOrPricelessAssetsPolicy { + type PolicyHook is uint8; + event DustToleranceInWethSet(uint256 nextDustToleranceInWeth); event PricelessAssetBypassed(address indexed comptrollerProxy, address indexed asset); event PricelessAssetTimelockStarted(address indexed comptrollerProxy, address indexed asset); @@ -26,11 +28,11 @@ interface IOnlyUntrackDustOrPricelessAssetsPolicy { function getPricelessAssetBypassValueInterpreter() external view returns (address valueInterpreter_); function getPricelessAssetBypassWethToken() external view returns (address wethToken_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function setDustToleranceInWeth(uint256 _nextDustToleranceInWeth) external; function startAssetBypassTimelock(address _asset) external; function updateFundSettings(address, bytes memory) external; - function validateRule(address _comptrollerProxy, uint8, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/IParaSwapV5Adapter.abi.json b/packages/abis/abis/IParaSwapV5Adapter.abi.json index 7ea8b75e..f7db2609 100644 --- a/packages/abis/abis/IParaSwapV5Adapter.abi.json +++ b/packages/abis/abis/IParaSwapV5Adapter.abi.json @@ -1,321 +1,321 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_augustusSwapper", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_tokenTransferProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_feePartner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_feePercent", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "reason", - "type": "bytes" - } - ], - "name": "MultipleOrdersItemFailed", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getParaSwapV5AugustusSwapper", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "augustusSwapper_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getParaSwapV5TokenTransferProxy", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "tokenTransferProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "takeMultipleOrders", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "takeMultipleOrders", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "takeOrder", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "takeOrder", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "takeOrderAndValidateIncoming", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_orderData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "takeOrderAndValidateIncoming", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "MultipleOrdersItemFailed", + "inputs": [ + { + "name": "index", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "reason", + "type": "bytes", + "indexed": false, + "internalType": "bytes" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IParaSwapV5Adapter.sol b/packages/abis/abis/IParaSwapV5Adapter.sol index fbd05996..78057ea2 100644 --- a/packages/abis/abis/IParaSwapV5Adapter.sol +++ b/packages/abis/abis/IParaSwapV5Adapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IParaSwapV5Adapter { + type SpendAssetsHandleType is uint8; + event MultipleOrdersItemFailed(uint256 index, bytes reason); function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); @@ -20,7 +22,7 @@ interface IParaSwapV5Adapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IPerformanceFee.abi.json b/packages/abis/abis/IPerformanceFee.abi.json index fea93e22..7357affb 100644 --- a/packages/abis/abis/IPerformanceFee.abi.json +++ b/packages/abis/abis/IPerformanceFee.abi.json @@ -1,385 +1,385 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_feeManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "highWaterMark", - "type": "uint256" - } - ], - "name": "ActivatedForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rate", - "type": "uint256" - } - ], - "name": "FundSettingsAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "nextHighWaterMark", - "type": "uint256" - } - ], - "name": "HighWaterMarkUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - } - ], - "name": "RecipientSetForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharePrice", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesDue", - "type": "uint256" - } - ], - "name": "Settled", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_settingsData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getFeeInfoForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getFeeInfoForFund", "outputs": [ { + "name": "feeInfo_", + "type": "tuple", + "internalType": "struct PerformanceFee.FeeInfo", "components": [ { - "internalType": "uint256", "name": "rate", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "highWaterMark", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct PerformanceFee.FeeInfo", - "name": "feeInfo_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFeeManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "feeManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRecipientForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getRecipientForFund", "outputs": [ { - "internalType": "address", "name": "recipient_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "payout", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "payout", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setRecipientForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_recipient", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setRecipientForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settle", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "_gav", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "settle", "outputs": [ { - "internalType": "enum IFeeManager.SettlementType", "name": "settlementType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.SettlementType" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "sharesDue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "settlesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "settlesOnHook", "outputs": [ { - "internalType": "bool", "name": "settles_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "update", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IFeeManager.FeeHook", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "uint256", "name": "_gav", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "update", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updatesOnHook", "inputs": [ { - "internalType": "enum IFeeManager.FeeHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IFeeManager.FeeHook" } ], - "name": "updatesOnHook", "outputs": [ { - "internalType": "bool", "name": "updates_", - "type": "bool" + "type": "bool", + "internalType": "bool" }, { - "internalType": "bool", "name": "usesGav_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "ActivatedForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "highWaterMark", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "FundSettingsAdded", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "rate", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "HighWaterMarkUpdated", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "nextHighWaterMark", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RecipientSetForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "recipient", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Settled", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharePrice", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "sharesDue", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IPerformanceFee.sol b/packages/abis/abis/IPerformanceFee.sol index f3d65cfd..704953a4 100644 --- a/packages/abis/abis/IPerformanceFee.sol +++ b/packages/abis/abis/IPerformanceFee.sol @@ -1,18 +1,21 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IPerformanceFee { - event ActivatedForFund(address indexed comptrollerProxy, uint256 highWaterMark); - event FundSettingsAdded(address indexed comptrollerProxy, uint256 rate); - event HighWaterMarkUpdated(address indexed comptrollerProxy, uint256 nextHighWaterMark); - event RecipientSetForFund(address indexed comptrollerProxy, address indexed recipient); - event Settled(address indexed comptrollerProxy, uint256 sharePrice, uint256 sharesDue); + type FeeHook is uint8; + type SettlementType is uint8; struct FeeInfo { uint256 rate; uint256 highWaterMark; } + event ActivatedForFund(address indexed comptrollerProxy, uint256 highWaterMark); + event FundSettingsAdded(address indexed comptrollerProxy, uint256 rate); + event HighWaterMarkUpdated(address indexed comptrollerProxy, uint256 nextHighWaterMark); + event RecipientSetForFund(address indexed comptrollerProxy, address indexed recipient); + event Settled(address indexed comptrollerProxy, uint256 sharePrice, uint256 sharesDue); + function activateForFund(address _comptrollerProxy, address) external; function addFundSettings(address _comptrollerProxy, bytes memory _settingsData) external; function getFeeInfoForFund(address _comptrollerProxy) external view returns (FeeInfo memory feeInfo_); @@ -20,10 +23,10 @@ interface IPerformanceFee { function getRecipientForFund(address _comptrollerProxy) external view returns (address recipient_); function payout(address, address) external returns (bool); function setRecipientForFund(address _comptrollerProxy, address _recipient) external; - function settle(address _comptrollerProxy, address _vaultProxy, uint8, bytes memory, uint256 _gav) + function settle(address _comptrollerProxy, address _vaultProxy, FeeHook, bytes memory, uint256 _gav) external - returns (uint8 settlementType_, address, uint256 sharesDue_); - function settlesOnHook(uint8 _hook) external view returns (bool settles_, bool usesGav_); - function update(address _comptrollerProxy, address _vaultProxy, uint8, bytes memory, uint256 _gav) external; - function updatesOnHook(uint8 _hook) external view returns (bool updates_, bool usesGav_); + returns (SettlementType settlementType_, address, uint256 sharesDue_); + function settlesOnHook(FeeHook _hook) external view returns (bool settles_, bool usesGav_); + function update(address _comptrollerProxy, address _vaultProxy, FeeHook, bytes memory, uint256 _gav) external; + function updatesOnHook(FeeHook _hook) external view returns (bool updates_, bool usesGav_); } diff --git a/packages/abis/abis/IPolicy.abi.json b/packages/abis/abis/IPolicy.abi.json index fc88be49..e90801a6 100644 --- a/packages/abis/abis/IPolicy.abi.json +++ b/packages/abis/abis/IPolicy.abi.json @@ -1,119 +1,119 @@ [ { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "addFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "canDisable", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "canDisable_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "identifier", + "inputs": [], "outputs": [ { - "internalType": "string", "name": "identifier_", - "type": "string" + "type": "string", + "internalType": "string" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "implementedHooks", + "inputs": [], "outputs": [ { - "internalType": "enum IPolicyManager.PolicyHook[]", "name": "implementedHooks_", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IPolicyManager.PolicyHook[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "updateFundSettings", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_encodedSettings", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updateFundSettings", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validateRule", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_encodedArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validateRule", "outputs": [ { - "internalType": "bool", "name": "isValid_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IPolicy.sol b/packages/abis/abis/IPolicy.sol index 23c3913e..02d4e7db 100644 --- a/packages/abis/abis/IPolicy.sol +++ b/packages/abis/abis/IPolicy.sol @@ -1,14 +1,16 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IPolicy { + type PolicyHook is uint8; + function activateForFund(address _comptrollerProxy) external; function addFundSettings(address _comptrollerProxy, bytes memory _encodedSettings) external; function canDisable() external pure returns (bool canDisable_); function identifier() external pure returns (string memory identifier_); - function implementedHooks() external pure returns (uint8[] memory implementedHooks_); + function implementedHooks() external pure returns (PolicyHook[] memory implementedHooks_); function updateFundSettings(address _comptrollerProxy, bytes memory _encodedSettings) external; - function validateRule(address _comptrollerProxy, uint8 _hook, bytes memory _encodedArgs) + function validateRule(address _comptrollerProxy, PolicyHook _hook, bytes memory _encodedArgs) external returns (bool isValid_); } diff --git a/packages/abis/abis/IPolicyManager.abi.json b/packages/abis/abis/IPolicyManager.abi.json index c2f9907a..ee9c6fb0 100644 --- a/packages/abis/abis/IPolicyManager.abi.json +++ b/packages/abis/abis/IPolicyManager.abi.json @@ -1,383 +1,383 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_gasRelayPaymasterFactory", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "policy", - "type": "address" - }, - { - "indexed": true, - "internalType": "enum IPolicyManager.PolicyHook", - "name": "hook", - "type": "uint8" - } - ], - "name": "PolicyDisabledOnHookForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "policy", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "settingsData", - "type": "bytes" - } - ], - "name": "PolicyEnabledForFund", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "comptrollerProxy", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - } - ], - "name": "ValidatedVaultProxySetForFund", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "activateForFund", "inputs": [ { - "internalType": "bool", "name": "_isMigratedFund", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "name": "activateForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "deactivateForFund", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "disablePolicyForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_policy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "disablePolicyForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "enablePolicyForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_policy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_settingsData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "enablePolicyForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getEnabledPoliciesForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getEnabledPoliciesForFund", "outputs": [ { - "internalType": "address[]", "name": "enabledPolicies_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getEnabledPoliciesOnHookForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" } ], - "name": "getEnabledPoliciesOnHookForFund", "outputs": [ { - "internalType": "address[]", "name": "enabledPolicies_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getGasRelayPaymasterFactory", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "gasRelayPaymasterFactory_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getGasRelayTrustedForwarder", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "trustedForwarder_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getVaultProxyForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getVaultProxyForFund", "outputs": [ { - "internalType": "address", "name": "vaultProxy_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "policyIsEnabledOnHookForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "address", "name": "_policy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "policyIsEnabledOnHookForFund", "outputs": [ { - "internalType": "bool", "name": "isEnabled_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "receiveCallFromComptroller", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromComptroller", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setConfigForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_configData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "setConfigForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updatePolicySettingsForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_policy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_settingsData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "updatePolicySettingsForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "validatePolicies", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IPolicyManager.PolicyHook", "name": "_hook", - "type": "uint8" + "type": "uint8", + "internalType": "enum IPolicyManager.PolicyHook" }, { - "internalType": "bytes", "name": "_validationData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "validatePolicies", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "PolicyDisabledOnHookForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "policy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "hook", + "type": "uint8", + "indexed": true, + "internalType": "enum IPolicyManager.PolicyHook" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PolicyEnabledForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "policy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "settingsData", + "type": "bytes", + "indexed": false, + "internalType": "bytes" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ValidatedVaultProxySetForFund", + "inputs": [ + { + "name": "comptrollerProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IPolicyManager.sol b/packages/abis/abis/IPolicyManager.sol index da0ef387..f62a7082 100644 --- a/packages/abis/abis/IPolicyManager.sol +++ b/packages/abis/abis/IPolicyManager.sol @@ -1,8 +1,12 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IPolicyManager { - event PolicyDisabledOnHookForFund(address indexed comptrollerProxy, address indexed policy, uint8 indexed hook); + type PolicyHook is uint8; + + event PolicyDisabledOnHookForFund( + address indexed comptrollerProxy, address indexed policy, PolicyHook indexed hook + ); event PolicyEnabledForFund(address indexed comptrollerProxy, address indexed policy, bytes settingsData); event ValidatedVaultProxySetForFund(address indexed comptrollerProxy, address indexed vaultProxy); @@ -14,7 +18,7 @@ interface IPolicyManager { external view returns (address[] memory enabledPolicies_); - function getEnabledPoliciesOnHookForFund(address _comptrollerProxy, uint8 _hook) + function getEnabledPoliciesOnHookForFund(address _comptrollerProxy, PolicyHook _hook) external view returns (address[] memory enabledPolicies_); @@ -23,7 +27,7 @@ interface IPolicyManager { function getGasRelayTrustedForwarder() external view returns (address trustedForwarder_); function getOwner() external view returns (address owner_); function getVaultProxyForFund(address _comptrollerProxy) external view returns (address vaultProxy_); - function policyIsEnabledOnHookForFund(address _comptrollerProxy, uint8 _hook, address _policy) + function policyIsEnabledOnHookForFund(address _comptrollerProxy, PolicyHook _hook, address _policy) external view returns (bool isEnabled_); @@ -31,5 +35,5 @@ interface IPolicyManager { function setConfigForFund(address _comptrollerProxy, address _vaultProxy, bytes memory _configData) external; function updatePolicySettingsForFund(address _comptrollerProxy, address _policy, bytes memory _settingsData) external; - function validatePolicies(address _comptrollerProxy, uint8 _hook, bytes memory _validationData) external; + function validatePolicies(address _comptrollerProxy, PolicyHook _hook, bytes memory _validationData) external; } diff --git a/packages/abis/abis/IProtocolFeeReserveLib.abi.json b/packages/abis/abis/IProtocolFeeReserveLib.abi.json index 7a33fd56..3db96357 100644 --- a/packages/abis/abis/IProtocolFeeReserveLib.abi.json +++ b/packages/abis/abis/IProtocolFeeReserveLib.abi.json @@ -1,177 +1,177 @@ [ { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "MlnTokenBalanceWithdrawn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "nextProtocolFeeReserveLib", - "type": "address" - } - ], - "name": "ProtocolFeeReserveLibSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "mlnValue", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "mlnBurned", - "type": "uint256" - } - ], - "name": "SharesBoughtBack", - "type": "event" - }, - { + "type": "function", + "name": "buyBackSharesViaTrustedVaultProxy", "inputs": [ { - "internalType": "uint256", "name": "_sharesAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_mlnValue", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "buyBackSharesViaTrustedVaultProxy", "outputs": [ { - "internalType": "uint256", "name": "mlnAmountToBurn_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "callOnContract", "inputs": [ { - "internalType": "address", "name": "_contract", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_callData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "callOnContract", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getDispatcher", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "dispatcher_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getProtocolFeeReserveLib", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "protocolFeeReserveLib_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "proxiableUUID", + "inputs": [], "outputs": [ { - "internalType": "bytes32", "name": "uuid_", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "setProtocolFeeReserveLib", "inputs": [ { - "internalType": "address", "name": "_nextProtocolFeeReserveLib", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setProtocolFeeReserveLib", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "MlnTokenBalanceWithdrawn", + "inputs": [ + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ProtocolFeeReserveLibSet", + "inputs": [ + { + "name": "nextProtocolFeeReserveLib", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "SharesBoughtBack", + "inputs": [ + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharesAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "mlnValue", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "mlnBurned", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IProtocolFeeReserveLib.sol b/packages/abis/abis/IProtocolFeeReserveLib.sol index 824ccbbc..097a3c1e 100644 --- a/packages/abis/abis/IProtocolFeeReserveLib.sol +++ b/packages/abis/abis/IProtocolFeeReserveLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IProtocolFeeReserveLib { diff --git a/packages/abis/abis/IProtocolFeeTracker.abi.json b/packages/abis/abis/IProtocolFeeTracker.abi.json index f3d9e17a..c4c5fa8d 100644 --- a/packages/abis/abis/IProtocolFeeTracker.abi.json +++ b/packages/abis/abis/IProtocolFeeTracker.abi.json @@ -1,279 +1,279 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "nextFeeBpsDefault", - "type": "uint256" - } - ], - "name": "FeeBpsDefaultSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "nextFeeBpsOverride", - "type": "uint256" - } - ], - "name": "FeeBpsOverrideSetForVault", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "secondsPaid", - "type": "uint256" - } - ], - "name": "FeePaidForVault", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - } - ], - "name": "InitializedForVault", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "vaultProxy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "prevTimestamp", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "nextTimestamp", - "type": "uint256" - } - ], - "name": "LastPaidSetForVault", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "getFeeBpsDefault", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "feeBpsDefault_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getFeeBpsForVault", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getFeeBpsForVault", "outputs": [ { - "internalType": "uint256", "name": "feeBps_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getFeeBpsOverrideForVault", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getFeeBpsOverrideForVault", "outputs": [ { - "internalType": "uint256", "name": "feeBpsOverride_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getLastPaidForVault", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getLastPaidForVault", "outputs": [ { - "internalType": "uint256", "name": "lastPaid_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "initializeForVault", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "initializeForVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "payFee", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "sharesDue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setFeeBpsDefault", "inputs": [ { - "internalType": "uint256", "name": "_nextFeeBpsDefault", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "setFeeBpsDefault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setFeeBpsOverrideForVault", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_nextFeeBpsOverride", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "setFeeBpsOverrideForVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setLastPaidForVault", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_nextTimestamp", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "setLastPaidForVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "FeeBpsDefaultSet", + "inputs": [ + { + "name": "nextFeeBpsDefault", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "FeeBpsOverrideSetForVault", + "inputs": [ + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "nextFeeBpsOverride", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "FeePaidForVault", + "inputs": [ + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sharesAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "secondsPaid", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "InitializedForVault", + "inputs": [ + { + "name": "vaultProxy", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "LastPaidSetForVault", + "inputs": [ + { + "name": "vaultProxy", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "prevTimestamp", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "nextTimestamp", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IProtocolFeeTracker.sol b/packages/abis/abis/IProtocolFeeTracker.sol index 7b323f1e..a913d328 100644 --- a/packages/abis/abis/IProtocolFeeTracker.sol +++ b/packages/abis/abis/IProtocolFeeTracker.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IProtocolFeeTracker { diff --git a/packages/abis/abis/IRevertingPriceFeed.abi.json b/packages/abis/abis/IRevertingPriceFeed.abi.json index c6f00b0f..2308090b 100644 --- a/packages/abis/abis/IRevertingPriceFeed.abi.json +++ b/packages/abis/abis/IRevertingPriceFeed.abi.json @@ -1,50 +1,50 @@ [ { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IRevertingPriceFeed.sol b/packages/abis/abis/IRevertingPriceFeed.sol index bbaac6ab..2f8a3b57 100644 --- a/packages/abis/abis/IRevertingPriceFeed.sol +++ b/packages/abis/abis/IRevertingPriceFeed.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IRevertingPriceFeed { diff --git a/packages/abis/abis/ISharesSplitterFactory.abi.json b/packages/abis/abis/ISharesSplitterFactory.abi.json index 930e677f..3f7c3696 100644 --- a/packages/abis/abis/ISharesSplitterFactory.abi.json +++ b/packages/abis/abis/ISharesSplitterFactory.abi.json @@ -1,56 +1,56 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_globalConfigProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, + "type": "function", + "name": "deploy", "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "caller", - "type": "address" + "name": "_users", + "type": "address[]", + "internalType": "address[]" }, { - "indexed": false, - "internalType": "address", - "name": "proxy", - "type": "address" + "name": "_splitPercentages", + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "ProxyDeployed", - "type": "event" + "outputs": [ + { + "name": "sharesSplitter_", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "nonpayable" }, { + "type": "event", + "name": "ProxyDeployed", "inputs": [ { - "internalType": "address[]", - "name": "_users", - "type": "address[]" + "name": "caller", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256[]", - "name": "_splitPercentages", - "type": "uint256[]" - } - ], - "name": "deploy", - "outputs": [ - { - "internalType": "address", - "name": "sharesSplitter_", - "type": "address" + "name": "proxy", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/ISharesSplitterFactory.sol b/packages/abis/abis/ISharesSplitterFactory.sol index 691b1a71..f0d32d6e 100644 --- a/packages/abis/abis/ISharesSplitterFactory.sol +++ b/packages/abis/abis/ISharesSplitterFactory.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ISharesSplitterFactory { diff --git a/packages/abis/abis/ISharesSplitterLib.abi.json b/packages/abis/abis/ISharesSplitterLib.abi.json index 1bb26f6d..8b11b90d 100644 --- a/packages/abis/abis/ISharesSplitterLib.abi.json +++ b/packages/abis/abis/ISharesSplitterLib.abi.json @@ -1,253 +1,253 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_globalConfigProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_initializer", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "percentage", - "type": "uint256" - } - ], - "name": "SplitPercentageSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "TokenClaimed", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "claimToken", "inputs": [ { - "internalType": "address", "name": "_token", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "claimToken", "outputs": [ { - "internalType": "uint256", "name": "claimedAmount_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "claimTokenAmountTo", "inputs": [ { - "internalType": "address", "name": "_token", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_to", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "claimTokenAmountTo", "outputs": [ { - "internalType": "uint256", "name": "claimedAmount_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getSplitPercentageForUser", "inputs": [ { - "internalType": "address", "name": "_user", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getSplitPercentageForUser", "outputs": [ { - "internalType": "uint256", "name": "splitPercentage_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getTokenBalClaimableForUser", "inputs": [ { - "internalType": "address", "name": "_user", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_token", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getTokenBalClaimableForUser", "outputs": [ { - "internalType": "uint256", "name": "balClaimable_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getTokenBalClaimedForUser", "inputs": [ { - "internalType": "address", "name": "_user", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_token", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getTokenBalClaimedForUser", "outputs": [ { - "internalType": "uint256", "name": "balClaimed_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getTotalTokenBalClaimed", "inputs": [ { - "internalType": "address", "name": "_token", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getTotalTokenBalClaimed", "outputs": [ { - "internalType": "uint256", "name": "totalBalClaimed_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "address[]", "name": "_users", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "_splitPercentages", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "redeemShares", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_redeemContract", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_redeemSelector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_redeemData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "redeemShares", "outputs": [ { - "internalType": "uint256", "name": "sharesRedeemed_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "SplitPercentageSet", + "inputs": [ + { + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "percentage", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TokenClaimed", + "inputs": [ + { + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "token", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/ISharesSplitterLib.sol b/packages/abis/abis/ISharesSplitterLib.sol index c8a6e298..73611340 100644 --- a/packages/abis/abis/ISharesSplitterLib.sol +++ b/packages/abis/abis/ISharesSplitterLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ISharesSplitterLib { diff --git a/packages/abis/abis/ISolvV2BondBuyerPositionLib.abi.json b/packages/abis/abis/ISolvV2BondBuyerPositionLib.abi.json index 65edecc2..04d48092 100644 --- a/packages/abis/abis/ISolvV2BondBuyerPositionLib.abi.json +++ b/packages/abis/abis/ISolvV2BondBuyerPositionLib.abi.json @@ -1,177 +1,177 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_initialBondOfferingMarket", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "voucher", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint32", - "name": "tokenId", - "type": "uint32" - } - ], - "name": "VoucherTokenIdAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "voucher", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint32", - "name": "tokenId", - "type": "uint32" - } - ], - "name": "VoucherTokenIdRemoved", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getVoucherTokenIds", + "inputs": [], "outputs": [ { + "name": "voucherTokenIds_", + "type": "tuple[]", + "internalType": "struct SolvV2BondBuyerPositionLibBase1.VoucherTokenId[]", "components": [ { - "internalType": "address", "name": "voucher", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint32", "name": "tokenId", - "type": "uint32" + "type": "uint32", + "internalType": "uint32" } - ], - "internalType": "struct SolvV2BondBuyerPositionLibBase1.VoucherTokenId[]", - "name": "voucherTokenIds_", - "type": "tuple[]" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "onVNFTReceived", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "onVNFTReceived", "outputs": [ { - "internalType": "bytes4", "name": "selector_", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "VoucherTokenIdAdded", + "inputs": [ + { + "name": "voucher", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint32", + "indexed": true, + "internalType": "uint32" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "VoucherTokenIdRemoved", + "inputs": [ + { + "name": "voucher", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint32", + "indexed": true, + "internalType": "uint32" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/ISolvV2BondBuyerPositionLib.sol b/packages/abis/abis/ISolvV2BondBuyerPositionLib.sol index 9fae92ac..258e677b 100644 --- a/packages/abis/abis/ISolvV2BondBuyerPositionLib.sol +++ b/packages/abis/abis/ISolvV2BondBuyerPositionLib.sol @@ -1,15 +1,15 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ISolvV2BondBuyerPositionLib { - event VoucherTokenIdAdded(address indexed voucher, uint32 indexed tokenId); - event VoucherTokenIdRemoved(address indexed voucher, uint32 indexed tokenId); - struct VoucherTokenId { address voucher; uint32 tokenId; } + event VoucherTokenIdAdded(address indexed voucher, uint32 indexed tokenId); + event VoucherTokenIdRemoved(address indexed voucher, uint32 indexed tokenId); + function getDebtAssets() external returns (address[] memory assets_, uint256[] memory amounts_); function getManagedAssets() external returns (address[] memory assets_, uint256[] memory amounts_); function getVoucherTokenIds() external view returns (VoucherTokenId[] memory voucherTokenIds_); diff --git a/packages/abis/abis/ISolvV2BondBuyerPositionParser.abi.json b/packages/abis/abis/ISolvV2BondBuyerPositionParser.abi.json index c19bbaba..f879233f 100644 --- a/packages/abis/abis/ISolvV2BondBuyerPositionParser.abi.json +++ b/packages/abis/abis/ISolvV2BondBuyerPositionParser.abi.json @@ -1,76 +1,76 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_initialBondOfferingMarket", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_encodedActionArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "address[]", "name": "assetsToTransfer_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amountsToTransfer_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "assetsToReceive_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseInitArgs", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseInitArgs", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/ISolvV2BondBuyerPositionParser.sol b/packages/abis/abis/ISolvV2BondBuyerPositionParser.sol index 24ac7402..f83bc6e4 100644 --- a/packages/abis/abis/ISolvV2BondBuyerPositionParser.sol +++ b/packages/abis/abis/ISolvV2BondBuyerPositionParser.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ISolvV2BondBuyerPositionParser { diff --git a/packages/abis/abis/ISolvV2BondIssuerPositionLib.abi.json b/packages/abis/abis/ISolvV2BondIssuerPositionLib.abi.json index a8e42af6..4050bc1a 100644 --- a/packages/abis/abis/ISolvV2BondIssuerPositionLib.abi.json +++ b/packages/abis/abis/ISolvV2BondIssuerPositionLib.abi.json @@ -1,153 +1,153 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_initialBondOfferingMarket", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "voucher", - "type": "address" - } - ], - "name": "IssuedVoucherAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "voucher", - "type": "address" - } - ], - "name": "IssuedVoucherRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint24", - "name": "offerId", - "type": "uint24" - } - ], - "name": "OfferAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint24", - "name": "offerId", - "type": "uint24" - } - ], - "name": "OfferRemoved", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getIssuedVouchers", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "vouchers_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getOffers", + "inputs": [], "outputs": [ { - "internalType": "uint24[]", "name": "offers_", - "type": "uint24[]" + "type": "uint24[]", + "internalType": "uint24[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "IssuedVoucherAdded", + "inputs": [ + { + "name": "voucher", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "IssuedVoucherRemoved", + "inputs": [ + { + "name": "voucher", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OfferAdded", + "inputs": [ + { + "name": "offerId", + "type": "uint24", + "indexed": true, + "internalType": "uint24" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OfferRemoved", + "inputs": [ + { + "name": "offerId", + "type": "uint24", + "indexed": true, + "internalType": "uint24" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/ISolvV2BondIssuerPositionLib.sol b/packages/abis/abis/ISolvV2BondIssuerPositionLib.sol index 1383818b..188193f0 100644 --- a/packages/abis/abis/ISolvV2BondIssuerPositionLib.sol +++ b/packages/abis/abis/ISolvV2BondIssuerPositionLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ISolvV2BondIssuerPositionLib { diff --git a/packages/abis/abis/ISolvV2BondIssuerPositionParser.abi.json b/packages/abis/abis/ISolvV2BondIssuerPositionParser.abi.json index 609e47ab..400f5cfa 100644 --- a/packages/abis/abis/ISolvV2BondIssuerPositionParser.abi.json +++ b/packages/abis/abis/ISolvV2BondIssuerPositionParser.abi.json @@ -1,76 +1,76 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_initialBondOfferingMarket", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "_externalPosition", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_encodedActionArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "address[]", "name": "assetsToTransfer_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amountsToTransfer_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "assetsToReceive_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseInitArgs", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseInitArgs", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/ISolvV2BondIssuerPositionParser.sol b/packages/abis/abis/ISolvV2BondIssuerPositionParser.sol index 2e895537..1a9b31e0 100644 --- a/packages/abis/abis/ISolvV2BondIssuerPositionParser.sol +++ b/packages/abis/abis/ISolvV2BondIssuerPositionParser.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ISolvV2BondIssuerPositionParser { diff --git a/packages/abis/abis/IStakeWiseV3StakingPositionLib.abi.json b/packages/abis/abis/IStakeWiseV3StakingPositionLib.abi.json index 800f828a..f50660db 100644 --- a/packages/abis/abis/IStakeWiseV3StakingPositionLib.abi.json +++ b/packages/abis/abis/IStakeWiseV3StakingPositionLib.abi.json @@ -1,206 +1,206 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_referrer", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "stakeWiseVaultAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "positionTicket", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "sharesAmount", - "type": "uint256" - } - ], - "name": "ExitRequestAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "stakeWiseVaultAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "positionTicket", - "type": "uint256" - } - ], - "name": "ExitRequestRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "stakeWiseVaultAddress", - "type": "address" - } - ], - "name": "VaultTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "stakeWiseVaultAddress", - "type": "address" - } - ], - "name": "VaultTokenRemoved", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "WETH_TOKEN", + "inputs": [], "outputs": [ { - "internalType": "contract IWETH", "name": "", - "type": "address" + "type": "address", + "internalType": "contract IWETH" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "getExitRequests", + "inputs": [], "outputs": [ { + "name": "exitRequests_", + "type": "tuple[]", + "internalType": "struct StakeWiseV3StakingPositionLibBase1.ExitRequest[]", "components": [ { - "internalType": "address", "name": "stakeWiseVaultAddress", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "positionTicket", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "sharesAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } - ], - "internalType": "struct StakeWiseV3StakingPositionLibBase1.ExitRequest[]", - "name": "exitRequests_", - "type": "tuple[]" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getStakeWiseVaultTokens", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "stakeWiseVaultTokens_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ExitRequestAdded", + "inputs": [ + { + "name": "stakeWiseVaultAddress", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "positionTicket", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "sharesAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ExitRequestRemoved", + "inputs": [ + { + "name": "stakeWiseVaultAddress", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "positionTicket", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "VaultTokenAdded", + "inputs": [ + { + "name": "stakeWiseVaultAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "VaultTokenRemoved", + "inputs": [ + { + "name": "stakeWiseVaultAddress", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IStakeWiseV3StakingPositionLib.sol b/packages/abis/abis/IStakeWiseV3StakingPositionLib.sol index afae9867..72b27505 100644 --- a/packages/abis/abis/IStakeWiseV3StakingPositionLib.sol +++ b/packages/abis/abis/IStakeWiseV3StakingPositionLib.sol @@ -1,18 +1,18 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IStakeWiseV3StakingPositionLib { - event ExitRequestAdded(address indexed stakeWiseVaultAddress, uint256 positionTicket, uint256 sharesAmount); - event ExitRequestRemoved(address indexed stakeWiseVaultAddress, uint256 positionTicket); - event VaultTokenAdded(address indexed stakeWiseVaultAddress); - event VaultTokenRemoved(address indexed stakeWiseVaultAddress); - struct ExitRequest { address stakeWiseVaultAddress; uint256 positionTicket; uint256 sharesAmount; } + event ExitRequestAdded(address indexed stakeWiseVaultAddress, uint256 positionTicket, uint256 sharesAmount); + event ExitRequestRemoved(address indexed stakeWiseVaultAddress, uint256 positionTicket); + event VaultTokenAdded(address indexed stakeWiseVaultAddress); + event VaultTokenRemoved(address indexed stakeWiseVaultAddress); + function WETH_TOKEN() external view returns (address); function getDebtAssets() external pure returns (address[] memory assets_, uint256[] memory amounts_); function getExitRequests() external view returns (ExitRequest[] memory exitRequests_); diff --git a/packages/abis/abis/IStakeWiseV3StakingPositionParser.abi.json b/packages/abis/abis/IStakeWiseV3StakingPositionParser.abi.json index cdfa6bca..1f68b87f 100644 --- a/packages/abis/abis/IStakeWiseV3StakingPositionParser.abi.json +++ b/packages/abis/abis/IStakeWiseV3StakingPositionParser.abi.json @@ -1,107 +1,107 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_stakeWiseV3VaultsRegistryAddress", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wethAddress", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "STAKEWISE_V3_VAULT_REGISTRY", + "inputs": [], "outputs": [ { - "internalType": "contract IStakeWiseV3VaultsRegistry", "name": "", - "type": "address" + "type": "address", + "internalType": "contract IStakeWiseV3VaultsRegistry" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "WETH_ADDRESS", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_encodedActionArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "address[]", "name": "assetsToTransfer_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amountsToTransfer_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "assetsToReceive_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "parseInitArgs", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseInitArgs", "outputs": [ { - "internalType": "bytes", "name": "initArgs_", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" } ] diff --git a/packages/abis/abis/IStakeWiseV3StakingPositionParser.sol b/packages/abis/abis/IStakeWiseV3StakingPositionParser.sol index 9c5df59d..10af8369 100644 --- a/packages/abis/abis/IStakeWiseV3StakingPositionParser.sol +++ b/packages/abis/abis/IStakeWiseV3StakingPositionParser.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IStakeWiseV3StakingPositionParser { diff --git a/packages/abis/abis/IStakingWrapper.abi.json b/packages/abis/abis/IStakingWrapper.abi.json index c0c57932..18439ed8 100644 --- a/packages/abis/abis/IStakingWrapper.abi.json +++ b/packages/abis/abis/IStakingWrapper.abi.json @@ -1,265 +1,265 @@ [ { + "type": "function", + "name": "claimRewardsFor", "inputs": [ { - "internalType": "address", "name": "_for", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "claimRewardsFor", "outputs": [ { - "internalType": "address[]", "name": "rewardTokens_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "claimedAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "claimRewardsForWithoutCheckpoint", "inputs": [ { - "internalType": "address", "name": "_for", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "claimRewardsForWithoutCheckpoint", "outputs": [ { - "internalType": "address[]", "name": "rewardTokens_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "claimedAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "depositTo", "inputs": [ { - "internalType": "address", "name": "_to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "depositTo", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getRewardTokenAtIndex", "inputs": [ { - "internalType": "uint256", "name": "_index", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getRewardTokenAtIndex", "outputs": [ { - "internalType": "address", "name": "rewardToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getRewardTokenCount", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "count_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getRewardTokens", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "rewardTokens_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getTotalHarvestDataForRewardToken", "inputs": [ { - "internalType": "address", "name": "_rewardToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getTotalHarvestDataForRewardToken", "outputs": [ { + "name": "totalHarvestData_", + "type": "tuple", + "internalType": "struct IStakingWrapper.TotalHarvestData", "components": [ { - "internalType": "uint128", "name": "integral", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" }, { - "internalType": "uint128", "name": "lastCheckpointBalance", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" } - ], - "internalType": "struct IStakingWrapper.TotalHarvestData", - "name": "totalHarvestData_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getUserHarvestDataForRewardToken", "inputs": [ { - "internalType": "address", "name": "_user", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_rewardToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getUserHarvestDataForRewardToken", "outputs": [ { + "name": "userHarvestData_", + "type": "tuple", + "internalType": "struct IStakingWrapper.UserHarvestData", "components": [ { - "internalType": "uint128", "name": "integral", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" }, { - "internalType": "uint128", "name": "claimableReward", - "type": "uint128" + "type": "uint128", + "internalType": "uint128" } - ], - "internalType": "struct IStakingWrapper.UserHarvestData", - "name": "userHarvestData_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "isPaused", + "inputs": [], "outputs": [ { - "internalType": "bool", "name": "isPaused_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "togglePause", "inputs": [ { - "internalType": "bool", "name": "_isPaused", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "name": "togglePause", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "withdrawTo", "inputs": [ { - "internalType": "address", "name": "_to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "withdrawTo", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "withdrawToOnBehalf", "inputs": [ { - "internalType": "address", "name": "_onBehalf", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "withdrawToOnBehalf", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "withdrawToWithoutCheckpoint", "inputs": [ { - "internalType": "address", "name": "_to", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "withdrawToWithoutCheckpoint", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IStakingWrapper.sol b/packages/abis/abis/IStakingWrapper.sol index dbc0fed5..8d7c212d 100644 --- a/packages/abis/abis/IStakingWrapper.sol +++ b/packages/abis/abis/IStakingWrapper.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IStakingWrapper { diff --git a/packages/abis/abis/ISynthetixAdapter.abi.json b/packages/abis/abis/ISynthetixAdapter.abi.json index afa7b1ad..5c1282ce 100644 --- a/packages/abis/abis/ISynthetixAdapter.abi.json +++ b/packages/abis/abis/ISynthetixAdapter.abi.json @@ -1,320 +1,320 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_originator", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_synthetixRedeemer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_synthetix", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_susd", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes32", "name": "_trackingCode", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getSynthetix", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "synthetix_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getSynthetixOriginator", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "synthetixOriginator_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getSynthetixRedeemer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "synthetixRedeemer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getSynthetixTrackingCode", + "inputs": [], "outputs": [ { - "internalType": "bytes32", "name": "synthetixTrackingCode_", - "type": "bytes32" + "type": "bytes32", + "internalType": "bytes32" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "redeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "takeOrder", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "takeOrder", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/ISynthetixAdapter.sol b/packages/abis/abis/ISynthetixAdapter.sol index 6c811e2e..2de0ff33 100644 --- a/packages/abis/abis/ISynthetixAdapter.sol +++ b/packages/abis/abis/ISynthetixAdapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ISynthetixAdapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -20,7 +22,7 @@ interface ISynthetixAdapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/ITheGraphDelegationPositionLib.abi.json b/packages/abis/abis/ITheGraphDelegationPositionLib.abi.json index fec1bf54..b91fd4f6 100644 --- a/packages/abis/abis/ITheGraphDelegationPositionLib.abi.json +++ b/packages/abis/abis/ITheGraphDelegationPositionLib.abi.json @@ -1,157 +1,157 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_stakingProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_grtToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "indexer", - "type": "address" - } - ], - "name": "IndexerAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "indexer", - "type": "address" - } - ], - "name": "IndexerRemoved", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getDelegationGrtValue", "inputs": [ { - "internalType": "address", "name": "_indexer", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getDelegationGrtValue", "outputs": [ { - "internalType": "uint256", "name": "grtValue_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIndexers", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "isDelegatorTo", "inputs": [ { - "internalType": "address", "name": "_indexer", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isDelegatorTo", "outputs": [ { - "internalType": "bool", "name": "isDelegator_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "IndexerAdded", + "inputs": [ + { + "name": "indexer", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "IndexerRemoved", + "inputs": [ + { + "name": "indexer", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/ITheGraphDelegationPositionLib.sol b/packages/abis/abis/ITheGraphDelegationPositionLib.sol index 6c483560..b11a04ec 100644 --- a/packages/abis/abis/ITheGraphDelegationPositionLib.sol +++ b/packages/abis/abis/ITheGraphDelegationPositionLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ITheGraphDelegationPositionLib { diff --git a/packages/abis/abis/ITheGraphDelegationPositionParser.abi.json b/packages/abis/abis/ITheGraphDelegationPositionParser.abi.json index e185ef00..61015f01 100644 --- a/packages/abis/abis/ITheGraphDelegationPositionParser.abi.json +++ b/packages/abis/abis/ITheGraphDelegationPositionParser.abi.json @@ -1,76 +1,76 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_grtToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_encodedActionArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "address[]", "name": "assetsToTransfer_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amountsToTransfer_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "assetsToReceive_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseInitArgs", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseInitArgs", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/ITheGraphDelegationPositionParser.sol b/packages/abis/abis/ITheGraphDelegationPositionParser.sol index 49aa3886..5e273aa3 100644 --- a/packages/abis/abis/ITheGraphDelegationPositionParser.sol +++ b/packages/abis/abis/ITheGraphDelegationPositionParser.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface ITheGraphDelegationPositionParser { diff --git a/packages/abis/abis/IUintListRegistry.abi.json b/packages/abis/abis/IUintListRegistry.abi.json index a901d744..ac9bec0c 100644 --- a/packages/abis/abis/IUintListRegistry.abi.json +++ b/packages/abis/abis/IUintListRegistry.abi.json @@ -1,520 +1,520 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_dispatcher", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "item", - "type": "uint256" - } - ], - "name": "ItemAddedToList", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "item", - "type": "uint256" - } - ], - "name": "ItemRemovedFromList", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "description", - "type": "string" - } - ], - "name": "ListAttested", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "creator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "enum IUintListRegistry.UpdateType", - "name": "updateType", - "type": "uint8" - } - ], - "name": "ListCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "nextOwner", - "type": "address" - } - ], - "name": "ListOwnerSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "enum IUintListRegistry.UpdateType", - "name": "prevUpdateType", - "type": "uint8" - }, - { - "indexed": true, - "internalType": "enum IUintListRegistry.UpdateType", - "name": "nextUpdateType", - "type": "uint8" - } - ], - "name": "ListUpdateTypeSet", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addToList", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256[]", "name": "_items", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "addToList", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "areAllInAllLists", "inputs": [ { - "internalType": "uint256[]", "name": "_ids", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "uint256[]", "name": "_items", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "areAllInAllLists", "outputs": [ { - "internalType": "bool", "name": "areAllInAllLists_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "areAllInList", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256[]", "name": "_items", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "areAllInList", "outputs": [ { - "internalType": "bool", "name": "areAllInList_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "areAllInSomeOfLists", "inputs": [ { - "internalType": "uint256[]", "name": "_ids", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "uint256[]", "name": "_items", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "areAllInSomeOfLists", "outputs": [ { - "internalType": "bool", "name": "areAllInSomeOfLists_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "areAllNotInAnyOfLists", "inputs": [ { - "internalType": "uint256[]", "name": "_ids", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "uint256[]", "name": "_items", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "areAllNotInAnyOfLists", "outputs": [ { - "internalType": "bool", "name": "areAllNotInAnyOfLists_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "areAllNotInList", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256[]", "name": "_items", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "areAllNotInList", "outputs": [ { - "internalType": "bool", "name": "areAllNotInList_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "attestLists", "inputs": [ { - "internalType": "uint256[]", "name": "_ids", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "string[]", "name": "_descriptions", - "type": "string[]" + "type": "string[]", + "internalType": "string[]" } ], - "name": "attestLists", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "createList", "inputs": [ { - "internalType": "address", "name": "_owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "enum IUintListRegistry.UpdateType", "name": "_updateType", - "type": "uint8" + "type": "uint8", + "internalType": "enum IUintListRegistry.UpdateType" }, { - "internalType": "uint256[]", "name": "_initialItems", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "createList", "outputs": [ { - "internalType": "uint256", "name": "id_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getDispatcher", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "dispatcher_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getListCount", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "count_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getListOwner", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getListOwner", "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getListUpdateType", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getListUpdateType", "outputs": [ { - "internalType": "enum IUintListRegistry.UpdateType", "name": "updateType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IUintListRegistry.UpdateType" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isInAllLists", "inputs": [ { - "internalType": "uint256[]", "name": "_ids", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "uint256", "name": "_item", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "isInAllLists", "outputs": [ { - "internalType": "bool", "name": "isInAllLists_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isInList", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_item", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "isInList", "outputs": [ { - "internalType": "bool", "name": "isInList_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isInSomeOfLists", "inputs": [ { - "internalType": "uint256[]", "name": "_ids", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "uint256", "name": "_item", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "isInSomeOfLists", "outputs": [ { - "internalType": "bool", "name": "isInSomeOfLists_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "removeFromList", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256[]", "name": "_items", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "name": "removeFromList", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setListOwner", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_nextOwner", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setListOwner", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setListUpdateType", "inputs": [ { - "internalType": "uint256", "name": "_id", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "enum IUintListRegistry.UpdateType", "name": "_nextUpdateType", - "type": "uint8" + "type": "uint8", + "internalType": "enum IUintListRegistry.UpdateType" } ], - "name": "setListUpdateType", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ItemAddedToList", + "inputs": [ + { + "name": "id", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "item", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ItemRemovedFromList", + "inputs": [ + { + "name": "id", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "item", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ListAttested", + "inputs": [ + { + "name": "id", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "description", + "type": "string", + "indexed": false, + "internalType": "string" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ListCreated", + "inputs": [ + { + "name": "creator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "id", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "updateType", + "type": "uint8", + "indexed": false, + "internalType": "enum IUintListRegistry.UpdateType" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ListOwnerSet", + "inputs": [ + { + "name": "id", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "nextOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ListUpdateTypeSet", + "inputs": [ + { + "name": "id", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "prevUpdateType", + "type": "uint8", + "indexed": false, + "internalType": "enum IUintListRegistry.UpdateType" + }, + { + "name": "nextUpdateType", + "type": "uint8", + "indexed": true, + "internalType": "enum IUintListRegistry.UpdateType" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IUintListRegistry.sol b/packages/abis/abis/IUintListRegistry.sol index c4d8c1e1..a2afc97e 100644 --- a/packages/abis/abis/IUintListRegistry.sol +++ b/packages/abis/abis/IUintListRegistry.sol @@ -1,13 +1,15 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IUintListRegistry { + type UpdateType is uint8; + event ItemAddedToList(uint256 indexed id, uint256 item); event ItemRemovedFromList(uint256 indexed id, uint256 item); event ListAttested(uint256 indexed id, string description); - event ListCreated(address indexed creator, address indexed owner, uint256 id, uint8 updateType); + event ListCreated(address indexed creator, address indexed owner, uint256 id, UpdateType updateType); event ListOwnerSet(uint256 indexed id, address indexed nextOwner); - event ListUpdateTypeSet(uint256 indexed id, uint8 prevUpdateType, uint8 indexed nextUpdateType); + event ListUpdateTypeSet(uint256 indexed id, UpdateType prevUpdateType, UpdateType indexed nextUpdateType); function addToList(uint256 _id, uint256[] memory _items) external; function areAllInAllLists(uint256[] memory _ids, uint256[] memory _items) @@ -25,17 +27,17 @@ interface IUintListRegistry { returns (bool areAllNotInAnyOfLists_); function areAllNotInList(uint256 _id, uint256[] memory _items) external view returns (bool areAllNotInList_); function attestLists(uint256[] memory _ids, string[] memory _descriptions) external; - function createList(address _owner, uint8 _updateType, uint256[] memory _initialItems) + function createList(address _owner, UpdateType _updateType, uint256[] memory _initialItems) external returns (uint256 id_); function getDispatcher() external view returns (address dispatcher_); function getListCount() external view returns (uint256 count_); function getListOwner(uint256 _id) external view returns (address owner_); - function getListUpdateType(uint256 _id) external view returns (uint8 updateType_); + function getListUpdateType(uint256 _id) external view returns (UpdateType updateType_); function isInAllLists(uint256[] memory _ids, uint256 _item) external view returns (bool isInAllLists_); function isInList(uint256 _id, uint256 _item) external view returns (bool isInList_); function isInSomeOfLists(uint256[] memory _ids, uint256 _item) external view returns (bool isInSomeOfLists_); function removeFromList(uint256 _id, uint256[] memory _items) external; function setListOwner(uint256 _id, address _nextOwner) external; - function setListUpdateType(uint256 _id, uint8 _nextUpdateType) external; + function setListUpdateType(uint256 _id, UpdateType _nextUpdateType) external; } diff --git a/packages/abis/abis/IUniswapV2ExchangeAdapter.abi.json b/packages/abis/abis/IUniswapV2ExchangeAdapter.abi.json index 35c82a99..947c7ee4 100644 --- a/packages/abis/abis/IUniswapV2ExchangeAdapter.abi.json +++ b/packages/abis/abis/IUniswapV2ExchangeAdapter.abi.json @@ -1,233 +1,233 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_router", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getUniswapV2Router2", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "router_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "takeOrder", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "takeOrder", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IUniswapV2ExchangeAdapter.sol b/packages/abis/abis/IUniswapV2ExchangeAdapter.sol index d1902228..f35ef8ee 100644 --- a/packages/abis/abis/IUniswapV2ExchangeAdapter.sol +++ b/packages/abis/abis/IUniswapV2ExchangeAdapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IUniswapV2ExchangeAdapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -17,7 +19,7 @@ interface IUniswapV2ExchangeAdapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IUniswapV2LiquidityAdapter.abi.json b/packages/abis/abis/IUniswapV2LiquidityAdapter.abi.json index 9ecc7a5c..dec1b304 100644 --- a/packages/abis/abis/IUniswapV2LiquidityAdapter.abi.json +++ b/packages/abis/abis/IUniswapV2LiquidityAdapter.abi.json @@ -1,274 +1,274 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_router", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_factory", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFactory", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "factory_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getUniswapV2Router2", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "router_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lend", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lend", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "redeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IUniswapV2LiquidityAdapter.sol b/packages/abis/abis/IUniswapV2LiquidityAdapter.sol index c3cef889..a9ecb875 100644 --- a/packages/abis/abis/IUniswapV2LiquidityAdapter.sol +++ b/packages/abis/abis/IUniswapV2LiquidityAdapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IUniswapV2LiquidityAdapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -19,7 +21,7 @@ interface IUniswapV2LiquidityAdapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IUniswapV2PoolPriceFeed.abi.json b/packages/abis/abis/IUniswapV2PoolPriceFeed.abi.json index edc1abe5..e0910b24 100644 --- a/packages/abis/abis/IUniswapV2PoolPriceFeed.abi.json +++ b/packages/abis/abis/IUniswapV2PoolPriceFeed.abi.json @@ -1,226 +1,226 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_factory", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "poolToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "token0", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "token1", - "type": "address" - } - ], - "name": "PoolTokenAdded", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addPoolTokens", "inputs": [ { - "internalType": "address[]", "name": "_poolTokens", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addPoolTokens", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_derivativeAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "underlyings_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "underlyingAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getFactory", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "factory_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getPoolTokenInfo", "inputs": [ { - "internalType": "address", "name": "_poolToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getPoolTokenInfo", "outputs": [ { + "name": "poolTokenInfo_", + "type": "tuple", + "internalType": "struct UniswapV2PoolPriceFeed.PoolTokenInfo", "components": [ { - "internalType": "address", "name": "token0", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "token1", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint8", "name": "token0Decimals", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" }, { - "internalType": "uint8", "name": "token1Decimals", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } - ], - "internalType": "struct UniswapV2PoolPriceFeed.PoolTokenInfo", - "name": "poolTokenInfo_", - "type": "tuple" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getPoolTokenUnderlyings", "inputs": [ { - "internalType": "address", "name": "_poolToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getPoolTokenUnderlyings", "outputs": [ { - "internalType": "address", "name": "token0_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "token1_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getValueInterpreter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "valueInterpreter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "PoolTokenAdded", + "inputs": [ + { + "name": "poolToken", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "token0", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "token1", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false } ] diff --git a/packages/abis/abis/IUniswapV2PoolPriceFeed.sol b/packages/abis/abis/IUniswapV2PoolPriceFeed.sol index a1f224a7..d6996d67 100644 --- a/packages/abis/abis/IUniswapV2PoolPriceFeed.sol +++ b/packages/abis/abis/IUniswapV2PoolPriceFeed.sol @@ -1,9 +1,7 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IUniswapV2PoolPriceFeed { - event PoolTokenAdded(address indexed poolToken, address token0, address token1); - struct PoolTokenInfo { address token0; address token1; @@ -11,6 +9,8 @@ interface IUniswapV2PoolPriceFeed { uint8 token1Decimals; } + event PoolTokenAdded(address indexed poolToken, address token0, address token1); + function addPoolTokens(address[] memory _poolTokens) external; function calcUnderlyingValues(address _derivative, uint256 _derivativeAmount) external diff --git a/packages/abis/abis/IUniswapV3Adapter.abi.json b/packages/abis/abis/IUniswapV3Adapter.abi.json index 368ec11b..d41a6a70 100644 --- a/packages/abis/abis/IUniswapV3Adapter.abi.json +++ b/packages/abis/abis/IUniswapV3Adapter.abi.json @@ -1,233 +1,233 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_router", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getUniswapV3Router", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "router_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "takeOrder", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "takeOrder", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IUniswapV3Adapter.sol b/packages/abis/abis/IUniswapV3Adapter.sol index 925c4e13..faec2187 100644 --- a/packages/abis/abis/IUniswapV3Adapter.sol +++ b/packages/abis/abis/IUniswapV3Adapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IUniswapV3Adapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -17,7 +19,7 @@ interface IUniswapV3Adapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IUniswapV3LiquidityPositionLib.abi.json b/packages/abis/abis/IUniswapV3LiquidityPositionLib.abi.json index bf7c17c6..f80c692f 100644 --- a/packages/abis/abis/IUniswapV3LiquidityPositionLib.abi.json +++ b/packages/abis/abis/IUniswapV3LiquidityPositionLib.abi.json @@ -1,207 +1,207 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_nonFungibleTokenManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "NFTPositionAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "tokenId", - "type": "uint256" - } - ], - "name": "NFTPositionRemoved", - "type": "event" - }, - { - "inputs": [], + "type": "function", "name": "getDebtAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "getManagedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "assets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getNftIds", + "inputs": [], "outputs": [ { - "internalType": "uint256[]", "name": "nftIds_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getNonFungibleTokenManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "nonFungibleTokenManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getPairForNft", "inputs": [ { - "internalType": "uint256", "name": "_nftId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getPairForNft", "outputs": [ { - "internalType": "address", "name": "token0_", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "token1_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getToken0ForNft", "inputs": [ { - "internalType": "uint256", "name": "_nftId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getToken0ForNft", "outputs": [ { - "internalType": "address", "name": "token0_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getToken1ForNft", "inputs": [ { - "internalType": "uint256", "name": "_nftId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getToken1ForNft", "outputs": [ { - "internalType": "address", "name": "token1_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getValueInterpreter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "valueInterpreter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "receiveCallFromVault", "inputs": [ { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "receiveCallFromVault", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "NFTPositionAdded", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NFTPositionRemoved", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IUniswapV3LiquidityPositionLib.sol b/packages/abis/abis/IUniswapV3LiquidityPositionLib.sol index a244d76d..725a0636 100644 --- a/packages/abis/abis/IUniswapV3LiquidityPositionLib.sol +++ b/packages/abis/abis/IUniswapV3LiquidityPositionLib.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IUniswapV3LiquidityPositionLib { diff --git a/packages/abis/abis/IUniswapV3LiquidityPositionParser.abi.json b/packages/abis/abis/IUniswapV3LiquidityPositionParser.abi.json index ecea609c..323efb54 100644 --- a/packages/abis/abis/IUniswapV3LiquidityPositionParser.abi.json +++ b/packages/abis/abis/IUniswapV3LiquidityPositionParser.abi.json @@ -1,107 +1,107 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_valueInterpreter", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_nonfungiblePositionManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getUniswapV3NonfungiblePositionManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "nonfungiblePositionManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getValueInterpreter", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "valueInterpreter_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "_externalPosition", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_actionId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "bytes", "name": "_encodedActionArgs", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "address[]", "name": "assetsToTransfer_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "amountsToTransfer_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "assetsToReceive_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "parseInitArgs", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseInitArgs", "outputs": [ { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IUniswapV3LiquidityPositionParser.sol b/packages/abis/abis/IUniswapV3LiquidityPositionParser.sol index 809e8e6d..51d1b9f1 100644 --- a/packages/abis/abis/IUniswapV3LiquidityPositionParser.sol +++ b/packages/abis/abis/IUniswapV3LiquidityPositionParser.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IUniswapV3LiquidityPositionParser { diff --git a/packages/abis/abis/IUnpermissionedActionsWrapper.abi.json b/packages/abis/abis/IUnpermissionedActionsWrapper.abi.json index 273d53fa..0b565c7f 100644 --- a/packages/abis/abis/IUnpermissionedActionsWrapper.abi.json +++ b/packages/abis/abis/IUnpermissionedActionsWrapper.abi.json @@ -1,63 +1,63 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_feeManager", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getContinuousFeesForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getContinuousFeesForFund", "outputs": [ { - "internalType": "address[]", "name": "continuousFees_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFeeManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "feeManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "invokeContinuousFeeHookAndPayoutSharesOutstandingForFund", "inputs": [ { - "internalType": "address", "name": "_comptrollerProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address[]", "name": "_fees", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "invokeContinuousFeeHookAndPayoutSharesOutstandingForFund", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IUnpermissionedActionsWrapper.sol b/packages/abis/abis/IUnpermissionedActionsWrapper.sol index e7fc6506..d7b4b895 100644 --- a/packages/abis/abis/IUnpermissionedActionsWrapper.sol +++ b/packages/abis/abis/IUnpermissionedActionsWrapper.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IUnpermissionedActionsWrapper { diff --git a/packages/abis/abis/IValueInterpreter.abi.json b/packages/abis/abis/IValueInterpreter.abi.json index 3f994d07..ecbf5711 100644 --- a/packages/abis/abis/IValueInterpreter.abi.json +++ b/packages/abis/abis/IValueInterpreter.abi.json @@ -1,495 +1,495 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_chainlinkStaleRateThreshold", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "derivative", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "priceFeed", - "type": "address" - } - ], - "name": "DerivativeAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "derivative", - "type": "address" - } - ], - "name": "DerivativeRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "prevEthUsdAggregator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "nextEthUsdAggregator", - "type": "address" - } - ], - "name": "EthUsdAggregatorSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "primitive", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "aggregator", - "type": "address" - }, - { - "indexed": false, - "internalType": "enum IChainlinkPriceFeedMixin.RateAsset", - "name": "rateAsset", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "unit", - "type": "uint256" - } - ], - "name": "PrimitiveAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "primitive", - "type": "address" - } - ], - "name": "PrimitiveRemoved", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addDerivatives", "inputs": [ { - "internalType": "address[]", "name": "_derivatives", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_priceFeeds", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addDerivatives", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addPrimitives", "inputs": [ { - "internalType": "address[]", "name": "_primitives", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_aggregators", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "enum IChainlinkPriceFeedMixin.RateAsset[]", "name": "_rateAssets", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IChainlinkPriceFeedMixin.RateAsset[]" } ], - "name": "addPrimitives", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcCanonicalAssetValue", "inputs": [ { - "internalType": "address", "name": "_baseAsset", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "address", "name": "_quoteAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcCanonicalAssetValue", "outputs": [ { - "internalType": "uint256", "name": "value_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcCanonicalAssetsTotalValue", "inputs": [ { - "internalType": "address[]", "name": "_baseAssets", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "_amounts", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address", "name": "_quoteAsset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "calcCanonicalAssetsTotalValue", "outputs": [ { - "internalType": "uint256", "name": "value_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getAggregatorForPrimitive", "inputs": [ { - "internalType": "address", "name": "_primitive", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getAggregatorForPrimitive", "outputs": [ { - "internalType": "address", "name": "aggregator_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getEthUsdAggregator", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "ethUsdAggregator_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getPriceFeedForDerivative", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getPriceFeedForDerivative", "outputs": [ { - "internalType": "address", "name": "priceFeed_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getRateAssetForPrimitive", "inputs": [ { - "internalType": "address", "name": "_primitive", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getRateAssetForPrimitive", "outputs": [ { - "internalType": "enum IChainlinkPriceFeedMixin.RateAsset", "name": "rateAsset_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IChainlinkPriceFeedMixin.RateAsset" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getStaleRateThreshold", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "staleRateThreshold_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getUnitForPrimitive", "inputs": [ { - "internalType": "address", "name": "_primitive", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getUnitForPrimitive", "outputs": [ { - "internalType": "uint256", "name": "unit_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getWethToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "wethToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isSupportedDerivativeAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedDerivativeAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isSupportedPrimitiveAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedPrimitiveAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "removeDerivatives", "inputs": [ { - "internalType": "address[]", "name": "_derivatives", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "removeDerivatives", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "removePrimitives", "inputs": [ { - "internalType": "address[]", "name": "_primitives", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "removePrimitives", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setEthUsdAggregator", "inputs": [ { - "internalType": "address", "name": "_nextEthUsdAggregator", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "setEthUsdAggregator", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updateDerivatives", "inputs": [ { - "internalType": "address[]", "name": "_derivatives", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_priceFeeds", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "updateDerivatives", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "updatePrimitives", "inputs": [ { - "internalType": "address[]", "name": "_primitives", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_aggregators", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "enum IChainlinkPriceFeedMixin.RateAsset[]", "name": "_rateAssets", - "type": "uint8[]" + "type": "uint8[]", + "internalType": "enum IChainlinkPriceFeedMixin.RateAsset[]" } ], - "name": "updatePrimitives", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "DerivativeAdded", + "inputs": [ + { + "name": "derivative", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "priceFeed", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "DerivativeRemoved", + "inputs": [ + { + "name": "derivative", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "EthUsdAggregatorSet", + "inputs": [ + { + "name": "prevEthUsdAggregator", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "nextEthUsdAggregator", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PrimitiveAdded", + "inputs": [ + { + "name": "primitive", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "aggregator", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "rateAsset", + "type": "uint8", + "indexed": false, + "internalType": "enum IChainlinkPriceFeedMixin.RateAsset" + }, + { + "name": "unit", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "PrimitiveRemoved", + "inputs": [ + { + "name": "primitive", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IValueInterpreter.sol b/packages/abis/abis/IValueInterpreter.sol index 81f4d392..280660d6 100644 --- a/packages/abis/abis/IValueInterpreter.sol +++ b/packages/abis/abis/IValueInterpreter.sol @@ -1,15 +1,17 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IValueInterpreter { + type RateAsset is uint8; + event DerivativeAdded(address indexed derivative, address priceFeed); event DerivativeRemoved(address indexed derivative); event EthUsdAggregatorSet(address prevEthUsdAggregator, address nextEthUsdAggregator); - event PrimitiveAdded(address indexed primitive, address aggregator, uint8 rateAsset, uint256 unit); + event PrimitiveAdded(address indexed primitive, address aggregator, RateAsset rateAsset, uint256 unit); event PrimitiveRemoved(address indexed primitive); function addDerivatives(address[] memory _derivatives, address[] memory _priceFeeds) external; - function addPrimitives(address[] memory _primitives, address[] memory _aggregators, uint8[] memory _rateAssets) + function addPrimitives(address[] memory _primitives, address[] memory _aggregators, RateAsset[] memory _rateAssets) external; function calcCanonicalAssetValue(address _baseAsset, uint256 _amount, address _quoteAsset) external @@ -22,7 +24,7 @@ interface IValueInterpreter { function getFundDeployer() external view returns (address fundDeployer_); function getOwner() external view returns (address owner_); function getPriceFeedForDerivative(address _derivative) external view returns (address priceFeed_); - function getRateAssetForPrimitive(address _primitive) external view returns (uint8 rateAsset_); + function getRateAssetForPrimitive(address _primitive) external view returns (RateAsset rateAsset_); function getStaleRateThreshold() external view returns (uint256 staleRateThreshold_); function getUnitForPrimitive(address _primitive) external view returns (uint256 unit_); function getWethToken() external view returns (address wethToken_); @@ -33,6 +35,9 @@ interface IValueInterpreter { function removePrimitives(address[] memory _primitives) external; function setEthUsdAggregator(address _nextEthUsdAggregator) external; function updateDerivatives(address[] memory _derivatives, address[] memory _priceFeeds) external; - function updatePrimitives(address[] memory _primitives, address[] memory _aggregators, uint8[] memory _rateAssets) - external; + function updatePrimitives( + address[] memory _primitives, + address[] memory _aggregators, + RateAsset[] memory _rateAssets + ) external; } diff --git a/packages/abis/abis/IVaultCore.abi.json b/packages/abis/abis/IVaultCore.abi.json index 02532993..f617df78 100644 --- a/packages/abis/abis/IVaultCore.abi.json +++ b/packages/abis/abis/IVaultCore.abi.json @@ -1,54 +1,54 @@ [ { - "inputs": [], + "type": "function", "name": "getAccessor", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "accessor_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getCreator", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "creator_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getMigrator", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "migrator_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IVaultCore.sol b/packages/abis/abis/IVaultCore.sol index 8520dd19..dde0cbf2 100644 --- a/packages/abis/abis/IVaultCore.sol +++ b/packages/abis/abis/IVaultCore.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IVaultCore { diff --git a/packages/abis/abis/IVaultLib.abi.json b/packages/abis/abis/IVaultLib.abi.json index b5a95154..119a98fa 100644 --- a/packages/abis/abis/IVaultLib.abi.json +++ b/packages/abis/abis/IVaultLib.abi.json @@ -1,1308 +1,1308 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_externalPositionManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_gasRelayPaymasterFactory", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_protocolFeeReserve", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_protocolFeeTracker", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_mlnToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_mlnBurner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_wethToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_positionsLimit", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "prevAccessor", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "nextAccessor", - "type": "address" - } - ], - "name": "AccessorSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "manager", - "type": "address" - } - ], - "name": "AssetManagerAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "manager", - "type": "address" - } - ], - "name": "AssetManagerRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "AssetWithdrawn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "EthReceived", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "externalPosition", - "type": "address" - } - ], - "name": "ExternalPositionAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "externalPosition", - "type": "address" - } - ], - "name": "ExternalPositionRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "FreelyTransferableSharesSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "prevMigrator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "nextMigrator", - "type": "address" - } - ], - "name": "MigratorSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "name", - "type": "string" - } - ], - "name": "NameSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "nominatedOwner", - "type": "address" - } - ], - "name": "NominatedOwnerRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "nominatedOwner", - "type": "address" - } - ], - "name": "NominatedOwnerSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "nextOwner", - "type": "address" - } - ], - "name": "OwnerSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "prevOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "nextOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "sharesAmount", - "type": "uint256" - } - ], - "name": "ProtocolFeePaidInShares", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "sharesAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "mlnValue", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "mlnBurned", - "type": "uint256" - } - ], - "name": "ProtocolFeeSharesBoughtBack", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "symbol", - "type": "string" - } - ], - "name": "SymbolSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "TrackedAssetAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "asset", - "type": "address" - } - ], - "name": "TrackedAssetRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "prevVaultLib", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "nextVaultLib", - "type": "address" - } - ], - "name": "VaultLibSet", - "type": "event" + "type": "receive", + "stateMutability": "payable" }, { + "type": "function", + "name": "addAssetManagers", "inputs": [ { - "internalType": "address[]", "name": "_managers", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addAssetManagers", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addTrackedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "addTrackedAsset", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "allowance", "inputs": [ { - "internalType": "address", "name": "_owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_spender", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "allowance", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "approve", "inputs": [ { - "internalType": "address", "name": "_spender", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "approve", "outputs": [ { - "internalType": "bool", "name": "", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "balanceOf", "inputs": [ { - "internalType": "address", "name": "_account", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "balanceOf", "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "burnShares", "inputs": [ { - "internalType": "address", "name": "_target", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "burnShares", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "buyBackProtocolFeeShares", "inputs": [ { - "internalType": "uint256", "name": "_sharesAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_mlnValue", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "_gav", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "buyBackProtocolFeeShares", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "callOnContract", "inputs": [ { - "internalType": "address", "name": "_contract", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_callData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "callOnContract", "outputs": [ { - "internalType": "bytes", "name": "returnData_", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "canManageAssets", "inputs": [ { - "internalType": "address", "name": "_who", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "canManageAssets", "outputs": [ { - "internalType": "bool", "name": "canManageAssets_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "canMigrate", "inputs": [ { - "internalType": "address", "name": "_who", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "canMigrate", "outputs": [ { - "internalType": "bool", "name": "canMigrate_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "canRelayCalls", "inputs": [ { - "internalType": "address", "name": "_who", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "canRelayCalls", "outputs": [ { - "internalType": "bool", "name": "canRelayCalls_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "claimOwnership", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "decimals", + "inputs": [], "outputs": [ { - "internalType": "uint8", "name": "", - "type": "uint8" + "type": "uint8", + "internalType": "uint8" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "pure" }, { - "inputs": [], + "type": "function", "name": "getAccessor", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "accessor_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getActiveExternalPositions", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "activeExternalPositions_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getCreator", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "creator_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getExternalPositionLibForType", "inputs": [ { - "internalType": "uint256", "name": "_typeId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getExternalPositionLibForType", "outputs": [ { - "internalType": "address", "name": "externalPositionLib_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getExternalPositionManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "externalPositionManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getGasRelayPaymasterFactory", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "gasRelayPaymasterFactory_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getGasRelayTrustedForwarder", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "trustedForwarder_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getMigrator", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "migrator_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getMlnBurner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "mlnBurner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getMlnToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "mlnToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getNominatedOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "nominatedOwner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getPositionsLimit", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "positionsLimit_", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getProtocolFeeReserve", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "protocolFeeReserve_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getProtocolFeeTracker", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "protocolFeeTracker_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getTrackedAssets", + "inputs": [], "outputs": [ { - "internalType": "address[]", "name": "trackedAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getVaultLib", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "vaultLib_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getWethToken", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "wethToken_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "init", "inputs": [ { - "internalType": "address", "name": "_owner", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_accessor", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "string", "name": "_fundName", - "type": "string" + "type": "string", + "internalType": "string" } ], - "name": "init", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "isActiveExternalPosition", "inputs": [ { - "internalType": "address", "name": "_externalPosition", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isActiveExternalPosition", "outputs": [ { - "internalType": "bool", - "name": "isActiveExternalPosition_", - "type": "bool" + "name": "isActiveExternalPosition_", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "isAssetManager", + "inputs": [ + { + "name": "_who", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "isAssetManager_", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "isTrackedAsset", + "inputs": [ + { + "name": "_asset", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "isTrackedAsset_", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "mintShares", + "inputs": [ + { + "name": "_target", + "type": "address", + "internalType": "address" + }, + { + "name": "_amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "name", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "payProtocolFee", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "proxiableUUID", + "inputs": [], + "outputs": [ + { + "name": "uuid_", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "pure" + }, + { + "type": "function", + "name": "receiveValidatedVaultAction", + "inputs": [ + { + "name": "_action", + "type": "uint8", + "internalType": "enum IVault.VaultAction" + }, + { + "name": "_actionData", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "removeAssetManagers", + "inputs": [ + { + "name": "_managers", + "type": "address[]", + "internalType": "address[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "removeNominatedOwner", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setAccessor", + "inputs": [ + { + "name": "_nextAccessor", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setAccessorForFundReconfiguration", + "inputs": [ + { + "name": "_nextAccessor", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setFreelyTransferableShares", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setMigrator", + "inputs": [ + { + "name": "_nextMigrator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setName", + "inputs": [ + { + "name": "_nextName", + "type": "string", + "internalType": "string" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setNominatedOwner", + "inputs": [ + { + "name": "_nextNominatedOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setSymbol", + "inputs": [ + { + "name": "_nextSymbol", + "type": "string", + "internalType": "string" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setVaultLib", + "inputs": [ + { + "name": "_nextVaultLib", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "sharesAreFreelyTransferable", + "inputs": [], + "outputs": [ + { + "name": "sharesAreFreelyTransferable_", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "symbol", + "inputs": [], + "outputs": [ + { + "name": "symbol_", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "totalSupply", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "transfer", "inputs": [ { - "internalType": "address", - "name": "_who", - "type": "address" + "name": "_recipient", + "type": "address", + "internalType": "address" + }, + { + "name": "_amount", + "type": "uint256", + "internalType": "uint256" } ], - "name": "isAssetManager", "outputs": [ { - "internalType": "bool", - "name": "isAssetManager_", - "type": "bool" + "name": "success_", + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "transferFrom", "inputs": [ { - "internalType": "address", - "name": "_asset", - "type": "address" + "name": "_sender", + "type": "address", + "internalType": "address" + }, + { + "name": "_recipient", + "type": "address", + "internalType": "address" + }, + { + "name": "_amount", + "type": "uint256", + "internalType": "uint256" } ], - "name": "isTrackedAsset", "outputs": [ { - "internalType": "bool", - "name": "isTrackedAsset_", - "type": "bool" + "name": "success_", + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "transferShares", "inputs": [ { - "internalType": "address", - "name": "_target", - "type": "address" + "name": "_from", + "type": "address", + "internalType": "address" + }, + { + "name": "_to", + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_amount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "mintShares", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], - "name": "name", - "outputs": [ + "type": "function", + "name": "withdrawAssetTo", + "inputs": [ { - "internalType": "string", - "name": "", - "type": "string" + "name": "_asset", + "type": "address", + "internalType": "address" + }, + { + "name": "_target", + "type": "address", + "internalType": "address" + }, + { + "name": "_amount", + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "payProtocolFee", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], - "name": "proxiableUUID", - "outputs": [ + "type": "event", + "name": "AccessorSet", + "inputs": [ { - "internalType": "bytes32", - "name": "uuid_", - "type": "bytes32" + "name": "prevAccessor", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "nextAccessor", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "stateMutability": "pure", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Approval", "inputs": [ { - "internalType": "enum IVault.VaultAction", - "name": "_action", - "type": "uint8" + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "bytes", - "name": "_actionData", - "type": "bytes" + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "receiveValidatedVaultAction", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "AssetManagerAdded", "inputs": [ { - "internalType": "address[]", - "name": "_managers", - "type": "address[]" + "name": "manager", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "name": "removeAssetManagers", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "removeNominatedOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "AssetManagerRemoved", "inputs": [ { - "internalType": "address", - "name": "_nextAccessor", - "type": "address" + "name": "manager", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "name": "setAccessor", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "AssetWithdrawn", "inputs": [ { - "internalType": "address", - "name": "_nextAccessor", - "type": "address" + "name": "asset", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "target", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "setAccessorForFundReconfiguration", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "setFreelyTransferableShares", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "EthReceived", "inputs": [ { - "internalType": "address", - "name": "_nextMigrator", - "type": "address" + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "setMigrator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "ExternalPositionAdded", "inputs": [ { - "internalType": "string", - "name": "_nextName", - "type": "string" + "name": "externalPosition", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "name": "setName", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "ExternalPositionRemoved", "inputs": [ { - "internalType": "address", - "name": "_nextNominatedOwner", - "type": "address" + "name": "externalPosition", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "name": "setNominatedOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false + }, + { + "type": "event", + "name": "FreelyTransferableSharesSet", + "inputs": [], + "anonymous": false }, { + "type": "event", + "name": "MigratorSet", "inputs": [ { - "internalType": "string", - "name": "_nextSymbol", - "type": "string" + "name": "prevMigrator", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "nextMigrator", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "name": "setSymbol", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "NameSet", "inputs": [ { - "internalType": "address", - "name": "_nextVaultLib", - "type": "address" + "name": "name", + "type": "string", + "indexed": false, + "internalType": "string" } ], - "name": "setVaultLib", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "sharesAreFreelyTransferable", - "outputs": [ + "type": "event", + "name": "NominatedOwnerRemoved", + "inputs": [ { - "internalType": "bool", - "name": "sharesAreFreelyTransferable_", - "type": "bool" + "name": "nominatedOwner", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "symbol", - "outputs": [ + "type": "event", + "name": "NominatedOwnerSet", + "inputs": [ { - "internalType": "string", - "name": "symbol_", - "type": "string" + "name": "nominatedOwner", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { - "inputs": [], - "name": "totalSupply", - "outputs": [ + "type": "event", + "name": "OwnerSet", + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "prevOwner", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "nextOwner", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "OwnershipTransferred", "inputs": [ { - "internalType": "address", - "name": "_recipient", - "type": "address" + "name": "prevOwner", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" + "name": "nextOwner", + "type": "address", + "indexed": true, + "internalType": "address" } ], - "name": "transfer", - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "ProtocolFeePaidInShares", + "inputs": [ { - "internalType": "bool", - "name": "success_", - "type": "bool" + "name": "sharesAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "ProtocolFeeSharesBoughtBack", "inputs": [ { - "internalType": "address", - "name": "_sender", - "type": "address" + "name": "sharesAmount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "address", - "name": "_recipient", - "type": "address" + "name": "mlnValue", + "type": "uint256", + "indexed": false, + "internalType": "uint256" }, { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" + "name": "mlnBurned", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "transferFrom", - "outputs": [ + "anonymous": false + }, + { + "type": "event", + "name": "SymbolSet", + "inputs": [ { - "internalType": "bool", - "name": "success_", - "type": "bool" + "name": "symbol", + "type": "string", + "indexed": false, + "internalType": "string" } ], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "TrackedAssetAdded", "inputs": [ { - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "internalType": "address", - "name": "_to", - "type": "address" - }, + "name": "asset", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TrackedAssetRemoved", + "inputs": [ { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" + "name": "asset", + "type": "address", + "indexed": false, + "internalType": "address" } ], - "name": "transferShares", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { + "type": "event", + "name": "Transfer", "inputs": [ { - "internalType": "address", - "name": "_asset", - "type": "address" + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "address", - "name": "_target", - "type": "address" + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" }, { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" + "name": "value", + "type": "uint256", + "indexed": false, + "internalType": "uint256" } ], - "name": "withdrawAssetTo", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "anonymous": false }, { - "stateMutability": "payable", - "type": "receive" + "type": "event", + "name": "VaultLibSet", + "inputs": [ + { + "name": "prevVaultLib", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "nextVaultLib", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IVaultLib.sol b/packages/abis/abis/IVaultLib.sol index 15f0327e..11ddb074 100644 --- a/packages/abis/abis/IVaultLib.sol +++ b/packages/abis/abis/IVaultLib.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IVaultLib { + type VaultAction is uint8; + event AccessorSet(address prevAccessor, address nextAccessor); event Approval(address indexed owner, address indexed spender, uint256 value); event AssetManagerAdded(address manager); @@ -25,6 +27,8 @@ interface IVaultLib { event Transfer(address indexed from, address indexed to, uint256 value); event VaultLibSet(address prevVaultLib, address nextVaultLib); + receive() external payable; + function addAssetManagers(address[] memory _managers) external; function addTrackedAsset(address _asset) external; function allowance(address _owner, address _spender) external view returns (uint256); @@ -68,7 +72,7 @@ interface IVaultLib { function name() external view returns (string memory); function payProtocolFee() external; function proxiableUUID() external pure returns (bytes32 uuid_); - function receiveValidatedVaultAction(uint8 _action, bytes memory _actionData) external; + function receiveValidatedVaultAction(VaultAction _action, bytes memory _actionData) external; function removeAssetManagers(address[] memory _managers) external; function removeNominatedOwner() external; function setAccessor(address _nextAccessor) external; diff --git a/packages/abis/abis/IWstethPriceFeed.abi.json b/packages/abis/abis/IWstethPriceFeed.abi.json index 8b1cb8d5..82b61efe 100644 --- a/packages/abis/abis/IWstethPriceFeed.abi.json +++ b/packages/abis/abis/IWstethPriceFeed.abi.json @@ -1,66 +1,66 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_wsteth", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_steth", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_derivativeAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "underlyings_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "underlyingAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" } ] diff --git a/packages/abis/abis/IWstethPriceFeed.sol b/packages/abis/abis/IWstethPriceFeed.sol index 1b98ff1e..e2386136 100644 --- a/packages/abis/abis/IWstethPriceFeed.sol +++ b/packages/abis/abis/IWstethPriceFeed.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IWstethPriceFeed { diff --git a/packages/abis/abis/IYearnVaultV2Adapter.abi.json b/packages/abis/abis/IYearnVaultV2Adapter.abi.json index 885ffb4c..df21670b 100644 --- a/packages/abis/abis/IYearnVaultV2Adapter.abi.json +++ b/packages/abis/abis/IYearnVaultV2Adapter.abi.json @@ -1,256 +1,256 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_yearnVaultV2PriceFeed", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getYearnVaultV2PriceFeed", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "yearnVaultV2PriceFeed_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "lend", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "lend", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "redeem", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "redeem", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IYearnVaultV2Adapter.sol b/packages/abis/abis/IYearnVaultV2Adapter.sol index f7d391c2..e8831b9e 100644 --- a/packages/abis/abis/IYearnVaultV2Adapter.sol +++ b/packages/abis/abis/IYearnVaultV2Adapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IYearnVaultV2Adapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -18,7 +20,7 @@ interface IYearnVaultV2Adapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/abis/IYearnVaultV2PriceFeed.abi.json b/packages/abis/abis/IYearnVaultV2PriceFeed.abi.json index 26c266ec..1b64050c 100644 --- a/packages/abis/abis/IYearnVaultV2PriceFeed.abi.json +++ b/packages/abis/abis/IYearnVaultV2PriceFeed.abi.json @@ -1,187 +1,187 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_fundDeployer", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_yearnVaultV2Registry", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "derivative", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "underlying", - "type": "address" - } - ], - "name": "DerivativeAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "derivative", - "type": "address" - } - ], - "name": "DerivativeRemoved", - "type": "event" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "addDerivatives", "inputs": [ { - "internalType": "address[]", "name": "_derivatives", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "address[]", "name": "_underlyings", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "addDerivatives", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "calcUnderlyingValues", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_derivativeAmount", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "calcUnderlyingValues", "outputs": [ { - "internalType": "address[]", "name": "underlyings_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "underlyingAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "getFundDeployer", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "fundDeployer_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getOwner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "owner_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "getUnderlyingForDerivative", "inputs": [ { - "internalType": "address", "name": "_derivative", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "getUnderlyingForDerivative", "outputs": [ { - "internalType": "address", "name": "underlying_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getYearnVaultV2Registry", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "yearnVaultV2Registry_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isSupportedAsset", "inputs": [ { - "internalType": "address", "name": "_asset", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isSupportedAsset", "outputs": [ { - "internalType": "bool", "name": "isSupported_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "removeDerivatives", "inputs": [ { - "internalType": "address[]", "name": "_derivatives", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" } ], - "name": "removeDerivatives", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "DerivativeAdded", + "inputs": [ + { + "name": "derivative", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "underlying", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "DerivativeRemoved", + "inputs": [ + { + "name": "derivative", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false } ] diff --git a/packages/abis/abis/IYearnVaultV2PriceFeed.sol b/packages/abis/abis/IYearnVaultV2PriceFeed.sol index ee2c6b1f..0d828f7a 100644 --- a/packages/abis/abis/IYearnVaultV2PriceFeed.sol +++ b/packages/abis/abis/IYearnVaultV2PriceFeed.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IYearnVaultV2PriceFeed { diff --git a/packages/abis/abis/IZeroExV4Adapter.abi.json b/packages/abis/abis/IZeroExV4Adapter.abi.json index b2eab5a7..2aa4d912 100644 --- a/packages/abis/abis/IZeroExV4Adapter.abi.json +++ b/packages/abis/abis/IZeroExV4Adapter.abi.json @@ -1,249 +1,249 @@ [ { + "type": "constructor", "inputs": [ { - "internalType": "address", "name": "_integrationManager", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_exchange", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_addressListRegistry", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "uint256", "name": "_allowedMakersListId", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "CLAIM_REWARDS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_AND_STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "LEND_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "STAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_MULTIPLE_ORDERS_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "TAKE_ORDER_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_AND_REDEEM_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "UNSTAKE_SELECTOR", + "inputs": [], "outputs": [ { - "internalType": "bytes4", "name": "", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "getIntegrationManager", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "integrationManager_", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "isAllowedMaker", "inputs": [ { - "internalType": "address", "name": "_who", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "isAllowedMaker", "outputs": [ { - "internalType": "bool", "name": "isAllowedMaker_", - "type": "bool" + "type": "bool", + "internalType": "bool" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "parseAssetsForAction", "inputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes4", "name": "_selector", - "type": "bytes4" + "type": "bytes4", + "internalType": "bytes4" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "parseAssetsForAction", "outputs": [ { - "internalType": "enum IIntegrationManager.SpendAssetsHandleType", "name": "spendAssetsHandleType_", - "type": "uint8" + "type": "uint8", + "internalType": "enum IIntegrationManager.SpendAssetsHandleType" }, { - "internalType": "address[]", "name": "spendAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "spendAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" }, { - "internalType": "address[]", "name": "incomingAssets_", - "type": "address[]" + "type": "address[]", + "internalType": "address[]" }, { - "internalType": "uint256[]", "name": "minIncomingAssetAmounts_", - "type": "uint256[]" + "type": "uint256[]", + "internalType": "uint256[]" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "takeOrder", "inputs": [ { - "internalType": "address", "name": "_vaultProxy", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "bytes", "name": "_actionData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" }, { - "internalType": "bytes", "name": "_assetData", - "type": "bytes" + "type": "bytes", + "internalType": "bytes" } ], - "name": "takeOrder", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" } ] diff --git a/packages/abis/abis/IZeroExV4Adapter.sol b/packages/abis/abis/IZeroExV4Adapter.sol index 55c2bbbb..a08b1eaa 100644 --- a/packages/abis/abis/IZeroExV4Adapter.sol +++ b/packages/abis/abis/IZeroExV4Adapter.sol @@ -1,7 +1,9 @@ -// SPDX-License-Identifier: Unlicense +// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.6.0 <0.9.0; interface IZeroExV4Adapter { + type SpendAssetsHandleType is uint8; + function CLAIM_REWARDS_SELECTOR() external view returns (bytes4); function LEND_AND_STAKE_SELECTOR() external view returns (bytes4); function LEND_SELECTOR() external view returns (bytes4); @@ -17,7 +19,7 @@ interface IZeroExV4Adapter { external view returns ( - uint8 spendAssetsHandleType_, + SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory incomingAssets_, diff --git a/packages/abis/scripts/abis.sh b/packages/abis/scripts/abis.sh index 461e11cf..afffa5b2 100755 --- a/packages/abis/scripts/abis.sh +++ b/packages/abis/scripts/abis.sh @@ -6,6 +6,7 @@ if [ $# -ne 1 ]; then exit 1 fi +# Set the protocol directory. artifacts=$1 # Check if the argument is a directory that exists. @@ -15,12 +16,82 @@ if [ ! -d "$artifacts" ]; then fi # Find the root of the package. -root=$(dirname $(dirname $(realpath $0))) +cwd=$(dirname $(realpath $0)) +root=$(dirname $cwd) -# Copy the abi & interface files to the abis directory. -mkdir -p $root/abis -cp $artifacts/*.abi.json $artifacts/*.sol $root/abis +# The target directory to store the interfaces and abis. +target=$root/abis +# The file containing the interfaces to generate. +registry=$cwd/artifacts.txt + +# The pragma to use when generating the interfaces. +pragma=">=0.6.0 <0.9.0" + +# Remove all existing interfaces and abis (from the immediate directory only). +rm -rf $target +mkdir -p $target + +echo "Generating interfaces ..." + +# Read interfaces.txt line by line and use `cast interface` to generate the interfaces. +while read -r line; do + # Skip empty lines and lines starting with `#`. + if [[ -z "$line" || "$line" == \#* ]]; then + continue + fi + + # The line format is `output: input`. + output="$(echo $line | cut -d ':' -f1 | xargs)" + input="$(echo $line | cut -d ':' -f2 | xargs)" + if [[ -z "$output" || -z "$input" ]]; then + echo "Invalid line format in $registry ($line)" + exit 1; + fi + + # Extract the output name of the interface from the output path. + name="$(basename $output | cut -d '.' -f1)" + if [[ -z "$name" ]]; then + echo "Invalid output $output in $registry" + exit 1 + fi + + # Prepend the interfaces directory to the output path and check the file extension. + output="$target/$output" + if [[ ! "$input" == *.abi.json ]]; then + echo "Invalid extension for interface source $input" + exit 1 + fi + + # If the input is a path, use it directly. Otherwise, try to find the file in the artifacts directory. + if echo "$input" | grep -q "/"; then + path="$input" + else + path="$(find $artifacts -type f -name $input | head -n 1)" + fi + + # Check if the source file was found. If not, try alternative files based on a pattern (e.g. `Dispatcher.*.abi.json` instead of `Dispatcher.abi.json`). + if [[ -z "$path" || ! -f "$path" ]]; then + alternative="$(find $artifacts -type f -name "$(basename $input .abi.json).*.abi.json" | sort -Vr | head -n 1)" + if [[ -z "$alternative" || ! -f "$alternative" ]]; then + echo "Failed to locate source file for $input" + exit 1 + else + path="$alternative" + fi + fi + + # Create the parent directory. + mkdir -p "$(dirname $output)" + + # Generate the interface using `cast interface`. + cast interface "$path" -o "$output" -n "$name" --pragma "$pragma" + + # Copy the abi file to the interfaces directory. + cp "$path" "$(dirname $output)/$name.abi.json" +done < "$registry" + +# Create typescript files for each abi file. abis=$(find $root/abis -type f -name "*.abi.json" -print0 | sort -z | xargs -r0) # Delete previously generated files. diff --git a/packages/abis/scripts/artifacts.txt b/packages/abis/scripts/artifacts.txt new file mode 100644 index 00000000..52b33de3 --- /dev/null +++ b/packages/abis/scripts/artifacts.txt @@ -0,0 +1,187 @@ +####################################################################################################################### +# PERSISTENT +####################################################################################################################### + +# Dispatcher +IDispatcher.sol: Dispatcher.abi.json +IMigrationHookHandler.sol: IMigrationHookHandler.abi.json + +# Arbitrary value oracle +IArbitraryValueOracle.sol: IArbitraryValueOracle.abi.json +IManualValueOracleFactory.sol: ManualValueOracleFactory.abi.json +IManualValueOracleLib.sol: ManualValueOracleLib.abi.json + +# Off-chain +IHelperDataReader.sol: HelperDataReader.abi.json +IHelperDataReaderRouter.sol: HelperDataReaderRouter.abi.json +IFundDataProviderRouter.sol: FundDataProviderRouter.abi.json +IFundValueCalculatorRouter.sol: FundValueCalculatorRouter.abi.json +IFundValueCalculatorUsdWrapper.sol: FundValueCalculatorUsdWrapper.abi.json + +# Address list registry +IAddressListRegistry.sol: AddressListRegistry.abi.json +IAaveV2ATokenListOwner.sol: AaveV2ATokenListOwner.abi.json +IAaveV3ATokenListOwner.sol: AaveV3ATokenListOwner.abi.json +ICompoundV3CTokenListOwner.sol: CompoundV3CTokenListOwner.abi.json + +# Uint list registry +IUintListRegistry.sol: UintListRegistry.abi.json + +# Global config +IGlobalConfigLib.sol: GlobalConfigLib.abi.json + +# Shares splitter +ISharesSplitterLib.sol: SharesSplitterLib.abi.json +ISharesSplitterFactory.sol: SharesSplitterFactory.abi.json + +# Protocol fee +IProtocolFeeReserveLib.sol: ProtocolFeeReserveLib.abi.json + +# Shares wrapper +IGatedRedemptionQueueSharesWrapperLib.sol: GatedRedemptionQueueSharesWrapperLib.abi.json +IGatedRedemptionQueueSharesWrapperFactory.sol: GatedRedemptionQueueSharesWrapperFactory.abi.json + +# External positions +IExternalPosition.sol: IExternalPosition.abi.json +IExternalPositionFactory.sol: ExternalPositionFactory.abi.json +IExternalPositionProxy.sol: ExternalPositionProxy.abi.json +IExternalPositionVault.sol: IExternalPositionVault.abi.json +IMapleV1ToV2PoolMapper.sol: MapleV1ToV2PoolMapper.abi.json + +####################################################################################################################### +# RELEASE +####################################################################################################################### + +# Core +IVaultLib.sol: VaultLib.abi.json +IVaultCore.sol: IVaultCore.abi.json +IComptrollerLib.sol: ComptrollerLib.abi.json +IFundDeployer.sol: FundDeployer.abi.json + +# Policies +IPolicy.sol: IPolicy.abi.json +IPolicyManager.sol: PolicyManager.abi.json +IAllowedExternalPositionTypesPolicy.sol: AllowedExternalPositionTypesPolicy.abi.json +ICumulativeSlippageTolerancePolicy.sol: CumulativeSlippageTolerancePolicy.abi.json +IOnlyUntrackDustOrPricelessAssetsPolicy.sol: OnlyUntrackDustOrPricelessAssetsPolicy.abi.json +IAllowedAdapterIncomingAssetsPolicy.sol: AllowedAdapterIncomingAssetsPolicy.abi.json +IAllowedExternalPositionTypesPerManagerPolicy.sol: AllowedExternalPositionTypesPerManagerPolicy.abi.json +IOnlyRemoveDustExternalPositionPolicy.sol: OnlyRemoveDustExternalPositionPolicy.abi.json +IAllowedAdaptersPerManagerPolicy.sol: AllowedAdaptersPerManagerPolicy.abi.json +IAllowedAdaptersPolicy.sol: AllowedAdaptersPolicy.abi.json +IAllowedDepositRecipientsPolicy.sol: AllowedDepositRecipientsPolicy.abi.json +IAllowedSharesTransferRecipientsPolicy.sol: AllowedSharesTransferRecipientsPolicy.abi.json +IMinMaxInvestmentPolicy.sol: MinMaxInvestmentPolicy.abi.json +IAllowedAssetsForRedemptionPolicy.sol: AllowedAssetsForRedemptionPolicy.abi.json +IMinAssetBalancesPostRedemptionPolicy.sol: MinAssetBalancesPostRedemptionPolicy.abi.json +INoDepegOnRedeemSharesForSpecificAssetsPolicy.sol: NoDepegOnRedeemSharesForSpecificAssetsPolicy.abi.json + +# Fees +IFee.sol: IFee.abi.json +IFeeManager.sol: FeeManager.abi.json +IManagementFee.sol: ManagementFee.abi.json +IMinSharesSupplyFee.sol: MinSharesSupplyFee.abi.json +IExitRateDirectFee.sol: ExitRateDirectFee.abi.json +IExitRateBurnFee.sol: ExitRateBurnFee.abi.json +IEntranceRateBurnFee.sol: EntranceRateBurnFee.abi.json +IEntranceRateDirectFee.sol: EntranceRateDirectFee.abi.json +IPerformanceFee.sol: PerformanceFee.abi.json + +# Integrations +IIntegrationAdapter.sol: IIntegrationAdapter.abi.json +IIntegrationManager.sol: IntegrationManager.abi.json +IUniswapV2LiquidityAdapter.sol: UniswapV2LiquidityAdapter.abi.json +IAaveV3Adapter.sol: AaveV3Adapter.abi.json +ISynthetixAdapter.sol: SynthetixAdapter.abi.json +IConvexCurveLpStakingAdapter.sol: ConvexCurveLpStakingAdapter.abi.json +IUniswapV3Adapter.sol: UniswapV3Adapter.abi.json +IIdleAdapter.sol: IdleAdapter.abi.json +ICurveLiquidityAdapter.sol: CurveLiquidityAdapter.abi.json +IUniswapV2ExchangeAdapter.sol: UniswapV2ExchangeAdapter.abi.json +ICompoundV3Adapter.sol: CompoundV3Adapter.abi.json +IYearnVaultV2Adapter.sol: YearnVaultV2Adapter.abi.json +IParaSwapV5Adapter.sol: ParaSwapV5Adapter.abi.json +IAaveV2Adapter.sol: AaveV2Adapter.abi.json +IAuraBalancerV2LpStakingAdapter.sol: AuraBalancerV2LpStakingAdapter.abi.json +IBalancerV2LiquidityAdapter.sol: BalancerV2LiquidityAdapter.abi.json +ICurveExchangeAdapter.sol: CurveExchangeAdapter.abi.json +ICompoundAdapter.sol: CompoundAdapter.abi.json +IERC4626Adapter.sol: ERC4626Adapter.abi.json +IArrakisV2Adapter.sol: ArrakisV2Adapter.abi.json +IZeroExV4Adapter.sol: ZeroExV4Adapter.abi.json + +# External positions +IExternalPositionManager.sol: ExternalPositionManager.abi.json +IAaveDebtPositionLib.sol: AaveDebtPositionLib.abi.json +IAaveDebtPositionParser.sol: AaveDebtPositionParser.abi.json +IAaveV3DebtPositionLib.sol: AaveV3DebtPositionLib.abi.json +IAaveV3DebtPositionParser.sol: AaveV3DebtPositionParser.abi.json +IArbitraryLoanPositionLib.sol: ArbitraryLoanPositionLib.abi.json +IArbitraryLoanPositionParser.sol: ArbitraryLoanPositionParser.abi.json +IArbitraryLoanTotalNominalDeltaOracleModule.sol: ArbitraryLoanTotalNominalDeltaOracleModule.abi.json +ICompoundDebtPositionLib.sol: CompoundDebtPositionLib.abi.json +ICompoundDebtPositionParser.sol: CompoundDebtPositionParser.abi.json +IConvexVotingPositionLib.sol: ConvexVotingPositionLib.abi.json +IConvexVotingPositionParser.sol: ConvexVotingPositionParser.abi.json +IKilnStakingPositionLib.sol: KilnStakingPositionLib.abi.json +IKilnStakingPositionParser.sol: KilnStakingPositionParser.abi.json +ILidoWithdrawalsPositionLib.sol:LidoWithdrawalsPositionLib.abi.json +ILiquityDebtPositionLib.sol: LiquityDebtPositionLib.abi.json +ILiquityDebtPositionParser.sol: LiquityDebtPositionParser.abi.json +IMapleLiquidityPositionLib.sol: MapleLiquidityPositionLib.abi.json +IMapleLiquidityPositionParser.sol: MapleLiquidityPositionParser.abi.json +ISolvV2BondBuyerPositionLib.sol: SolvV2BondBuyerPositionLib.abi.json +ISolvV2BondBuyerPositionParser.sol: SolvV2BondBuyerPositionParser.abi.json +ISolvV2BondIssuerPositionLib.sol: SolvV2BondIssuerPositionLib.abi.json +ISolvV2BondIssuerPositionParser.sol: SolvV2BondIssuerPositionParser.abi.json +IStakeWiseV3StakingPositionLib.sol: StakeWiseV3StakingPositionLib.abi.json +IStakeWiseV3StakingPositionParser.sol: StakeWiseV3StakingPositionParser.abi.json +ITheGraphDelegationPositionLib.sol: TheGraphDelegationPositionLib.abi.json +ITheGraphDelegationPositionParser.sol: TheGraphDelegationPositionParser.abi.json +IUniswapV3LiquidityPositionLib.sol: UniswapV3LiquidityPositionLib.abi.json +IUniswapV3LiquidityPositionParser.sol: UniswapV3LiquidityPositionParser.abi.json + +# Value interpreter +IValueInterpreter.sol: ValueInterpreter.abi.json + +# Price feeds +IDerivativePriceFeed.sol: IDerivativePriceFeed.abi.json +ICurvePriceFeed.sol: CurvePriceFeed.abi.json +IBalancerV2WeightedPoolPriceFeed.sol: BalancerV2WeightedPoolPriceFeed.abi.json +IBalancerV2StablePoolPriceFeed.sol: BalancerV2StablePoolPriceFeed.abi.json +IWstethPriceFeed.sol: WstethPriceFeed.abi.json +ICompoundPriceFeed.sol: CompoundPriceFeed.abi.json +IUniswapV2PoolPriceFeed.sol: UniswapV2PoolPriceFeed.abi.json +IBalancerV2GaugeTokenPriceFeed.sol: BalancerV2GaugeTokenPriceFeed.abi.json +IIdlePriceFeed.sol: IdlePriceFeed.abi.json +IRevertingPriceFeed.sol: RevertingPriceFeed.abi.json +IAuraBalancerV2LpStakingWrapperPriceFeed.sol: AuraBalancerV2LpStakingWrapperPriceFeed.abi.json +IConvexCurveLpStakingWrapperPriceFeed.sol: ConvexCurveLpStakingWrapperPriceFeed.abi.json +IYearnVaultV2PriceFeed.sol: YearnVaultV2PriceFeed.abi.json +IChainlinkPriceFeedMixin.sol: ChainlinkPriceFeedMixin.abi.json +IERC4626PriceFeed.sol: ERC4626PriceFeed.abi.json +IArrakisV2PriceFeed.sol: ArrakisV2PriceFeed.abi.json + +# Protocol fee +IProtocolFeeTracker.sol: ProtocolFeeTracker.abi.json + +# Gas relayer +IGasRelayPaymasterLib.sol: GasRelayPaymasterLib.abi.json +IGasRelayPaymasterFactory.sol: GasRelayPaymasterFactory.abi.json + +# Staking wrappers +IConvexCurveLpStakingWrapperFactory.sol: ConvexCurveLpStakingWrapperFactory.abi.json +IConvexCurveLpStakingWrapperLib.sol: ConvexCurveLpStakingWrapperLib.abi.json +IAuraBalancerV2LpStakingWrapperFactory.sol: AuraBalancerV2LpStakingWrapperFactory.abi.json +IStakingWrapper.sol: IStakingWrapper.abi.json + +# Peripheral +IDepositWrapper.sol: DepositWrapper.abi.json +IUnpermissionedActionsWrapper.sol: UnpermissionedActionsWrapper.abi.json +IArbitraryTokenPhasedSharesWrapperFactory.sol: ArbitraryTokenPhasedSharesWrapperFactory.abi.json +IArbitraryTokenPhasedSharesWrapperProxy.sol: ArbitraryTokenPhasedSharesWrapperProxy.abi.json +IArbitraryTokenPhasedSharesWrapperLib.sol: ArbitraryTokenPhasedSharesWrapperLib.abi.json + +# Off-chain +IFundValueCalculator.sol: FundValueCalculator.abi.json +IAssetValueCalculator.sol: AssetValueCalculator.abi.json diff --git a/packages/abis/src/abis/IAaveDebtPositionLib.ts b/packages/abis/src/abis/IAaveDebtPositionLib.ts index 387e9fe1..d8806733 100644 --- a/packages/abis/src/abis/IAaveDebtPositionLib.ts +++ b/packages/abis/src/abis/IAaveDebtPositionLib.ts @@ -1,194 +1,194 @@ export const IAaveDebtPositionLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_aaveDataProvider", type: "address", - }, - { internalType: "address", - name: "_aaveLendingPoolAddressProvider", - type: "address", }, { - internalType: "address", - name: "_aaveIncentivesController", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "asset", + name: "_aaveLendingPoolAddressProvider", type: "address", - }, - ], - name: "BorrowedAssetAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "asset", - type: "address", }, - ], - name: "BorrowedAssetRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [ { - indexed: true, - internalType: "address", - name: "asset", + name: "_aaveIncentivesController", type: "address", - }, - ], - name: "CollateralAssetAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "asset", - type: "address", }, ], - name: "CollateralAssetRemoved", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "assetIsBorrowed", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "assetIsBorrowed", outputs: [ { - internalType: "bool", name: "isBorrowed_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "assetIsCollateral", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "assetIsCollateral", outputs: [ { - internalType: "bool", name: "isCollateral_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getDebtTokenForBorrowedAsset", inputs: [ { - internalType: "address", name: "_borrowedAsset", type: "address", + internalType: "address", }, ], - name: "getDebtTokenForBorrowedAsset", outputs: [ { - internalType: "address", name: "debtToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "BorrowedAssetAdded", + inputs: [ + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "BorrowedAssetRemoved", + inputs: [ + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "CollateralAssetAdded", + inputs: [ + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "CollateralAssetRemoved", + inputs: [ + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IAaveDebtPositionParser.ts b/packages/abis/src/abis/IAaveDebtPositionParser.ts index 2e55a51d..d26e6ced 100644 --- a/packages/abis/src/abis/IAaveDebtPositionParser.ts +++ b/packages/abis/src/abis/IAaveDebtPositionParser.ts @@ -1,76 +1,76 @@ export const IAaveDebtPositionParser = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_valueInterpreter", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "_externalPosition", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_encodedActionArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "address[]", name: "assetsToTransfer_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amountsToTransfer_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "assetsToReceive_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseInitArgs", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "parseInitArgs", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IAaveV2ATokenListOwner.ts b/packages/abis/src/abis/IAaveV2ATokenListOwner.ts index eb9e2a56..20d6ee68 100644 --- a/packages/abis/src/abis/IAaveV2ATokenListOwner.ts +++ b/packages/abis/src/abis/IAaveV2ATokenListOwner.ts @@ -1,36 +1,36 @@ export const IAaveV2ATokenListOwner = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_addressListRegistry", type: "address", + internalType: "address", }, { - internalType: "string", name: "_listDescription", type: "string", + internalType: "string", }, { - internalType: "address", name: "_lendingPoolAddressProvider", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "addValidatedItemsToList", inputs: [ { - internalType: "address[]", name: "_items", type: "address[]", + internalType: "address[]", }, ], - name: "addValidatedItemsToList", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IAaveV2Adapter.ts b/packages/abis/src/abis/IAaveV2Adapter.ts index 6eec6f78..40a26dca 100644 --- a/packages/abis/src/abis/IAaveV2Adapter.ts +++ b/packages/abis/src/abis/IAaveV2Adapter.ts @@ -1,253 +1,253 @@ export const IAaveV2Adapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressListRegistry", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_aTokenListId", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_lendingPool", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "lend", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "lend", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "redeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "redeem", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IAaveV3ATokenListOwner.ts b/packages/abis/src/abis/IAaveV3ATokenListOwner.ts index 342bfed9..36af295d 100644 --- a/packages/abis/src/abis/IAaveV3ATokenListOwner.ts +++ b/packages/abis/src/abis/IAaveV3ATokenListOwner.ts @@ -1,36 +1,36 @@ export const IAaveV3ATokenListOwner = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_addressListRegistry", type: "address", + internalType: "address", }, { - internalType: "string", name: "_listDescription", type: "string", + internalType: "string", }, { - internalType: "address", name: "_poolAddressProvider", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "addValidatedItemsToList", inputs: [ { - internalType: "address[]", name: "_items", type: "address[]", + internalType: "address[]", }, ], - name: "addValidatedItemsToList", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IAaveV3Adapter.ts b/packages/abis/src/abis/IAaveV3Adapter.ts index fb1a9199..de290cf8 100644 --- a/packages/abis/src/abis/IAaveV3Adapter.ts +++ b/packages/abis/src/abis/IAaveV3Adapter.ts @@ -1,258 +1,258 @@ export const IAaveV3Adapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressListRegistry", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_aTokenListId", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_pool", type: "address", + internalType: "address", }, { - internalType: "uint16", name: "_referralCode", type: "uint16", + internalType: "uint16", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "lend", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "lend", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "redeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "redeem", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IAaveV3DebtPositionLib.ts b/packages/abis/src/abis/IAaveV3DebtPositionLib.ts index 4e29df61..c84ed854 100644 --- a/packages/abis/src/abis/IAaveV3DebtPositionLib.ts +++ b/packages/abis/src/abis/IAaveV3DebtPositionLib.ts @@ -1,194 +1,194 @@ export const IAaveV3DebtPositionLib = [ { + type: "constructor", inputs: [ { - internalType: "contract IAaveV3ProtocolDataProvider", name: "_dataProvider", type: "address", + internalType: "contract IAaveV3ProtocolDataProvider", }, { - internalType: "contract IAaveV3PoolAddressProvider", name: "_lendingPoolAddressProvider", type: "address", + internalType: "contract IAaveV3PoolAddressProvider", }, { - internalType: "uint16", name: "_referralCode", type: "uint16", + internalType: "uint16", }, ], stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "asset", - type: "address", - }, - ], - name: "BorrowedAssetAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "asset", - type: "address", - }, - ], - name: "BorrowedAssetRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "asset", - type: "address", - }, - ], - name: "CollateralAssetAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "asset", - type: "address", - }, - ], - name: "CollateralAssetRemoved", - type: "event", }, { + type: "function", + name: "assetIsBorrowed", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "assetIsBorrowed", outputs: [ { - internalType: "bool", name: "isBorrowed_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "assetIsCollateral", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "assetIsCollateral", outputs: [ { - internalType: "bool", name: "isCollateral_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getDebtTokenForBorrowedAsset", inputs: [ { - internalType: "address", name: "_borrowedAsset", type: "address", + internalType: "address", }, ], - name: "getDebtTokenForBorrowedAsset", outputs: [ { - internalType: "address", name: "debtToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "BorrowedAssetAdded", + inputs: [ + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "BorrowedAssetRemoved", + inputs: [ + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "CollateralAssetAdded", + inputs: [ + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "CollateralAssetRemoved", + inputs: [ + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IAaveV3DebtPositionParser.ts b/packages/abis/src/abis/IAaveV3DebtPositionParser.ts index a7e124f7..6a14aee3 100644 --- a/packages/abis/src/abis/IAaveV3DebtPositionParser.ts +++ b/packages/abis/src/abis/IAaveV3DebtPositionParser.ts @@ -1,81 +1,81 @@ export const IAaveV3DebtPositionParser = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_addressListRegistry", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_aTokenListId", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "_externalPosition", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_encodedActionArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "address[]", name: "assetsToTransfer_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amountsToTransfer_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "assetsToReceive_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseInitArgs", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "parseInitArgs", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IAddressListRegistry.ts b/packages/abis/src/abis/IAddressListRegistry.ts index 9e828d02..00902fd8 100644 --- a/packages/abis/src/abis/IAddressListRegistry.ts +++ b/packages/abis/src/abis/IAddressListRegistry.ts @@ -1,520 +1,520 @@ export const IAddressListRegistry = [ { - inputs: [ - { - internalType: "address", - name: "_dispatcher", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "id", - type: "uint256", - }, - { - indexed: false, - internalType: "address", - name: "item", - type: "address", - }, - ], - name: "ItemAddedToList", - type: "event", - }, - { - anonymous: false, inputs: [ { - indexed: true, - internalType: "uint256", - name: "id", - type: "uint256", - }, - { - indexed: false, - internalType: "address", - name: "item", - type: "address", - }, - ], - name: "ItemRemovedFromList", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "id", - type: "uint256", - }, - { - indexed: false, - internalType: "string", - name: "description", - type: "string", - }, - ], - name: "ListAttested", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "creator", + name: "_dispatcher", type: "address", - }, - { - indexed: true, internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "id", - type: "uint256", - }, - { - indexed: false, - internalType: "enum IAddressListRegistry.UpdateType", - name: "updateType", - type: "uint8", - }, - ], - name: "ListCreated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "id", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "nextOwner", - type: "address", }, ], - name: "ListOwnerSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "id", - type: "uint256", - }, - { - indexed: false, - internalType: "enum IAddressListRegistry.UpdateType", - name: "prevUpdateType", - type: "uint8", - }, - { - indexed: true, - internalType: "enum IAddressListRegistry.UpdateType", - name: "nextUpdateType", - type: "uint8", - }, - ], - name: "ListUpdateTypeSet", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "addToList", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "address[]", name: "_items", type: "address[]", + internalType: "address[]", }, ], - name: "addToList", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "areAllInAllLists", inputs: [ { - internalType: "uint256[]", name: "_ids", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "_items", type: "address[]", + internalType: "address[]", }, ], - name: "areAllInAllLists", outputs: [ { - internalType: "bool", name: "areAllInAllLists_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "areAllInList", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "address[]", name: "_items", type: "address[]", + internalType: "address[]", }, ], - name: "areAllInList", outputs: [ { - internalType: "bool", name: "areAllInList_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "areAllInSomeOfLists", inputs: [ { - internalType: "uint256[]", name: "_ids", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "_items", type: "address[]", + internalType: "address[]", }, ], - name: "areAllInSomeOfLists", outputs: [ { - internalType: "bool", name: "areAllInSomeOfLists_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "areAllNotInAnyOfLists", inputs: [ { - internalType: "uint256[]", name: "_ids", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "_items", type: "address[]", + internalType: "address[]", }, ], - name: "areAllNotInAnyOfLists", outputs: [ { - internalType: "bool", name: "areAllNotInAnyOfLists_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "areAllNotInList", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "address[]", name: "_items", type: "address[]", + internalType: "address[]", }, ], - name: "areAllNotInList", outputs: [ { - internalType: "bool", name: "areAllNotInList_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "attestLists", inputs: [ { - internalType: "uint256[]", name: "_ids", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "string[]", name: "_descriptions", type: "string[]", + internalType: "string[]", }, ], - name: "attestLists", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "createList", inputs: [ { - internalType: "address", name: "_owner", type: "address", + internalType: "address", }, { - internalType: "enum IAddressListRegistry.UpdateType", name: "_updateType", type: "uint8", + internalType: "enum IAddressListRegistry.UpdateType", }, { - internalType: "address[]", name: "_initialItems", type: "address[]", + internalType: "address[]", }, ], - name: "createList", outputs: [ { - internalType: "uint256", name: "id_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getDispatcher", + inputs: [], outputs: [ { - internalType: "address", name: "dispatcher_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getListCount", + inputs: [], outputs: [ { - internalType: "uint256", name: "count_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getListOwner", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, ], - name: "getListOwner", outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getListUpdateType", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, ], - name: "getListUpdateType", outputs: [ { - internalType: "enum IAddressListRegistry.UpdateType", name: "updateType_", type: "uint8", + internalType: "enum IAddressListRegistry.UpdateType", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isInAllLists", inputs: [ { - internalType: "uint256[]", name: "_ids", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address", name: "_item", type: "address", + internalType: "address", }, ], - name: "isInAllLists", outputs: [ { - internalType: "bool", name: "isInAllLists_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isInList", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_item", type: "address", + internalType: "address", }, ], - name: "isInList", outputs: [ { - internalType: "bool", name: "isInList_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isInSomeOfLists", inputs: [ { - internalType: "uint256[]", name: "_ids", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address", name: "_item", type: "address", + internalType: "address", }, ], - name: "isInSomeOfLists", outputs: [ { - internalType: "bool", name: "isInSomeOfLists_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "removeFromList", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "address[]", name: "_items", type: "address[]", + internalType: "address[]", }, ], - name: "removeFromList", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setListOwner", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_nextOwner", type: "address", + internalType: "address", }, ], - name: "setListOwner", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setListUpdateType", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "enum IAddressListRegistry.UpdateType", name: "_nextUpdateType", type: "uint8", + internalType: "enum IAddressListRegistry.UpdateType", }, ], - name: "setListUpdateType", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ItemAddedToList", + inputs: [ + { + name: "id", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "item", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ItemRemovedFromList", + inputs: [ + { + name: "id", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "item", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ListAttested", + inputs: [ + { + name: "id", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "description", + type: "string", + indexed: false, + internalType: "string", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ListCreated", + inputs: [ + { + name: "creator", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "owner", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "id", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "updateType", + type: "uint8", + indexed: false, + internalType: "enum IAddressListRegistry.UpdateType", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ListOwnerSet", + inputs: [ + { + name: "id", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "nextOwner", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ListUpdateTypeSet", + inputs: [ + { + name: "id", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "prevUpdateType", + type: "uint8", + indexed: false, + internalType: "enum IAddressListRegistry.UpdateType", + }, + { + name: "nextUpdateType", + type: "uint8", + indexed: true, + internalType: "enum IAddressListRegistry.UpdateType", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IAllowedAdapterIncomingAssetsPolicy.ts b/packages/abis/src/abis/IAllowedAdapterIncomingAssetsPolicy.ts index ccf2085a..0f73e1d9 100644 --- a/packages/abis/src/abis/IAllowedAdapterIncomingAssetsPolicy.ts +++ b/packages/abis/src/abis/IAllowedAdapterIncomingAssetsPolicy.ts @@ -1,223 +1,223 @@ export const IAllowedAdapterIncomingAssetsPolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressListRegistry", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256[]", - name: "listIds", - type: "uint256[]", }, ], - name: "ListsSetForFund", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "getAddressListRegistry", + inputs: [], outputs: [ { - internalType: "address", name: "addressListRegistry_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getListIdsForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getListIdsForFund", outputs: [ { - internalType: "uint256[]", name: "listIds_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "passesRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address[]", name: "_assets", type: "address[]", + internalType: "address[]", }, ], - name: "passesRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ListsSetForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "listIds", + type: "uint256[]", + indexed: false, + internalType: "uint256[]", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IAllowedAdaptersPerManagerPolicy.ts b/packages/abis/src/abis/IAllowedAdaptersPerManagerPolicy.ts index 28b4835e..01bb0dd9 100644 --- a/packages/abis/src/abis/IAllowedAdaptersPerManagerPolicy.ts +++ b/packages/abis/src/abis/IAllowedAdaptersPerManagerPolicy.ts @@ -1,239 +1,239 @@ export const IAllowedAdaptersPerManagerPolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManager", type: "address", - }, - { internalType: "address", - name: "_addressListRegistry", - type: "address", }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "_addressListRegistry", type: "address", - }, - { - indexed: true, internalType: "address", - name: "user", - type: "address", - }, - { - indexed: false, - internalType: "uint256[]", - name: "listIds", - type: "uint256[]", }, ], - name: "ListsSetForFundAndUser", - type: "event", + stateMutability: "nonpayable", }, { - inputs: [], + type: "function", name: "BYPASS_FLAG", + inputs: [], outputs: [ { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "getListIdsForFundAndUser", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_user", type: "address", + internalType: "address", }, ], - name: "getListIdsForFundAndUser", outputs: [ { - internalType: "uint256[]", name: "listIds_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "passesRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_caller", type: "address", + internalType: "address", }, { - internalType: "address", name: "_adapter", type: "address", + internalType: "address", }, ], - name: "passesRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ListsSetForFundAndUser", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "user", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "listIds", + type: "uint256[]", + indexed: false, + internalType: "uint256[]", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IAllowedAdaptersPolicy.ts b/packages/abis/src/abis/IAllowedAdaptersPolicy.ts index 1c386473..94206285 100644 --- a/packages/abis/src/abis/IAllowedAdaptersPolicy.ts +++ b/packages/abis/src/abis/IAllowedAdaptersPolicy.ts @@ -1,223 +1,223 @@ export const IAllowedAdaptersPolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressListRegistry", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256[]", - name: "listIds", - type: "uint256[]", }, ], - name: "ListsSetForFund", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "getAddressListRegistry", + inputs: [], outputs: [ { - internalType: "address", name: "addressListRegistry_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getListIdsForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getListIdsForFund", outputs: [ { - internalType: "uint256[]", name: "listIds_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "passesRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_adapter", type: "address", + internalType: "address", }, ], - name: "passesRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ListsSetForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "listIds", + type: "uint256[]", + indexed: false, + internalType: "uint256[]", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IAllowedAssetsForRedemptionPolicy.ts b/packages/abis/src/abis/IAllowedAssetsForRedemptionPolicy.ts index 75645c88..2f22e1fd 100644 --- a/packages/abis/src/abis/IAllowedAssetsForRedemptionPolicy.ts +++ b/packages/abis/src/abis/IAllowedAssetsForRedemptionPolicy.ts @@ -1,223 +1,223 @@ export const IAllowedAssetsForRedemptionPolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressListRegistry", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256[]", - name: "listIds", - type: "uint256[]", }, ], - name: "ListsSetForFund", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "getAddressListRegistry", + inputs: [], outputs: [ { - internalType: "address", name: "addressListRegistry_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getListIdsForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getListIdsForFund", outputs: [ { - internalType: "uint256[]", name: "listIds_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "passesRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address[]", name: "_assets", type: "address[]", + internalType: "address[]", }, ], - name: "passesRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ListsSetForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "listIds", + type: "uint256[]", + indexed: false, + internalType: "uint256[]", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IAllowedDepositRecipientsPolicy.ts b/packages/abis/src/abis/IAllowedDepositRecipientsPolicy.ts index 8b81335f..adaa7d0b 100644 --- a/packages/abis/src/abis/IAllowedDepositRecipientsPolicy.ts +++ b/packages/abis/src/abis/IAllowedDepositRecipientsPolicy.ts @@ -1,223 +1,223 @@ export const IAllowedDepositRecipientsPolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressListRegistry", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256[]", - name: "listIds", - type: "uint256[]", }, ], - name: "ListsSetForFund", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "getAddressListRegistry", + inputs: [], outputs: [ { - internalType: "address", name: "addressListRegistry_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getListIdsForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getListIdsForFund", outputs: [ { - internalType: "uint256[]", name: "listIds_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "passesRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_recipient", type: "address", + internalType: "address", }, ], - name: "passesRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ListsSetForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "listIds", + type: "uint256[]", + indexed: false, + internalType: "uint256[]", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IAllowedExternalPositionTypesPerManagerPolicy.ts b/packages/abis/src/abis/IAllowedExternalPositionTypesPerManagerPolicy.ts index 55c66393..132217d5 100644 --- a/packages/abis/src/abis/IAllowedExternalPositionTypesPerManagerPolicy.ts +++ b/packages/abis/src/abis/IAllowedExternalPositionTypesPerManagerPolicy.ts @@ -1,239 +1,239 @@ export const IAllowedExternalPositionTypesPerManagerPolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManager", type: "address", - }, - { internalType: "address", - name: "_uintListRegistry", - type: "address", }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "_uintListRegistry", type: "address", - }, - { - indexed: true, internalType: "address", - name: "user", - type: "address", - }, - { - indexed: false, - internalType: "uint256[]", - name: "listIds", - type: "uint256[]", }, ], - name: "ListsSetForFundAndUser", - type: "event", + stateMutability: "nonpayable", }, { - inputs: [], + type: "function", name: "BYPASS_FLAG", + inputs: [], outputs: [ { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "getListIdsForFundAndUser", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_user", type: "address", + internalType: "address", }, ], - name: "getListIdsForFundAndUser", outputs: [ { - internalType: "uint256[]", name: "listIds_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "passesRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_caller", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_externalPositionTypeId", type: "uint256", + internalType: "uint256", }, ], - name: "passesRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "_hook", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ListsSetForFundAndUser", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "user", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "listIds", + type: "uint256[]", + indexed: false, + internalType: "uint256[]", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IAllowedExternalPositionTypesPolicy.ts b/packages/abis/src/abis/IAllowedExternalPositionTypesPolicy.ts index 6ef1a13f..14700a8b 100644 --- a/packages/abis/src/abis/IAllowedExternalPositionTypesPolicy.ts +++ b/packages/abis/src/abis/IAllowedExternalPositionTypesPolicy.ts @@ -1,186 +1,186 @@ export const IAllowedExternalPositionTypesPolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManager", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "uint256", - name: "externalPositionTypeId", - type: "uint256", }, ], - name: "AllowedExternalPositionTypeAddedForFund", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "externalPositionTypeIsAllowedForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_externalPositionTypeId", type: "uint256", + internalType: "uint256", }, ], - name: "externalPositionTypeIsAllowedForFund", outputs: [ { - internalType: "bool", name: "isAllowed_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "_hook", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "AllowedExternalPositionTypeAddedForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "externalPositionTypeId", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IAllowedSharesTransferRecipientsPolicy.ts b/packages/abis/src/abis/IAllowedSharesTransferRecipientsPolicy.ts index 99ac12b9..46098c87 100644 --- a/packages/abis/src/abis/IAllowedSharesTransferRecipientsPolicy.ts +++ b/packages/abis/src/abis/IAllowedSharesTransferRecipientsPolicy.ts @@ -1,223 +1,223 @@ export const IAllowedSharesTransferRecipientsPolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressListRegistry", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256[]", - name: "listIds", - type: "uint256[]", }, ], - name: "ListsSetForFund", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "getAddressListRegistry", + inputs: [], outputs: [ { - internalType: "address", name: "addressListRegistry_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getListIdsForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getListIdsForFund", outputs: [ { - internalType: "uint256[]", name: "listIds_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "passesRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_recipient", type: "address", + internalType: "address", }, ], - name: "passesRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ListsSetForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "listIds", + type: "uint256[]", + indexed: false, + internalType: "uint256[]", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IArbitraryLoanPositionLib.ts b/packages/abis/src/abis/IArbitraryLoanPositionLib.ts index 0a7d3b3f..80719ca8 100644 --- a/packages/abis/src/abis/IArbitraryLoanPositionLib.ts +++ b/packages/abis/src/abis/IArbitraryLoanPositionLib.ts @@ -1,268 +1,268 @@ export const IArbitraryLoanPositionLib = [ { - inputs: [ - { - internalType: "address", - name: "_wrappedNativeAsset", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "borrowableAmount", - type: "uint256", - }, - ], - name: "BorrowableAmountUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [], - name: "LoanClosed", - type: "event", - }, - { - anonymous: false, inputs: [ { - indexed: true, - internalType: "address", - name: "borrower", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "loanAsset", + name: "_wrappedNativeAsset", type: "address", - }, - { - indexed: true, internalType: "address", - name: "accountingModule", - type: "address", - }, - { - indexed: false, - internalType: "bytes32", - name: "description", - type: "bytes32", }, ], - name: "LoanConfigured", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "totalBorrowed", - type: "uint256", - }, - ], - name: "TotalBorrowedUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "totalRepaid", - type: "uint256", - }, - ], - name: "TotalRepaidUpdated", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "borrow", inputs: [ { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "borrow", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getAccountingModule", + inputs: [], outputs: [ { - internalType: "address", name: "accountingModule_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getBorrowableAmount", + inputs: [], outputs: [ { - internalType: "uint256", name: "borrowableAmount_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getBorrower", + inputs: [], outputs: [ { - internalType: "address", name: "borrower_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getLoanAsset", + inputs: [], outputs: [ { - internalType: "address", name: "asset_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getTotalBorrowed", + inputs: [], outputs: [ { - internalType: "uint256", name: "totalBorrowed_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getTotalRepaid", + inputs: [], outputs: [ { - internalType: "uint256", name: "totalRepaid_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "loanIsClosed", + inputs: [], outputs: [ { - internalType: "bool", name: "isClosed_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "repay", inputs: [ { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "repay", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "BorrowableAmountUpdated", + inputs: [ + { + name: "borrowableAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "LoanClosed", + inputs: [], + anonymous: false, + }, + { + type: "event", + name: "LoanConfigured", + inputs: [ + { + name: "borrower", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "loanAsset", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "accountingModule", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "description", + type: "bytes32", + indexed: false, + internalType: "bytes32", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "TotalBorrowedUpdated", + inputs: [ + { + name: "totalBorrowed", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "TotalRepaidUpdated", + inputs: [ + { + name: "totalRepaid", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IArbitraryLoanPositionParser.ts b/packages/abis/src/abis/IArbitraryLoanPositionParser.ts index 4e330974..ba0515cf 100644 --- a/packages/abis/src/abis/IArbitraryLoanPositionParser.ts +++ b/packages/abis/src/abis/IArbitraryLoanPositionParser.ts @@ -1,65 +1,65 @@ export const IArbitraryLoanPositionParser = [ { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "_externalPosition", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_encodedActionArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "address[]", name: "assetsToTransfer_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amountsToTransfer_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "assetsToReceive_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseInitArgs", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "parseInitArgs", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IArbitraryLoanTotalNominalDeltaOracleModule.ts b/packages/abis/src/abis/IArbitraryLoanTotalNominalDeltaOracleModule.ts index 9e660bb3..c15d86f3 100644 --- a/packages/abis/src/abis/IArbitraryLoanTotalNominalDeltaOracleModule.ts +++ b/packages/abis/src/abis/IArbitraryLoanTotalNominalDeltaOracleModule.ts @@ -1,212 +1,212 @@ export const IArbitraryLoanTotalNominalDeltaOracleModule = [ { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "loan", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "oracle", - type: "address", - }, - { - indexed: false, - internalType: "uint32", - name: "stalenessThreshold", - type: "uint32", - }, - ], - name: "OracleSetForLoan", - type: "event", - }, - { + type: "function", + name: "calcFaceValue", inputs: [ { - internalType: "uint256", name: "_totalBorrowed", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_totalRepaid", type: "uint256", + internalType: "uint256", }, ], - name: "calcFaceValue", outputs: [ { - internalType: "uint256", name: "faceValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "configure", inputs: [ { - internalType: "bytes", name: "_configData", type: "bytes", + internalType: "bytes", }, ], - name: "configure", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getOracleInfoForLoan", inputs: [ { - internalType: "address", name: "_loan", type: "address", + internalType: "address", }, ], - name: "getOracleInfoForLoan", outputs: [ { + name: "oracleInfo_", + type: "tuple", + internalType: "struct ArbitraryLoanTotalNominalDeltaOracleModule.OracleInfo", components: [ { - internalType: "address", name: "oracle", type: "address", + internalType: "address", }, { - internalType: "uint32", name: "stalenessThreshold", type: "uint32", + internalType: "uint32", }, ], - internalType: "struct ArbitraryLoanTotalNominalDeltaOracleModule.OracleInfo", - name: "oracleInfo_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "preBorrow", inputs: [ { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "preBorrow", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "preClose", inputs: [ { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "preClose", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "preReconcile", inputs: [ { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_repayableLoanAssetAmount", type: "uint256", + internalType: "uint256", }, { - internalType: "address[]", name: "", type: "address[]", + internalType: "address[]", }, ], - name: "preReconcile", outputs: [ { - internalType: "uint256", name: "repayAmount_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "preRepay", inputs: [ { - internalType: "uint256", name: "_totalBorrowed", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_prevTotalRepaid", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_repayAmountInput", type: "uint256", + internalType: "uint256", }, ], - name: "preRepay", outputs: [ { - internalType: "uint256", name: "repayAmount_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "receiveCallFromLoan", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromLoan", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "OracleSetForLoan", + inputs: [ + { + name: "loan", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "oracle", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "stalenessThreshold", + type: "uint32", + indexed: false, + internalType: "uint32", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IArbitraryTokenPhasedSharesWrapperFactory.ts b/packages/abis/src/abis/IArbitraryTokenPhasedSharesWrapperFactory.ts index 3747a231..38d5da45 100644 --- a/packages/abis/src/abis/IArbitraryTokenPhasedSharesWrapperFactory.ts +++ b/packages/abis/src/abis/IArbitraryTokenPhasedSharesWrapperFactory.ts @@ -1,111 +1,111 @@ export const IArbitraryTokenPhasedSharesWrapperFactory = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_dispatcher", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressListRegistry", type: "address", + internalType: "address", }, { - internalType: "address", name: "_fundDeployerV4", type: "address", + internalType: "address", }, { - internalType: "address", name: "_protocolFeeRecipient", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_protocolFeeBps", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "caller", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "proxy", - type: "address", - }, - ], - name: "ProxyDeployed", - type: "event", }, { + type: "function", + name: "deploy", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_depositToken", type: "address", + internalType: "address", }, { - internalType: "uint128", name: "_allowedDepositorListId", type: "uint128", + internalType: "uint128", }, { - internalType: "bool", name: "_transfersAllowed", type: "bool", + internalType: "bool", }, { - internalType: "uint128", name: "_totalDepositMax", type: "uint128", + internalType: "uint128", }, { - internalType: "address", name: "_feeRecipient", type: "address", + internalType: "address", }, { - internalType: "uint16", name: "_feeBps", type: "uint16", + internalType: "uint16", }, { - internalType: "bool", name: "_feeExcludesDepositTokenPrincipal", type: "bool", + internalType: "bool", }, { - internalType: "address", name: "_manager", type: "address", + internalType: "address", }, ], - name: "deploy", outputs: [ { - internalType: "address", name: "wrapperProxy_", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ProxyDeployed", + inputs: [ + { + name: "caller", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "proxy", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IArbitraryTokenPhasedSharesWrapperLib.ts b/packages/abis/src/abis/IArbitraryTokenPhasedSharesWrapperLib.ts index 6bc0638e..514233f3 100644 --- a/packages/abis/src/abis/IArbitraryTokenPhasedSharesWrapperLib.ts +++ b/packages/abis/src/abis/IArbitraryTokenPhasedSharesWrapperLib.ts @@ -1,807 +1,807 @@ export const IArbitraryTokenPhasedSharesWrapperLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_dispatcher", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressListRegistry", type: "address", + internalType: "address", }, { - internalType: "address", name: "_fundDeployerV4", type: "address", + internalType: "address", }, { - internalType: "address", name: "_protocolFeeRecipient", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_protocolFeeBps", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_initializer", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "listId", - type: "uint256", - }, - ], - name: "AllowedDepositorListIdSet", - type: "event", }, { - anonymous: false, + type: "function", + name: "allowance", inputs: [ { - indexed: true, - internalType: "address", name: "owner", type: "address", + internalType: "address", }, { - indexed: true, - internalType: "address", name: "spender", type: "address", + internalType: "address", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "value", + name: "", type: "uint256", + internalType: "uint256", }, ], - name: "Approval", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "approve", inputs: [ { - indexed: true, - internalType: "address", - name: "user", + name: "spender", type: "address", + internalType: "address", }, { - indexed: false, - internalType: "uint256", name: "amount", type: "uint256", + internalType: "uint256", }, ], - name: "Deposited", - type: "event", + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "balanceOf", inputs: [ { - indexed: false, - internalType: "address", - name: "token", + name: "account", type: "address", + internalType: "address", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "amount", + name: "", type: "uint256", + internalType: "uint256", }, ], - name: "FeePaid", - type: "event", + stateMutability: "view", }, { - anonymous: false, - inputs: [ + type: "function", + name: "decimals", + inputs: [], + outputs: [ { - indexed: false, - internalType: "address", - name: "vaultProxy", - type: "address", + name: "decimals_", + type: "uint8", + internalType: "uint8", }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "decreaseAllowance", + inputs: [ { - indexed: false, - internalType: "address", - name: "depositToken", + name: "spender", type: "address", - }, - { - indexed: false, - internalType: "bool", - name: "transfersAllowed", - type: "bool", - }, - { - indexed: false, internalType: "address", - name: "feeRecipient", - type: "address", }, { - indexed: false, - internalType: "uint16", - name: "feeBps", - type: "uint16", - }, - { - indexed: false, - internalType: "bool", - name: "feeExcludesDepositTokenPrincipal", - type: "bool", + name: "subtractedValue", + type: "uint256", + internalType: "uint256", }, ], - name: "Initialized", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: false, - internalType: "address", - name: "manager", - type: "address", + name: "", + type: "bool", + internalType: "bool", }, ], - name: "ManagerSet", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "deposit", inputs: [ { - indexed: false, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", + name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "ProtocolFeePaid", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "enterLockedState", inputs: [], - name: "ProtocolFeeStarted", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "enterRedeemState", inputs: [ { - indexed: false, - internalType: "enum ArbitraryTokenPhasedSharesWrapperLib.State", - name: "state", - type: "uint8", + name: "_untrackedAssetsToClaim", + type: "address[]", + internalType: "address[]", }, ], - name: "StateSet", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, - inputs: [ + type: "function", + name: "getAllowedDepositorListId", + inputs: [], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "totalDepositMax", + name: "allowedDepositorListId_", type: "uint256", + internalType: "uint256", }, ], - name: "TotalDepositMaxSet", - type: "event", + stateMutability: "view", }, { - anonymous: false, - inputs: [ + type: "function", + name: "getDepositToken", + inputs: [], + outputs: [ { - indexed: true, - internalType: "address", - name: "from", + name: "depositToken_", type: "address", - }, - { - indexed: true, internalType: "address", - name: "to", - type: "address", }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getFeeBps", + inputs: [], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "value", + name: "feeBps_", type: "uint256", + internalType: "uint256", }, ], - name: "Transfer", - type: "event", + stateMutability: "view", }, { - anonymous: false, - inputs: [ + type: "function", + name: "getFeeExcludesDepositTokenPrincipal", + inputs: [], + outputs: [ { - indexed: true, - internalType: "address", - name: "user", - type: "address", + name: "excludesPrincipal_", + type: "bool", + internalType: "bool", }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getFeeRecipient", + inputs: [], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "address[]", - name: "claimedAssets", - type: "address[]", - }, - { - indexed: false, - internalType: "uint256[]", - name: "claimedAssetAmounts", - type: "uint256[]", + name: "feeRecipient_", + type: "address", + internalType: "address", }, ], - name: "Withdrawn", - type: "event", + stateMutability: "view", }, { - inputs: [ + type: "function", + name: "getManager", + inputs: [], + outputs: [ { - internalType: "address", - name: "owner", + name: "manager_", type: "address", - }, - { internalType: "address", - name: "spender", - type: "address", }, ], - name: "allowance", + stateMutability: "view", + }, + { + type: "function", + name: "getProtocolFeeStart", + inputs: [], outputs: [ { - internalType: "uint256", - name: "", + name: "protocolFeeStart_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, + type: "function", + name: "getRedeemedAssets", + inputs: [], + outputs: [ { - internalType: "uint256", - name: "amount", - type: "uint256", + name: "redeemedAssets_", + type: "address[]", + internalType: "address[]", }, ], - name: "approve", + stateMutability: "view", + }, + { + type: "function", + name: "getState", + inputs: [], outputs: [ { - internalType: "bool", - name: "", - type: "bool", + name: "state_", + type: "uint8", + internalType: "enum ArbitraryTokenPhasedSharesWrapperLib.State", }, ], - stateMutability: "nonpayable", - type: "function", + stateMutability: "view", }, { - inputs: [ + type: "function", + name: "getTotalDepositMax", + inputs: [], + outputs: [ { - internalType: "address", - name: "account", - type: "address", + name: "totalDepositMax_", + type: "uint256", + internalType: "uint256", }, ], - name: "balanceOf", + stateMutability: "view", + }, + { + type: "function", + name: "getTransfersAllowed", + inputs: [], outputs: [ { - internalType: "uint256", - name: "", - type: "uint256", + name: "transfersAllowed_", + type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getVaultProxy", inputs: [], - name: "decimals", outputs: [ { - internalType: "uint8", - name: "decimals_", - type: "uint8", + name: "vaultProxy_", + type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "increaseAllowance", inputs: [ { - internalType: "address", name: "spender", type: "address", + internalType: "address", }, { - internalType: "uint256", - name: "subtractedValue", + name: "addedValue", type: "uint256", + internalType: "uint256", }, ], - name: "decreaseAllowance", outputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "uint256", - name: "_amount", - type: "uint256", + name: "_vaultProxy", + type: "address", + internalType: "address", + }, + { + name: "_depositToken", + type: "address", + internalType: "address", + }, + { + name: "_allowedDepositorListId", + type: "uint128", + internalType: "uint128", + }, + { + name: "_transfersAllowed", + type: "bool", + internalType: "bool", + }, + { + name: "_totalDepositMax", + type: "uint128", + internalType: "uint128", + }, + { + name: "_feeRecipient", + type: "address", + internalType: "address", + }, + { + name: "_feeBps", + type: "uint16", + internalType: "uint16", + }, + { + name: "_feeExcludesDepositTokenPrincipal", + type: "bool", + internalType: "bool", + }, + { + name: "_manager", + type: "address", + internalType: "address", }, ], - name: "deposit", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], - name: "enterLockedState", - outputs: [], - stateMutability: "nonpayable", type: "function", + name: "name", + inputs: [], + outputs: [ + { + name: "name_", + type: "string", + internalType: "string", + }, + ], + stateMutability: "view", }, { + type: "function", + name: "setAllowedDepositorListId", inputs: [ { - internalType: "address[]", - name: "_untrackedAssetsToClaim", - type: "address[]", + name: "_nextAllowedDepositorListId", + type: "uint128", + internalType: "uint128", }, ], - name: "enterRedeemState", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], - name: "getAllowedDepositorListId", - outputs: [ + type: "function", + name: "setManager", + inputs: [ { - internalType: "uint256", - name: "allowedDepositorListId_", - type: "uint256", + name: "_nextManager", + type: "address", + internalType: "address", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { - inputs: [], - name: "getDepositToken", - outputs: [ + type: "function", + name: "setTotalDepositMax", + inputs: [ { - internalType: "address", - name: "depositToken_", - type: "address", + name: "_nextTotalDepositMax", + type: "uint128", + internalType: "uint128", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { + type: "function", + name: "symbol", inputs: [], - name: "getFeeBps", outputs: [ { - internalType: "uint256", - name: "feeBps_", - type: "uint256", + name: "symbol_", + type: "string", + internalType: "string", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "totalSupply", inputs: [], - name: "getFeeExcludesDepositTokenPrincipal", outputs: [ { - internalType: "bool", - name: "excludesPrincipal_", - type: "bool", + name: "", + type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], - name: "getFeeRecipient", - outputs: [ + type: "function", + name: "transfer", + inputs: [ { - internalType: "address", - name: "feeRecipient_", + name: "_recipient", type: "address", + internalType: "address", + }, + { + name: "_amount", + type: "uint256", + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getManager", outputs: [ { - internalType: "address", - name: "manager_", - type: "address", + name: "success_", + type: "bool", + internalType: "bool", }, ], - stateMutability: "view", - type: "function", + stateMutability: "nonpayable", }, { - inputs: [], - name: "getProtocolFeeStart", - outputs: [ + type: "function", + name: "transferFrom", + inputs: [ { - internalType: "uint256", - name: "protocolFeeStart_", + name: "_sender", + type: "address", + internalType: "address", + }, + { + name: "_recipient", + type: "address", + internalType: "address", + }, + { + name: "_amount", type: "uint256", + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getRedeemedAssets", outputs: [ { - internalType: "address[]", - name: "redeemedAssets_", - type: "address[]", + name: "success_", + type: "bool", + internalType: "bool", }, ], - stateMutability: "view", - type: "function", + stateMutability: "nonpayable", }, { - inputs: [], - name: "getState", - outputs: [ + type: "function", + name: "withdraw", + inputs: [ { - internalType: "enum ArbitraryTokenPhasedSharesWrapperLib.State", - name: "state_", - type: "uint8", + name: "_amount", + type: "uint256", + internalType: "uint256", + }, + { + name: "_additionalAssets", + type: "address[]", + internalType: "address[]", }, ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getTotalDepositMax", outputs: [ { - internalType: "uint256", - name: "totalDepositMax_", - type: "uint256", + name: "claimedAssets_", + type: "address[]", + internalType: "address[]", + }, + { + name: "claimedAssetAmounts_", + type: "uint256[]", + internalType: "uint256[]", }, ], - stateMutability: "view", - type: "function", + stateMutability: "nonpayable", }, { - inputs: [], - name: "getTransfersAllowed", - outputs: [ + type: "event", + name: "AllowedDepositorListIdSet", + inputs: [ { - internalType: "bool", - name: "transfersAllowed_", - type: "bool", + name: "listId", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { - inputs: [], - name: "getVaultProxy", - outputs: [ + type: "event", + name: "Approval", + inputs: [ { + name: "owner", + type: "address", + indexed: true, internalType: "address", - name: "vaultProxy_", + }, + { + name: "spender", type: "address", + indexed: true, + internalType: "address", + }, + { + name: "value", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { + type: "event", + name: "Deposited", inputs: [ { - internalType: "address", - name: "spender", + name: "user", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "uint256", - name: "addedValue", + name: "amount", type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "increaseAllowance", - outputs: [ + anonymous: false, + }, + { + type: "event", + name: "FeePaid", + inputs: [ { - internalType: "bool", - name: "", - type: "bool", + name: "token", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "Initialized", inputs: [ { - internalType: "address", - name: "_vaultProxy", + name: "vaultProxy", type: "address", - }, - { + indexed: false, internalType: "address", - name: "_depositToken", - type: "address", }, { - internalType: "uint128", - name: "_allowedDepositorListId", - type: "uint128", + name: "depositToken", + type: "address", + indexed: false, + internalType: "address", }, { - internalType: "bool", - name: "_transfersAllowed", + name: "transfersAllowed", type: "bool", + indexed: false, + internalType: "bool", }, { - internalType: "uint128", - name: "_totalDepositMax", - type: "uint128", - }, - { - internalType: "address", - name: "_feeRecipient", + name: "feeRecipient", type: "address", + indexed: false, + internalType: "address", }, { - internalType: "uint16", - name: "_feeBps", + name: "feeBps", type: "uint16", + indexed: false, + internalType: "uint16", }, { - internalType: "bool", - name: "_feeExcludesDepositTokenPrincipal", + name: "feeExcludesDepositTokenPrincipal", type: "bool", - }, - { - internalType: "address", - name: "_manager", - type: "address", - }, - ], - name: "init", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "name_", - type: "string", + indexed: false, + internalType: "bool", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { + type: "event", + name: "ManagerSet", inputs: [ { - internalType: "uint128", - name: "_nextAllowedDepositorListId", - type: "uint128", + name: "manager", + type: "address", + indexed: false, + internalType: "address", }, ], - name: "setAllowedDepositorListId", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "ProtocolFeePaid", inputs: [ { - internalType: "address", - name: "_nextManager", + name: "token", type: "address", + indexed: false, + internalType: "address", }, - ], - name: "setManager", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ { - internalType: "uint128", - name: "_nextTotalDepositMax", - type: "uint128", + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "setTotalDepositMax", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "ProtocolFeeStarted", inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "symbol_", - type: "string", - }, - ], - stateMutability: "view", - type: "function", + anonymous: false, }, { - inputs: [], - name: "totalSupply", - outputs: [ + type: "event", + name: "StateSet", + inputs: [ { - internalType: "uint256", - name: "", - type: "uint256", + name: "state", + type: "uint8", + indexed: false, + internalType: "enum ArbitraryTokenPhasedSharesWrapperLib.State", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { + type: "event", + name: "TotalDepositMaxSet", inputs: [ { - internalType: "address", - name: "_recipient", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", + name: "totalDepositMax", type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "success_", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "Transfer", inputs: [ { - internalType: "address", - name: "_sender", + name: "from", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "address", - name: "_recipient", + name: "to", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "uint256", - name: "_amount", + name: "value", type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "success_", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "Withdrawn", inputs: [ { - internalType: "uint256", - name: "_amount", - type: "uint256", + name: "user", + type: "address", + indexed: true, + internalType: "address", }, { - internalType: "address[]", - name: "_additionalAssets", - type: "address[]", + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", }, - ], - name: "withdraw", - outputs: [ { - internalType: "address[]", - name: "claimedAssets_", + name: "claimedAssets", type: "address[]", + indexed: false, + internalType: "address[]", }, { - internalType: "uint256[]", - name: "claimedAssetAmounts_", + name: "claimedAssetAmounts", type: "uint256[]", + indexed: false, + internalType: "uint256[]", }, ], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IArbitraryTokenPhasedSharesWrapperProxy.ts b/packages/abis/src/abis/IArbitraryTokenPhasedSharesWrapperProxy.ts index 03f75b0d..88d72c59 100644 --- a/packages/abis/src/abis/IArbitraryTokenPhasedSharesWrapperProxy.ts +++ b/packages/abis/src/abis/IArbitraryTokenPhasedSharesWrapperProxy.ts @@ -1,22 +1,22 @@ export const IArbitraryTokenPhasedSharesWrapperProxy = [ { + type: "constructor", inputs: [ { - internalType: "bytes", name: "_constructData", type: "bytes", + internalType: "bytes", }, { - internalType: "address", name: "_lib", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - stateMutability: "payable", type: "fallback", + stateMutability: "payable", }, ] as const; diff --git a/packages/abis/src/abis/IArbitraryValueOracle.ts b/packages/abis/src/abis/IArbitraryValueOracle.ts index cb276070..2deb5db3 100644 --- a/packages/abis/src/abis/IArbitraryValueOracle.ts +++ b/packages/abis/src/abis/IArbitraryValueOracle.ts @@ -1,46 +1,46 @@ export const IArbitraryValueOracle = [ { - inputs: [], + type: "function", name: "getLastUpdated", + inputs: [], outputs: [ { - internalType: "uint256", name: "lastUpdated_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getValue", + inputs: [], outputs: [ { - internalType: "int256", name: "value_", type: "int256", + internalType: "int256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getValueWithTimestamp", + inputs: [], outputs: [ { - internalType: "int256", name: "value_", type: "int256", + internalType: "int256", }, { - internalType: "uint256", name: "lastUpdated_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IArrakisV2Adapter.ts b/packages/abis/src/abis/IArrakisV2Adapter.ts index 25ed4f82..f4e2d459 100644 --- a/packages/abis/src/abis/IArrakisV2Adapter.ts +++ b/packages/abis/src/abis/IArrakisV2Adapter.ts @@ -1,238 +1,238 @@ export const IArrakisV2Adapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "lend", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "lend", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "redeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "redeem", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IArrakisV2PriceFeed.ts b/packages/abis/src/abis/IArrakisV2PriceFeed.ts index cf1f2723..69a3422c 100644 --- a/packages/abis/src/abis/IArrakisV2PriceFeed.ts +++ b/packages/abis/src/abis/IArrakisV2PriceFeed.ts @@ -1,71 +1,71 @@ export const IArrakisV2PriceFeed = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_uniswapV3FactoryAddress", type: "address", + internalType: "address", }, { - internalType: "address", name: "_valueInterpreterAddress", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "T", - type: "error", }, { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", + }, + { + type: "error", + name: "T", + inputs: [], }, ] as const; diff --git a/packages/abis/src/abis/IAssetValueCalculator.ts b/packages/abis/src/abis/IAssetValueCalculator.ts index db20fb8e..67d6bddb 100644 --- a/packages/abis/src/abis/IAssetValueCalculator.ts +++ b/packages/abis/src/abis/IAssetValueCalculator.ts @@ -1,60 +1,60 @@ export const IAssetValueCalculator = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_valueInterpreter", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "calcNormalizedAssetValue", inputs: [ { - internalType: "address", name: "_baseAsset", type: "address", + internalType: "address", }, { - internalType: "address", name: "_quoteAsset", type: "address", + internalType: "address", }, ], - name: "calcNormalizedAssetValue", outputs: [ { - internalType: "uint256", name: "timestamp_", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "value_", type: "uint256", + internalType: "uint256", }, { - internalType: "bool", name: "valueIsValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getValueInterpreter", + inputs: [], outputs: [ { - internalType: "address", name: "valueInterpreter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IAuraBalancerV2LpStakingAdapter.ts b/packages/abis/src/abis/IAuraBalancerV2LpStakingAdapter.ts index 5c9b2351..261c3c37 100644 --- a/packages/abis/src/abis/IAuraBalancerV2LpStakingAdapter.ts +++ b/packages/abis/src/abis/IAuraBalancerV2LpStakingAdapter.ts @@ -1,340 +1,340 @@ export const IAuraBalancerV2LpStakingAdapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_balancerVault", type: "address", + internalType: "address", }, { - internalType: "address", name: "_stakingWrapperFactory", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "claimRewards", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "claimRewards", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "lendAndStake", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "lendAndStake", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "stake", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "stake", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "takeOrder", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "takeOrder", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "unstake", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "unstake", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "unstakeAndRedeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "unstakeAndRedeem", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IAuraBalancerV2LpStakingWrapperFactory.ts b/packages/abis/src/abis/IAuraBalancerV2LpStakingWrapperFactory.ts index c70b5f62..3d043412 100644 --- a/packages/abis/src/abis/IAuraBalancerV2LpStakingWrapperFactory.ts +++ b/packages/abis/src/abis/IAuraBalancerV2LpStakingWrapperFactory.ts @@ -1,191 +1,191 @@ export const IAuraBalancerV2LpStakingWrapperFactory = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_dispatcher", type: "address", - }, - { internalType: "address", - name: "_implementation", - type: "address", }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ { - indexed: false, - internalType: "address", - name: "implementation", - type: "address", - }, - ], - name: "ImplementationSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "proxy", - type: "address", - }, - ], - name: "ProxyDeployed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "pid", - type: "uint256", - }, - { - indexed: false, - internalType: "address", - name: "wrapperProxy", + name: "_implementation", type: "address", - }, - { - indexed: false, internalType: "address", - name: "curveLpToken", - type: "address", }, ], - name: "WrapperDeployed", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "deploy", inputs: [ { - internalType: "uint256", name: "_pid", type: "uint256", + internalType: "uint256", }, ], - name: "deploy", outputs: [ { - internalType: "address", name: "wrapperProxy_", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getCurveLpTokenForWrapper", inputs: [ { - internalType: "address", name: "_wrapper", type: "address", + internalType: "address", }, ], - name: "getCurveLpTokenForWrapper", outputs: [ { - internalType: "address", name: "lpToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getWrapperForConvexPool", inputs: [ { - internalType: "uint256", name: "_pid", type: "uint256", + internalType: "uint256", }, ], - name: "getWrapperForConvexPool", outputs: [ { - internalType: "address", name: "wrapper_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "implementation", + inputs: [], outputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "pauseWrappers", inputs: [ { - internalType: "address[]", name: "_wrappers", type: "address[]", + internalType: "address[]", }, ], - name: "pauseWrappers", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setImplementation", inputs: [ { - internalType: "address", name: "_nextImplementation", type: "address", + internalType: "address", }, ], - name: "setImplementation", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "unpauseWrappers", inputs: [ { - internalType: "address[]", name: "_wrappers", type: "address[]", + internalType: "address[]", }, ], - name: "unpauseWrappers", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ImplementationSet", + inputs: [ + { + name: "implementation", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ProxyDeployed", + inputs: [ + { + name: "proxy", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "WrapperDeployed", + inputs: [ + { + name: "pid", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "wrapperProxy", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "curveLpToken", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IAuraBalancerV2LpStakingWrapperPriceFeed.ts b/packages/abis/src/abis/IAuraBalancerV2LpStakingWrapperPriceFeed.ts index c9971578..891294e6 100644 --- a/packages/abis/src/abis/IAuraBalancerV2LpStakingWrapperPriceFeed.ts +++ b/packages/abis/src/abis/IAuraBalancerV2LpStakingWrapperPriceFeed.ts @@ -1,61 +1,61 @@ export const IAuraBalancerV2LpStakingWrapperPriceFeed = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_wrapperFactory", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IBalancerV2GaugeTokenPriceFeed.ts b/packages/abis/src/abis/IBalancerV2GaugeTokenPriceFeed.ts index ac91e46f..d3a3a1fe 100644 --- a/packages/abis/src/abis/IBalancerV2GaugeTokenPriceFeed.ts +++ b/packages/abis/src/abis/IBalancerV2GaugeTokenPriceFeed.ts @@ -1,50 +1,50 @@ export const IBalancerV2GaugeTokenPriceFeed = [ { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IBalancerV2LiquidityAdapter.ts b/packages/abis/src/abis/IBalancerV2LiquidityAdapter.ts index 05b8bc16..81411338 100644 --- a/packages/abis/src/abis/IBalancerV2LiquidityAdapter.ts +++ b/packages/abis/src/abis/IBalancerV2LiquidityAdapter.ts @@ -1,417 +1,417 @@ export const IBalancerV2LiquidityAdapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_balancerVault", type: "address", + internalType: "address", }, { - internalType: "address", name: "_balancerMinter", type: "address", + internalType: "address", }, { - internalType: "address", name: "_balToken", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "claimRewards", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "claimRewards", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getCurveGaugeV2RewardsHandlerCrvToken", + inputs: [], outputs: [ { - internalType: "address", name: "crvToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getCurveGaugeV2RewardsHandlerMinter", + inputs: [], outputs: [ { - internalType: "address", name: "minter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "lend", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "lend", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "lendAndStake", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "lendAndStake", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "redeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "redeem", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "stake", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "stake", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "takeOrder", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "takeOrder", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "unstake", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "unstake", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "unstakeAndRedeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "unstakeAndRedeem", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IBalancerV2StablePoolPriceFeed.ts b/packages/abis/src/abis/IBalancerV2StablePoolPriceFeed.ts index c57e88e0..6824ec10 100644 --- a/packages/abis/src/abis/IBalancerV2StablePoolPriceFeed.ts +++ b/packages/abis/src/abis/IBalancerV2StablePoolPriceFeed.ts @@ -1,256 +1,256 @@ export const IBalancerV2StablePoolPriceFeed = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_fundDeployer", type: "address", + internalType: "address", }, { - internalType: "address", name: "_balancerVault", type: "address", + internalType: "address", }, { - internalType: "address[]", name: "_poolFactories", type: "address[]", + internalType: "address[]", }, ], stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "pool", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "invariantProxyAsset", - type: "address", - }, - ], - name: "PoolAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "poolFactory", - type: "address", - }, - ], - name: "PoolFactoryAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "poolFactory", - type: "address", - }, - ], - name: "PoolFactoryRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "pool", - type: "address", - }, - ], - name: "PoolRemoved", - type: "event", }, { + type: "function", + name: "addPoolFactories", inputs: [ { - internalType: "address[]", name: "_poolFactories", type: "address[]", + internalType: "address[]", }, ], - name: "addPoolFactories", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addPools", inputs: [ { - internalType: "address[]", name: "_pools", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_invariantProxyAssets", type: "address[]", + internalType: "address[]", }, ], - name: "addPools", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPoolFactories", + inputs: [], outputs: [ { - internalType: "address[]", name: "factories_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getPoolInfo", inputs: [ { - internalType: "address", name: "_pool", type: "address", + internalType: "address", }, ], - name: "getPoolInfo", outputs: [ { + name: "poolInfo_", + type: "tuple", + internalType: "struct BalancerV2StablePoolPriceFeed.PoolInfo", components: [ { - internalType: "address", name: "invariantProxyAsset", type: "address", + internalType: "address", }, { - internalType: "uint8", name: "invariantProxyAssetDecimals", type: "uint8", + internalType: "uint8", }, ], - internalType: "struct BalancerV2StablePoolPriceFeed.PoolInfo", - name: "poolInfo_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "removePoolFactories", inputs: [ { - internalType: "address[]", name: "_poolFactories", type: "address[]", + internalType: "address[]", }, ], - name: "removePoolFactories", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "removePools", inputs: [ { - internalType: "address[]", name: "_pools", type: "address[]", + internalType: "address[]", }, ], - name: "removePools", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "PoolAdded", + inputs: [ + { + name: "pool", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "invariantProxyAsset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PoolFactoryAdded", + inputs: [ + { + name: "poolFactory", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PoolFactoryRemoved", + inputs: [ + { + name: "poolFactory", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PoolRemoved", + inputs: [ + { + name: "pool", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IBalancerV2WeightedPoolPriceFeed.ts b/packages/abis/src/abis/IBalancerV2WeightedPoolPriceFeed.ts index a9387ef3..2854a602 100644 --- a/packages/abis/src/abis/IBalancerV2WeightedPoolPriceFeed.ts +++ b/packages/abis/src/abis/IBalancerV2WeightedPoolPriceFeed.ts @@ -1,172 +1,172 @@ export const IBalancerV2WeightedPoolPriceFeed = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_fundDeployer", type: "address", + internalType: "address", }, { - internalType: "address", name: "_valueInterpreter", type: "address", + internalType: "address", }, { - internalType: "address", name: "_intermediaryAsset", type: "address", + internalType: "address", }, { - internalType: "address", name: "_balancerVault", type: "address", + internalType: "address", }, { - internalType: "address[]", name: "_poolFactories", type: "address[]", + internalType: "address[]", }, ], stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "poolFactory", - type: "address", - }, - ], - name: "PoolFactoryAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "poolFactory", - type: "address", - }, - ], - name: "PoolFactoryRemoved", - type: "event", }, { + type: "function", + name: "addPoolFactories", inputs: [ { - internalType: "address[]", name: "_poolFactories", type: "address[]", + internalType: "address[]", }, ], - name: "addPoolFactories", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPoolFactories", + inputs: [], outputs: [ { - internalType: "address[]", name: "factories_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "removePoolFactories", inputs: [ { - internalType: "address[]", name: "_poolFactories", type: "address[]", + internalType: "address[]", }, ], - name: "removePoolFactories", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "PoolFactoryAdded", + inputs: [ + { + name: "poolFactory", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PoolFactoryRemoved", + inputs: [ + { + name: "poolFactory", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IChainlinkPriceFeedMixin.ts b/packages/abis/src/abis/IChainlinkPriceFeedMixin.ts index 35324ead..bccfb32b 100644 --- a/packages/abis/src/abis/IChainlinkPriceFeedMixin.ts +++ b/packages/abis/src/abis/IChainlinkPriceFeedMixin.ts @@ -1,177 +1,177 @@ export const IChainlinkPriceFeedMixin = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_staleRateThreshold", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - anonymous: false, + type: "function", + name: "getAggregatorForPrimitive", inputs: [ { - indexed: false, - internalType: "address", - name: "prevEthUsdAggregator", + name: "_primitive", type: "address", - }, - { - indexed: false, internalType: "address", - name: "nextEthUsdAggregator", - type: "address", }, ], - name: "EthUsdAggregatorSet", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: true, - internalType: "address", - name: "primitive", + name: "aggregator_", type: "address", - }, - { - indexed: false, internalType: "address", - name: "aggregator", - type: "address", - }, - { - indexed: false, - internalType: "enum IChainlinkPriceFeedMixin.RateAsset", - name: "rateAsset", - type: "uint8", - }, - { - indexed: false, - internalType: "uint256", - name: "unit", - type: "uint256", }, ], - name: "PrimitiveAdded", - type: "event", + stateMutability: "view", }, { - anonymous: false, - inputs: [ + type: "function", + name: "getEthUsdAggregator", + inputs: [], + outputs: [ { - indexed: true, - internalType: "address", - name: "primitive", + name: "ethUsdAggregator_", type: "address", + internalType: "address", }, ], - name: "PrimitiveRemoved", - type: "event", + stateMutability: "view", }, { + type: "function", + name: "getRateAssetForPrimitive", inputs: [ { - internalType: "address", name: "_primitive", type: "address", + internalType: "address", }, ], - name: "getAggregatorForPrimitive", outputs: [ { - internalType: "address", - name: "aggregator_", - type: "address", + name: "rateAsset_", + type: "uint8", + internalType: "enum IChainlinkPriceFeedMixin.RateAsset", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getStaleRateThreshold", inputs: [], - name: "getEthUsdAggregator", outputs: [ { - internalType: "address", - name: "ethUsdAggregator_", - type: "address", + name: "staleRateThreshold_", + type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getUnitForPrimitive", inputs: [ { - internalType: "address", name: "_primitive", type: "address", + internalType: "address", }, ], - name: "getRateAssetForPrimitive", outputs: [ { - internalType: "enum IChainlinkPriceFeedMixin.RateAsset", - name: "rateAsset_", - type: "uint8", + name: "unit_", + type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getWethToken", inputs: [], - name: "getStaleRateThreshold", outputs: [ { - internalType: "uint256", - name: "staleRateThreshold_", - type: "uint256", + name: "wethToken_", + type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "event", + name: "EthUsdAggregatorSet", inputs: [ { + name: "prevEthUsdAggregator", + type: "address", + indexed: false, internalType: "address", - name: "_primitive", + }, + { + name: "nextEthUsdAggregator", type: "address", + indexed: false, + internalType: "address", }, ], - name: "getUnitForPrimitive", - outputs: [ + anonymous: false, + }, + { + type: "event", + name: "PrimitiveAdded", + inputs: [ { - internalType: "uint256", - name: "unit_", + name: "primitive", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "aggregator", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "rateAsset", + type: "uint8", + indexed: false, + internalType: "enum IChainlinkPriceFeedMixin.RateAsset", + }, + { + name: "unit", type: "uint256", + indexed: false, + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { - inputs: [], - name: "getWethToken", - outputs: [ + type: "event", + name: "PrimitiveRemoved", + inputs: [ { - internalType: "address", - name: "wethToken_", + name: "primitive", type: "address", + indexed: true, + internalType: "address", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/ICompoundAdapter.ts b/packages/abis/src/abis/ICompoundAdapter.ts index 492228fa..436aa96f 100644 --- a/packages/abis/src/abis/ICompoundAdapter.ts +++ b/packages/abis/src/abis/ICompoundAdapter.ts @@ -1,301 +1,301 @@ export const ICompoundAdapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_compoundPriceFeed", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "receive", + stateMutability: "payable", + }, + { + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "claimRewards", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "claimRewards", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getCompoundPriceFeed", + inputs: [], outputs: [ { - internalType: "address", name: "compoundPriceFeed_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getCompoundWethToken", + inputs: [], outputs: [ { - internalType: "address", name: "compoundWethToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "lend", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "lend", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "redeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "redeem", outputs: [], stateMutability: "nonpayable", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", }, ] as const; diff --git a/packages/abis/src/abis/ICompoundDebtPositionLib.ts b/packages/abis/src/abis/ICompoundDebtPositionLib.ts index a428415b..f8b702b3 100644 --- a/packages/abis/src/abis/ICompoundDebtPositionLib.ts +++ b/packages/abis/src/abis/ICompoundDebtPositionLib.ts @@ -1,238 +1,238 @@ export const ICompoundDebtPositionLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_compoundComptroller", type: "address", - }, - { - internalType: "address", - name: "_compToken", - type: "address", - }, - { internalType: "address", - name: "_weth", - type: "address", }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ { - indexed: true, - internalType: "address", - name: "asset", + name: "_compToken", type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "AssetBorrowed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "asset", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", }, - ], - name: "BorrowedAssetRepaid", - type: "event", - }, - { - anonymous: false, - inputs: [ { - indexed: true, - internalType: "address", - name: "asset", + name: "_weth", type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "CollateralAssetAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "asset", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", }, ], - name: "CollateralAssetRemoved", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "assetIsCollateral", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "assetIsCollateral", outputs: [ { - internalType: "bool", name: "isCollateral", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getCTokenFromBorrowedAsset", inputs: [ { - internalType: "address", name: "_borrowedAsset", type: "address", + internalType: "address", }, ], - name: "getCTokenFromBorrowedAsset", outputs: [ { - internalType: "address", name: "cToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getCompToken", + inputs: [], outputs: [ { - internalType: "address", name: "compToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getCompoundComptroller", + inputs: [], outputs: [ { - internalType: "address", name: "compoundComptroller_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getWethToken", + inputs: [], outputs: [ { - internalType: "address", name: "wethToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "AssetBorrowed", + inputs: [ + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "BorrowedAssetRepaid", + inputs: [ + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "CollateralAssetAdded", + inputs: [ + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "CollateralAssetRemoved", + inputs: [ + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/ICompoundDebtPositionParser.ts b/packages/abis/src/abis/ICompoundDebtPositionParser.ts index 026938cd..1a7bd75a 100644 --- a/packages/abis/src/abis/ICompoundDebtPositionParser.ts +++ b/packages/abis/src/abis/ICompoundDebtPositionParser.ts @@ -1,125 +1,125 @@ export const ICompoundDebtPositionParser = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_compoundPriceFeed", type: "address", + internalType: "address", }, { - internalType: "address", name: "_compToken", type: "address", + internalType: "address", }, { - internalType: "address", name: "_valueInterpreter", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "getCompToken", + inputs: [], outputs: [ { - internalType: "address", name: "compToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getCompoundPriceFeed", + inputs: [], outputs: [ { - internalType: "address", name: "compoundPriceFeed_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getValueInterpreter", + inputs: [], outputs: [ { - internalType: "address", name: "valueInterpreter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "_externalPosition", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_encodedActionArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "address[]", name: "assetsToTransfer_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amountsToTransfer_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "assetsToReceive_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseInitArgs", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "parseInitArgs", outputs: [ { - internalType: "bytes", name: "initArgs_", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/ICompoundPriceFeed.ts b/packages/abis/src/abis/ICompoundPriceFeed.ts index a3804071..beef976f 100644 --- a/packages/abis/src/abis/ICompoundPriceFeed.ts +++ b/packages/abis/src/abis/ICompoundPriceFeed.ts @@ -1,148 +1,148 @@ export const ICompoundPriceFeed = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_fundDeployer", type: "address", + internalType: "address", }, { - internalType: "address", name: "_weth", type: "address", - }, - { internalType: "address", - name: "_ceth", - type: "address", }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ { - indexed: true, - internalType: "address", - name: "cToken", + name: "_ceth", type: "address", - }, - { - indexed: true, internalType: "address", - name: "token", - type: "address", }, ], - name: "CTokenAdded", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "addCTokens", inputs: [ { - internalType: "address[]", name: "_cTokens", type: "address[]", + internalType: "address[]", }, ], - name: "addCTokens", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getTokenFromCToken", inputs: [ { - internalType: "address", name: "_cToken", type: "address", + internalType: "address", }, ], - name: "getTokenFromCToken", outputs: [ { - internalType: "address", name: "token_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", + }, + { + type: "event", + name: "CTokenAdded", + inputs: [ + { + name: "cToken", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "token", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/ICompoundV3Adapter.ts b/packages/abis/src/abis/ICompoundV3Adapter.ts index dfce889a..a5b9b4e3 100644 --- a/packages/abis/src/abis/ICompoundV3Adapter.ts +++ b/packages/abis/src/abis/ICompoundV3Adapter.ts @@ -1,281 +1,281 @@ export const ICompoundV3Adapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_compoundV3Configurator", type: "address", + internalType: "address", }, { - internalType: "address", name: "_compoundV3Rewards", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressListRegistry", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_cTokenListId", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "claimRewards", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "claimRewards", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "lend", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "lend", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "redeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "redeem", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/ICompoundV3CTokenListOwner.ts b/packages/abis/src/abis/ICompoundV3CTokenListOwner.ts index 2bf6c214..87d8fb68 100644 --- a/packages/abis/src/abis/ICompoundV3CTokenListOwner.ts +++ b/packages/abis/src/abis/ICompoundV3CTokenListOwner.ts @@ -1,36 +1,36 @@ export const ICompoundV3CTokenListOwner = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_addressListRegistry", type: "address", + internalType: "address", }, { - internalType: "string", name: "_listDescription", type: "string", + internalType: "string", }, { - internalType: "address", name: "_compoundV3Configurator", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "addValidatedItemsToList", inputs: [ { - internalType: "address[]", name: "_items", type: "address[]", + internalType: "address[]", }, ], - name: "addValidatedItemsToList", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IComptrollerLib.ts b/packages/abis/src/abis/IComptrollerLib.ts index f11ae535..8c18011c 100644 --- a/packages/abis/src/abis/IComptrollerLib.ts +++ b/packages/abis/src/abis/IComptrollerLib.ts @@ -1,897 +1,897 @@ export const IComptrollerLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_dispatcher", type: "address", + internalType: "address", }, { - internalType: "address", name: "_protocolFeeReserve", type: "address", + internalType: "address", }, { - internalType: "address", name: "_fundDeployer", type: "address", + internalType: "address", }, { - internalType: "address", name: "_valueInterpreter", type: "address", + internalType: "address", }, { - internalType: "address", name: "_externalPositionManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_feeManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_policyManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_gasRelayPaymasterFactory", type: "address", + internalType: "address", }, { - internalType: "address", name: "_mlnToken", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - anonymous: false, + type: "function", + name: "activate", inputs: [ { - indexed: false, - internalType: "bool", - name: "autoProtocolFeeSharesBuyback", + name: "_isMigration", type: "bool", + internalType: "bool", }, ], - name: "AutoProtocolFeeSharesBuybackSet", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "buyBackProtocolFeeShares", inputs: [ { - indexed: true, - internalType: "bytes", - name: "failureReturnData", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "sharesAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "buybackValueInMln", + name: "_sharesAmount", type: "uint256", - }, - { - indexed: false, internalType: "uint256", - name: "gav", - type: "uint256", }, ], - name: "BuyBackMaxProtocolFeeSharesFailed", - type: "event", - }, - { - anonymous: false, - inputs: [], - name: "DeactivateFeeManagerFailed", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "buyShares", inputs: [ { - indexed: false, - internalType: "address", - name: "gasRelayPaymaster", - type: "address", + name: "_investmentAmount", + type: "uint256", + internalType: "uint256", }, - ], - name: "GasRelayPaymasterSet", - type: "event", - }, - { - anonymous: false, - inputs: [ { - indexed: false, + name: "_minSharesQuantity", + type: "uint256", internalType: "uint256", - name: "sharesDue", + }, + ], + outputs: [ + { + name: "sharesReceived_", type: "uint256", + internalType: "uint256", }, ], - name: "MigratedSharesDuePaid", - type: "event", - }, - { - anonymous: false, - inputs: [], - name: "PayProtocolFeeDuringDestructFailed", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "buySharesOnBehalf", inputs: [ { - indexed: true, - internalType: "bytes", - name: "failureReturnData", - type: "bytes", + name: "_buyer", + type: "address", + internalType: "address", }, { - indexed: true, - internalType: "address", - name: "redeemer", - type: "address", + name: "_investmentAmount", + type: "uint256", + internalType: "uint256", }, { - indexed: false, + name: "_minSharesQuantity", + type: "uint256", internalType: "uint256", - name: "sharesAmount", + }, + ], + outputs: [ + { + name: "sharesReceived_", type: "uint256", + internalType: "uint256", }, ], - name: "PreRedeemSharesHookFailed", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "calcGav", inputs: [], - name: "RedeemSharesInKindCalcGavFailed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "buyer", - type: "address", - }, + outputs: [ { - indexed: false, - internalType: "uint256", - name: "investmentAmount", + name: "gav_", type: "uint256", - }, - { - indexed: false, internalType: "uint256", - name: "sharesIssued", - type: "uint256", }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "calcGrossShareValue", + inputs: [], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "sharesReceived", + name: "grossShareValue_", type: "uint256", + internalType: "uint256", }, ], - name: "SharesBought", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "callOnExtension", inputs: [ { - indexed: true, - internalType: "address", - name: "redeemer", + name: "_extension", type: "address", - }, - { - indexed: true, internalType: "address", - name: "recipient", - type: "address", }, { - indexed: false, - internalType: "uint256", - name: "sharesAmount", + name: "_actionId", type: "uint256", + internalType: "uint256", }, { - indexed: false, - internalType: "address[]", - name: "receivedAssets", - type: "address[]", - }, - { - indexed: false, - internalType: "uint256[]", - name: "receivedAssetAmounts", - type: "uint256[]", + name: "_callArgs", + type: "bytes", + internalType: "bytes", }, ], - name: "SharesRedeemed", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "vaultProxy", - type: "address", - }, - ], - name: "VaultProxySet", - type: "event", + type: "function", + name: "deployGasRelayPaymaster", + inputs: [], + outputs: [], + stateMutability: "nonpayable", }, { - inputs: [ - { - internalType: "bool", - name: "_isMigration", - type: "bool", - }, - ], - name: "activate", + type: "function", + name: "depositToGasRelayPaymaster", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "destructActivated", inputs: [ { + name: "_deactivateFeeManagerGasLimit", + type: "uint256", internalType: "uint256", - name: "_sharesAmount", + }, + { + name: "_payProtocolFeeGasLimit", type: "uint256", + internalType: "uint256", }, ], - name: "buyBackProtocolFeeShares", outputs: [], stateMutability: "nonpayable", + }, + { type: "function", + name: "destructUnactivated", + inputs: [], + outputs: [], + stateMutability: "nonpayable", }, { - inputs: [ - { - internalType: "uint256", - name: "_investmentAmount", - type: "uint256", - }, - { - internalType: "uint256", - name: "_minSharesQuantity", - type: "uint256", - }, - ], - name: "buyShares", - outputs: [ - { - internalType: "uint256", - name: "sharesReceived_", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_buyer", - type: "address", - }, - { - internalType: "uint256", - name: "_investmentAmount", - type: "uint256", - }, - { - internalType: "uint256", - name: "_minSharesQuantity", - type: "uint256", - }, - ], - name: "buySharesOnBehalf", - outputs: [ - { - internalType: "uint256", - name: "sharesReceived_", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "calcGav", - outputs: [ - { - internalType: "uint256", - name: "gav_", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "calcGrossShareValue", - outputs: [ - { - internalType: "uint256", - name: "grossShareValue_", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_extension", - type: "address", - }, - { - internalType: "uint256", - name: "_actionId", - type: "uint256", - }, - { - internalType: "bytes", - name: "_callArgs", - type: "bytes", - }, - ], - name: "callOnExtension", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "deployGasRelayPaymaster", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "depositToGasRelayPaymaster", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_deactivateFeeManagerGasLimit", - type: "uint256", - }, - { - internalType: "uint256", - name: "_payProtocolFeeGasLimit", - type: "uint256", - }, - ], - name: "destructActivated", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "destructUnactivated", - outputs: [], - stateMutability: "nonpayable", type: "function", - }, - { - inputs: [], name: "doesAutoProtocolFeeSharesBuyback", + inputs: [], outputs: [ { - internalType: "bool", name: "doesAutoBuyback_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getDenominationAsset", + inputs: [], outputs: [ { - internalType: "address", name: "denominationAsset_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getDispatcher", + inputs: [], outputs: [ { - internalType: "address", name: "dispatcher_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getExternalPositionManager", + inputs: [], outputs: [ { - internalType: "address", name: "externalPositionManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFeeManager", + inputs: [], outputs: [ { - internalType: "address", name: "feeManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getGasRelayPaymaster", + inputs: [], outputs: [ { - internalType: "address", name: "gasRelayPaymaster_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getGasRelayPaymasterFactory", + inputs: [], outputs: [ { - internalType: "address", name: "gasRelayPaymasterFactory_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getGasRelayTrustedForwarder", + inputs: [], outputs: [ { - internalType: "address", name: "trustedForwarder_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getLastSharesBoughtTimestampForAccount", inputs: [ { - internalType: "address", name: "_who", type: "address", + internalType: "address", }, ], - name: "getLastSharesBoughtTimestampForAccount", outputs: [ { - internalType: "uint256", name: "lastSharesBoughtTimestamp_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getMlnToken", + inputs: [], outputs: [ { - internalType: "address", name: "mlnToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getProtocolFeeReserve", + inputs: [], outputs: [ { - internalType: "address", name: "protocolFeeReserve_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getSharesActionTimelock", + inputs: [], outputs: [ { - internalType: "uint256", name: "sharesActionTimelock_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getValueInterpreter", + inputs: [], outputs: [ { - internalType: "address", name: "valueInterpreter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getVaultProxy", + inputs: [], outputs: [ { - internalType: "address", name: "vaultProxy_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getWethToken", + inputs: [], outputs: [ { - internalType: "address", name: "wethToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "address", name: "_denominationAsset", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_sharesActionTimelock", type: "uint256", + internalType: "uint256", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "permissionedVaultAction", inputs: [ { - internalType: "enum IVault.VaultAction", name: "_action", type: "uint8", + internalType: "enum IVault.VaultAction", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "permissionedVaultAction", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "preTransferSharesHook", inputs: [ { - internalType: "address", name: "_sender", type: "address", + internalType: "address", }, { - internalType: "address", name: "_recipient", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "preTransferSharesHook", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "preTransferSharesHookFreelyTransferable", inputs: [ { - internalType: "address", name: "_sender", type: "address", + internalType: "address", }, ], - name: "preTransferSharesHookFreelyTransferable", outputs: [], stateMutability: "view", - type: "function", }, { + type: "function", + name: "pullWethForGasRelayer", inputs: [ { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "pullWethForGasRelayer", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "redeemSharesForSpecificAssets", inputs: [ { - internalType: "address", name: "_recipient", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_sharesQuantity", type: "uint256", + internalType: "uint256", }, { - internalType: "address[]", name: "_payoutAssets", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "_payoutAssetPercentages", type: "uint256[]", + internalType: "uint256[]", }, ], - name: "redeemSharesForSpecificAssets", outputs: [ { - internalType: "uint256[]", name: "payoutAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "redeemSharesInKind", inputs: [ { - internalType: "address", name: "_recipient", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_sharesQuantity", type: "uint256", + internalType: "uint256", }, { - internalType: "address[]", name: "_additionalAssets", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_assetsToSkip", type: "address[]", + internalType: "address[]", }, ], - name: "redeemSharesInKind", outputs: [ { - internalType: "address[]", name: "payoutAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "payoutAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setAutoProtocolFeeSharesBuyback", inputs: [ { - internalType: "bool", name: "_nextAutoProtocolFeeSharesBuyback", type: "bool", + internalType: "bool", }, ], - name: "setAutoProtocolFeeSharesBuyback", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setGasRelayPaymaster", inputs: [ { - internalType: "address", name: "_nextGasRelayPaymaster", type: "address", + internalType: "address", }, ], - name: "setGasRelayPaymaster", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setVaultProxy", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "setVaultProxy", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "shutdownGasRelayPaymaster", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "vaultCallOnContract", inputs: [ { - internalType: "address", name: "_contract", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "vaultCallOnContract", outputs: [ { - internalType: "bytes", name: "returnData_", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "AutoProtocolFeeSharesBuybackSet", + inputs: [ + { + name: "autoProtocolFeeSharesBuyback", + type: "bool", + indexed: false, + internalType: "bool", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "BuyBackMaxProtocolFeeSharesFailed", + inputs: [ + { + name: "failureReturnData", + type: "bytes", + indexed: true, + internalType: "bytes", + }, + { + name: "sharesAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "buybackValueInMln", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "gav", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "DeactivateFeeManagerFailed", + inputs: [], + anonymous: false, + }, + { + type: "event", + name: "GasRelayPaymasterSet", + inputs: [ + { + name: "gasRelayPaymaster", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "MigratedSharesDuePaid", + inputs: [ + { + name: "sharesDue", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PayProtocolFeeDuringDestructFailed", + inputs: [], + anonymous: false, + }, + { + type: "event", + name: "PreRedeemSharesHookFailed", + inputs: [ + { + name: "failureReturnData", + type: "bytes", + indexed: true, + internalType: "bytes", + }, + { + name: "redeemer", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "RedeemSharesInKindCalcGavFailed", + inputs: [], + anonymous: false, + }, + { + type: "event", + name: "SharesBought", + inputs: [ + { + name: "buyer", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "investmentAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "sharesIssued", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "sharesReceived", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "SharesRedeemed", + inputs: [ + { + name: "redeemer", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "recipient", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "receivedAssets", + type: "address[]", + indexed: false, + internalType: "address[]", + }, + { + name: "receivedAssetAmounts", + type: "uint256[]", + indexed: false, + internalType: "uint256[]", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "VaultProxySet", + inputs: [ + { + name: "vaultProxy", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IConvexCurveLpStakingAdapter.ts b/packages/abis/src/abis/IConvexCurveLpStakingAdapter.ts index d49a53eb..a80b0005 100644 --- a/packages/abis/src/abis/IConvexCurveLpStakingAdapter.ts +++ b/packages/abis/src/abis/IConvexCurveLpStakingAdapter.ts @@ -1,344 +1,344 @@ export const IConvexCurveLpStakingAdapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_curvePriceFeed", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wrappedNativeAsset", type: "address", + internalType: "address", }, { - internalType: "address", name: "_stakingWrapperFactory", type: "address", + internalType: "address", }, { - internalType: "address", name: "_nativeAssetAddress", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "receive", + stateMutability: "payable", + }, + { + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "claimRewards", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "claimRewards", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getCurveLiquidityWrappedNativeAsset", + inputs: [], outputs: [ { - internalType: "address", name: "addressProvider_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "lendAndStake", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "lendAndStake", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "stake", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "stake", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "unstake", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "unstake", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "unstakeAndRedeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "unstakeAndRedeem", outputs: [], stateMutability: "nonpayable", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", }, ] as const; diff --git a/packages/abis/src/abis/IConvexCurveLpStakingWrapperFactory.ts b/packages/abis/src/abis/IConvexCurveLpStakingWrapperFactory.ts index 8851dc65..4c949acb 100644 --- a/packages/abis/src/abis/IConvexCurveLpStakingWrapperFactory.ts +++ b/packages/abis/src/abis/IConvexCurveLpStakingWrapperFactory.ts @@ -1,191 +1,191 @@ export const IConvexCurveLpStakingWrapperFactory = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_dispatcher", type: "address", - }, - { internalType: "address", - name: "_implementation", - type: "address", }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ { - indexed: false, - internalType: "address", - name: "implementation", - type: "address", - }, - ], - name: "ImplementationSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "proxy", - type: "address", - }, - ], - name: "ProxyDeployed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "pid", - type: "uint256", - }, - { - indexed: false, - internalType: "address", - name: "wrapperProxy", + name: "_implementation", type: "address", - }, - { - indexed: false, internalType: "address", - name: "curveLpToken", - type: "address", }, ], - name: "WrapperDeployed", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "deploy", inputs: [ { - internalType: "uint256", name: "_pid", type: "uint256", + internalType: "uint256", }, ], - name: "deploy", outputs: [ { - internalType: "address", name: "wrapperProxy_", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getCurveLpTokenForWrapper", inputs: [ { - internalType: "address", name: "_wrapper", type: "address", + internalType: "address", }, ], - name: "getCurveLpTokenForWrapper", outputs: [ { - internalType: "address", name: "lpToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getWrapperForConvexPool", inputs: [ { - internalType: "uint256", name: "_pid", type: "uint256", + internalType: "uint256", }, ], - name: "getWrapperForConvexPool", outputs: [ { - internalType: "address", name: "wrapper_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "implementation", + inputs: [], outputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "pauseWrappers", inputs: [ { - internalType: "address[]", name: "_wrappers", type: "address[]", + internalType: "address[]", }, ], - name: "pauseWrappers", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setImplementation", inputs: [ { - internalType: "address", name: "_nextImplementation", type: "address", + internalType: "address", }, ], - name: "setImplementation", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "unpauseWrappers", inputs: [ { - internalType: "address[]", name: "_wrappers", type: "address[]", + internalType: "address[]", }, ], - name: "unpauseWrappers", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ImplementationSet", + inputs: [ + { + name: "implementation", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ProxyDeployed", + inputs: [ + { + name: "proxy", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "WrapperDeployed", + inputs: [ + { + name: "pid", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "wrapperProxy", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "curveLpToken", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IConvexCurveLpStakingWrapperLib.ts b/packages/abis/src/abis/IConvexCurveLpStakingWrapperLib.ts index e41799f1..45aaa667 100644 --- a/packages/abis/src/abis/IConvexCurveLpStakingWrapperLib.ts +++ b/packages/abis/src/abis/IConvexCurveLpStakingWrapperLib.ts @@ -1,804 +1,804 @@ export const IConvexCurveLpStakingWrapperLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_owner", type: "address", + internalType: "address", }, { - internalType: "address", name: "_convexBooster", type: "address", + internalType: "address", }, { - internalType: "address", name: "_crvToken", type: "address", + internalType: "address", }, { - internalType: "address", name: "_cvxToken", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - anonymous: false, + type: "function", + name: "addExtraRewards", + inputs: [], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "allowance", inputs: [ { - indexed: true, - internalType: "address", name: "owner", type: "address", + internalType: "address", }, { - indexed: true, - internalType: "address", name: "spender", type: "address", + internalType: "address", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "value", + name: "", type: "uint256", + internalType: "uint256", }, ], - name: "Approval", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "approve", inputs: [ { - indexed: true, - internalType: "address", - name: "from", + name: "spender", type: "address", - }, - { - indexed: true, internalType: "address", - name: "to", - type: "address", }, { - indexed: false, - internalType: "uint256", name: "amount", type: "uint256", + internalType: "uint256", }, ], - name: "Deposited", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: false, - internalType: "bool", - name: "isPaused", + name: "", type: "bool", + internalType: "bool", }, ], - name: "PauseToggled", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "balanceOf", inputs: [ { - indexed: false, - internalType: "address", - name: "token", + name: "account", type: "address", + internalType: "address", }, ], - name: "RewardTokenAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: false, - internalType: "string", - name: "name", - type: "string", + name: "", + type: "uint256", + internalType: "uint256", }, ], - name: "TokenNameSet", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "claimRewardsFor", inputs: [ { - indexed: false, - internalType: "string", - name: "symbol", - type: "string", + name: "_for", + type: "address", + internalType: "address", }, ], - name: "TokenSymbolSet", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: true, - internalType: "address", - name: "rewardToken", - type: "address", + name: "rewardTokens_", + type: "address[]", + internalType: "address[]", }, { - indexed: false, - internalType: "uint256", - name: "integral", - type: "uint256", + name: "claimedAmounts_", + type: "uint256[]", + internalType: "uint256[]", }, ], - name: "TotalHarvestIntegralUpdated", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "claimRewardsForWithoutCheckpoint", inputs: [ { - indexed: true, - internalType: "address", - name: "rewardToken", + name: "_for", type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "lastCheckpointBalance", - type: "uint256", + internalType: "address", }, ], - name: "TotalHarvestLastCheckpointBalanceUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: true, - internalType: "address", - name: "from", - type: "address", + name: "rewardTokens_", + type: "address[]", + internalType: "address[]", }, { - indexed: true, - internalType: "address", - name: "to", - type: "address", + name: "claimedAmounts_", + type: "uint256[]", + internalType: "uint256[]", }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "decimals", + inputs: [], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", + name: "decimals_", + type: "uint8", + internalType: "uint8", }, ], - name: "Transfer", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "decreaseAllowance", inputs: [ { - indexed: true, - internalType: "address", - name: "user", + name: "spender", type: "address", - }, - { - indexed: true, internalType: "address", - name: "rewardToken", - type: "address", }, { - indexed: false, - internalType: "uint256", - name: "integral", + name: "subtractedValue", type: "uint256", + internalType: "uint256", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "claimableReward", - type: "uint256", + name: "", + type: "bool", + internalType: "bool", }, ], - name: "UserHarvestUpdated", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "depositTo", inputs: [ { - indexed: true, - internalType: "address", - name: "caller", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "from", + name: "_to", type: "address", - }, - { - indexed: true, internalType: "address", - name: "to", - type: "address", }, { - indexed: false, - internalType: "uint256", - name: "amount", + name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "Withdrawn", - type: "event", - }, - { - inputs: [], - name: "addExtraRewards", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [ + type: "function", + name: "getConvexPool", + inputs: [], + outputs: [ { - internalType: "address", - name: "owner", + name: "convexPool_", type: "address", - }, - { internalType: "address", - name: "spender", - type: "address", }, ], - name: "allowance", + stateMutability: "view", + }, + { + type: "function", + name: "getConvexPoolId", + inputs: [], outputs: [ { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "amount", + name: "convexPoolId_", type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { internalType: "uint256", - name: "", - type: "uint256", }, ], stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_for", - type: "address", - }, - ], - name: "claimRewardsFor", - outputs: [ - { - internalType: "address[]", - name: "rewardTokens_", - type: "address[]", - }, - { - internalType: "uint256[]", - name: "claimedAmounts_", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", }, { - inputs: [ - { - internalType: "address", - name: "_for", - type: "address", - }, - ], - name: "claimRewardsForWithoutCheckpoint", - outputs: [ - { - internalType: "address[]", - name: "rewardTokens_", - type: "address[]", - }, - { - internalType: "uint256[]", - name: "claimedAmounts_", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", type: "function", - }, - { + name: "getCurveLpToken", inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "decimals_", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "subtractedValue", - type: "uint256", - }, - ], - name: "decreaseAllowance", outputs: [ { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_to", + name: "curveLPToken_", type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "depositTo", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "getConvexPool", - outputs: [ - { internalType: "address", - name: "convexPool_", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getConvexPoolId", - outputs: [ - { - internalType: "uint256", - name: "convexPoolId_", - type: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], - name: "getCurveLpToken", - outputs: [ - { - internalType: "address", - name: "curveLPToken_", - type: "address", - }, - ], - stateMutability: "view", type: "function", - }, - { + name: "getRewardTokenAtIndex", inputs: [ { - internalType: "uint256", name: "_index", type: "uint256", + internalType: "uint256", }, ], - name: "getRewardTokenAtIndex", outputs: [ { - internalType: "address", name: "rewardToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getRewardTokenCount", + inputs: [], outputs: [ { - internalType: "uint256", name: "count_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getRewardTokens", + inputs: [], outputs: [ { - internalType: "address[]", name: "rewardTokens_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getTotalHarvestDataForRewardToken", inputs: [ { - internalType: "address", name: "_rewardToken", type: "address", + internalType: "address", }, ], - name: "getTotalHarvestDataForRewardToken", outputs: [ { + name: "totalHarvestData_", + type: "tuple", + internalType: "struct IStakingWrapper.TotalHarvestData", components: [ { - internalType: "uint128", name: "integral", type: "uint128", + internalType: "uint128", }, { - internalType: "uint128", name: "lastCheckpointBalance", type: "uint128", + internalType: "uint128", }, ], - internalType: "struct IStakingWrapper.TotalHarvestData", - name: "totalHarvestData_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getUserHarvestDataForRewardToken", inputs: [ { - internalType: "address", name: "_user", type: "address", + internalType: "address", }, { - internalType: "address", name: "_rewardToken", type: "address", + internalType: "address", }, ], - name: "getUserHarvestDataForRewardToken", outputs: [ { + name: "userHarvestData_", + type: "tuple", + internalType: "struct IStakingWrapper.UserHarvestData", components: [ { - internalType: "uint128", name: "integral", type: "uint128", + internalType: "uint128", }, { - internalType: "uint128", name: "claimableReward", type: "uint128", + internalType: "uint128", }, ], - internalType: "struct IStakingWrapper.UserHarvestData", - name: "userHarvestData_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "increaseAllowance", inputs: [ { - internalType: "address", name: "spender", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "addedValue", type: "uint256", + internalType: "uint256", }, ], - name: "increaseAllowance", outputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "uint256", name: "_pid", type: "uint256", + internalType: "uint256", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "isPaused", + inputs: [], outputs: [ { - internalType: "bool", name: "isPaused_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "name", + inputs: [], outputs: [ { - internalType: "string", name: "name_", type: "string", + internalType: "string", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "setApprovals", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "symbol", + inputs: [], outputs: [ { - internalType: "string", name: "symbol_", type: "string", + internalType: "string", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "togglePause", inputs: [ { - internalType: "bool", name: "_isPaused", type: "bool", + internalType: "bool", }, ], - name: "togglePause", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "totalSupply", + inputs: [], outputs: [ { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "transfer", inputs: [ { - internalType: "address", name: "to", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "amount", type: "uint256", + internalType: "uint256", }, ], - name: "transfer", outputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "transferFrom", inputs: [ { - internalType: "address", name: "from", type: "address", + internalType: "address", }, { - internalType: "address", name: "to", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "amount", type: "uint256", + internalType: "uint256", }, ], - name: "transferFrom", outputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "withdrawTo", inputs: [ { - internalType: "address", name: "_to", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "withdrawTo", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "withdrawToOnBehalf", inputs: [ { - internalType: "address", name: "_onBehalf", type: "address", + internalType: "address", }, { - internalType: "address", name: "_to", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "withdrawToOnBehalf", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "withdrawToWithoutCheckpoint", inputs: [ { - internalType: "address", name: "_to", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "withdrawToWithoutCheckpoint", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "Approval", + inputs: [ + { + name: "owner", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "spender", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "value", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Deposited", + inputs: [ + { + name: "from", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "to", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PauseToggled", + inputs: [ + { + name: "isPaused", + type: "bool", + indexed: false, + internalType: "bool", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "RewardTokenAdded", + inputs: [ + { + name: "token", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "TokenNameSet", + inputs: [ + { + name: "name", + type: "string", + indexed: false, + internalType: "string", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "TokenSymbolSet", + inputs: [ + { + name: "symbol", + type: "string", + indexed: false, + internalType: "string", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "TotalHarvestIntegralUpdated", + inputs: [ + { + name: "rewardToken", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "integral", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "TotalHarvestLastCheckpointBalanceUpdated", + inputs: [ + { + name: "rewardToken", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "lastCheckpointBalance", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Transfer", + inputs: [ + { + name: "from", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "to", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "value", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "UserHarvestUpdated", + inputs: [ + { + name: "user", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "rewardToken", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "integral", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "claimableReward", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Withdrawn", + inputs: [ + { + name: "caller", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "from", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "to", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IConvexCurveLpStakingWrapperPriceFeed.ts b/packages/abis/src/abis/IConvexCurveLpStakingWrapperPriceFeed.ts index cd94ae42..544a86e3 100644 --- a/packages/abis/src/abis/IConvexCurveLpStakingWrapperPriceFeed.ts +++ b/packages/abis/src/abis/IConvexCurveLpStakingWrapperPriceFeed.ts @@ -1,61 +1,61 @@ export const IConvexCurveLpStakingWrapperPriceFeed = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_wrapperFactory", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IConvexVotingPositionLib.ts b/packages/abis/src/abis/IConvexVotingPositionLib.ts index 5a3fe0f5..d8453326 100644 --- a/packages/abis/src/abis/IConvexVotingPositionLib.ts +++ b/packages/abis/src/abis/IConvexVotingPositionLib.ts @@ -1,100 +1,100 @@ export const IConvexVotingPositionLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_vlCvx", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vlCvxExtraRewards", type: "address", + internalType: "address", }, { - internalType: "address", name: "_cvxCrvStaking", type: "address", + internalType: "address", }, { - internalType: "address", name: "_cvxToken", type: "address", + internalType: "address", }, { - internalType: "address", name: "_snapshotDelegateRegistry", type: "address", + internalType: "address", }, { - internalType: "address", name: "_votiumMultiMerkleStash", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IConvexVotingPositionParser.ts b/packages/abis/src/abis/IConvexVotingPositionParser.ts index bad2236d..42dec61a 100644 --- a/packages/abis/src/abis/IConvexVotingPositionParser.ts +++ b/packages/abis/src/abis/IConvexVotingPositionParser.ts @@ -1,76 +1,76 @@ export const IConvexVotingPositionParser = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_cvxToken", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_encodedActionArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "address[]", name: "assetsToTransfer_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amountsToTransfer_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "assetsToReceive_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseInitArgs", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "parseInitArgs", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/ICumulativeSlippageTolerancePolicy.ts b/packages/abis/src/abis/ICumulativeSlippageTolerancePolicy.ts index 8092356a..53f6b8dc 100644 --- a/packages/abis/src/abis/ICumulativeSlippageTolerancePolicy.ts +++ b/packages/abis/src/abis/ICumulativeSlippageTolerancePolicy.ts @@ -1,442 +1,442 @@ export const ICumulativeSlippageTolerancePolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressListRegistry", type: "address", + internalType: "address", }, { - internalType: "address", name: "_valueInterpreter", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_bypassableAdaptersListId", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_tolerancePeriodDuration", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_pricelessAssetBypassTimelock", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_pricelessAssetBypassTimeLimit", type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, internalType: "uint256", - name: "nextCumulativeSlippage", - type: "uint256", }, ], - name: "CumulativeSlippageUpdatedForFund", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "tolerance", - type: "uint256", - }, - ], - name: "FundSettingsSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "asset", - type: "address", - }, - ], - name: "PricelessAssetBypassed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "asset", - type: "address", - }, - ], - name: "PricelessAssetTimelockStarted", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "assetIsBypassableForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "assetIsBypassableForFund", outputs: [ { - internalType: "bool", name: "isBypassable_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "getAddressListRegistry", + inputs: [], outputs: [ { - internalType: "address", name: "addressListRegistry_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getAssetBypassWindowStartForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "getAssetBypassWindowStartForFund", outputs: [ { - internalType: "uint256", name: "windowStart_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getBypassableAdaptersListId", + inputs: [], outputs: [ { - internalType: "uint256", name: "bypassableAdaptersListId_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getPolicyInfoForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getPolicyInfoForFund", outputs: [ { + name: "policyInfo_", + type: "tuple", + internalType: "struct CumulativeSlippageTolerancePolicy.PolicyInfo", components: [ { - internalType: "uint64", name: "tolerance", type: "uint64", + internalType: "uint64", }, { - internalType: "uint64", name: "cumulativeSlippage", type: "uint64", + internalType: "uint64", }, { - internalType: "uint128", name: "lastSlippageTimestamp", type: "uint128", + internalType: "uint128", }, ], - internalType: "struct CumulativeSlippageTolerancePolicy.PolicyInfo", - name: "policyInfo_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPricelessAssetBypassTimeLimit", + inputs: [], outputs: [ { - internalType: "uint256", name: "timeLimit_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPricelessAssetBypassTimelock", + inputs: [], outputs: [ { - internalType: "uint256", name: "timelock_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPricelessAssetBypassValueInterpreter", + inputs: [], outputs: [ { - internalType: "address", name: "valueInterpreter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPricelessAssetBypassWethToken", + inputs: [], outputs: [ { - internalType: "address", name: "wethToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getTolerancePeriodDuration", + inputs: [], outputs: [ { - internalType: "uint256", name: "tolerancePeriodDuration_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "startAssetBypassTimelock", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "startAssetBypassTimelock", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "CumulativeSlippageUpdatedForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "nextCumulativeSlippage", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "FundSettingsSet", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "tolerance", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PricelessAssetBypassed", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PricelessAssetTimelockStarted", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/ICurveExchangeAdapter.ts b/packages/abis/src/abis/ICurveExchangeAdapter.ts index cf158fd2..bf2ff4e0 100644 --- a/packages/abis/src/abis/ICurveExchangeAdapter.ts +++ b/packages/abis/src/abis/ICurveExchangeAdapter.ts @@ -1,255 +1,255 @@ export const ICurveExchangeAdapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressProvider", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "receive", + stateMutability: "payable", + }, + { + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getCurveExchangeAddressProvider", + inputs: [], outputs: [ { - internalType: "address", name: "curveExchangeAddressProvider_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getCurveExchangeWethToken", + inputs: [], outputs: [ { - internalType: "address", name: "curveExchangeWethToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "takeOrder", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "takeOrder", outputs: [], stateMutability: "nonpayable", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", }, ] as const; diff --git a/packages/abis/src/abis/ICurveLiquidityAdapter.ts b/packages/abis/src/abis/ICurveLiquidityAdapter.ts index 35b7b421..81343a5c 100644 --- a/packages/abis/src/abis/ICurveLiquidityAdapter.ts +++ b/packages/abis/src/abis/ICurveLiquidityAdapter.ts @@ -1,421 +1,421 @@ export const ICurveLiquidityAdapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_curvePriceFeed", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wrappedNativeAsset", type: "address", + internalType: "address", }, { - internalType: "address", name: "_curveMinter", type: "address", + internalType: "address", }, { - internalType: "address", name: "_crvToken", type: "address", + internalType: "address", }, { - internalType: "address", name: "_nativeAssetAddress", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "receive", + stateMutability: "payable", + }, + { + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "claimRewards", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "claimRewards", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getCurveGaugeV2RewardsHandlerCrvToken", + inputs: [], outputs: [ { - internalType: "address", name: "crvToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getCurveGaugeV2RewardsHandlerMinter", + inputs: [], outputs: [ { - internalType: "address", name: "minter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getCurveLiquidityWrappedNativeAsset", + inputs: [], outputs: [ { - internalType: "address", name: "addressProvider_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "lend", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "lend", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "lendAndStake", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "lendAndStake", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "redeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "redeem", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "stake", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "stake", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "unstake", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "unstake", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "unstakeAndRedeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "unstakeAndRedeem", outputs: [], stateMutability: "nonpayable", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", }, ] as const; diff --git a/packages/abis/src/abis/ICurvePriceFeed.ts b/packages/abis/src/abis/ICurvePriceFeed.ts index 18dc3bd4..74f74df5 100644 --- a/packages/abis/src/abis/ICurvePriceFeed.ts +++ b/packages/abis/src/abis/ICurvePriceFeed.ts @@ -1,449 +1,449 @@ export const ICurvePriceFeed = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_fundDeployer", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressProvider", type: "address", + internalType: "address", }, { - internalType: "address", name: "_poolOwner", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_virtualPriceDeviationThreshold", type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "poolOwner", - type: "address", - }, - ], - name: "CurvePoolOwnerSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "derivative", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "pool", - type: "address", - }, - ], - name: "DerivativeAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "derivative", - type: "address", - }, - ], - name: "DerivativeRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "pool", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "invariantProxyAsset", - type: "address", - }, - ], - name: "InvariantProxyAssetForPoolSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "pool", - type: "address", - }, - ], - name: "PoolRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "pool", - type: "address", - }, - { - indexed: false, internalType: "uint256", - name: "virtualPrice", - type: "uint256", }, ], - name: "ValidatedVirtualPriceForPoolUpdated", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "addGaugeTokens", inputs: [ { - internalType: "address[]", name: "_gaugeTokens", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_pools", type: "address[]", + internalType: "address[]", }, ], - name: "addGaugeTokens", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addGaugeTokensWithoutValidation", inputs: [ { - internalType: "address[]", name: "_gaugeTokens", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_pools", type: "address[]", + internalType: "address[]", }, ], - name: "addGaugeTokensWithoutValidation", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addPools", inputs: [ { - internalType: "address[]", name: "_pools", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_invariantProxyAssets", type: "address[]", + internalType: "address[]", }, { - internalType: "bool[]", name: "_reentrantVirtualPrices", type: "bool[]", + internalType: "bool[]", }, { - internalType: "address[]", name: "_lpTokens", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_gaugeTokens", type: "address[]", + internalType: "address[]", }, ], - name: "addPools", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addPoolsWithoutValidation", inputs: [ { - internalType: "address[]", name: "_pools", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_invariantProxyAssets", type: "address[]", + internalType: "address[]", }, { - internalType: "bool[]", name: "_reentrantVirtualPrices", type: "bool[]", + internalType: "bool[]", }, { - internalType: "address[]", name: "_lpTokens", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_gaugeTokens", type: "address[]", + internalType: "address[]", }, ], - name: "addPoolsWithoutValidation", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getCurvePoolOwner", + inputs: [], outputs: [ { - internalType: "address", name: "poolOwner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getLpTokenForPool", inputs: [ { - internalType: "address", name: "_pool", type: "address", + internalType: "address", }, ], - name: "getLpTokenForPool", outputs: [ { - internalType: "address", name: "lpToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getPoolForDerivative", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, ], - name: "getPoolForDerivative", outputs: [ { - internalType: "address", name: "pool_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getPoolInfo", inputs: [ { - internalType: "address", name: "_pool", type: "address", + internalType: "address", }, ], - name: "getPoolInfo", outputs: [ { + name: "poolInfo_", + type: "tuple", + internalType: "struct CurvePriceFeed.PoolInfo", components: [ { - internalType: "address", name: "invariantProxyAsset", type: "address", + internalType: "address", }, { - internalType: "uint8", name: "invariantProxyAssetDecimals", type: "uint8", + internalType: "uint8", }, { - internalType: "uint88", name: "lastValidatedVirtualPrice", type: "uint88", + internalType: "uint88", }, ], - internalType: "struct CurvePriceFeed.PoolInfo", - name: "poolInfo_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "removeDerivatives", inputs: [ { - internalType: "address[]", name: "_derivatives", type: "address[]", + internalType: "address[]", }, ], - name: "removeDerivatives", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "removePools", inputs: [ { - internalType: "address[]", name: "_pools", type: "address[]", + internalType: "address[]", }, ], - name: "removePools", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setCurvePoolOwner", inputs: [ { - internalType: "address", name: "_nextPoolOwner", type: "address", + internalType: "address", }, ], - name: "setCurvePoolOwner", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updatePoolInfo", inputs: [ { - internalType: "address[]", name: "_pools", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_invariantProxyAssets", type: "address[]", + internalType: "address[]", }, { - internalType: "bool[]", name: "_reentrantVirtualPrices", type: "bool[]", + internalType: "bool[]", }, ], - name: "updatePoolInfo", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "CurvePoolOwnerSet", + inputs: [ + { + name: "poolOwner", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "DerivativeAdded", + inputs: [ + { + name: "derivative", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "pool", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "DerivativeRemoved", + inputs: [ + { + name: "derivative", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "InvariantProxyAssetForPoolSet", + inputs: [ + { + name: "pool", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "invariantProxyAsset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PoolRemoved", + inputs: [ + { + name: "pool", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ValidatedVirtualPriceForPoolUpdated", + inputs: [ + { + name: "pool", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "virtualPrice", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IDepositWrapper.ts b/packages/abis/src/abis/IDepositWrapper.ts index 0ae7b144..143d785b 100644 --- a/packages/abis/src/abis/IDepositWrapper.ts +++ b/packages/abis/src/abis/IDepositWrapper.ts @@ -1,125 +1,125 @@ export const IDepositWrapper = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_addressListRegistryAddress", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_allowedExchangesListId", type: "uint256", + internalType: "uint256", }, { - internalType: "contract IWETH", name: "_wrappedNativeAsset", type: "address", + internalType: "contract IWETH", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "receive", + stateMutability: "payable", + }, + { + type: "function", + name: "exchangeErc20AndBuyShares", inputs: [ { - internalType: "contract IComptroller", name: "_comptrollerProxy", type: "address", + internalType: "contract IComptroller", }, { - internalType: "uint256", name: "_minSharesQuantity", type: "uint256", + internalType: "uint256", }, { - internalType: "contract ERC20", name: "_inputAsset", type: "address", + internalType: "contract ERC20", }, { - internalType: "uint256", name: "_maxInputAssetAmount", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_exchange", type: "address", + internalType: "address", }, { - internalType: "address", name: "_exchangeApproveTarget", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_exchangeData", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "_exchangeMinReceived", type: "uint256", + internalType: "uint256", }, ], - name: "exchangeErc20AndBuyShares", outputs: [ { - internalType: "uint256", name: "sharesReceived_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "exchangeEthAndBuyShares", inputs: [ { - internalType: "contract IComptroller", name: "_comptrollerProxy", type: "address", + internalType: "contract IComptroller", }, { - internalType: "uint256", name: "_minSharesQuantity", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_exchange", type: "address", + internalType: "address", }, { - internalType: "address", name: "_exchangeApproveTarget", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_exchangeData", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "_exchangeMinReceived", type: "uint256", + internalType: "uint256", }, ], - name: "exchangeEthAndBuyShares", outputs: [ { - internalType: "uint256", name: "sharesReceived_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "payable", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", }, ] as const; diff --git a/packages/abis/src/abis/IDerivativePriceFeed.ts b/packages/abis/src/abis/IDerivativePriceFeed.ts index 50efbefa..f5a462d9 100644 --- a/packages/abis/src/abis/IDerivativePriceFeed.ts +++ b/packages/abis/src/abis/IDerivativePriceFeed.ts @@ -1,50 +1,50 @@ export const IDerivativePriceFeed = [ { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", - name: "", + name: "_derivative", type: "address", + internalType: "address", }, { - internalType: "uint256", - name: "", + name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", - name: "", + name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", - name: "", + name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", - name: "", + name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", - name: "", + name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IDispatcher.ts b/packages/abis/src/abis/IDispatcher.ts index 49c44456..457c05f8 100644 --- a/packages/abis/src/abis/IDispatcher.ts +++ b/packages/abis/src/abis/IDispatcher.ts @@ -1,706 +1,706 @@ export const IDispatcher = [ { + type: "constructor", inputs: [], stateMutability: "nonpayable", - type: "constructor", }, { - anonymous: false, + type: "function", + name: "cancelMigration", inputs: [ { - indexed: false, - internalType: "address", - name: "prevFundDeployer", + name: "_vaultProxy", type: "address", + internalType: "address", }, { - indexed: false, - internalType: "address", - name: "nextFundDeployer", - type: "address", + name: "_bypassFailure", + type: "bool", + internalType: "bool", }, ], - name: "CurrentFundDeployerSet", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "claimOwnership", + inputs: [], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "deployVaultProxy", inputs: [ { - indexed: true, - internalType: "address", - name: "vaultProxy", + name: "_vaultLib", type: "address", - }, - { - indexed: true, internalType: "address", - name: "prevFundDeployer", - type: "address", }, { - indexed: true, - internalType: "address", - name: "nextFundDeployer", + name: "_owner", type: "address", + internalType: "address", }, { - indexed: false, - internalType: "address", - name: "nextVaultAccessor", + name: "_vaultAccessor", type: "address", + internalType: "address", }, { - indexed: false, - internalType: "address", - name: "nextVaultLib", - type: "address", + name: "_fundName", + type: "string", + internalType: "string", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "executableTimestamp", - type: "uint256", + name: "vaultProxy_", + type: "address", + internalType: "address", }, ], - name: "MigrationCancelled", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "executeMigration", inputs: [ { - indexed: true, - internalType: "address", - name: "vaultProxy", + name: "_vaultProxy", type: "address", - }, - { - indexed: true, internalType: "address", - name: "prevFundDeployer", - type: "address", }, { - indexed: true, - internalType: "address", - name: "nextFundDeployer", - type: "address", + name: "_bypassFailure", + type: "bool", + internalType: "bool", }, + ], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "getCurrentFundDeployer", + inputs: [], + outputs: [ { - indexed: false, - internalType: "address", - name: "nextVaultAccessor", + name: "currentFundDeployer_", type: "address", + internalType: "address", }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getFundDeployerForVaultProxy", + inputs: [ { - indexed: false, - internalType: "address", - name: "nextVaultLib", + name: "_vaultProxy", type: "address", + internalType: "address", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "executableTimestamp", - type: "uint256", + name: "fundDeployer_", + type: "address", + internalType: "address", }, ], - name: "MigrationExecuted", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "getMigrationRequestDetailsForVaultProxy", inputs: [ { - indexed: false, - internalType: "bytes", - name: "failureReturnData", - type: "bytes", - }, - { - indexed: true, - internalType: "address", - name: "vaultProxy", + name: "_vaultProxy", type: "address", + internalType: "address", }, + ], + outputs: [ { - indexed: true, - internalType: "address", - name: "prevFundDeployer", + name: "nextFundDeployer_", type: "address", + internalType: "address", }, { - indexed: true, - internalType: "address", - name: "nextFundDeployer", + name: "nextVaultAccessor_", type: "address", + internalType: "address", }, { - indexed: false, - internalType: "address", - name: "nextVaultAccessor", + name: "nextVaultLib_", type: "address", + internalType: "address", }, { - indexed: false, - internalType: "address", - name: "nextVaultLib", - type: "address", + name: "executableTimestamp_", + type: "uint256", + internalType: "uint256", }, ], - name: "MigrationInCancelHookFailed", - type: "event", + stateMutability: "view", }, { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes", - name: "failureReturnData", - type: "bytes", - }, + type: "function", + name: "getMigrationTimelock", + inputs: [], + outputs: [ { - indexed: false, - internalType: "enum IMigrationHookHandler.MigrationOutHook", - name: "hook", - type: "uint8", + name: "migrationTimelock_", + type: "uint256", + internalType: "uint256", }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getNominatedOwner", + inputs: [], + outputs: [ { - indexed: true, - internalType: "address", - name: "vaultProxy", + name: "nominatedOwner_", type: "address", - }, - { - indexed: true, internalType: "address", - name: "prevFundDeployer", - type: "address", }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getOwner", + inputs: [], + outputs: [ { - indexed: true, - internalType: "address", - name: "nextFundDeployer", + name: "owner_", type: "address", - }, - { - indexed: false, internalType: "address", - name: "nextVaultAccessor", - type: "address", }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getSharesTokenSymbol", + inputs: [], + outputs: [ { - indexed: false, - internalType: "address", - name: "nextVaultLib", - type: "address", + name: "sharesTokenSymbol_", + type: "string", + internalType: "string", }, ], - name: "MigrationOutHookFailed", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "getTimelockRemainingForMigrationRequest", inputs: [ { - indexed: true, - internalType: "address", - name: "vaultProxy", + name: "_vaultProxy", type: "address", - }, - { - indexed: true, internalType: "address", - name: "prevFundDeployer", - type: "address", }, + ], + outputs: [ { - indexed: true, - internalType: "address", - name: "nextFundDeployer", - type: "address", + name: "secondsRemaining_", + type: "uint256", + internalType: "uint256", }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "hasExecutableMigrationRequest", + inputs: [ { - indexed: false, - internalType: "address", - name: "nextVaultAccessor", + name: "_vaultProxy", type: "address", - }, - { - indexed: false, internalType: "address", - name: "nextVaultLib", - type: "address", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "executableTimestamp", - type: "uint256", + name: "hasExecutableRequest_", + type: "bool", + internalType: "bool", }, ], - name: "MigrationSignaled", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "hasMigrationRequest", inputs: [ { - indexed: false, - internalType: "uint256", - name: "prevTimelock", - type: "uint256", + name: "_vaultProxy", + type: "address", + internalType: "address", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "nextTimelock", - type: "uint256", + name: "hasMigrationRequest_", + type: "bool", + internalType: "bool", }, ], - name: "MigrationTimelockSet", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "removeNominatedOwner", + inputs: [], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "setCurrentFundDeployer", inputs: [ { - indexed: true, - internalType: "address", - name: "nominatedOwner", + name: "_nextFundDeployer", type: "address", + internalType: "address", }, ], - name: "NominatedOwnerRemoved", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "setMigrationTimelock", inputs: [ { - indexed: true, - internalType: "address", - name: "nominatedOwner", - type: "address", + name: "_nextTimelock", + type: "uint256", + internalType: "uint256", }, ], - name: "NominatedOwnerSet", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "setNominatedOwner", inputs: [ { - indexed: true, - internalType: "address", - name: "prevOwner", + name: "_nextNominatedOwner", type: "address", - }, - { - indexed: true, internalType: "address", - name: "nextOwner", - type: "address", }, ], - name: "OwnershipTransferred", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "setSharesTokenSymbol", inputs: [ { - indexed: false, - internalType: "string", name: "_nextSymbol", type: "string", + internalType: "string", }, ], - name: "SharesTokenSymbolSet", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "signalMigration", inputs: [ { - indexed: true, - internalType: "address", - name: "fundDeployer", + name: "_vaultProxy", type: "address", - }, - { - indexed: true, internalType: "address", - name: "owner", - type: "address", }, { - indexed: false, - internalType: "address", - name: "vaultProxy", + name: "_nextVaultAccessor", type: "address", - }, - { - indexed: true, internalType: "address", - name: "vaultLib", - type: "address", }, { - indexed: false, - internalType: "address", - name: "vaultAccessor", + name: "_nextVaultLib", type: "address", + internalType: "address", }, { - indexed: false, - internalType: "string", - name: "fundName", - type: "string", + name: "_bypassFailure", + type: "bool", + internalType: "bool", }, ], - name: "VaultProxyDeployed", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { + type: "event", + name: "CurrentFundDeployerSet", inputs: [ { - internalType: "address", - name: "_vaultProxy", + name: "prevFundDeployer", type: "address", + indexed: false, + internalType: "address", }, { - internalType: "bool", - name: "_bypassFailure", - type: "bool", + name: "nextFundDeployer", + type: "address", + indexed: false, + internalType: "address", }, ], - name: "cancelMigration", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "claimOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "MigrationCancelled", inputs: [ { - internalType: "address", - name: "_vaultLib", + name: "vaultProxy", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "address", - name: "_owner", + name: "prevFundDeployer", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "address", - name: "_vaultAccessor", + name: "nextFundDeployer", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "string", - name: "_fundName", - type: "string", + name: "nextVaultAccessor", + type: "address", + indexed: false, + internalType: "address", }, - ], - name: "deployVaultProxy", - outputs: [ { - internalType: "address", - name: "vaultProxy_", + name: "nextVaultLib", type: "address", + indexed: false, + internalType: "address", + }, + { + name: "executableTimestamp", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "MigrationExecuted", inputs: [ { - internalType: "address", - name: "_vaultProxy", + name: "vaultProxy", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "bool", - name: "_bypassFailure", - type: "bool", + name: "prevFundDeployer", + type: "address", + indexed: true, + internalType: "address", }, - ], - name: "executeMigration", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "getCurrentFundDeployer", - outputs: [ { - internalType: "address", - name: "currentFundDeployer_", + name: "nextFundDeployer", type: "address", + indexed: true, + internalType: "address", }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ { - internalType: "address", - name: "_vaultProxy", + name: "nextVaultAccessor", type: "address", + indexed: false, + internalType: "address", }, - ], - name: "getFundDeployerForVaultProxy", - outputs: [ { - internalType: "address", - name: "fundDeployer_", + name: "nextVaultLib", type: "address", + indexed: false, + internalType: "address", + }, + { + name: "executableTimestamp", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { + type: "event", + name: "MigrationInCancelHookFailed", inputs: [ { - internalType: "address", - name: "_vaultProxy", - type: "address", + name: "failureReturnData", + type: "bytes", + indexed: false, + internalType: "bytes", }, - ], - name: "getMigrationRequestDetailsForVaultProxy", - outputs: [ { - internalType: "address", - name: "nextFundDeployer_", + name: "vaultProxy", type: "address", + indexed: true, + internalType: "address", }, { + name: "prevFundDeployer", + type: "address", + indexed: true, internalType: "address", - name: "nextVaultAccessor_", + }, + { + name: "nextFundDeployer", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "address", - name: "nextVaultLib_", + name: "nextVaultAccessor", type: "address", + indexed: false, + internalType: "address", }, { - internalType: "uint256", - name: "executableTimestamp_", - type: "uint256", + name: "nextVaultLib", + type: "address", + indexed: false, + internalType: "address", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { - inputs: [], - name: "getMigrationTimelock", - outputs: [ + type: "event", + name: "MigrationOutHookFailed", + inputs: [ { - internalType: "uint256", - name: "migrationTimelock_", - type: "uint256", + name: "failureReturnData", + type: "bytes", + indexed: false, + internalType: "bytes", + }, + { + name: "hook", + type: "uint8", + indexed: false, + internalType: "enum IMigrationHookHandler.MigrationOutHook", }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getNominatedOwner", - outputs: [ { + name: "vaultProxy", + type: "address", + indexed: true, internalType: "address", - name: "nominatedOwner_", + }, + { + name: "prevFundDeployer", type: "address", + indexed: true, + internalType: "address", }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getOwner", - outputs: [ { + name: "nextFundDeployer", + type: "address", + indexed: true, internalType: "address", - name: "owner_", + }, + { + name: "nextVaultAccessor", type: "address", + indexed: false, + internalType: "address", }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getSharesTokenSymbol", - outputs: [ { - internalType: "string", - name: "sharesTokenSymbol_", - type: "string", + name: "nextVaultLib", + type: "address", + indexed: false, + internalType: "address", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { + type: "event", + name: "MigrationSignaled", inputs: [ { + name: "vaultProxy", + type: "address", + indexed: true, internalType: "address", - name: "_vaultProxy", + }, + { + name: "prevFundDeployer", type: "address", + indexed: true, + internalType: "address", }, - ], - name: "getTimelockRemainingForMigrationRequest", - outputs: [ { - internalType: "uint256", - name: "secondsRemaining_", - type: "uint256", + name: "nextFundDeployer", + type: "address", + indexed: true, + internalType: "address", }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ { + name: "nextVaultAccessor", + type: "address", + indexed: false, internalType: "address", - name: "_vaultProxy", + }, + { + name: "nextVaultLib", type: "address", + indexed: false, + internalType: "address", }, - ], - name: "hasExecutableMigrationRequest", - outputs: [ { - internalType: "bool", - name: "hasExecutableRequest_", - type: "bool", + name: "executableTimestamp", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { + type: "event", + name: "MigrationTimelockSet", inputs: [ { - internalType: "address", - name: "_vaultProxy", - type: "address", + name: "prevTimelock", + type: "uint256", + indexed: false, + internalType: "uint256", }, - ], - name: "hasMigrationRequest", - outputs: [ { - internalType: "bool", - name: "hasMigrationRequest_", - type: "bool", + name: "nextTimelock", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "removeNominatedOwner", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "NominatedOwnerRemoved", inputs: [ { - internalType: "address", - name: "_nextFundDeployer", + name: "nominatedOwner", type: "address", + indexed: true, + internalType: "address", }, ], - name: "setCurrentFundDeployer", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "NominatedOwnerSet", inputs: [ { - internalType: "uint256", - name: "_nextTimelock", - type: "uint256", + name: "nominatedOwner", + type: "address", + indexed: true, + internalType: "address", }, ], - name: "setMigrationTimelock", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "OwnershipTransferred", inputs: [ { + name: "prevOwner", + type: "address", + indexed: true, internalType: "address", - name: "_nextNominatedOwner", + }, + { + name: "nextOwner", type: "address", + indexed: true, + internalType: "address", }, ], - name: "setNominatedOwner", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "SharesTokenSymbolSet", inputs: [ { - internalType: "string", name: "_nextSymbol", type: "string", + indexed: false, + internalType: "string", }, ], - name: "setSharesTokenSymbol", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "VaultProxyDeployed", inputs: [ { - internalType: "address", - name: "_vaultProxy", + name: "fundDeployer", type: "address", + indexed: true, + internalType: "address", }, { + name: "owner", + type: "address", + indexed: true, internalType: "address", - name: "_nextVaultAccessor", + }, + { + name: "vaultProxy", type: "address", + indexed: false, + internalType: "address", }, { + name: "vaultLib", + type: "address", + indexed: true, internalType: "address", - name: "_nextVaultLib", + }, + { + name: "vaultAccessor", type: "address", + indexed: false, + internalType: "address", }, { - internalType: "bool", - name: "_bypassFailure", - type: "bool", + name: "fundName", + type: "string", + indexed: false, + internalType: "string", }, ], - name: "signalMigration", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IERC4626Adapter.ts b/packages/abis/src/abis/IERC4626Adapter.ts index 313267eb..9f19fb91 100644 --- a/packages/abis/src/abis/IERC4626Adapter.ts +++ b/packages/abis/src/abis/IERC4626Adapter.ts @@ -1,238 +1,238 @@ export const IERC4626Adapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "lend", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "lend", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "redeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "redeem", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IERC4626PriceFeed.ts b/packages/abis/src/abis/IERC4626PriceFeed.ts index 24637a47..c6b6b1f0 100644 --- a/packages/abis/src/abis/IERC4626PriceFeed.ts +++ b/packages/abis/src/abis/IERC4626PriceFeed.ts @@ -1,50 +1,50 @@ export const IERC4626PriceFeed = [ { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IEntranceRateBurnFee.ts b/packages/abis/src/abis/IEntranceRateBurnFee.ts index a5e11632..3f77490f 100644 --- a/packages/abis/src/abis/IEntranceRateBurnFee.ts +++ b/packages/abis/src/abis/IEntranceRateBurnFee.ts @@ -1,311 +1,311 @@ export const IEntranceRateBurnFee = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_feeManager", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "rate", - type: "uint256", }, ], - name: "FundSettingsAdded", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "activateForFund", inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "", type: "address", - }, - { - indexed: true, internalType: "address", - name: "payer", - type: "address", }, { - indexed: false, - internalType: "uint256", - name: "sharesQuantity", - type: "uint256", - }, - ], - name: "Settled", - type: "event", - }, - { - inputs: [ - { - internalType: "address", name: "", type: "address", - }, - { internalType: "address", - name: "", - type: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_settingsData", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getFeeManager", + inputs: [], outputs: [ { - internalType: "address", name: "feeManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getRateForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getRateForFund", outputs: [ { - internalType: "uint256", name: "rate_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getRecipientForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "getRecipientForFund", outputs: [ { - internalType: "address", name: "recipient_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getSettlementType", + inputs: [], outputs: [ { - internalType: "enum IFeeManager.SettlementType", name: "settlementType_", type: "uint8", + internalType: "enum IFeeManager.SettlementType", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "payout", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "payout", outputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settle", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "_settlementData", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "settle", outputs: [ { - internalType: "enum IFeeManager.SettlementType", name: "settlementType_", type: "uint8", + internalType: "enum IFeeManager.SettlementType", }, { - internalType: "address", name: "payer_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "sharesDue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settlesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "_hook", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "settlesOnHook", outputs: [ { - internalType: "bool", name: "settles_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "update", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "update", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updatesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "updatesOnHook", outputs: [ { - internalType: "bool", name: "updates_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", + }, + { + type: "event", + name: "FundSettingsAdded", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "rate", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Settled", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "payer", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesQuantity", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IEntranceRateDirectFee.ts b/packages/abis/src/abis/IEntranceRateDirectFee.ts index 3882e6dc..a92e876d 100644 --- a/packages/abis/src/abis/IEntranceRateDirectFee.ts +++ b/packages/abis/src/abis/IEntranceRateDirectFee.ts @@ -1,348 +1,348 @@ export const IEntranceRateDirectFee = [ { - inputs: [ - { - internalType: "address", - name: "_feeManager", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "rate", - type: "uint256", - }, - ], - name: "FundSettingsAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "_feeManager", type: "address", - }, - { - indexed: true, internalType: "address", - name: "recipient", - type: "address", }, ], - name: "RecipientSetForFund", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "activateForFund", inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "", type: "address", - }, - { - indexed: true, internalType: "address", - name: "payer", - type: "address", }, { - indexed: false, - internalType: "uint256", - name: "sharesQuantity", - type: "uint256", - }, - ], - name: "Settled", - type: "event", - }, - { - inputs: [ - { - internalType: "address", name: "", type: "address", - }, - { internalType: "address", - name: "", - type: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_settingsData", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getFeeManager", + inputs: [], outputs: [ { - internalType: "address", name: "feeManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getRateForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getRateForFund", outputs: [ { - internalType: "uint256", name: "rate_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getRecipientForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getRecipientForFund", outputs: [ { - internalType: "address", name: "recipient_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getSettlementType", + inputs: [], outputs: [ { - internalType: "enum IFeeManager.SettlementType", name: "settlementType_", type: "uint8", + internalType: "enum IFeeManager.SettlementType", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "payout", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "payout", outputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setRecipientForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_recipient", type: "address", + internalType: "address", }, ], - name: "setRecipientForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settle", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "_settlementData", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "settle", outputs: [ { - internalType: "enum IFeeManager.SettlementType", name: "settlementType_", type: "uint8", + internalType: "enum IFeeManager.SettlementType", }, { - internalType: "address", name: "payer_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "sharesDue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settlesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "_hook", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "settlesOnHook", outputs: [ { - internalType: "bool", name: "settles_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "update", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "update", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updatesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "updatesOnHook", outputs: [ { - internalType: "bool", name: "updates_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", + }, + { + type: "event", + name: "FundSettingsAdded", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "rate", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "RecipientSetForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "recipient", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Settled", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "payer", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesQuantity", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IExitRateBurnFee.ts b/packages/abis/src/abis/IExitRateBurnFee.ts index c08b0aa8..6f503574 100644 --- a/packages/abis/src/abis/IExitRateBurnFee.ts +++ b/packages/abis/src/abis/IExitRateBurnFee.ts @@ -1,342 +1,342 @@ export const IExitRateBurnFee = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_feeManager", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "inKindRate", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "specificAssetsRate", - type: "uint256", }, ], - name: "FundSettingsAdded", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "activateForFund", inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "", type: "address", - }, - { - indexed: true, internalType: "address", - name: "payer", - type: "address", }, { - indexed: false, - internalType: "uint256", - name: "sharesQuantity", - type: "uint256", - }, - { - indexed: true, - internalType: "bool", - name: "forSpecificAssets", - type: "bool", - }, - ], - name: "Settled", - type: "event", - }, - { - inputs: [ - { - internalType: "address", name: "", type: "address", - }, - { internalType: "address", - name: "", - type: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_settingsData", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getFeeManager", + inputs: [], outputs: [ { - internalType: "address", name: "feeManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getInKindRateForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getInKindRateForFund", outputs: [ { - internalType: "uint256", name: "rate_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getRecipientForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "getRecipientForFund", outputs: [ { - internalType: "address", name: "recipient_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getSettlementType", + inputs: [], outputs: [ { - internalType: "enum IFeeManager.SettlementType", name: "settlementType_", type: "uint8", + internalType: "enum IFeeManager.SettlementType", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getSpecificAssetsRateForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getSpecificAssetsRateForFund", outputs: [ { - internalType: "uint256", name: "rate_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "payout", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "payout", outputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settle", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "_settlementData", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "settle", outputs: [ { - internalType: "enum IFeeManager.SettlementType", name: "settlementType_", type: "uint8", + internalType: "enum IFeeManager.SettlementType", }, { - internalType: "address", name: "payer_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "sharesDue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settlesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "_hook", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "settlesOnHook", outputs: [ { - internalType: "bool", name: "settles_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "update", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "update", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updatesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "updatesOnHook", outputs: [ { - internalType: "bool", name: "updates_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", + }, + { + type: "event", + name: "FundSettingsAdded", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "inKindRate", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "specificAssetsRate", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Settled", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "payer", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesQuantity", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "forSpecificAssets", + type: "bool", + indexed: true, + internalType: "bool", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IExitRateDirectFee.ts b/packages/abis/src/abis/IExitRateDirectFee.ts index 224c388b..64282fc4 100644 --- a/packages/abis/src/abis/IExitRateDirectFee.ts +++ b/packages/abis/src/abis/IExitRateDirectFee.ts @@ -1,379 +1,379 @@ export const IExitRateDirectFee = [ { - inputs: [ - { - internalType: "address", - name: "_feeManager", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "inKindRate", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "specificAssetsRate", - type: "uint256", - }, - ], - name: "FundSettingsAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "_feeManager", type: "address", - }, - { - indexed: true, internalType: "address", - name: "recipient", - type: "address", }, ], - name: "RecipientSetForFund", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "activateForFund", inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "", type: "address", - }, - { - indexed: true, internalType: "address", - name: "payer", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "sharesQuantity", - type: "uint256", - }, - { - indexed: true, - internalType: "bool", - name: "forSpecificAssets", - type: "bool", }, - ], - name: "Settled", - type: "event", - }, - { - inputs: [ { - internalType: "address", name: "", type: "address", - }, - { internalType: "address", - name: "", - type: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_settingsData", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getFeeManager", + inputs: [], outputs: [ { - internalType: "address", name: "feeManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getInKindRateForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getInKindRateForFund", outputs: [ { - internalType: "uint256", name: "rate_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getRecipientForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getRecipientForFund", outputs: [ { - internalType: "address", name: "recipient_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getSettlementType", + inputs: [], outputs: [ { - internalType: "enum IFeeManager.SettlementType", name: "settlementType_", type: "uint8", + internalType: "enum IFeeManager.SettlementType", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getSpecificAssetsRateForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getSpecificAssetsRateForFund", outputs: [ { - internalType: "uint256", name: "rate_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "payout", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "payout", outputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setRecipientForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_recipient", type: "address", + internalType: "address", }, ], - name: "setRecipientForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settle", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "_settlementData", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "settle", outputs: [ { - internalType: "enum IFeeManager.SettlementType", name: "settlementType_", type: "uint8", + internalType: "enum IFeeManager.SettlementType", }, { - internalType: "address", name: "payer_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "sharesDue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settlesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "_hook", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "settlesOnHook", outputs: [ { - internalType: "bool", name: "settles_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "update", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "update", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updatesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "updatesOnHook", outputs: [ { - internalType: "bool", name: "updates_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", + }, + { + type: "event", + name: "FundSettingsAdded", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "inKindRate", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "specificAssetsRate", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "RecipientSetForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "recipient", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Settled", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "payer", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesQuantity", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "forSpecificAssets", + type: "bool", + indexed: true, + internalType: "bool", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IExternalPosition.ts b/packages/abis/src/abis/IExternalPosition.ts index 5c2a1ee1..50b2ca31 100644 --- a/packages/abis/src/abis/IExternalPosition.ts +++ b/packages/abis/src/abis/IExternalPosition.ts @@ -1,64 +1,64 @@ export const IExternalPosition = [ { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", - name: "", + name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", - name: "", + name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", - name: "", + name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", - name: "", + name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", - name: "", + name: "_data", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", - name: "", + name: "_data", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IExternalPositionFactory.ts b/packages/abis/src/abis/IExternalPositionFactory.ts index 422488d7..3f89de4e 100644 --- a/packages/abis/src/abis/IExternalPositionFactory.ts +++ b/packages/abis/src/abis/IExternalPositionFactory.ts @@ -1,282 +1,282 @@ export const IExternalPositionFactory = [ { - inputs: [ - { - internalType: "address", - name: "_dispatcher", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "vaultProxy", - type: "address", - }, - { - indexed: true, - internalType: "uint256", - name: "typeId", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "constructLib", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "constructData", - type: "bytes", - }, - ], - name: "PositionDeployed", - type: "event", - }, - { - anonymous: false, inputs: [ { - indexed: false, - internalType: "address", - name: "positionDeployer", + name: "_dispatcher", type: "address", - }, - ], - name: "PositionDeployerAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, internalType: "address", - name: "positionDeployer", - type: "address", }, ], - name: "PositionDeployerRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "typeId", - type: "uint256", - }, - { - indexed: false, - internalType: "string", - name: "label", - type: "string", - }, - ], - name: "PositionTypeAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "typeId", - type: "uint256", - }, - { - indexed: false, - internalType: "string", - name: "label", - type: "string", - }, - ], - name: "PositionTypeLabelUpdated", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "addNewPositionTypes", inputs: [ { - internalType: "string[]", name: "_labels", type: "string[]", + internalType: "string[]", }, ], - name: "addNewPositionTypes", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addPositionDeployers", inputs: [ { - internalType: "address[]", name: "_accounts", type: "address[]", + internalType: "address[]", }, ], - name: "addPositionDeployers", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "deploy", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_typeId", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_constructLib", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_constructData", type: "bytes", + internalType: "bytes", }, ], - name: "deploy", outputs: [ { - internalType: "address", name: "externalPositionProxy_", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getDispatcher", + inputs: [], outputs: [ { - internalType: "address", name: "dispatcher_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getLabelForPositionType", inputs: [ { - internalType: "uint256", name: "_typeId", type: "uint256", + internalType: "uint256", }, ], - name: "getLabelForPositionType", outputs: [ { - internalType: "string", name: "label_", type: "string", + internalType: "string", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPositionTypeCounter", + inputs: [], outputs: [ { - internalType: "uint256", name: "positionTypeCounter_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isExternalPositionProxy", inputs: [ { - internalType: "address", name: "_account", type: "address", + internalType: "address", }, ], - name: "isExternalPositionProxy", outputs: [ { - internalType: "bool", name: "isExternalPositionProxy_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isPositionDeployer", inputs: [ { - internalType: "address", name: "_account", type: "address", + internalType: "address", }, ], - name: "isPositionDeployer", outputs: [ { - internalType: "bool", name: "isPositionDeployer_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "removePositionDeployers", inputs: [ { - internalType: "address[]", name: "_accounts", type: "address[]", + internalType: "address[]", }, ], - name: "removePositionDeployers", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updatePositionTypeLabels", inputs: [ { - internalType: "uint256[]", name: "_typeIds", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "string[]", name: "_labels", type: "string[]", + internalType: "string[]", }, ], - name: "updatePositionTypeLabels", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "PositionDeployed", + inputs: [ + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "typeId", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "constructLib", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "constructData", + type: "bytes", + indexed: false, + internalType: "bytes", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PositionDeployerAdded", + inputs: [ + { + name: "positionDeployer", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PositionDeployerRemoved", + inputs: [ + { + name: "positionDeployer", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PositionTypeAdded", + inputs: [ + { + name: "typeId", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "label", + type: "string", + indexed: false, + internalType: "string", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PositionTypeLabelUpdated", + inputs: [ + { + name: "typeId", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "label", + type: "string", + indexed: false, + internalType: "string", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IExternalPositionManager.ts b/packages/abis/src/abis/IExternalPositionManager.ts index 79db7a91..5cc95996 100644 --- a/packages/abis/src/abis/IExternalPositionManager.ts +++ b/packages/abis/src/abis/IExternalPositionManager.ts @@ -1,357 +1,357 @@ export const IExternalPositionManager = [ { - inputs: [ - { - internalType: "address", - name: "_fundDeployer", - type: "address", - }, - { - internalType: "address", - name: "_externalPositionFactory", - type: "address", - }, - { - internalType: "address", - name: "_policyManager", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "caller", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "externalPosition", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "actionId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "actionArgs", - type: "bytes", - }, - { - indexed: false, - internalType: "address[]", - name: "assetsToTransfer", - type: "address[]", - }, - { - indexed: false, - internalType: "uint256[]", - name: "amountsToTransfer", - type: "uint256[]", - }, - { - indexed: false, - internalType: "address[]", - name: "assetsToReceive", - type: "address[]", - }, - ], - name: "CallOnExternalPositionExecutedForFund", - type: "event", - }, - { - anonymous: false, inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "vaultProxy", + name: "_fundDeployer", type: "address", - }, - { - indexed: false, internalType: "address", - name: "externalPosition", - type: "address", - }, - { - indexed: true, - internalType: "uint256", - name: "externalPositionTypeId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "ExternalPositionDeployedForFund", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "typeId", - type: "uint256", }, { - indexed: false, - internalType: "address", - name: "lib", + name: "_externalPositionFactory", type: "address", - }, - { - indexed: false, internalType: "address", - name: "parser", - type: "address", }, - ], - name: "ExternalPositionTypeInfoUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "_policyManager", type: "address", - }, - { - indexed: true, internalType: "address", - name: "vaultProxy", - type: "address", }, ], - name: "ValidatedVaultProxySetForFund", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "deactivateForFund", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getExternalPositionFactory", + inputs: [], outputs: [ { - internalType: "address", name: "externalPositionFactory_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getExternalPositionLibForType", inputs: [ { - internalType: "uint256", name: "_typeId", type: "uint256", + internalType: "uint256", }, ], - name: "getExternalPositionLibForType", outputs: [ { - internalType: "address", name: "lib_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getExternalPositionParserForType", inputs: [ { - internalType: "uint256", name: "_typeId", type: "uint256", + internalType: "uint256", }, ], - name: "getExternalPositionParserForType", outputs: [ { - internalType: "address", name: "parser_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getVaultProxyForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getVaultProxyForFund", outputs: [ { - internalType: "address", name: "vaultProxy_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "receiveCallFromComptroller", inputs: [ { - internalType: "address", name: "_caller", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_callArgs", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromComptroller", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setConfigForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "setConfigForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updateExternalPositionTypesInfo", inputs: [ { - internalType: "uint256[]", name: "_typeIds", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "_libs", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_parsers", type: "address[]", + internalType: "address[]", }, ], - name: "updateExternalPositionTypesInfo", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "CallOnExternalPositionExecutedForFund", + inputs: [ + { + name: "caller", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "externalPosition", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "actionId", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "actionArgs", + type: "bytes", + indexed: false, + internalType: "bytes", + }, + { + name: "assetsToTransfer", + type: "address[]", + indexed: false, + internalType: "address[]", + }, + { + name: "amountsToTransfer", + type: "uint256[]", + indexed: false, + internalType: "uint256[]", + }, + { + name: "assetsToReceive", + type: "address[]", + indexed: false, + internalType: "address[]", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ExternalPositionDeployedForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "externalPosition", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "externalPositionTypeId", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "data", + type: "bytes", + indexed: false, + internalType: "bytes", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ExternalPositionTypeInfoUpdated", + inputs: [ + { + name: "typeId", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "lib", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "parser", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ValidatedVaultProxySetForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IExternalPositionProxy.ts b/packages/abis/src/abis/IExternalPositionProxy.ts index 20d8139a..43ad990a 100644 --- a/packages/abis/src/abis/IExternalPositionProxy.ts +++ b/packages/abis/src/abis/IExternalPositionProxy.ts @@ -1,75 +1,75 @@ export const IExternalPositionProxy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_typeId", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_constructLib", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_constructData", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - stateMutability: "payable", type: "fallback", + stateMutability: "payable", }, { - inputs: [], + type: "receive", + stateMutability: "payable", + }, + { + type: "function", name: "getExternalPositionType", + inputs: [], outputs: [ { - internalType: "uint256", name: "externalPositionType_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getVaultProxy", + inputs: [], outputs: [ { - internalType: "address", name: "vaultProxy_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_data", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", }, ] as const; diff --git a/packages/abis/src/abis/IExternalPositionVault.ts b/packages/abis/src/abis/IExternalPositionVault.ts index a5011816..56ae3221 100644 --- a/packages/abis/src/abis/IExternalPositionVault.ts +++ b/packages/abis/src/abis/IExternalPositionVault.ts @@ -1,21 +1,21 @@ export const IExternalPositionVault = [ { + type: "function", + name: "getExternalPositionLibForType", inputs: [ { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "getExternalPositionLibForType", outputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IFee.ts b/packages/abis/src/abis/IFee.ts index 157bee7a..7c128390 100644 --- a/packages/abis/src/abis/IFee.ts +++ b/packages/abis/src/abis/IFee.ts @@ -1,211 +1,211 @@ export const IFee = [ { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_settingsData", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getRecipientForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getRecipientForFund", outputs: [ { - internalType: "address", name: "recipient_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "payout", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "payout", outputs: [ { - internalType: "bool", name: "isPayable_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settle", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "_hook", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "_settlementData", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "_gav", type: "uint256", + internalType: "uint256", }, ], - name: "settle", outputs: [ { - internalType: "enum IFeeManager.SettlementType", name: "settlementType_", type: "uint8", + internalType: "enum IFeeManager.SettlementType", }, { - internalType: "address", name: "payer_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "sharesDue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settlesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "_hook", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "settlesOnHook", outputs: [ { - internalType: "bool", name: "settles_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "update", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "_hook", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "_settlementData", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "_gav", type: "uint256", + internalType: "uint256", }, ], - name: "update", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updatesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "_hook", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "updatesOnHook", outputs: [ { - internalType: "bool", name: "updates_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IFeeManager.ts b/packages/abis/src/abis/IFeeManager.ts index 3049cf73..e81568ee 100644 --- a/packages/abis/src/abis/IFeeManager.ts +++ b/packages/abis/src/abis/IFeeManager.ts @@ -1,308 +1,308 @@ export const IFeeManager = [ { - inputs: [ - { - internalType: "address", - name: "_fundDeployer", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "fee", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "settingsData", - type: "bytes", - }, - ], - name: "FeeEnabledForFund", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "fee", - type: "address", - }, - { - indexed: true, - internalType: "enum IFeeManager.SettlementType", - name: "settlementType", - type: "uint8", - }, - { - indexed: false, - internalType: "address", - name: "payer", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "payee", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "sharesDue", - type: "uint256", - }, - ], - name: "FeeSettledForFund", - type: "event", - }, - { - anonymous: false, inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "fee", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "payee", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "sharesDue", - type: "uint256", - }, - ], - name: "SharesOutstandingPaidForFund", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "_fundDeployer", type: "address", - }, - { - indexed: true, internalType: "address", - name: "vaultProxy", - type: "address", }, ], - name: "ValidatedVaultProxySetForFund", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "deactivateForFund", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getEnabledFeesForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getEnabledFeesForFund", outputs: [ { - internalType: "address[]", name: "enabledFees_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getFeeSharesOutstandingForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_fee", type: "address", + internalType: "address", }, ], - name: "getFeeSharesOutstandingForFund", outputs: [ { - internalType: "uint256", name: "sharesOutstanding_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getVaultProxyForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getVaultProxyForFund", outputs: [ { - internalType: "address", name: "vaultProxy_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "invokeHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "_hook", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "_settlementData", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "_gav", type: "uint256", + internalType: "uint256", }, ], - name: "invokeHook", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "receiveCallFromComptroller", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_callArgs", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromComptroller", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setConfigForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_configData", type: "bytes", + internalType: "bytes", }, ], - name: "setConfigForFund", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "FeeEnabledForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "fee", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "settingsData", + type: "bytes", + indexed: false, + internalType: "bytes", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "FeeSettledForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "fee", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "settlementType", + type: "uint8", + indexed: true, + internalType: "enum IFeeManager.SettlementType", + }, + { + name: "payer", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "payee", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "sharesDue", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "SharesOutstandingPaidForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "fee", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "payee", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesDue", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ValidatedVaultProxySetForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IFundDataProviderRouter.ts b/packages/abis/src/abis/IFundDataProviderRouter.ts index 7eaac239..ccf29319 100644 --- a/packages/abis/src/abis/IFundDataProviderRouter.ts +++ b/packages/abis/src/abis/IFundDataProviderRouter.ts @@ -1,88 +1,88 @@ export const IFundDataProviderRouter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_fundValueCalculatorRouter", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "getFundValueCalculatorRouter", + inputs: [], outputs: [ { - internalType: "address", name: "fundValueCalculatorRouter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getFundValueMetrics", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getFundValueMetrics", outputs: [ { - internalType: "uint256", name: "timestamp_", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "sharesSupply_", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "gavInEth_", type: "uint256", + internalType: "uint256", }, { - internalType: "bool", name: "gavIsValid_", type: "bool", + internalType: "bool", }, { - internalType: "uint256", name: "navInEth_", type: "uint256", + internalType: "uint256", }, { - internalType: "bool", name: "navIsValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getWethToken", + inputs: [], outputs: [ { - internalType: "address", name: "wethToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IFundDeployer.ts b/packages/abis/src/abis/IFundDeployer.ts index eaa27703..132a89b6 100644 --- a/packages/abis/src/abis/IFundDeployer.ts +++ b/packages/abis/src/abis/IFundDeployer.ts @@ -1,1011 +1,1011 @@ export const IFundDeployer = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_dispatcher", type: "address", + internalType: "address", }, { - internalType: "address", name: "_gasRelayPaymasterFactory", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - anonymous: false, + type: "function", + name: "cancelMigration", inputs: [ { - indexed: false, - internalType: "address", - name: "caller", + name: "_vaultProxy", type: "address", + internalType: "address", }, - ], - name: "BuySharesOnBehalfCallerDeregistered", - type: "event", - }, - { - anonymous: false, - inputs: [ { - indexed: false, - internalType: "address", - name: "caller", - type: "address", + name: "_bypassPrevReleaseFailure", + type: "bool", + internalType: "bool", }, ], - name: "BuySharesOnBehalfCallerRegistered", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "cancelReconfiguration", inputs: [ { - indexed: false, - internalType: "address", - name: "comptrollerLib", + name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "ComptrollerLibSet", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "createMigrationRequest", inputs: [ { - indexed: true, - internalType: "address", - name: "creator", + name: "_vaultProxy", type: "address", - }, - { - indexed: false, internalType: "address", - name: "comptrollerProxy", - type: "address", }, { - indexed: true, - internalType: "address", - name: "denominationAsset", + name: "_denominationAsset", type: "address", + internalType: "address", }, { - indexed: false, - internalType: "uint256", - name: "sharesActionTimelock", + name: "_sharesActionTimelock", type: "uint256", - }, - ], - name: "ComptrollerProxyDeployed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, internalType: "uint256", - name: "nextDeactivateFeeManagerGasLimit", - type: "uint256", }, { - indexed: false, - internalType: "uint256", - name: "nextPayProtocolFeeGasLimit", - type: "uint256", + name: "_feeManagerConfigData", + type: "bytes", + internalType: "bytes", }, - ], - name: "GasLimitsForDestructCallSet", - type: "event", - }, - { - anonymous: false, - inputs: [ { - indexed: true, - internalType: "address", - name: "creator", - type: "address", + name: "_policyManagerConfigData", + type: "bytes", + internalType: "bytes", }, { - indexed: true, - internalType: "address", - name: "vaultProxy", - type: "address", + name: "_bypassPrevReleaseFailure", + type: "bool", + internalType: "bool", }, + ], + outputs: [ { - indexed: false, - internalType: "address", - name: "comptrollerProxy", + name: "comptrollerProxy_", type: "address", + internalType: "address", }, ], - name: "MigrationRequestCreated", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "createNewFund", inputs: [ { - indexed: true, - internalType: "address", - name: "creator", + name: "_fundOwner", type: "address", + internalType: "address", }, { - indexed: false, - internalType: "address", - name: "vaultProxy", - type: "address", + name: "_fundName", + type: "string", + internalType: "string", }, { - indexed: false, - internalType: "address", - name: "comptrollerProxy", - type: "address", + name: "_fundSymbol", + type: "string", + internalType: "string", }, - ], - name: "NewFundCreated", - type: "event", - }, - { - anonymous: false, - inputs: [ { - indexed: false, - internalType: "address", - name: "protocolFeeTracker", + name: "_denominationAsset", type: "address", + internalType: "address", + }, + { + name: "_sharesActionTimelock", + type: "uint256", + internalType: "uint256", + }, + { + name: "_feeManagerConfigData", + type: "bytes", + internalType: "bytes", + }, + { + name: "_policyManagerConfigData", + type: "bytes", + internalType: "bytes", }, ], - name: "ProtocolFeeTrackerSet", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: true, - internalType: "address", - name: "vaultProxy", + name: "comptrollerProxy_", type: "address", + internalType: "address", }, { - indexed: true, - internalType: "address", - name: "nextComptrollerProxy", + name: "vaultProxy_", type: "address", + internalType: "address", }, ], - name: "ReconfigurationRequestCancelled", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "createReconfigurationRequest", inputs: [ { - indexed: true, - internalType: "address", - name: "creator", + name: "_vaultProxy", type: "address", - }, - { - indexed: true, internalType: "address", - name: "vaultProxy", - type: "address", }, { - indexed: false, - internalType: "address", - name: "comptrollerProxy", + name: "_denominationAsset", type: "address", + internalType: "address", }, { - indexed: false, - internalType: "uint256", - name: "executableTimestamp", + name: "_sharesActionTimelock", type: "uint256", + internalType: "uint256", }, - ], - name: "ReconfigurationRequestCreated", - type: "event", - }, - { - anonymous: false, - inputs: [ { - indexed: true, - internalType: "address", - name: "vaultProxy", - type: "address", + name: "_feeManagerConfigData", + type: "bytes", + internalType: "bytes", }, { - indexed: true, - internalType: "address", - name: "prevComptrollerProxy", - type: "address", + name: "_policyManagerConfigData", + type: "bytes", + internalType: "bytes", }, + ], + outputs: [ { - indexed: true, - internalType: "address", - name: "nextComptrollerProxy", + name: "comptrollerProxy_", type: "address", + internalType: "address", }, ], - name: "ReconfigurationRequestExecuted", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "deregisterBuySharesOnBehalfCallers", inputs: [ { - indexed: false, - internalType: "uint256", - name: "nextTimelock", - type: "uint256", + name: "_callers", + type: "address[]", + internalType: "address[]", }, ], - name: "ReconfigurationTimelockSet", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, - inputs: [], - name: "ReleaseIsLive", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "contractAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes4", - name: "selector", - type: "bytes4", - }, - { - indexed: false, - internalType: "bytes32", - name: "dataHash", - type: "bytes32", - }, - ], - name: "VaultCallDeregistered", - type: "event", - }, - { - anonymous: false, + type: "function", + name: "deregisterVaultCalls", inputs: [ { - indexed: true, - internalType: "address", - name: "contractAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes4", - name: "selector", - type: "bytes4", + name: "_contracts", + type: "address[]", + internalType: "address[]", }, { - indexed: false, - internalType: "bytes32", - name: "dataHash", - type: "bytes32", + name: "_selectors", + type: "bytes4[]", + internalType: "bytes4[]", }, - ], - name: "VaultCallRegistered", - type: "event", - }, - { - anonymous: false, - inputs: [ { - indexed: false, - internalType: "address", - name: "vaultLib", - type: "address", + name: "_dataHashes", + type: "bytes32[]", + internalType: "bytes32[]", }, ], - name: "VaultLibSet", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { + type: "function", + name: "executeMigration", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bool", name: "_bypassPrevReleaseFailure", type: "bool", + internalType: "bool", }, ], - name: "cancelMigration", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "executeReconfiguration", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "cancelReconfiguration", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [ + type: "function", + name: "getComptrollerLib", + inputs: [], + outputs: [ { - internalType: "address", - name: "_vaultProxy", + name: "comptrollerLib_", type: "address", - }, - { internalType: "address", - name: "_denominationAsset", - type: "address", - }, - { - internalType: "uint256", - name: "_sharesActionTimelock", - type: "uint256", - }, - { - internalType: "bytes", - name: "_feeManagerConfigData", - type: "bytes", - }, - { - internalType: "bytes", - name: "_policyManagerConfigData", - type: "bytes", - }, - { - internalType: "bool", - name: "_bypassPrevReleaseFailure", - type: "bool", }, ], - name: "createMigrationRequest", + stateMutability: "view", + }, + { + type: "function", + name: "getCreator", + inputs: [], outputs: [ { - internalType: "address", - name: "comptrollerProxy_", + name: "creator_", type: "address", + internalType: "address", }, ], - stateMutability: "nonpayable", - type: "function", + stateMutability: "view", }, { - inputs: [ + type: "function", + name: "getDispatcher", + inputs: [], + outputs: [ { - internalType: "address", - name: "_fundOwner", + name: "dispatcher_", type: "address", - }, - { - internalType: "string", - name: "_fundName", - type: "string", - }, - { - internalType: "string", - name: "_fundSymbol", - type: "string", - }, - { internalType: "address", - name: "_denominationAsset", - type: "address", }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getGasLimitsForDestructCall", + inputs: [], + outputs: [ { - internalType: "uint256", - name: "_sharesActionTimelock", + name: "deactivateFeeManagerGasLimit_", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", - name: "_feeManagerConfigData", - type: "bytes", - }, - { - internalType: "bytes", - name: "_policyManagerConfigData", - type: "bytes", + name: "payProtocolFeeGasLimit_", + type: "uint256", + internalType: "uint256", }, ], - name: "createNewFund", + stateMutability: "view", + }, + { + type: "function", + name: "getGasRelayPaymasterFactory", + inputs: [], outputs: [ { - internalType: "address", - name: "comptrollerProxy_", + name: "gasRelayPaymasterFactory_", type: "address", - }, - { internalType: "address", - name: "vaultProxy_", - type: "address", }, ], - stateMutability: "nonpayable", - type: "function", + stateMutability: "view", }, { - inputs: [ + type: "function", + name: "getGasRelayTrustedForwarder", + inputs: [], + outputs: [ { - internalType: "address", - name: "_vaultProxy", + name: "trustedForwarder_", type: "address", - }, - { internalType: "address", - name: "_denominationAsset", - type: "address", - }, - { - internalType: "uint256", - name: "_sharesActionTimelock", - type: "uint256", - }, - { - internalType: "bytes", - name: "_feeManagerConfigData", - type: "bytes", - }, - { - internalType: "bytes", - name: "_policyManagerConfigData", - type: "bytes", }, ], - name: "createReconfigurationRequest", + stateMutability: "view", + }, + { + type: "function", + name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", - name: "comptrollerProxy_", + name: "owner_", type: "address", + internalType: "address", }, ], - stateMutability: "nonpayable", - type: "function", + stateMutability: "view", }, { - inputs: [ + type: "function", + name: "getProtocolFeeTracker", + inputs: [], + outputs: [ { - internalType: "address[]", - name: "_callers", - type: "address[]", + name: "protocolFeeTracker_", + type: "address", + internalType: "address", }, ], - name: "deregisterBuySharesOnBehalfCallers", - outputs: [], - stateMutability: "nonpayable", - type: "function", + stateMutability: "view", }, { + type: "function", + name: "getReconfigurationRequestForVaultProxy", inputs: [ { - internalType: "address[]", - name: "_contracts", - type: "address[]", + name: "_vaultProxy", + type: "address", + internalType: "address", }, + ], + outputs: [ { - internalType: "bytes4[]", - name: "_selectors", - type: "bytes4[]", - }, - { - internalType: "bytes32[]", - name: "_dataHashes", - type: "bytes32[]", - }, - ], - name: "deregisterVaultCalls", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_vaultProxy", - type: "address", - }, - { - internalType: "bool", - name: "_bypassPrevReleaseFailure", - type: "bool", - }, - ], - name: "executeMigration", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_vaultProxy", - type: "address", - }, - ], - name: "executeReconfiguration", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "getComptrollerLib", - outputs: [ - { - internalType: "address", - name: "comptrollerLib_", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getCreator", - outputs: [ - { - internalType: "address", - name: "creator_", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getDispatcher", - outputs: [ - { - internalType: "address", - name: "dispatcher_", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getGasLimitsForDestructCall", - outputs: [ - { - internalType: "uint256", - name: "deactivateFeeManagerGasLimit_", - type: "uint256", - }, - { - internalType: "uint256", - name: "payProtocolFeeGasLimit_", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getGasRelayPaymasterFactory", - outputs: [ - { - internalType: "address", - name: "gasRelayPaymasterFactory_", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getGasRelayTrustedForwarder", - outputs: [ - { - internalType: "address", - name: "trustedForwarder_", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getOwner", - outputs: [ - { - internalType: "address", - name: "owner_", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getProtocolFeeTracker", - outputs: [ - { - internalType: "address", - name: "protocolFeeTracker_", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_vaultProxy", - type: "address", - }, - ], - name: "getReconfigurationRequestForVaultProxy", - outputs: [ - { + name: "reconfigurationRequest_", + type: "tuple", + internalType: "struct IFundDeployer.ReconfigurationRequest", components: [ { - internalType: "address", name: "nextComptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "executableTimestamp", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct IFundDeployer.ReconfigurationRequest", - name: "reconfigurationRequest_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getReconfigurationTimelock", + inputs: [], outputs: [ { - internalType: "uint256", name: "reconfigurationTimelock_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getVaultLib", + inputs: [], outputs: [ { - internalType: "address", name: "vaultLib_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "hasReconfigurationRequest", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "hasReconfigurationRequest", outputs: [ { - internalType: "bool", name: "hasReconfigurationRequest_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "invokeMigrationInCancelHook", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "_nextComptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "invokeMigrationInCancelHook", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "invokeMigrationOutHook", inputs: [ { - internalType: "enum IMigrationHookHandler.MigrationOutHook", name: "_hook", type: "uint8", + internalType: "enum IMigrationHookHandler.MigrationOutHook", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "invokeMigrationOutHook", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "isAllowedBuySharesOnBehalfCaller", inputs: [ { - internalType: "address", name: "_who", type: "address", + internalType: "address", }, ], - name: "isAllowedBuySharesOnBehalfCaller", outputs: [ { - internalType: "bool", name: "isAllowed_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isAllowedVaultCall", inputs: [ { - internalType: "address", name: "_contract", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes32", name: "_dataHash", type: "bytes32", + internalType: "bytes32", }, ], - name: "isAllowedVaultCall", outputs: [ { - internalType: "bool", name: "isAllowed_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isRegisteredVaultCall", inputs: [ { - internalType: "address", name: "_contract", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes32", name: "_dataHash", type: "bytes32", + internalType: "bytes32", }, ], - name: "isRegisteredVaultCall", outputs: [ { - internalType: "bool", name: "isRegistered_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [ + type: "function", + name: "registerBuySharesOnBehalfCallers", + inputs: [ { - internalType: "address[]", name: "_callers", type: "address[]", + internalType: "address[]", }, ], - name: "registerBuySharesOnBehalfCallers", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "registerVaultCalls", inputs: [ { - internalType: "address[]", name: "_contracts", type: "address[]", + internalType: "address[]", }, { - internalType: "bytes4[]", name: "_selectors", type: "bytes4[]", + internalType: "bytes4[]", }, { - internalType: "bytes32[]", name: "_dataHashes", type: "bytes32[]", + internalType: "bytes32[]", }, ], - name: "registerVaultCalls", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "releaseIsLive", + inputs: [], outputs: [ { - internalType: "bool", name: "isLive_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "setComptrollerLib", inputs: [ { - internalType: "address", name: "_comptrollerLib", type: "address", + internalType: "address", }, ], - name: "setComptrollerLib", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setGasLimitsForDestructCall", inputs: [ { - internalType: "uint32", name: "_nextDeactivateFeeManagerGasLimit", type: "uint32", + internalType: "uint32", }, { - internalType: "uint32", name: "_nextPayProtocolFeeGasLimit", type: "uint32", + internalType: "uint32", }, ], - name: "setGasLimitsForDestructCall", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setProtocolFeeTracker", inputs: [ { - internalType: "address", name: "_protocolFeeTracker", type: "address", + internalType: "address", }, ], - name: "setProtocolFeeTracker", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setReconfigurationTimelock", inputs: [ { - internalType: "uint256", name: "_nextTimelock", type: "uint256", + internalType: "uint256", }, ], - name: "setReconfigurationTimelock", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "setReleaseLive", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setVaultLib", inputs: [ { - internalType: "address", name: "_vaultLib", type: "address", + internalType: "address", }, ], - name: "setVaultLib", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "BuySharesOnBehalfCallerDeregistered", + inputs: [ + { + name: "caller", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "BuySharesOnBehalfCallerRegistered", + inputs: [ + { + name: "caller", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ComptrollerLibSet", + inputs: [ + { + name: "comptrollerLib", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ComptrollerProxyDeployed", + inputs: [ + { + name: "creator", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "comptrollerProxy", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "denominationAsset", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesActionTimelock", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "GasLimitsForDestructCallSet", + inputs: [ + { + name: "nextDeactivateFeeManagerGasLimit", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "nextPayProtocolFeeGasLimit", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "MigrationRequestCreated", + inputs: [ + { + name: "creator", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "comptrollerProxy", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "NewFundCreated", + inputs: [ + { + name: "creator", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "vaultProxy", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "comptrollerProxy", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ProtocolFeeTrackerSet", + inputs: [ + { + name: "protocolFeeTracker", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ReconfigurationRequestCancelled", + inputs: [ + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "nextComptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ReconfigurationRequestCreated", + inputs: [ + { + name: "creator", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "comptrollerProxy", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "executableTimestamp", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ReconfigurationRequestExecuted", + inputs: [ + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "prevComptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "nextComptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ReconfigurationTimelockSet", + inputs: [ + { + name: "nextTimelock", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ReleaseIsLive", + inputs: [], + anonymous: false, + }, + { + type: "event", + name: "VaultCallDeregistered", + inputs: [ + { + name: "contractAddress", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "selector", + type: "bytes4", + indexed: false, + internalType: "bytes4", + }, + { + name: "dataHash", + type: "bytes32", + indexed: false, + internalType: "bytes32", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "VaultCallRegistered", + inputs: [ + { + name: "contractAddress", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "selector", + type: "bytes4", + indexed: false, + internalType: "bytes4", + }, + { + name: "dataHash", + type: "bytes32", + indexed: false, + internalType: "bytes32", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "VaultLibSet", + inputs: [ + { + name: "vaultLib", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IFundValueCalculator.ts b/packages/abis/src/abis/IFundValueCalculator.ts index defc9d18..37d1c057 100644 --- a/packages/abis/src/abis/IFundValueCalculator.ts +++ b/packages/abis/src/abis/IFundValueCalculator.ts @@ -1,331 +1,331 @@ export const IFundValueCalculator = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_feeManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_protocolFeeTracker", type: "address", + internalType: "address", }, { - internalType: "address", name: "_valueInterpreter", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "calcGav", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "calcGav", outputs: [ { - internalType: "address", name: "denominationAsset_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "gav_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcGavInAsset", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_quoteAsset", type: "address", + internalType: "address", }, ], - name: "calcGavInAsset", outputs: [ { - internalType: "uint256", name: "gav_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcGrossShareValue", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "calcGrossShareValue", outputs: [ { - internalType: "address", name: "denominationAsset_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "grossShareValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcGrossShareValueInAsset", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_quoteAsset", type: "address", + internalType: "address", }, ], - name: "calcGrossShareValueInAsset", outputs: [ { - internalType: "uint256", name: "grossShareValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNav", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "calcNav", outputs: [ { - internalType: "address", name: "denominationAsset_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "nav_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNavInAsset", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_quoteAsset", type: "address", + internalType: "address", }, ], - name: "calcNavInAsset", outputs: [ { - internalType: "uint256", name: "nav_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNetShareValue", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "calcNetShareValue", outputs: [ { - internalType: "address", name: "denominationAsset_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "netShareValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNetShareValueInAsset", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_quoteAsset", type: "address", + internalType: "address", }, ], - name: "calcNetShareValueInAsset", outputs: [ { - internalType: "uint256", name: "netShareValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNetValueForSharesHolder", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_sharesHolder", type: "address", + internalType: "address", }, ], - name: "calcNetValueForSharesHolder", outputs: [ { - internalType: "address", name: "denominationAsset_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "netValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNetValueForSharesHolderInAsset", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_sharesHolder", type: "address", + internalType: "address", }, { - internalType: "address", name: "_quoteAsset", type: "address", + internalType: "address", }, ], - name: "calcNetValueForSharesHolderInAsset", outputs: [ { - internalType: "uint256", name: "netValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcProtocolFeeDueForFund", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "calcProtocolFeeDueForFund", outputs: [ { - internalType: "uint256", name: "sharesDue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFeeManager", + inputs: [], outputs: [ { - internalType: "address", name: "feeManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getProtocolFeeTracker", + inputs: [], outputs: [ { - internalType: "address", name: "protocolFeeTracker_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getValueInterpreter", + inputs: [], outputs: [ { - internalType: "address", name: "valueInterpreter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IFundValueCalculatorRouter.ts b/packages/abis/src/abis/IFundValueCalculatorRouter.ts index 2d300716..eb0ace8d 100644 --- a/packages/abis/src/abis/IFundValueCalculatorRouter.ts +++ b/packages/abis/src/abis/IFundValueCalculatorRouter.ts @@ -1,361 +1,361 @@ export const IFundValueCalculatorRouter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_dispatcher", type: "address", + internalType: "address", }, { - internalType: "address[]", name: "_fundDeployers", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_fundValueCalculators", type: "address[]", + internalType: "address[]", }, ], stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "fundDeployer", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "fundValueCalculator", - type: "address", - }, - ], - name: "FundValueCalculatorUpdated", - type: "event", }, { + type: "function", + name: "calcGav", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "calcGav", outputs: [ { - internalType: "address", name: "denominationAsset_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "gav_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcGavInAsset", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_quoteAsset", type: "address", + internalType: "address", }, ], - name: "calcGavInAsset", outputs: [ { - internalType: "uint256", name: "gav_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcGrossShareValue", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "calcGrossShareValue", outputs: [ { - internalType: "address", name: "denominationAsset_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "grossShareValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcGrossShareValueInAsset", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_quoteAsset", type: "address", + internalType: "address", }, ], - name: "calcGrossShareValueInAsset", outputs: [ { - internalType: "uint256", name: "grossShareValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNav", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "calcNav", outputs: [ { - internalType: "address", name: "denominationAsset_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "nav_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNavInAsset", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_quoteAsset", type: "address", + internalType: "address", }, ], - name: "calcNavInAsset", outputs: [ { - internalType: "uint256", name: "nav_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNetShareValue", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "calcNetShareValue", outputs: [ { - internalType: "address", name: "denominationAsset_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "netShareValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNetShareValueInAsset", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_quoteAsset", type: "address", + internalType: "address", }, ], - name: "calcNetShareValueInAsset", outputs: [ { - internalType: "uint256", name: "netShareValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNetValueForSharesHolder", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_sharesHolder", type: "address", + internalType: "address", }, ], - name: "calcNetValueForSharesHolder", outputs: [ { - internalType: "address", name: "denominationAsset_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "netValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNetValueForSharesHolderInAsset", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_sharesHolder", type: "address", + internalType: "address", }, { - internalType: "address", name: "_quoteAsset", type: "address", + internalType: "address", }, ], - name: "calcNetValueForSharesHolderInAsset", outputs: [ { - internalType: "uint256", name: "netValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getDispatcher", + inputs: [], outputs: [ { - internalType: "address", name: "dispatcher_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getFundValueCalculatorForFundDeployer", inputs: [ { - internalType: "address", name: "_fundDeployer", type: "address", + internalType: "address", }, ], - name: "getFundValueCalculatorForFundDeployer", outputs: [ { - internalType: "address", name: "fundValueCalculator_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getFundValueCalculatorForVault", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getFundValueCalculatorForVault", outputs: [ { - internalType: "contract IFundValueCalculator", name: "fundValueCalculatorContract_", type: "address", + internalType: "contract IFundValueCalculator", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "setFundValueCalculators", inputs: [ { - internalType: "address[]", name: "_fundDeployers", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_fundValueCalculators", type: "address[]", + internalType: "address[]", }, ], - name: "setFundValueCalculators", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "FundValueCalculatorUpdated", + inputs: [ + { + name: "fundDeployer", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "fundValueCalculator", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IFundValueCalculatorUsdWrapper.ts b/packages/abis/src/abis/IFundValueCalculatorUsdWrapper.ts index e678338a..31df858f 100644 --- a/packages/abis/src/abis/IFundValueCalculatorUsdWrapper.ts +++ b/packages/abis/src/abis/IFundValueCalculatorUsdWrapper.ts @@ -1,180 +1,180 @@ export const IFundValueCalculatorUsdWrapper = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_fundValueCalculatorRouter", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, { - internalType: "address", name: "_ethUsdAggregator", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_staleRateThreshold", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "calcGav", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "calcGav", outputs: [ { - internalType: "uint256", name: "gav_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcGrossShareValue", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "calcGrossShareValue", outputs: [ { - internalType: "uint256", name: "grossShareValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNav", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "calcNav", outputs: [ { - internalType: "uint256", name: "nav_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNetShareValue", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "calcNetShareValue", outputs: [ { - internalType: "uint256", name: "netShareValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcNetValueForSharesHolder", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_sharesHolder", type: "address", + internalType: "address", }, ], - name: "calcNetValueForSharesHolder", outputs: [ { - internalType: "uint256", name: "netValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getEthUsdAggregatorContract", + inputs: [], outputs: [ { - internalType: "contract IChainlinkAggregatorFundValueCalculatorUsdWrapper", name: "ethUsdAggregatorContract_", type: "address", + internalType: "contract IChainlinkAggregatorFundValueCalculatorUsdWrapper", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFundValueCalculatorRouter", + inputs: [], outputs: [ { - internalType: "address", name: "fundValueCalculatorRouter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getStaleRateThreshold", + inputs: [], outputs: [ { - internalType: "uint256", name: "staleRateThreshold_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getWethToken", + inputs: [], outputs: [ { - internalType: "address", name: "wethToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IGasRelayPaymasterFactory.ts b/packages/abis/src/abis/IGasRelayPaymasterFactory.ts index 2a9fc171..8b922a94 100644 --- a/packages/abis/src/abis/IGasRelayPaymasterFactory.ts +++ b/packages/abis/src/abis/IGasRelayPaymasterFactory.ts @@ -1,127 +1,127 @@ export const IGasRelayPaymasterFactory = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_dispatcher", type: "address", - }, - { internalType: "address", - name: "_paymasterLib", - type: "address", }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ { - indexed: false, - internalType: "address", - name: "nextCanonicalLib", - type: "address", - }, - ], - name: "CanonicalLibSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "caller", + name: "_paymasterLib", type: "address", - }, - { - indexed: false, internalType: "address", - name: "proxy", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "constructData", - type: "bytes", }, ], - name: "ProxyDeployed", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "deployProxy", inputs: [ { - internalType: "bytes", name: "_constructData", type: "bytes", + internalType: "bytes", }, ], - name: "deployProxy", outputs: [ { - internalType: "address", name: "proxy_", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getCanonicalLib", + inputs: [], outputs: [ { - internalType: "address", name: "canonicalLib_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getDispatcher", + inputs: [], outputs: [ { - internalType: "address", name: "dispatcher_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "setCanonicalLib", inputs: [ { - internalType: "address", name: "_nextCanonicalLib", type: "address", + internalType: "address", }, ], - name: "setCanonicalLib", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "CanonicalLibSet", + inputs: [ + { + name: "nextCanonicalLib", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ProxyDeployed", + inputs: [ + { + name: "caller", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "proxy", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "constructData", + type: "bytes", + indexed: false, + internalType: "bytes", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IGasRelayPaymasterLib.ts b/packages/abis/src/abis/IGasRelayPaymasterLib.ts index 9e4c425c..27d99452 100644 --- a/packages/abis/src/abis/IGasRelayPaymasterLib.ts +++ b/packages/abis/src/abis/IGasRelayPaymasterLib.ts @@ -1,460 +1,460 @@ export const IGasRelayPaymasterLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, { - internalType: "address", name: "_relayHub", type: "address", + internalType: "address", }, { - internalType: "address", name: "_trustedForwarder", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_depositCooldown", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_depositMaxTotal", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_relayFeeMaxBase", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_relayFeeMaxPercent", type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, internalType: "uint256", - name: "amount", - type: "uint256", }, ], - name: "Deposited", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "authorizer", - type: "address", - }, - { - indexed: false, - internalType: "bytes4", - name: "invokedSelector", - type: "bytes4", - }, - { - indexed: false, - internalType: "bool", - name: "successful", - type: "bool", - }, - ], - name: "TransactionRelayed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "Withdrawn", - type: "event", + stateMutability: "nonpayable", }, { - inputs: [], + type: "function", name: "deposit", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getGasAndDataLimits", + inputs: [], outputs: [ { + name: "limits_", + type: "tuple", + internalType: "struct IGsnPaymaster.GasAndDataLimits", components: [ { - internalType: "uint256", name: "acceptanceBudget", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "preRelayedCallGasLimit", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "postRelayedCallGasLimit", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "calldataSizeLimit", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct IGsnPaymaster.GasAndDataLimits", - name: "limits_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getHubAddr", + inputs: [], outputs: [ { - internalType: "address", name: "relayHub_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getLastDepositTimestamp", + inputs: [], outputs: [ { - internalType: "uint256", name: "lastDepositTimestamp_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getParentComptroller", + inputs: [], outputs: [ { - internalType: "address", name: "parentComptroller_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getParentVault", + inputs: [], outputs: [ { - internalType: "address", name: "parentVault_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getRelayHubDeposit", + inputs: [], outputs: [ { - internalType: "uint256", name: "depositBalance_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getWethToken", + inputs: [], outputs: [ { - internalType: "address", name: "wethToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "address", name: "_vault", type: "address", + internalType: "address", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "postRelayedCall", inputs: [ { - internalType: "bytes", name: "_context", type: "bytes", + internalType: "bytes", }, { - internalType: "bool", name: "_success", type: "bool", + internalType: "bool", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, { + name: "_relayData", + type: "tuple", + internalType: "struct IGsnTypes.RelayData", components: [ { - internalType: "uint256", name: "gasPrice", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "pctRelayFee", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "baseRelayFee", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "relayWorker", type: "address", + internalType: "address", }, { - internalType: "address", name: "paymaster", type: "address", + internalType: "address", }, { - internalType: "address", name: "forwarder", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "paymasterData", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "clientId", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct IGsnTypes.RelayData", - name: "_relayData", - type: "tuple", }, ], - name: "postRelayedCall", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "preRelayedCall", inputs: [ { + name: "_relayRequest", + type: "tuple", + internalType: "struct IGsnTypes.RelayRequest", components: [ { + name: "request", + type: "tuple", + internalType: "struct IGsnForwarder.ForwardRequest", components: [ { - internalType: "address", name: "from", type: "address", + internalType: "address", }, { - internalType: "address", name: "to", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "value", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "gas", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "nonce", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "data", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "validUntil", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct IGsnForwarder.ForwardRequest", - name: "request", - type: "tuple", }, { + name: "relayData", + type: "tuple", + internalType: "struct IGsnTypes.RelayData", components: [ { - internalType: "uint256", name: "gasPrice", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "pctRelayFee", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "baseRelayFee", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "relayWorker", type: "address", + internalType: "address", }, { - internalType: "address", name: "paymaster", type: "address", + internalType: "address", }, { - internalType: "address", name: "forwarder", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "paymasterData", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "clientId", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct IGsnTypes.RelayData", - name: "relayData", - type: "tuple", }, ], - internalType: "struct IGsnTypes.RelayRequest", - name: "_relayRequest", - type: "tuple", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "preRelayedCall", outputs: [ { - internalType: "bytes", name: "context_", type: "bytes", + internalType: "bytes", }, { - internalType: "bool", name: "rejectOnRecipientRevert_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "trustedForwarder", + inputs: [], outputs: [ { - internalType: "address", name: "trustedForwarder_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "versionPaymaster", + inputs: [], outputs: [ { - internalType: "string", name: "versionString_", type: "string", + internalType: "string", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "withdrawBalance", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "Deposited", + inputs: [ + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "TransactionRelayed", + inputs: [ + { + name: "authorizer", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "invokedSelector", + type: "bytes4", + indexed: false, + internalType: "bytes4", + }, + { + name: "successful", + type: "bool", + indexed: false, + internalType: "bool", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Withdrawn", + inputs: [ + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IGatedRedemptionQueueSharesWrapperFactory.ts b/packages/abis/src/abis/IGatedRedemptionQueueSharesWrapperFactory.ts index efe906b0..652f411c 100644 --- a/packages/abis/src/abis/IGatedRedemptionQueueSharesWrapperFactory.ts +++ b/packages/abis/src/abis/IGatedRedemptionQueueSharesWrapperFactory.ts @@ -1,152 +1,152 @@ export const IGatedRedemptionQueueSharesWrapperFactory = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_dispatcher", type: "address", - }, - { internalType: "address", - name: "_implementation", - type: "address", }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ { - indexed: false, - internalType: "address", - name: "implementation", - type: "address", - }, - ], - name: "ImplementationSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "caller", + name: "_implementation", type: "address", - }, - { - indexed: false, internalType: "address", - name: "proxy", - type: "address", }, ], - name: "ProxyDeployed", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "deploy", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address[]", name: "_managers", type: "address[]", + internalType: "address[]", }, { - internalType: "address", name: "_redemptionAsset", type: "address", + internalType: "address", }, { - internalType: "bool", name: "_useDepositApprovals", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "_useRedemptionApprovals", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "_useTransferApprovals", type: "bool", + internalType: "bool", }, { - internalType: "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", name: "_depositMode", type: "uint8", + internalType: "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", }, { + name: "_windowConfig", + type: "tuple", + internalType: "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", components: [ { - internalType: "uint64", name: "firstWindowStart", type: "uint64", + internalType: "uint64", }, { - internalType: "uint32", name: "frequency", type: "uint32", + internalType: "uint32", }, { - internalType: "uint32", name: "duration", type: "uint32", + internalType: "uint32", }, { - internalType: "uint64", name: "relativeSharesCap", type: "uint64", + internalType: "uint64", }, ], - internalType: "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", - name: "_windowConfig", - type: "tuple", }, ], - name: "deploy", outputs: [ { - internalType: "address", name: "wrapperProxy_", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "implementation", + inputs: [], outputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "setImplementation", inputs: [ { - internalType: "address", name: "_nextImplementation", type: "address", + internalType: "address", }, ], - name: "setImplementation", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ImplementationSet", + inputs: [ + { + name: "implementation", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ProxyDeployed", + inputs: [ + { + name: "caller", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "proxy", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IGatedRedemptionQueueSharesWrapperLib.ts b/packages/abis/src/abis/IGatedRedemptionQueueSharesWrapperLib.ts index f4e9f1c8..e65f7949 100644 --- a/packages/abis/src/abis/IGatedRedemptionQueueSharesWrapperLib.ts +++ b/packages/abis/src/abis/IGatedRedemptionQueueSharesWrapperLib.ts @@ -1,1514 +1,1514 @@ export const IGatedRedemptionQueueSharesWrapperLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_globalConfigProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wrappedNativeAsset", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - anonymous: false, + type: "receive", + stateMutability: "payable", + }, + { + type: "function", + name: "addManagers", + inputs: [ + { + name: "_managers", + type: "address[]", + internalType: "address[]", + }, + ], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "allowance", inputs: [ { - indexed: true, - internalType: "address", name: "owner", type: "address", + internalType: "address", }, { - indexed: true, - internalType: "address", name: "spender", type: "address", + internalType: "address", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "value", + name: "", type: "uint256", + internalType: "uint256", }, ], - name: "Approval", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "approve", inputs: [ { - indexed: true, - internalType: "address", - name: "user", + name: "spender", type: "address", - }, - { - indexed: true, internalType: "address", - name: "asset", - type: "address", }, { - indexed: false, - internalType: "uint256", name: "amount", type: "uint256", + internalType: "uint256", }, ], - name: "DepositApproval", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: false, - internalType: "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", - name: "mode", - type: "uint8", + name: "", + type: "bool", + internalType: "bool", }, ], - name: "DepositModeSet", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "balanceOf", inputs: [ { - indexed: true, - internalType: "address", - name: "user", + name: "account", type: "address", - }, - { - indexed: true, internalType: "address", - name: "depositAsset", - type: "address", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "depositAssetAmount", + name: "", type: "uint256", + internalType: "uint256", }, ], - name: "DepositRequestAdded", - type: "event", + stateMutability: "view", }, { - anonymous: false, - inputs: [ + type: "function", + name: "calcLatestRedemptionWindow", + inputs: [], + outputs: [ { - indexed: true, - internalType: "address", - name: "user", - type: "address", + name: "windowStart_", + type: "uint256", + internalType: "uint256", }, { - indexed: true, - internalType: "address", - name: "depositAsset", - type: "address", + name: "windowEnd_", + type: "uint256", + internalType: "uint256", }, ], - name: "DepositRequestRemoved", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "cancelRequestDeposit", inputs: [ { - indexed: true, - internalType: "address", - name: "user", + name: "_depositAsset", type: "address", - }, - { - indexed: true, internalType: "address", - name: "depositToken", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "depositTokenAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "sharesReceived", - type: "uint256", }, ], - name: "Deposited", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, - inputs: [ + type: "function", + name: "cancelRequestRedeem", + inputs: [], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "decimals", + inputs: [], + outputs: [ { - indexed: true, - internalType: "address", - name: "vaultProxy", - type: "address", + name: "decimals_", + type: "uint8", + internalType: "uint8", }, ], - name: "Initialized", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "decreaseAllowance", inputs: [ { - indexed: true, - internalType: "address", - name: "user", + name: "spender", type: "address", + internalType: "address", }, { - indexed: false, - internalType: "uint256", - name: "sharesAmount", + name: "subtractedValue", type: "uint256", + internalType: "uint256", }, ], - name: "Kicked", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: true, - internalType: "address", - name: "user", - type: "address", + name: "", + type: "bool", + internalType: "bool", }, ], - name: "ManagerAdded", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "deposit", inputs: [ { - indexed: true, - internalType: "address", - name: "user", + name: "_depositAsset", type: "address", - }, - ], - name: "ManagerRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "user", - type: "address", }, { - indexed: false, - internalType: "uint256", - name: "sharesAmount", + name: "_depositAssetAmount", type: "uint256", + internalType: "uint256", }, { - indexed: true, - internalType: "address", - name: "redemptionAsset", - type: "address", + name: "_minSharesAmount", + type: "uint256", + internalType: "uint256", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "redemptionAssetAmount", + name: "sharesReceived_", type: "uint256", + internalType: "uint256", }, ], - name: "Redeemed", - type: "event", + stateMutability: "payable", }, { - anonymous: false, + type: "function", + name: "depositAllFromQueue", inputs: [ { - indexed: true, - internalType: "address", - name: "user", + name: "_depositAsset", type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", + internalType: "address", }, ], - name: "RedemptionApproval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "asset", - type: "address", - }, - ], - name: "RedemptionAssetSet", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: true, - internalType: "address", - name: "user", - type: "address", + name: "users_", + type: "address[]", + internalType: "address[]", }, { - indexed: false, - internalType: "uint256", - name: "sharesAmount", - type: "uint256", + name: "userSharesReceived_", + type: "uint256[]", + internalType: "uint256[]", }, ], - name: "RedemptionRequestAdded", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, - inputs: [ + type: "function", + name: "depositApprovalsAreUsed", + inputs: [], + outputs: [ { - indexed: true, - internalType: "address", - name: "user", - type: "address", + name: "approvalsUsed_", + type: "bool", + internalType: "bool", }, ], - name: "RedemptionRequestRemoved", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "depositFromQueue", inputs: [ { - indexed: false, - internalType: "uint256", - name: "firstWindowStart", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "frequency", - type: "uint256", + name: "_depositAsset", + type: "address", + internalType: "address", }, { - indexed: false, - internalType: "uint256", - name: "duration", - type: "uint256", + name: "_users", + type: "address[]", + internalType: "address[]", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "relativeSharesCap", - type: "uint256", + name: "userSharesReceived_", + type: "uint256[]", + internalType: "uint256[]", }, ], - name: "RedemptionWindowConfigSet", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "forceTransfer", inputs: [ { - indexed: true, - internalType: "address", - name: "from", + name: "_sender", type: "address", + internalType: "address", }, { - indexed: true, - internalType: "address", - name: "to", + name: "_recipient", type: "address", + internalType: "address", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "value", + name: "amount_", type: "uint256", + internalType: "uint256", }, ], - name: "Transfer", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "getDepositApproval", inputs: [ { - indexed: true, - internalType: "address", - name: "sender", + name: "_user", type: "address", + internalType: "address", }, { - indexed: true, - internalType: "address", - name: "recipient", + name: "_asset", type: "address", + internalType: "address", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "amount", + name: "amount_", type: "uint256", + internalType: "uint256", }, ], - name: "TransferApproval", - type: "event", + stateMutability: "view", }, { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "recipient", - type: "address", - }, + type: "function", + name: "getDepositMode", + inputs: [], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", + name: "mode_", + type: "uint8", + internalType: "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", }, ], - name: "TransferForced", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "getDepositQueueUserRequest", inputs: [ { - indexed: false, - internalType: "bool", - name: "useApprovals", - type: "bool", + name: "_depositAsset", + type: "address", + internalType: "address", + }, + { + name: "_user", + type: "address", + internalType: "address", }, ], - name: "UseDepositApprovalsSet", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: false, - internalType: "bool", - name: "useApprovals", - type: "bool", + name: "request_", + type: "tuple", + internalType: "struct GatedRedemptionQueueSharesWrapperLibBase1.DepositRequest", + components: [ + { + name: "index", + type: "uint64", + internalType: "uint64", + }, + { + name: "assetAmount", + type: "uint128", + internalType: "uint128", + }, + ], }, ], - name: "UseRedemptionApprovalsSet", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "getDepositQueueUsers", inputs: [ { - indexed: false, - internalType: "bool", - name: "useApprovals", - type: "bool", + name: "_depositAsset", + type: "address", + internalType: "address", }, ], - name: "UseTransferApprovalsSet", - type: "event", - }, - { - inputs: [ + outputs: [ { - internalType: "address[]", - name: "_managers", + name: "users_", type: "address[]", + internalType: "address[]", }, ], - name: "addManagers", - outputs: [], - stateMutability: "nonpayable", - type: "function", + stateMutability: "view", }, { + type: "function", + name: "getRedemptionApproval", inputs: [ { - internalType: "address", - name: "owner", + name: "_user", type: "address", - }, - { internalType: "address", - name: "spender", - type: "address", }, ], - name: "allowance", outputs: [ { - internalType: "uint256", - name: "", + name: "amount_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [ + type: "function", + name: "getRedemptionAsset", + inputs: [], + outputs: [ { - internalType: "address", - name: "spender", + name: "asset_", type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getRedemptionQueue", inputs: [], - name: "calcLatestRedemptionWindow", outputs: [ { - internalType: "uint256", - name: "windowStart_", + name: "totalSharesPending_", type: "uint256", + internalType: "uint256", }, { + name: "relativeSharesAllowed_", + type: "uint256", internalType: "uint256", - name: "windowEnd_", + }, + { + name: "relativeSharesCheckpointed_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getRedemptionQueueUserByIndex", inputs: [ { - internalType: "address", - name: "_depositAsset", - type: "address", + name: "_index", + type: "uint256", + internalType: "uint256", }, ], - name: "cancelRequestDeposit", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "cancelRequestRedeem", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "decimals", outputs: [ { - internalType: "uint8", - name: "decimals_", - type: "uint8", + name: "user_", + type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getRedemptionQueueUserRequest", inputs: [ { - internalType: "address", - name: "spender", + name: "_user", type: "address", - }, - { - internalType: "uint256", - name: "subtractedValue", - type: "uint256", + internalType: "address", }, ], - name: "decreaseAllowance", outputs: [ { - internalType: "bool", - name: "", - type: "bool", + name: "request_", + type: "tuple", + internalType: "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionRequest", + components: [ + { + name: "index", + type: "uint64", + internalType: "uint64", + }, + { + name: "lastRedeemed", + type: "uint64", + internalType: "uint64", + }, + { + name: "sharesPending", + type: "uint128", + internalType: "uint128", + }, + ], }, ], - stateMutability: "nonpayable", - type: "function", + stateMutability: "view", }, { - inputs: [ + type: "function", + name: "getRedemptionQueueUsers", + inputs: [], + outputs: [ { - internalType: "address", - name: "_depositAsset", - type: "address", + name: "users_", + type: "address[]", + internalType: "address[]", }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getRedemptionQueueUsersLength", + inputs: [], + outputs: [ { - internalType: "uint256", - name: "_depositAssetAmount", + name: "length_", type: "uint256", - }, - { internalType: "uint256", - name: "_minSharesAmount", - type: "uint256", }, ], - name: "deposit", + stateMutability: "view", + }, + { + type: "function", + name: "getRedemptionWindowConfig", + inputs: [], outputs: [ { - internalType: "uint256", - name: "sharesReceived_", - type: "uint256", + name: "redemptionWindowConfig_", + type: "tuple", + internalType: "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", + components: [ + { + name: "firstWindowStart", + type: "uint64", + internalType: "uint64", + }, + { + name: "frequency", + type: "uint32", + internalType: "uint32", + }, + { + name: "duration", + type: "uint32", + internalType: "uint32", + }, + { + name: "relativeSharesCap", + type: "uint64", + internalType: "uint64", + }, + ], }, ], - stateMutability: "payable", - type: "function", + stateMutability: "view", }, { + type: "function", + name: "getTransferApproval", inputs: [ { + name: "_sender", + type: "address", internalType: "address", - name: "_depositAsset", + }, + { + name: "_recipient", type: "address", + internalType: "address", }, ], - name: "depositAllFromQueue", outputs: [ { - internalType: "address[]", - name: "users_", - type: "address[]", - }, - { - internalType: "uint256[]", - name: "userSharesReceived_", - type: "uint256[]", + name: "amount_", + type: "uint256", + internalType: "uint256", }, ], - stateMutability: "nonpayable", - type: "function", + stateMutability: "view", }, { + type: "function", + name: "getVaultProxy", inputs: [], - name: "depositApprovalsAreUsed", outputs: [ { - internalType: "bool", - name: "approvalsUsed_", - type: "bool", + name: "vaultProxy_", + type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "increaseAllowance", inputs: [ { - internalType: "address", - name: "_depositAsset", + name: "spender", type: "address", + internalType: "address", }, { - internalType: "address[]", - name: "_users", - type: "address[]", + name: "addedValue", + type: "uint256", + internalType: "uint256", }, ], - name: "depositFromQueue", outputs: [ { - internalType: "uint256[]", - name: "userSharesReceived_", - type: "uint256[]", + name: "", + type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "address", - name: "_sender", + name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", - name: "_recipient", + name: "_managers", + type: "address[]", + internalType: "address[]", + }, + { + name: "_redemptionAsset", type: "address", + internalType: "address", }, - ], - name: "forceTransfer", - outputs: [ { - internalType: "uint256", - name: "amount_", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_user", - type: "address", + name: "_useDepositApprovals", + type: "bool", + internalType: "bool", }, { - internalType: "address", - name: "_asset", - type: "address", + name: "_useRedemptionApprovals", + type: "bool", + internalType: "bool", }, - ], - name: "getDepositApproval", - outputs: [ { - internalType: "uint256", - name: "amount_", - type: "uint256", + name: "_useTransferApprovals", + type: "bool", + internalType: "bool", }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getDepositMode", - outputs: [ { - internalType: "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", - name: "mode_", + name: "_depositMode", type: "uint8", + internalType: "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_depositAsset", - type: "address", - }, - { - internalType: "address", - name: "_user", - type: "address", - }, - ], - name: "getDepositQueueUserRequest", - outputs: [ { + name: "_windowConfig", + type: "tuple", + internalType: "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", components: [ { - internalType: "uint64", - name: "index", + name: "firstWindowStart", type: "uint64", + internalType: "uint64", }, { - internalType: "uint128", - name: "assetAmount", - type: "uint128", + name: "frequency", + type: "uint32", + internalType: "uint32", + }, + { + name: "duration", + type: "uint32", + internalType: "uint32", + }, + { + name: "relativeSharesCap", + type: "uint64", + internalType: "uint64", }, ], - internalType: "struct GatedRedemptionQueueSharesWrapperLibBase1.DepositRequest", - name: "request_", - type: "tuple", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { + type: "function", + name: "isManager", inputs: [ { - internalType: "address", - name: "_depositAsset", + name: "_user", type: "address", + internalType: "address", }, ], - name: "getDepositQueueUsers", outputs: [ { - internalType: "address[]", - name: "users_", - type: "address[]", + name: "isManager_", + type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "kick", inputs: [ { - internalType: "address", name: "_user", type: "address", + internalType: "address", }, ], - name: "getRedemptionApproval", outputs: [ { - internalType: "uint256", - name: "amount_", + name: "sharesRedeemed_", type: "uint256", + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", + stateMutability: "nonpayable", }, { + type: "function", + name: "name", inputs: [], - name: "getRedemptionAsset", outputs: [ { - internalType: "address", - name: "asset_", - type: "address", + name: "name_", + type: "string", + internalType: "string", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], - name: "getRedemptionQueue", - outputs: [ + type: "function", + name: "redeemFromQueue", + inputs: [ { - internalType: "uint256", - name: "totalSharesPending_", + name: "_startIndex", type: "uint256", - }, - { internalType: "uint256", - name: "relativeSharesAllowed_", - type: "uint256", }, { - internalType: "uint256", - name: "relativeSharesCheckpointed_", + name: "_endIndex", type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { internalType: "uint256", - name: "_index", - type: "uint256", }, ], - name: "getRedemptionQueueUserByIndex", outputs: [ { - internalType: "address", - name: "user_", - type: "address", + name: "usersRedeemed_", + type: "address[]", + internalType: "address[]", }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ { - internalType: "address", - name: "_user", - type: "address", + name: "sharesRedeemed_", + type: "uint256[]", + internalType: "uint256[]", }, ], - name: "getRedemptionQueueUserRequest", + stateMutability: "nonpayable", + }, + { + type: "function", + name: "redemptionApprovalsAreUsed", + inputs: [], outputs: [ { - components: [ - { - internalType: "uint64", - name: "index", - type: "uint64", - }, - { - internalType: "uint64", - name: "lastRedeemed", - type: "uint64", - }, - { - internalType: "uint128", - name: "sharesPending", - type: "uint128", - }, - ], - internalType: "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionRequest", - name: "request_", - type: "tuple", + name: "approvalsUsed_", + type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], - name: "getRedemptionQueueUsers", - outputs: [ + type: "function", + name: "removeManagers", + inputs: [ { - internalType: "address[]", - name: "users_", + name: "_managers", type: "address[]", + internalType: "address[]", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { - inputs: [], - name: "getRedemptionQueueUsersLength", - outputs: [ + type: "function", + name: "requestDeposit", + inputs: [ { - internalType: "uint256", - name: "length_", + name: "_depositAsset", + type: "address", + internalType: "address", + }, + { + name: "_depositAssetAmount", type: "uint256", + internalType: "uint256", }, ], - stateMutability: "view", + outputs: [], + stateMutability: "payable", + }, + { type: "function", + name: "requestRedeem", + inputs: [ + { + name: "_sharesAmount", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [], + stateMutability: "nonpayable", }, { - inputs: [], - name: "getRedemptionWindowConfig", - outputs: [ + type: "function", + name: "setDepositApprovals", + inputs: [ { - components: [ - { - internalType: "uint64", - name: "firstWindowStart", - type: "uint64", - }, - { - internalType: "uint32", - name: "frequency", - type: "uint32", - }, - { - internalType: "uint32", - name: "duration", - type: "uint32", - }, - { - internalType: "uint64", - name: "relativeSharesCap", - type: "uint64", - }, - ], - internalType: "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", - name: "redemptionWindowConfig_", - type: "tuple", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_sender", - type: "address", + name: "_users", + type: "address[]", + internalType: "address[]", }, { - internalType: "address", - name: "_recipient", - type: "address", + name: "_assets", + type: "address[]", + internalType: "address[]", }, - ], - name: "getTransferApproval", - outputs: [ { - internalType: "uint256", - name: "amount_", - type: "uint256", + name: "_amounts", + type: "uint256[]", + internalType: "uint256[]", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { - inputs: [], - name: "getVaultProxy", - outputs: [ + type: "function", + name: "setDepositMode", + inputs: [ { - internalType: "address", - name: "vaultProxy_", - type: "address", + name: "_mode", + type: "uint8", + internalType: "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { + type: "function", + name: "setRedemptionApprovals", inputs: [ { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "addedValue", - type: "uint256", + name: "_users", + type: "address[]", + internalType: "address[]", }, - ], - name: "increaseAllowance", - outputs: [ { - internalType: "bool", - name: "", - type: "bool", + name: "_amounts", + type: "uint256[]", + internalType: "uint256[]", }, ], + outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setRedemptionAsset", inputs: [ { - internalType: "address", - name: "_vaultProxy", + name: "_nextRedemptionAsset", type: "address", - }, - { - internalType: "address[]", - name: "_managers", - type: "address[]", - }, - { internalType: "address", - name: "_redemptionAsset", - type: "address", - }, - { - internalType: "bool", - name: "_useDepositApprovals", - type: "bool", - }, - { - internalType: "bool", - name: "_useRedemptionApprovals", - type: "bool", - }, - { - internalType: "bool", - name: "_useTransferApprovals", - type: "bool", - }, - { - internalType: "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", - name: "_depositMode", - type: "uint8", }, + ], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "setRedemptionWindowConfig", + inputs: [ { + name: "_nextWindowConfig", + type: "tuple", + internalType: "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", components: [ { - internalType: "uint64", name: "firstWindowStart", type: "uint64", + internalType: "uint64", }, { - internalType: "uint32", name: "frequency", type: "uint32", + internalType: "uint32", }, { - internalType: "uint32", name: "duration", type: "uint32", + internalType: "uint32", }, { - internalType: "uint64", name: "relativeSharesCap", type: "uint64", + internalType: "uint64", }, ], - internalType: "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", - name: "_windowConfig", - type: "tuple", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setTransferApprovals", inputs: [ { - internalType: "address", - name: "_user", - type: "address", + name: "_users", + type: "address[]", + internalType: "address[]", + }, + { + name: "_recipients", + type: "address[]", + internalType: "address[]", + }, + { + name: "_amounts", + type: "uint256[]", + internalType: "uint256[]", }, ], - name: "isManager", - outputs: [ + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "setUseDepositApprovals", + inputs: [ { - internalType: "bool", - name: "isManager_", + name: "_nextUseDepositApprovals", type: "bool", + internalType: "bool", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { + type: "function", + name: "setUseRedemptionApprovals", inputs: [ { - internalType: "address", - name: "_user", - type: "address", + name: "_nextUseRedemptionApprovals", + type: "bool", + internalType: "bool", }, ], - name: "kick", - outputs: [ + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "setUseTransferApprovals", + inputs: [ { - internalType: "uint256", - name: "sharesRedeemed_", - type: "uint256", + name: "_nextUseTransferApprovals", + type: "bool", + internalType: "bool", }, ], + outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "symbol", inputs: [], - name: "name", outputs: [ { - internalType: "string", - name: "name_", + name: "symbol_", type: "string", + internalType: "string", }, ], stateMutability: "view", + }, + { type: "function", + name: "totalSupply", + inputs: [], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", }, { + type: "function", + name: "transfer", inputs: [ { - internalType: "uint256", - name: "_startIndex", - type: "uint256", + name: "_recipient", + type: "address", + internalType: "address", }, { - internalType: "uint256", - name: "_endIndex", + name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "redeemFromQueue", outputs: [ { - internalType: "address[]", - name: "usersRedeemed_", - type: "address[]", - }, - { - internalType: "uint256[]", - name: "sharesRedeemed_", - type: "uint256[]", + name: "success_", + type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "transferApprovalsAreUsed", inputs: [], - name: "redemptionApprovalsAreUsed", outputs: [ { - internalType: "bool", name: "approvalsUsed_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "transferFrom", inputs: [ { - internalType: "address[]", - name: "_managers", - type: "address[]", + name: "_sender", + type: "address", + internalType: "address", + }, + { + name: "_recipient", + type: "address", + internalType: "address", + }, + { + name: "_amount", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "success_", + type: "bool", + internalType: "bool", }, ], - name: "removeManagers", - outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "event", + name: "Approval", inputs: [ { + name: "owner", + type: "address", + indexed: true, internalType: "address", - name: "_depositAsset", + }, + { + name: "spender", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "uint256", - name: "_depositAssetAmount", + name: "value", type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "requestDeposit", - outputs: [], - stateMutability: "payable", - type: "function", + anonymous: false, }, { + type: "event", + name: "DepositApproval", inputs: [ { - internalType: "uint256", - name: "_sharesAmount", + name: "user", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "amount", type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "requestRedeem", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "DepositModeSet", inputs: [ { - internalType: "address[]", - name: "_users", - type: "address[]", + name: "mode", + type: "uint8", + indexed: false, + internalType: "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", }, + ], + anonymous: false, + }, + { + type: "event", + name: "DepositRequestAdded", + inputs: [ { - internalType: "address[]", - name: "_assets", - type: "address[]", + name: "user", + type: "address", + indexed: true, + internalType: "address", }, { - internalType: "uint256[]", - name: "_amounts", - type: "uint256[]", + name: "depositAsset", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "depositAssetAmount", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "setDepositApprovals", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "DepositRequestRemoved", inputs: [ { - internalType: "enum GatedRedemptionQueueSharesWrapperLibBase1.DepositMode", - name: "_mode", - type: "uint8", + name: "user", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "depositAsset", + type: "address", + indexed: true, + internalType: "address", }, ], - name: "setDepositMode", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "Deposited", inputs: [ { - internalType: "address[]", - name: "_users", - type: "address[]", + name: "user", + type: "address", + indexed: true, + internalType: "address", }, { - internalType: "uint256[]", - name: "_amounts", - type: "uint256[]", + name: "depositToken", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "depositTokenAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "sharesReceived", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "setRedemptionApprovals", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "Initialized", inputs: [ { + name: "vaultProxy", + type: "address", + indexed: true, internalType: "address", - name: "_nextRedemptionAsset", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Kicked", + inputs: [ + { + name: "user", type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesAmount", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "setRedemptionAsset", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "ManagerAdded", inputs: [ { - components: [ - { - internalType: "uint64", - name: "firstWindowStart", - type: "uint64", - }, - { - internalType: "uint32", - name: "frequency", - type: "uint32", - }, - { - internalType: "uint32", - name: "duration", - type: "uint32", - }, - { - internalType: "uint64", - name: "relativeSharesCap", - type: "uint64", - }, - ], - internalType: "struct GatedRedemptionQueueSharesWrapperLibBase1.RedemptionWindowConfig", - name: "_nextWindowConfig", - type: "tuple", + name: "user", + type: "address", + indexed: true, + internalType: "address", }, ], - name: "setRedemptionWindowConfig", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "ManagerRemoved", inputs: [ { - internalType: "address[]", - name: "_users", - type: "address[]", + name: "user", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Redeemed", + inputs: [ + { + name: "user", + type: "address", + indexed: true, + internalType: "address", }, { - internalType: "address[]", - name: "_recipients", - type: "address[]", + name: "sharesAmount", + type: "uint256", + indexed: false, + internalType: "uint256", }, { - internalType: "uint256[]", - name: "_amounts", - type: "uint256[]", + name: "redemptionAsset", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "redemptionAssetAmount", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "setTransferApprovals", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "RedemptionApproval", inputs: [ { - internalType: "bool", - name: "_nextUseDepositApprovals", - type: "bool", + name: "user", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "setUseDepositApprovals", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "RedemptionAssetSet", inputs: [ { - internalType: "bool", - name: "_nextUseRedemptionApprovals", - type: "bool", + name: "asset", + type: "address", + indexed: true, + internalType: "address", }, ], - name: "setUseRedemptionApprovals", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "RedemptionRequestAdded", inputs: [ { - internalType: "bool", - name: "_nextUseTransferApprovals", - type: "bool", + name: "user", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesAmount", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "setUseTransferApprovals", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { - inputs: [], - name: "symbol", - outputs: [ + type: "event", + name: "RedemptionRequestRemoved", + inputs: [ { - internalType: "string", - name: "symbol_", - type: "string", + name: "user", + type: "address", + indexed: true, + internalType: "address", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { - inputs: [], - name: "totalSupply", - outputs: [ + type: "event", + name: "RedemptionWindowConfigSet", + inputs: [ { + name: "firstWindowStart", + type: "uint256", + indexed: false, internalType: "uint256", - name: "", + }, + { + name: "frequency", type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "duration", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "relativeSharesCap", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { + type: "event", + name: "Transfer", inputs: [ { - internalType: "address", - name: "_recipient", + name: "from", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "uint256", - name: "_amount", - type: "uint256", + name: "to", + type: "address", + indexed: true, + internalType: "address", }, - ], - name: "transfer", - outputs: [ { - internalType: "bool", - name: "success_", - type: "bool", + name: "value", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { - inputs: [], - name: "transferApprovalsAreUsed", - outputs: [ + type: "event", + name: "TransferApproval", + inputs: [ { - internalType: "bool", - name: "approvalsUsed_", - type: "bool", + name: "sender", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "recipient", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { + type: "event", + name: "TransferForced", inputs: [ { - internalType: "address", - name: "_sender", + name: "sender", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "address", - name: "_recipient", + name: "recipient", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "uint256", - name: "_amount", + name: "amount", type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "transferFrom", - outputs: [ + anonymous: false, + }, + { + type: "event", + name: "UseDepositApprovalsSet", + inputs: [ { + name: "useApprovals", + type: "bool", + indexed: false, internalType: "bool", - name: "success_", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "UseRedemptionApprovalsSet", + inputs: [ + { + name: "useApprovals", type: "bool", + indexed: false, + internalType: "bool", }, ], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { - stateMutability: "payable", - type: "receive", + type: "event", + name: "UseTransferApprovalsSet", + inputs: [ + { + name: "useApprovals", + type: "bool", + indexed: false, + internalType: "bool", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IGlobalConfigLib.ts b/packages/abis/src/abis/IGlobalConfigLib.ts index e0d3bdae..5a32905a 100644 --- a/packages/abis/src/abis/IGlobalConfigLib.ts +++ b/packages/abis/src/abis/IGlobalConfigLib.ts @@ -1,213 +1,213 @@ export const IGlobalConfigLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_fundDeployerV4", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, internalType: "address", - name: "nextGlobalConfigLib", - type: "address", }, ], - name: "GlobalConfigLibSet", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "formatDepositCall", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_depositAsset", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_depositAssetAmount", type: "uint256", + internalType: "uint256", }, ], - name: "formatDepositCall", outputs: [ { - internalType: "address", name: "target_", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "payload_", type: "bytes", + internalType: "bytes", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "formatSingleAssetRedemptionCall", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_recipient", type: "address", + internalType: "address", }, { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, { - internalType: "bool", name: "_amountIsShares", type: "bool", + internalType: "bool", }, ], - name: "formatSingleAssetRedemptionCall", outputs: [ { - internalType: "address", name: "target_", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "payload_", type: "bytes", + internalType: "bytes", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getDispatcher", + inputs: [], outputs: [ { - internalType: "address", name: "dispatcher_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getGlobalConfigLib", + inputs: [], outputs: [ { - internalType: "address", name: "globalConfigLib_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "address", name: "_dispatcher", type: "address", + internalType: "address", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "isValidRedeemSharesCall", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_recipientToValidate", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_sharesAmountToValidate", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_redeemContract", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_redeemSelector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_redeemData", type: "bytes", + internalType: "bytes", }, ], - name: "isValidRedeemSharesCall", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "proxiableUUID", + inputs: [], outputs: [ { - internalType: "bytes32", name: "uuid_", type: "bytes32", + internalType: "bytes32", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "setGlobalConfigLib", inputs: [ { - internalType: "address", name: "_nextGlobalConfigLib", type: "address", + internalType: "address", }, ], - name: "setGlobalConfigLib", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "GlobalConfigLibSet", + inputs: [ + { + name: "nextGlobalConfigLib", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IHelperDataReader.ts b/packages/abis/src/abis/IHelperDataReader.ts index e468adf0..4743a9d7 100644 --- a/packages/abis/src/abis/IHelperDataReader.ts +++ b/packages/abis/src/abis/IHelperDataReader.ts @@ -1,534 +1,534 @@ export const IHelperDataReader = [ { + type: "constructor", inputs: [ { - internalType: "contract IFundValueCalculatorRouter", name: "_fundValueCalculatorRouter", type: "address", + internalType: "contract IFundValueCalculatorRouter", }, { - internalType: "contract IExternalPositionFactory", name: "_externalPositionFactory", type: "address", + internalType: "contract IExternalPositionFactory", }, { - internalType: "contract IPolicyManagerExtended", name: "_policyManager", type: "address", + internalType: "contract IPolicyManagerExtended", }, { - internalType: "contract IFeeManagerExtended", name: "_feeManager", type: "address", + internalType: "contract IFeeManagerExtended", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "getVaultActiveExternalPositionsDetails", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultActiveExternalPositionsDetails", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getVaultActiveExternalPositionsDetailsDecoded", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultActiveExternalPositionsDetailsDecoded", outputs: [ { + name: "", + type: "tuple[]", + internalType: "struct HelperDataReader.ExternalPositionDetails[]", components: [ { - internalType: "string", name: "label", type: "string", + internalType: "string", }, { - internalType: "address", name: "id", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "typeId", type: "uint256", + internalType: "uint256", }, { + name: "debtAssetsAmounts", + type: "tuple[]", + internalType: "struct HelperDataReader.AssetAmount[]", components: [ { - internalType: "address", name: "asset", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "amount", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct HelperDataReader.AssetAmount[]", - name: "debtAssetsAmounts", - type: "tuple[]", }, { + name: "managedAssetsAmounts", + type: "tuple[]", + internalType: "struct HelperDataReader.AssetAmount[]", components: [ { - internalType: "address", name: "asset", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "amount", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct HelperDataReader.AssetAmount[]", - name: "managedAssetsAmounts", - type: "tuple[]", }, ], - internalType: "struct HelperDataReader.ExternalPositionDetails[]", - name: "", - type: "tuple[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getVaultDetails", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultDetails", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getVaultDetailsDecoded", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultDetailsDecoded", outputs: [ { + name: "", + type: "tuple", + internalType: "struct HelperDataReader.VaultDetails", components: [ { - internalType: "string", name: "name", type: "string", + internalType: "string", }, { - internalType: "string", name: "symbol", type: "string", + internalType: "string", }, { - internalType: "uint256", name: "totalSupply", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "denominationAsset", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "netShareValue", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "grossAssetValue", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "owner", type: "address", + internalType: "address", }, { - internalType: "bool", name: "hasInvalidAum", type: "bool", + internalType: "bool", }, ], - internalType: "struct HelperDataReader.VaultDetails", - name: "", - type: "tuple", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getVaultDetailsExtended", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultDetailsExtended", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getVaultDetailsExtendedDecoded", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultDetailsExtendedDecoded", outputs: [ { + name: "", + type: "tuple", + internalType: "struct HelperDataReader.VaultDetailsExtended", components: [ { - internalType: "string", name: "name", type: "string", + internalType: "string", }, { - internalType: "string", name: "symbol", type: "string", + internalType: "string", }, { - internalType: "uint256", name: "totalSupply", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "denominationAsset", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "netShareValue", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "grossAssetValue", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "owner", type: "address", + internalType: "address", }, { - internalType: "bool", name: "hasInvalidAum", type: "bool", + internalType: "bool", }, { + name: "trackedAssetsAmounts", + type: "tuple[]", + internalType: "struct HelperDataReader.AssetAmount[]", components: [ { - internalType: "address", name: "asset", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "amount", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct HelperDataReader.AssetAmount[]", - name: "trackedAssetsAmounts", - type: "tuple[]", }, { + name: "activeExternalPositionsDetails", + type: "tuple[]", + internalType: "struct HelperDataReader.ExternalPositionDetails[]", components: [ { - internalType: "string", name: "label", type: "string", + internalType: "string", }, { - internalType: "address", name: "id", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "typeId", type: "uint256", + internalType: "uint256", }, { + name: "debtAssetsAmounts", + type: "tuple[]", + internalType: "struct HelperDataReader.AssetAmount[]", components: [ { - internalType: "address", name: "asset", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "amount", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct HelperDataReader.AssetAmount[]", - name: "debtAssetsAmounts", - type: "tuple[]", }, { + name: "managedAssetsAmounts", + type: "tuple[]", + internalType: "struct HelperDataReader.AssetAmount[]", components: [ { - internalType: "address", name: "asset", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "amount", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct HelperDataReader.AssetAmount[]", - name: "managedAssetsAmounts", - type: "tuple[]", }, ], - internalType: "struct HelperDataReader.ExternalPositionDetails[]", - name: "activeExternalPositionsDetails", - type: "tuple[]", }, { + name: "policiesDetails", + type: "tuple[]", + internalType: "struct HelperDataReader.PolicyDetails[]", components: [ { - internalType: "string", name: "identifier", type: "string", + internalType: "string", }, { - internalType: "address", name: "id", type: "address", + internalType: "address", }, ], - internalType: "struct HelperDataReader.PolicyDetails[]", - name: "policiesDetails", - type: "tuple[]", }, { + name: "feesDetails", + type: "tuple[]", + internalType: "struct HelperDataReader.FeeDetails[]", components: [ { - internalType: "address", name: "recipientForFund", type: "address", + internalType: "address", }, { - internalType: "address", name: "id", type: "address", + internalType: "address", }, ], - internalType: "struct HelperDataReader.FeeDetails[]", - name: "feesDetails", - type: "tuple[]", }, ], - internalType: "struct HelperDataReader.VaultDetailsExtended", - name: "", - type: "tuple", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getVaultFeesDetails", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultFeesDetails", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getVaultFeesDetailsDecoded", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultFeesDetailsDecoded", outputs: [ { + name: "", + type: "tuple[]", + internalType: "struct HelperDataReader.FeeDetails[]", components: [ { - internalType: "address", name: "recipientForFund", type: "address", + internalType: "address", }, { - internalType: "address", name: "id", type: "address", + internalType: "address", }, ], - internalType: "struct HelperDataReader.FeeDetails[]", - name: "", - type: "tuple[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getVaultPoliciesDetails", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultPoliciesDetails", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getVaultPoliciesDetailsDecoded", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultPoliciesDetailsDecoded", outputs: [ { + name: "", + type: "tuple[]", + internalType: "struct HelperDataReader.PolicyDetails[]", components: [ { - internalType: "string", name: "identifier", type: "string", + internalType: "string", }, { - internalType: "address", name: "id", type: "address", + internalType: "address", }, ], - internalType: "struct HelperDataReader.PolicyDetails[]", - name: "", - type: "tuple[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getVaultTrackedAssetsAmounts", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultTrackedAssetsAmounts", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getVaultTrackedAssetsAmountsDecoded", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultTrackedAssetsAmountsDecoded", outputs: [ { + name: "", + type: "tuple[]", + internalType: "struct HelperDataReader.AssetAmount[]", components: [ { - internalType: "address", name: "asset", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "amount", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct HelperDataReader.AssetAmount[]", - name: "", - type: "tuple[]", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IHelperDataReaderRouter.ts b/packages/abis/src/abis/IHelperDataReaderRouter.ts index c780266b..6fdbafc4 100644 --- a/packages/abis/src/abis/IHelperDataReaderRouter.ts +++ b/packages/abis/src/abis/IHelperDataReaderRouter.ts @@ -1,291 +1,291 @@ export const IHelperDataReaderRouter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_dispatcher", type: "address", + internalType: "address", }, { - internalType: "address[]", name: "_fundDeployers", type: "address[]", + internalType: "address[]", }, { - components: [ - { - internalType: "contract IHelperDataReader", - name: "helperDataReader", - type: "address", - }, - { - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - internalType: "struct HelperDataReaderRouter.HelperDataReaderInfo[]", name: "_helperDataReadersInfo", type: "tuple[]", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "fundDeployer", - type: "address", - }, - { + internalType: "struct HelperDataReaderRouter.HelperDataReaderInfo[]", components: [ { - internalType: "contract IHelperDataReader", name: "helperDataReader", type: "address", + internalType: "contract IHelperDataReader", }, { - internalType: "uint8", name: "version", type: "uint8", + internalType: "uint8", }, ], - indexed: false, - internalType: "struct HelperDataReaderRouter.HelperDataReaderInfo", - name: "HelperDataReader", - type: "tuple", }, ], - name: "HelperDataReaderUpdated", - type: "event", + stateMutability: "nonpayable", }, { - inputs: [], + type: "function", name: "getDispatcher", + inputs: [], outputs: [ { - internalType: "address", name: "dispatcher_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getHelperDataReaderForVault", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getHelperDataReaderForVault", outputs: [ { + name: "", + type: "tuple", + internalType: "struct HelperDataReaderRouter.HelperDataReaderInfo", components: [ { - internalType: "contract IHelperDataReader", name: "helperDataReader", type: "address", + internalType: "contract IHelperDataReader", }, { - internalType: "uint8", name: "version", type: "uint8", + internalType: "uint8", }, ], - internalType: "struct HelperDataReaderRouter.HelperDataReaderInfo", - name: "", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getHelperDataReaderInfoForFundDeployer", inputs: [ { - internalType: "address", name: "_fundDeployer", type: "address", + internalType: "address", }, ], - name: "getHelperDataReaderInfoForFundDeployer", outputs: [ { + name: "helperDataReader_", + type: "tuple", + internalType: "struct HelperDataReaderRouter.HelperDataReaderInfo", components: [ { - internalType: "contract IHelperDataReader", name: "helperDataReader", type: "address", + internalType: "contract IHelperDataReader", }, { - internalType: "uint8", name: "version", type: "uint8", + internalType: "uint8", }, ], - internalType: "struct HelperDataReaderRouter.HelperDataReaderInfo", - name: "helperDataReader_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getVaultActiveExternalPositionsDetails", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultActiveExternalPositionsDetails", outputs: [ { - internalType: "bytes", name: "data", type: "bytes", + internalType: "bytes", }, { - internalType: "uint8", name: "version", type: "uint8", + internalType: "uint8", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getVaultDetails", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultDetails", outputs: [ { - internalType: "bytes", name: "data", type: "bytes", + internalType: "bytes", }, { - internalType: "uint8", name: "version", type: "uint8", + internalType: "uint8", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getVaultFeesDetails", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultFeesDetails", outputs: [ { - internalType: "bytes", name: "data", type: "bytes", + internalType: "bytes", }, { - internalType: "uint8", name: "version", type: "uint8", + internalType: "uint8", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getVaultPoliciesDetails", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultPoliciesDetails", outputs: [ { - internalType: "bytes", name: "data", type: "bytes", + internalType: "bytes", }, { - internalType: "uint8", name: "version", type: "uint8", + internalType: "uint8", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getVaultTrackedAssetsAmounts", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getVaultTrackedAssetsAmounts", outputs: [ { - internalType: "bytes", name: "data", type: "bytes", + internalType: "bytes", }, { - internalType: "uint8", name: "version", type: "uint8", + internalType: "uint8", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setHelperDataReaders", inputs: [ { - internalType: "address[]", name: "_fundDeployers", type: "address[]", + internalType: "address[]", }, { + name: "_helperDataReadersInfo", + type: "tuple[]", + internalType: "struct HelperDataReaderRouter.HelperDataReaderInfo[]", components: [ { - internalType: "contract IHelperDataReader", name: "helperDataReader", type: "address", + internalType: "contract IHelperDataReader", }, { - internalType: "uint8", name: "version", type: "uint8", + internalType: "uint8", }, ], - internalType: "struct HelperDataReaderRouter.HelperDataReaderInfo[]", - name: "_helperDataReadersInfo", - type: "tuple[]", }, ], - name: "setHelperDataReaders", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "HelperDataReaderUpdated", + inputs: [ + { + name: "fundDeployer", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "HelperDataReader", + type: "tuple", + indexed: false, + internalType: "struct HelperDataReaderRouter.HelperDataReaderInfo", + components: [ + { + name: "helperDataReader", + type: "address", + internalType: "contract IHelperDataReader", + }, + { + name: "version", + type: "uint8", + internalType: "uint8", + }, + ], + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IIdleAdapter.ts b/packages/abis/src/abis/IIdleAdapter.ts index 69229300..a4392b95 100644 --- a/packages/abis/src/abis/IIdleAdapter.ts +++ b/packages/abis/src/abis/IIdleAdapter.ts @@ -1,279 +1,279 @@ export const IIdleAdapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_idlePriceFeed", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "claimRewards", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "claimRewards", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getIdlePriceFeed", + inputs: [], outputs: [ { - internalType: "address", name: "idlePriceFeed_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "lend", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "lend", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "redeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "redeem", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IIdlePriceFeed.ts b/packages/abis/src/abis/IIdlePriceFeed.ts index e0fe6fae..28b9276c 100644 --- a/packages/abis/src/abis/IIdlePriceFeed.ts +++ b/packages/abis/src/abis/IIdlePriceFeed.ts @@ -1,169 +1,169 @@ export const IIdlePriceFeed = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_fundDeployer", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "derivative", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "underlying", - type: "address", }, ], - name: "DerivativeAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "derivative", - type: "address", - }, - ], - name: "DerivativeRemoved", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "addDerivatives", inputs: [ { - internalType: "address[]", name: "_derivatives", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_underlyings", type: "address[]", + internalType: "address[]", }, ], - name: "addDerivatives", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getUnderlyingForDerivative", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, ], - name: "getUnderlyingForDerivative", outputs: [ { - internalType: "address", name: "underlying_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "removeDerivatives", inputs: [ { - internalType: "address[]", name: "_derivatives", type: "address[]", + internalType: "address[]", }, ], - name: "removeDerivatives", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "DerivativeAdded", + inputs: [ + { + name: "derivative", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "underlying", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "DerivativeRemoved", + inputs: [ + { + name: "derivative", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IIntegrationAdapter.ts b/packages/abis/src/abis/IIntegrationAdapter.ts index 22874652..c58ee08d 100644 --- a/packages/abis/src/abis/IIntegrationAdapter.ts +++ b/packages/abis/src/abis/IIntegrationAdapter.ts @@ -1,51 +1,51 @@ export const IIntegrationAdapter = [ { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_encodedCallArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IIntegrationManager.ts b/packages/abis/src/abis/IIntegrationManager.ts index 7523409a..d2938765 100644 --- a/packages/abis/src/abis/IIntegrationManager.ts +++ b/packages/abis/src/abis/IIntegrationManager.ts @@ -1,240 +1,240 @@ export const IIntegrationManager = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_fundDeployer", type: "address", - }, - { internalType: "address", - name: "_policyManager", - type: "address", }, { - internalType: "address", - name: "_valueInterpreter", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "caller", + name: "_policyManager", type: "address", - }, - { - indexed: true, internalType: "address", - name: "adapter", - type: "address", }, { - indexed: true, - internalType: "bytes4", - name: "selector", - type: "bytes4", - }, - { - indexed: false, - internalType: "bytes", - name: "integrationData", - type: "bytes", - }, - { - indexed: false, - internalType: "address[]", - name: "incomingAssets", - type: "address[]", - }, - { - indexed: false, - internalType: "uint256[]", - name: "incomingAssetAmounts", - type: "uint256[]", - }, - { - indexed: false, - internalType: "address[]", - name: "spendAssets", - type: "address[]", - }, - { - indexed: false, - internalType: "uint256[]", - name: "spendAssetAmounts", - type: "uint256[]", - }, - ], - name: "CallOnIntegrationExecutedForFund", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "_valueInterpreter", type: "address", - }, - { - indexed: true, internalType: "address", - name: "vaultProxy", - type: "address", }, ], - name: "ValidatedVaultProxySetForFund", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "deactivateForFund", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getValueInterpreter", + inputs: [], outputs: [ { - internalType: "address", name: "valueInterpreter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getVaultProxyForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getVaultProxyForFund", outputs: [ { - internalType: "address", name: "vaultProxy_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "receiveCallFromComptroller", inputs: [ { - internalType: "address", name: "_caller", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_callArgs", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromComptroller", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setConfigForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "setConfigForFund", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "CallOnIntegrationExecutedForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "caller", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "adapter", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "selector", + type: "bytes4", + indexed: true, + internalType: "bytes4", + }, + { + name: "integrationData", + type: "bytes", + indexed: false, + internalType: "bytes", + }, + { + name: "incomingAssets", + type: "address[]", + indexed: false, + internalType: "address[]", + }, + { + name: "incomingAssetAmounts", + type: "uint256[]", + indexed: false, + internalType: "uint256[]", + }, + { + name: "spendAssets", + type: "address[]", + indexed: false, + internalType: "address[]", + }, + { + name: "spendAssetAmounts", + type: "uint256[]", + indexed: false, + internalType: "uint256[]", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ValidatedVaultProxySetForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IKilnStakingPositionLib.ts b/packages/abis/src/abis/IKilnStakingPositionLib.ts index 81d00fc3..b6bf6a41 100644 --- a/packages/abis/src/abis/IKilnStakingPositionLib.ts +++ b/packages/abis/src/abis/IKilnStakingPositionLib.ts @@ -1,156 +1,156 @@ export const IKilnStakingPositionLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_exitedValidatorEthThreshold", type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [], - name: "PositionValuePaused", - type: "event", - }, - { - anonymous: false, - inputs: [], - name: "PositionValueUnpaused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "stakingContractAddress", - type: "address", - }, - { - indexed: false, internalType: "uint256", - name: "validatorAmount", - type: "uint256", }, ], - name: "ValidatorsAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "stakingContractAddress", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "validatorAmount", - type: "uint256", - }, - ], - name: "ValidatorsRemoved", - type: "event", + stateMutability: "nonpayable", }, { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getValidatorCount", + inputs: [], outputs: [ { - internalType: "uint256", name: "validatorCount_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "positionValueIsPaused", + inputs: [], outputs: [ { - internalType: "bool", name: "paused_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "PositionValuePaused", + inputs: [], + anonymous: false, + }, + { + type: "event", + name: "PositionValueUnpaused", + inputs: [], + anonymous: false, + }, + { + type: "event", + name: "ValidatorsAdded", + inputs: [ + { + name: "stakingContractAddress", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "validatorAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ValidatorsRemoved", + inputs: [ + { + name: "stakingContractAddress", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "validatorAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IKilnStakingPositionParser.ts b/packages/abis/src/abis/IKilnStakingPositionParser.ts index f3fa5489..80e8429b 100644 --- a/packages/abis/src/abis/IKilnStakingPositionParser.ts +++ b/packages/abis/src/abis/IKilnStakingPositionParser.ts @@ -1,138 +1,138 @@ export const IKilnStakingPositionParser = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_addressListRegistry", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_stakingContractsListId", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_weth", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "ADDRESS_LIST_REGISTRY_CONTRACT", + inputs: [], outputs: [ { - internalType: "contract IAddressListRegistry", name: "", type: "address", + internalType: "contract IAddressListRegistry", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "ETH_AMOUNT_PER_NODE", + inputs: [], outputs: [ { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKING_CONTRACTS_LIST_ID", + inputs: [], outputs: [ { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "WETH_TOKEN", + inputs: [], outputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_encodedActionArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "address[]", name: "assetsToTransfer_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amountsToTransfer_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "assetsToReceive_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "parseInitArgs", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "parseInitArgs", outputs: [ { - internalType: "bytes", name: "initArgs_", type: "bytes", + internalType: "bytes", }, ], stateMutability: "pure", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/ILidoWithdrawalsPositionLib.ts b/packages/abis/src/abis/ILidoWithdrawalsPositionLib.ts index 529961e8..2ece1101 100644 --- a/packages/abis/src/abis/ILidoWithdrawalsPositionLib.ts +++ b/packages/abis/src/abis/ILidoWithdrawalsPositionLib.ts @@ -1,137 +1,137 @@ export const ILidoWithdrawalsPositionLib = [ { + type: "constructor", inputs: [ { - internalType: "contract ILidoWithdrawalQueue", name: "_withdrawalQueue", type: "address", + internalType: "contract ILidoWithdrawalQueue", }, { - internalType: "address", name: "_stethAddress", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "id", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "RequestAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "id", - type: "uint256", - }, - ], - name: "RequestRemoved", - type: "event", }, { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getRequests", + inputs: [], outputs: [ { + name: "requests_", + type: "tuple[]", + internalType: "struct LidoWithdrawalsPositionLibBase1.Request[]", components: [ { - internalType: "uint128", name: "amount", type: "uint128", + internalType: "uint128", }, { - internalType: "uint128", name: "id", type: "uint128", + internalType: "uint128", }, ], - internalType: "struct LidoWithdrawalsPositionLibBase1.Request[]", - name: "requests_", - type: "tuple[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "RequestAdded", + inputs: [ + { + name: "id", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "RequestRemoved", + inputs: [ + { + name: "id", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/ILiquityDebtPositionLib.ts b/packages/abis/src/abis/ILiquityDebtPositionLib.ts index 190d2633..64de5519 100644 --- a/packages/abis/src/abis/ILiquityDebtPositionLib.ts +++ b/packages/abis/src/abis/ILiquityDebtPositionLib.ts @@ -1,90 +1,90 @@ export const ILiquityDebtPositionLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_liquityBorrowerOperations", type: "address", + internalType: "address", }, { - internalType: "address", name: "_liquityTroveManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_lusd", type: "address", + internalType: "address", }, { - internalType: "address", name: "_weth", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/ILiquityDebtPositionParser.ts b/packages/abis/src/abis/ILiquityDebtPositionParser.ts index a8357315..4c9e3d77 100644 --- a/packages/abis/src/abis/ILiquityDebtPositionParser.ts +++ b/packages/abis/src/abis/ILiquityDebtPositionParser.ts @@ -1,86 +1,86 @@ export const ILiquityDebtPositionParser = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_liquityTroveManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_lusdToken", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "_externalPosition", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_encodedActionArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "address[]", name: "assetsToTransfer_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amountsToTransfer_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "assetsToReceive_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseInitArgs", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "parseInitArgs", outputs: [ { - internalType: "bytes", name: "initArgs_", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IManagementFee.ts b/packages/abis/src/abis/IManagementFee.ts index bc8d6b80..6d3a822a 100644 --- a/packages/abis/src/abis/IManagementFee.ts +++ b/packages/abis/src/abis/IManagementFee.ts @@ -1,360 +1,360 @@ export const IManagementFee = [ { - inputs: [ - { - internalType: "address", - name: "_feeManager", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - ], - name: "ActivatedForMigratedFund", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint128", - name: "scaledPerSecondRate", - type: "uint128", - }, - ], - name: "FundSettingsAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "_feeManager", type: "address", - }, - { - indexed: true, internalType: "address", - name: "recipient", - type: "address", }, ], - name: "RecipientSetForFund", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "sharesQuantity", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "secondsSinceSettlement", - type: "uint256", - }, - ], - name: "Settled", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_settingsData", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getFeeInfoForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getFeeInfoForFund", outputs: [ { + name: "feeInfo_", + type: "tuple", + internalType: "struct ManagementFee.FeeInfo", components: [ { - internalType: "uint128", name: "scaledPerSecondRate", type: "uint128", + internalType: "uint128", }, { - internalType: "uint128", name: "lastSettled", type: "uint128", + internalType: "uint128", }, ], - internalType: "struct ManagementFee.FeeInfo", - name: "feeInfo_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFeeManager", + inputs: [], outputs: [ { - internalType: "address", name: "feeManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getRecipientForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getRecipientForFund", outputs: [ { - internalType: "address", name: "recipient_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "payout", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "payout", outputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setRecipientForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_recipient", type: "address", + internalType: "address", }, ], - name: "setRecipientForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settle", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "settle", outputs: [ { - internalType: "enum IFeeManager.SettlementType", name: "settlementType_", type: "uint8", + internalType: "enum IFeeManager.SettlementType", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "sharesDue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settlesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "_hook", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "settlesOnHook", outputs: [ { - internalType: "bool", name: "settles_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "update", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "update", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updatesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "updatesOnHook", outputs: [ { - internalType: "bool", name: "updates_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", + }, + { + type: "event", + name: "ActivatedForMigratedFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "FundSettingsAdded", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "scaledPerSecondRate", + type: "uint128", + indexed: false, + internalType: "uint128", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "RecipientSetForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "recipient", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Settled", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesQuantity", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "secondsSinceSettlement", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IManualValueOracleFactory.ts b/packages/abis/src/abis/IManualValueOracleFactory.ts index f99d7cef..9d1febc6 100644 --- a/packages/abis/src/abis/IManualValueOracleFactory.ts +++ b/packages/abis/src/abis/IManualValueOracleFactory.ts @@ -1,55 +1,55 @@ export const IManualValueOracleFactory = [ { + type: "constructor", inputs: [], stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "caller", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "proxy", - type: "address", - }, - ], - name: "ProxyDeployed", - type: "event", }, { + type: "function", + name: "deploy", inputs: [ { - internalType: "address", name: "_owner", type: "address", + internalType: "address", }, { - internalType: "address", name: "_updater", type: "address", + internalType: "address", }, { - internalType: "bytes32", name: "_description", type: "bytes32", + internalType: "bytes32", }, ], - name: "deploy", outputs: [ { - internalType: "address", name: "proxy_", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ProxyDeployed", + inputs: [ + { + name: "caller", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "proxy", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IManualValueOracleLib.ts b/packages/abis/src/abis/IManualValueOracleLib.ts index 0c04716c..c2c433b1 100644 --- a/packages/abis/src/abis/IManualValueOracleLib.ts +++ b/packages/abis/src/abis/IManualValueOracleLib.ts @@ -1,219 +1,219 @@ export const IManualValueOracleLib = [ { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "description", - type: "bytes32", - }, - ], - name: "Initialized", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "nominatedOwner", - type: "address", - }, - ], - name: "NominatedOwnerSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "owner", - type: "address", - }, - ], - name: "OwnerSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "updater", - type: "address", - }, - ], - name: "UpdaterSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "int256", - name: "value", - type: "int256", - }, - ], - name: "ValueUpdated", - type: "event", - }, - { - inputs: [], + type: "function", name: "claimOwnership", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getLastUpdated", + inputs: [], outputs: [ { - internalType: "uint256", name: "lastUpdated_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getNominatedOwner", + inputs: [], outputs: [ { - internalType: "address", name: "nominatedOwner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getUpdater", + inputs: [], outputs: [ { - internalType: "address", name: "updater_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getValue", + inputs: [], outputs: [ { - internalType: "int256", name: "value_", type: "int256", + internalType: "int256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getValueWithTimestamp", + inputs: [], outputs: [ { - internalType: "int256", name: "value_", type: "int256", + internalType: "int256", }, { - internalType: "uint256", name: "lastUpdated_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "address", name: "_owner", type: "address", + internalType: "address", }, { - internalType: "address", name: "_updater", type: "address", + internalType: "address", }, { - internalType: "bytes32", name: "_description", type: "bytes32", + internalType: "bytes32", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setNominatedOwner", inputs: [ { - internalType: "address", name: "_nextNominatedOwner", type: "address", + internalType: "address", }, ], - name: "setNominatedOwner", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setUpdater", inputs: [ { - internalType: "address", name: "_nextUpdater", type: "address", + internalType: "address", }, ], - name: "setUpdater", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updateValue", inputs: [ { - internalType: "int192", name: "_nextValue", type: "int192", + internalType: "int192", }, ], - name: "updateValue", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "Initialized", + inputs: [ + { + name: "description", + type: "bytes32", + indexed: false, + internalType: "bytes32", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "NominatedOwnerSet", + inputs: [ + { + name: "nominatedOwner", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "OwnerSet", + inputs: [ + { + name: "owner", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "UpdaterSet", + inputs: [ + { + name: "updater", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ValueUpdated", + inputs: [ + { + name: "value", + type: "int256", + indexed: false, + internalType: "int256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IMapleLiquidityPositionLib.ts b/packages/abis/src/abis/IMapleLiquidityPositionLib.ts index 2e494867..9442a5cc 100644 --- a/packages/abis/src/abis/IMapleLiquidityPositionLib.ts +++ b/packages/abis/src/abis/IMapleLiquidityPositionLib.ts @@ -1,224 +1,224 @@ export const IMapleLiquidityPositionLib = [ { - inputs: [ - { - internalType: "address", - name: "_mapleV1ToV2PoolMapper", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, inputs: [ { - indexed: true, - internalType: "address", - name: "lendingPoolV1", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "PoolTokenV1PreMigrationValueSnapshotted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "lendingPool", - type: "address", - }, - ], - name: "UsedLendingPoolAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "lendingPool", - type: "address", - }, - ], - name: "UsedLendingPoolRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "lendingPoolV2", + name: "_mapleV1ToV2PoolMapper", type: "address", - }, - ], - name: "UsedLendingPoolV2Added", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "lendingPoolV2", - type: "address", }, ], - name: "UsedLendingPoolV2Removed", - type: "event", + stateMutability: "nonpayable", }, { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getPreMigrationValueSnapshotOfPoolTokenV1", inputs: [ { - internalType: "address", name: "_poolV1", type: "address", + internalType: "address", }, ], - name: "getPreMigrationValueSnapshotOfPoolTokenV1", outputs: [ { - internalType: "uint256", name: "valueSnapshot_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getUsedLendingPoolsV1", + inputs: [], outputs: [ { - internalType: "address[]", name: "poolsV1_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getUsedLendingPoolsV2", + inputs: [], outputs: [ { - internalType: "address[]", name: "poolsV2_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "isUsedLendingPoolV2", inputs: [ { - internalType: "address", name: "_poolV2", type: "address", + internalType: "address", }, ], - name: "isUsedLendingPoolV2", outputs: [ { - internalType: "bool", name: "isUsed_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "migratePoolsV1ToV2", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "snapshotPoolTokenV1BalanceValues", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "PoolTokenV1PreMigrationValueSnapshotted", + inputs: [ + { + name: "lendingPoolV1", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "value", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "UsedLendingPoolAdded", + inputs: [ + { + name: "lendingPool", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "UsedLendingPoolRemoved", + inputs: [ + { + name: "lendingPool", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "UsedLendingPoolV2Added", + inputs: [ + { + name: "lendingPoolV2", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "UsedLendingPoolV2Removed", + inputs: [ + { + name: "lendingPoolV2", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IMapleLiquidityPositionParser.ts b/packages/abis/src/abis/IMapleLiquidityPositionParser.ts index 2260518e..c3d29f58 100644 --- a/packages/abis/src/abis/IMapleLiquidityPositionParser.ts +++ b/packages/abis/src/abis/IMapleLiquidityPositionParser.ts @@ -1,81 +1,81 @@ export const IMapleLiquidityPositionParser = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_mapleV2Globals", type: "address", + internalType: "address", }, { - internalType: "address", name: "_mapleV1MplRewardsFactory", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_encodedActionArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "address[]", name: "assetsToTransfer_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amountsToTransfer_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "assetsToReceive_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseInitArgs", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "parseInitArgs", outputs: [ { - internalType: "bytes", name: "initArgs_", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IMapleV1ToV2PoolMapper.ts b/packages/abis/src/abis/IMapleV1ToV2PoolMapper.ts index 4b559ced..ad0d8466 100644 --- a/packages/abis/src/abis/IMapleV1ToV2PoolMapper.ts +++ b/packages/abis/src/abis/IMapleV1ToV2PoolMapper.ts @@ -1,147 +1,147 @@ export const IMapleV1ToV2PoolMapper = [ { - inputs: [ - { - internalType: "address", - name: "_dispacher", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, - inputs: [], - name: "MigrationAllowed", - type: "event", - }, - { - anonymous: false, inputs: [ { - indexed: false, - internalType: "address", - name: "poolTokenV1", + name: "_dispacher", type: "address", - }, - { - indexed: false, internalType: "address", - name: "poolTokenV2", - type: "address", }, ], - name: "PoolMapped", - type: "event", - }, - { - anonymous: false, - inputs: [], - name: "SnapshotsFrozen", - type: "event", + stateMutability: "nonpayable", }, { - inputs: [], + type: "function", name: "allowMigration", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "freezeSnapshots", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getPoolTokenV2FromPoolTokenV1", inputs: [ { - internalType: "address", name: "_poolTokenV1", type: "address", + internalType: "address", }, ], - name: "getPoolTokenV2FromPoolTokenV1", outputs: [ { - internalType: "address", name: "poolTokenV2_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "mapPools", inputs: [ { - internalType: "address[]", name: "_poolTokensV1", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_poolTokensV2", type: "address[]", + internalType: "address[]", }, ], - name: "mapPools", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "migrateExternalPositions", inputs: [ { - internalType: "address[]", name: "_proxies", type: "address[]", + internalType: "address[]", }, ], - name: "migrateExternalPositions", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "migrationIsAllowed", + inputs: [], outputs: [ { - internalType: "bool", name: "allowed_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "snapshotExternalPositions", inputs: [ { - internalType: "address[]", name: "_proxies", type: "address[]", + internalType: "address[]", }, ], - name: "snapshotExternalPositions", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "snapshotsAreAllowed", + inputs: [], outputs: [ { - internalType: "bool", name: "allowed_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", + }, + { + type: "event", + name: "MigrationAllowed", + inputs: [], + anonymous: false, + }, + { + type: "event", + name: "PoolMapped", + inputs: [ + { + name: "poolTokenV1", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "poolTokenV2", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "SnapshotsFrozen", + inputs: [], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IMigrationHookHandler.ts b/packages/abis/src/abis/IMigrationHookHandler.ts index 2ce5f78f..abf09f95 100644 --- a/packages/abis/src/abis/IMigrationHookHandler.ts +++ b/packages/abis/src/abis/IMigrationHookHandler.ts @@ -1,63 +1,63 @@ export const IMigrationHookHandler = [ { + type: "function", + name: "invokeMigrationInCancelHook", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_prevFundDeployer", type: "address", + internalType: "address", }, { - internalType: "address", name: "_nextVaultAccessor", type: "address", + internalType: "address", }, { - internalType: "address", name: "_nextVaultLib", type: "address", + internalType: "address", }, ], - name: "invokeMigrationInCancelHook", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "invokeMigrationOutHook", inputs: [ { - internalType: "enum IMigrationHookHandler.MigrationOutHook", name: "_hook", type: "uint8", + internalType: "enum IMigrationHookHandler.MigrationOutHook", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_nextFundDeployer", type: "address", + internalType: "address", }, { - internalType: "address", name: "_nextVaultAccessor", type: "address", + internalType: "address", }, { - internalType: "address", name: "_nextVaultLib", type: "address", + internalType: "address", }, ], - name: "invokeMigrationOutHook", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IMinAssetBalancesPostRedemptionPolicy.ts b/packages/abis/src/abis/IMinAssetBalancesPostRedemptionPolicy.ts index 5fb397e5..dc864833 100644 --- a/packages/abis/src/abis/IMinAssetBalancesPostRedemptionPolicy.ts +++ b/packages/abis/src/abis/IMinAssetBalancesPostRedemptionPolicy.ts @@ -1,192 +1,192 @@ export const IMinAssetBalancesPostRedemptionPolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManager", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "asset", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "minBalance", - type: "uint256", }, ], - name: "MinAssetBalanceAddedForFund", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "getMinAssetBalanceForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "getMinAssetBalanceForFund", outputs: [ { - internalType: "uint256", name: "minBalance_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "MinAssetBalanceAddedForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "minBalance", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IMinMaxInvestmentPolicy.ts b/packages/abis/src/abis/IMinMaxInvestmentPolicy.ts index 0807e975..e6dc9a66 100644 --- a/packages/abis/src/abis/IMinMaxInvestmentPolicy.ts +++ b/packages/abis/src/abis/IMinMaxInvestmentPolicy.ts @@ -1,223 +1,223 @@ export const IMinMaxInvestmentPolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManager", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "minInvestmentAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "maxInvestmentAmount", - type: "uint256", }, ], - name: "FundSettingsSet", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "getFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getFundSettings", outputs: [ { + name: "fundSettings_", + type: "tuple", + internalType: "struct MinMaxInvestmentPolicy.FundSettings", components: [ { - internalType: "uint256", name: "minInvestmentAmount", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "maxInvestmentAmount", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct MinMaxInvestmentPolicy.FundSettings", - name: "fundSettings_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "passesRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_investmentAmount", type: "uint256", + internalType: "uint256", }, ], - name: "passesRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "FundSettingsSet", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "minInvestmentAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "maxInvestmentAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IMinSharesSupplyFee.ts b/packages/abis/src/abis/IMinSharesSupplyFee.ts index e24141cb..84f3bd72 100644 --- a/packages/abis/src/abis/IMinSharesSupplyFee.ts +++ b/packages/abis/src/abis/IMinSharesSupplyFee.ts @@ -1,260 +1,260 @@ export const IMinSharesSupplyFee = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_feeManager", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - anonymous: false, + type: "function", + name: "activateForFund", inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "", type: "address", - }, - { - indexed: true, internalType: "address", - name: "payer", - type: "address", }, { - indexed: false, - internalType: "uint256", - name: "sharesQuantity", - type: "uint256", - }, - ], - name: "Settled", - type: "event", - }, - { - inputs: [ - { - internalType: "address", name: "", type: "address", - }, - { internalType: "address", - name: "", - type: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getFeeManager", + inputs: [], outputs: [ { - internalType: "address", name: "feeManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getRecipientForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "getRecipientForFund", outputs: [ { - internalType: "address", name: "recipient_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "payout", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "payout", outputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settle", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "_settlementData", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "settle", outputs: [ { - internalType: "enum IFeeManager.SettlementType", name: "settlementType_", type: "uint8", + internalType: "enum IFeeManager.SettlementType", }, { - internalType: "address", name: "payer_", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "sharesDue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settlesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "_hook", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "settlesOnHook", outputs: [ { - internalType: "bool", name: "settles_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "update", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "update", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updatesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "updatesOnHook", outputs: [ { - internalType: "bool", name: "updates_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", + }, + { + type: "event", + name: "Settled", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "payer", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesQuantity", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/INoDepegOnRedeemSharesForSpecificAssetsPolicy.ts b/packages/abis/src/abis/INoDepegOnRedeemSharesForSpecificAssetsPolicy.ts index aca1c649..2045afc6 100644 --- a/packages/abis/src/abis/INoDepegOnRedeemSharesForSpecificAssetsPolicy.ts +++ b/packages/abis/src/abis/INoDepegOnRedeemSharesForSpecificAssetsPolicy.ts @@ -1,220 +1,220 @@ export const INoDepegOnRedeemSharesForSpecificAssetsPolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManagerAddress", type: "address", + internalType: "address", }, { - internalType: "contract IValueInterpreter", name: "_valueInterpreter", type: "address", + internalType: "contract IValueInterpreter", }, ], stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - components: [ - { - internalType: "contract ERC20", - name: "asset", - type: "address", - }, - { - internalType: "contract ERC20", - name: "referenceAsset", - type: "address", - }, - { - internalType: "uint16", - name: "deviationToleranceInBps", - type: "uint16", - }, - ], - indexed: false, - internalType: "struct NoDepegPolicyBase.AssetConfig[]", - name: "assetConfigs", - type: "tuple[]", - }, - ], - name: "FundSettingsUpdated", - type: "event", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "getAssetConfigsForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getAssetConfigsForFund", outputs: [ { + name: "assetConfigs_", + type: "tuple[]", + internalType: "struct NoDepegPolicyBase.AssetConfig[]", components: [ { - internalType: "contract ERC20", name: "asset", type: "address", + internalType: "contract ERC20", }, { - internalType: "contract ERC20", name: "referenceAsset", type: "address", + internalType: "contract ERC20", }, { - internalType: "uint16", name: "deviationToleranceInBps", type: "uint16", + internalType: "uint16", }, ], - internalType: "struct NoDepegPolicyBase.AssetConfig[]", - name: "assetConfigs_", - type: "tuple[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "FundSettingsUpdated", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "assetConfigs", + type: "tuple[]", + indexed: false, + internalType: "struct NoDepegPolicyBase.AssetConfig[]", + components: [ + { + name: "asset", + type: "address", + internalType: "contract ERC20", + }, + { + name: "referenceAsset", + type: "address", + internalType: "contract ERC20", + }, + { + name: "deviationToleranceInBps", + type: "uint16", + internalType: "uint16", + }, + ], + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/INotionalV3PositionLib.ts b/packages/abis/src/abis/INotionalV3PositionLib.ts deleted file mode 100644 index b29efaf7..00000000 --- a/packages/abis/src/abis/INotionalV3PositionLib.ts +++ /dev/null @@ -1,80 +0,0 @@ -export const INotionalV3PositionLib = [ - { - inputs: [ - { - internalType: "address", - name: "_notionalV2Router", - type: "address", - }, - { - internalType: "address", - name: "_wethToken", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "getDebtAssets", - outputs: [ - { - internalType: "address[]", - name: "assets_", - type: "address[]", - }, - { - internalType: "uint256[]", - name: "amounts_", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "getManagedAssets", - outputs: [ - { - internalType: "address[]", - name: "assets_", - type: "address[]", - }, - { - internalType: "uint256[]", - name: "amounts_", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - name: "init", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "_actionData", - type: "bytes", - }, - ], - name: "receiveCallFromVault", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; diff --git a/packages/abis/src/abis/IOnlyRemoveDustExternalPositionPolicy.ts b/packages/abis/src/abis/IOnlyRemoveDustExternalPositionPolicy.ts index a5d8e5fd..19ffeac4 100644 --- a/packages/abis/src/abis/IOnlyRemoveDustExternalPositionPolicy.ts +++ b/packages/abis/src/abis/IOnlyRemoveDustExternalPositionPolicy.ts @@ -1,384 +1,384 @@ export const IOnlyRemoveDustExternalPositionPolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_fundDeployer", type: "address", + internalType: "address", }, { - internalType: "address", name: "_valueInterpreter", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_pricelessAssetBypassTimelock", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_pricelessAssetBypassTimeLimit", type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, internalType: "uint256", - name: "nextDustToleranceInWeth", - type: "uint256", - }, - ], - name: "DustToleranceInWethSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "asset", - type: "address", - }, - ], - name: "PricelessAssetBypassed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "asset", - type: "address", }, ], - name: "PricelessAssetTimelockStarted", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "assetIsBypassableForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "assetIsBypassableForFund", outputs: [ { - internalType: "bool", name: "isBypassable_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "getAssetBypassWindowStartForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "getAssetBypassWindowStartForFund", outputs: [ { - internalType: "uint256", name: "windowStart_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getDustToleranceInWeth", + inputs: [], outputs: [ { - internalType: "uint256", name: "dustToleranceInWeth_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPricelessAssetBypassTimeLimit", + inputs: [], outputs: [ { - internalType: "uint256", name: "timeLimit_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPricelessAssetBypassTimelock", + inputs: [], outputs: [ { - internalType: "uint256", name: "timelock_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPricelessAssetBypassValueInterpreter", + inputs: [], outputs: [ { - internalType: "address", name: "valueInterpreter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPricelessAssetBypassWethToken", + inputs: [], outputs: [ { - internalType: "address", name: "wethToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "setDustToleranceInWeth", inputs: [ { - internalType: "uint256", name: "_nextDustToleranceInWeth", type: "uint256", + internalType: "uint256", }, ], - name: "setDustToleranceInWeth", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "startAssetBypassTimelock", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "startAssetBypassTimelock", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "DustToleranceInWethSet", + inputs: [ + { + name: "nextDustToleranceInWeth", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PricelessAssetBypassed", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PricelessAssetTimelockStarted", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IOnlyUntrackDustOrPricelessAssetsPolicy.ts b/packages/abis/src/abis/IOnlyUntrackDustOrPricelessAssetsPolicy.ts index efae581b..09cf2c8b 100644 --- a/packages/abis/src/abis/IOnlyUntrackDustOrPricelessAssetsPolicy.ts +++ b/packages/abis/src/abis/IOnlyUntrackDustOrPricelessAssetsPolicy.ts @@ -1,384 +1,384 @@ export const IOnlyUntrackDustOrPricelessAssetsPolicy = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_policyManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_fundDeployer", type: "address", + internalType: "address", }, { - internalType: "address", name: "_valueInterpreter", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_pricelessAssetBypassTimelock", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_pricelessAssetBypassTimeLimit", type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, internalType: "uint256", - name: "nextDustToleranceInWeth", - type: "uint256", - }, - ], - name: "DustToleranceInWethSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "asset", - type: "address", - }, - ], - name: "PricelessAssetBypassed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "asset", - type: "address", }, ], - name: "PricelessAssetTimelockStarted", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "assetIsBypassableForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "assetIsBypassableForFund", outputs: [ { - internalType: "bool", name: "isBypassable_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "getAssetBypassWindowStartForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "getAssetBypassWindowStartForFund", outputs: [ { - internalType: "uint256", name: "windowStart_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getDustToleranceInWeth", + inputs: [], outputs: [ { - internalType: "uint256", name: "dustToleranceInWeth_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPolicyManager", + inputs: [], outputs: [ { - internalType: "address", name: "policyManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPricelessAssetBypassTimeLimit", + inputs: [], outputs: [ { - internalType: "uint256", name: "timeLimit_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPricelessAssetBypassTimelock", + inputs: [], outputs: [ { - internalType: "uint256", name: "timelock_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPricelessAssetBypassValueInterpreter", + inputs: [], outputs: [ { - internalType: "address", name: "valueInterpreter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getPricelessAssetBypassWethToken", + inputs: [], outputs: [ { - internalType: "address", name: "wethToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "setDustToleranceInWeth", inputs: [ { - internalType: "uint256", name: "_nextDustToleranceInWeth", type: "uint256", + internalType: "uint256", }, ], - name: "setDustToleranceInWeth", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "startAssetBypassTimelock", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "startAssetBypassTimelock", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "DustToleranceInWethSet", + inputs: [ + { + name: "nextDustToleranceInWeth", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PricelessAssetBypassed", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PricelessAssetTimelockStarted", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "asset", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IParaSwapV5Adapter.ts b/packages/abis/src/abis/IParaSwapV5Adapter.ts index 765a907e..9633008f 100644 --- a/packages/abis/src/abis/IParaSwapV5Adapter.ts +++ b/packages/abis/src/abis/IParaSwapV5Adapter.ts @@ -1,321 +1,321 @@ export const IParaSwapV5Adapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_augustusSwapper", type: "address", + internalType: "address", }, { - internalType: "address", name: "_tokenTransferProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_feePartner", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_feePercent", type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, internalType: "uint256", - name: "index", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "reason", - type: "bytes", }, ], - name: "MultipleOrdersItemFailed", - type: "event", + stateMutability: "nonpayable", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getParaSwapV5AugustusSwapper", + inputs: [], outputs: [ { - internalType: "address", name: "augustusSwapper_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getParaSwapV5TokenTransferProxy", + inputs: [], outputs: [ { - internalType: "address", name: "tokenTransferProxy_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "takeMultipleOrders", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "takeMultipleOrders", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "takeOrder", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "takeOrder", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "takeOrderAndValidateIncoming", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_orderData", type: "bytes", + internalType: "bytes", }, ], - name: "takeOrderAndValidateIncoming", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "MultipleOrdersItemFailed", + inputs: [ + { + name: "index", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "reason", + type: "bytes", + indexed: false, + internalType: "bytes", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IPerformanceFee.ts b/packages/abis/src/abis/IPerformanceFee.ts index 70b0ad23..7cf1fbbb 100644 --- a/packages/abis/src/abis/IPerformanceFee.ts +++ b/packages/abis/src/abis/IPerformanceFee.ts @@ -1,385 +1,385 @@ export const IPerformanceFee = [ { - inputs: [ - { - internalType: "address", - name: "_feeManager", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "highWaterMark", - type: "uint256", - }, - ], - name: "ActivatedForFund", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "rate", - type: "uint256", - }, - ], - name: "FundSettingsAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "nextHighWaterMark", - type: "uint256", - }, - ], - name: "HighWaterMarkUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "recipient", + name: "_feeManager", type: "address", - }, - ], - name: "RecipientSetForFund", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "sharePrice", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "sharesDue", - type: "uint256", }, ], - name: "Settled", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_settingsData", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getFeeInfoForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getFeeInfoForFund", outputs: [ { + name: "feeInfo_", + type: "tuple", + internalType: "struct PerformanceFee.FeeInfo", components: [ { - internalType: "uint256", name: "rate", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "highWaterMark", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct PerformanceFee.FeeInfo", - name: "feeInfo_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFeeManager", + inputs: [], outputs: [ { - internalType: "address", name: "feeManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getRecipientForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getRecipientForFund", outputs: [ { - internalType: "address", name: "recipient_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "payout", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "payout", outputs: [ { - internalType: "bool", name: "", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setRecipientForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_recipient", type: "address", + internalType: "address", }, ], - name: "setRecipientForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settle", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "_gav", type: "uint256", + internalType: "uint256", }, ], - name: "settle", outputs: [ { - internalType: "enum IFeeManager.SettlementType", name: "settlementType_", type: "uint8", + internalType: "enum IFeeManager.SettlementType", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "sharesDue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "settlesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "_hook", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "settlesOnHook", outputs: [ { - internalType: "bool", name: "settles_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "update", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "enum IFeeManager.FeeHook", name: "", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "uint256", name: "_gav", type: "uint256", + internalType: "uint256", }, ], - name: "update", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updatesOnHook", inputs: [ { - internalType: "enum IFeeManager.FeeHook", name: "_hook", type: "uint8", + internalType: "enum IFeeManager.FeeHook", }, ], - name: "updatesOnHook", outputs: [ { - internalType: "bool", name: "updates_", type: "bool", + internalType: "bool", }, { - internalType: "bool", name: "usesGav_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", + }, + { + type: "event", + name: "ActivatedForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "highWaterMark", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "FundSettingsAdded", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "rate", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "HighWaterMarkUpdated", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "nextHighWaterMark", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "RecipientSetForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "recipient", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Settled", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharePrice", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "sharesDue", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IPolicy.ts b/packages/abis/src/abis/IPolicy.ts index 050c5178..12d83f25 100644 --- a/packages/abis/src/abis/IPolicy.ts +++ b/packages/abis/src/abis/IPolicy.ts @@ -1,119 +1,119 @@ export const IPolicy = [ { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "addFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "canDisable", + inputs: [], outputs: [ { - internalType: "bool", name: "canDisable_", type: "bool", + internalType: "bool", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "identifier", + inputs: [], outputs: [ { - internalType: "string", name: "identifier_", type: "string", + internalType: "string", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "implementedHooks", + inputs: [], outputs: [ { - internalType: "enum IPolicyManager.PolicyHook[]", name: "implementedHooks_", type: "uint8[]", + internalType: "enum IPolicyManager.PolicyHook[]", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "updateFundSettings", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_encodedSettings", type: "bytes", + internalType: "bytes", }, ], - name: "updateFundSettings", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validateRule", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "_hook", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_encodedArgs", type: "bytes", + internalType: "bytes", }, ], - name: "validateRule", outputs: [ { - internalType: "bool", name: "isValid_", type: "bool", + internalType: "bool", }, ], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IPolicyManager.ts b/packages/abis/src/abis/IPolicyManager.ts index 339fd781..4cb58ec1 100644 --- a/packages/abis/src/abis/IPolicyManager.ts +++ b/packages/abis/src/abis/IPolicyManager.ts @@ -1,383 +1,383 @@ export const IPolicyManager = [ { - inputs: [ - { - internalType: "address", - name: "_fundDeployer", - type: "address", - }, - { - internalType: "address", - name: "_gasRelayPaymasterFactory", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, inputs: [ { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "_fundDeployer", type: "address", - }, - { - indexed: true, internalType: "address", - name: "policy", - type: "address", }, { - indexed: true, - internalType: "enum IPolicyManager.PolicyHook", - name: "hook", - type: "uint8", - }, - ], - name: "PolicyDisabledOnHookForFund", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", + name: "_gasRelayPaymasterFactory", type: "address", - }, - { - indexed: true, internalType: "address", - name: "policy", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "settingsData", - type: "bytes", }, ], - name: "PolicyEnabledForFund", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "comptrollerProxy", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "vaultProxy", - type: "address", - }, - ], - name: "ValidatedVaultProxySetForFund", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "activateForFund", inputs: [ { - internalType: "bool", name: "_isMigratedFund", type: "bool", + internalType: "bool", }, ], - name: "activateForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "deactivateForFund", + inputs: [], outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "disablePolicyForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_policy", type: "address", + internalType: "address", }, ], - name: "disablePolicyForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "enablePolicyForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_policy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_settingsData", type: "bytes", + internalType: "bytes", }, ], - name: "enablePolicyForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getEnabledPoliciesForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getEnabledPoliciesForFund", outputs: [ { - internalType: "address[]", name: "enabledPolicies_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getEnabledPoliciesOnHookForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "_hook", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, ], - name: "getEnabledPoliciesOnHookForFund", outputs: [ { - internalType: "address[]", name: "enabledPolicies_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getGasRelayPaymasterFactory", + inputs: [], outputs: [ { - internalType: "address", name: "gasRelayPaymasterFactory_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getGasRelayTrustedForwarder", + inputs: [], outputs: [ { - internalType: "address", name: "trustedForwarder_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getVaultProxyForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getVaultProxyForFund", outputs: [ { - internalType: "address", name: "vaultProxy_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "policyIsEnabledOnHookForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "_hook", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "address", name: "_policy", type: "address", + internalType: "address", }, ], - name: "policyIsEnabledOnHookForFund", outputs: [ { - internalType: "bool", name: "isEnabled_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "receiveCallFromComptroller", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromComptroller", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setConfigForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_configData", type: "bytes", + internalType: "bytes", }, ], - name: "setConfigForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updatePolicySettingsForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_policy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_settingsData", type: "bytes", + internalType: "bytes", }, ], - name: "updatePolicySettingsForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "validatePolicies", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "enum IPolicyManager.PolicyHook", name: "_hook", type: "uint8", + internalType: "enum IPolicyManager.PolicyHook", }, { - internalType: "bytes", name: "_validationData", type: "bytes", + internalType: "bytes", }, ], - name: "validatePolicies", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "PolicyDisabledOnHookForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "policy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "hook", + type: "uint8", + indexed: true, + internalType: "enum IPolicyManager.PolicyHook", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PolicyEnabledForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "policy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "settingsData", + type: "bytes", + indexed: false, + internalType: "bytes", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ValidatedVaultProxySetForFund", + inputs: [ + { + name: "comptrollerProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IProtocolFeeReserveLib.ts b/packages/abis/src/abis/IProtocolFeeReserveLib.ts index d567f196..11c1e72f 100644 --- a/packages/abis/src/abis/IProtocolFeeReserveLib.ts +++ b/packages/abis/src/abis/IProtocolFeeReserveLib.ts @@ -1,177 +1,177 @@ export const IProtocolFeeReserveLib = [ { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "MlnTokenBalanceWithdrawn", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "nextProtocolFeeReserveLib", - type: "address", - }, - ], - name: "ProtocolFeeReserveLibSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "vaultProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "sharesAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "mlnValue", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "mlnBurned", - type: "uint256", - }, - ], - name: "SharesBoughtBack", - type: "event", - }, - { + type: "function", + name: "buyBackSharesViaTrustedVaultProxy", inputs: [ { - internalType: "uint256", name: "_sharesAmount", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_mlnValue", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "buyBackSharesViaTrustedVaultProxy", outputs: [ { - internalType: "uint256", name: "mlnAmountToBurn_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "callOnContract", inputs: [ { - internalType: "address", name: "_contract", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_callData", type: "bytes", + internalType: "bytes", }, ], - name: "callOnContract", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getDispatcher", + inputs: [], outputs: [ { - internalType: "address", name: "dispatcher_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getProtocolFeeReserveLib", + inputs: [], outputs: [ { - internalType: "address", name: "protocolFeeReserveLib_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "address", name: "_dispatcher", type: "address", + internalType: "address", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "proxiableUUID", + inputs: [], outputs: [ { - internalType: "bytes32", name: "uuid_", type: "bytes32", + internalType: "bytes32", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "setProtocolFeeReserveLib", inputs: [ { - internalType: "address", name: "_nextProtocolFeeReserveLib", type: "address", + internalType: "address", }, ], - name: "setProtocolFeeReserveLib", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "MlnTokenBalanceWithdrawn", + inputs: [ + { + name: "to", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ProtocolFeeReserveLibSet", + inputs: [ + { + name: "nextProtocolFeeReserveLib", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "SharesBoughtBack", + inputs: [ + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "mlnValue", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "mlnBurned", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IProtocolFeeTracker.ts b/packages/abis/src/abis/IProtocolFeeTracker.ts index 946397be..aea7e280 100644 --- a/packages/abis/src/abis/IProtocolFeeTracker.ts +++ b/packages/abis/src/abis/IProtocolFeeTracker.ts @@ -1,279 +1,279 @@ export const IProtocolFeeTracker = [ { - inputs: [ - { - internalType: "address", - name: "_fundDeployer", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "nextFeeBpsDefault", - type: "uint256", - }, - ], - name: "FeeBpsDefaultSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "vaultProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "nextFeeBpsOverride", - type: "uint256", - }, - ], - name: "FeeBpsOverrideSetForVault", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "vaultProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "sharesAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "secondsPaid", - type: "uint256", - }, - ], - name: "FeePaidForVault", - type: "event", - }, - { - anonymous: false, inputs: [ { - indexed: false, - internalType: "address", - name: "vaultProxy", + name: "_fundDeployer", type: "address", - }, - ], - name: "InitializedForVault", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "vaultProxy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "prevTimestamp", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "nextTimestamp", - type: "uint256", }, ], - name: "LastPaidSetForVault", - type: "event", + stateMutability: "nonpayable", }, { - inputs: [], + type: "function", name: "getFeeBpsDefault", + inputs: [], outputs: [ { - internalType: "uint256", name: "feeBpsDefault_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getFeeBpsForVault", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getFeeBpsForVault", outputs: [ { - internalType: "uint256", name: "feeBps_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getFeeBpsOverrideForVault", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getFeeBpsOverrideForVault", outputs: [ { - internalType: "uint256", name: "feeBpsOverride_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getLastPaidForVault", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "getLastPaidForVault", outputs: [ { - internalType: "uint256", name: "lastPaid_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "initializeForVault", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, ], - name: "initializeForVault", outputs: [], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "payFee", + inputs: [], outputs: [ { - internalType: "uint256", name: "sharesDue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setFeeBpsDefault", inputs: [ { - internalType: "uint256", name: "_nextFeeBpsDefault", type: "uint256", + internalType: "uint256", }, ], - name: "setFeeBpsDefault", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setFeeBpsOverrideForVault", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_nextFeeBpsOverride", type: "uint256", + internalType: "uint256", }, ], - name: "setFeeBpsOverrideForVault", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setLastPaidForVault", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_nextTimestamp", type: "uint256", + internalType: "uint256", }, ], - name: "setLastPaidForVault", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "FeeBpsDefaultSet", + inputs: [ + { + name: "nextFeeBpsDefault", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "FeeBpsOverrideSetForVault", + inputs: [ + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "nextFeeBpsOverride", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "FeePaidForVault", + inputs: [ + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "sharesAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "secondsPaid", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "InitializedForVault", + inputs: [ + { + name: "vaultProxy", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "LastPaidSetForVault", + inputs: [ + { + name: "vaultProxy", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "prevTimestamp", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "nextTimestamp", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IRevertingPriceFeed.ts b/packages/abis/src/abis/IRevertingPriceFeed.ts index 9488d993..023d3589 100644 --- a/packages/abis/src/abis/IRevertingPriceFeed.ts +++ b/packages/abis/src/abis/IRevertingPriceFeed.ts @@ -1,50 +1,50 @@ export const IRevertingPriceFeed = [ { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/ISharesSplitterFactory.ts b/packages/abis/src/abis/ISharesSplitterFactory.ts index 49b729b6..ab5451a3 100644 --- a/packages/abis/src/abis/ISharesSplitterFactory.ts +++ b/packages/abis/src/abis/ISharesSplitterFactory.ts @@ -1,56 +1,56 @@ export const ISharesSplitterFactory = [ { - inputs: [ - { - internalType: "address", - name: "_globalConfigProxy", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, inputs: [ { - indexed: true, - internalType: "address", - name: "caller", + name: "_globalConfigProxy", type: "address", - }, - { - indexed: false, internalType: "address", - name: "proxy", - type: "address", }, ], - name: "ProxyDeployed", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "deploy", inputs: [ { - internalType: "address[]", name: "_users", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "_splitPercentages", type: "uint256[]", + internalType: "uint256[]", }, ], - name: "deploy", outputs: [ { - internalType: "address", name: "sharesSplitter_", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ProxyDeployed", + inputs: [ + { + name: "caller", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "proxy", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/ISharesSplitterLib.ts b/packages/abis/src/abis/ISharesSplitterLib.ts index 0234f7a7..a83592b7 100644 --- a/packages/abis/src/abis/ISharesSplitterLib.ts +++ b/packages/abis/src/abis/ISharesSplitterLib.ts @@ -1,253 +1,253 @@ export const ISharesSplitterLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_globalConfigProxy", type: "address", + internalType: "address", }, { - internalType: "address", name: "_initializer", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "user", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "percentage", - type: "uint256", }, ], - name: "SplitPercentageSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "user", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "TokenClaimed", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "claimToken", inputs: [ { - internalType: "address", name: "_token", type: "address", + internalType: "address", }, ], - name: "claimToken", outputs: [ { - internalType: "uint256", name: "claimedAmount_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "claimTokenAmountTo", inputs: [ { - internalType: "address", name: "_token", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_to", type: "address", + internalType: "address", }, ], - name: "claimTokenAmountTo", outputs: [ { - internalType: "uint256", name: "claimedAmount_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getSplitPercentageForUser", inputs: [ { - internalType: "address", name: "_user", type: "address", + internalType: "address", }, ], - name: "getSplitPercentageForUser", outputs: [ { - internalType: "uint256", name: "splitPercentage_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getTokenBalClaimableForUser", inputs: [ { - internalType: "address", name: "_user", type: "address", + internalType: "address", }, { - internalType: "address", name: "_token", type: "address", + internalType: "address", }, ], - name: "getTokenBalClaimableForUser", outputs: [ { - internalType: "uint256", name: "balClaimable_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getTokenBalClaimedForUser", inputs: [ { - internalType: "address", name: "_user", type: "address", + internalType: "address", }, { - internalType: "address", name: "_token", type: "address", + internalType: "address", }, ], - name: "getTokenBalClaimedForUser", outputs: [ { - internalType: "uint256", name: "balClaimed_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getTotalTokenBalClaimed", inputs: [ { - internalType: "address", name: "_token", type: "address", + internalType: "address", }, ], - name: "getTotalTokenBalClaimed", outputs: [ { - internalType: "uint256", name: "totalBalClaimed_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "address[]", name: "_users", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "_splitPercentages", type: "uint256[]", + internalType: "uint256[]", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "redeemShares", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_redeemContract", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_redeemSelector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_redeemData", type: "bytes", + internalType: "bytes", }, ], - name: "redeemShares", outputs: [ { - internalType: "uint256", name: "sharesRedeemed_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "SplitPercentageSet", + inputs: [ + { + name: "user", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "percentage", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "TokenClaimed", + inputs: [ + { + name: "user", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "token", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/ISolvV2BondBuyerPositionLib.ts b/packages/abis/src/abis/ISolvV2BondBuyerPositionLib.ts index 80a057f2..04adb369 100644 --- a/packages/abis/src/abis/ISolvV2BondBuyerPositionLib.ts +++ b/packages/abis/src/abis/ISolvV2BondBuyerPositionLib.ts @@ -1,177 +1,177 @@ export const ISolvV2BondBuyerPositionLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_initialBondOfferingMarket", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "voucher", - type: "address", - }, - { - indexed: true, - internalType: "uint32", - name: "tokenId", - type: "uint32", }, ], - name: "VoucherTokenIdAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "voucher", - type: "address", - }, - { - indexed: true, - internalType: "uint32", - name: "tokenId", - type: "uint32", - }, - ], - name: "VoucherTokenIdRemoved", - type: "event", + stateMutability: "nonpayable", }, { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getVoucherTokenIds", + inputs: [], outputs: [ { + name: "voucherTokenIds_", + type: "tuple[]", + internalType: "struct SolvV2BondBuyerPositionLibBase1.VoucherTokenId[]", components: [ { - internalType: "address", name: "voucher", type: "address", + internalType: "address", }, { - internalType: "uint32", name: "tokenId", type: "uint32", + internalType: "uint32", }, ], - internalType: "struct SolvV2BondBuyerPositionLibBase1.VoucherTokenId[]", - name: "voucherTokenIds_", - type: "tuple[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "onVNFTReceived", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "onVNFTReceived", outputs: [ { - internalType: "bytes4", name: "selector_", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "pure", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "VoucherTokenIdAdded", + inputs: [ + { + name: "voucher", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "tokenId", + type: "uint32", + indexed: true, + internalType: "uint32", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "VoucherTokenIdRemoved", + inputs: [ + { + name: "voucher", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "tokenId", + type: "uint32", + indexed: true, + internalType: "uint32", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/ISolvV2BondBuyerPositionParser.ts b/packages/abis/src/abis/ISolvV2BondBuyerPositionParser.ts index f9c74e2d..83fd18c4 100644 --- a/packages/abis/src/abis/ISolvV2BondBuyerPositionParser.ts +++ b/packages/abis/src/abis/ISolvV2BondBuyerPositionParser.ts @@ -1,76 +1,76 @@ export const ISolvV2BondBuyerPositionParser = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_initialBondOfferingMarket", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_encodedActionArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "address[]", name: "assetsToTransfer_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amountsToTransfer_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "assetsToReceive_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseInitArgs", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "parseInitArgs", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/ISolvV2BondIssuerPositionLib.ts b/packages/abis/src/abis/ISolvV2BondIssuerPositionLib.ts index 949334b6..31ad9542 100644 --- a/packages/abis/src/abis/ISolvV2BondIssuerPositionLib.ts +++ b/packages/abis/src/abis/ISolvV2BondIssuerPositionLib.ts @@ -1,153 +1,153 @@ export const ISolvV2BondIssuerPositionLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_initialBondOfferingMarket", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "voucher", - type: "address", - }, - ], - name: "IssuedVoucherAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "voucher", - type: "address", - }, - ], - name: "IssuedVoucherRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint24", - name: "offerId", - type: "uint24", }, ], - name: "OfferAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint24", - name: "offerId", - type: "uint24", - }, - ], - name: "OfferRemoved", - type: "event", + stateMutability: "nonpayable", }, { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getIssuedVouchers", + inputs: [], outputs: [ { - internalType: "address[]", name: "vouchers_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getOffers", + inputs: [], outputs: [ { - internalType: "uint24[]", name: "offers_", type: "uint24[]", + internalType: "uint24[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "IssuedVoucherAdded", + inputs: [ + { + name: "voucher", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "IssuedVoucherRemoved", + inputs: [ + { + name: "voucher", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "OfferAdded", + inputs: [ + { + name: "offerId", + type: "uint24", + indexed: true, + internalType: "uint24", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "OfferRemoved", + inputs: [ + { + name: "offerId", + type: "uint24", + indexed: true, + internalType: "uint24", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/ISolvV2BondIssuerPositionParser.ts b/packages/abis/src/abis/ISolvV2BondIssuerPositionParser.ts index 16fa9986..10cd49fe 100644 --- a/packages/abis/src/abis/ISolvV2BondIssuerPositionParser.ts +++ b/packages/abis/src/abis/ISolvV2BondIssuerPositionParser.ts @@ -1,76 +1,76 @@ export const ISolvV2BondIssuerPositionParser = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_initialBondOfferingMarket", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "_externalPosition", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_encodedActionArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "address[]", name: "assetsToTransfer_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amountsToTransfer_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "assetsToReceive_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseInitArgs", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "parseInitArgs", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IStakeWiseV3StakingPositionLib.ts b/packages/abis/src/abis/IStakeWiseV3StakingPositionLib.ts index 36d30da3..28bf0129 100644 --- a/packages/abis/src/abis/IStakeWiseV3StakingPositionLib.ts +++ b/packages/abis/src/abis/IStakeWiseV3StakingPositionLib.ts @@ -1,206 +1,206 @@ export const IStakeWiseV3StakingPositionLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_wethToken", type: "address", - }, - { - internalType: "address", - name: "_referrer", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "stakeWiseVaultAddress", - type: "address", }, { - indexed: false, - internalType: "uint256", - name: "positionTicket", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "sharesAmount", - type: "uint256", - }, - ], - name: "ExitRequestAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "stakeWiseVaultAddress", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "positionTicket", - type: "uint256", - }, - ], - name: "ExitRequestRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "stakeWiseVaultAddress", + name: "_referrer", type: "address", - }, - ], - name: "VaultTokenAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "stakeWiseVaultAddress", - type: "address", }, ], - name: "VaultTokenRemoved", - type: "event", + stateMutability: "nonpayable", }, { - inputs: [], + type: "function", name: "WETH_TOKEN", + inputs: [], outputs: [ { - internalType: "contract IWETH", name: "", type: "address", + internalType: "contract IWETH", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "getExitRequests", + inputs: [], outputs: [ { + name: "exitRequests_", + type: "tuple[]", + internalType: "struct StakeWiseV3StakingPositionLibBase1.ExitRequest[]", components: [ { - internalType: "address", name: "stakeWiseVaultAddress", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "positionTicket", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "sharesAmount", type: "uint256", + internalType: "uint256", }, ], - internalType: "struct StakeWiseV3StakingPositionLibBase1.ExitRequest[]", - name: "exitRequests_", - type: "tuple[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getStakeWiseVaultTokens", + inputs: [], outputs: [ { - internalType: "address[]", name: "stakeWiseVaultTokens_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ExitRequestAdded", + inputs: [ + { + name: "stakeWiseVaultAddress", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "positionTicket", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "sharesAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ExitRequestRemoved", + inputs: [ + { + name: "stakeWiseVaultAddress", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "positionTicket", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "VaultTokenAdded", + inputs: [ + { + name: "stakeWiseVaultAddress", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "VaultTokenRemoved", + inputs: [ + { + name: "stakeWiseVaultAddress", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IStakeWiseV3StakingPositionParser.ts b/packages/abis/src/abis/IStakeWiseV3StakingPositionParser.ts index 75ea0ce4..0edc70d1 100644 --- a/packages/abis/src/abis/IStakeWiseV3StakingPositionParser.ts +++ b/packages/abis/src/abis/IStakeWiseV3StakingPositionParser.ts @@ -1,107 +1,107 @@ export const IStakeWiseV3StakingPositionParser = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_stakeWiseV3VaultsRegistryAddress", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wethAddress", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "STAKEWISE_V3_VAULT_REGISTRY", + inputs: [], outputs: [ { - internalType: "contract IStakeWiseV3VaultsRegistry", name: "", type: "address", + internalType: "contract IStakeWiseV3VaultsRegistry", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "WETH_ADDRESS", + inputs: [], outputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_encodedActionArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "address[]", name: "assetsToTransfer_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amountsToTransfer_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "assetsToReceive_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "parseInitArgs", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "parseInitArgs", outputs: [ { - internalType: "bytes", name: "initArgs_", type: "bytes", + internalType: "bytes", }, ], stateMutability: "pure", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IStakingWrapper.ts b/packages/abis/src/abis/IStakingWrapper.ts index 107be00f..4bb994c2 100644 --- a/packages/abis/src/abis/IStakingWrapper.ts +++ b/packages/abis/src/abis/IStakingWrapper.ts @@ -1,265 +1,265 @@ export const IStakingWrapper = [ { + type: "function", + name: "claimRewardsFor", inputs: [ { - internalType: "address", name: "_for", type: "address", + internalType: "address", }, ], - name: "claimRewardsFor", outputs: [ { - internalType: "address[]", name: "rewardTokens_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "claimedAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "claimRewardsForWithoutCheckpoint", inputs: [ { - internalType: "address", name: "_for", type: "address", + internalType: "address", }, ], - name: "claimRewardsForWithoutCheckpoint", outputs: [ { - internalType: "address[]", name: "rewardTokens_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "claimedAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "depositTo", inputs: [ { - internalType: "address", name: "_to", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "depositTo", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getRewardTokenAtIndex", inputs: [ { - internalType: "uint256", name: "_index", type: "uint256", + internalType: "uint256", }, ], - name: "getRewardTokenAtIndex", outputs: [ { - internalType: "address", name: "rewardToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getRewardTokenCount", + inputs: [], outputs: [ { - internalType: "uint256", name: "count_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getRewardTokens", + inputs: [], outputs: [ { - internalType: "address[]", name: "rewardTokens_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getTotalHarvestDataForRewardToken", inputs: [ { - internalType: "address", name: "_rewardToken", type: "address", + internalType: "address", }, ], - name: "getTotalHarvestDataForRewardToken", outputs: [ { + name: "totalHarvestData_", + type: "tuple", + internalType: "struct IStakingWrapper.TotalHarvestData", components: [ { - internalType: "uint128", name: "integral", type: "uint128", + internalType: "uint128", }, { - internalType: "uint128", name: "lastCheckpointBalance", type: "uint128", + internalType: "uint128", }, ], - internalType: "struct IStakingWrapper.TotalHarvestData", - name: "totalHarvestData_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getUserHarvestDataForRewardToken", inputs: [ { - internalType: "address", name: "_user", type: "address", + internalType: "address", }, { - internalType: "address", name: "_rewardToken", type: "address", + internalType: "address", }, ], - name: "getUserHarvestDataForRewardToken", outputs: [ { + name: "userHarvestData_", + type: "tuple", + internalType: "struct IStakingWrapper.UserHarvestData", components: [ { - internalType: "uint128", name: "integral", type: "uint128", + internalType: "uint128", }, { - internalType: "uint128", name: "claimableReward", type: "uint128", + internalType: "uint128", }, ], - internalType: "struct IStakingWrapper.UserHarvestData", - name: "userHarvestData_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "isPaused", + inputs: [], outputs: [ { - internalType: "bool", name: "isPaused_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "togglePause", inputs: [ { - internalType: "bool", name: "_isPaused", type: "bool", + internalType: "bool", }, ], - name: "togglePause", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "withdrawTo", inputs: [ { - internalType: "address", name: "_to", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "withdrawTo", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "withdrawToOnBehalf", inputs: [ { - internalType: "address", name: "_onBehalf", type: "address", + internalType: "address", }, { - internalType: "address", name: "_to", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "withdrawToOnBehalf", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "withdrawToWithoutCheckpoint", inputs: [ { - internalType: "address", name: "_to", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "withdrawToWithoutCheckpoint", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/ISynthetixAdapter.ts b/packages/abis/src/abis/ISynthetixAdapter.ts index 282666d3..26119dcc 100644 --- a/packages/abis/src/abis/ISynthetixAdapter.ts +++ b/packages/abis/src/abis/ISynthetixAdapter.ts @@ -1,320 +1,320 @@ export const ISynthetixAdapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_valueInterpreter", type: "address", + internalType: "address", }, { - internalType: "address", name: "_originator", type: "address", + internalType: "address", }, { - internalType: "address", name: "_synthetixRedeemer", type: "address", + internalType: "address", }, { - internalType: "address", name: "_synthetix", type: "address", + internalType: "address", }, { - internalType: "address", name: "_susd", type: "address", + internalType: "address", }, { - internalType: "bytes32", name: "_trackingCode", type: "bytes32", + internalType: "bytes32", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getSynthetix", + inputs: [], outputs: [ { - internalType: "address", name: "synthetix_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getSynthetixOriginator", + inputs: [], outputs: [ { - internalType: "address", name: "synthetixOriginator_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getSynthetixRedeemer", + inputs: [], outputs: [ { - internalType: "address", name: "synthetixRedeemer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getSynthetixTrackingCode", + inputs: [], outputs: [ { - internalType: "bytes32", name: "synthetixTrackingCode_", type: "bytes32", + internalType: "bytes32", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "redeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "redeem", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "takeOrder", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "takeOrder", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/ITheGraphDelegationPositionLib.ts b/packages/abis/src/abis/ITheGraphDelegationPositionLib.ts index cc611b8f..36d1fd48 100644 --- a/packages/abis/src/abis/ITheGraphDelegationPositionLib.ts +++ b/packages/abis/src/abis/ITheGraphDelegationPositionLib.ts @@ -1,157 +1,157 @@ export const ITheGraphDelegationPositionLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_stakingProxy", type: "address", - }, - { internalType: "address", - name: "_grtToken", - type: "address", }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ { - indexed: true, - internalType: "address", - name: "indexer", + name: "_grtToken", type: "address", - }, - ], - name: "IndexerAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "indexer", - type: "address", }, ], - name: "IndexerRemoved", - type: "event", + stateMutability: "nonpayable", }, { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getDelegationGrtValue", inputs: [ { - internalType: "address", name: "_indexer", type: "address", + internalType: "address", }, ], - name: "getDelegationGrtValue", outputs: [ { - internalType: "uint256", name: "grtValue_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIndexers", + inputs: [], outputs: [ { - internalType: "address[]", name: "", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "isDelegatorTo", inputs: [ { - internalType: "address", name: "_indexer", type: "address", + internalType: "address", }, ], - name: "isDelegatorTo", outputs: [ { - internalType: "bool", name: "isDelegator_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "IndexerAdded", + inputs: [ + { + name: "indexer", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "IndexerRemoved", + inputs: [ + { + name: "indexer", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/ITheGraphDelegationPositionParser.ts b/packages/abis/src/abis/ITheGraphDelegationPositionParser.ts index 3f6b9057..27b6a944 100644 --- a/packages/abis/src/abis/ITheGraphDelegationPositionParser.ts +++ b/packages/abis/src/abis/ITheGraphDelegationPositionParser.ts @@ -1,76 +1,76 @@ export const ITheGraphDelegationPositionParser = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_grtToken", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_encodedActionArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "address[]", name: "assetsToTransfer_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amountsToTransfer_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "assetsToReceive_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseInitArgs", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "parseInitArgs", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IUintListRegistry.ts b/packages/abis/src/abis/IUintListRegistry.ts index 7dcd64aa..268746e4 100644 --- a/packages/abis/src/abis/IUintListRegistry.ts +++ b/packages/abis/src/abis/IUintListRegistry.ts @@ -1,520 +1,520 @@ export const IUintListRegistry = [ { - inputs: [ - { - internalType: "address", - name: "_dispatcher", - type: "address", - }, - ], - stateMutability: "nonpayable", type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "id", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "item", - type: "uint256", - }, - ], - name: "ItemAddedToList", - type: "event", - }, - { - anonymous: false, inputs: [ { - indexed: true, - internalType: "uint256", - name: "id", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "item", - type: "uint256", - }, - ], - name: "ItemRemovedFromList", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "id", - type: "uint256", - }, - { - indexed: false, - internalType: "string", - name: "description", - type: "string", - }, - ], - name: "ListAttested", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "creator", + name: "_dispatcher", type: "address", - }, - { - indexed: true, internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "id", - type: "uint256", - }, - { - indexed: false, - internalType: "enum IUintListRegistry.UpdateType", - name: "updateType", - type: "uint8", - }, - ], - name: "ListCreated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "id", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "nextOwner", - type: "address", }, ], - name: "ListOwnerSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "id", - type: "uint256", - }, - { - indexed: false, - internalType: "enum IUintListRegistry.UpdateType", - name: "prevUpdateType", - type: "uint8", - }, - { - indexed: true, - internalType: "enum IUintListRegistry.UpdateType", - name: "nextUpdateType", - type: "uint8", - }, - ], - name: "ListUpdateTypeSet", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "addToList", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256[]", name: "_items", type: "uint256[]", + internalType: "uint256[]", }, ], - name: "addToList", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "areAllInAllLists", inputs: [ { - internalType: "uint256[]", name: "_ids", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "uint256[]", name: "_items", type: "uint256[]", + internalType: "uint256[]", }, ], - name: "areAllInAllLists", outputs: [ { - internalType: "bool", name: "areAllInAllLists_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "areAllInList", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256[]", name: "_items", type: "uint256[]", + internalType: "uint256[]", }, ], - name: "areAllInList", outputs: [ { - internalType: "bool", name: "areAllInList_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "areAllInSomeOfLists", inputs: [ { - internalType: "uint256[]", name: "_ids", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "uint256[]", name: "_items", type: "uint256[]", + internalType: "uint256[]", }, ], - name: "areAllInSomeOfLists", outputs: [ { - internalType: "bool", name: "areAllInSomeOfLists_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "areAllNotInAnyOfLists", inputs: [ { - internalType: "uint256[]", name: "_ids", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "uint256[]", name: "_items", type: "uint256[]", + internalType: "uint256[]", }, ], - name: "areAllNotInAnyOfLists", outputs: [ { - internalType: "bool", name: "areAllNotInAnyOfLists_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "areAllNotInList", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256[]", name: "_items", type: "uint256[]", + internalType: "uint256[]", }, ], - name: "areAllNotInList", outputs: [ { - internalType: "bool", name: "areAllNotInList_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "attestLists", inputs: [ { - internalType: "uint256[]", name: "_ids", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "string[]", name: "_descriptions", type: "string[]", + internalType: "string[]", }, ], - name: "attestLists", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "createList", inputs: [ { - internalType: "address", name: "_owner", type: "address", + internalType: "address", }, { - internalType: "enum IUintListRegistry.UpdateType", name: "_updateType", type: "uint8", + internalType: "enum IUintListRegistry.UpdateType", }, { - internalType: "uint256[]", name: "_initialItems", type: "uint256[]", + internalType: "uint256[]", }, ], - name: "createList", outputs: [ { - internalType: "uint256", name: "id_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getDispatcher", + inputs: [], outputs: [ { - internalType: "address", name: "dispatcher_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getListCount", + inputs: [], outputs: [ { - internalType: "uint256", name: "count_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getListOwner", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, ], - name: "getListOwner", outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getListUpdateType", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, ], - name: "getListUpdateType", outputs: [ { - internalType: "enum IUintListRegistry.UpdateType", name: "updateType_", type: "uint8", + internalType: "enum IUintListRegistry.UpdateType", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isInAllLists", inputs: [ { - internalType: "uint256[]", name: "_ids", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "uint256", name: "_item", type: "uint256", + internalType: "uint256", }, ], - name: "isInAllLists", outputs: [ { - internalType: "bool", name: "isInAllLists_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isInList", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256", name: "_item", type: "uint256", + internalType: "uint256", }, ], - name: "isInList", outputs: [ { - internalType: "bool", name: "isInList_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isInSomeOfLists", inputs: [ { - internalType: "uint256[]", name: "_ids", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "uint256", name: "_item", type: "uint256", + internalType: "uint256", }, ], - name: "isInSomeOfLists", outputs: [ { - internalType: "bool", name: "isInSomeOfLists_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "removeFromList", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "uint256[]", name: "_items", type: "uint256[]", + internalType: "uint256[]", }, ], - name: "removeFromList", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setListOwner", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_nextOwner", type: "address", + internalType: "address", }, ], - name: "setListOwner", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setListUpdateType", inputs: [ { - internalType: "uint256", name: "_id", type: "uint256", + internalType: "uint256", }, { - internalType: "enum IUintListRegistry.UpdateType", name: "_nextUpdateType", type: "uint8", + internalType: "enum IUintListRegistry.UpdateType", }, ], - name: "setListUpdateType", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "ItemAddedToList", + inputs: [ + { + name: "id", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "item", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ItemRemovedFromList", + inputs: [ + { + name: "id", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "item", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ListAttested", + inputs: [ + { + name: "id", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "description", + type: "string", + indexed: false, + internalType: "string", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ListCreated", + inputs: [ + { + name: "creator", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "owner", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "id", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + { + name: "updateType", + type: "uint8", + indexed: false, + internalType: "enum IUintListRegistry.UpdateType", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ListOwnerSet", + inputs: [ + { + name: "id", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "nextOwner", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ListUpdateTypeSet", + inputs: [ + { + name: "id", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + { + name: "prevUpdateType", + type: "uint8", + indexed: false, + internalType: "enum IUintListRegistry.UpdateType", + }, + { + name: "nextUpdateType", + type: "uint8", + indexed: true, + internalType: "enum IUintListRegistry.UpdateType", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IUniswapV2ExchangeAdapter.ts b/packages/abis/src/abis/IUniswapV2ExchangeAdapter.ts index fe8bfe40..1a43cc0e 100644 --- a/packages/abis/src/abis/IUniswapV2ExchangeAdapter.ts +++ b/packages/abis/src/abis/IUniswapV2ExchangeAdapter.ts @@ -1,233 +1,233 @@ export const IUniswapV2ExchangeAdapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_router", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getUniswapV2Router2", + inputs: [], outputs: [ { - internalType: "address", name: "router_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "takeOrder", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "takeOrder", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IUniswapV2LiquidityAdapter.ts b/packages/abis/src/abis/IUniswapV2LiquidityAdapter.ts index 35efc0be..60157515 100644 --- a/packages/abis/src/abis/IUniswapV2LiquidityAdapter.ts +++ b/packages/abis/src/abis/IUniswapV2LiquidityAdapter.ts @@ -1,274 +1,274 @@ export const IUniswapV2LiquidityAdapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_router", type: "address", + internalType: "address", }, { - internalType: "address", name: "_factory", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFactory", + inputs: [], outputs: [ { - internalType: "address", name: "factory_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getUniswapV2Router2", + inputs: [], outputs: [ { - internalType: "address", name: "router_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "lend", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "lend", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "redeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "redeem", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IUniswapV2PoolPriceFeed.ts b/packages/abis/src/abis/IUniswapV2PoolPriceFeed.ts index d8995d3a..a9180c04 100644 --- a/packages/abis/src/abis/IUniswapV2PoolPriceFeed.ts +++ b/packages/abis/src/abis/IUniswapV2PoolPriceFeed.ts @@ -1,226 +1,226 @@ export const IUniswapV2PoolPriceFeed = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_fundDeployer", type: "address", + internalType: "address", }, { - internalType: "address", name: "_valueInterpreter", type: "address", - }, - { internalType: "address", - name: "_factory", - type: "address", }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ { - indexed: true, - internalType: "address", - name: "poolToken", + name: "_factory", type: "address", - }, - { - indexed: false, internalType: "address", - name: "token0", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "token1", - type: "address", }, ], - name: "PoolTokenAdded", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "addPoolTokens", inputs: [ { - internalType: "address[]", name: "_poolTokens", type: "address[]", + internalType: "address[]", }, ], - name: "addPoolTokens", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getFactory", + inputs: [], outputs: [ { - internalType: "address", name: "factory_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getPoolTokenInfo", inputs: [ { - internalType: "address", name: "_poolToken", type: "address", + internalType: "address", }, ], - name: "getPoolTokenInfo", outputs: [ { + name: "poolTokenInfo_", + type: "tuple", + internalType: "struct UniswapV2PoolPriceFeed.PoolTokenInfo", components: [ { - internalType: "address", name: "token0", type: "address", + internalType: "address", }, { - internalType: "address", name: "token1", type: "address", + internalType: "address", }, { - internalType: "uint8", name: "token0Decimals", type: "uint8", + internalType: "uint8", }, { - internalType: "uint8", name: "token1Decimals", type: "uint8", + internalType: "uint8", }, ], - internalType: "struct UniswapV2PoolPriceFeed.PoolTokenInfo", - name: "poolTokenInfo_", - type: "tuple", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getPoolTokenUnderlyings", inputs: [ { - internalType: "address", name: "_poolToken", type: "address", + internalType: "address", }, ], - name: "getPoolTokenUnderlyings", outputs: [ { - internalType: "address", name: "token0_", type: "address", + internalType: "address", }, { - internalType: "address", name: "token1_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getValueInterpreter", + inputs: [], outputs: [ { - internalType: "address", name: "valueInterpreter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", + }, + { + type: "event", + name: "PoolTokenAdded", + inputs: [ + { + name: "poolToken", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "token0", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "token1", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IUniswapV3Adapter.ts b/packages/abis/src/abis/IUniswapV3Adapter.ts index 032c36b2..e90b5a98 100644 --- a/packages/abis/src/abis/IUniswapV3Adapter.ts +++ b/packages/abis/src/abis/IUniswapV3Adapter.ts @@ -1,233 +1,233 @@ export const IUniswapV3Adapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_router", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getUniswapV3Router", + inputs: [], outputs: [ { - internalType: "address", name: "router_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "takeOrder", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "takeOrder", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IUniswapV3LiquidityPositionLib.ts b/packages/abis/src/abis/IUniswapV3LiquidityPositionLib.ts index 23a8c4e7..b696aea4 100644 --- a/packages/abis/src/abis/IUniswapV3LiquidityPositionLib.ts +++ b/packages/abis/src/abis/IUniswapV3LiquidityPositionLib.ts @@ -1,207 +1,207 @@ export const IUniswapV3LiquidityPositionLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_nonFungibleTokenManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_valueInterpreter", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - ], - name: "NFTPositionAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - ], - name: "NFTPositionRemoved", - type: "event", - }, - { - inputs: [], + type: "function", name: "getDebtAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "pure", - type: "function", }, { - inputs: [], + type: "function", name: "getManagedAssets", + inputs: [], outputs: [ { - internalType: "address[]", name: "assets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getNftIds", + inputs: [], outputs: [ { - internalType: "uint256[]", name: "nftIds_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getNonFungibleTokenManager", + inputs: [], outputs: [ { - internalType: "address", name: "nonFungibleTokenManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getPairForNft", inputs: [ { - internalType: "uint256", name: "_nftId", type: "uint256", + internalType: "uint256", }, ], - name: "getPairForNft", outputs: [ { - internalType: "address", name: "token0_", type: "address", + internalType: "address", }, { - internalType: "address", name: "token1_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getToken0ForNft", inputs: [ { - internalType: "uint256", name: "_nftId", type: "uint256", + internalType: "uint256", }, ], - name: "getToken0ForNft", outputs: [ { - internalType: "address", name: "token0_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getToken1ForNft", inputs: [ { - internalType: "uint256", name: "_nftId", type: "uint256", + internalType: "uint256", }, ], - name: "getToken1ForNft", outputs: [ { - internalType: "address", name: "token1_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getValueInterpreter", + inputs: [], outputs: [ { - internalType: "address", name: "valueInterpreter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "init", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "receiveCallFromVault", inputs: [ { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "receiveCallFromVault", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "NFTPositionAdded", + inputs: [ + { + name: "tokenId", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "NFTPositionRemoved", + inputs: [ + { + name: "tokenId", + type: "uint256", + indexed: true, + internalType: "uint256", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IUniswapV3LiquidityPositionParser.ts b/packages/abis/src/abis/IUniswapV3LiquidityPositionParser.ts index dbd64100..b04c0a0f 100644 --- a/packages/abis/src/abis/IUniswapV3LiquidityPositionParser.ts +++ b/packages/abis/src/abis/IUniswapV3LiquidityPositionParser.ts @@ -1,107 +1,107 @@ export const IUniswapV3LiquidityPositionParser = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_valueInterpreter", type: "address", + internalType: "address", }, { - internalType: "address", name: "_nonfungiblePositionManager", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "getUniswapV3NonfungiblePositionManager", + inputs: [], outputs: [ { - internalType: "address", name: "nonfungiblePositionManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getValueInterpreter", + inputs: [], outputs: [ { - internalType: "address", name: "valueInterpreter_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "_externalPosition", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_actionId", type: "uint256", + internalType: "uint256", }, { - internalType: "bytes", name: "_encodedActionArgs", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "address[]", name: "assetsToTransfer_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "amountsToTransfer_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "assetsToReceive_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "parseInitArgs", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], - name: "parseInitArgs", outputs: [ { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IUnpermissionedActionsWrapper.ts b/packages/abis/src/abis/IUnpermissionedActionsWrapper.ts index f85147ec..311c47f5 100644 --- a/packages/abis/src/abis/IUnpermissionedActionsWrapper.ts +++ b/packages/abis/src/abis/IUnpermissionedActionsWrapper.ts @@ -1,63 +1,63 @@ export const IUnpermissionedActionsWrapper = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_feeManager", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "getContinuousFeesForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, ], - name: "getContinuousFeesForFund", outputs: [ { - internalType: "address[]", name: "continuousFees_", type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFeeManager", + inputs: [], outputs: [ { - internalType: "address", name: "feeManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "invokeContinuousFeeHookAndPayoutSharesOutstandingForFund", inputs: [ { - internalType: "address", name: "_comptrollerProxy", type: "address", + internalType: "address", }, { - internalType: "address[]", name: "_fees", type: "address[]", + internalType: "address[]", }, ], - name: "invokeContinuousFeeHookAndPayoutSharesOutstandingForFund", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IValueInterpreter.ts b/packages/abis/src/abis/IValueInterpreter.ts index d5ee1168..97e28f8b 100644 --- a/packages/abis/src/abis/IValueInterpreter.ts +++ b/packages/abis/src/abis/IValueInterpreter.ts @@ -1,495 +1,495 @@ export const IValueInterpreter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_fundDeployer", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_chainlinkStaleRateThreshold", type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "derivative", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "priceFeed", - type: "address", - }, - ], - name: "DerivativeAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "derivative", - type: "address", - }, - ], - name: "DerivativeRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "prevEthUsdAggregator", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "nextEthUsdAggregator", - type: "address", - }, - ], - name: "EthUsdAggregatorSet", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "primitive", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "aggregator", - type: "address", - }, - { - indexed: false, - internalType: "enum IChainlinkPriceFeedMixin.RateAsset", - name: "rateAsset", - type: "uint8", - }, - { - indexed: false, internalType: "uint256", - name: "unit", - type: "uint256", }, ], - name: "PrimitiveAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "primitive", - type: "address", - }, - ], - name: "PrimitiveRemoved", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "addDerivatives", inputs: [ { - internalType: "address[]", name: "_derivatives", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_priceFeeds", type: "address[]", + internalType: "address[]", }, ], - name: "addDerivatives", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "addPrimitives", inputs: [ { - internalType: "address[]", name: "_primitives", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_aggregators", type: "address[]", + internalType: "address[]", }, { - internalType: "enum IChainlinkPriceFeedMixin.RateAsset[]", name: "_rateAssets", type: "uint8[]", + internalType: "enum IChainlinkPriceFeedMixin.RateAsset[]", }, ], - name: "addPrimitives", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcCanonicalAssetValue", inputs: [ { - internalType: "address", name: "_baseAsset", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_amount", type: "uint256", + internalType: "uint256", }, { - internalType: "address", name: "_quoteAsset", type: "address", + internalType: "address", }, ], - name: "calcCanonicalAssetValue", outputs: [ { - internalType: "uint256", name: "value_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcCanonicalAssetsTotalValue", inputs: [ { - internalType: "address[]", name: "_baseAssets", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "_amounts", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address", name: "_quoteAsset", type: "address", + internalType: "address", }, ], - name: "calcCanonicalAssetsTotalValue", outputs: [ { - internalType: "uint256", name: "value_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "getAggregatorForPrimitive", inputs: [ { - internalType: "address", name: "_primitive", type: "address", + internalType: "address", }, ], - name: "getAggregatorForPrimitive", outputs: [ { - internalType: "address", name: "aggregator_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getEthUsdAggregator", + inputs: [], outputs: [ { - internalType: "address", name: "ethUsdAggregator_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getPriceFeedForDerivative", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, ], - name: "getPriceFeedForDerivative", outputs: [ { - internalType: "address", name: "priceFeed_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getRateAssetForPrimitive", inputs: [ { - internalType: "address", name: "_primitive", type: "address", + internalType: "address", }, ], - name: "getRateAssetForPrimitive", outputs: [ { - internalType: "enum IChainlinkPriceFeedMixin.RateAsset", name: "rateAsset_", type: "uint8", + internalType: "enum IChainlinkPriceFeedMixin.RateAsset", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getStaleRateThreshold", + inputs: [], outputs: [ { - internalType: "uint256", name: "staleRateThreshold_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getUnitForPrimitive", inputs: [ { - internalType: "address", name: "_primitive", type: "address", + internalType: "address", }, ], - name: "getUnitForPrimitive", outputs: [ { - internalType: "uint256", name: "unit_", type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getWethToken", + inputs: [], outputs: [ { - internalType: "address", name: "wethToken_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isSupportedDerivativeAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedDerivativeAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isSupportedPrimitiveAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedPrimitiveAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "removeDerivatives", inputs: [ { - internalType: "address[]", name: "_derivatives", type: "address[]", + internalType: "address[]", }, ], - name: "removeDerivatives", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "removePrimitives", inputs: [ { - internalType: "address[]", name: "_primitives", type: "address[]", + internalType: "address[]", }, ], - name: "removePrimitives", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "setEthUsdAggregator", inputs: [ { - internalType: "address", name: "_nextEthUsdAggregator", type: "address", + internalType: "address", }, ], - name: "setEthUsdAggregator", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updateDerivatives", inputs: [ { - internalType: "address[]", name: "_derivatives", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_priceFeeds", type: "address[]", + internalType: "address[]", }, ], - name: "updateDerivatives", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "updatePrimitives", inputs: [ { - internalType: "address[]", name: "_primitives", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_aggregators", type: "address[]", + internalType: "address[]", }, { - internalType: "enum IChainlinkPriceFeedMixin.RateAsset[]", name: "_rateAssets", type: "uint8[]", + internalType: "enum IChainlinkPriceFeedMixin.RateAsset[]", }, ], - name: "updatePrimitives", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "DerivativeAdded", + inputs: [ + { + name: "derivative", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "priceFeed", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "DerivativeRemoved", + inputs: [ + { + name: "derivative", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "EthUsdAggregatorSet", + inputs: [ + { + name: "prevEthUsdAggregator", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "nextEthUsdAggregator", + type: "address", + indexed: false, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PrimitiveAdded", + inputs: [ + { + name: "primitive", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "aggregator", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "rateAsset", + type: "uint8", + indexed: false, + internalType: "enum IChainlinkPriceFeedMixin.RateAsset", + }, + { + name: "unit", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "PrimitiveRemoved", + inputs: [ + { + name: "primitive", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IVaultCore.ts b/packages/abis/src/abis/IVaultCore.ts index 7deb36c5..a9749fc5 100644 --- a/packages/abis/src/abis/IVaultCore.ts +++ b/packages/abis/src/abis/IVaultCore.ts @@ -1,54 +1,54 @@ export const IVaultCore = [ { - inputs: [], + type: "function", name: "getAccessor", + inputs: [], outputs: [ { - internalType: "address", name: "accessor_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getCreator", + inputs: [], outputs: [ { - internalType: "address", name: "creator_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getMigrator", + inputs: [], outputs: [ { - internalType: "address", name: "migrator_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IVaultLib.ts b/packages/abis/src/abis/IVaultLib.ts index 66ca90ea..e233b061 100644 --- a/packages/abis/src/abis/IVaultLib.ts +++ b/packages/abis/src/abis/IVaultLib.ts @@ -1,1308 +1,1308 @@ export const IVaultLib = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_externalPositionManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_gasRelayPaymasterFactory", type: "address", + internalType: "address", }, { - internalType: "address", name: "_protocolFeeReserve", type: "address", + internalType: "address", }, { - internalType: "address", name: "_protocolFeeTracker", type: "address", + internalType: "address", }, { - internalType: "address", name: "_mlnToken", type: "address", + internalType: "address", }, { - internalType: "address", name: "_mlnBurner", type: "address", + internalType: "address", }, { - internalType: "address", name: "_wethToken", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_positionsLimit", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - anonymous: false, + type: "receive", + stateMutability: "payable", + }, + { + type: "function", + name: "addAssetManagers", inputs: [ { - indexed: false, - internalType: "address", - name: "prevAccessor", - type: "address", + name: "_managers", + type: "address[]", + internalType: "address[]", }, + ], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "addTrackedAsset", + inputs: [ { - indexed: false, - internalType: "address", - name: "nextAccessor", + name: "_asset", type: "address", + internalType: "address", }, ], - name: "AccessorSet", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "allowance", inputs: [ { - indexed: true, - internalType: "address", - name: "owner", + name: "_owner", type: "address", + internalType: "address", }, { - indexed: true, - internalType: "address", - name: "spender", + name: "_spender", type: "address", + internalType: "address", }, + ], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "value", + name: "", type: "uint256", + internalType: "uint256", }, ], - name: "Approval", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "approve", inputs: [ { - indexed: false, - internalType: "address", - name: "manager", + name: "_spender", type: "address", + internalType: "address", + }, + { + name: "_amount", + type: "uint256", + internalType: "uint256", }, ], - name: "AssetManagerAdded", - type: "event", + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "balanceOf", inputs: [ { - indexed: false, - internalType: "address", - name: "manager", + name: "_account", type: "address", + internalType: "address", }, ], - name: "AssetManagerRemoved", - type: "event", + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "burnShares", inputs: [ { - indexed: true, - internalType: "address", - name: "asset", + name: "_target", type: "address", - }, - { - indexed: true, internalType: "address", - name: "target", - type: "address", }, { - indexed: false, - internalType: "uint256", - name: "amount", + name: "_amount", type: "uint256", + internalType: "uint256", }, ], - name: "AssetWithdrawn", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "buyBackProtocolFeeShares", inputs: [ { - indexed: true, - internalType: "address", - name: "sender", - type: "address", + name: "_sharesAmount", + type: "uint256", + internalType: "uint256", }, { - indexed: false, + name: "_mlnValue", + type: "uint256", internalType: "uint256", - name: "amount", + }, + { + name: "_gav", type: "uint256", + internalType: "uint256", }, ], - name: "EthReceived", - type: "event", + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "callOnContract", inputs: [ { - indexed: true, - internalType: "address", - name: "externalPosition", + name: "_contract", type: "address", + internalType: "address", + }, + { + name: "_callData", + type: "bytes", + internalType: "bytes", }, ], - name: "ExternalPositionAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: true, - internalType: "address", - name: "externalPosition", - type: "address", + name: "returnData_", + type: "bytes", + internalType: "bytes", }, ], - name: "ExternalPositionRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [], - name: "FreelyTransferableSharesSet", - type: "event", + stateMutability: "nonpayable", }, { - anonymous: false, + type: "function", + name: "canManageAssets", inputs: [ { - indexed: false, - internalType: "address", - name: "prevMigrator", + name: "_who", type: "address", - }, - { - indexed: false, internalType: "address", - name: "nextMigrator", - type: "address", }, ], - name: "MigratorSet", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: false, - internalType: "string", - name: "name", - type: "string", + name: "canManageAssets_", + type: "bool", + internalType: "bool", }, ], - name: "NameSet", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "canMigrate", inputs: [ { - indexed: true, - internalType: "address", - name: "nominatedOwner", + name: "_who", type: "address", + internalType: "address", }, ], - name: "NominatedOwnerRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: true, - internalType: "address", - name: "nominatedOwner", - type: "address", + name: "canMigrate_", + type: "bool", + internalType: "bool", }, ], - name: "NominatedOwnerSet", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "canRelayCalls", inputs: [ { - indexed: false, - internalType: "address", - name: "prevOwner", + name: "_who", type: "address", + internalType: "address", }, + ], + outputs: [ { - indexed: false, - internalType: "address", - name: "nextOwner", - type: "address", + name: "canRelayCalls_", + type: "bool", + internalType: "bool", }, ], - name: "OwnerSet", - type: "event", + stateMutability: "view", }, { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "prevOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "nextOwner", - type: "address", - }, - ], - name: "OwnershipTransferred", - type: "event", + type: "function", + name: "claimOwnership", + inputs: [], + outputs: [], + stateMutability: "nonpayable", }, { - anonymous: false, - inputs: [ + type: "function", + name: "decimals", + inputs: [], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "sharesAmount", - type: "uint256", + name: "", + type: "uint8", + internalType: "uint8", }, ], - name: "ProtocolFeePaidInShares", - type: "event", + stateMutability: "pure", }, { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "sharesAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "mlnValue", - type: "uint256", - }, + type: "function", + name: "getAccessor", + inputs: [], + outputs: [ { - indexed: false, - internalType: "uint256", - name: "mlnBurned", - type: "uint256", + name: "accessor_", + type: "address", + internalType: "address", }, ], - name: "ProtocolFeeSharesBoughtBack", - type: "event", + stateMutability: "view", }, { - anonymous: false, - inputs: [ + type: "function", + name: "getActiveExternalPositions", + inputs: [], + outputs: [ { - indexed: false, - internalType: "string", - name: "symbol", - type: "string", + name: "activeExternalPositions_", + type: "address[]", + internalType: "address[]", }, ], - name: "SymbolSet", - type: "event", + stateMutability: "view", }, { - anonymous: false, - inputs: [ + type: "function", + name: "getCreator", + inputs: [], + outputs: [ { - indexed: false, - internalType: "address", - name: "asset", + name: "creator_", type: "address", + internalType: "address", }, ], - name: "TrackedAssetAdded", - type: "event", + stateMutability: "view", }, { - anonymous: false, + type: "function", + name: "getExternalPositionLibForType", inputs: [ { - indexed: false, - internalType: "address", - name: "asset", - type: "address", + name: "_typeId", + type: "uint256", + internalType: "uint256", }, ], - name: "TrackedAssetRemoved", - type: "event", - }, - { - anonymous: false, - inputs: [ + outputs: [ { - indexed: true, - internalType: "address", - name: "from", + name: "externalPositionLib_", type: "address", - }, - { - indexed: true, internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", }, ], - name: "Transfer", - type: "event", + stateMutability: "view", }, { - anonymous: false, - inputs: [ + type: "function", + name: "getExternalPositionManager", + inputs: [], + outputs: [ { - indexed: false, - internalType: "address", - name: "prevVaultLib", + name: "externalPositionManager_", type: "address", - }, - { - indexed: false, internalType: "address", - name: "nextVaultLib", - type: "address", }, ], - name: "VaultLibSet", - type: "event", + stateMutability: "view", }, { - inputs: [ - { - internalType: "address[]", - name: "_managers", - type: "address[]", - }, - ], - name: "addAssetManagers", - outputs: [], - stateMutability: "nonpayable", type: "function", - }, - { - inputs: [ + name: "getFundDeployer", + inputs: [], + outputs: [ { - internalType: "address", - name: "_asset", + name: "fundDeployer_", type: "address", + internalType: "address", }, ], - name: "addTrackedAsset", - outputs: [], - stateMutability: "nonpayable", - type: "function", + stateMutability: "view", }, { - inputs: [ + type: "function", + name: "getGasRelayPaymasterFactory", + inputs: [], + outputs: [ { - internalType: "address", - name: "_owner", + name: "gasRelayPaymasterFactory_", type: "address", - }, - { internalType: "address", - name: "_spender", - type: "address", }, ], - name: "allowance", + stateMutability: "view", + }, + { + type: "function", + name: "getGasRelayTrustedForwarder", + inputs: [], outputs: [ { - internalType: "uint256", - name: "", - type: "uint256", + name: "trustedForwarder_", + type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [ + type: "function", + name: "getMigrator", + inputs: [], + outputs: [ { - internalType: "address", - name: "_spender", + name: "migrator_", type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", + internalType: "address", }, ], - name: "approve", + stateMutability: "view", + }, + { + type: "function", + name: "getMlnBurner", + inputs: [], outputs: [ { - internalType: "bool", - name: "", - type: "bool", + name: "mlnBurner_", + type: "address", + internalType: "address", }, ], - stateMutability: "nonpayable", - type: "function", + stateMutability: "view", }, { - inputs: [ + type: "function", + name: "getMlnToken", + inputs: [], + outputs: [ { - internalType: "address", - name: "_account", + name: "mlnToken_", type: "address", + internalType: "address", }, ], - name: "balanceOf", + stateMutability: "view", + }, + { + type: "function", + name: "getNominatedOwner", + inputs: [], outputs: [ { - internalType: "uint256", - name: "", - type: "uint256", + name: "nominatedOwner_", + type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [ + type: "function", + name: "getOwner", + inputs: [], + outputs: [ { - internalType: "address", - name: "_target", + name: "owner_", type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", + internalType: "address", }, ], - name: "burnShares", - outputs: [], - stateMutability: "nonpayable", - type: "function", + stateMutability: "view", }, { - inputs: [ - { - internalType: "uint256", - name: "_sharesAmount", - type: "uint256", - }, + type: "function", + name: "getPositionsLimit", + inputs: [], + outputs: [ { - internalType: "uint256", - name: "_mlnValue", + name: "positionsLimit_", type: "uint256", - }, - { internalType: "uint256", - name: "_gav", - type: "uint256", }, ], - name: "buyBackProtocolFeeShares", - outputs: [], - stateMutability: "nonpayable", - type: "function", + stateMutability: "view", }, { - inputs: [ - { - internalType: "address", - name: "_contract", - type: "address", - }, - { - internalType: "bytes", - name: "_callData", - type: "bytes", - }, - ], - name: "callOnContract", + type: "function", + name: "getProtocolFeeReserve", + inputs: [], outputs: [ { - internalType: "bytes", - name: "returnData_", - type: "bytes", + name: "protocolFeeReserve_", + type: "address", + internalType: "address", }, ], - stateMutability: "nonpayable", - type: "function", + stateMutability: "view", }, { - inputs: [ + type: "function", + name: "getProtocolFeeTracker", + inputs: [], + outputs: [ { - internalType: "address", - name: "_who", + name: "protocolFeeTracker_", type: "address", + internalType: "address", }, ], - name: "canManageAssets", + stateMutability: "view", + }, + { + type: "function", + name: "getTrackedAssets", + inputs: [], outputs: [ { - internalType: "bool", - name: "canManageAssets_", - type: "bool", + name: "trackedAssets_", + type: "address[]", + internalType: "address[]", }, ], stateMutability: "view", - type: "function", }, { - inputs: [ + type: "function", + name: "getVaultLib", + inputs: [], + outputs: [ { - internalType: "address", - name: "_who", + name: "vaultLib_", type: "address", + internalType: "address", }, ], - name: "canMigrate", + stateMutability: "view", + }, + { + type: "function", + name: "getWethToken", + inputs: [], outputs: [ { - internalType: "bool", - name: "canMigrate_", - type: "bool", + name: "wethToken_", + type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "init", inputs: [ { - internalType: "address", - name: "_who", + name: "_owner", type: "address", + internalType: "address", }, - ], - name: "canRelayCalls", - outputs: [ { - internalType: "bool", - name: "canRelayCalls_", - type: "bool", + name: "_accessor", + type: "address", + internalType: "address", }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "claimOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ { - internalType: "uint8", - name: "", - type: "uint8", + name: "_fundName", + type: "string", + internalType: "string", }, ], - stateMutability: "pure", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { - inputs: [], - name: "getAccessor", - outputs: [ + type: "function", + name: "isActiveExternalPosition", + inputs: [ { - internalType: "address", - name: "accessor_", + name: "_externalPosition", type: "address", + internalType: "address", }, ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getActiveExternalPositions", outputs: [ { - internalType: "address[]", - name: "activeExternalPositions_", - type: "address[]", + name: "isActiveExternalPosition_", + type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], - name: "getCreator", - outputs: [ + type: "function", + name: "isAssetManager", + inputs: [ { - internalType: "address", - name: "creator_", + name: "_who", type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "isAssetManager_", + type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isTrackedAsset", inputs: [ { - internalType: "uint256", - name: "_typeId", - type: "uint256", + name: "_asset", + type: "address", + internalType: "address", }, ], - name: "getExternalPositionLibForType", outputs: [ { - internalType: "address", - name: "externalPositionLib_", - type: "address", + name: "isTrackedAsset_", + type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], - name: "getExternalPositionManager", - outputs: [ + type: "function", + name: "mintShares", + inputs: [ { - internalType: "address", - name: "externalPositionManager_", + name: "_target", type: "address", + internalType: "address", + }, + { + name: "_amount", + type: "uint256", + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { + type: "function", + name: "name", inputs: [], - name: "getFundDeployer", outputs: [ { - internalType: "address", - name: "fundDeployer_", - type: "address", + name: "", + type: "string", + internalType: "string", }, ], stateMutability: "view", + }, + { type: "function", + name: "payProtocolFee", + inputs: [], + outputs: [], + stateMutability: "nonpayable", }, { + type: "function", + name: "proxiableUUID", inputs: [], - name: "getGasRelayPaymasterFactory", outputs: [ { - internalType: "address", - name: "gasRelayPaymasterFactory_", - type: "address", + name: "uuid_", + type: "bytes32", + internalType: "bytes32", }, ], - stateMutability: "view", - type: "function", + stateMutability: "pure", }, { - inputs: [], - name: "getGasRelayTrustedForwarder", - outputs: [ + type: "function", + name: "receiveValidatedVaultAction", + inputs: [ { - internalType: "address", - name: "trustedForwarder_", - type: "address", + name: "_action", + type: "uint8", + internalType: "enum IVault.VaultAction", + }, + { + name: "_actionData", + type: "bytes", + internalType: "bytes", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { - inputs: [], - name: "getMigrator", - outputs: [ + type: "function", + name: "removeAssetManagers", + inputs: [ { - internalType: "address", - name: "migrator_", - type: "address", + name: "_managers", + type: "address[]", + internalType: "address[]", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { + type: "function", + name: "removeNominatedOwner", inputs: [], - name: "getMlnBurner", - outputs: [ + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "setAccessor", + inputs: [ { - internalType: "address", - name: "mlnBurner_", + name: "_nextAccessor", type: "address", + internalType: "address", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { - inputs: [], - name: "getMlnToken", - outputs: [ + type: "function", + name: "setAccessorForFundReconfiguration", + inputs: [ { - internalType: "address", - name: "mlnToken_", + name: "_nextAccessor", type: "address", + internalType: "address", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { + type: "function", + name: "setFreelyTransferableShares", inputs: [], - name: "getNominatedOwner", - outputs: [ + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "setMigrator", + inputs: [ { - internalType: "address", - name: "nominatedOwner_", + name: "_nextMigrator", type: "address", + internalType: "address", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { - inputs: [], - name: "getOwner", - outputs: [ + type: "function", + name: "setName", + inputs: [ { - internalType: "address", - name: "owner_", - type: "address", + name: "_nextName", + type: "string", + internalType: "string", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { - inputs: [], - name: "getPositionsLimit", - outputs: [ + type: "function", + name: "setNominatedOwner", + inputs: [ { - internalType: "uint256", - name: "positionsLimit_", - type: "uint256", + name: "_nextNominatedOwner", + type: "address", + internalType: "address", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { - inputs: [], - name: "getProtocolFeeReserve", - outputs: [ + type: "function", + name: "setSymbol", + inputs: [ { - internalType: "address", - name: "protocolFeeReserve_", - type: "address", + name: "_nextSymbol", + type: "string", + internalType: "string", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { - inputs: [], - name: "getProtocolFeeTracker", - outputs: [ + type: "function", + name: "setVaultLib", + inputs: [ { - internalType: "address", - name: "protocolFeeTracker_", + name: "_nextVaultLib", type: "address", + internalType: "address", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { + type: "function", + name: "sharesAreFreelyTransferable", inputs: [], - name: "getTrackedAssets", outputs: [ { - internalType: "address[]", - name: "trackedAssets_", - type: "address[]", + name: "sharesAreFreelyTransferable_", + type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "symbol", inputs: [], - name: "getVaultLib", outputs: [ { - internalType: "address", - name: "vaultLib_", - type: "address", + name: "symbol_", + type: "string", + internalType: "string", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "totalSupply", inputs: [], - name: "getWethToken", outputs: [ { - internalType: "address", - name: "wethToken_", - type: "address", + name: "", + type: "uint256", + internalType: "uint256", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "transfer", inputs: [ { - internalType: "address", - name: "_owner", + name: "_recipient", type: "address", + internalType: "address", }, { - internalType: "address", - name: "_accessor", - type: "address", + name: "_amount", + type: "uint256", + internalType: "uint256", }, + ], + outputs: [ { - internalType: "string", - name: "_fundName", - type: "string", + name: "success_", + type: "bool", + internalType: "bool", }, ], - name: "init", - outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "transferFrom", inputs: [ { + name: "_sender", + type: "address", internalType: "address", - name: "_externalPosition", + }, + { + name: "_recipient", type: "address", + internalType: "address", + }, + { + name: "_amount", + type: "uint256", + internalType: "uint256", }, ], - name: "isActiveExternalPosition", outputs: [ { - internalType: "bool", - name: "isActiveExternalPosition_", + name: "success_", type: "bool", + internalType: "bool", }, ], - stateMutability: "view", - type: "function", + stateMutability: "nonpayable", }, { + type: "function", + name: "transferShares", inputs: [ { + name: "_from", + type: "address", internalType: "address", - name: "_who", + }, + { + name: "_to", type: "address", + internalType: "address", }, - ], - name: "isAssetManager", - outputs: [ { - internalType: "bool", - name: "isAssetManager_", - type: "bool", + name: "_amount", + type: "uint256", + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", + outputs: [], + stateMutability: "nonpayable", }, { + type: "function", + name: "withdrawAssetTo", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", + }, + { + name: "_target", + type: "address", + internalType: "address", + }, + { + name: "_amount", + type: "uint256", + internalType: "uint256", }, ], - name: "isTrackedAsset", - outputs: [ + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "event", + name: "AccessorSet", + inputs: [ { - internalType: "bool", - name: "isTrackedAsset_", - type: "bool", + name: "prevAccessor", + type: "address", + indexed: false, + internalType: "address", + }, + { + name: "nextAccessor", + type: "address", + indexed: false, + internalType: "address", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { + type: "event", + name: "Approval", inputs: [ { + name: "owner", + type: "address", + indexed: true, internalType: "address", - name: "_target", + }, + { + name: "spender", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "uint256", - name: "_amount", + name: "value", type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "mintShares", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { - inputs: [], - name: "name", - outputs: [ + type: "event", + name: "AssetManagerAdded", + inputs: [ { - internalType: "string", - name: "", - type: "string", + name: "manager", + type: "address", + indexed: false, + internalType: "address", }, ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "payProtocolFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { - inputs: [], - name: "proxiableUUID", - outputs: [ + type: "event", + name: "AssetManagerRemoved", + inputs: [ { - internalType: "bytes32", - name: "uuid_", - type: "bytes32", + name: "manager", + type: "address", + indexed: false, + internalType: "address", }, ], - stateMutability: "pure", - type: "function", + anonymous: false, }, { + type: "event", + name: "AssetWithdrawn", inputs: [ { - internalType: "enum IVault.VaultAction", - name: "_action", - type: "uint8", + name: "asset", + type: "address", + indexed: true, + internalType: "address", }, { - internalType: "bytes", - name: "_actionData", - type: "bytes", + name: "target", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "receiveValidatedVaultAction", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "EthReceived", inputs: [ { - internalType: "address[]", - name: "_managers", - type: "address[]", + name: "sender", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "amount", + type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "removeAssetManagers", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "removeNominatedOwner", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "ExternalPositionAdded", inputs: [ { - internalType: "address", - name: "_nextAccessor", + name: "externalPosition", type: "address", + indexed: true, + internalType: "address", }, ], - name: "setAccessor", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "ExternalPositionRemoved", inputs: [ { - internalType: "address", - name: "_nextAccessor", + name: "externalPosition", type: "address", + indexed: true, + internalType: "address", }, ], - name: "setAccessorForFundReconfiguration", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "FreelyTransferableSharesSet", inputs: [], - name: "setFreelyTransferableShares", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "MigratorSet", inputs: [ { + name: "prevMigrator", + type: "address", + indexed: false, internalType: "address", - name: "_nextMigrator", + }, + { + name: "nextMigrator", type: "address", + indexed: false, + internalType: "address", }, ], - name: "setMigrator", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "NameSet", inputs: [ { - internalType: "string", - name: "_nextName", + name: "name", type: "string", + indexed: false, + internalType: "string", }, ], - name: "setName", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "NominatedOwnerRemoved", inputs: [ { - internalType: "address", - name: "_nextNominatedOwner", + name: "nominatedOwner", type: "address", + indexed: true, + internalType: "address", }, ], - name: "setNominatedOwner", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "NominatedOwnerSet", inputs: [ { - internalType: "string", - name: "_nextSymbol", - type: "string", + name: "nominatedOwner", + type: "address", + indexed: true, + internalType: "address", }, ], - name: "setSymbol", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "OwnerSet", inputs: [ { + name: "prevOwner", + type: "address", + indexed: false, internalType: "address", - name: "_nextVaultLib", + }, + { + name: "nextOwner", type: "address", + indexed: false, + internalType: "address", }, ], - name: "setVaultLib", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { - inputs: [], - name: "sharesAreFreelyTransferable", - outputs: [ + type: "event", + name: "OwnershipTransferred", + inputs: [ { - internalType: "bool", - name: "sharesAreFreelyTransferable_", - type: "bool", + name: "prevOwner", + type: "address", + indexed: true, + internalType: "address", }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "symbol", - outputs: [ { - internalType: "string", - name: "symbol_", - type: "string", + name: "nextOwner", + type: "address", + indexed: true, + internalType: "address", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { - inputs: [], - name: "totalSupply", - outputs: [ + type: "event", + name: "ProtocolFeePaidInShares", + inputs: [ { - internalType: "uint256", - name: "", + name: "sharesAmount", type: "uint256", + indexed: false, + internalType: "uint256", }, ], - stateMutability: "view", - type: "function", + anonymous: false, }, { + type: "event", + name: "ProtocolFeeSharesBoughtBack", inputs: [ { - internalType: "address", - name: "_recipient", - type: "address", + name: "sharesAmount", + type: "uint256", + indexed: false, + internalType: "uint256", }, { + name: "mlnValue", + type: "uint256", + indexed: false, internalType: "uint256", - name: "_amount", + }, + { + name: "mlnBurned", type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "transfer", - outputs: [ + anonymous: false, + }, + { + type: "event", + name: "SymbolSet", + inputs: [ { - internalType: "bool", - name: "success_", - type: "bool", + name: "symbol", + type: "string", + indexed: false, + internalType: "string", }, ], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "TrackedAssetAdded", inputs: [ { - internalType: "address", - name: "_sender", + name: "asset", type: "address", - }, - { + indexed: false, internalType: "address", - name: "_recipient", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", }, ], - name: "transferFrom", - outputs: [ + anonymous: false, + }, + { + type: "event", + name: "TrackedAssetRemoved", + inputs: [ { - internalType: "bool", - name: "success_", - type: "bool", + name: "asset", + type: "address", + indexed: false, + internalType: "address", }, ], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "Transfer", inputs: [ { - internalType: "address", - name: "_from", + name: "from", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "address", - name: "_to", + name: "to", type: "address", + indexed: true, + internalType: "address", }, { - internalType: "uint256", - name: "_amount", + name: "value", type: "uint256", + indexed: false, + internalType: "uint256", }, ], - name: "transferShares", - outputs: [], - stateMutability: "nonpayable", - type: "function", + anonymous: false, }, { + type: "event", + name: "VaultLibSet", inputs: [ { - internalType: "address", - name: "_asset", + name: "prevVaultLib", type: "address", - }, - { + indexed: false, internalType: "address", - name: "_target", - type: "address", }, { - internalType: "uint256", - name: "_amount", - type: "uint256", + name: "nextVaultLib", + type: "address", + indexed: false, + internalType: "address", }, ], - name: "withdrawAssetTo", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IWstethPriceFeed.ts b/packages/abis/src/abis/IWstethPriceFeed.ts index ab643939..61d12a91 100644 --- a/packages/abis/src/abis/IWstethPriceFeed.ts +++ b/packages/abis/src/abis/IWstethPriceFeed.ts @@ -1,66 +1,66 @@ export const IWstethPriceFeed = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_wsteth", type: "address", + internalType: "address", }, { - internalType: "address", name: "_steth", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IYearnVaultV2Adapter.ts b/packages/abis/src/abis/IYearnVaultV2Adapter.ts index 1b01adc7..1ce29f13 100644 --- a/packages/abis/src/abis/IYearnVaultV2Adapter.ts +++ b/packages/abis/src/abis/IYearnVaultV2Adapter.ts @@ -1,256 +1,256 @@ export const IYearnVaultV2Adapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_yearnVaultV2PriceFeed", type: "address", + internalType: "address", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getYearnVaultV2PriceFeed", + inputs: [], outputs: [ { - internalType: "address", name: "yearnVaultV2PriceFeed_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "lend", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "lend", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "redeem", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "redeem", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/abis/IYearnVaultV2PriceFeed.ts b/packages/abis/src/abis/IYearnVaultV2PriceFeed.ts index 4afb1076..7758b115 100644 --- a/packages/abis/src/abis/IYearnVaultV2PriceFeed.ts +++ b/packages/abis/src/abis/IYearnVaultV2PriceFeed.ts @@ -1,187 +1,187 @@ export const IYearnVaultV2PriceFeed = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_fundDeployer", type: "address", + internalType: "address", }, { - internalType: "address", name: "_yearnVaultV2Registry", type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, internalType: "address", - name: "derivative", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "underlying", - type: "address", }, ], - name: "DerivativeAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "derivative", - type: "address", - }, - ], - name: "DerivativeRemoved", - type: "event", + stateMutability: "nonpayable", }, { + type: "function", + name: "addDerivatives", inputs: [ { - internalType: "address[]", name: "_derivatives", type: "address[]", + internalType: "address[]", }, { - internalType: "address[]", name: "_underlyings", type: "address[]", + internalType: "address[]", }, ], - name: "addDerivatives", outputs: [], stateMutability: "nonpayable", - type: "function", }, { + type: "function", + name: "calcUnderlyingValues", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_derivativeAmount", type: "uint256", + internalType: "uint256", }, ], - name: "calcUnderlyingValues", outputs: [ { - internalType: "address[]", name: "underlyings_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "underlyingAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "nonpayable", - type: "function", }, { - inputs: [], + type: "function", name: "getFundDeployer", + inputs: [], outputs: [ { - internalType: "address", name: "fundDeployer_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getOwner", + inputs: [], outputs: [ { - internalType: "address", name: "owner_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "getUnderlyingForDerivative", inputs: [ { - internalType: "address", name: "_derivative", type: "address", + internalType: "address", }, ], - name: "getUnderlyingForDerivative", outputs: [ { - internalType: "address", name: "underlying_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getYearnVaultV2Registry", + inputs: [], outputs: [ { - internalType: "address", name: "yearnVaultV2Registry_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isSupportedAsset", inputs: [ { - internalType: "address", name: "_asset", type: "address", + internalType: "address", }, ], - name: "isSupportedAsset", outputs: [ { - internalType: "bool", name: "isSupported_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "removeDerivatives", inputs: [ { - internalType: "address[]", name: "_derivatives", type: "address[]", + internalType: "address[]", }, ], - name: "removeDerivatives", outputs: [], stateMutability: "nonpayable", - type: "function", + }, + { + type: "event", + name: "DerivativeAdded", + inputs: [ + { + name: "derivative", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "underlying", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "DerivativeRemoved", + inputs: [ + { + name: "derivative", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, }, ] as const; diff --git a/packages/abis/src/abis/IZeroExV4Adapter.ts b/packages/abis/src/abis/IZeroExV4Adapter.ts index dfd233c8..618256ad 100644 --- a/packages/abis/src/abis/IZeroExV4Adapter.ts +++ b/packages/abis/src/abis/IZeroExV4Adapter.ts @@ -1,249 +1,249 @@ export const IZeroExV4Adapter = [ { + type: "constructor", inputs: [ { - internalType: "address", name: "_integrationManager", type: "address", + internalType: "address", }, { - internalType: "address", name: "_exchange", type: "address", + internalType: "address", }, { - internalType: "address", name: "_addressListRegistry", type: "address", + internalType: "address", }, { - internalType: "uint256", name: "_allowedMakersListId", type: "uint256", + internalType: "uint256", }, ], stateMutability: "nonpayable", - type: "constructor", }, { - inputs: [], + type: "function", name: "CLAIM_REWARDS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_AND_STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "LEND_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "STAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_MULTIPLE_ORDERS_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "TAKE_ORDER_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_AND_REDEEM_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "UNSTAKE_SELECTOR", + inputs: [], outputs: [ { - internalType: "bytes4", name: "", type: "bytes4", + internalType: "bytes4", }, ], stateMutability: "view", - type: "function", }, { - inputs: [], + type: "function", name: "getIntegrationManager", + inputs: [], outputs: [ { - internalType: "address", name: "integrationManager_", type: "address", + internalType: "address", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "isAllowedMaker", inputs: [ { - internalType: "address", name: "_who", type: "address", + internalType: "address", }, ], - name: "isAllowedMaker", outputs: [ { - internalType: "bool", name: "isAllowedMaker_", type: "bool", + internalType: "bool", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "parseAssetsForAction", inputs: [ { - internalType: "address", name: "", type: "address", + internalType: "address", }, { - internalType: "bytes4", name: "_selector", type: "bytes4", + internalType: "bytes4", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, ], - name: "parseAssetsForAction", outputs: [ { - internalType: "enum IIntegrationManager.SpendAssetsHandleType", name: "spendAssetsHandleType_", type: "uint8", + internalType: "enum IIntegrationManager.SpendAssetsHandleType", }, { - internalType: "address[]", name: "spendAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "spendAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, { - internalType: "address[]", name: "incomingAssets_", type: "address[]", + internalType: "address[]", }, { - internalType: "uint256[]", name: "minIncomingAssetAmounts_", type: "uint256[]", + internalType: "uint256[]", }, ], stateMutability: "view", - type: "function", }, { + type: "function", + name: "takeOrder", inputs: [ { - internalType: "address", name: "_vaultProxy", type: "address", + internalType: "address", }, { - internalType: "bytes", name: "_actionData", type: "bytes", + internalType: "bytes", }, { - internalType: "bytes", name: "_assetData", type: "bytes", + internalType: "bytes", }, ], - name: "takeOrder", outputs: [], stateMutability: "nonpayable", - type: "function", }, ] as const; diff --git a/packages/abis/src/index.ts b/packages/abis/src/index.ts index 40ad8bd2..ce4652f9 100644 --- a/packages/abis/src/index.ts +++ b/packages/abis/src/index.ts @@ -98,7 +98,6 @@ export { IMinAssetBalancesPostRedemptionPolicy } from "./abis/IMinAssetBalancesP export { IMinMaxInvestmentPolicy } from "./abis/IMinMaxInvestmentPolicy.js"; export { IMinSharesSupplyFee } from "./abis/IMinSharesSupplyFee.js"; export { INoDepegOnRedeemSharesForSpecificAssetsPolicy } from "./abis/INoDepegOnRedeemSharesForSpecificAssetsPolicy.js"; -export { INotionalV3PositionLib } from "./abis/INotionalV3PositionLib.js"; export { IOnlyRemoveDustExternalPositionPolicy } from "./abis/IOnlyRemoveDustExternalPositionPolicy.js"; export { IOnlyUntrackDustOrPricelessAssetsPolicy } from "./abis/IOnlyUntrackDustOrPricelessAssetsPolicy.js"; export { IParaSwapV5Adapter } from "./abis/IParaSwapV5Adapter.js";