diff --git a/libs/oeth/swap/src/actions/mintVault.ts b/libs/oeth/swap/src/actions/mintVault.ts index e0e4aa55c..dbd10bc50 100644 --- a/libs/oeth/swap/src/actions/mintVault.ts +++ b/libs/oeth/swap/src/actions/mintVault.ts @@ -13,7 +13,7 @@ const estimateAmount = async ({ tokenIn, tokenOut, amountIn }: SwapState) => { const data = await readContract({ address: contracts.mainnet.vault.address, abi: contracts.mainnet.vault.abi, - functionName: 'priceUnitMint', + functionName: '', args: [tokenOut.address ?? tokens.mainnet.WETH.address], }); diff --git a/libs/shared/contracts/abi-json/AaveStrategy.json b/libs/shared/contracts/abi-json/AaveStrategy.json new file mode 100644 index 000000000..8e8edaf62 --- /dev/null +++ b/libs/shared/contracts/abi-json/AaveStrategy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oldHarvesterAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_newHarvesterAddress","type":"address"}],"name":"HarvesterAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"_oldAddresses","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"_newAddresses","type":"address[]"}],"name":"RewardTokenAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardTokenCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"_deprecated_rewardLiquidationThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_deprecated_rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetToPToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"checkBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardTokenAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvesterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incentivesController","outputs":[{"internalType":"contract IAaveIncentivesController","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"},{"internalType":"address","name":"_incentivesAddress","type":"address"},{"internalType":"address","name":"_stkAaveAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_assetIndex","type":"uint256"}],"name":"removePToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokenAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safeApproveAllTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_harvesterAddress","type":"address"}],"name":"setHarvesterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_pToken","type":"address"}],"name":"setPTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"}],"name":"setRewardTokenAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stkAave","outputs":[{"internalType":"contract IAaveStakedToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"supportsAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/AaveStrategyProxy.json b/libs/shared/contracts/abi-json/AaveStrategyProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/AaveStrategyProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/Buyback.json b/libs/shared/contracts/abi-json/Buyback.json new file mode 100644 index 000000000..714fe324a --- /dev/null +++ b/libs/shared/contracts/abi-json/Buyback.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"address","name":"_uniswapAddr","type":"address"},{"internalType":"address","name":"_strategistAddr","type":"address"},{"internalType":"address","name":"_ousd","type":"address"},{"internalType":"address","name":"_ogv","type":"address"},{"internalType":"address","name":"_usdt","type":"address"},{"internalType":"address","name":"_weth9","type":"address"},{"internalType":"address","name":"_rewardsSource","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"StrategistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"UniswapUpdated","type":"event"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsSource","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setStrategistAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setUniswapAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategistAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ousdAmount","type":"uint256"},{"internalType":"uint256","name":"minExpected","type":"uint256"}],"name":"swapNow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}] diff --git a/libs/shared/contracts/abi-json/ChainlinkOracle.json b/libs/shared/contracts/abi-json/ChainlinkOracle.json new file mode 100644 index 000000000..56f34912e --- /dev/null +++ b/libs/shared/contracts/abi-json/ChainlinkOracle.json @@ -0,0 +1 @@ +[{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"tokEthPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"tokUsdPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ethUsdPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"feed","type":"address"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"bool","name":"directToUsd","type":"bool"}],"name":"registerFeed","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ethFeed_","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_feed","type":"address"},{"indexed":false,"internalType":"string","name":"_symbol","type":"string"},{"indexed":false,"internalType":"bool","name":"_directToUsd","type":"bool"}],"name":"FeedRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/CompensationClaims.json b/libs/shared/contracts/abi-json/CompensationClaims.json new file mode 100644 index 000000000..130e574d4 --- /dev/null +++ b/libs/shared/contracts/abi-json/CompensationClaims.json @@ -0,0 +1 @@ +[{"constant":false,"inputs":[{"internalType":"address","name":"_coin","type":"address"}],"name":"collect","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"claim","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"setClaims","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalClaims","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unlockAdjuster","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_seconds","type":"uint256"}],"name":"start","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isAdjusterLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"adjuster","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"lockAdjuster","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"end","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_adjuster","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"end","type":"uint256"}],"name":"Start","type":"event"},{"anonymous":false,"inputs":[],"name":"Lock","type":"event"},{"anonymous":false,"inputs":[],"name":"Unlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"coin","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Collect","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/CompoundStrategy.json b/libs/shared/contracts/abi-json/CompoundStrategy.json new file mode 100644 index 000000000..f3681a8f5 --- /dev/null +++ b/libs/shared/contracts/abi-json/CompoundStrategy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oldHarvesterAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_newHarvesterAddress","type":"address"}],"name":"HarvesterAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"_oldAddresses","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"_newAddresses","type":"address[]"}],"name":"RewardTokenAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardTokenCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SkippedWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"_deprecated_rewardLiquidationThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_deprecated_rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetToPToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"checkBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardTokenAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvesterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_assetIndex","type":"uint256"}],"name":"removePToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokenAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safeApproveAllTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_harvesterAddress","type":"address"}],"name":"setHarvesterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_pToken","type":"address"}],"name":"setPTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"}],"name":"setRewardTokenAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"supportsAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/CompoundStrategyProxy.json b/libs/shared/contracts/abi-json/CompoundStrategyProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/CompoundStrategyProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/ConvexGeneralizedMetaStrategy.json b/libs/shared/contracts/abi-json/ConvexGeneralizedMetaStrategy.json new file mode 100644 index 000000000..df64e3f07 --- /dev/null +++ b/libs/shared/contracts/abi-json/ConvexGeneralizedMetaStrategy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oldHarvesterAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_newHarvesterAddress","type":"address"}],"name":"HarvesterAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_prevMaxSlippagePercentage","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_newMaxSlippagePercentage","type":"uint256"}],"name":"MaxWithdrawalSlippageUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"_oldAddresses","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"_newAddresses","type":"address[]"}],"name":"RewardTokenAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardTokenCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"_deprecated_rewardLiquidationThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_deprecated_rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetToPToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"checkBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardTokenAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvesterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"},{"components":[{"internalType":"address","name":"platformAddress","type":"address"},{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"address","name":"cvxDepositorAddress","type":"address"},{"internalType":"address","name":"metapoolAddress","type":"address"},{"internalType":"address","name":"metapoolMainToken","type":"address"},{"internalType":"address","name":"cvxRewardStakerAddress","type":"address"},{"internalType":"address","name":"metapoolLPToken","type":"address"},{"internalType":"uint256","name":"cvxDepositorPTokenId","type":"uint256"}],"internalType":"struct BaseConvexMetaStrategy.InitConfig","name":"initConfig","type":"tuple"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWithdrawalSlippage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_assetIndex","type":"uint256"}],"name":"removePToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokenAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safeApproveAllTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_harvesterAddress","type":"address"}],"name":"setHarvesterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWithdrawalSlippage","type":"uint256"}],"name":"setMaxWithdrawalSlippage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_pToken","type":"address"}],"name":"setPTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"}],"name":"setRewardTokenAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"supportsAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/ConvexLUSDMetaStrategyProxy.json b/libs/shared/contracts/abi-json/ConvexLUSDMetaStrategyProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/ConvexLUSDMetaStrategyProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/ConvexOUSDMetaStrategy.json b/libs/shared/contracts/abi-json/ConvexOUSDMetaStrategy.json new file mode 100644 index 000000000..df64e3f07 --- /dev/null +++ b/libs/shared/contracts/abi-json/ConvexOUSDMetaStrategy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oldHarvesterAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_newHarvesterAddress","type":"address"}],"name":"HarvesterAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_prevMaxSlippagePercentage","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_newMaxSlippagePercentage","type":"uint256"}],"name":"MaxWithdrawalSlippageUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"_oldAddresses","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"_newAddresses","type":"address[]"}],"name":"RewardTokenAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardTokenCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"_deprecated_rewardLiquidationThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_deprecated_rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetToPToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"checkBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardTokenAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvesterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"},{"components":[{"internalType":"address","name":"platformAddress","type":"address"},{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"address","name":"cvxDepositorAddress","type":"address"},{"internalType":"address","name":"metapoolAddress","type":"address"},{"internalType":"address","name":"metapoolMainToken","type":"address"},{"internalType":"address","name":"cvxRewardStakerAddress","type":"address"},{"internalType":"address","name":"metapoolLPToken","type":"address"},{"internalType":"uint256","name":"cvxDepositorPTokenId","type":"uint256"}],"internalType":"struct BaseConvexMetaStrategy.InitConfig","name":"initConfig","type":"tuple"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWithdrawalSlippage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_assetIndex","type":"uint256"}],"name":"removePToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokenAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safeApproveAllTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_harvesterAddress","type":"address"}],"name":"setHarvesterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWithdrawalSlippage","type":"uint256"}],"name":"setMaxWithdrawalSlippage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_pToken","type":"address"}],"name":"setPTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"}],"name":"setRewardTokenAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"supportsAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/ConvexOUSDMetaStrategyProxy.json b/libs/shared/contracts/abi-json/ConvexOUSDMetaStrategyProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/ConvexOUSDMetaStrategyProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/ConvexStrategy.json b/libs/shared/contracts/abi-json/ConvexStrategy.json new file mode 100644 index 000000000..8cc963226 --- /dev/null +++ b/libs/shared/contracts/abi-json/ConvexStrategy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oldHarvesterAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_newHarvesterAddress","type":"address"}],"name":"HarvesterAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"_oldAddresses","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"_newAddresses","type":"address[]"}],"name":"RewardTokenAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardTokenCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"_deprecated_cvxRewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_deprecated_rewardLiquidationThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_deprecated_rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetToPToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"checkBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardTokenAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvesterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"},{"internalType":"address","name":"_cvxDepositorAddress","type":"address"},{"internalType":"address","name":"_cvxRewardStakerAddress","type":"address"},{"internalType":"uint256","name":"_cvxDepositorPTokenId","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_assetIndex","type":"uint256"}],"name":"removePToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokenAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safeApproveAllTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_harvesterAddress","type":"address"}],"name":"setHarvesterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_pToken","type":"address"}],"name":"setPTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"}],"name":"setRewardTokenAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"supportsAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/ConvexStrategyProxy.json b/libs/shared/contracts/abi-json/ConvexStrategyProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/ConvexStrategyProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/CurveUSDCStrategy.json b/libs/shared/contracts/abi-json/CurveUSDCStrategy.json new file mode 100644 index 000000000..8daf77252 --- /dev/null +++ b/libs/shared/contracts/abi-json/CurveUSDCStrategy.json @@ -0,0 +1 @@ +[{"constant":false,"inputs":[],"name":"collectRewardToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_pToken","type":"address"}],"name":"setPTokenAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetToPToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"liquidate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address","name":"_rewardTokenAddress","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_pToken","type":"address"},{"internalType":"address","name":"_crvGaugeAddress","type":"address"},{"internalType":"address","name":"_crvMinterAddress","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"amountDeposited","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardLiquidationThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"checkBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address","name":"_rewardTokenAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardTokenAddress","type":"address"}],"name":"setRewardTokenAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"supportsAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"safeApproveAllTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setRewardLiquidationThreshold","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"amountWithdrawn","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"platformAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardTokenCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/CurveUSDCStrategyProxy.json b/libs/shared/contracts/abi-json/CurveUSDCStrategyProxy.json new file mode 100644 index 000000000..24dbad0b0 --- /dev/null +++ b/libs/shared/contracts/abi-json/CurveUSDCStrategyProxy.json @@ -0,0 +1 @@ +[{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/CurveUSDTStrategy.json b/libs/shared/contracts/abi-json/CurveUSDTStrategy.json new file mode 100644 index 000000000..8daf77252 --- /dev/null +++ b/libs/shared/contracts/abi-json/CurveUSDTStrategy.json @@ -0,0 +1 @@ +[{"constant":false,"inputs":[],"name":"collectRewardToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_pToken","type":"address"}],"name":"setPTokenAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetToPToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"liquidate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address","name":"_rewardTokenAddress","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_pToken","type":"address"},{"internalType":"address","name":"_crvGaugeAddress","type":"address"},{"internalType":"address","name":"_crvMinterAddress","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"amountDeposited","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardLiquidationThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"checkBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address","name":"_rewardTokenAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardTokenAddress","type":"address"}],"name":"setRewardTokenAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"supportsAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"safeApproveAllTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setRewardLiquidationThreshold","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"amountWithdrawn","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"platformAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardTokenCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/CurveUSDTStrategyProxy.json b/libs/shared/contracts/abi-json/CurveUSDTStrategyProxy.json new file mode 100644 index 000000000..24dbad0b0 --- /dev/null +++ b/libs/shared/contracts/abi-json/CurveUSDTStrategyProxy.json @@ -0,0 +1 @@ +[{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/Dripper.json b/libs/shared/contracts/abi-json/Dripper.json new file mode 100644 index 000000000..85191a16e --- /dev/null +++ b/libs/shared/contracts/abi-json/Dripper.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"inputs":[],"name":"availableFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectAndRebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"drip","outputs":[{"internalType":"uint64","name":"lastCollect","type":"uint64"},{"internalType":"uint192","name":"perBlock","type":"uint192"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dripDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_durationSeconds","type":"uint256"}],"name":"setDripDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/DripperProxy.json b/libs/shared/contracts/abi-json/DripperProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/DripperProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/Flipper.json b/libs/shared/contracts/abi-json/Flipper.json new file mode 100644 index 000000000..040cca644 --- /dev/null +++ b/libs/shared/contracts/abi-json/Flipper.json @@ -0,0 +1 @@ +[{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyOusdWithUsdt","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyOusdWithDai","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sellOusdForDai","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyOusdWithUsdc","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sellOusdForUsdc","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sellOusdForUsdt","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"rebaseOptIn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/FraxETHStrategyProxy.json b/libs/shared/contracts/abi-json/FraxETHStrategyProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/FraxETHStrategyProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/Generalized4626Strategy.json b/libs/shared/contracts/abi-json/Generalized4626Strategy.json new file mode 100644 index 000000000..acbbe3a44 --- /dev/null +++ b/libs/shared/contracts/abi-json/Generalized4626Strategy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oldHarvesterAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_newHarvesterAddress","type":"address"}],"name":"HarvesterAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"_oldAddresses","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"_newAddresses","type":"address[]"}],"name":"RewardTokenAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardTokenCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"_deprecated_rewardLiquidationThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_deprecated_rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetToPToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"checkBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardTokenAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvesterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_assetIndex","type":"uint256"}],"name":"removePToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokenAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safeApproveAllTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_harvesterAddress","type":"address"}],"name":"setHarvesterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_pToken","type":"address"}],"name":"setPTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"}],"name":"setRewardTokenAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"supportsAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/Governor.json b/libs/shared/contracts/abi-json/Governor.json new file mode 100644 index 000000000..70741376a --- /dev/null +++ b/libs/shared/contracts/abi-json/Governor.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"address","name":"admin_","type":"address"},{"internalType":"uint256","name":"delay_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"string","name":"signature","type":"string"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"CancelTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"string","name":"signature","type":"string"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"ExecuteTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newDelay","type":"uint256"}],"name":"NewDelay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newPendingAdmin","type":"address"}],"name":"NewPendingAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"ProposalCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"proposer","type":"address"},{"indexed":false,"internalType":"address[]","name":"targets","type":"address[]"},{"indexed":false,"internalType":"string[]","name":"signatures","type":"string[]"},{"indexed":false,"internalType":"bytes[]","name":"calldatas","type":"bytes[]"},{"indexed":false,"internalType":"string","name":"description","type":"string"}],"name":"ProposalCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"ProposalExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"ProposalQueued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"string","name":"signature","type":"string"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"QueueTransaction","type":"event"},{"inputs":[],"name":"GRACE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_OPERATIONS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"delay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"execute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"getActions","outputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"string[]","name":"signatures","type":"string[]"},{"internalType":"bytes[]","name":"calldatas","type":"bytes[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"pauseCapital","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pendingAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proposalCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"proposals","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"proposer","type":"address"},{"internalType":"uint256","name":"eta","type":"uint256"},{"internalType":"bool","name":"executed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"string[]","name":"signatures","type":"string[]"},{"internalType":"bytes[]","name":"calldatas","type":"bytes[]"},{"internalType":"string","name":"description","type":"string"}],"name":"propose","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"queue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"queuedTransactions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"delay_","type":"uint256"}],"name":"setDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingAdmin_","type":"address"}],"name":"setPendingAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"state","outputs":[{"internalType":"enum Governor.ProposalState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"unpauseCapital","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/Harvester.json b/libs/shared/contracts/abi-json/Harvester.json new file mode 100644 index 000000000..2f8ce8441 --- /dev/null +++ b/libs/shared/contracts/abi-json/Harvester.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address","name":"_usdtAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_tokenAddress","type":"address"},{"indexed":false,"internalType":"uint16","name":"_allowedSlippageBps","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"_harvestRewardBps","type":"uint16"},{"indexed":false,"internalType":"address","name":"_uniswapV2CompatibleAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_liquidationLimit","type":"uint256"},{"indexed":false,"internalType":"bool","name":"_doSwapRewardToken","type":"bool"}],"name":"RewardTokenConfigUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"bool","name":"_isSupported","type":"bool"}],"name":"SupportedStrategyUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"UniswapUpdated","type":"event"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyAddr","type":"address"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvestAndSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyAddr","type":"address"}],"name":"harvestAndSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyAddr","type":"address"},{"internalType":"address","name":"_rewardTo","type":"address"}],"name":"harvestAndSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardProceedsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardTokenConfigs","outputs":[{"internalType":"uint16","name":"allowedSlippageBps","type":"uint16"},{"internalType":"uint16","name":"harvestRewardBps","type":"uint16"},{"internalType":"address","name":"uniswapV2CompatibleAddr","type":"address"},{"internalType":"bool","name":"doSwapRewardToken","type":"bool"},{"internalType":"uint256","name":"liquidationLimit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint16","name":"_allowedSlippageBps","type":"uint16"},{"internalType":"uint16","name":"_harvestRewardBps","type":"uint16"},{"internalType":"address","name":"_uniswapV2CompatibleAddr","type":"address"},{"internalType":"uint256","name":"_liquidationLimit","type":"uint256"},{"internalType":"bool","name":"_doSwapRewardToken","type":"bool"}],"name":"setRewardTokenConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardProceedsAddress","type":"address"}],"name":"setRewardsProceedsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyAddress","type":"address"},{"internalType":"bool","name":"_isSupported","type":"bool"}],"name":"setSupportedStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"supportedStrategies","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_swapToken","type":"address"}],"name":"swapRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdtAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}] diff --git a/libs/shared/contracts/abi-json/HarvesterProxy.json b/libs/shared/contracts/abi-json/HarvesterProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/HarvesterProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/MinuteTimelock.json b/libs/shared/contracts/abi-json/MinuteTimelock.json new file mode 100644 index 000000000..62f70ee30 --- /dev/null +++ b/libs/shared/contracts/abi-json/MinuteTimelock.json @@ -0,0 +1 @@ +[{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"eta","type":"uint256"}],"name":"executeTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"acceptAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"pendingAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"eta","type":"uint256"}],"name":"queueTransaction","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"pendingAdmin_","type":"address"}],"name":"setPendingAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"eta","type":"uint256"}],"name":"cancelTransaction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"delay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAXIMUM_DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MINIMUM_DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"GRACE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"delay_","type":"uint256"}],"name":"setDelay","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"queuedTransactions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"delay_","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newPendingAdmin","type":"address"}],"name":"NewPendingAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newDelay","type":"uint256"}],"name":"NewDelay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"string","name":"signature","type":"string"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"CancelTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"string","name":"signature","type":"string"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"ExecuteTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"string","name":"signature","type":"string"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"QueueTransaction","type":"event"}] diff --git a/libs/shared/contracts/abi-json/MixOracle.json b/libs/shared/contracts/abi-json/MixOracle.json new file mode 100644 index 000000000..28111d5dc --- /dev/null +++ b/libs/shared/contracts/abi-json/MixOracle.json @@ -0,0 +1 @@ +[{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"priceMin","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxDrift","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"getTokenUSDOraclesLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_minDrift","type":"uint256"},{"internalType":"uint256","name":"_maxDrift","type":"uint256"}],"name":"setMinMaxDrift","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"minDrift","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"getTokenETHOraclesLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"priceMax","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address[]","name":"ethOracles","type":"address[]"},{"internalType":"address[]","name":"usdOracles","type":"address[]"}],"name":"registerTokenOracles","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"idx","type":"uint256"}],"name":"getTokenETHOracle","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"oracle","type":"address"}],"name":"unregisterEthUsdOracle","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"oracle","type":"address"}],"name":"registerEthUsdOracle","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"idx","type":"uint256"}],"name":"getTokenUSDOracle","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ethUsdOracles","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxDrift","type":"uint256"},{"internalType":"uint256","name":"_minDrift","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_minDrift","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_maxDrift","type":"uint256"}],"name":"DriftsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oracle","type":"address"}],"name":"EthUsdOracleRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oracle","type":"address"}],"name":"EthUsdOracleDeregistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"address[]","name":"ethOracles","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"usdOracles","type":"address[]"}],"name":"TokenOracleRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/MorphoAaveStrategy.json b/libs/shared/contracts/abi-json/MorphoAaveStrategy.json new file mode 100644 index 000000000..32cc5b67a --- /dev/null +++ b/libs/shared/contracts/abi-json/MorphoAaveStrategy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oldHarvesterAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_newHarvesterAddress","type":"address"}],"name":"HarvesterAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"_oldAddresses","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"_newAddresses","type":"address[]"}],"name":"RewardTokenAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardTokenCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"LENS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MORPHO","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_deprecated_rewardLiquidationThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_deprecated_rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetToPToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"checkBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPendingRewards","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardTokenAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvesterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_assetIndex","type":"uint256"}],"name":"removePToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokenAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safeApproveAllTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_harvesterAddress","type":"address"}],"name":"setHarvesterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_pToken","type":"address"}],"name":"setPTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"}],"name":"setRewardTokenAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"supportsAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/MorphoAaveStrategyProxy.json b/libs/shared/contracts/abi-json/MorphoAaveStrategyProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/MorphoAaveStrategyProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/MorphoCompoundStrategy.json b/libs/shared/contracts/abi-json/MorphoCompoundStrategy.json new file mode 100644 index 000000000..32cc5b67a --- /dev/null +++ b/libs/shared/contracts/abi-json/MorphoCompoundStrategy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oldHarvesterAddress","type":"address"},{"indexed":false,"internalType":"address","name":"_newHarvesterAddress","type":"address"}],"name":"HarvesterAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"_oldAddresses","type":"address[]"},{"indexed":false,"internalType":"address[]","name":"_newAddresses","type":"address[]"}],"name":"RewardTokenAddressesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"address","name":"rewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardTokenCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[],"name":"LENS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MORPHO","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_deprecated_rewardLiquidationThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_deprecated_rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetToPToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"checkBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectRewardTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPendingRewards","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardTokenAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvesterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_assetIndex","type":"uint256"}],"name":"removePToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokenAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"safeApproveAllTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_harvesterAddress","type":"address"}],"name":"setHarvesterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_pToken","type":"address"}],"name":"setPTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_rewardTokenAddresses","type":"address[]"}],"name":"setRewardTokenAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"supportsAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/MorphoCompoundStrategyProxy.json b/libs/shared/contracts/abi-json/MorphoCompoundStrategyProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/MorphoCompoundStrategyProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/OETH.json b/libs/shared/contracts/abi-json/OETH.json new file mode 100644 index 000000000..6909de3a5 --- /dev/null +++ b/libs/shared/contracts/abi-json/OETH.json @@ -0,0 +1 @@ +[{"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":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rebasingCredits","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rebasingCreditsPerToken","type":"uint256"}],"name":"TotalSupplyUpdatedHighres","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"},{"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","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":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTotalSupply","type":"uint256"}],"name":"changeSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"creditsBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"creditsBalanceOfHighres","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","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":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_nameArg","type":"string"},{"internalType":"string","name":"_symbolArg","type":"string"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"uint256","name":"_initialCreditsPerToken","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isUpgraded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonRebasingCreditsPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonRebasingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebaseOptIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebaseOptOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rebaseState","outputs":[{"internalType":"enum OUSD.RebaseOptions","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebasingCredits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebasingCreditsHighres","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebasingCreditsPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebasingCreditsPerTokenHighres","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}] diff --git a/libs/shared/contracts/abi-json/OETHOracleRouter.json b/libs/shared/contracts/abi-json/OETHOracleRouter.json new file mode 100644 index 000000000..96a28fbd0 --- /dev/null +++ b/libs/shared/contracts/abi-json/OETHOracleRouter.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"cacheDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}] diff --git a/libs/shared/contracts/abi-json/OETHProxy.json b/libs/shared/contracts/abi-json/OETHProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/OETHProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/OETHVault.json b/libs/shared/contracts/abi-json/OETHVault.json new file mode 100644 index 000000000..c3ca21d39 --- /dev/null +++ b/libs/shared/contracts/abi-json/OETHVault.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"AllocateThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"AssetAllocated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_strategy","type":"address"}],"name":"AssetDefaultStrategyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"}],"name":"AssetSupported","type":"event"},{"anonymous":false,"inputs":[],"name":"CapitalPaused","type":"event"},{"anonymous":false,"inputs":[],"name":"CapitalUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxSupplyDiff","type":"uint256"}],"name":"MaxSupplyDiffChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"NetOusdMintForStrategyThresholdChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_ousdMetaStrategy","type":"address"}],"name":"OusdMetaStrategyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_priceProvider","type":"address"}],"name":"PriceProviderUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"RebasePaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"RebaseThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"RebaseUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_redeemFeeBps","type":"uint256"}],"name":"RedeemFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"StrategistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"}],"name":"StrategyApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"}],"name":"StrategyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"TrusteeAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_basis","type":"uint256"}],"name":"TrusteeFeeBpsChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_vaultBuffer","type":"uint256"}],"name":"VaultBufferUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_yield","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"YieldDistribution","type":"event"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"approveStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetDefaultStrategies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoAllocateThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"cacheDecimals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"capitalPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyToAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"depositToStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_priceProvider","type":"address"},{"internalType":"address","name":"_ousd","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyDiff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"netOusdMintForStrategyThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"netOusdMintedForStrategy","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ousdMetaStrategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseCapital","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseRebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"priceProvider","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyFromAddress","type":"address"},{"internalType":"address","name":"_strategyToAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"reallocate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebasePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebaseThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"removeStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImpl","type":"address"}],"name":"setAdminImpl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"name":"setAssetDefaultStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setAutoAllocateThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupplyDiff","type":"uint256"}],"name":"setMaxSupplyDiff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setNetOusdMintForStrategyThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ousdMetaStrategy","type":"address"}],"name":"setOusdMetaStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceProvider","type":"address"}],"name":"setPriceProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setRebaseThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_redeemFeeBps","type":"uint256"}],"name":"setRedeemFeeBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setStrategistAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setTrusteeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_basis","type":"uint256"}],"name":"setTrusteeFeeBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vaultBuffer","type":"uint256"}],"name":"setVaultBuffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategistAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint8","name":"_unitConversion","type":"uint8"}],"name":"supportAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trusteeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trusteeFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpauseCapital","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseRebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultBuffer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAllFromStrategies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyAddr","type":"address"}],"name":"withdrawAllFromStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyFromAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"withdrawFromStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/OETHVaultAdmin.json b/libs/shared/contracts/abi-json/OETHVaultAdmin.json new file mode 100644 index 000000000..5b835d5dd --- /dev/null +++ b/libs/shared/contracts/abi-json/OETHVaultAdmin.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"AllocateThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"AssetAllocated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_strategy","type":"address"}],"name":"AssetDefaultStrategyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"}],"name":"AssetSupported","type":"event"},{"anonymous":false,"inputs":[],"name":"CapitalPaused","type":"event"},{"anonymous":false,"inputs":[],"name":"CapitalUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxSupplyDiff","type":"uint256"}],"name":"MaxSupplyDiffChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"NetOusdMintForStrategyThresholdChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_ousdMetaStrategy","type":"address"}],"name":"OusdMetaStrategyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_priceProvider","type":"address"}],"name":"PriceProviderUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"RebasePaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"RebaseThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"RebaseUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_redeemFeeBps","type":"uint256"}],"name":"RedeemFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"StrategistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"}],"name":"StrategyApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"}],"name":"StrategyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"TrusteeAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_basis","type":"uint256"}],"name":"TrusteeFeeBpsChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_vaultBuffer","type":"uint256"}],"name":"VaultBufferUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_yield","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"YieldDistribution","type":"event"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"approveStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetDefaultStrategies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoAllocateThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"cacheDecimals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"capitalPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyToAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"depositToStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyDiff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"netOusdMintForStrategyThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"netOusdMintedForStrategy","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ousdMetaStrategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseCapital","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseRebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"priceProvider","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyFromAddress","type":"address"},{"internalType":"address","name":"_strategyToAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"reallocate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebasePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebaseThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"removeStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImpl","type":"address"}],"name":"setAdminImpl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"name":"setAssetDefaultStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setAutoAllocateThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupplyDiff","type":"uint256"}],"name":"setMaxSupplyDiff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setNetOusdMintForStrategyThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ousdMetaStrategy","type":"address"}],"name":"setOusdMetaStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceProvider","type":"address"}],"name":"setPriceProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setRebaseThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_redeemFeeBps","type":"uint256"}],"name":"setRedeemFeeBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setStrategistAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setTrusteeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_basis","type":"uint256"}],"name":"setTrusteeFeeBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vaultBuffer","type":"uint256"}],"name":"setVaultBuffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategistAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint8","name":"_unitConversion","type":"uint8"}],"name":"supportAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trusteeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trusteeFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpauseCapital","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseRebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultBuffer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAllFromStrategies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyAddr","type":"address"}],"name":"withdrawAllFromStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyFromAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"withdrawFromStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/OETHVaultCore.json b/libs/shared/contracts/abi-json/OETHVaultCore.json new file mode 100644 index 000000000..59a0d54bf --- /dev/null +++ b/libs/shared/contracts/abi-json/OETHVaultCore.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"AllocateThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"AssetAllocated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_strategy","type":"address"}],"name":"AssetDefaultStrategyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"}],"name":"AssetSupported","type":"event"},{"anonymous":false,"inputs":[],"name":"CapitalPaused","type":"event"},{"anonymous":false,"inputs":[],"name":"CapitalUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxSupplyDiff","type":"uint256"}],"name":"MaxSupplyDiffChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"NetOusdMintForStrategyThresholdChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_ousdMetaStrategy","type":"address"}],"name":"OusdMetaStrategyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_priceProvider","type":"address"}],"name":"PriceProviderUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"RebasePaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"RebaseThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"RebaseUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_redeemFeeBps","type":"uint256"}],"name":"RedeemFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"StrategistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"}],"name":"StrategyApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"}],"name":"StrategyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"TrusteeAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_basis","type":"uint256"}],"name":"TrusteeFeeBpsChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_vaultBuffer","type":"uint256"}],"name":"VaultBufferUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_yield","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"YieldDistribution","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"allocate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetDefaultStrategies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoAllocateThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burnForStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"calculateRedeemOutputs","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"capitalPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"checkBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllAssets","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllStrategies","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAssetCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStrategyCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"isSupportedAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyDiff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minimumOusdAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintForStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"netOusdMintForStrategyThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"netOusdMintedForStrategy","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ousdMetaStrategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceProvider","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"priceUnitMint","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"priceUnitRedeem","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebasePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebaseThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minimumUnitAmount","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minimumUnitAmount","type":"uint256"}],"name":"redeemAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newImpl","type":"address"}],"name":"setAdminImpl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategistAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalValue","outputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trusteeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trusteeFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultBuffer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}] diff --git a/libs/shared/contracts/abi-json/OETHVaultProxy.json b/libs/shared/contracts/abi-json/OETHVaultProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/OETHVaultProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/OETHZapper.json b/libs/shared/contracts/abi-json/OETHZapper.json new file mode 100644 index 000000000..2724197ff --- /dev/null +++ b/libs/shared/contracts/abi-json/OETHZapper.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"address","name":"_oeth","type":"address"},{"internalType":"address","name":"_vault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintFrom","type":"event"},{"inputs":[],"name":"deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minOETH","type":"uint256"}],"name":"depositSFRXETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebaseOptIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}] diff --git a/libs/shared/contracts/abi-json/OGNStakingProxy.json b/libs/shared/contracts/abi-json/OGNStakingProxy.json new file mode 100644 index 000000000..24dbad0b0 --- /dev/null +++ b/libs/shared/contracts/abi-json/OGNStakingProxy.json @@ -0,0 +1 @@ +[{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/OUSD.json b/libs/shared/contracts/abi-json/OUSD.json new file mode 100644 index 000000000..bd7d29aca --- /dev/null +++ b/libs/shared/contracts/abi-json/OUSD.json @@ -0,0 +1 @@ +[{"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":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rebasingCredits","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rebasingCreditsPerToken","type":"uint256"}],"name":"TotalSupplyUpdatedHighres","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"},{"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","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":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTotalSupply","type":"uint256"}],"name":"changeSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"creditsBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"creditsBalanceOfHighres","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","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":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_nameArg","type":"string"},{"internalType":"string","name":"_symbolArg","type":"string"},{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isUpgraded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonRebasingCreditsPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonRebasingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebaseOptIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebaseOptOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rebaseState","outputs":[{"internalType":"enum OUSD.RebaseOptions","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebasingCredits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebasingCreditsHighres","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebasingCreditsPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebasingCreditsPerTokenHighres","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}] diff --git a/libs/shared/contracts/abi-json/OUSDProxy.json b/libs/shared/contracts/abi-json/OUSDProxy.json new file mode 100644 index 000000000..24dbad0b0 --- /dev/null +++ b/libs/shared/contracts/abi-json/OUSDProxy.json @@ -0,0 +1 @@ +[{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/OUSDReset.json b/libs/shared/contracts/abi-json/OUSDReset.json new file mode 100644 index 000000000..78a5ae2d8 --- /dev/null +++ b/libs/shared/contracts/abi-json/OUSDReset.json @@ -0,0 +1 @@ +[{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_nameArg","type":"string"},{"internalType":"string","name":"_symbolArg","type":"string"},{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rebasingCredits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_newTotalSupply","type":"uint256"}],"name":"changeSupply","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rebaseState","outputs":[{"internalType":"enum OUSD.RebaseOptions","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonRebasingCreditsPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rebasingCreditsPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"setVaultAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"_symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"rebaseOptOut","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"reset","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"nonRebasingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"rebaseOptIn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"creditsBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rebasingCredits","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rebasingCreditsPerToken","type":"uint256"}],"name":"TotalSupplyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","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":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"}] diff --git a/libs/shared/contracts/abi-json/OUSDResolutionUpgrade.json b/libs/shared/contracts/abi-json/OUSDResolutionUpgrade.json new file mode 100644 index 000000000..dfc08a382 --- /dev/null +++ b/libs/shared/contracts/abi-json/OUSDResolutionUpgrade.json @@ -0,0 +1 @@ +[{"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"creditsBalanceOfHighres","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isUpgraded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonRebasingCreditsPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonRebasingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rebaseState","outputs":[{"internalType":"enum OUSDResolutionUpgrade.RebaseOptions","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebasingCredits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebasingCreditsHighres","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebasingCreditsPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebasingCreditsPerTokenHighres","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"upgradeAccounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upgradeGlobals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}] diff --git a/libs/shared/contracts/abi-json/OpenUniswapOracle.json b/libs/shared/contracts/abi-json/OpenUniswapOracle.json new file mode 100644 index 000000000..aa0a2abbb --- /dev/null +++ b/libs/shared/contracts/abi-json/OpenUniswapOracle.json @@ -0,0 +1 @@ +[{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"tokEthPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"debugPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"tokUsdPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"ethPriceOracle_","type":"address"}],"name":"registerEthPriceOracle","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"getSwapConfig","outputs":[{"components":[{"internalType":"bool","name":"ethOnFirst","type":"bool"},{"internalType":"address","name":"swap","type":"address"},{"internalType":"uint256","name":"blockTimestampLast","type":"uint256"},{"internalType":"uint256","name":"latestBlockTimestampLast","type":"uint256"},{"internalType":"uint256","name":"priceCumulativeLast","type":"uint256"},{"internalType":"uint256","name":"latestPriceCumulativeLast","type":"uint256"},{"internalType":"uint256","name":"baseUnit","type":"uint256"}],"internalType":"struct OpenUniswapOracle.SwapConfig","name":"","type":"tuple"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32[]","name":"symbolHashes","type":"bytes32[]"}],"name":"updatePriceWindows","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ethUsdPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ethPriceOracle","outputs":[{"internalType":"contract IPriceOracle","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"openPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"pair_","type":"address"}],"name":"registerPair","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ethPriceOracle_","type":"address"},{"internalType":"address","name":"ethToken_","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/OracleRouter.json b/libs/shared/contracts/abi-json/OracleRouter.json new file mode 100644 index 000000000..a331d4300 --- /dev/null +++ b/libs/shared/contracts/abi-json/OracleRouter.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"cacheDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}] diff --git a/libs/shared/contracts/abi-json/RebaseHooks.json b/libs/shared/contracts/abi-json/RebaseHooks.json new file mode 100644 index 000000000..b609723fd --- /dev/null +++ b/libs/shared/contracts/abi-json/RebaseHooks.json @@ -0,0 +1 @@ +[{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"sync","type":"bool"}],"name":"postRebase","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uniswapPairs","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"_uniswapPairs","type":"address[]"}],"name":"setUniswapPairs","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/SingleAssetStaking.json b/libs/shared/contracts/abi-json/SingleAssetStaking.json new file mode 100644 index 000000000..053ea5a20 --- /dev/null +++ b/libs/shared/contracts/abi-json/SingleAssetStaking.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"stakeType","type":"uint8"},{"indexed":false,"internalType":"bytes32","name":"rootHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"proofDepth","type":"uint256"}],"name":"NewAirDropRootHash","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"durations","type":"uint256[]"}],"name":"NewDurations","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"rates","type":"uint256[]"}],"name":"NewRates","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bool","name":"yes","type":"bool"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rate","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fromUser","type":"address"},{"indexed":false,"internalType":"address","name":"toUser","type":"address"},{"indexed":false,"internalType":"uint256","name":"numStakes","type":"uint256"}],"name":"StakesTransfered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakedAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint8","name":"stakeType","type":"uint8"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"rate","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"airDroppedStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint8","name":"stakeType","type":"uint8"}],"name":"airDroppedStakeClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"dropRoots","outputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"uint256","name":"depth","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"durationRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"durations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllDurations","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllRates","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAllStakes","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint240","name":"rate","type":"uint240"},{"internalType":"bool","name":"paid","type":"bool"},{"internalType":"uint8","name":"stakeType","type":"uint8"}],"internalType":"struct SingleAssetStaking.Stake[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"uint256[]","name":"_durations","type":"uint256[]"},{"internalType":"uint256[]","name":"_rates","type":"uint256[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_stakeType","type":"uint8"},{"internalType":"bytes32","name":"_rootHash","type":"bytes32"},{"internalType":"uint256","name":"_proofDepth","type":"uint256"}],"name":"setAirDropRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_durations","type":"uint256[]"},{"internalType":"uint256[]","name":"_rates","type":"uint256[]"}],"name":"setDurationRates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_agent","type":"address"}],"name":"setTransferAgent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"stakeWithSender","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"totalCurrentHoldings","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"totalExpectedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalOutstanding","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferAgent","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_frmAccount","type":"address"},{"internalType":"address","name":"_dstAccount","type":"address"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"name":"transferStakes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userStakes","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint240","name":"rate","type":"uint240"},{"internalType":"bool","name":"paid","type":"bool"},{"internalType":"uint8","name":"stakeType","type":"uint8"}],"stateMutability":"view","type":"function"}] diff --git a/libs/shared/contracts/abi-json/ThreePoolStrategy.json b/libs/shared/contracts/abi-json/ThreePoolStrategy.json new file mode 100644 index 000000000..a72a18acf --- /dev/null +++ b/libs/shared/contracts/abi-json/ThreePoolStrategy.json @@ -0,0 +1 @@ +[{"constant":false,"inputs":[],"name":"collectRewardToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_pToken","type":"address"}],"name":"setPTokenAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetToPToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardLiquidationThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"checkBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address","name":"_rewardTokenAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_assetIndex","type":"uint256"}],"name":"removePToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardTokenAddress","type":"address"}],"name":"setRewardTokenAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"supportsAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"safeApproveAllTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setRewardLiquidationThreshold","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"platformAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"depositAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_platformAddress","type":"address"},{"internalType":"address","name":"_vaultAddress","type":"address"},{"internalType":"address","name":"_rewardTokenAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"address[]","name":"_pTokens","type":"address[]"},{"internalType":"address","name":"_crvGaugeAddress","type":"address"},{"internalType":"address","name":"_crvMinterAddress","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardTokenCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"}],"name":"PTokenRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_pToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/ThreePoolStrategyProxy.json b/libs/shared/contracts/abi-json/ThreePoolStrategyProxy.json new file mode 100644 index 000000000..24dbad0b0 --- /dev/null +++ b/libs/shared/contracts/abi-json/ThreePoolStrategyProxy.json @@ -0,0 +1 @@ +[{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/Timelock.json b/libs/shared/contracts/abi-json/Timelock.json new file mode 100644 index 000000000..3eb21b2d3 --- /dev/null +++ b/libs/shared/contracts/abi-json/Timelock.json @@ -0,0 +1 @@ +[{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"eta","type":"uint256"}],"name":"executeTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"acceptAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"pendingAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"pauseDeposits","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"eta","type":"uint256"}],"name":"queueTransaction","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"pendingAdmin_","type":"address"}],"name":"setPendingAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"string","name":"signature","type":"string"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"eta","type":"uint256"}],"name":"cancelTransaction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"delay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MAXIMUM_DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MINIMUM_DELAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"GRACE_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"unpauseDeposits","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"delay_","type":"uint256"}],"name":"setDelay","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"queuedTransactions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin_","type":"address"},{"internalType":"uint256","name":"delay_","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newPendingAdmin","type":"address"}],"name":"NewPendingAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newDelay","type":"uint256"}],"name":"NewDelay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"string","name":"signature","type":"string"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"CancelTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"string","name":"signature","type":"string"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"ExecuteTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"string","name":"signature","type":"string"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"eta","type":"uint256"}],"name":"QueueTransaction","type":"event"}] diff --git a/libs/shared/contracts/abi-json/Vault.json b/libs/shared/contracts/abi-json/Vault.json new file mode 100644 index 000000000..34e4c5e71 --- /dev/null +++ b/libs/shared/contracts/abi-json/Vault.json @@ -0,0 +1 @@ +[{"constant":false,"inputs":[],"name":"unpauseRebase","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"redeemFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_strategyAddr","type":"address"}],"name":"harvest","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"uniswapAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"removeStrategy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"vaultBuffer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"priceUSDRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_priceProvider","type":"address"}],"name":"setPriceProvider","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"approveStrategy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pauseCapital","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"harvest","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_priceProvider","type":"address"},{"internalType":"address","name":"_ousd","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"supportAsset","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rebaseThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rebasePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"strategistAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_maxSupplyDiff","type":"uint256"}],"name":"setMaxSupplyDiff","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"string","name":"symbol","type":"string"}],"name":"priceUSDMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setStrategistAddr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_strategyFromAddress","type":"address"},{"internalType":"address","name":"_strategyToAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"reallocate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"maxSupplyDiff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_vaultBuffer","type":"uint256"}],"name":"setVaultBuffer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpauseCapital","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"autoAllocateThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetDefaultStrategies","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setUniswapAddr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setAutoAllocateThreshold","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"priceProvider","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setRebaseThreshold","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"name":"setAssetDefaultStrategy","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pauseRebase","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"capitalPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_redeemFeeBps","type":"uint256"}],"name":"setRedeemFeeBps","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImpl","type":"address"}],"name":"setAdminImpl","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"}],"name":"AssetSupported","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_strategy","type":"address"}],"name":"AssetDefaultStrategyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"}],"name":"StrategyApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"}],"name":"StrategyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[],"name":"CapitalPaused","type":"event"},{"anonymous":false,"inputs":[],"name":"CapitalUnpaused","type":"event"},{"anonymous":false,"inputs":[],"name":"RebasePaused","type":"event"},{"anonymous":false,"inputs":[],"name":"RebaseUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_vaultBuffer","type":"uint256"}],"name":"VaultBufferUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_redeemFeeBps","type":"uint256"}],"name":"RedeemFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_priceProvider","type":"address"}],"name":"PriceProviderUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"AllocateThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"RebaseThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"UniswapUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"StrategistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxSupplyDiff","type":"uint256"}],"name":"MaxSupplyDiffChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/VaultAdmin.json b/libs/shared/contracts/abi-json/VaultAdmin.json new file mode 100644 index 000000000..12ba2cf9c --- /dev/null +++ b/libs/shared/contracts/abi-json/VaultAdmin.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"AllocateThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"AssetAllocated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"},{"indexed":false,"internalType":"address","name":"_strategy","type":"address"}],"name":"AssetDefaultStrategyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_asset","type":"address"}],"name":"AssetSupported","type":"event"},{"anonymous":false,"inputs":[],"name":"CapitalPaused","type":"event"},{"anonymous":false,"inputs":[],"name":"CapitalUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxSupplyDiff","type":"uint256"}],"name":"MaxSupplyDiffChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"NetOusdMintForStrategyThresholdChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_ousdMetaStrategy","type":"address"}],"name":"OusdMetaStrategyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_priceProvider","type":"address"}],"name":"PriceProviderUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"RebasePaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"RebaseThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"RebaseUnpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_redeemFeeBps","type":"uint256"}],"name":"RedeemFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"StrategistUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"}],"name":"StrategyApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_addr","type":"address"}],"name":"StrategyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"}],"name":"TrusteeAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_basis","type":"uint256"}],"name":"TrusteeFeeBpsChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_vaultBuffer","type":"uint256"}],"name":"VaultBufferUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_yield","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"YieldDistribution","type":"event"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"approveStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetDefaultStrategies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoAllocateThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"capitalPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyToAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"depositToStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupplyDiff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"netOusdMintForStrategyThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"netOusdMintedForStrategy","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ousdMetaStrategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseCapital","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseRebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"priceProvider","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"priceUSDMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"priceUSDRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyFromAddress","type":"address"},{"internalType":"address","name":"_strategyToAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"reallocate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebasePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebaseThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"removeStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImpl","type":"address"}],"name":"setAdminImpl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"name":"setAssetDefaultStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setAutoAllocateThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupplyDiff","type":"uint256"}],"name":"setMaxSupplyDiff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setNetOusdMintForStrategyThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ousdMetaStrategy","type":"address"}],"name":"setOusdMetaStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_priceProvider","type":"address"}],"name":"setPriceProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"setRebaseThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_redeemFeeBps","type":"uint256"}],"name":"setRedeemFeeBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setStrategistAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setTrusteeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_basis","type":"uint256"}],"name":"setTrusteeFeeBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vaultBuffer","type":"uint256"}],"name":"setVaultBuffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategistAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"supportAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trusteeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trusteeFeeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpauseCapital","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseRebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultBuffer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAllFromStrategies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyAddr","type":"address"}],"name":"withdrawAllFromStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategyFromAddress","type":"address"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"withdrawFromStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/VaultCore.json b/libs/shared/contracts/abi-json/VaultCore.json new file mode 100644 index 000000000..986221d5c --- /dev/null +++ b/libs/shared/contracts/abi-json/VaultCore.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] \ No newline at end of file diff --git a/libs/shared/contracts/abi-json/VaultProxy.json b/libs/shared/contracts/abi-json/VaultProxy.json new file mode 100644 index 000000000..24dbad0b0 --- /dev/null +++ b/libs/shared/contracts/abi-json/VaultProxy.json @@ -0,0 +1 @@ +[{"constant":true,"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"}] diff --git a/libs/shared/contracts/abi-json/VaultValueChecker.json b/libs/shared/contracts/abi-json/VaultValueChecker.json new file mode 100644 index 000000000..1dbc376da --- /dev/null +++ b/libs/shared/contracts/abi-json/VaultValueChecker.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_ousd","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"int256","name":"lowValueDelta","type":"int256"},{"internalType":"int256","name":"highValueDelta","type":"int256"},{"internalType":"int256","name":"lowSupplyDelta","type":"int256"},{"internalType":"int256","name":"highSupplyDelta","type":"int256"}],"name":"checkDelta","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ousd","outputs":[{"internalType":"contract OUSD","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"snapshots","outputs":[{"internalType":"uint256","name":"vaultValue","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"takeSnapshot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"contract VaultCore","name":"","type":"address"}],"stateMutability":"view","type":"function"}] diff --git a/libs/shared/contracts/abi-json/WOETH.json b/libs/shared/contracts/abi-json/WOETH.json new file mode 100644 index 000000000..0882d5055 --- /dev/null +++ b/libs/shared/contracts/abi-json/WOETH.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"contract ERC20","name":"underlying_","type":"address"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","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":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"convertToAssets","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"convertToShares","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","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":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/WOETHProxy.json b/libs/shared/contracts/abi-json/WOETHProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/WOETHProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/WrappedOUSDProxy.json b/libs/shared/contracts/abi-json/WrappedOUSDProxy.json new file mode 100644 index 000000000..051bed33e --- /dev/null +++ b/libs/shared/contracts/abi-json/WrappedOUSDProxy.json @@ -0,0 +1 @@ +[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initGovernor","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}] diff --git a/libs/shared/contracts/abi-json/WrappedOusd.json b/libs/shared/contracts/abi-json/WrappedOusd.json new file mode 100644 index 000000000..0882d5055 --- /dev/null +++ b/libs/shared/contracts/abi-json/WrappedOusd.json @@ -0,0 +1 @@ +[{"inputs":[{"internalType":"contract ERC20","name":"underlying_","type":"address"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"GovernorshipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"newGovernor","type":"address"}],"name":"PendingGovernorshipTransfer","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":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"convertToAssets","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"convertToShares","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","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":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isGovernor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newGovernor","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"transferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}] diff --git a/libs/shared/contracts/project.json b/libs/shared/contracts/project.json index ff47a17b5..b02cedb6e 100644 --- a/libs/shared/contracts/project.json +++ b/libs/shared/contracts/project.json @@ -7,22 +7,22 @@ "targets": { "lint": { "executor": "@nx/linter:eslint", - "outputs": [ - "{options.outputFile}" - ], + "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": [ - "libs/shared/contracts/**/*.{ts,tsx,js,jsx}" - ] + "lintFilePatterns": ["libs/shared/contracts/**/*.{ts,tsx,js,jsx}"] } }, - "generate-abis": { + "generate-abis-json": { "executor": "nx:run-commands", "options": { - "commands": [ - "ts-node libs/shared/contracts/src/generateABIs.ts", - "npx prettier ./libs/shared/contracts/src/abis --write" - ], + "command": "ts-node --esm libs/shared/contracts/scripts/generateAbisJson.mts", + "parallel": false + } + }, + "generate-abis-ts": { + "executor": "nx:run-commands", + "options": { + "command": "ts-node --esm libs/shared/contracts/scripts/generateAbisTs.mts", "parallel": false } } diff --git a/libs/shared/contracts/scripts/generateAbisJson.mts b/libs/shared/contracts/scripts/generateAbisJson.mts new file mode 100644 index 000000000..5a8577d0d --- /dev/null +++ b/libs/shared/contracts/scripts/generateAbisJson.mts @@ -0,0 +1,32 @@ +import fse from 'fs-extra'; +import path from 'path'; +import deployOutput from '../src/network.mainnet.json' assert { type: 'json' }; + +const OUTPUT_DIR = './libs/shared/contracts/abi-json'; + +(async function () { + console.log('Start generating ABI Json files'); + + Object.entries(deployOutput.contracts).map(([filename, { abi }]) => { + try { + fse.writeJsonSync( + path.resolve(`${OUTPUT_DIR}/${filename}.json`), + abi, + {}, + ); + + console.log(`Generated: ${filename}.json`); + } catch (e) { + console.error(`ERROR Generating Json Abis\n${e.message}`); + process.exit(1); + } + }); + console.log( + `ABI Json generation complete, ${ + Object.keys(deployOutput.contracts).length + } files created from ${path.resolve( + '../src/network.mainnet.json', + )} in ${path.resolve(OUTPUT_DIR)}`, + ); + process.exit(0); +})(); diff --git a/libs/shared/contracts/scripts/generateAbisTs.mts b/libs/shared/contracts/scripts/generateAbisTs.mts new file mode 100644 index 000000000..b84a1f996 --- /dev/null +++ b/libs/shared/contracts/scripts/generateAbisTs.mts @@ -0,0 +1,42 @@ +import fse from 'fs-extra'; +import path from 'path'; +import * as prettier from 'prettier'; + +const INPUT_DIR = './libs/shared/contracts/abi-json'; +const OUTPUT_DIR = './libs/shared/contracts/src/abis'; + +(async function () { + console.log('Start generating ABI ts files'); + fse.emptyDirSync(path.resolve(`${OUTPUT_DIR}`)); + const files = fse.readdirSync(INPUT_DIR); + const config = await prettier.resolveConfig(path.resolve('.prettierrc'), { + useCache: false, + }); + for (const fileJson of files) { + try { + const file = fse.readJSONSync(path.resolve(`${INPUT_DIR}/${fileJson}`)); + const filename = fileJson.replace('.json', ''); + const content = `// DO NOT EDIT - GENERATED\nexport const ${filename}ABI = ${JSON.stringify( + file, + )} as const;`; + const formatted = await prettier.format(content, { + ...config, + parser: 'typescript', + }); + fse.writeFileSync( + path.resolve(`${OUTPUT_DIR}/${filename}.ts`), + formatted, + ); + console.log(`Generated: ${filename}.ts from ${fileJson}`); + } catch (e) { + console.error(`ERROR Generating from ${fileJson}\n${e.message}`); + process.exit(1); + } + } + console.log( + `ABI generation complete, ${files.length} files created in ${path.resolve( + OUTPUT_DIR, + )}`, + ); + process.exit(0); +})(); diff --git a/libs/shared/contracts/src/abis/Aave.ts b/libs/shared/contracts/src/abis/Aave.ts deleted file mode 100644 index 03afebce1..000000000 --- a/libs/shared/contracts/src/abis/Aave.ts +++ /dev/null @@ -1,451 +0,0 @@ -// DO NOT EDIT - GENERATED -export const AaveABI = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'EthereumAddressUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'FeeProviderUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'LendingPoolConfiguratorUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'LendingPoolCoreUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'LendingPoolDataProviderUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'LendingPoolLiquidationManagerUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'LendingPoolManagerUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'LendingPoolParametersProviderUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'LendingPoolUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'LendingRateOracleUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousOwner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'PriceOracleUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, internalType: 'bytes32', name: 'id', type: 'bytes32' }, - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'ProxyCreated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'TokenDistributorUpdated', - type: 'event', - }, - { - constant: true, - inputs: [{ internalType: 'bytes32', name: '_key', type: 'bytes32' }], - name: 'getAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getFeeProvider', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getLendingPool', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getLendingPoolConfigurator', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getLendingPoolCore', - outputs: [{ internalType: 'address payable', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getLendingPoolDataProvider', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getLendingPoolLiquidationManager', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getLendingPoolManager', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getLendingPoolParametersProvider', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getLendingRateOracle', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getPriceOracle', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getTokenDistributor', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'isOwner', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'owner', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'renounceOwnership', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_feeProvider', type: 'address' }, - ], - name: 'setFeeProviderImpl', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_configurator', type: 'address' }, - ], - name: 'setLendingPoolConfiguratorImpl', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_lendingPoolCore', type: 'address' }, - ], - name: 'setLendingPoolCoreImpl', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: '_provider', type: 'address' }], - name: 'setLendingPoolDataProviderImpl', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: '_pool', type: 'address' }], - name: 'setLendingPoolImpl', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: '_manager', type: 'address' }], - name: 'setLendingPoolLiquidationManager', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_lendingPoolManager', type: 'address' }, - ], - name: 'setLendingPoolManager', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_parametersProvider', type: 'address' }, - ], - name: 'setLendingPoolParametersProviderImpl', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_lendingRateOracle', type: 'address' }, - ], - name: 'setLendingRateOracle', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_priceOracle', type: 'address' }, - ], - name: 'setPriceOracle', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_tokenDistributor', type: 'address' }, - ], - name: 'setTokenDistributor', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }], - name: 'transferOwnership', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/AaveStrategyProxy.ts b/libs/shared/contracts/src/abis/AaveStrategyProxy.ts index 0334757c1..a27738aa8 100644 --- a/libs/shared/contracts/src/abis/AaveStrategyProxy.ts +++ b/libs/shared/contracts/src/abis/AaveStrategyProxy.ts @@ -1,30 +1,5 @@ // DO NOT EDIT - GENERATED export const AaveStrategyProxyABI = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'Deposit', - type: 'event', - }, { anonymous: false, inputs: [ @@ -44,63 +19,6 @@ export const AaveStrategyProxyABI = [ name: 'GovernorshipTransferred', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_oldHarvesterAddress', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_newHarvesterAddress', - type: 'address', - }, - ], - name: 'HarvesterAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenRemoved', - type: 'event', - }, { anonymous: false, inputs: [ @@ -120,103 +38,27 @@ export const AaveStrategyProxyABI = [ name: 'PendingGovernorshipTransfer', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address[]', - name: '_oldAddresses', - type: 'address[]', - }, - { - indexed: false, - internalType: 'address[]', - name: '_newAddresses', - type: 'address[]', - }, - ], - name: 'RewardTokenAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'rewardToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'RewardTokenCollected', - type: 'event', - }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', + name: 'implementation', type: 'address', }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, ], - name: 'Withdrawal', + name: 'Upgraded', type: 'event', }, + { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: '_deprecated_rewardLiquidationThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: '_deprecated_rewardTokenAddress', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetToPToken', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'claimGovernance', @@ -224,37 +66,6 @@ export const AaveStrategyProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'collectRewardTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'deposit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'depositAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'getRewardTokenAddresses', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'governor', @@ -264,58 +75,20 @@ export const AaveStrategyProxyABI = [ }, { inputs: [], - name: 'harvesterAddress', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: 'incentivesController', - outputs: [ - { - internalType: 'contract IAaveIncentivesController', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, - { internalType: 'address', name: '_incentivesAddress', type: 'address' }, - { internalType: 'address', name: '_stkAaveAddress', type: 'address' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, { inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], name: 'initialize', outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, { @@ -325,82 +98,6 @@ export const AaveStrategyProxyABI = [ stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: 'platformAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_assetIndex', type: 'uint256' }], - name: 'removePToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'rewardTokenAddresses', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'safeApproveAllTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_harvesterAddress', type: 'address' }, - ], - name: 'setHarvesterAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'address', name: '_pToken', type: 'address' }, - ], - name: 'setPTokenAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - ], - name: 'setRewardTokenAddresses', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'stkAave', - outputs: [ - { internalType: 'contract IAaveStakedToken', name: '', type: 'address' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'supportsAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ { internalType: 'address', name: '_newGovernor', type: 'address' }, @@ -412,37 +109,21 @@ export const AaveStrategyProxyABI = [ }, { inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'transferToken', + name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'vaultAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ - { internalType: 'address', name: '_recipient', type: 'address' }, - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'withdraw', + name: 'upgradeToAndCall', outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'withdrawAll', - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/COMP.ts b/libs/shared/contracts/src/abis/COMP.ts deleted file mode 100644 index eb4071401..000000000 --- a/libs/shared/contracts/src/abis/COMP.ts +++ /dev/null @@ -1,299 +0,0 @@ -// DO NOT EDIT - GENERATED -export const COMPABI = [ - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'delegator', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'fromDelegate', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'toDelegate', - type: 'address', - }, - ], - name: 'DelegateChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'delegate', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'previousBalance', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newBalance', - type: 'uint256', - }, - ], - name: 'DelegateVotesChanged', - 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: 'Transfer', - type: 'event', - }, - { - constant: true, - inputs: [], - name: 'DELEGATION_TYPEHASH', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'DOMAIN_TYPEHASH', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { internalType: 'address', name: 'account', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'rawAmount', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { internalType: 'address', name: '', type: 'address' }, - { internalType: 'uint32', name: '', type: 'uint32' }, - ], - name: 'checkpoints', - outputs: [ - { internalType: 'uint32', name: 'fromBlock', type: 'uint32' }, - { internalType: 'uint96', name: 'votes', type: 'uint96' }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'delegatee', type: 'address' }], - name: 'delegate', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'delegatee', type: 'address' }, - { internalType: 'uint256', name: 'nonce', type: 'uint256' }, - { internalType: 'uint256', name: 'expiry', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'delegateBySig', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'delegates', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'getCurrentVotes', - outputs: [{ internalType: 'uint96', name: '', type: 'uint96' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { internalType: 'address', name: 'account', type: 'address' }, - { internalType: 'uint256', name: 'blockNumber', type: 'uint256' }, - ], - name: 'getPriorVotes', - outputs: [{ internalType: 'uint96', name: '', type: 'uint96' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'nonces', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'numCheckpoints', - outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'dst', type: 'address' }, - { internalType: 'uint256', name: 'rawAmount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'src', type: 'address' }, - { internalType: 'address', name: 'dst', type: 'address' }, - { internalType: 'uint256', name: 'rawAmount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/ChainlinkDAI_ETH.ts b/libs/shared/contracts/src/abis/ChainlinkDAI_ETH.ts deleted file mode 100644 index f62ce3f23..000000000 --- a/libs/shared/contracts/src/abis/ChainlinkDAI_ETH.ts +++ /dev/null @@ -1,284 +0,0 @@ -// DO NOT EDIT - GENERATED -export const ChainlinkDAI_ETHABI = [ - { - inputs: [ - { internalType: 'address', name: '_aggregator', type: 'address' }, - { internalType: 'address', name: '_accessController', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'int256', - name: 'current', - type: 'int256', - }, - { - indexed: true, - internalType: 'uint256', - name: 'roundId', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'updatedAt', - type: 'uint256', - }, - ], - name: 'AnswerUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'roundId', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'startedBy', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'startedAt', - type: 'uint256', - }, - ], - name: 'NewRound', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'from', type: 'address' }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'OwnershipTransferRequested', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'from', type: 'address' }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - inputs: [], - name: 'acceptOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'accessController', - outputs: [ - { - internalType: 'contract AccessControllerInterface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'aggregator', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_aggregator', type: 'address' }], - name: 'confirmAggregator', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'description', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_roundId', type: 'uint256' }], - name: 'getAnswer', - outputs: [{ internalType: 'int256', name: '', type: 'int256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint80', name: '_roundId', type: 'uint80' }], - name: 'getRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_roundId', type: 'uint256' }], - name: 'getTimestamp', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestAnswer', - outputs: [{ internalType: 'int256', name: '', type: 'int256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestRound', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestTimestamp', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [{ internalType: 'address payable', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint16', name: '', type: 'uint16' }], - name: 'phaseAggregators', - outputs: [ - { - internalType: 'contract AggregatorV2V3Interface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'phaseId', - outputs: [{ internalType: 'uint16', name: '', type: 'uint16' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_aggregator', type: 'address' }], - name: 'proposeAggregator', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'proposedAggregator', - outputs: [ - { - internalType: 'contract AggregatorV2V3Interface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint80', name: '_roundId', type: 'uint80' }], - name: 'proposedGetRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'proposedLatestRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_accessController', type: 'address' }, - ], - name: 'setController', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_to', type: 'address' }], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'version', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/ChainlinkETH_USD.ts b/libs/shared/contracts/src/abis/ChainlinkETH_USD.ts deleted file mode 100644 index 4ef191cfb..000000000 --- a/libs/shared/contracts/src/abis/ChainlinkETH_USD.ts +++ /dev/null @@ -1,284 +0,0 @@ -// DO NOT EDIT - GENERATED -export const ChainlinkETH_USDABI = [ - { - inputs: [ - { internalType: 'address', name: '_aggregator', type: 'address' }, - { internalType: 'address', name: '_accessController', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'int256', - name: 'current', - type: 'int256', - }, - { - indexed: true, - internalType: 'uint256', - name: 'roundId', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'updatedAt', - type: 'uint256', - }, - ], - name: 'AnswerUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'roundId', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'startedBy', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'startedAt', - type: 'uint256', - }, - ], - name: 'NewRound', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'from', type: 'address' }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'OwnershipTransferRequested', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'from', type: 'address' }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - inputs: [], - name: 'acceptOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'accessController', - outputs: [ - { - internalType: 'contract AccessControllerInterface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'aggregator', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_aggregator', type: 'address' }], - name: 'confirmAggregator', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'description', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_roundId', type: 'uint256' }], - name: 'getAnswer', - outputs: [{ internalType: 'int256', name: '', type: 'int256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint80', name: '_roundId', type: 'uint80' }], - name: 'getRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_roundId', type: 'uint256' }], - name: 'getTimestamp', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestAnswer', - outputs: [{ internalType: 'int256', name: '', type: 'int256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestRound', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestTimestamp', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [{ internalType: 'address payable', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint16', name: '', type: 'uint16' }], - name: 'phaseAggregators', - outputs: [ - { - internalType: 'contract AggregatorV2V3Interface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'phaseId', - outputs: [{ internalType: 'uint16', name: '', type: 'uint16' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_aggregator', type: 'address' }], - name: 'proposeAggregator', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'proposedAggregator', - outputs: [ - { - internalType: 'contract AggregatorV2V3Interface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint80', name: '_roundId', type: 'uint80' }], - name: 'proposedGetRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'proposedLatestRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_accessController', type: 'address' }, - ], - name: 'setController', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_to', type: 'address' }], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'version', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/ChainlinkFAST_GAS.ts b/libs/shared/contracts/src/abis/ChainlinkFAST_GAS.ts deleted file mode 100644 index 5a0be72dc..000000000 --- a/libs/shared/contracts/src/abis/ChainlinkFAST_GAS.ts +++ /dev/null @@ -1,284 +0,0 @@ -// DO NOT EDIT - GENERATED -export const ChainlinkFAST_GASABI = [ - { - inputs: [ - { internalType: 'address', name: '_aggregator', type: 'address' }, - { internalType: 'address', name: '_accessController', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'int256', - name: 'current', - type: 'int256', - }, - { - indexed: true, - internalType: 'uint256', - name: 'roundId', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'updatedAt', - type: 'uint256', - }, - ], - name: 'AnswerUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'roundId', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'startedBy', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'startedAt', - type: 'uint256', - }, - ], - name: 'NewRound', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'from', type: 'address' }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'OwnershipTransferRequested', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'from', type: 'address' }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - inputs: [], - name: 'acceptOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'accessController', - outputs: [ - { - internalType: 'contract AccessControllerInterface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'aggregator', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_aggregator', type: 'address' }], - name: 'confirmAggregator', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'description', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_roundId', type: 'uint256' }], - name: 'getAnswer', - outputs: [{ internalType: 'int256', name: '', type: 'int256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint80', name: '_roundId', type: 'uint80' }], - name: 'getRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_roundId', type: 'uint256' }], - name: 'getTimestamp', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestAnswer', - outputs: [{ internalType: 'int256', name: '', type: 'int256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestRound', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestTimestamp', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [{ internalType: 'address payable', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint16', name: '', type: 'uint16' }], - name: 'phaseAggregators', - outputs: [ - { - internalType: 'contract AggregatorV2V3Interface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'phaseId', - outputs: [{ internalType: 'uint16', name: '', type: 'uint16' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_aggregator', type: 'address' }], - name: 'proposeAggregator', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'proposedAggregator', - outputs: [ - { - internalType: 'contract AggregatorV2V3Interface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint80', name: '_roundId', type: 'uint80' }], - name: 'proposedGetRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'proposedLatestRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_accessController', type: 'address' }, - ], - name: 'setController', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_to', type: 'address' }], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'version', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/ChainlinkOracle.ts b/libs/shared/contracts/src/abis/ChainlinkOracle.ts index 5270b91d0..dd69e8371 100644 --- a/libs/shared/contracts/src/abis/ChainlinkOracle.ts +++ b/libs/shared/contracts/src/abis/ChainlinkOracle.ts @@ -10,12 +10,12 @@ export const ChainlinkOracleABI = [ type: 'function', }, { - constant: false, + constant: true, inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], name: 'tokEthPrice', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, - stateMutability: 'nonpayable', + stateMutability: 'view', type: 'function', }, { @@ -93,6 +93,31 @@ export const ChainlinkOracleABI = [ stateMutability: 'nonpayable', type: 'constructor', }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: '_feed', + type: 'address', + }, + { + indexed: false, + internalType: 'string', + name: '_symbol', + type: 'string', + }, + { + indexed: false, + internalType: 'bool', + name: '_directToUsd', + type: 'bool', + }, + ], + name: 'FeedRegistered', + type: 'event', + }, { anonymous: false, inputs: [ diff --git a/libs/shared/contracts/src/abis/ChainlinkUSDC_ETH.ts b/libs/shared/contracts/src/abis/ChainlinkUSDC_ETH.ts deleted file mode 100644 index 107070b36..000000000 --- a/libs/shared/contracts/src/abis/ChainlinkUSDC_ETH.ts +++ /dev/null @@ -1,284 +0,0 @@ -// DO NOT EDIT - GENERATED -export const ChainlinkUSDC_ETHABI = [ - { - inputs: [ - { internalType: 'address', name: '_aggregator', type: 'address' }, - { internalType: 'address', name: '_accessController', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'int256', - name: 'current', - type: 'int256', - }, - { - indexed: true, - internalType: 'uint256', - name: 'roundId', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'updatedAt', - type: 'uint256', - }, - ], - name: 'AnswerUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'roundId', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'startedBy', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'startedAt', - type: 'uint256', - }, - ], - name: 'NewRound', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'from', type: 'address' }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'OwnershipTransferRequested', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'from', type: 'address' }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - inputs: [], - name: 'acceptOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'accessController', - outputs: [ - { - internalType: 'contract AccessControllerInterface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'aggregator', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_aggregator', type: 'address' }], - name: 'confirmAggregator', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'description', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_roundId', type: 'uint256' }], - name: 'getAnswer', - outputs: [{ internalType: 'int256', name: '', type: 'int256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint80', name: '_roundId', type: 'uint80' }], - name: 'getRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_roundId', type: 'uint256' }], - name: 'getTimestamp', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestAnswer', - outputs: [{ internalType: 'int256', name: '', type: 'int256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestRound', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestTimestamp', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [{ internalType: 'address payable', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint16', name: '', type: 'uint16' }], - name: 'phaseAggregators', - outputs: [ - { - internalType: 'contract AggregatorV2V3Interface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'phaseId', - outputs: [{ internalType: 'uint16', name: '', type: 'uint16' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_aggregator', type: 'address' }], - name: 'proposeAggregator', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'proposedAggregator', - outputs: [ - { - internalType: 'contract AggregatorV2V3Interface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint80', name: '_roundId', type: 'uint80' }], - name: 'proposedGetRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'proposedLatestRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_accessController', type: 'address' }, - ], - name: 'setController', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_to', type: 'address' }], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'version', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/ChainlinkUSDT_ETH.ts b/libs/shared/contracts/src/abis/ChainlinkUSDT_ETH.ts deleted file mode 100644 index 36e66f582..000000000 --- a/libs/shared/contracts/src/abis/ChainlinkUSDT_ETH.ts +++ /dev/null @@ -1,284 +0,0 @@ -// DO NOT EDIT - GENERATED -export const ChainlinkUSDT_ETHABI = [ - { - inputs: [ - { internalType: 'address', name: '_aggregator', type: 'address' }, - { internalType: 'address', name: '_accessController', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'int256', - name: 'current', - type: 'int256', - }, - { - indexed: true, - internalType: 'uint256', - name: 'roundId', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'updatedAt', - type: 'uint256', - }, - ], - name: 'AnswerUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'roundId', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'startedBy', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'startedAt', - type: 'uint256', - }, - ], - name: 'NewRound', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'from', type: 'address' }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'OwnershipTransferRequested', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'from', type: 'address' }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - inputs: [], - name: 'acceptOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'accessController', - outputs: [ - { - internalType: 'contract AccessControllerInterface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'aggregator', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_aggregator', type: 'address' }], - name: 'confirmAggregator', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'description', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_roundId', type: 'uint256' }], - name: 'getAnswer', - outputs: [{ internalType: 'int256', name: '', type: 'int256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint80', name: '_roundId', type: 'uint80' }], - name: 'getRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_roundId', type: 'uint256' }], - name: 'getTimestamp', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestAnswer', - outputs: [{ internalType: 'int256', name: '', type: 'int256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestRound', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'latestTimestamp', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [{ internalType: 'address payable', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint16', name: '', type: 'uint16' }], - name: 'phaseAggregators', - outputs: [ - { - internalType: 'contract AggregatorV2V3Interface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'phaseId', - outputs: [{ internalType: 'uint16', name: '', type: 'uint16' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_aggregator', type: 'address' }], - name: 'proposeAggregator', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'proposedAggregator', - outputs: [ - { - internalType: 'contract AggregatorV2V3Interface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint80', name: '_roundId', type: 'uint80' }], - name: 'proposedGetRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'proposedLatestRoundData', - outputs: [ - { internalType: 'uint80', name: 'roundId', type: 'uint80' }, - { internalType: 'int256', name: 'answer', type: 'int256' }, - { internalType: 'uint256', name: 'startedAt', type: 'uint256' }, - { internalType: 'uint256', name: 'updatedAt', type: 'uint256' }, - { internalType: 'uint80', name: 'answeredInRound', type: 'uint80' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_accessController', type: 'address' }, - ], - name: 'setController', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_to', type: 'address' }], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'version', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/CompoundStrategy.ts b/libs/shared/contracts/src/abis/CompoundStrategy.ts index 7ea38763c..18bf4b724 100644 --- a/libs/shared/contracts/src/abis/CompoundStrategy.ts +++ b/libs/shared/contracts/src/abis/CompoundStrategy.ts @@ -1,364 +1,426 @@ // DO NOT EDIT - GENERATED export const CompoundStrategyABI = [ { - constant: false, - inputs: [], - name: 'collectRewardToken', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: '_asset', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: '_pToken', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: '_amount', + type: 'uint256', + }, + ], + name: 'Deposit', + type: 'event', }, { - constant: true, - inputs: [], - name: 'governor', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, + ], + name: 'GovernorshipTransferred', + type: 'event', }, { - constant: false, + anonymous: false, inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'address', name: '_pToken', type: 'address' }, + { + indexed: false, + internalType: 'address', + name: '_oldHarvesterAddress', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: '_newHarvesterAddress', + type: 'address', + }, ], - name: 'setPTokenAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', + name: 'HarvesterAddressesUpdated', + type: 'event', }, { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetToPToken', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: '_asset', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: '_pToken', + type: 'address', + }, + ], + name: 'PTokenAdded', + type: 'event', }, { - constant: false, + anonymous: false, inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { + indexed: true, + internalType: 'address', + name: '_asset', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: '_pToken', + type: 'address', + }, ], - name: 'transferToken', - outputs: [], - payable: false, - stateMutability: 'nonpayable', + name: 'PTokenRemoved', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, + ], + name: 'PendingGovernorshipTransfer', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address[]', + name: '_oldAddresses', + type: 'address[]', + }, + { + indexed: false, + internalType: 'address[]', + name: '_newAddresses', + type: 'address[]', + }, + ], + name: 'RewardTokenAddressesUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'rewardToken', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'amount', + type: 'uint256', + }, + ], + name: 'RewardTokenCollected', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'asset', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'amount', + type: 'uint256', + }, + ], + name: 'SkippedWithdrawal', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: '_asset', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: '_pToken', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: '_amount', + type: 'uint256', + }, + ], + name: 'Withdrawal', + type: 'event', + }, + { + inputs: [], + name: '_deprecated_rewardLiquidationThreshold', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', type: 'function', }, { - constant: true, inputs: [], - name: 'rewardTokenAddress', + name: '_deprecated_rewardTokenAddress', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [{ internalType: 'address', name: '', type: 'address' }], + name: 'assetToPToken', outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, stateMutability: 'view', type: 'function', }, { - constant: false, + inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], + name: 'checkBalance', + outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], + stateMutability: 'view', + type: 'function', + }, + { inputs: [], - name: 'liquidate', + name: 'claimGovernance', outputs: [], - payable: false, stateMutability: 'nonpayable', type: 'function', }, { - constant: true, inputs: [], - name: 'vaultAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', + name: 'collectRewardTokens', + outputs: [], + stateMutability: 'nonpayable', type: 'function', }, { - constant: false, inputs: [ { internalType: 'address', name: '_asset', type: 'address' }, { internalType: 'uint256', name: '_amount', type: 'uint256' }, ], name: 'deposit', - outputs: [ - { internalType: 'uint256', name: 'amountDeposited', type: 'uint256' }, - ], - payable: false, + outputs: [], stateMutability: 'nonpayable', type: 'function', }, { - constant: true, inputs: [], - name: 'rewardLiquidationThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, + name: 'depositAll', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'getRewardTokenAddresses', + outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], stateMutability: 'view', type: 'function', }, { - constant: false, inputs: [], - name: 'claimGovernance', - outputs: [], - payable: false, - stateMutability: 'nonpayable', + name: 'governor', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', type: 'function', }, { - constant: true, - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], - payable: false, + inputs: [], + name: 'harvesterAddress', + outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { - constant: false, inputs: [ { internalType: 'address', name: '_platformAddress', type: 'address' }, { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, + { + internalType: 'address[]', + name: '_rewardTokenAddresses', + type: 'address[]', + }, { internalType: 'address[]', name: '_assets', type: 'address[]' }, { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, ], name: 'initialize', outputs: [], - payable: false, stateMutability: 'nonpayable', type: 'function', }, { - constant: false, - inputs: [ - { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, - ], - name: 'setRewardTokenAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', + inputs: [], + name: 'isGovernor', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + stateMutability: 'view', type: 'function', }, { - constant: true, - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'supportsAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, + inputs: [], + name: 'platformAddress', + outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { - constant: false, - inputs: [], - name: 'safeApproveAllTokens', + inputs: [{ internalType: 'uint256', name: '_assetIndex', type: 'uint256' }], + name: 'removePToken', outputs: [], - payable: false, stateMutability: 'nonpayable', type: 'function', }, { - constant: true, - inputs: [], - name: 'isGovernor', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, + inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + name: 'rewardTokenAddresses', + outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { - constant: false, - inputs: [{ internalType: 'uint256', name: '_threshold', type: 'uint256' }], - name: 'setRewardLiquidationThreshold', + inputs: [], + name: 'safeApproveAllTokens', outputs: [], - payable: false, stateMutability: 'nonpayable', type: 'function', }, { - constant: false, inputs: [ - { internalType: 'address', name: '_newGovernor', type: 'address' }, + { internalType: 'address', name: '_harvesterAddress', type: 'address' }, ], - name: 'transferGovernance', + name: 'setHarvesterAddress', outputs: [], - payable: false, stateMutability: 'nonpayable', type: 'function', }, { - constant: false, inputs: [ - { internalType: 'address', name: '_recipient', type: 'address' }, { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'withdraw', - outputs: [ - { internalType: 'uint256', name: 'amountWithdrawn', type: 'uint256' }, + { internalType: 'address', name: '_pToken', type: 'address' }, ], - payable: false, + name: 'setPTokenAddress', + outputs: [], stateMutability: 'nonpayable', type: 'function', }, { - constant: true, - inputs: [], - name: 'platformAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - anonymous: false, inputs: [ { - indexed: false, - internalType: 'address', - name: 'asset', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', + internalType: 'address[]', + name: '_rewardTokenAddresses', + type: 'address[]', }, ], - name: 'SkippedWithdrawal', - type: 'event', + name: 'setRewardTokenAddresses', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenAdded', - type: 'event', + inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], + name: 'supportsAsset', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + stateMutability: 'view', + type: 'function', }, { - anonymous: false, inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, + { internalType: 'address', name: '_newGovernor', type: 'address' }, ], - name: 'Deposit', - type: 'event', + name: 'transferGovernance', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - anonymous: false, inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'uint256', name: '_amount', type: 'uint256' }, ], - name: 'Withdrawal', - type: 'event', + name: 'transferToken', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'RewardTokenCollected', - type: 'event', + inputs: [], + name: 'vaultAddress', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', + type: 'function', }, { - anonymous: false, inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, + { internalType: 'address', name: '_recipient', type: 'address' }, + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'uint256', name: '_amount', type: 'uint256' }, ], - name: 'PendingGovernorshipTransfer', - type: 'event', + name: 'withdraw', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'GovernorshipTransferred', - type: 'event', + inputs: [], + name: 'withdrawAll', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/CompoundStrategyProxy.ts b/libs/shared/contracts/src/abis/CompoundStrategyProxy.ts index ea2c4ba8c..224c4c643 100644 --- a/libs/shared/contracts/src/abis/CompoundStrategyProxy.ts +++ b/libs/shared/contracts/src/abis/CompoundStrategyProxy.ts @@ -1,364 +1,129 @@ // DO NOT EDIT - GENERATED export const CompoundStrategyProxyABI = [ { - constant: false, - inputs: [], - name: 'collectRewardToken', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'governor', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, + anonymous: false, inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'address', name: '_pToken', type: 'address' }, + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, ], - name: 'setPTokenAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', + name: 'GovernorshipTransferred', + type: 'event', }, { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetToPToken', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, + ], + name: 'PendingGovernorshipTransfer', + type: 'event', }, { - constant: false, + anonymous: false, inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { + indexed: true, + internalType: 'address', + name: 'implementation', + type: 'address', + }, ], - name: 'transferToken', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', + name: 'Upgraded', + type: 'event', }, + { stateMutability: 'payable', type: 'fallback' }, { - constant: true, inputs: [], - name: 'rewardTokenAddress', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, stateMutability: 'view', type: 'function', }, { - constant: false, inputs: [], - name: 'liquidate', + name: 'claimGovernance', outputs: [], - payable: false, stateMutability: 'nonpayable', type: 'function', }, { - constant: true, inputs: [], - name: 'vaultAddress', + name: 'governor', outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'deposit', - outputs: [ - { internalType: 'uint256', name: 'amountDeposited', type: 'uint256' }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'rewardLiquidationThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, stateMutability: 'view', type: 'function', }, { - constant: false, inputs: [], - name: 'claimGovernance', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], - payable: false, + name: 'implementation', + outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { - constant: false, inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], name: 'initialize', outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, - ], - name: 'setRewardTokenAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'supportsAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'safeApproveAllTokens', - outputs: [], - payable: false, - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, { - constant: true, inputs: [], name: 'isGovernor', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, stateMutability: 'view', type: 'function', }, { - constant: false, - inputs: [{ internalType: 'uint256', name: '_threshold', type: 'uint256' }], - name: 'setRewardLiquidationThreshold', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, inputs: [ { internalType: 'address', name: '_newGovernor', type: 'address' }, ], name: 'transferGovernance', outputs: [], - payable: false, stateMutability: 'nonpayable', type: 'function', }, { - constant: false, inputs: [ - { internalType: 'address', name: '_recipient', type: 'address' }, - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'withdraw', - outputs: [ - { internalType: 'uint256', name: 'amountWithdrawn', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - payable: false, + name: 'upgradeTo', + outputs: [], stateMutability: 'nonpayable', type: 'function', }, { - constant: true, - inputs: [], - name: 'platformAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'asset', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'SkippedWithdrawal', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenAdded', - type: 'event', - }, - { - anonymous: false, inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'Deposit', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'Withdrawal', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'RewardTokenCollected', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'PendingGovernorshipTransfer', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'GovernorshipTransferred', - type: 'event', + name: 'upgradeToAndCall', + outputs: [], + stateMutability: 'payable', + type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/ConvexLUSDMetaStrategyProxy.ts b/libs/shared/contracts/src/abis/ConvexLUSDMetaStrategyProxy.ts index 06156466a..a036e916b 100644 --- a/libs/shared/contracts/src/abis/ConvexLUSDMetaStrategyProxy.ts +++ b/libs/shared/contracts/src/abis/ConvexLUSDMetaStrategyProxy.ts @@ -1,30 +1,5 @@ // DO NOT EDIT - GENERATED export const ConvexLUSDMetaStrategyProxyABI = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'Deposit', - type: 'event', - }, { anonymous: false, inputs: [ @@ -44,82 +19,6 @@ export const ConvexLUSDMetaStrategyProxyABI = [ name: 'GovernorshipTransferred', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_oldHarvesterAddress', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_newHarvesterAddress', - type: 'address', - }, - ], - name: 'HarvesterAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_prevMaxSlippagePercentage', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_newMaxSlippagePercentage', - type: 'uint256', - }, - ], - name: 'MaxWithdrawalSlippageUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenRemoved', - type: 'event', - }, { anonymous: false, inputs: [ @@ -139,103 +38,27 @@ export const ConvexLUSDMetaStrategyProxyABI = [ name: 'PendingGovernorshipTransfer', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address[]', - name: '_oldAddresses', - type: 'address[]', - }, - { - indexed: false, - internalType: 'address[]', - name: '_newAddresses', - type: 'address[]', - }, - ], - name: 'RewardTokenAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'rewardToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'RewardTokenCollected', - type: 'event', - }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', - name: '_asset', + name: 'implementation', type: 'address', }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, ], - name: 'Withdrawal', + name: 'Upgraded', type: 'event', }, + { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: '_deprecated_rewardLiquidationThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: '_deprecated_rewardTokenAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetToPToken', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'claimGovernance', @@ -243,37 +66,6 @@ export const ConvexLUSDMetaStrategyProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'collectRewardTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'deposit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'depositAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'getRewardTokenAddresses', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'governor', @@ -283,72 +75,20 @@ export const ConvexLUSDMetaStrategyProxyABI = [ }, { inputs: [], - name: 'harvesterAddress', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, - { - components: [ - { internalType: 'address', name: 'platformAddress', type: 'address' }, - { internalType: 'address', name: 'vaultAddress', type: 'address' }, - { - internalType: 'address', - name: 'cvxDepositorAddress', - type: 'address', - }, - { internalType: 'address', name: 'metapoolAddress', type: 'address' }, - { - internalType: 'address', - name: 'metapoolMainToken', - type: 'address', - }, - { - internalType: 'address', - name: 'cvxRewardStakerAddress', - type: 'address', - }, - { internalType: 'address', name: 'metapoolLPToken', type: 'address' }, - { - internalType: 'uint256', - name: 'cvxDepositorPTokenId', - type: 'uint256', - }, - ], - internalType: 'struct BaseConvexMetaStrategy.InitConfig', - name: 'initConfig', - type: 'tuple', - }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], name: 'initialize', outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, { @@ -358,93 +98,6 @@ export const ConvexLUSDMetaStrategyProxyABI = [ stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: 'maxWithdrawalSlippage', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'platformAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_assetIndex', type: 'uint256' }], - name: 'removePToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'rewardTokenAddresses', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'safeApproveAllTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_harvesterAddress', type: 'address' }, - ], - name: 'setHarvesterAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '_maxWithdrawalSlippage', - type: 'uint256', - }, - ], - name: 'setMaxWithdrawalSlippage', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'address', name: '_pToken', type: 'address' }, - ], - name: 'setPTokenAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - ], - name: 'setRewardTokenAddresses', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'supportsAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ { internalType: 'address', name: '_newGovernor', type: 'address' }, @@ -456,37 +109,21 @@ export const ConvexLUSDMetaStrategyProxyABI = [ }, { inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'transferToken', + name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'vaultAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ - { internalType: 'address', name: '_recipient', type: 'address' }, - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'withdraw', + name: 'upgradeToAndCall', outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'withdrawAll', - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/ConvexOUSDMetaStrategyProxy.ts b/libs/shared/contracts/src/abis/ConvexOUSDMetaStrategyProxy.ts index 3fc0cc5f5..a8bbfa735 100644 --- a/libs/shared/contracts/src/abis/ConvexOUSDMetaStrategyProxy.ts +++ b/libs/shared/contracts/src/abis/ConvexOUSDMetaStrategyProxy.ts @@ -1,30 +1,5 @@ // DO NOT EDIT - GENERATED export const ConvexOUSDMetaStrategyProxyABI = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'Deposit', - type: 'event', - }, { anonymous: false, inputs: [ @@ -44,82 +19,6 @@ export const ConvexOUSDMetaStrategyProxyABI = [ name: 'GovernorshipTransferred', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_oldHarvesterAddress', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_newHarvesterAddress', - type: 'address', - }, - ], - name: 'HarvesterAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_prevMaxSlippagePercentage', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_newMaxSlippagePercentage', - type: 'uint256', - }, - ], - name: 'MaxWithdrawalSlippageUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenRemoved', - type: 'event', - }, { anonymous: false, inputs: [ @@ -139,103 +38,27 @@ export const ConvexOUSDMetaStrategyProxyABI = [ name: 'PendingGovernorshipTransfer', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address[]', - name: '_oldAddresses', - type: 'address[]', - }, - { - indexed: false, - internalType: 'address[]', - name: '_newAddresses', - type: 'address[]', - }, - ], - name: 'RewardTokenAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'rewardToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'RewardTokenCollected', - type: 'event', - }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', - name: '_asset', + name: 'implementation', type: 'address', }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, ], - name: 'Withdrawal', + name: 'Upgraded', type: 'event', }, + { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: '_deprecated_rewardLiquidationThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: '_deprecated_rewardTokenAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetToPToken', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'claimGovernance', @@ -243,37 +66,6 @@ export const ConvexOUSDMetaStrategyProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'collectRewardTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'deposit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'depositAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'getRewardTokenAddresses', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'governor', @@ -283,72 +75,20 @@ export const ConvexOUSDMetaStrategyProxyABI = [ }, { inputs: [], - name: 'harvesterAddress', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, - { - components: [ - { internalType: 'address', name: 'platformAddress', type: 'address' }, - { internalType: 'address', name: 'vaultAddress', type: 'address' }, - { - internalType: 'address', - name: 'cvxDepositorAddress', - type: 'address', - }, - { internalType: 'address', name: 'metapoolAddress', type: 'address' }, - { - internalType: 'address', - name: 'metapoolMainToken', - type: 'address', - }, - { - internalType: 'address', - name: 'cvxRewardStakerAddress', - type: 'address', - }, - { internalType: 'address', name: 'metapoolLPToken', type: 'address' }, - { - internalType: 'uint256', - name: 'cvxDepositorPTokenId', - type: 'uint256', - }, - ], - internalType: 'struct BaseConvexMetaStrategy.InitConfig', - name: 'initConfig', - type: 'tuple', - }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], name: 'initialize', outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, { @@ -358,93 +98,6 @@ export const ConvexOUSDMetaStrategyProxyABI = [ stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: 'maxWithdrawalSlippage', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'platformAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_assetIndex', type: 'uint256' }], - name: 'removePToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'rewardTokenAddresses', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'safeApproveAllTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_harvesterAddress', type: 'address' }, - ], - name: 'setHarvesterAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: '_maxWithdrawalSlippage', - type: 'uint256', - }, - ], - name: 'setMaxWithdrawalSlippage', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'address', name: '_pToken', type: 'address' }, - ], - name: 'setPTokenAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - ], - name: 'setRewardTokenAddresses', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'supportsAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ { internalType: 'address', name: '_newGovernor', type: 'address' }, @@ -456,37 +109,21 @@ export const ConvexOUSDMetaStrategyProxyABI = [ }, { inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'transferToken', + name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'vaultAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ - { internalType: 'address', name: '_recipient', type: 'address' }, - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'withdraw', + name: 'upgradeToAndCall', outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'withdrawAll', - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/ConvexStrategyProxy.ts b/libs/shared/contracts/src/abis/ConvexStrategyProxy.ts index 3a5542a87..b50c55c71 100644 --- a/libs/shared/contracts/src/abis/ConvexStrategyProxy.ts +++ b/libs/shared/contracts/src/abis/ConvexStrategyProxy.ts @@ -1,30 +1,5 @@ // DO NOT EDIT - GENERATED export const ConvexStrategyProxyABI = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'Deposit', - type: 'event', - }, { anonymous: false, inputs: [ @@ -44,63 +19,6 @@ export const ConvexStrategyProxyABI = [ name: 'GovernorshipTransferred', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_oldHarvesterAddress', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_newHarvesterAddress', - type: 'address', - }, - ], - name: 'HarvesterAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenRemoved', - type: 'event', - }, { anonymous: false, inputs: [ @@ -120,110 +38,27 @@ export const ConvexStrategyProxyABI = [ name: 'PendingGovernorshipTransfer', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address[]', - name: '_oldAddresses', - type: 'address[]', - }, - { - indexed: false, - internalType: 'address[]', - name: '_newAddresses', - type: 'address[]', - }, - ], - name: 'RewardTokenAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'rewardToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'RewardTokenCollected', - type: 'event', - }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', + name: 'implementation', type: 'address', }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, ], - name: 'Withdrawal', + name: 'Upgraded', type: 'event', }, + { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: '_deprecated_cvxRewardTokenAddress', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: '_deprecated_rewardLiquidationThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: '_deprecated_rewardTokenAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetToPToken', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'claimGovernance', @@ -231,37 +66,6 @@ export const ConvexStrategyProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'collectRewardTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'deposit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'depositAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'getRewardTokenAddresses', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'governor', @@ -271,58 +75,20 @@ export const ConvexStrategyProxyABI = [ }, { inputs: [], - name: 'harvesterAddress', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, - { - internalType: 'address', - name: '_cvxDepositorAddress', - type: 'address', - }, - { - internalType: 'address', - name: '_cvxRewardStakerAddress', - type: 'address', - }, - { - internalType: 'uint256', - name: '_cvxDepositorPTokenId', - type: 'uint256', - }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], name: 'initialize', outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, { @@ -332,73 +98,6 @@ export const ConvexStrategyProxyABI = [ stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: 'platformAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_assetIndex', type: 'uint256' }], - name: 'removePToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'rewardTokenAddresses', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'safeApproveAllTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_harvesterAddress', type: 'address' }, - ], - name: 'setHarvesterAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'address', name: '_pToken', type: 'address' }, - ], - name: 'setPTokenAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - ], - name: 'setRewardTokenAddresses', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'supportsAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ { internalType: 'address', name: '_newGovernor', type: 'address' }, @@ -410,37 +109,21 @@ export const ConvexStrategyProxyABI = [ }, { inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'transferToken', + name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'vaultAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ - { internalType: 'address', name: '_recipient', type: 'address' }, - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'withdraw', + name: 'upgradeToAndCall', outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'withdrawAll', - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/CurveAddressProvider.ts b/libs/shared/contracts/src/abis/CurveAddressProvider.ts deleted file mode 100644 index b1b524c65..000000000 --- a/libs/shared/contracts/src/abis/CurveAddressProvider.ts +++ /dev/null @@ -1,160 +0,0 @@ -// DO NOT EDIT - GENERATED -export const CurveAddressProviderABI = [ - { - name: 'NewAddressIdentifier', - inputs: [ - { type: 'uint256', name: 'id', indexed: true }, - { type: 'address', name: 'addr', indexed: false }, - { type: 'string', name: 'description', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'AddressModified', - inputs: [ - { type: 'uint256', name: 'id', indexed: true }, - { type: 'address', name: 'new_address', indexed: false }, - { type: 'uint256', name: 'version', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'CommitNewAdmin', - inputs: [ - { type: 'uint256', name: 'deadline', indexed: true }, - { type: 'address', name: 'admin', indexed: true }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'NewAdmin', - inputs: [{ type: 'address', name: 'admin', indexed: true }], - anonymous: false, - type: 'event', - }, - { - outputs: [], - inputs: [{ type: 'address', name: '_admin' }], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - name: 'get_registry', - outputs: [{ type: 'address', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 1061, - }, - { - name: 'max_id', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 1258, - }, - { - name: 'get_address', - outputs: [{ type: 'address', name: '' }], - inputs: [{ type: 'uint256', name: '_id' }], - stateMutability: 'view', - type: 'function', - gas: 1308, - }, - { - name: 'add_new_id', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'address', name: '_address' }, - { type: 'string', name: '_description' }, - ], - stateMutability: 'nonpayable', - type: 'function', - gas: 291275, - }, - { - name: 'set_address', - outputs: [{ type: 'bool', name: '' }], - inputs: [ - { type: 'uint256', name: '_id' }, - { type: 'address', name: '_address' }, - ], - stateMutability: 'nonpayable', - type: 'function', - gas: 182430, - }, - { - name: 'unset_address', - outputs: [{ type: 'bool', name: '' }], - inputs: [{ type: 'uint256', name: '_id' }], - stateMutability: 'nonpayable', - type: 'function', - gas: 101348, - }, - { - name: 'commit_transfer_ownership', - outputs: [{ type: 'bool', name: '' }], - inputs: [{ type: 'address', name: '_new_admin' }], - stateMutability: 'nonpayable', - type: 'function', - gas: 74048, - }, - { - name: 'apply_transfer_ownership', - outputs: [{ type: 'bool', name: '' }], - inputs: [], - stateMutability: 'nonpayable', - type: 'function', - gas: 60125, - }, - { - name: 'revert_transfer_ownership', - outputs: [{ type: 'bool', name: '' }], - inputs: [], - stateMutability: 'nonpayable', - type: 'function', - gas: 21400, - }, - { - name: 'admin', - outputs: [{ type: 'address', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 1331, - }, - { - name: 'transfer_ownership_deadline', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 1361, - }, - { - name: 'future_admin', - outputs: [{ type: 'address', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 1391, - }, - { - name: 'get_id_info', - outputs: [ - { type: 'address', name: 'addr' }, - { type: 'bool', name: 'is_active' }, - { type: 'uint256', name: 'version' }, - { type: 'uint256', name: 'last_modified' }, - { type: 'string', name: 'description' }, - ], - inputs: [{ type: 'uint256', name: 'arg0' }], - stateMutability: 'view', - type: 'function', - gas: 12168, - }, -] as const; diff --git a/libs/shared/contracts/src/abis/CurveGaugeController.ts b/libs/shared/contracts/src/abis/CurveGaugeController.ts deleted file mode 100644 index fae8c1711..000000000 --- a/libs/shared/contracts/src/abis/CurveGaugeController.ts +++ /dev/null @@ -1,430 +0,0 @@ -// DO NOT EDIT - GENERATED -export const CurveGaugeControllerABI = [ - { - name: 'CommitOwnership', - inputs: [{ type: 'address', name: 'admin', indexed: false }], - anonymous: false, - type: 'event', - }, - { - name: 'ApplyOwnership', - inputs: [{ type: 'address', name: 'admin', indexed: false }], - anonymous: false, - type: 'event', - }, - { - name: 'AddType', - inputs: [ - { type: 'string', name: 'name', indexed: false }, - { type: 'int128', name: 'type_id', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'NewTypeWeight', - inputs: [ - { type: 'int128', name: 'type_id', indexed: false }, - { type: 'uint256', name: 'time', indexed: false }, - { type: 'uint256', name: 'weight', indexed: false }, - { type: 'uint256', name: 'total_weight', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'NewGaugeWeight', - inputs: [ - { type: 'address', name: 'gauge_address', indexed: false }, - { type: 'uint256', name: 'time', indexed: false }, - { type: 'uint256', name: 'weight', indexed: false }, - { type: 'uint256', name: 'total_weight', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'VoteForGauge', - inputs: [ - { type: 'uint256', name: 'time', indexed: false }, - { type: 'address', name: 'user', indexed: false }, - { type: 'address', name: 'gauge_addr', indexed: false }, - { type: 'uint256', name: 'weight', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'NewGauge', - inputs: [ - { type: 'address', name: 'addr', indexed: false }, - { type: 'int128', name: 'gauge_type', indexed: false }, - { type: 'uint256', name: 'weight', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - outputs: [], - inputs: [ - { type: 'address', name: '_token' }, - { type: 'address', name: '_voting_escrow' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - name: 'commit_transfer_ownership', - outputs: [], - inputs: [{ type: 'address', name: 'addr' }], - stateMutability: 'nonpayable', - type: 'function', - gas: 37597, - }, - { - name: 'apply_transfer_ownership', - outputs: [], - inputs: [], - stateMutability: 'nonpayable', - type: 'function', - gas: 38497, - }, - { - name: 'gauge_types', - outputs: [{ type: 'int128', name: '' }], - inputs: [{ type: 'address', name: '_addr' }], - stateMutability: 'view', - type: 'function', - gas: 1625, - }, - { - name: 'add_gauge', - outputs: [], - inputs: [ - { type: 'address', name: 'addr' }, - { type: 'int128', name: 'gauge_type' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'add_gauge', - outputs: [], - inputs: [ - { type: 'address', name: 'addr' }, - { type: 'int128', name: 'gauge_type' }, - { type: 'uint256', name: 'weight' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'checkpoint', - outputs: [], - inputs: [], - stateMutability: 'nonpayable', - type: 'function', - gas: 18033784416, - }, - { - name: 'checkpoint_gauge', - outputs: [], - inputs: [{ type: 'address', name: 'addr' }], - stateMutability: 'nonpayable', - type: 'function', - gas: 18087678795, - }, - { - name: 'gauge_relative_weight', - outputs: [{ type: 'uint256', name: '' }], - inputs: [{ type: 'address', name: 'addr' }], - stateMutability: 'view', - type: 'function', - }, - { - name: 'gauge_relative_weight', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'address', name: 'addr' }, - { type: 'uint256', name: 'time' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - name: 'gauge_relative_weight_write', - outputs: [{ type: 'uint256', name: '' }], - inputs: [{ type: 'address', name: 'addr' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'gauge_relative_weight_write', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'address', name: 'addr' }, - { type: 'uint256', name: 'time' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'add_type', - outputs: [], - inputs: [{ type: 'string', name: '_name' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'add_type', - outputs: [], - inputs: [ - { type: 'string', name: '_name' }, - { type: 'uint256', name: 'weight' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'change_type_weight', - outputs: [], - inputs: [ - { type: 'int128', name: 'type_id' }, - { type: 'uint256', name: 'weight' }, - ], - stateMutability: 'nonpayable', - type: 'function', - gas: 36246310050, - }, - { - name: 'change_gauge_weight', - outputs: [], - inputs: [ - { type: 'address', name: 'addr' }, - { type: 'uint256', name: 'weight' }, - ], - stateMutability: 'nonpayable', - type: 'function', - gas: 36354170809, - }, - { - name: 'vote_for_gauge_weights', - outputs: [], - inputs: [ - { type: 'address', name: '_gauge_addr' }, - { type: 'uint256', name: '_user_weight' }, - ], - stateMutability: 'nonpayable', - type: 'function', - gas: 18142052127, - }, - { - name: 'get_gauge_weight', - outputs: [{ type: 'uint256', name: '' }], - inputs: [{ type: 'address', name: 'addr' }], - stateMutability: 'view', - type: 'function', - gas: 2974, - }, - { - name: 'get_type_weight', - outputs: [{ type: 'uint256', name: '' }], - inputs: [{ type: 'int128', name: 'type_id' }], - stateMutability: 'view', - type: 'function', - gas: 2977, - }, - { - name: 'get_total_weight', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 2693, - }, - { - name: 'get_weights_sum_per_type', - outputs: [{ type: 'uint256', name: '' }], - inputs: [{ type: 'int128', name: 'type_id' }], - stateMutability: 'view', - type: 'function', - gas: 3109, - }, - { - name: 'admin', - outputs: [{ type: 'address', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 1841, - }, - { - name: 'future_admin', - outputs: [{ type: 'address', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 1871, - }, - { - name: 'token', - outputs: [{ type: 'address', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 1901, - }, - { - name: 'voting_escrow', - outputs: [{ type: 'address', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 1931, - }, - { - name: 'n_gauge_types', - outputs: [{ type: 'int128', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 1961, - }, - { - name: 'n_gauges', - outputs: [{ type: 'int128', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 1991, - }, - { - name: 'gauge_type_names', - outputs: [{ type: 'string', name: '' }], - inputs: [{ type: 'int128', name: 'arg0' }], - stateMutability: 'view', - type: 'function', - gas: 8628, - }, - { - name: 'gauges', - outputs: [{ type: 'address', name: '' }], - inputs: [{ type: 'uint256', name: 'arg0' }], - stateMutability: 'view', - type: 'function', - gas: 2160, - }, - { - name: 'vote_user_slopes', - outputs: [ - { type: 'uint256', name: 'slope' }, - { type: 'uint256', name: 'power' }, - { type: 'uint256', name: 'end' }, - ], - inputs: [ - { type: 'address', name: 'arg0' }, - { type: 'address', name: 'arg1' }, - ], - stateMutability: 'view', - type: 'function', - gas: 5020, - }, - { - name: 'vote_user_power', - outputs: [{ type: 'uint256', name: '' }], - inputs: [{ type: 'address', name: 'arg0' }], - stateMutability: 'view', - type: 'function', - gas: 2265, - }, - { - name: 'last_user_vote', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'address', name: 'arg0' }, - { type: 'address', name: 'arg1' }, - ], - stateMutability: 'view', - type: 'function', - gas: 2449, - }, - { - name: 'points_weight', - outputs: [ - { type: 'uint256', name: 'bias' }, - { type: 'uint256', name: 'slope' }, - ], - inputs: [ - { type: 'address', name: 'arg0' }, - { type: 'uint256', name: 'arg1' }, - ], - stateMutability: 'view', - type: 'function', - gas: 3859, - }, - { - name: 'time_weight', - outputs: [{ type: 'uint256', name: '' }], - inputs: [{ type: 'address', name: 'arg0' }], - stateMutability: 'view', - type: 'function', - gas: 2355, - }, - { - name: 'points_sum', - outputs: [ - { type: 'uint256', name: 'bias' }, - { type: 'uint256', name: 'slope' }, - ], - inputs: [ - { type: 'int128', name: 'arg0' }, - { type: 'uint256', name: 'arg1' }, - ], - stateMutability: 'view', - type: 'function', - gas: 3970, - }, - { - name: 'time_sum', - outputs: [{ type: 'uint256', name: '' }], - inputs: [{ type: 'uint256', name: 'arg0' }], - stateMutability: 'view', - type: 'function', - gas: 2370, - }, - { - name: 'points_total', - outputs: [{ type: 'uint256', name: '' }], - inputs: [{ type: 'uint256', name: 'arg0' }], - stateMutability: 'view', - type: 'function', - gas: 2406, - }, - { - name: 'time_total', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 2321, - }, - { - name: 'points_type_weight', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'int128', name: 'arg0' }, - { type: 'uint256', name: 'arg1' }, - ], - stateMutability: 'view', - type: 'function', - gas: 2671, - }, - { - name: 'time_type_weight', - outputs: [{ type: 'uint256', name: '' }], - inputs: [{ type: 'uint256', name: 'arg0' }], - stateMutability: 'view', - type: 'function', - gas: 2490, - }, -] as const; diff --git a/libs/shared/contracts/src/abis/CurveOUSDFactoryGauge.ts b/libs/shared/contracts/src/abis/CurveOUSDFactoryGauge.ts deleted file mode 100644 index f3d40d762..000000000 --- a/libs/shared/contracts/src/abis/CurveOUSDFactoryGauge.ts +++ /dev/null @@ -1,512 +0,0 @@ -// DO NOT EDIT - GENERATED -export const CurveOUSDFactoryGaugeABI = [ - { - name: 'Deposit', - inputs: [ - { name: 'provider', type: 'address', indexed: true }, - { name: 'value', type: 'uint256', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'Withdraw', - inputs: [ - { name: 'provider', type: 'address', indexed: true }, - { name: 'value', type: 'uint256', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'UpdateLiquidityLimit', - inputs: [ - { name: 'user', type: 'address', indexed: false }, - { name: 'original_balance', type: 'uint256', indexed: false }, - { name: 'original_supply', type: 'uint256', indexed: false }, - { name: 'working_balance', type: 'uint256', indexed: false }, - { name: 'working_supply', type: 'uint256', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'CommitOwnership', - inputs: [{ name: 'admin', type: 'address', indexed: false }], - anonymous: false, - type: 'event', - }, - { - name: 'ApplyOwnership', - inputs: [{ name: 'admin', type: 'address', indexed: false }], - anonymous: false, - type: 'event', - }, - { - name: 'Transfer', - inputs: [ - { name: '_from', type: 'address', indexed: true }, - { name: '_to', type: 'address', indexed: true }, - { name: '_value', type: 'uint256', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'Approval', - inputs: [ - { name: '_owner', type: 'address', indexed: true }, - { name: '_spender', type: 'address', indexed: true }, - { name: '_value', type: 'uint256', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - stateMutability: 'nonpayable', - type: 'constructor', - inputs: [], - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'initialize', - inputs: [{ name: '_lp_token', type: 'address' }], - outputs: [], - gas: 374587, - }, - { - stateMutability: 'view', - type: 'function', - name: 'decimals', - inputs: [], - outputs: [{ name: '', type: 'uint256' }], - gas: 318, - }, - { - stateMutability: 'view', - type: 'function', - name: 'integrate_checkpoint', - inputs: [], - outputs: [{ name: '', type: 'uint256' }], - gas: 4590, - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'user_checkpoint', - inputs: [{ name: 'addr', type: 'address' }], - outputs: [{ name: '', type: 'bool' }], - gas: 3123886, - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'claimable_tokens', - inputs: [{ name: 'addr', type: 'address' }], - outputs: [{ name: '', type: 'uint256' }], - gas: 3038676, - }, - { - stateMutability: 'view', - type: 'function', - name: 'claimed_reward', - inputs: [ - { name: '_addr', type: 'address' }, - { name: '_token', type: 'address' }, - ], - outputs: [{ name: '', type: 'uint256' }], - gas: 3036, - }, - { - stateMutability: 'view', - type: 'function', - name: 'claimable_reward', - inputs: [ - { name: '_user', type: 'address' }, - { name: '_reward_token', type: 'address' }, - ], - outputs: [{ name: '', type: 'uint256' }], - gas: 20255, - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'set_rewards_receiver', - inputs: [{ name: '_receiver', type: 'address' }], - outputs: [], - gas: 35673, - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'claim_rewards', - inputs: [], - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'claim_rewards', - inputs: [{ name: '_addr', type: 'address' }], - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'claim_rewards', - inputs: [ - { name: '_addr', type: 'address' }, - { name: '_receiver', type: 'address' }, - ], - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'kick', - inputs: [{ name: 'addr', type: 'address' }], - outputs: [], - gas: 3137977, - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'deposit', - inputs: [{ name: '_value', type: 'uint256' }], - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'deposit', - inputs: [ - { name: '_value', type: 'uint256' }, - { name: '_addr', type: 'address' }, - ], - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'deposit', - inputs: [ - { name: '_value', type: 'uint256' }, - { name: '_addr', type: 'address' }, - { name: '_claim_rewards', type: 'bool' }, - ], - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'withdraw', - inputs: [{ name: '_value', type: 'uint256' }], - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'withdraw', - inputs: [ - { name: '_value', type: 'uint256' }, - { name: '_claim_rewards', type: 'bool' }, - ], - outputs: [], - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'transfer', - inputs: [ - { name: '_to', type: 'address' }, - { name: '_value', type: 'uint256' }, - ], - outputs: [{ name: '', type: 'bool' }], - gas: 18062826, - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'transferFrom', - inputs: [ - { name: '_from', type: 'address' }, - { name: '_to', type: 'address' }, - { name: '_value', type: 'uint256' }, - ], - outputs: [{ name: '', type: 'bool' }], - gas: 18100776, - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'approve', - inputs: [ - { name: '_spender', type: 'address' }, - { name: '_value', type: 'uint256' }, - ], - outputs: [{ name: '', type: 'bool' }], - gas: 38151, - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'increaseAllowance', - inputs: [ - { name: '_spender', type: 'address' }, - { name: '_added_value', type: 'uint256' }, - ], - outputs: [{ name: '', type: 'bool' }], - gas: 40695, - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'decreaseAllowance', - inputs: [ - { name: '_spender', type: 'address' }, - { name: '_subtracted_value', type: 'uint256' }, - ], - outputs: [{ name: '', type: 'bool' }], - gas: 40719, - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'add_reward', - inputs: [ - { name: '_reward_token', type: 'address' }, - { name: '_distributor', type: 'address' }, - ], - outputs: [], - gas: 115414, - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'set_reward_distributor', - inputs: [ - { name: '_reward_token', type: 'address' }, - { name: '_distributor', type: 'address' }, - ], - outputs: [], - gas: 43179, - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'deposit_reward_token', - inputs: [ - { name: '_reward_token', type: 'address' }, - { name: '_amount', type: 'uint256' }, - ], - outputs: [], - gas: 1540067, - }, - { - stateMutability: 'nonpayable', - type: 'function', - name: 'set_killed', - inputs: [{ name: '_is_killed', type: 'bool' }], - outputs: [], - gas: 40529, - }, - { - stateMutability: 'view', - type: 'function', - name: 'lp_token', - inputs: [], - outputs: [{ name: '', type: 'address' }], - gas: 3018, - }, - { - stateMutability: 'view', - type: 'function', - name: 'future_epoch_time', - inputs: [], - outputs: [{ name: '', type: 'uint256' }], - gas: 3048, - }, - { - stateMutability: 'view', - type: 'function', - name: 'balanceOf', - inputs: [{ name: 'arg0', type: 'address' }], - outputs: [{ name: '', type: 'uint256' }], - gas: 3293, - }, - { - stateMutability: 'view', - type: 'function', - name: 'totalSupply', - inputs: [], - outputs: [{ name: '', type: 'uint256' }], - gas: 3108, - }, - { - stateMutability: 'view', - type: 'function', - name: 'allowance', - inputs: [ - { name: 'arg0', type: 'address' }, - { name: 'arg1', type: 'address' }, - ], - outputs: [{ name: '', type: 'uint256' }], - gas: 3568, - }, - { - stateMutability: 'view', - type: 'function', - name: 'name', - inputs: [], - outputs: [{ name: '', type: 'string' }], - gas: 13398, - }, - { - stateMutability: 'view', - type: 'function', - name: 'symbol', - inputs: [], - outputs: [{ name: '', type: 'string' }], - gas: 11151, - }, - { - stateMutability: 'view', - type: 'function', - name: 'working_balances', - inputs: [{ name: 'arg0', type: 'address' }], - outputs: [{ name: '', type: 'uint256' }], - gas: 3443, - }, - { - stateMutability: 'view', - type: 'function', - name: 'working_supply', - inputs: [], - outputs: [{ name: '', type: 'uint256' }], - gas: 3258, - }, - { - stateMutability: 'view', - type: 'function', - name: 'period', - inputs: [], - outputs: [{ name: '', type: 'int128' }], - gas: 3288, - }, - { - stateMutability: 'view', - type: 'function', - name: 'period_timestamp', - inputs: [{ name: 'arg0', type: 'uint256' }], - outputs: [{ name: '', type: 'uint256' }], - gas: 3363, - }, - { - stateMutability: 'view', - type: 'function', - name: 'integrate_inv_supply', - inputs: [{ name: 'arg0', type: 'uint256' }], - outputs: [{ name: '', type: 'uint256' }], - gas: 3393, - }, - { - stateMutability: 'view', - type: 'function', - name: 'integrate_inv_supply_of', - inputs: [{ name: 'arg0', type: 'address' }], - outputs: [{ name: '', type: 'uint256' }], - gas: 3593, - }, - { - stateMutability: 'view', - type: 'function', - name: 'integrate_checkpoint_of', - inputs: [{ name: 'arg0', type: 'address' }], - outputs: [{ name: '', type: 'uint256' }], - gas: 3623, - }, - { - stateMutability: 'view', - type: 'function', - name: 'integrate_fraction', - inputs: [{ name: 'arg0', type: 'address' }], - outputs: [{ name: '', type: 'uint256' }], - gas: 3653, - }, - { - stateMutability: 'view', - type: 'function', - name: 'inflation_rate', - inputs: [], - outputs: [{ name: '', type: 'uint256' }], - gas: 3468, - }, - { - stateMutability: 'view', - type: 'function', - name: 'reward_count', - inputs: [], - outputs: [{ name: '', type: 'uint256' }], - gas: 3498, - }, - { - stateMutability: 'view', - type: 'function', - name: 'reward_tokens', - inputs: [{ name: 'arg0', type: 'uint256' }], - outputs: [{ name: '', type: 'address' }], - gas: 3573, - }, - { - stateMutability: 'view', - type: 'function', - name: 'reward_data', - inputs: [{ name: 'arg0', type: 'address' }], - outputs: [ - { name: 'token', type: 'address' }, - { name: 'distributor', type: 'address' }, - { name: 'period_finish', type: 'uint256' }, - { name: 'rate', type: 'uint256' }, - { name: 'last_update', type: 'uint256' }, - { name: 'integral', type: 'uint256' }, - ], - gas: 15003, - }, - { - stateMutability: 'view', - type: 'function', - name: 'rewards_receiver', - inputs: [{ name: 'arg0', type: 'address' }], - outputs: [{ name: '', type: 'address' }], - gas: 3803, - }, - { - stateMutability: 'view', - type: 'function', - name: 'reward_integral_for', - inputs: [ - { name: 'arg0', type: 'address' }, - { name: 'arg1', type: 'address' }, - ], - outputs: [{ name: '', type: 'uint256' }], - gas: 4048, - }, - { - stateMutability: 'view', - type: 'function', - name: 'is_killed', - inputs: [], - outputs: [{ name: '', type: 'bool' }], - gas: 3648, - }, - { - stateMutability: 'view', - type: 'function', - name: 'factory', - inputs: [], - outputs: [{ name: '', type: 'address' }], - gas: 3678, - }, -] as const; diff --git a/libs/shared/contracts/src/abis/CurveOUSDMetaPool.ts b/libs/shared/contracts/src/abis/CurveOUSDMetaPool.ts deleted file mode 100644 index 68ef1f520..000000000 --- a/libs/shared/contracts/src/abis/CurveOUSDMetaPool.ts +++ /dev/null @@ -1,653 +0,0 @@ -// DO NOT EDIT - GENERATED -export const CurveOUSDMetaPoolABI = [ - { - name: 'Transfer', - inputs: [ - { type: 'address', name: 'sender', indexed: true }, - { type: 'address', name: 'receiver', indexed: true }, - { type: 'uint256', name: 'value', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'Approval', - inputs: [ - { type: 'address', name: 'owner', indexed: true }, - { type: 'address', name: 'spender', indexed: true }, - { type: 'uint256', name: 'value', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'TokenExchange', - inputs: [ - { type: 'address', name: 'buyer', indexed: true }, - { type: 'int128', name: 'sold_id', indexed: false }, - { type: 'uint256', name: 'tokens_sold', indexed: false }, - { type: 'int128', name: 'bought_id', indexed: false }, - { type: 'uint256', name: 'tokens_bought', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'TokenExchangeUnderlying', - inputs: [ - { type: 'address', name: 'buyer', indexed: true }, - { type: 'int128', name: 'sold_id', indexed: false }, - { type: 'uint256', name: 'tokens_sold', indexed: false }, - { type: 'int128', name: 'bought_id', indexed: false }, - { type: 'uint256', name: 'tokens_bought', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'AddLiquidity', - inputs: [ - { type: 'address', name: 'provider', indexed: true }, - { type: 'uint256[2]', name: 'token_amounts', indexed: false }, - { type: 'uint256[2]', name: 'fees', indexed: false }, - { type: 'uint256', name: 'invariant', indexed: false }, - { type: 'uint256', name: 'token_supply', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'RemoveLiquidity', - inputs: [ - { type: 'address', name: 'provider', indexed: true }, - { type: 'uint256[2]', name: 'token_amounts', indexed: false }, - { type: 'uint256[2]', name: 'fees', indexed: false }, - { type: 'uint256', name: 'token_supply', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'RemoveLiquidityOne', - inputs: [ - { type: 'address', name: 'provider', indexed: true }, - { type: 'uint256', name: 'token_amount', indexed: false }, - { type: 'uint256', name: 'coin_amount', indexed: false }, - { type: 'uint256', name: 'token_supply', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'RemoveLiquidityImbalance', - inputs: [ - { type: 'address', name: 'provider', indexed: true }, - { type: 'uint256[2]', name: 'token_amounts', indexed: false }, - { type: 'uint256[2]', name: 'fees', indexed: false }, - { type: 'uint256', name: 'invariant', indexed: false }, - { type: 'uint256', name: 'token_supply', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'CommitNewAdmin', - inputs: [ - { type: 'uint256', name: 'deadline', indexed: true }, - { type: 'address', name: 'admin', indexed: true }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'NewAdmin', - inputs: [{ type: 'address', name: 'admin', indexed: true }], - anonymous: false, - type: 'event', - }, - { - name: 'CommitNewFee', - inputs: [ - { type: 'uint256', name: 'deadline', indexed: true }, - { type: 'uint256', name: 'fee', indexed: false }, - { type: 'uint256', name: 'admin_fee', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'NewFee', - inputs: [ - { type: 'uint256', name: 'fee', indexed: false }, - { type: 'uint256', name: 'admin_fee', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'RampA', - inputs: [ - { type: 'uint256', name: 'old_A', indexed: false }, - { type: 'uint256', name: 'new_A', indexed: false }, - { type: 'uint256', name: 'initial_time', indexed: false }, - { type: 'uint256', name: 'future_time', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - name: 'StopRampA', - inputs: [ - { type: 'uint256', name: 'A', indexed: false }, - { type: 'uint256', name: 't', indexed: false }, - ], - anonymous: false, - type: 'event', - }, - { - outputs: [], - inputs: [], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - name: 'initialize', - outputs: [], - inputs: [ - { type: 'string', name: '_name' }, - { type: 'string', name: '_symbol' }, - { type: 'address', name: '_coin' }, - { type: 'uint256', name: '_decimals' }, - { type: 'uint256', name: '_A' }, - { type: 'uint256', name: '_fee' }, - { type: 'address', name: '_admin' }, - ], - stateMutability: 'nonpayable', - type: 'function', - gas: 470049, - }, - { - name: 'decimals', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 291, - }, - { - name: 'transfer', - outputs: [{ type: 'bool', name: '' }], - inputs: [ - { type: 'address', name: '_to' }, - { type: 'uint256', name: '_value' }, - ], - stateMutability: 'nonpayable', - type: 'function', - gas: 75402, - }, - { - name: 'transferFrom', - outputs: [{ type: 'bool', name: '' }], - inputs: [ - { type: 'address', name: '_from' }, - { type: 'address', name: '_to' }, - { type: 'uint256', name: '_value' }, - ], - stateMutability: 'nonpayable', - type: 'function', - gas: 112037, - }, - { - name: 'approve', - outputs: [{ type: 'bool', name: '' }], - inputs: [ - { type: 'address', name: '_spender' }, - { type: 'uint256', name: '_value' }, - ], - stateMutability: 'nonpayable', - type: 'function', - gas: 37854, - }, - { - name: 'get_previous_balances', - outputs: [{ type: 'uint256[2]', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 2254, - }, - { - name: 'get_balances', - outputs: [{ type: 'uint256[2]', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 2284, - }, - { - name: 'get_twap_balances', - outputs: [{ type: 'uint256[2]', name: '' }], - inputs: [ - { type: 'uint256[2]', name: '_first_balances' }, - { type: 'uint256[2]', name: '_last_balances' }, - { type: 'uint256', name: '_time_elapsed' }, - ], - stateMutability: 'view', - type: 'function', - gas: 1522, - }, - { - name: 'get_price_cumulative_last', - outputs: [{ type: 'uint256[2]', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 2344, - }, - { - name: 'admin_fee', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 621, - }, - { - name: 'A', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 5859, - }, - { - name: 'A_precise', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 5821, - }, - { - name: 'get_virtual_price', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 1011891, - }, - { - name: 'calc_token_amount', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'uint256[2]', name: '_amounts' }, - { type: 'bool', name: '_is_deposit' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - name: 'calc_token_amount', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'uint256[2]', name: '_amounts' }, - { type: 'bool', name: '_is_deposit' }, - { type: 'bool', name: '_previous' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - name: 'add_liquidity', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'uint256[2]', name: '_amounts' }, - { type: 'uint256', name: '_min_mint_amount' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'add_liquidity', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'uint256[2]', name: '_amounts' }, - { type: 'uint256', name: '_min_mint_amount' }, - { type: 'address', name: '_receiver' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'get_dy', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: 'dx' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - name: 'get_dy', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256[2]', name: '_balances' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - name: 'get_dy_underlying', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: 'dx' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - name: 'get_dy_underlying', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256[2]', name: '_balances' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - name: 'exchange', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256', name: 'min_dy' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'exchange', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256', name: 'min_dy' }, - { type: 'address', name: '_receiver' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'exchange_underlying', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256', name: 'min_dy' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'exchange_underlying', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'int128', name: 'i' }, - { type: 'int128', name: 'j' }, - { type: 'uint256', name: 'dx' }, - { type: 'uint256', name: 'min_dy' }, - { type: 'address', name: '_receiver' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'remove_liquidity', - outputs: [{ type: 'uint256[2]', name: '' }], - inputs: [ - { type: 'uint256', name: '_burn_amount' }, - { type: 'uint256[2]', name: '_min_amounts' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'remove_liquidity', - outputs: [{ type: 'uint256[2]', name: '' }], - inputs: [ - { type: 'uint256', name: '_burn_amount' }, - { type: 'uint256[2]', name: '_min_amounts' }, - { type: 'address', name: '_receiver' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'remove_liquidity_imbalance', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'uint256[2]', name: '_amounts' }, - { type: 'uint256', name: '_max_burn_amount' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'remove_liquidity_imbalance', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'uint256[2]', name: '_amounts' }, - { type: 'uint256', name: '_max_burn_amount' }, - { type: 'address', name: '_receiver' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'calc_withdraw_one_coin', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'uint256', name: '_burn_amount' }, - { type: 'int128', name: 'i' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - name: 'calc_withdraw_one_coin', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'uint256', name: '_burn_amount' }, - { type: 'int128', name: 'i' }, - { type: 'bool', name: '_previous' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - name: 'remove_liquidity_one_coin', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'uint256', name: '_burn_amount' }, - { type: 'int128', name: 'i' }, - { type: 'uint256', name: '_min_received' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'remove_liquidity_one_coin', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'uint256', name: '_burn_amount' }, - { type: 'int128', name: 'i' }, - { type: 'uint256', name: '_min_received' }, - { type: 'address', name: '_receiver' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - name: 'ramp_A', - outputs: [], - inputs: [ - { type: 'uint256', name: '_future_A' }, - { type: 'uint256', name: '_future_time' }, - ], - stateMutability: 'nonpayable', - type: 'function', - gas: 152464, - }, - { - name: 'stop_ramp_A', - outputs: [], - inputs: [], - stateMutability: 'nonpayable', - type: 'function', - gas: 149225, - }, - { - name: 'admin_balances', - outputs: [{ type: 'uint256', name: '' }], - inputs: [{ type: 'uint256', name: 'i' }], - stateMutability: 'view', - type: 'function', - gas: 3601, - }, - { - name: 'withdraw_admin_fees', - outputs: [], - inputs: [], - stateMutability: 'nonpayable', - type: 'function', - gas: 11347, - }, - { - name: 'admin', - outputs: [{ type: 'address', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 2141, - }, - { - name: 'coins', - outputs: [{ type: 'address', name: '' }], - inputs: [{ type: 'uint256', name: 'arg0' }], - stateMutability: 'view', - type: 'function', - gas: 2280, - }, - { - name: 'balances', - outputs: [{ type: 'uint256', name: '' }], - inputs: [{ type: 'uint256', name: 'arg0' }], - stateMutability: 'view', - type: 'function', - gas: 2310, - }, - { - name: 'fee', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 2231, - }, - { - name: 'block_timestamp_last', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 2261, - }, - { - name: 'initial_A', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 2291, - }, - { - name: 'future_A', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 2321, - }, - { - name: 'initial_A_time', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 2351, - }, - { - name: 'future_A_time', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 2381, - }, - { - name: 'name', - outputs: [{ type: 'string', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 8813, - }, - { - name: 'symbol', - outputs: [{ type: 'string', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 7866, - }, - { - name: 'balanceOf', - outputs: [{ type: 'uint256', name: '' }], - inputs: [{ type: 'address', name: 'arg0' }], - stateMutability: 'view', - type: 'function', - gas: 2686, - }, - { - name: 'allowance', - outputs: [{ type: 'uint256', name: '' }], - inputs: [ - { type: 'address', name: 'arg0' }, - { type: 'address', name: 'arg1' }, - ], - stateMutability: 'view', - type: 'function', - gas: 2931, - }, - { - name: 'totalSupply', - outputs: [{ type: 'uint256', name: '' }], - inputs: [], - stateMutability: 'view', - type: 'function', - gas: 2531, - }, -] as const; diff --git a/libs/shared/contracts/src/abis/CurveUSDCStrategy.ts b/libs/shared/contracts/src/abis/CurveUSDCStrategy.ts new file mode 100644 index 000000000..6cbc34a40 --- /dev/null +++ b/libs/shared/contracts/src/abis/CurveUSDCStrategy.ts @@ -0,0 +1,362 @@ +// DO NOT EDIT - GENERATED +export const CurveUSDCStrategyABI = [ + { + constant: false, + inputs: [], + name: 'collectRewardToken', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'governor', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'address', name: '_pToken', type: 'address' }, + ], + name: 'setPTokenAddress', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [{ internalType: 'address', name: '', type: 'address' }], + name: 'assetToPToken', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'uint256', name: '_amount', type: 'uint256' }, + ], + name: 'transferToken', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'rewardTokenAddress', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [], + name: 'liquidate', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_platformAddress', type: 'address' }, + { internalType: 'address', name: '_vaultAddress', type: 'address' }, + { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'address', name: '_pToken', type: 'address' }, + { internalType: 'address', name: '_crvGaugeAddress', type: 'address' }, + { internalType: 'address', name: '_crvMinterAddress', type: 'address' }, + ], + name: 'initialize', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'vaultAddress', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'uint256', name: '_amount', type: 'uint256' }, + ], + name: 'deposit', + outputs: [ + { internalType: 'uint256', name: 'amountDeposited', type: 'uint256' }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'rewardLiquidationThreshold', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [], + name: 'claimGovernance', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], + name: 'checkBalance', + outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_platformAddress', type: 'address' }, + { internalType: 'address', name: '_vaultAddress', type: 'address' }, + { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, + { internalType: 'address[]', name: '_assets', type: 'address[]' }, + { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, + ], + name: 'initialize', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, + ], + name: 'setRewardTokenAddress', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], + name: 'supportsAsset', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [], + name: 'safeApproveAllTokens', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'isGovernor', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [{ internalType: 'uint256', name: '_threshold', type: 'uint256' }], + name: 'setRewardLiquidationThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_newGovernor', type: 'address' }, + ], + name: 'transferGovernance', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_recipient', type: 'address' }, + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'uint256', name: '_amount', type: 'uint256' }, + ], + name: 'withdraw', + outputs: [ + { internalType: 'uint256', name: 'amountWithdrawn', type: 'uint256' }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'platformAddress', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'amount', + type: 'uint256', + }, + ], + name: 'RewardTokenCollected', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: '_asset', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: '_pToken', + type: 'address', + }, + ], + name: 'PTokenAdded', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: '_asset', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: '_pToken', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: '_amount', + type: 'uint256', + }, + ], + name: 'Deposit', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: '_asset', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: '_pToken', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: '_amount', + type: 'uint256', + }, + ], + name: 'Withdrawal', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, + ], + name: 'PendingGovernorshipTransfer', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, + ], + name: 'GovernorshipTransferred', + type: 'event', + }, +] as const; diff --git a/libs/shared/contracts/src/abis/CurveUSDCStrategyProxy.ts b/libs/shared/contracts/src/abis/CurveUSDCStrategyProxy.ts index 9d26adf1e..8c52c5394 100644 --- a/libs/shared/contracts/src/abis/CurveUSDCStrategyProxy.ts +++ b/libs/shared/contracts/src/abis/CurveUSDCStrategyProxy.ts @@ -1,3 +1,147 @@ // DO NOT EDIT - GENERATED -export const CurveUSDCStrategyProxyABI = - 'Contract source code not verified' as const; +export const CurveUSDCStrategyProxyABI = [ + { + constant: true, + inputs: [], + name: 'governor', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: 'newImplementation', type: 'address' }, + ], + name: 'upgradeTo', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, + ], + name: 'upgradeToAndCall', + outputs: [], + payable: true, + stateMutability: 'payable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'implementation', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [], + name: 'claimGovernance', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'isGovernor', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, + ], + name: 'initialize', + outputs: [], + payable: true, + stateMutability: 'payable', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_newGovernor', type: 'address' }, + ], + name: 'transferGovernance', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'admin', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { payable: true, stateMutability: 'payable', type: 'fallback' }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'implementation', + type: 'address', + }, + ], + name: 'Upgraded', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, + ], + name: 'PendingGovernorshipTransfer', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, + ], + name: 'GovernorshipTransferred', + type: 'event', + }, +] as const; diff --git a/libs/shared/contracts/src/abis/CurveUSDTStrategy.ts b/libs/shared/contracts/src/abis/CurveUSDTStrategy.ts new file mode 100644 index 000000000..66f2345f4 --- /dev/null +++ b/libs/shared/contracts/src/abis/CurveUSDTStrategy.ts @@ -0,0 +1,362 @@ +// DO NOT EDIT - GENERATED +export const CurveUSDTStrategyABI = [ + { + constant: false, + inputs: [], + name: 'collectRewardToken', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'governor', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'address', name: '_pToken', type: 'address' }, + ], + name: 'setPTokenAddress', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [{ internalType: 'address', name: '', type: 'address' }], + name: 'assetToPToken', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'uint256', name: '_amount', type: 'uint256' }, + ], + name: 'transferToken', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'rewardTokenAddress', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [], + name: 'liquidate', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_platformAddress', type: 'address' }, + { internalType: 'address', name: '_vaultAddress', type: 'address' }, + { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'address', name: '_pToken', type: 'address' }, + { internalType: 'address', name: '_crvGaugeAddress', type: 'address' }, + { internalType: 'address', name: '_crvMinterAddress', type: 'address' }, + ], + name: 'initialize', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'vaultAddress', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'uint256', name: '_amount', type: 'uint256' }, + ], + name: 'deposit', + outputs: [ + { internalType: 'uint256', name: 'amountDeposited', type: 'uint256' }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'rewardLiquidationThreshold', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [], + name: 'claimGovernance', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], + name: 'checkBalance', + outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_platformAddress', type: 'address' }, + { internalType: 'address', name: '_vaultAddress', type: 'address' }, + { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, + { internalType: 'address[]', name: '_assets', type: 'address[]' }, + { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, + ], + name: 'initialize', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, + ], + name: 'setRewardTokenAddress', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], + name: 'supportsAsset', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [], + name: 'safeApproveAllTokens', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'isGovernor', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [{ internalType: 'uint256', name: '_threshold', type: 'uint256' }], + name: 'setRewardLiquidationThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_newGovernor', type: 'address' }, + ], + name: 'transferGovernance', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_recipient', type: 'address' }, + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'uint256', name: '_amount', type: 'uint256' }, + ], + name: 'withdraw', + outputs: [ + { internalType: 'uint256', name: 'amountWithdrawn', type: 'uint256' }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'platformAddress', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'recipient', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'amount', + type: 'uint256', + }, + ], + name: 'RewardTokenCollected', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: '_asset', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: '_pToken', + type: 'address', + }, + ], + name: 'PTokenAdded', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: '_asset', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: '_pToken', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: '_amount', + type: 'uint256', + }, + ], + name: 'Deposit', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: '_asset', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: '_pToken', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: '_amount', + type: 'uint256', + }, + ], + name: 'Withdrawal', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, + ], + name: 'PendingGovernorshipTransfer', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, + ], + name: 'GovernorshipTransferred', + type: 'event', + }, +] as const; diff --git a/libs/shared/contracts/src/abis/CurveUSDTStrategyProxy.ts b/libs/shared/contracts/src/abis/CurveUSDTStrategyProxy.ts index d8bcad51a..6577219a4 100644 --- a/libs/shared/contracts/src/abis/CurveUSDTStrategyProxy.ts +++ b/libs/shared/contracts/src/abis/CurveUSDTStrategyProxy.ts @@ -1,14 +1,5 @@ // DO NOT EDIT - GENERATED export const CurveUSDTStrategyProxyABI = [ - { - constant: false, - inputs: [], - name: 'collectRewardToken', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, { constant: true, inputs: [], @@ -21,103 +12,35 @@ export const CurveUSDTStrategyProxyABI = [ { constant: false, inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'address', name: '_pToken', type: 'address' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'setPTokenAddress', + name: 'upgradeTo', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetToPToken', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, { constant: false, inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'transferToken', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'rewardTokenAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'liquidate', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'address', name: '_pToken', type: 'address' }, - { internalType: 'address', name: '_crvGaugeAddress', type: 'address' }, - { internalType: 'address', name: '_crvMinterAddress', type: 'address' }, - ], - name: 'initialize', + name: 'upgradeToAndCall', outputs: [], - payable: false, - stateMutability: 'nonpayable', + payable: true, + stateMutability: 'payable', type: 'function', }, { constant: true, inputs: [], - name: 'vaultAddress', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], payable: false, stateMutability: 'view', type: 'function', }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'deposit', - outputs: [ - { internalType: 'uint256', name: 'amountDeposited', type: 'uint256' }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'rewardLiquidationThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, { constant: false, inputs: [], @@ -127,59 +50,6 @@ export const CurveUSDTStrategyProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, - ], - name: 'initialize', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, - ], - name: 'setRewardTokenAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'supportsAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'safeApproveAllTokens', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, { constant: true, inputs: [], @@ -191,11 +61,15 @@ export const CurveUSDTStrategyProxyABI = [ }, { constant: false, - inputs: [{ internalType: 'uint256', name: '_threshold', type: 'uint256' }], - name: 'setRewardLiquidationThreshold', + inputs: [ + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, + ], + name: 'initialize', outputs: [], - payable: false, - stateMutability: 'nonpayable', + payable: true, + stateMutability: 'payable', type: 'function', }, { @@ -209,116 +83,27 @@ export const CurveUSDTStrategyProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_recipient', type: 'address' }, - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'withdraw', - outputs: [ - { internalType: 'uint256', name: 'amountWithdrawn', type: 'uint256' }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, { constant: true, inputs: [], - name: 'platformAddress', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], payable: false, stateMutability: 'view', type: 'function', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'RewardTokenCollected', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'Deposit', - type: 'event', - }, + { payable: true, stateMutability: 'payable', type: 'fallback' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', + name: 'implementation', type: 'address', }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, ], - name: 'Withdrawal', + name: 'Upgraded', type: 'event', }, { diff --git a/libs/shared/contracts/src/abis/DAI.ts b/libs/shared/contracts/src/abis/DAI.ts deleted file mode 100644 index 89baf1423..000000000 --- a/libs/shared/contracts/src/abis/DAI.ts +++ /dev/null @@ -1,277 +0,0 @@ -// DO NOT EDIT - GENERATED -export const DAIABI = [ - { - inputs: [{ internalType: 'uint256', name: 'chainId_', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'src', type: 'address' }, - { indexed: true, internalType: 'address', name: 'guy', type: 'address' }, - { indexed: false, internalType: 'uint256', name: 'wad', type: 'uint256' }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: true, - inputs: [ - { indexed: true, internalType: 'bytes4', name: 'sig', type: 'bytes4' }, - { indexed: true, internalType: 'address', name: 'usr', type: 'address' }, - { indexed: true, internalType: 'bytes32', name: 'arg1', type: 'bytes32' }, - { indexed: true, internalType: 'bytes32', name: 'arg2', type: 'bytes32' }, - { indexed: false, internalType: 'bytes', name: 'data', type: 'bytes' }, - ], - name: 'LogNote', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'src', type: 'address' }, - { indexed: true, internalType: 'address', name: 'dst', type: 'address' }, - { indexed: false, internalType: 'uint256', name: 'wad', type: 'uint256' }, - ], - name: 'Transfer', - type: 'event', - }, - { - constant: true, - inputs: [], - name: 'DOMAIN_SEPARATOR', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'PERMIT_TYPEHASH', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { internalType: 'address', name: '', type: 'address' }, - { internalType: 'address', name: '', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'usr', type: 'address' }, - { internalType: 'uint256', name: 'wad', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'usr', type: 'address' }, - { internalType: 'uint256', name: 'wad', type: 'uint256' }, - ], - name: 'burn', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'guy', type: 'address' }], - name: 'deny', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'usr', type: 'address' }, - { internalType: 'uint256', name: 'wad', type: 'uint256' }, - ], - name: 'mint', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'src', type: 'address' }, - { internalType: 'address', name: 'dst', type: 'address' }, - { internalType: 'uint256', name: 'wad', type: 'uint256' }, - ], - name: 'move', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'nonces', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'holder', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'nonce', type: 'uint256' }, - { internalType: 'uint256', name: 'expiry', type: 'uint256' }, - { internalType: 'bool', name: 'allowed', type: 'bool' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'permit', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'usr', type: 'address' }, - { internalType: 'uint256', name: 'wad', type: 'uint256' }, - ], - name: 'pull', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'usr', type: 'address' }, - { internalType: 'uint256', name: 'wad', type: 'uint256' }, - ], - name: 'push', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'guy', type: 'address' }], - name: 'rely', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'dst', type: 'address' }, - { internalType: 'uint256', name: 'wad', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'src', type: 'address' }, - { internalType: 'address', name: 'dst', type: 'address' }, - { internalType: 'uint256', name: 'wad', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'version', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'wards', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/DripperProxy.ts b/libs/shared/contracts/src/abis/DripperProxy.ts index 9d5146216..3469f9c20 100644 --- a/libs/shared/contracts/src/abis/DripperProxy.ts +++ b/libs/shared/contracts/src/abis/DripperProxy.ts @@ -1,13 +1,5 @@ // DO NOT EDIT - GENERATED export const DripperProxyABI = [ - { - inputs: [ - { internalType: 'address', name: '_vault', type: 'address' }, - { internalType: 'address', name: '_token', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, { anonymous: false, inputs: [ @@ -47,55 +39,56 @@ export const DripperProxyABI = [ type: 'event', }, { - inputs: [], - name: 'availableFunds', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'claimGovernance', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'implementation', + type: 'address', + }, + ], + name: 'Upgraded', + type: 'event', }, + { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: 'collect', - outputs: [], - stateMutability: 'nonpayable', + name: 'admin', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + stateMutability: 'view', type: 'function', }, { inputs: [], - name: 'collectAndRebase', + name: 'claimGovernance', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], - name: 'drip', - outputs: [ - { internalType: 'uint64', name: 'lastCollect', type: 'uint64' }, - { internalType: 'uint192', name: 'perBlock', type: 'uint192' }, - ], + name: 'governor', + outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [], - name: 'dripDuration', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + name: 'implementation', + outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { - inputs: [], - name: 'governor', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', + inputs: [ + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, + ], + name: 'initialize', + outputs: [], + stateMutability: 'payable', type: 'function', }, { @@ -107,30 +100,30 @@ export const DripperProxyABI = [ }, { inputs: [ - { internalType: 'uint256', name: '_durationSeconds', type: 'uint256' }, + { internalType: 'address', name: '_newGovernor', type: 'address' }, ], - name: 'setDripDuration', + name: 'transferGovernance', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ - { internalType: 'address', name: '_newGovernor', type: 'address' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'transferGovernance', + name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'transferToken', + name: 'upgradeToAndCall', outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/FraxETHStrategyProxy.ts b/libs/shared/contracts/src/abis/FraxETHStrategyProxy.ts index 1008600af..2b70da38f 100644 --- a/libs/shared/contracts/src/abis/FraxETHStrategyProxy.ts +++ b/libs/shared/contracts/src/abis/FraxETHStrategyProxy.ts @@ -1,30 +1,5 @@ // DO NOT EDIT - GENERATED export const FraxETHStrategyProxyABI = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'Deposit', - type: 'event', - }, { anonymous: false, inputs: [ @@ -44,63 +19,6 @@ export const FraxETHStrategyProxyABI = [ name: 'GovernorshipTransferred', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_oldHarvesterAddress', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_newHarvesterAddress', - type: 'address', - }, - ], - name: 'HarvesterAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenRemoved', - type: 'event', - }, { anonymous: false, inputs: [ @@ -120,103 +38,27 @@ export const FraxETHStrategyProxyABI = [ name: 'PendingGovernorshipTransfer', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address[]', - name: '_oldAddresses', - type: 'address[]', - }, - { - indexed: false, - internalType: 'address[]', - name: '_newAddresses', - type: 'address[]', - }, - ], - name: 'RewardTokenAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'rewardToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'RewardTokenCollected', - type: 'event', - }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', + name: 'implementation', type: 'address', }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, ], - name: 'Withdrawal', + name: 'Upgraded', type: 'event', }, + { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: '_deprecated_rewardLiquidationThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: '_deprecated_rewardTokenAddress', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetToPToken', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'claimGovernance', @@ -224,46 +66,6 @@ export const FraxETHStrategyProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'collectRewardTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'deposit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'depositAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'fraxETHMinter', - outputs: [ - { internalType: 'contract IFraxETHMinter', name: '', type: 'address' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getRewardTokenAddresses', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'governor', @@ -273,26 +75,20 @@ export const FraxETHStrategyProxyABI = [ }, { inputs: [], - name: 'harvesterAddress', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], name: 'initialize', outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, { @@ -302,73 +98,6 @@ export const FraxETHStrategyProxyABI = [ stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: 'platformAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_assetIndex', type: 'uint256' }], - name: 'removePToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'rewardTokenAddresses', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'safeApproveAllTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_harvesterAddress', type: 'address' }, - ], - name: 'setHarvesterAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'address', name: '_pToken', type: 'address' }, - ], - name: 'setPTokenAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - ], - name: 'setRewardTokenAddresses', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'supportsAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ { internalType: 'address', name: '_newGovernor', type: 'address' }, @@ -380,45 +109,21 @@ export const FraxETHStrategyProxyABI = [ }, { inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'transferToken', + name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'vaultAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'weth', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ - { internalType: 'address', name: '_recipient', type: 'address' }, - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'withdraw', + name: 'upgradeToAndCall', outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'withdrawAll', - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, - { stateMutability: 'payable', type: 'receive' }, ] as const; diff --git a/libs/shared/contracts/src/abis/HarvesterProxy.ts b/libs/shared/contracts/src/abis/HarvesterProxy.ts index c895e53aa..2751a8d9e 100644 --- a/libs/shared/contracts/src/abis/HarvesterProxy.ts +++ b/libs/shared/contracts/src/abis/HarvesterProxy.ts @@ -1,13 +1,5 @@ // DO NOT EDIT - GENERATED export const HarvesterProxyABI = [ - { - inputs: [ - { internalType: 'address', name: '_vault', type: 'address' }, - { internalType: 'address', name: '_usdtAddress', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, { anonymous: false, inputs: [ @@ -50,226 +42,62 @@ export const HarvesterProxyABI = [ anonymous: false, inputs: [ { - indexed: false, - internalType: 'address', - name: '_tokenAddress', - type: 'address', - }, - { - indexed: false, - internalType: 'uint16', - name: '_allowedSlippageBps', - type: 'uint16', - }, - { - indexed: false, - internalType: 'uint16', - name: '_harvestRewardBps', - type: 'uint16', - }, - { - indexed: false, - internalType: 'address', - name: '_uniswapV2CompatibleAddr', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_liquidationLimit', - type: 'uint256', - }, - { - indexed: false, - internalType: 'bool', - name: '_doSwapRewardToken', - type: 'bool', - }, - ], - name: 'RewardTokenConfigUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_address', - type: 'address', - }, - { - indexed: false, - internalType: 'bool', - name: '_isSupported', - type: 'bool', - }, - ], - name: 'SupportedStrategyUpdate', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, + indexed: true, internalType: 'address', - name: '_address', + name: 'implementation', type: 'address', }, ], - name: 'UniswapUpdated', + name: 'Upgraded', type: 'event', }, + { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: 'claimGovernance', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'governor', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [ - { internalType: 'address', name: '_strategyAddr', type: 'address' }, - ], - name: 'harvest', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'harvest', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, { inputs: [], - name: 'harvestAndSwap', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_strategyAddr', type: 'address' }, - ], - name: 'harvestAndSwap', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_strategyAddr', type: 'address' }, - { internalType: 'address', name: '_rewardTo', type: 'address' }, - ], - name: 'harvestAndSwap', + name: 'claimGovernance', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], - name: 'isGovernor', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + name: 'governor', + outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [], - name: 'rewardProceedsAddress', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'rewardTokenConfigs', - outputs: [ - { internalType: 'uint16', name: 'allowedSlippageBps', type: 'uint16' }, - { internalType: 'uint16', name: 'harvestRewardBps', type: 'uint16' }, - { - internalType: 'address', - name: 'uniswapV2CompatibleAddr', - type: 'address', - }, - { internalType: 'bool', name: 'doSwapRewardToken', type: 'bool' }, - { internalType: 'uint256', name: 'liquidationLimit', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_tokenAddress', type: 'address' }, - { internalType: 'uint16', name: '_allowedSlippageBps', type: 'uint16' }, - { internalType: 'uint16', name: '_harvestRewardBps', type: 'uint16' }, - { - internalType: 'address', - name: '_uniswapV2CompatibleAddr', - type: 'address', - }, - { internalType: 'uint256', name: '_liquidationLimit', type: 'uint256' }, - { internalType: 'bool', name: '_doSwapRewardToken', type: 'bool' }, - ], - name: 'setRewardTokenConfig', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_rewardProceedsAddress', - type: 'address', - }, - ], - name: 'setRewardsProceedsAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, { inputs: [ - { internalType: 'address', name: '_strategyAddress', type: 'address' }, - { internalType: 'bool', name: '_isSupported', type: 'bool' }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], - name: 'setSupportedStrategy', + name: 'initialize', outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'supportedStrategies', + inputs: [], + name: 'isGovernor', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: 'swap', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_swapToken', type: 'address' }], - name: 'swapRewardToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, { inputs: [ { internalType: 'address', name: '_newGovernor', type: 'address' }, @@ -281,26 +109,21 @@ export const HarvesterProxyABI = [ }, { inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'transferToken', + name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { - inputs: [], - name: 'usdtAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'vaultAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', + inputs: [ + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, + ], + name: 'upgradeToAndCall', + outputs: [], + stateMutability: 'payable', type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/MandatoryLockupDistributor.ts b/libs/shared/contracts/src/abis/MandatoryLockupDistributor.ts deleted file mode 100644 index 7fde13f26..000000000 --- a/libs/shared/contracts/src/abis/MandatoryLockupDistributor.ts +++ /dev/null @@ -1,116 +0,0 @@ -// DO NOT EDIT - GENERATED -export const MandatoryLockupDistributorABI = [ - { - inputs: [ - { internalType: 'address', name: '_token', type: 'address' }, - { internalType: 'bytes32', name: '_merkleRoot', type: 'bytes32' }, - { internalType: 'address', name: '_stakingContract', type: 'address' }, - { internalType: 'uint256', name: '_endBlock', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'index', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'account', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Claimed', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'OGVBurned', - type: 'event', - }, - { - inputs: [], - name: 'burnRemainingOGV', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: '_index', type: 'uint256' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - { internalType: 'bytes32[]', name: '_merkleProof', type: 'bytes32[]' }, - ], - name: 'claim', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'endBlock', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_index', type: 'uint256' }], - name: 'isClaimed', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: '_index', type: 'uint256' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - { internalType: 'address', name: '_account', type: 'address' }, - { internalType: 'bytes32[]', name: '_merkleProof', type: 'bytes32[]' }, - ], - name: 'isProofValid', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'merkleRoot', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'stakingContract', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'token', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/MixOracle.ts b/libs/shared/contracts/src/abis/MixOracle.ts index 0eb0ab64c..93ca57cc8 100644 --- a/libs/shared/contracts/src/abis/MixOracle.ts +++ b/libs/shared/contracts/src/abis/MixOracle.ts @@ -10,12 +10,12 @@ export const MixOracleABI = [ type: 'function', }, { - constant: false, + constant: true, inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], name: 'priceMin', outputs: [{ internalType: 'uint256', name: 'price', type: 'uint256' }], payable: false, - stateMutability: 'nonpayable', + stateMutability: 'view', type: 'function', }, { @@ -27,11 +27,20 @@ export const MixOracleABI = [ stateMutability: 'view', type: 'function', }, + { + constant: true, + inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], + name: 'getTokenUSDOraclesLength', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, { constant: false, inputs: [ - { internalType: 'uint256', name: '_maxDrift', type: 'uint256' }, { internalType: 'uint256', name: '_minDrift', type: 'uint256' }, + { internalType: 'uint256', name: '_maxDrift', type: 'uint256' }, ], name: 'setMinMaxDrift', outputs: [], @@ -58,12 +67,21 @@ export const MixOracleABI = [ type: 'function', }, { - constant: false, + constant: true, + inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], + name: 'getTokenETHOraclesLength', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], name: 'priceMax', outputs: [{ internalType: 'uint256', name: 'price', type: 'uint256' }], payable: false, - stateMutability: 'nonpayable', + stateMutability: 'view', type: 'function', }, { @@ -79,6 +97,18 @@ export const MixOracleABI = [ stateMutability: 'nonpayable', type: 'function', }, + { + constant: true, + inputs: [ + { internalType: 'string', name: 'symbol', type: 'string' }, + { internalType: 'uint256', name: 'idx', type: 'uint256' }, + ], + name: 'getTokenETHOracle', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, { constant: true, inputs: [], @@ -117,6 +147,18 @@ export const MixOracleABI = [ stateMutability: 'nonpayable', type: 'function', }, + { + constant: true, + inputs: [ + { internalType: 'string', name: 'symbol', type: 'string' }, + { internalType: 'uint256', name: 'idx', type: 'uint256' }, + ], + name: 'getTokenUSDOracle', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, { constant: true, inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], @@ -135,6 +177,76 @@ export const MixOracleABI = [ stateMutability: 'nonpayable', type: 'constructor', }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: '_minDrift', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: '_maxDrift', + type: 'uint256', + }, + ], + name: 'DriftsUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: '_oracle', + type: 'address', + }, + ], + name: 'EthUsdOracleRegistered', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: '_oracle', + type: 'address', + }, + ], + name: 'EthUsdOracleDeregistered', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'string', + name: 'symbol', + type: 'string', + }, + { + indexed: false, + internalType: 'address[]', + name: 'ethOracles', + type: 'address[]', + }, + { + indexed: false, + internalType: 'address[]', + name: 'usdOracles', + type: 'address[]', + }, + ], + name: 'TokenOracleRegistered', + type: 'event', + }, { anonymous: false, inputs: [ diff --git a/libs/shared/contracts/src/abis/MorphoAaveStrategyProxy.ts b/libs/shared/contracts/src/abis/MorphoAaveStrategyProxy.ts index c7c88e4be..4597bc933 100644 --- a/libs/shared/contracts/src/abis/MorphoAaveStrategyProxy.ts +++ b/libs/shared/contracts/src/abis/MorphoAaveStrategyProxy.ts @@ -1,30 +1,5 @@ // DO NOT EDIT - GENERATED export const MorphoAaveStrategyProxyABI = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'Deposit', - type: 'event', - }, { anonymous: false, inputs: [ @@ -44,63 +19,6 @@ export const MorphoAaveStrategyProxyABI = [ name: 'GovernorshipTransferred', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_oldHarvesterAddress', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_newHarvesterAddress', - type: 'address', - }, - ], - name: 'HarvesterAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenRemoved', - type: 'event', - }, { anonymous: false, inputs: [ @@ -120,117 +38,27 @@ export const MorphoAaveStrategyProxyABI = [ name: 'PendingGovernorshipTransfer', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address[]', - name: '_oldAddresses', - type: 'address[]', - }, - { - indexed: false, - internalType: 'address[]', - name: '_newAddresses', - type: 'address[]', - }, - ], - name: 'RewardTokenAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'rewardToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'RewardTokenCollected', - type: 'event', - }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', + name: 'implementation', type: 'address', }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, ], - name: 'Withdrawal', + name: 'Upgraded', type: 'event', }, + { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: 'LENS', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'MORPHO', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: '_deprecated_rewardLiquidationThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: '_deprecated_rewardTokenAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetToPToken', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'claimGovernance', @@ -238,44 +66,6 @@ export const MorphoAaveStrategyProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'collectRewardTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'deposit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'depositAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'getPendingRewards', - outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getRewardTokenAddresses', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'governor', @@ -285,42 +75,20 @@ export const MorphoAaveStrategyProxyABI = [ }, { inputs: [], - name: 'harvesterAddress', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [ - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], name: 'initialize', outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, { @@ -330,73 +98,6 @@ export const MorphoAaveStrategyProxyABI = [ stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: 'platformAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_assetIndex', type: 'uint256' }], - name: 'removePToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'rewardTokenAddresses', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'safeApproveAllTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_harvesterAddress', type: 'address' }, - ], - name: 'setHarvesterAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'address', name: '_pToken', type: 'address' }, - ], - name: 'setPTokenAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - ], - name: 'setRewardTokenAddresses', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'supportsAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ { internalType: 'address', name: '_newGovernor', type: 'address' }, @@ -408,37 +109,21 @@ export const MorphoAaveStrategyProxyABI = [ }, { inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'transferToken', + name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'vaultAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ - { internalType: 'address', name: '_recipient', type: 'address' }, - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'withdraw', + name: 'upgradeToAndCall', outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'withdrawAll', - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/MorphoCompoundStrategyProxy.ts b/libs/shared/contracts/src/abis/MorphoCompoundStrategyProxy.ts index c5196123e..e684b6700 100644 --- a/libs/shared/contracts/src/abis/MorphoCompoundStrategyProxy.ts +++ b/libs/shared/contracts/src/abis/MorphoCompoundStrategyProxy.ts @@ -1,30 +1,5 @@ // DO NOT EDIT - GENERATED export const MorphoCompoundStrategyProxyABI = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'Deposit', - type: 'event', - }, { anonymous: false, inputs: [ @@ -44,63 +19,6 @@ export const MorphoCompoundStrategyProxyABI = [ name: 'GovernorshipTransferred', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_oldHarvesterAddress', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_newHarvesterAddress', - type: 'address', - }, - ], - name: 'HarvesterAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenRemoved', - type: 'event', - }, { anonymous: false, inputs: [ @@ -120,117 +38,27 @@ export const MorphoCompoundStrategyProxyABI = [ name: 'PendingGovernorshipTransfer', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address[]', - name: '_oldAddresses', - type: 'address[]', - }, - { - indexed: false, - internalType: 'address[]', - name: '_newAddresses', - type: 'address[]', - }, - ], - name: 'RewardTokenAddressesUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'rewardToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'RewardTokenCollected', - type: 'event', - }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', + name: 'implementation', type: 'address', }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, ], - name: 'Withdrawal', + name: 'Upgraded', type: 'event', }, + { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: 'LENS', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'MORPHO', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: '_deprecated_rewardLiquidationThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: '_deprecated_rewardTokenAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetToPToken', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'claimGovernance', @@ -238,44 +66,6 @@ export const MorphoCompoundStrategyProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'collectRewardTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'deposit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'depositAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'getPendingRewards', - outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getRewardTokenAddresses', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'governor', @@ -285,42 +75,20 @@ export const MorphoCompoundStrategyProxyABI = [ }, { inputs: [], - name: 'harvesterAddress', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [ - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], name: 'initialize', outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, { @@ -330,73 +98,6 @@ export const MorphoCompoundStrategyProxyABI = [ stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: 'platformAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_assetIndex', type: 'uint256' }], - name: 'removePToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'rewardTokenAddresses', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'safeApproveAllTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_harvesterAddress', type: 'address' }, - ], - name: 'setHarvesterAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'address', name: '_pToken', type: 'address' }, - ], - name: 'setPTokenAddress', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: '_rewardTokenAddresses', - type: 'address[]', - }, - ], - name: 'setRewardTokenAddresses', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'supportsAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ { internalType: 'address', name: '_newGovernor', type: 'address' }, @@ -408,37 +109,21 @@ export const MorphoCompoundStrategyProxyABI = [ }, { inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'transferToken', + name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'vaultAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ - { internalType: 'address', name: '_recipient', type: 'address' }, - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'withdraw', + name: 'upgradeToAndCall', outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'withdrawAll', - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/OETHProxy.ts b/libs/shared/contracts/src/abis/OETHProxy.ts index 66384660c..25d95f42d 100644 --- a/libs/shared/contracts/src/abis/OETHProxy.ts +++ b/libs/shared/contracts/src/abis/OETHProxy.ts @@ -1,30 +1,5 @@ // DO NOT EDIT - GENERATED export const OETHProxyABI = [ - { - 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: [ @@ -67,95 +42,23 @@ export const OETHProxyABI = [ anonymous: false, inputs: [ { - indexed: false, - internalType: 'uint256', - name: 'totalSupply', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'rebasingCredits', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'rebasingCreditsPerToken', - type: 'uint256', - }, - ], - name: 'TotalSupplyUpdatedHighres', - 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', + indexed: true, + internalType: 'address', + name: 'implementation', + type: 'address', }, ], - name: 'Transfer', + name: 'Upgraded', type: 'event', }, + { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: '_totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_owner', type: 'address' }, - { internalType: 'address', name: '_spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_spender', type: 'address' }, - { internalType: 'uint256', name: '_value', 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' }], + name: 'admin', + outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [ - { internalType: 'address', name: 'account', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'burn', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: '_newTotalSupply', type: 'uint256' }, - ], - name: 'changeSupply', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, { inputs: [], name: 'claimGovernance', @@ -163,75 +66,29 @@ export const OETHProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [{ internalType: 'address', name: '_account', type: 'address' }], - name: 'creditsBalanceOf', - outputs: [ - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_account', type: 'address' }], - name: 'creditsBalanceOfHighres', - outputs: [ - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'bool', name: '', type: 'bool' }, - ], - stateMutability: 'view', - type: 'function', - }, { inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], + name: 'governor', + outputs: [{ internalType: 'address', name: '', type: 'address' }], 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: [], - name: 'governor', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [ - { internalType: 'address', name: '_spender', type: 'address' }, - { internalType: 'uint256', name: '_addedValue', type: 'uint256' }, - ], - name: 'increaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'string', name: '_nameArg', type: 'string' }, - { internalType: 'string', name: '_symbolArg', type: 'string' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { - internalType: 'uint256', - name: '_initialCreditsPerToken', - type: 'uint256', - }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], name: 'initialize', outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, { @@ -241,144 +98,32 @@ export const OETHProxyABI = [ stateMutability: 'view', type: 'function', }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'isUpgraded', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ - { internalType: 'address', name: '_account', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: '_newGovernor', type: 'address' }, ], - name: 'mint', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'nonRebasingCreditsPerToken', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'nonRebasingSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rebaseOptIn', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'rebaseOptOut', + name: 'transferGovernance', outputs: [], stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'rebaseState', - outputs: [ - { internalType: 'enum OUSD.RebaseOptions', name: '', type: 'uint8' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rebasingCredits', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rebasingCreditsHighres', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rebasingCreditsPerToken', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rebasingCreditsPerTokenHighres', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_to', type: 'address' }, - { internalType: 'uint256', name: '_value', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, { inputs: [ - { internalType: 'address', name: '_from', type: 'address' }, - { internalType: 'address', name: '_to', type: 'address' }, - { internalType: 'uint256', name: '_value', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + name: 'upgradeTo', + outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ - { internalType: 'address', name: '_newGovernor', type: 'address' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'transferGovernance', + name: 'upgradeToAndCall', outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'vaultAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', + stateMutability: 'payable', type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/OETHVaultProxy.ts b/libs/shared/contracts/src/abis/OETHVaultProxy.ts index ace45eae9..a186461f0 100644 --- a/libs/shared/contracts/src/abis/OETHVaultProxy.ts +++ b/libs/shared/contracts/src/abis/OETHVaultProxy.ts @@ -1,77 +1,5 @@ // DO NOT EDIT - GENERATED export const OETHVaultProxyABI = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_threshold', - type: 'uint256', - }, - ], - name: 'AllocateThresholdUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_strategy', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'AssetAllocated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_strategy', - type: 'address', - }, - ], - name: 'AssetDefaultStrategyUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_asset', - type: 'address', - }, - ], - name: 'AssetSupported', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'CapitalPaused', type: 'event' }, - { anonymous: false, inputs: [], name: 'CapitalUnpaused', type: 'event' }, { anonymous: false, inputs: [ @@ -91,64 +19,6 @@ export const OETHVaultProxyABI = [ name: 'GovernorshipTransferred', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'maxSupplyDiff', - type: 'uint256', - }, - ], - name: 'MaxSupplyDiffChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_addr', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_threshold', - type: 'uint256', - }, - ], - name: 'NetOusdMintForStrategyThresholdChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_ousdMetaStrategy', - type: 'address', - }, - ], - name: 'OusdMetaStrategyUpdated', - type: 'event', - }, { anonymous: false, inputs: [ @@ -171,287 +41,24 @@ export const OETHVaultProxyABI = [ { anonymous: false, inputs: [ - { - indexed: false, - internalType: 'address', - name: '_priceProvider', - type: 'address', - }, - ], - name: 'PriceProviderUpdated', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'RebasePaused', type: 'event' }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_threshold', - type: 'uint256', - }, - ], - name: 'RebaseThresholdUpdated', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'RebaseUnpaused', type: 'event' }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_addr', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - ], - name: 'Redeem', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_redeemFeeBps', - type: 'uint256', - }, - ], - name: 'RedeemFeeUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_address', - type: 'address', - }, - ], - name: 'StrategistUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_addr', - type: 'address', - }, - ], - name: 'StrategyApproved', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_addr', - type: 'address', - }, - ], - name: 'StrategyRemoved', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_basis', - type: 'uint256', - }, - ], - name: 'SwapAllowedUndervalueChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_basis', - type: 'uint256', - }, - ], - name: 'SwapSlippageChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_fromAsset', - type: 'address', - }, { indexed: true, internalType: 'address', - name: '_toAsset', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromAssetAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_toAssetAmount', - type: 'uint256', - }, - ], - name: 'Swapped', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_address', - type: 'address', - }, - ], - name: 'SwapperChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_address', + name: 'implementation', type: 'address', }, ], - name: 'TrusteeAddressChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_basis', - type: 'uint256', - }, - ], - name: 'TrusteeFeeBpsChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_vaultBuffer', - type: 'uint256', - }, - ], - name: 'VaultBufferUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, internalType: 'address', name: '_to', type: 'address' }, - { - indexed: false, - internalType: 'uint256', - name: '_yield', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fee', - type: 'uint256', - }, - ], - name: 'YieldDistribution', + name: 'Upgraded', type: 'event', }, { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: 'allocate', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetDefaultStrategies', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: 'autoAllocateThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'burnForStrategy', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'calculateRedeemOutputs', - outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'capitalPaused', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'claimGovernance', @@ -459,61 +66,6 @@ export const OETHVaultProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'getAllAssets', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getAllStrategies', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'getAssetConfig', - outputs: [ - { - components: [ - { internalType: 'bool', name: 'isSupported', type: 'bool' }, - { - internalType: 'enum VaultStorage.UnitConversion', - name: 'unitConversion', - type: 'uint8', - }, - { internalType: 'uint8', name: 'decimals', type: 'uint8' }, - { - internalType: 'uint16', - name: 'allowedOracleSlippageBps', - type: 'uint16', - }, - ], - internalType: 'struct VaultStorage.Asset', - name: 'config', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getAssetCount', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getStrategyCount', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'governor', @@ -523,181 +75,55 @@ export const OETHVaultProxyABI = [ }, { inputs: [], - name: 'isGovernor', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'isSupportedAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'maxSupplyDiff', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + name: 'implementation', + outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - { internalType: 'uint256', name: '_minimumOusdAmount', type: 'uint256' }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], - name: 'mint', + name: 'initialize', outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'mintForStrategy', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'netOusdMintForStrategyThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'netOusdMintedForStrategy', - outputs: [{ internalType: 'int256', name: '', type: 'int256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'ousdMetaStrategy', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'priceProvider', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'asset', type: 'address' }], - name: 'priceUnitMint', - outputs: [{ internalType: 'uint256', name: 'price', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'asset', type: 'address' }], - name: 'priceUnitRedeem', - outputs: [{ internalType: 'uint256', name: 'price', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rebase', - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, { inputs: [], - name: 'rebasePaused', + name: 'isGovernor', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: 'rebaseThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - { internalType: 'uint256', name: '_minimumUnitAmount', type: 'uint256' }, + { internalType: 'address', name: '_newGovernor', type: 'address' }, ], - name: 'redeem', + name: 'transferGovernance', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ - { internalType: 'uint256', name: '_minimumUnitAmount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'redeemAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'redeemFeeBps', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'newImpl', type: 'address' }], - name: 'setAdminImpl', + name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'strategistAddr', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalValue', - outputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ - { internalType: 'address', name: '_newGovernor', type: 'address' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'transferGovernance', + name: 'upgradeToAndCall', outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'trusteeAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'trusteeFeeBps', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'vaultBuffer', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', + stateMutability: 'payable', type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/OETHZapper.ts b/libs/shared/contracts/src/abis/OETHZapper.ts index 194873865..e85c3d3c3 100644 --- a/libs/shared/contracts/src/abis/OETHZapper.ts +++ b/libs/shared/contracts/src/abis/OETHZapper.ts @@ -30,7 +30,7 @@ export const OETHZapperABI = [ type: 'uint256', }, ], - name: 'Zap', + name: 'MintFrom', type: 'event', }, { @@ -52,37 +52,9 @@ export const OETHZapperABI = [ }, { inputs: [], - name: 'frxeth', - outputs: [{ internalType: 'contract IERC20', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'oeth', - outputs: [{ internalType: 'contract IERC20', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'sfrxeth', - outputs: [{ internalType: 'contract ISfrxETH', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'vault', - outputs: [{ internalType: 'contract IVault', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'weth', - outputs: [{ internalType: 'contract IWETH9', name: '', type: 'address' }], - stateMutability: 'view', + name: 'rebaseOptIn', + outputs: [], + stateMutability: 'nonpayable', type: 'function', }, { stateMutability: 'payable', type: 'receive' }, diff --git a/libs/shared/contracts/src/abis/OGN.ts b/libs/shared/contracts/src/abis/OGN.ts deleted file mode 100644 index cbc2c4167..000000000 --- a/libs/shared/contracts/src/abis/OGN.ts +++ /dev/null @@ -1,419 +0,0 @@ -// DO NOT EDIT - GENERATED -export const OGNABI = [ - { - constant: true, - inputs: [], - name: 'whitelistActive', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'mintingFinished', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'name', - outputs: [{ name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_spender', type: 'address' }, - { name: '_value', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_from', type: 'address' }, - { name: '_to', type: 'address' }, - { name: '_value', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '_transactor', type: 'address' }], - name: 'addAllowedTransactor', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [{ name: '', type: 'uint8' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'unpause', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_to', type: 'address' }, - { name: '_amount', type: 'uint256' }, - ], - name: 'mint', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '_value', type: 'uint256' }], - name: 'burn', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '_transactor', type: 'address' }], - name: 'removeAllowedTransactor', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'paused', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_spender', type: 'address' }, - { name: '_subtractedValue', type: 'uint256' }, - ], - name: 'decreaseApproval', - outputs: [{ name: 'success', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ name: '_owner', type: 'address' }], - name: 'balanceOf', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'renounceOwnership', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'finishMinting', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_spender', type: 'address' }, - { name: '_value', type: 'uint256' }, - { name: '_selector', type: 'bytes4' }, - { name: '_callParams', type: 'bytes' }, - ], - name: 'approveAndCallWithSender', - outputs: [{ name: '', type: 'bool' }], - payable: true, - stateMutability: 'payable', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'pause', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'owner', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '_spender', type: 'address' }], - name: 'addCallSpenderWhitelist', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [{ name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_who', type: 'address' }, - { name: '_value', type: 'uint256' }, - ], - name: 'burn', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_to', type: 'address' }, - { name: '_value', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'whitelistExpiration', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ name: '', type: 'address' }], - name: 'allowedTransactors', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '_expiration', type: 'uint256' }], - name: 'setWhitelistExpiration', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_spender', type: 'address' }, - { name: '_addedValue', type: 'uint256' }, - ], - name: 'increaseApproval', - outputs: [{ name: 'success', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { name: '_owner', type: 'address' }, - { name: '_spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '_newOwner', type: 'address' }], - name: 'transferOwnership', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '_spender', type: 'address' }], - name: 'removeCallSpenderWhitelist', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ name: '', type: 'address' }], - name: 'callSpenderWhitelist', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ name: '_initialSupply', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'enabler', type: 'address' }, - { indexed: false, name: 'spender', type: 'address' }, - ], - name: 'AddCallSpenderWhitelist', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'disabler', type: 'address' }, - { indexed: false, name: 'spender', type: 'address' }, - ], - name: 'RemoveCallSpenderWhitelist', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: 'expiration', type: 'uint256' }], - name: 'SetWhitelistExpiration', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: 'sender', type: 'address' }], - name: 'AllowedTransactorAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: 'sender', type: 'address' }], - name: 'AllowedTransactorRemoved', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'Pause', type: 'event' }, - { anonymous: false, inputs: [], name: 'Unpause', type: 'event' }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'to', type: 'address' }, - { indexed: false, name: 'amount', type: 'uint256' }, - ], - name: 'Mint', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'MintFinished', type: 'event' }, - { - anonymous: false, - inputs: [{ indexed: true, name: 'previousOwner', type: 'address' }], - name: 'OwnershipRenounced', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'previousOwner', type: 'address' }, - { indexed: true, name: 'newOwner', type: 'address' }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'burner', type: 'address' }, - { indexed: false, name: 'value', type: 'uint256' }, - ], - name: 'Burn', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'owner', type: 'address' }, - { indexed: true, name: 'spender', type: 'address' }, - { indexed: false, name: 'value', type: 'uint256' }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'from', type: 'address' }, - { indexed: true, name: 'to', type: 'address' }, - { indexed: false, name: 'value', type: 'uint256' }, - ], - name: 'Transfer', - type: 'event', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/OGNStakingProxy.ts b/libs/shared/contracts/src/abis/OGNStakingProxy.ts index 174021c2e..df9974b8d 100644 --- a/libs/shared/contracts/src/abis/OGNStakingProxy.ts +++ b/libs/shared/contracts/src/abis/OGNStakingProxy.ts @@ -1,447 +1,147 @@ // DO NOT EDIT - GENERATED export const OGNStakingProxyABI = [ { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'GovernorshipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint8', - name: 'stakeType', - type: 'uint8', - }, - { - indexed: false, - internalType: 'bytes32', - name: 'rootHash', - type: 'bytes32', - }, - { - indexed: false, - internalType: 'uint256', - name: 'proofDepth', - type: 'uint256', - }, - ], - name: 'NewAirDropRootHash', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'user', type: 'address' }, - { - indexed: false, - internalType: 'uint256[]', - name: 'durations', - type: 'uint256[]', - }, - ], - name: 'NewDurations', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'user', type: 'address' }, - { - indexed: false, - internalType: 'uint256[]', - name: 'rates', - type: 'uint256[]', - }, - ], - name: 'NewRates', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'user', type: 'address' }, - { indexed: false, internalType: 'bool', name: 'yes', type: 'bool' }, - ], - name: 'Paused', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'PendingGovernorshipTransfer', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'user', type: 'address' }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'duration', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'rate', - type: 'uint256', - }, - ], - name: 'Staked', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'fromUser', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'toUser', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'numStakes', - type: 'uint256', - }, - ], - name: 'StakesTransfered', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'user', type: 'address' }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'stakedAmount', - type: 'uint256', - }, - ], - name: 'Withdrawn', - type: 'event', - }, - { - inputs: [ - { internalType: 'uint256', name: 'index', type: 'uint256' }, - { internalType: 'uint8', name: 'stakeType', type: 'uint8' }, - { internalType: 'uint256', name: 'duration', type: 'uint256' }, - { internalType: 'uint256', name: 'rate', type: 'uint256' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - { internalType: 'bytes32[]', name: 'merkleProof', type: 'bytes32[]' }, - ], - name: 'airDroppedStake', - outputs: [], - stateMutability: 'nonpayable', + constant: true, + inputs: [], + name: 'governor', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', type: 'function', }, { + constant: false, inputs: [ - { internalType: 'address', name: 'account', type: 'address' }, - { internalType: 'uint8', name: 'stakeType', type: 'uint8' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'airDroppedStakeClaimed', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'claimGovernance', + name: 'upgradeTo', outputs: [], + payable: false, stateMutability: 'nonpayable', type: 'function', }, { - inputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - name: 'dropRoots', - outputs: [ - { internalType: 'bytes32', name: 'hash', type: 'bytes32' }, - { internalType: 'uint256', name: 'depth', type: 'uint256' }, + constant: false, + inputs: [ + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_duration', type: 'uint256' }], - name: 'durationRewardRate', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'durations', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'exit', + name: 'upgradeToAndCall', outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'getAllDurations', - outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getAllRates', - outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'getAllStakes', - outputs: [ - { - components: [ - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - { internalType: 'uint256', name: 'end', type: 'uint256' }, - { internalType: 'uint256', name: 'duration', type: 'uint256' }, - { internalType: 'uint240', name: 'rate', type: 'uint240' }, - { internalType: 'bool', name: 'paid', type: 'bool' }, - { internalType: 'uint8', name: 'stakeType', type: 'uint8' }, - ], - internalType: 'struct SingleAssetStaking.Stake[]', - name: '', - type: 'tuple[]', - }, - ], - stateMutability: 'view', + payable: true, + stateMutability: 'payable', type: 'function', }, { + constant: true, inputs: [], - name: 'governor', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, stateMutability: 'view', type: 'function', }, { - inputs: [ - { internalType: 'address', name: '_stakingToken', type: 'address' }, - { internalType: 'uint256[]', name: '_durations', type: 'uint256[]' }, - { internalType: 'uint256[]', name: '_rates', type: 'uint256[]' }, - ], - name: 'initialize', + constant: false, + inputs: [], + name: 'claimGovernance', outputs: [], + payable: false, stateMutability: 'nonpayable', type: 'function', }, { + constant: true, inputs: [], name: 'isGovernor', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + payable: false, stateMutability: 'view', type: 'function', }, { - inputs: [], - name: 'paused', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'rates', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { + constant: false, inputs: [ - { internalType: 'uint8', name: '_stakeType', type: 'uint8' }, - { internalType: 'bytes32', name: '_rootHash', type: 'bytes32' }, - { internalType: 'uint256', name: '_proofDepth', type: 'uint256' }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], - name: 'setAirDropRoot', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256[]', name: '_durations', type: 'uint256[]' }, - { internalType: 'uint256[]', name: '_rates', type: 'uint256[]' }, - ], - name: 'setDurationRates', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'bool', name: '_paused', type: 'bool' }], - name: 'setPaused', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_agent', type: 'address' }], - name: 'setTransferAgent', + name: 'initialize', outputs: [], - stateMutability: 'nonpayable', + payable: true, + stateMutability: 'payable', type: 'function', }, { + constant: false, inputs: [ - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - { internalType: 'uint256', name: 'duration', type: 'uint256' }, + { internalType: 'address', name: '_newGovernor', type: 'address' }, ], - name: 'stake', + name: 'transferGovernance', outputs: [], + payable: false, stateMutability: 'nonpayable', type: 'function', }, { - inputs: [ - { internalType: 'address', name: 'staker', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - { internalType: 'uint256', name: 'duration', type: 'uint256' }, - ], - name: 'stakeWithSender', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'stakingToken', - outputs: [{ internalType: 'contract IERC20', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'totalCurrentHoldings', - outputs: [{ internalType: 'uint256', name: 'total', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'totalExpectedRewards', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalOutstanding', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'totalStaked', - outputs: [{ internalType: 'uint256', name: 'total', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { + constant: true, inputs: [], - name: 'transferAgent', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, stateMutability: 'view', type: 'function', }, + { payable: true, stateMutability: 'payable', type: 'fallback' }, { + anonymous: false, inputs: [ - { internalType: 'address', name: '_newGovernor', type: 'address' }, + { + indexed: true, + internalType: 'address', + name: 'implementation', + type: 'address', + }, ], - name: 'transferGovernance', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', + name: 'Upgraded', + type: 'event', }, { + anonymous: false, inputs: [ - { internalType: 'address', name: '_frmAccount', type: 'address' }, - { internalType: 'address', name: '_dstAccount', type: 'address' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, ], - name: 'transferStakes', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', + name: 'PendingGovernorshipTransfer', + type: 'event', }, { + anonymous: false, inputs: [ - { internalType: 'address', name: '', type: 'address' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - ], - name: 'userStakes', - outputs: [ - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - { internalType: 'uint256', name: 'end', type: 'uint256' }, - { internalType: 'uint256', name: 'duration', type: 'uint256' }, - { internalType: 'uint240', name: 'rate', type: 'uint240' }, - { internalType: 'bool', name: 'paid', type: 'bool' }, - { internalType: 'uint8', name: 'stakeType', type: 'uint8' }, + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, ], - stateMutability: 'view', - type: 'function', + name: 'GovernorshipTransferred', + type: 'event', }, ] as const; diff --git a/libs/shared/contracts/src/abis/OGV.ts b/libs/shared/contracts/src/abis/OGV.ts deleted file mode 100644 index 7f2e0c9fc..000000000 --- a/libs/shared/contracts/src/abis/OGV.ts +++ /dev/null @@ -1,58 +0,0 @@ -// DO NOT EDIT - GENERATED -export const OGVABI = [ - { - inputs: [ - { internalType: 'address', name: '_logic', type: 'address' }, - { internalType: 'bytes', name: '_data', type: 'bytes' }, - ], - stateMutability: 'payable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'previousAdmin', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newAdmin', - type: 'address', - }, - ], - name: 'AdminChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'beacon', - type: 'address', - }, - ], - name: 'BeaconUpgraded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'implementation', - type: 'address', - }, - ], - name: 'Upgraded', - type: 'event', - }, - { stateMutability: 'payable', type: 'fallback' }, - { stateMutability: 'payable', type: 'receive' }, -] as const; diff --git a/libs/shared/contracts/src/abis/OUSDProxy.ts b/libs/shared/contracts/src/abis/OUSDProxy.ts index 692749d51..ae25188bf 100644 --- a/libs/shared/contracts/src/abis/OUSDProxy.ts +++ b/libs/shared/contracts/src/abis/OUSDProxy.ts @@ -1,379 +1,147 @@ // DO NOT EDIT - GENERATED export const OUSDProxyABI = [ { - 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: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'GovernorshipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'PendingGovernorshipTransfer', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'totalSupply', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'rebasingCredits', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'rebasingCreditsPerToken', - type: 'uint256', - }, - ], - name: 'TotalSupplyUpdatedHighres', - 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', - }, - { + constant: true, inputs: [], - name: '_totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_owner', type: 'address' }, - { internalType: 'address', name: '_spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_spender', type: 'address' }, - { internalType: 'uint256', name: '_value', 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' }], + name: 'governor', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, stateMutability: 'view', type: 'function', }, { + constant: false, inputs: [ - { internalType: 'address', name: 'account', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'burn', + name: 'upgradeTo', outputs: [], + payable: false, stateMutability: 'nonpayable', type: 'function', }, { + constant: false, inputs: [ - { internalType: 'uint256', name: '_newTotalSupply', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'changeSupply', + name: 'upgradeToAndCall', outputs: [], - stateMutability: 'nonpayable', + payable: true, + stateMutability: 'payable', type: 'function', }, { + constant: true, inputs: [], - name: 'claimGovernance', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_account', type: 'address' }], - name: 'creditsBalanceOf', - outputs: [ - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_account', type: 'address' }], - name: 'creditsBalanceOfHighres', - outputs: [ - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'bool', name: '', type: 'bool' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', 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: [], - name: 'governor', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, stateMutability: 'view', type: 'function', }, { - inputs: [ - { internalType: 'address', name: '_spender', type: 'address' }, - { internalType: 'uint256', name: '_addedValue', type: 'uint256' }, - ], - name: 'increaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'string', name: '_nameArg', type: 'string' }, - { internalType: 'string', name: '_symbolArg', type: 'string' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - ], - name: 'initialize', + constant: false, + inputs: [], + name: 'claimGovernance', outputs: [], + payable: false, stateMutability: 'nonpayable', type: 'function', }, { + constant: true, inputs: [], name: 'isGovernor', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + payable: false, stateMutability: 'view', type: 'function', }, { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'isUpgraded', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { + constant: false, inputs: [ - { internalType: 'address', name: '_account', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], - name: 'mint', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'nonRebasingCreditsPerToken', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'nonRebasingSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rebaseOptIn', + name: 'initialize', outputs: [], - stateMutability: 'nonpayable', + payable: true, + stateMutability: 'payable', type: 'function', }, { - inputs: [], - name: 'rebaseOptOut', + constant: false, + inputs: [ + { internalType: 'address', name: '_newGovernor', type: 'address' }, + ], + name: 'transferGovernance', outputs: [], + payable: false, stateMutability: 'nonpayable', type: 'function', }, { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'rebaseState', - outputs: [ - { internalType: 'enum OUSD.RebaseOptions', name: '', type: 'uint8' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rebasingCredits', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rebasingCreditsHighres', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rebasingCreditsPerToken', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { + constant: true, inputs: [], - name: 'rebasingCreditsPerTokenHighres', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + name: 'admin', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, stateMutability: 'view', type: 'function', }, + { payable: true, stateMutability: 'payable', type: 'fallback' }, { + anonymous: false, inputs: [ - { internalType: 'address', name: '_to', type: 'address' }, - { internalType: 'uint256', name: '_value', type: 'uint256' }, + { + indexed: true, + internalType: 'address', + name: 'implementation', + type: 'address', + }, ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', + name: 'Upgraded', + type: 'event', }, { + anonymous: false, inputs: [ - { internalType: 'address', name: '_from', type: 'address' }, - { internalType: 'address', name: '_to', type: 'address' }, - { internalType: 'uint256', name: '_value', type: 'uint256' }, + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', + name: 'PendingGovernorshipTransfer', + type: 'event', }, { + anonymous: false, inputs: [ - { internalType: 'address', name: '_newGovernor', type: 'address' }, + { + indexed: true, + internalType: 'address', + name: 'previousGovernor', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'newGovernor', + type: 'address', + }, ], - name: 'transferGovernance', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'vaultAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', + name: 'GovernorshipTransferred', + type: 'event', }, ] as const; diff --git a/libs/shared/contracts/src/abis/OpenOracle.ts b/libs/shared/contracts/src/abis/OpenOracle.ts deleted file mode 100644 index 7ce67c201..000000000 --- a/libs/shared/contracts/src/abis/OpenOracle.ts +++ /dev/null @@ -1,448 +0,0 @@ -// DO NOT EDIT - GENERATED -export const OpenOracleABI = [ - { - inputs: [ - { - internalType: 'contract OpenOraclePriceData', - name: 'priceData_', - type: 'address', - }, - { internalType: 'address', name: 'reporter_', type: 'address' }, - { - internalType: 'uint256', - name: 'anchorToleranceMantissa_', - type: 'uint256', - }, - { internalType: 'uint256', name: 'anchorPeriod_', type: 'uint256' }, - { - components: [ - { internalType: 'address', name: 'cToken', type: 'address' }, - { internalType: 'address', name: 'underlying', type: 'address' }, - { internalType: 'bytes32', name: 'symbolHash', type: 'bytes32' }, - { internalType: 'uint256', name: 'baseUnit', type: 'uint256' }, - { - internalType: 'enum UniswapConfig.PriceSource', - name: 'priceSource', - type: 'uint8', - }, - { internalType: 'uint256', name: 'fixedPrice', type: 'uint256' }, - { internalType: 'address', name: 'uniswapMarket', type: 'address' }, - { internalType: 'bool', name: 'isUniswapReversed', type: 'bool' }, - ], - internalType: 'struct UniswapConfig.TokenConfig[]', - name: 'configs', - type: 'tuple[]', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'string', - name: 'symbol', - type: 'string', - }, - { - indexed: false, - internalType: 'uint256', - name: 'anchorPrice', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'oldTimestamp', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newTimestamp', - type: 'uint256', - }, - ], - name: 'AnchorPriceUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'string', - name: 'symbol', - type: 'string', - }, - { - indexed: false, - internalType: 'uint256', - name: 'reporter', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'anchor', - type: 'uint256', - }, - ], - name: 'PriceGuarded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'string', - name: 'symbol', - type: 'string', - }, - { - indexed: false, - internalType: 'uint256', - name: 'price', - type: 'uint256', - }, - ], - name: 'PriceUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'reporter', - type: 'address', - }, - ], - name: 'ReporterInvalidated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'bytes32', - name: 'symbolHash', - type: 'bytes32', - }, - { - indexed: false, - internalType: 'uint256', - name: 'oldTimestamp', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newTimestamp', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'oldPrice', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newPrice', - type: 'uint256', - }, - ], - name: 'UniswapWindowUpdated', - type: 'event', - }, - { - inputs: [], - name: 'anchorPeriod', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'ethBaseUnit', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'expScale', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'i', type: 'uint256' }], - name: 'getTokenConfig', - outputs: [ - { - components: [ - { internalType: 'address', name: 'cToken', type: 'address' }, - { internalType: 'address', name: 'underlying', type: 'address' }, - { internalType: 'bytes32', name: 'symbolHash', type: 'bytes32' }, - { internalType: 'uint256', name: 'baseUnit', type: 'uint256' }, - { - internalType: 'enum UniswapConfig.PriceSource', - name: 'priceSource', - type: 'uint8', - }, - { internalType: 'uint256', name: 'fixedPrice', type: 'uint256' }, - { internalType: 'address', name: 'uniswapMarket', type: 'address' }, - { internalType: 'bool', name: 'isUniswapReversed', type: 'bool' }, - ], - internalType: 'struct UniswapConfig.TokenConfig', - name: '', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'cToken', type: 'address' }], - name: 'getTokenConfigByCToken', - outputs: [ - { - components: [ - { internalType: 'address', name: 'cToken', type: 'address' }, - { internalType: 'address', name: 'underlying', type: 'address' }, - { internalType: 'bytes32', name: 'symbolHash', type: 'bytes32' }, - { internalType: 'uint256', name: 'baseUnit', type: 'uint256' }, - { - internalType: 'enum UniswapConfig.PriceSource', - name: 'priceSource', - type: 'uint8', - }, - { internalType: 'uint256', name: 'fixedPrice', type: 'uint256' }, - { internalType: 'address', name: 'uniswapMarket', type: 'address' }, - { internalType: 'bool', name: 'isUniswapReversed', type: 'bool' }, - ], - internalType: 'struct UniswapConfig.TokenConfig', - name: '', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], - name: 'getTokenConfigBySymbol', - outputs: [ - { - components: [ - { internalType: 'address', name: 'cToken', type: 'address' }, - { internalType: 'address', name: 'underlying', type: 'address' }, - { internalType: 'bytes32', name: 'symbolHash', type: 'bytes32' }, - { internalType: 'uint256', name: 'baseUnit', type: 'uint256' }, - { - internalType: 'enum UniswapConfig.PriceSource', - name: 'priceSource', - type: 'uint8', - }, - { internalType: 'uint256', name: 'fixedPrice', type: 'uint256' }, - { internalType: 'address', name: 'uniswapMarket', type: 'address' }, - { internalType: 'bool', name: 'isUniswapReversed', type: 'bool' }, - ], - internalType: 'struct UniswapConfig.TokenConfig', - name: '', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'bytes32', name: 'symbolHash', type: 'bytes32' }], - name: 'getTokenConfigBySymbolHash', - outputs: [ - { - components: [ - { internalType: 'address', name: 'cToken', type: 'address' }, - { internalType: 'address', name: 'underlying', type: 'address' }, - { internalType: 'bytes32', name: 'symbolHash', type: 'bytes32' }, - { internalType: 'uint256', name: 'baseUnit', type: 'uint256' }, - { - internalType: 'enum UniswapConfig.PriceSource', - name: 'priceSource', - type: 'uint8', - }, - { internalType: 'uint256', name: 'fixedPrice', type: 'uint256' }, - { internalType: 'address', name: 'uniswapMarket', type: 'address' }, - { internalType: 'bool', name: 'isUniswapReversed', type: 'bool' }, - ], - internalType: 'struct UniswapConfig.TokenConfig', - name: '', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'underlying', type: 'address' }], - name: 'getTokenConfigByUnderlying', - outputs: [ - { - components: [ - { internalType: 'address', name: 'cToken', type: 'address' }, - { internalType: 'address', name: 'underlying', type: 'address' }, - { internalType: 'bytes32', name: 'symbolHash', type: 'bytes32' }, - { internalType: 'uint256', name: 'baseUnit', type: 'uint256' }, - { - internalType: 'enum UniswapConfig.PriceSource', - name: 'priceSource', - type: 'uint8', - }, - { internalType: 'uint256', name: 'fixedPrice', type: 'uint256' }, - { internalType: 'address', name: 'uniswapMarket', type: 'address' }, - { internalType: 'bool', name: 'isUniswapReversed', type: 'bool' }, - ], - internalType: 'struct UniswapConfig.TokenConfig', - name: '', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'cToken', type: 'address' }], - name: 'getUnderlyingPrice', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'bytes', name: 'message', type: 'bytes' }, - { internalType: 'bytes', name: 'signature', type: 'bytes' }, - ], - name: 'invalidateReporter', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'lowerBoundAnchorRatio', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'maxTokens', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - name: 'newObservations', - outputs: [ - { internalType: 'uint256', name: 'timestamp', type: 'uint256' }, - { internalType: 'uint256', name: 'acc', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'numTokens', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - name: 'oldObservations', - outputs: [ - { internalType: 'uint256', name: 'timestamp', type: 'uint256' }, - { internalType: 'uint256', name: 'acc', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'bytes[]', name: 'messages', type: 'bytes[]' }, - { internalType: 'bytes[]', name: 'signatures', type: 'bytes[]' }, - { internalType: 'string[]', name: 'symbols', type: 'string[]' }, - ], - name: 'postPrices', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], - name: 'price', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'priceData', - outputs: [ - { - internalType: 'contract OpenOraclePriceData', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - name: 'prices', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'reporter', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'reporterInvalidated', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'bytes', name: 'message', type: 'bytes' }, - { internalType: 'bytes', name: 'signature', type: 'bytes' }, - ], - name: 'source', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [], - name: 'upperBoundAnchorRatio', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/OptionalLockupDistributor.ts b/libs/shared/contracts/src/abis/OptionalLockupDistributor.ts deleted file mode 100644 index d92b39197..000000000 --- a/libs/shared/contracts/src/abis/OptionalLockupDistributor.ts +++ /dev/null @@ -1,117 +0,0 @@ -// DO NOT EDIT - GENERATED -export const OptionalLockupDistributorABI = [ - { - inputs: [ - { internalType: 'address', name: '_token', type: 'address' }, - { internalType: 'bytes32', name: '_merkleRoot', type: 'bytes32' }, - { internalType: 'address', name: '_stakingContract', type: 'address' }, - { internalType: 'uint256', name: '_endBlock', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint256', - name: 'index', - type: 'uint256', - }, - { - indexed: true, - internalType: 'address', - name: 'account', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Claimed', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'OGVBurned', - type: 'event', - }, - { - inputs: [], - name: 'burnRemainingOGV', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: '_index', type: 'uint256' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - { internalType: 'bytes32[]', name: '_merkleProof', type: 'bytes32[]' }, - { internalType: 'uint256', name: '_stakeDuration', type: 'uint256' }, - ], - name: 'claim', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'endBlock', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_index', type: 'uint256' }], - name: 'isClaimed', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: '_index', type: 'uint256' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - { internalType: 'address', name: '_account', type: 'address' }, - { internalType: 'bytes32[]', name: '_merkleProof', type: 'bytes32[]' }, - ], - name: 'isProofValid', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'merkleRoot', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'stakingContract', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'token', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/OracleRouter.ts b/libs/shared/contracts/src/abis/OracleRouter.ts new file mode 100644 index 000000000..32b0163da --- /dev/null +++ b/libs/shared/contracts/src/abis/OracleRouter.ts @@ -0,0 +1,17 @@ +// DO NOT EDIT - GENERATED +export const OracleRouterABI = [ + { + inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], + name: 'cacheDecimals', + outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [{ internalType: 'address', name: 'asset', type: 'address' }], + name: 'price', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + stateMutability: 'view', + type: 'function', + }, +] as const; diff --git a/libs/shared/contracts/src/abis/RewardsSource.ts b/libs/shared/contracts/src/abis/RewardsSource.ts deleted file mode 100644 index 39766a8a7..000000000 --- a/libs/shared/contracts/src/abis/RewardsSource.ts +++ /dev/null @@ -1,169 +0,0 @@ -// DO NOT EDIT - GENERATED -export const RewardsSourceABI = [ - { - inputs: [{ internalType: 'address', name: 'ogv_', type: 'address' }], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'GovernorshipTransferred', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'InflationChanged', type: 'event' }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'PendingGovernorshipTransfer', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'target', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'previousTarget', - type: 'address', - }, - ], - name: 'RewardsTargetChange', - type: 'event', - }, - { - inputs: [], - name: 'claimGovernance', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'collectRewards', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'governor', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'inflationSlopes', - outputs: [ - { internalType: 'uint64', name: 'start', type: 'uint64' }, - { internalType: 'uint64', name: 'end', type: 'uint64' }, - { internalType: 'uint128', name: 'ratePerDay', type: 'uint128' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'isGovernor', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'lastRewardTime', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'ogv', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'previewRewards', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rewardsTarget', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - components: [ - { internalType: 'uint64', name: 'start', type: 'uint64' }, - { internalType: 'uint64', name: 'end', type: 'uint64' }, - { internalType: 'uint128', name: 'ratePerDay', type: 'uint128' }, - ], - internalType: 'struct RewardsSource.Slope[]', - name: 'slopes', - type: 'tuple[]', - }, - ], - name: 'setInflation', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'rewardsTarget_', type: 'address' }, - ], - name: 'setRewardsTarget', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_newGovernor', type: 'address' }, - ], - name: 'transferGovernance', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/SushiSwapRouter.ts b/libs/shared/contracts/src/abis/SushiSwapRouter.ts deleted file mode 100644 index 482eaab3d..000000000 --- a/libs/shared/contracts/src/abis/SushiSwapRouter.ts +++ /dev/null @@ -1,357 +0,0 @@ -// DO NOT EDIT - GENERATED -export const SushiSwapRouterABI = [ - { - inputs: [ - { internalType: 'address', name: '_factory', type: 'address' }, - { internalType: 'address', name: '_WETH', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [], - name: 'WETH', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - { internalType: 'uint256', name: 'amountADesired', type: 'uint256' }, - { internalType: 'uint256', name: 'amountBDesired', type: 'uint256' }, - { internalType: 'uint256', name: 'amountAMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountBMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'addLiquidity', - outputs: [ - { internalType: 'uint256', name: 'amountA', type: 'uint256' }, - { internalType: 'uint256', name: 'amountB', type: 'uint256' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'amountTokenDesired', type: 'uint256' }, - { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'addLiquidityETH', - outputs: [ - { internalType: 'uint256', name: 'amountToken', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETH', type: 'uint256' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [], - name: 'factory', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'uint256', name: 'reserveIn', type: 'uint256' }, - { internalType: 'uint256', name: 'reserveOut', type: 'uint256' }, - ], - name: 'getAmountIn', - outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'reserveIn', type: 'uint256' }, - { internalType: 'uint256', name: 'reserveOut', type: 'uint256' }, - ], - name: 'getAmountOut', - outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - ], - name: 'getAmountsIn', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - ], - name: 'getAmountsOut', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountA', type: 'uint256' }, - { internalType: 'uint256', name: 'reserveA', type: 'uint256' }, - { internalType: 'uint256', name: 'reserveB', type: 'uint256' }, - ], - name: 'quote', - outputs: [{ internalType: 'uint256', name: 'amountB', type: 'uint256' }], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountAMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountBMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'removeLiquidity', - outputs: [ - { internalType: 'uint256', name: 'amountA', type: 'uint256' }, - { internalType: 'uint256', name: 'amountB', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'removeLiquidityETH', - outputs: [ - { internalType: 'uint256', name: 'amountToken', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETH', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'removeLiquidityETHSupportingFeeOnTransferTokens', - outputs: [{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'bool', name: 'approveMax', type: 'bool' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'removeLiquidityETHWithPermit', - outputs: [ - { internalType: 'uint256', name: 'amountToken', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETH', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'bool', name: 'approveMax', type: 'bool' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'removeLiquidityETHWithPermitSupportingFeeOnTransferTokens', - outputs: [{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountAMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountBMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'bool', name: 'approveMax', type: 'bool' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'removeLiquidityWithPermit', - outputs: [ - { internalType: 'uint256', name: 'amountA', type: 'uint256' }, - { internalType: 'uint256', name: 'amountB', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapETHForExactTokens', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactETHForTokens', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactETHForTokensSupportingFeeOnTransferTokens', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactTokensForETH', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactTokensForETHSupportingFeeOnTransferTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactTokensForTokens', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactTokensForTokensSupportingFeeOnTransferTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'uint256', name: 'amountInMax', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapTokensForExactETH', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'uint256', name: 'amountInMax', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapTokensForExactTokens', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { stateMutability: 'payable', type: 'receive' }, -] as const; diff --git a/libs/shared/contracts/src/abis/TUSD.ts b/libs/shared/contracts/src/abis/TUSD.ts deleted file mode 100644 index 5aa21c7fc..000000000 --- a/libs/shared/contracts/src/abis/TUSD.ts +++ /dev/null @@ -1,450 +0,0 @@ -// DO NOT EDIT - GENERATED -export const TUSDABI = [ - { - 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: 'account', - type: 'address', - }, - { - indexed: false, - internalType: 'bool', - name: 'isBlacklisted', - type: 'bool', - }, - ], - name: 'Blacklisted', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'burner', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'Burn', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - { - indexed: false, - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldFeed', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newFeed', - type: 'address', - }, - ], - name: 'NewChainReserveFeed', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldHeartbeat', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newHeartbeat', - type: 'uint256', - }, - ], - name: 'NewChainReserveHeartbeat', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousOwner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [], - name: 'ProofOfReserveDisabled', - type: 'event', - }, - { - anonymous: false, - inputs: [], - name: 'ProofOfReserveEnabled', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'newMin', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newMax', - type: 'uint256', - }, - ], - name: 'SetBurnBounds', - 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', - }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', 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' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'amount', type: 'uint256' }], - name: 'burn', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'burnMax', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'burnMin', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'canBurn', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'chainReserveFeed', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'chainReserveHeartbeat', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'claimOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - stateMutability: 'pure', - 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: [], - name: 'disableProofOfReserve', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'enableProofOfReserve', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'addedValue', type: 'uint256' }, - ], - name: 'increaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'account', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'mint', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pendingOwner', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'proofOfReserveEnabled', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address payable', name: '_to', type: 'address' }], - name: 'reclaimEther', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'contract IERC20', name: 'token', type: 'address' }, - { internalType: 'address', name: '_to', type: 'address' }, - ], - name: 'reclaimToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'rounding', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'account', type: 'address' }, - { internalType: 'bool', name: '_isBlacklisted', type: 'bool' }, - ], - name: 'setBlacklisted', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: '_min', type: 'uint256' }, - { internalType: 'uint256', name: '_max', type: 'uint256' }, - ], - name: 'setBurnBounds', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'account', type: 'address' }, - { internalType: 'bool', name: '_canBurn', type: 'bool' }, - ], - name: 'setCanBurn', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'newFeed', type: 'address' }], - name: 'setChainReserveFeed', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'newHeartbeat', type: 'uint256' }, - ], - name: 'setChainReserveHeartbeat', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'sender', type: 'address' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/ThreePoolStrategyProxy.ts b/libs/shared/contracts/src/abis/ThreePoolStrategyProxy.ts index ed78e37fa..f621d596b 100644 --- a/libs/shared/contracts/src/abis/ThreePoolStrategyProxy.ts +++ b/libs/shared/contracts/src/abis/ThreePoolStrategyProxy.ts @@ -1,14 +1,5 @@ // DO NOT EDIT - GENERATED export const ThreePoolStrategyProxyABI = [ - { - constant: false, - inputs: [], - name: 'collectRewardToken', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, { constant: true, inputs: [], @@ -21,75 +12,35 @@ export const ThreePoolStrategyProxyABI = [ { constant: false, inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'address', name: '_pToken', type: 'address' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'setPTokenAddress', + name: 'upgradeTo', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetToPToken', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, { constant: false, inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'transferToken', + name: 'upgradeToAndCall', outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'rewardTokenAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', + payable: true, + stateMutability: 'payable', type: 'function', }, { constant: true, inputs: [], - name: 'vaultAddress', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], payable: false, stateMutability: 'view', type: 'function', }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'deposit', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'rewardLiquidationThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, { constant: false, inputs: [], @@ -99,77 +50,6 @@ export const ThreePoolStrategyProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: 'balance', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, - ], - name: 'initialize', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'withdrawAll', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'uint256', name: '_assetIndex', type: 'uint256' }], - name: 'removePToken', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, - ], - name: 'setRewardTokenAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'supportsAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'safeApproveAllTokens', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, { constant: true, inputs: [], @@ -179,34 +59,25 @@ export const ThreePoolStrategyProxyABI = [ stateMutability: 'view', type: 'function', }, - { - constant: false, - inputs: [{ internalType: 'uint256', name: '_threshold', type: 'uint256' }], - name: 'setRewardLiquidationThreshold', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, { constant: false, inputs: [ - { internalType: 'address', name: '_newGovernor', type: 'address' }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], - name: 'transferGovernance', + name: 'initialize', outputs: [], - payable: false, - stateMutability: 'nonpayable', + payable: true, + stateMutability: 'payable', type: 'function', }, { constant: false, inputs: [ - { internalType: 'address', name: '_recipient', type: 'address' }, - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: '_newGovernor', type: 'address' }, ], - name: 'withdraw', + name: 'transferGovernance', outputs: [], payable: false, stateMutability: 'nonpayable', @@ -215,143 +86,24 @@ export const ThreePoolStrategyProxyABI = [ { constant: true, inputs: [], - name: 'platformAddress', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], payable: false, stateMutability: 'view', type: 'function', }, - { - constant: false, - inputs: [], - name: 'depositAll', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_platformAddress', type: 'address' }, - { internalType: 'address', name: '_vaultAddress', type: 'address' }, - { internalType: 'address', name: '_rewardTokenAddress', type: 'address' }, - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'address[]', name: '_pTokens', type: 'address[]' }, - { internalType: 'address', name: '_crvGaugeAddress', type: 'address' }, - { internalType: 'address', name: '_crvMinterAddress', type: 'address' }, - ], - name: 'initialize', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'RewardTokenCollected', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - ], - name: 'PTokenRemoved', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'Deposit', - type: 'event', - }, + { payable: true, stateMutability: 'payable', type: 'fallback' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', - name: '_asset', + name: 'implementation', type: 'address', }, - { - indexed: false, - internalType: 'address', - name: '_pToken', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, ], - name: 'Withdrawal', + name: 'Upgraded', type: 'event', }, { diff --git a/libs/shared/contracts/src/abis/USDC.ts b/libs/shared/contracts/src/abis/USDC.ts deleted file mode 100644 index b463f6607..000000000 --- a/libs/shared/contracts/src/abis/USDC.ts +++ /dev/null @@ -1,686 +0,0 @@ -// DO NOT EDIT - GENERATED -export const USDCABI = [ - { - 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: 'authorizer', - type: 'address', - }, - { - indexed: true, - internalType: 'bytes32', - name: 'nonce', - type: 'bytes32', - }, - ], - name: 'AuthorizationCanceled', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'authorizer', - type: 'address', - }, - { - indexed: true, - internalType: 'bytes32', - name: 'nonce', - type: 'bytes32', - }, - ], - name: 'AuthorizationUsed', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_account', - type: 'address', - }, - ], - name: 'Blacklisted', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newBlacklister', - type: 'address', - }, - ], - name: 'BlacklisterChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'burner', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Burn', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newMasterMinter', - type: 'address', - }, - ], - name: 'MasterMinterChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'minter', - type: 'address', - }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'minter', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'minterAllowedAmount', - type: 'uint256', - }, - ], - name: 'MinterConfigured', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'oldMinter', - type: 'address', - }, - ], - name: 'MinterRemoved', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'previousOwner', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'OwnershipTransferred', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'Pause', type: 'event' }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newAddress', - type: 'address', - }, - ], - name: 'PauserChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'newRescuer', - type: 'address', - }, - ], - name: 'RescuerChanged', - 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: '_account', - type: 'address', - }, - ], - name: 'UnBlacklisted', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'Unpause', type: 'event' }, - { - inputs: [], - name: 'CANCEL_AUTHORIZATION_TYPEHASH', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'DOMAIN_SEPARATOR', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'PERMIT_TYPEHASH', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'RECEIVE_WITH_AUTHORIZATION_TYPEHASH', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'TRANSFER_WITH_AUTHORIZATION_TYPEHASH', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'authorizer', type: 'address' }, - { internalType: 'bytes32', name: 'nonce', type: 'bytes32' }, - ], - name: 'authorizationState', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - 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: '_account', type: 'address' }], - name: 'blacklist', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'blacklister', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'burn', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'authorizer', type: 'address' }, - { internalType: 'bytes32', name: 'nonce', type: 'bytes32' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'cancelAuthorization', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'minter', type: 'address' }, - { internalType: 'uint256', name: 'minterAllowedAmount', type: 'uint256' }, - ], - name: 'configureMinter', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'currency', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'decrement', type: 'uint256' }, - ], - name: 'decreaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'increment', type: 'uint256' }, - ], - name: 'increaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'string', name: 'tokenName', type: 'string' }, - { internalType: 'string', name: 'tokenSymbol', type: 'string' }, - { internalType: 'string', name: 'tokenCurrency', type: 'string' }, - { internalType: 'uint8', name: 'tokenDecimals', type: 'uint8' }, - { internalType: 'address', name: 'newMasterMinter', type: 'address' }, - { internalType: 'address', name: 'newPauser', type: 'address' }, - { internalType: 'address', name: 'newBlacklister', type: 'address' }, - { internalType: 'address', name: 'newOwner', type: 'address' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'string', name: 'newName', type: 'string' }], - name: 'initializeV2', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'lostAndFound', type: 'address' }, - ], - name: 'initializeV2_1', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_account', type: 'address' }], - name: 'isBlacklisted', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'isMinter', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'masterMinter', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_to', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'mint', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'minter', type: 'address' }], - name: 'minterAllowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'nonces', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pause', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'paused', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pauser', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'permit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'from', type: 'address' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - { internalType: 'uint256', name: 'validAfter', type: 'uint256' }, - { internalType: 'uint256', name: 'validBefore', type: 'uint256' }, - { internalType: 'bytes32', name: 'nonce', type: 'bytes32' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'receiveWithAuthorization', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'minter', type: 'address' }], - name: 'removeMinter', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract IERC20', - name: 'tokenContract', - type: 'address', - }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'rescueERC20', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'rescuer', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'from', type: 'address' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'from', type: 'address' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - { internalType: 'uint256', name: 'validAfter', type: 'uint256' }, - { internalType: 'uint256', name: 'validBefore', type: 'uint256' }, - { internalType: 'bytes32', name: 'nonce', type: 'bytes32' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'transferWithAuthorization', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_account', type: 'address' }], - name: 'unBlacklist', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'unpause', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_newBlacklister', type: 'address' }, - ], - name: 'updateBlacklister', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_newMasterMinter', type: 'address' }, - ], - name: 'updateMasterMinter', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_newPauser', type: 'address' }], - name: 'updatePauser', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'newRescuer', type: 'address' }], - name: 'updateRescuer', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'version', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/USDT.ts b/libs/shared/contracts/src/abis/USDT.ts deleted file mode 100644 index 3ba070509..000000000 --- a/libs/shared/contracts/src/abis/USDT.ts +++ /dev/null @@ -1,391 +0,0 @@ -// DO NOT EDIT - GENERATED -export const USDTABI = [ - { - constant: true, - inputs: [], - name: 'name', - outputs: [{ name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '_upgradedAddress', type: 'address' }], - name: 'deprecate', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_spender', type: 'address' }, - { name: '_value', type: 'uint256' }, - ], - name: 'approve', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'deprecated', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '_evilUser', type: 'address' }], - name: 'addBlackList', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_from', type: 'address' }, - { name: '_to', type: 'address' }, - { name: '_value', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'upgradedAddress', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ name: '', type: 'address' }], - name: 'balances', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'maximumFee', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: '_totalSupply', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'unpause', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ name: '_maker', type: 'address' }], - name: 'getBlackListStatus', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { name: '', type: 'address' }, - { name: '', type: 'address' }, - ], - name: 'allowed', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'paused', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ name: 'who', type: 'address' }], - name: 'balanceOf', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'pause', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getOwner', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'owner', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [{ name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_to', type: 'address' }, - { name: '_value', type: 'uint256' }, - ], - name: 'transfer', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: 'newBasisPoints', type: 'uint256' }, - { name: 'newMaxFee', type: 'uint256' }, - ], - name: 'setParams', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'amount', type: 'uint256' }], - name: 'issue', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'amount', type: 'uint256' }], - name: 'redeem', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { name: '_owner', type: 'address' }, - { name: '_spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ name: 'remaining', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'basisPointsRate', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ name: '', type: 'address' }], - name: 'isBlackListed', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '_clearedUser', type: 'address' }], - name: 'removeBlackList', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'MAX_UINT', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'newOwner', type: 'address' }], - name: 'transferOwnership', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '_blackListedUser', type: 'address' }], - name: 'destroyBlackFunds', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { name: '_initialSupply', type: 'uint256' }, - { name: '_name', type: 'string' }, - { name: '_symbol', type: 'string' }, - { name: '_decimals', type: 'uint256' }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: 'amount', type: 'uint256' }], - name: 'Issue', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: 'amount', type: 'uint256' }], - name: 'Redeem', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: 'newAddress', type: 'address' }], - name: 'Deprecate', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'feeBasisPoints', type: 'uint256' }, - { indexed: false, name: 'maxFee', type: 'uint256' }, - ], - name: 'Params', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: '_blackListedUser', type: 'address' }, - { indexed: false, name: '_balance', type: 'uint256' }, - ], - name: 'DestroyedBlackFunds', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: '_user', type: 'address' }], - name: 'AddedBlackList', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: '_user', type: 'address' }], - name: 'RemovedBlackList', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'owner', type: 'address' }, - { indexed: true, name: 'spender', type: 'address' }, - { indexed: false, name: 'value', type: 'uint256' }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'from', type: 'address' }, - { indexed: true, name: 'to', type: 'address' }, - { indexed: false, name: 'value', type: 'uint256' }, - ], - name: 'Transfer', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'Pause', type: 'event' }, - { anonymous: false, inputs: [], name: 'Unpause', type: 'event' }, -] as const; diff --git a/libs/shared/contracts/src/abis/UniswapDAI_ETH.ts b/libs/shared/contracts/src/abis/UniswapDAI_ETH.ts deleted file mode 100644 index eaef35c36..000000000 --- a/libs/shared/contracts/src/abis/UniswapDAI_ETH.ts +++ /dev/null @@ -1,436 +0,0 @@ -// DO NOT EDIT - GENERATED -export const UniswapDAI_ETHABI = [ - { - inputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - 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: 'sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'Burn', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0In', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1In', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0Out', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1Out', - type: 'uint256', - }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'Swap', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint112', - name: 'reserve0', - type: 'uint112', - }, - { - indexed: false, - internalType: 'uint112', - name: 'reserve1', - type: 'uint112', - }, - ], - name: 'Sync', - 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', - }, - { - constant: true, - inputs: [], - name: 'DOMAIN_SEPARATOR', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'MINIMUM_LIQUIDITY', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'PERMIT_TYPEHASH', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { internalType: 'address', name: '', type: 'address' }, - { internalType: 'address', name: '', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'to', type: 'address' }], - name: 'burn', - outputs: [ - { internalType: 'uint256', name: 'amount0', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1', type: 'uint256' }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'factory', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getReserves', - outputs: [ - { internalType: 'uint112', name: '_reserve0', type: 'uint112' }, - { internalType: 'uint112', name: '_reserve1', type: 'uint112' }, - { internalType: 'uint32', name: '_blockTimestampLast', type: 'uint32' }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_token0', type: 'address' }, - { internalType: 'address', name: '_token1', type: 'address' }, - ], - name: 'initialize', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'kLast', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'to', type: 'address' }], - name: 'mint', - outputs: [{ internalType: 'uint256', name: 'liquidity', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'nonces', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'permit', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'price0CumulativeLast', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'price1CumulativeLast', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'to', type: 'address' }], - name: 'skim', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'uint256', name: 'amount0Out', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1Out', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'bytes', name: 'data', type: 'bytes' }, - ], - name: 'swap', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'sync', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'token0', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'token1', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'from', type: 'address' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/UniswapOracle.ts b/libs/shared/contracts/src/abis/UniswapOracle.ts deleted file mode 100644 index b061ca2cd..000000000 --- a/libs/shared/contracts/src/abis/UniswapOracle.ts +++ /dev/null @@ -1,238 +0,0 @@ -// DO NOT EDIT - GENERATED -export const UniswapOracleABI = [ - { - constant: true, - inputs: [], - name: 'governor', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], - name: 'tokEthPrice', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], - name: 'debugPrice', - outputs: [ - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], - name: 'tokUsdPrice', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'claimGovernance', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'ethPriceOracle_', type: 'address' }, - ], - name: 'registerEthPriceOracle', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], - name: 'getSwapConfig', - outputs: [ - { - components: [ - { internalType: 'bool', name: 'ethOnFirst', type: 'bool' }, - { internalType: 'address', name: 'swap', type: 'address' }, - { - internalType: 'uint256', - name: 'blockTimestampLast', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'latestBlockTimestampLast', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'priceCumulativeLast', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'latestPriceCumulativeLast', - type: 'uint256', - }, - { internalType: 'uint256', name: 'baseUnit', type: 'uint256' }, - ], - internalType: 'struct OpenUniswapOracle.SwapConfig', - name: '', - type: 'tuple', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'bytes32[]', name: 'symbolHashes', type: 'bytes32[]' }, - ], - name: 'updatePriceWindows', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'ethUsdPrice', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'ethPriceOracle', - outputs: [ - { internalType: 'contract IPriceOracle', name: '', type: 'address' }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'PERIOD', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'isGovernor', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], - name: 'openPrice', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_newGovernor', type: 'address' }, - ], - name: 'transferGovernance', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'pair_', type: 'address' }], - name: 'registerPair', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], - name: 'price', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'ethPriceOracle_', type: 'address' }, - { internalType: 'address', name: 'ethToken_', type: 'address' }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'PendingGovernorshipTransfer', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'GovernorshipTransferred', - type: 'event', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/UniswapUSDC_ETH.ts b/libs/shared/contracts/src/abis/UniswapUSDC_ETH.ts deleted file mode 100644 index b9b8bb54a..000000000 --- a/libs/shared/contracts/src/abis/UniswapUSDC_ETH.ts +++ /dev/null @@ -1,436 +0,0 @@ -// DO NOT EDIT - GENERATED -export const UniswapUSDC_ETHABI = [ - { - inputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - 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: 'sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'Burn', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0In', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1In', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0Out', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1Out', - type: 'uint256', - }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'Swap', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint112', - name: 'reserve0', - type: 'uint112', - }, - { - indexed: false, - internalType: 'uint112', - name: 'reserve1', - type: 'uint112', - }, - ], - name: 'Sync', - 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', - }, - { - constant: true, - inputs: [], - name: 'DOMAIN_SEPARATOR', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'MINIMUM_LIQUIDITY', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'PERMIT_TYPEHASH', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { internalType: 'address', name: '', type: 'address' }, - { internalType: 'address', name: '', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'to', type: 'address' }], - name: 'burn', - outputs: [ - { internalType: 'uint256', name: 'amount0', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1', type: 'uint256' }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'factory', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getReserves', - outputs: [ - { internalType: 'uint112', name: '_reserve0', type: 'uint112' }, - { internalType: 'uint112', name: '_reserve1', type: 'uint112' }, - { internalType: 'uint32', name: '_blockTimestampLast', type: 'uint32' }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_token0', type: 'address' }, - { internalType: 'address', name: '_token1', type: 'address' }, - ], - name: 'initialize', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'kLast', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'to', type: 'address' }], - name: 'mint', - outputs: [{ internalType: 'uint256', name: 'liquidity', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'nonces', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'permit', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'price0CumulativeLast', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'price1CumulativeLast', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'to', type: 'address' }], - name: 'skim', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'uint256', name: 'amount0Out', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1Out', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'bytes', name: 'data', type: 'bytes' }, - ], - name: 'swap', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'sync', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'token0', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'token1', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'from', type: 'address' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/UniswapUSDT_ETH.ts b/libs/shared/contracts/src/abis/UniswapUSDT_ETH.ts deleted file mode 100644 index 780a27ff9..000000000 --- a/libs/shared/contracts/src/abis/UniswapUSDT_ETH.ts +++ /dev/null @@ -1,436 +0,0 @@ -// DO NOT EDIT - GENERATED -export const UniswapUSDT_ETHABI = [ - { - inputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - 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: 'sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'Burn', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0In', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1In', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0Out', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1Out', - type: 'uint256', - }, - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'Swap', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint112', - name: 'reserve0', - type: 'uint112', - }, - { - indexed: false, - internalType: 'uint112', - name: 'reserve1', - type: 'uint112', - }, - ], - name: 'Sync', - 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', - }, - { - constant: true, - inputs: [], - name: 'DOMAIN_SEPARATOR', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'MINIMUM_LIQUIDITY', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'PERMIT_TYPEHASH', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { internalType: 'address', name: '', type: 'address' }, - { internalType: 'address', name: '', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'to', type: 'address' }], - name: 'burn', - outputs: [ - { internalType: 'uint256', name: 'amount0', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1', type: 'uint256' }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'factory', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getReserves', - outputs: [ - { internalType: 'uint112', name: '_reserve0', type: 'uint112' }, - { internalType: 'uint112', name: '_reserve1', type: 'uint112' }, - { internalType: 'uint32', name: '_blockTimestampLast', type: 'uint32' }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_token0', type: 'address' }, - { internalType: 'address', name: '_token1', type: 'address' }, - ], - name: 'initialize', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'kLast', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'to', type: 'address' }], - name: 'mint', - outputs: [{ internalType: 'uint256', name: 'liquidity', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'nonces', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'permit', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'price0CumulativeLast', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'price1CumulativeLast', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: 'to', type: 'address' }], - name: 'skim', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'uint256', name: 'amount0Out', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1Out', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'bytes', name: 'data', type: 'bytes' }, - ], - name: 'swap', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'sync', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'token0', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'token1', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'from', type: 'address' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/UniswapV2Router.ts b/libs/shared/contracts/src/abis/UniswapV2Router.ts deleted file mode 100644 index 5618e658b..000000000 --- a/libs/shared/contracts/src/abis/UniswapV2Router.ts +++ /dev/null @@ -1,357 +0,0 @@ -// DO NOT EDIT - GENERATED -export const UniswapV2RouterABI = [ - { - inputs: [ - { internalType: 'address', name: '_factory', type: 'address' }, - { internalType: 'address', name: '_WETH', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [], - name: 'WETH', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - { internalType: 'uint256', name: 'amountADesired', type: 'uint256' }, - { internalType: 'uint256', name: 'amountBDesired', type: 'uint256' }, - { internalType: 'uint256', name: 'amountAMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountBMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'addLiquidity', - outputs: [ - { internalType: 'uint256', name: 'amountA', type: 'uint256' }, - { internalType: 'uint256', name: 'amountB', type: 'uint256' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'amountTokenDesired', type: 'uint256' }, - { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'addLiquidityETH', - outputs: [ - { internalType: 'uint256', name: 'amountToken', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETH', type: 'uint256' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [], - name: 'factory', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'uint256', name: 'reserveIn', type: 'uint256' }, - { internalType: 'uint256', name: 'reserveOut', type: 'uint256' }, - ], - name: 'getAmountIn', - outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'reserveIn', type: 'uint256' }, - { internalType: 'uint256', name: 'reserveOut', type: 'uint256' }, - ], - name: 'getAmountOut', - outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - ], - name: 'getAmountsIn', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - ], - name: 'getAmountsOut', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountA', type: 'uint256' }, - { internalType: 'uint256', name: 'reserveA', type: 'uint256' }, - { internalType: 'uint256', name: 'reserveB', type: 'uint256' }, - ], - name: 'quote', - outputs: [{ internalType: 'uint256', name: 'amountB', type: 'uint256' }], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountAMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountBMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'removeLiquidity', - outputs: [ - { internalType: 'uint256', name: 'amountA', type: 'uint256' }, - { internalType: 'uint256', name: 'amountB', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'removeLiquidityETH', - outputs: [ - { internalType: 'uint256', name: 'amountToken', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETH', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'removeLiquidityETHSupportingFeeOnTransferTokens', - outputs: [{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'bool', name: 'approveMax', type: 'bool' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'removeLiquidityETHWithPermit', - outputs: [ - { internalType: 'uint256', name: 'amountToken', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETH', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'bool', name: 'approveMax', type: 'bool' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'removeLiquidityETHWithPermitSupportingFeeOnTransferTokens', - outputs: [{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenA', type: 'address' }, - { internalType: 'address', name: 'tokenB', type: 'address' }, - { internalType: 'uint256', name: 'liquidity', type: 'uint256' }, - { internalType: 'uint256', name: 'amountAMin', type: 'uint256' }, - { internalType: 'uint256', name: 'amountBMin', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'bool', name: 'approveMax', type: 'bool' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'removeLiquidityWithPermit', - outputs: [ - { internalType: 'uint256', name: 'amountA', type: 'uint256' }, - { internalType: 'uint256', name: 'amountB', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapETHForExactTokens', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactETHForTokens', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactETHForTokensSupportingFeeOnTransferTokens', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactTokensForETH', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactTokensForETHSupportingFeeOnTransferTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactTokensForTokens', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapExactTokensForTokensSupportingFeeOnTransferTokens', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'uint256', name: 'amountInMax', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapTokensForExactETH', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'uint256', name: 'amountInMax', type: 'uint256' }, - { internalType: 'address[]', name: 'path', type: 'address[]' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - ], - name: 'swapTokensForExactTokens', - outputs: [ - { internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { stateMutability: 'payable', type: 'receive' }, -] as const; diff --git a/libs/shared/contracts/src/abis/UniswapV3DAI_USDT.ts b/libs/shared/contracts/src/abis/UniswapV3DAI_USDT.ts deleted file mode 100644 index 43cb031df..000000000 --- a/libs/shared/contracts/src/abis/UniswapV3DAI_USDT.ts +++ /dev/null @@ -1,643 +0,0 @@ -// DO NOT EDIT - GENERATED -export const UniswapV3DAI_USDTABI = [ - { inputs: [], stateMutability: 'nonpayable', type: 'constructor' }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickLower', - type: 'int24', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickUpper', - type: 'int24', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - name: 'Burn', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickLower', - type: 'int24', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickUpper', - type: 'int24', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount0', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount1', - type: 'uint128', - }, - ], - name: 'Collect', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount0', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount1', - type: 'uint128', - }, - ], - name: 'CollectProtocol', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'paid0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'paid1', - type: 'uint256', - }, - ], - name: 'Flash', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint16', - name: 'observationCardinalityNextOld', - type: 'uint16', - }, - { - indexed: false, - internalType: 'uint16', - name: 'observationCardinalityNextNew', - type: 'uint16', - }, - ], - name: 'IncreaseObservationCardinalityNext', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint160', - name: 'sqrtPriceX96', - type: 'uint160', - }, - { indexed: false, internalType: 'int24', name: 'tick', type: 'int24' }, - ], - name: 'Initialize', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickLower', - type: 'int24', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickUpper', - type: 'int24', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint8', - name: 'feeProtocol0Old', - type: 'uint8', - }, - { - indexed: false, - internalType: 'uint8', - name: 'feeProtocol1Old', - type: 'uint8', - }, - { - indexed: false, - internalType: 'uint8', - name: 'feeProtocol0New', - type: 'uint8', - }, - { - indexed: false, - internalType: 'uint8', - name: 'feeProtocol1New', - type: 'uint8', - }, - ], - name: 'SetFeeProtocol', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'int256', - name: 'amount0', - type: 'int256', - }, - { - indexed: false, - internalType: 'int256', - name: 'amount1', - type: 'int256', - }, - { - indexed: false, - internalType: 'uint160', - name: 'sqrtPriceX96', - type: 'uint160', - }, - { - indexed: false, - internalType: 'uint128', - name: 'liquidity', - type: 'uint128', - }, - { indexed: false, internalType: 'int24', name: 'tick', type: 'int24' }, - ], - name: 'Swap', - type: 'event', - }, - { - inputs: [ - { internalType: 'int24', name: 'tickLower', type: 'int24' }, - { internalType: 'int24', name: 'tickUpper', type: 'int24' }, - { internalType: 'uint128', name: 'amount', type: 'uint128' }, - ], - name: 'burn', - outputs: [ - { internalType: 'uint256', name: 'amount0', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'int24', name: 'tickLower', type: 'int24' }, - { internalType: 'int24', name: 'tickUpper', type: 'int24' }, - { internalType: 'uint128', name: 'amount0Requested', type: 'uint128' }, - { internalType: 'uint128', name: 'amount1Requested', type: 'uint128' }, - ], - name: 'collect', - outputs: [ - { internalType: 'uint128', name: 'amount0', type: 'uint128' }, - { internalType: 'uint128', name: 'amount1', type: 'uint128' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint128', name: 'amount0Requested', type: 'uint128' }, - { internalType: 'uint128', name: 'amount1Requested', type: 'uint128' }, - ], - name: 'collectProtocol', - outputs: [ - { internalType: 'uint128', name: 'amount0', type: 'uint128' }, - { internalType: 'uint128', name: 'amount1', type: 'uint128' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'factory', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'fee', - outputs: [{ internalType: 'uint24', name: '', type: 'uint24' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'feeGrowthGlobal0X128', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'feeGrowthGlobal1X128', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount0', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1', type: 'uint256' }, - { internalType: 'bytes', name: 'data', type: 'bytes' }, - ], - name: 'flash', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint16', - name: 'observationCardinalityNext', - type: 'uint16', - }, - ], - name: 'increaseObservationCardinalityNext', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint160', name: 'sqrtPriceX96', type: 'uint160' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'liquidity', - outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'maxLiquidityPerTick', - outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'int24', name: 'tickLower', type: 'int24' }, - { internalType: 'int24', name: 'tickUpper', type: 'int24' }, - { internalType: 'uint128', name: 'amount', type: 'uint128' }, - { internalType: 'bytes', name: 'data', type: 'bytes' }, - ], - name: 'mint', - outputs: [ - { internalType: 'uint256', name: 'amount0', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'observations', - outputs: [ - { internalType: 'uint32', name: 'blockTimestamp', type: 'uint32' }, - { internalType: 'int56', name: 'tickCumulative', type: 'int56' }, - { - internalType: 'uint160', - name: 'secondsPerLiquidityCumulativeX128', - type: 'uint160', - }, - { internalType: 'bool', name: 'initialized', type: 'bool' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint32[]', name: 'secondsAgos', type: 'uint32[]' }, - ], - name: 'observe', - outputs: [ - { internalType: 'int56[]', name: 'tickCumulatives', type: 'int56[]' }, - { - internalType: 'uint160[]', - name: 'secondsPerLiquidityCumulativeX128s', - type: 'uint160[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - name: 'positions', - outputs: [ - { internalType: 'uint128', name: 'liquidity', type: 'uint128' }, - { - internalType: 'uint256', - name: 'feeGrowthInside0LastX128', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'feeGrowthInside1LastX128', - type: 'uint256', - }, - { internalType: 'uint128', name: 'tokensOwed0', type: 'uint128' }, - { internalType: 'uint128', name: 'tokensOwed1', type: 'uint128' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'protocolFees', - outputs: [ - { internalType: 'uint128', name: 'token0', type: 'uint128' }, - { internalType: 'uint128', name: 'token1', type: 'uint128' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint8', name: 'feeProtocol0', type: 'uint8' }, - { internalType: 'uint8', name: 'feeProtocol1', type: 'uint8' }, - ], - name: 'setFeeProtocol', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'slot0', - outputs: [ - { internalType: 'uint160', name: 'sqrtPriceX96', type: 'uint160' }, - { internalType: 'int24', name: 'tick', type: 'int24' }, - { internalType: 'uint16', name: 'observationIndex', type: 'uint16' }, - { - internalType: 'uint16', - name: 'observationCardinality', - type: 'uint16', - }, - { - internalType: 'uint16', - name: 'observationCardinalityNext', - type: 'uint16', - }, - { internalType: 'uint8', name: 'feeProtocol', type: 'uint8' }, - { internalType: 'bool', name: 'unlocked', type: 'bool' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'int24', name: 'tickLower', type: 'int24' }, - { internalType: 'int24', name: 'tickUpper', type: 'int24' }, - ], - name: 'snapshotCumulativesInside', - outputs: [ - { internalType: 'int56', name: 'tickCumulativeInside', type: 'int56' }, - { - internalType: 'uint160', - name: 'secondsPerLiquidityInsideX128', - type: 'uint160', - }, - { internalType: 'uint32', name: 'secondsInside', type: 'uint32' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'bool', name: 'zeroForOne', type: 'bool' }, - { internalType: 'int256', name: 'amountSpecified', type: 'int256' }, - { internalType: 'uint160', name: 'sqrtPriceLimitX96', type: 'uint160' }, - { internalType: 'bytes', name: 'data', type: 'bytes' }, - ], - name: 'swap', - outputs: [ - { internalType: 'int256', name: 'amount0', type: 'int256' }, - { internalType: 'int256', name: 'amount1', type: 'int256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'int16', name: '', type: 'int16' }], - name: 'tickBitmap', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'tickSpacing', - outputs: [{ internalType: 'int24', name: '', type: 'int24' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'int24', name: '', type: 'int24' }], - name: 'ticks', - outputs: [ - { internalType: 'uint128', name: 'liquidityGross', type: 'uint128' }, - { internalType: 'int128', name: 'liquidityNet', type: 'int128' }, - { - internalType: 'uint256', - name: 'feeGrowthOutside0X128', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'feeGrowthOutside1X128', - type: 'uint256', - }, - { internalType: 'int56', name: 'tickCumulativeOutside', type: 'int56' }, - { - internalType: 'uint160', - name: 'secondsPerLiquidityOutsideX128', - type: 'uint160', - }, - { internalType: 'uint32', name: 'secondsOutside', type: 'uint32' }, - { internalType: 'bool', name: 'initialized', type: 'bool' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'token0', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'token1', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/UniswapV3OUSD_USDT.ts b/libs/shared/contracts/src/abis/UniswapV3OUSD_USDT.ts deleted file mode 100644 index 0a7cf41d0..000000000 --- a/libs/shared/contracts/src/abis/UniswapV3OUSD_USDT.ts +++ /dev/null @@ -1,643 +0,0 @@ -// DO NOT EDIT - GENERATED -export const UniswapV3OUSD_USDTABI = [ - { inputs: [], stateMutability: 'nonpayable', type: 'constructor' }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickLower', - type: 'int24', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickUpper', - type: 'int24', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - name: 'Burn', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickLower', - type: 'int24', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickUpper', - type: 'int24', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount0', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount1', - type: 'uint128', - }, - ], - name: 'Collect', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount0', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount1', - type: 'uint128', - }, - ], - name: 'CollectProtocol', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'paid0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'paid1', - type: 'uint256', - }, - ], - name: 'Flash', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint16', - name: 'observationCardinalityNextOld', - type: 'uint16', - }, - { - indexed: false, - internalType: 'uint16', - name: 'observationCardinalityNextNew', - type: 'uint16', - }, - ], - name: 'IncreaseObservationCardinalityNext', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint160', - name: 'sqrtPriceX96', - type: 'uint160', - }, - { indexed: false, internalType: 'int24', name: 'tick', type: 'int24' }, - ], - name: 'Initialize', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickLower', - type: 'int24', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickUpper', - type: 'int24', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint8', - name: 'feeProtocol0Old', - type: 'uint8', - }, - { - indexed: false, - internalType: 'uint8', - name: 'feeProtocol1Old', - type: 'uint8', - }, - { - indexed: false, - internalType: 'uint8', - name: 'feeProtocol0New', - type: 'uint8', - }, - { - indexed: false, - internalType: 'uint8', - name: 'feeProtocol1New', - type: 'uint8', - }, - ], - name: 'SetFeeProtocol', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'int256', - name: 'amount0', - type: 'int256', - }, - { - indexed: false, - internalType: 'int256', - name: 'amount1', - type: 'int256', - }, - { - indexed: false, - internalType: 'uint160', - name: 'sqrtPriceX96', - type: 'uint160', - }, - { - indexed: false, - internalType: 'uint128', - name: 'liquidity', - type: 'uint128', - }, - { indexed: false, internalType: 'int24', name: 'tick', type: 'int24' }, - ], - name: 'Swap', - type: 'event', - }, - { - inputs: [ - { internalType: 'int24', name: 'tickLower', type: 'int24' }, - { internalType: 'int24', name: 'tickUpper', type: 'int24' }, - { internalType: 'uint128', name: 'amount', type: 'uint128' }, - ], - name: 'burn', - outputs: [ - { internalType: 'uint256', name: 'amount0', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'int24', name: 'tickLower', type: 'int24' }, - { internalType: 'int24', name: 'tickUpper', type: 'int24' }, - { internalType: 'uint128', name: 'amount0Requested', type: 'uint128' }, - { internalType: 'uint128', name: 'amount1Requested', type: 'uint128' }, - ], - name: 'collect', - outputs: [ - { internalType: 'uint128', name: 'amount0', type: 'uint128' }, - { internalType: 'uint128', name: 'amount1', type: 'uint128' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint128', name: 'amount0Requested', type: 'uint128' }, - { internalType: 'uint128', name: 'amount1Requested', type: 'uint128' }, - ], - name: 'collectProtocol', - outputs: [ - { internalType: 'uint128', name: 'amount0', type: 'uint128' }, - { internalType: 'uint128', name: 'amount1', type: 'uint128' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'factory', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'fee', - outputs: [{ internalType: 'uint24', name: '', type: 'uint24' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'feeGrowthGlobal0X128', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'feeGrowthGlobal1X128', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount0', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1', type: 'uint256' }, - { internalType: 'bytes', name: 'data', type: 'bytes' }, - ], - name: 'flash', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint16', - name: 'observationCardinalityNext', - type: 'uint16', - }, - ], - name: 'increaseObservationCardinalityNext', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint160', name: 'sqrtPriceX96', type: 'uint160' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'liquidity', - outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'maxLiquidityPerTick', - outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'int24', name: 'tickLower', type: 'int24' }, - { internalType: 'int24', name: 'tickUpper', type: 'int24' }, - { internalType: 'uint128', name: 'amount', type: 'uint128' }, - { internalType: 'bytes', name: 'data', type: 'bytes' }, - ], - name: 'mint', - outputs: [ - { internalType: 'uint256', name: 'amount0', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'observations', - outputs: [ - { internalType: 'uint32', name: 'blockTimestamp', type: 'uint32' }, - { internalType: 'int56', name: 'tickCumulative', type: 'int56' }, - { - internalType: 'uint160', - name: 'secondsPerLiquidityCumulativeX128', - type: 'uint160', - }, - { internalType: 'bool', name: 'initialized', type: 'bool' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint32[]', name: 'secondsAgos', type: 'uint32[]' }, - ], - name: 'observe', - outputs: [ - { internalType: 'int56[]', name: 'tickCumulatives', type: 'int56[]' }, - { - internalType: 'uint160[]', - name: 'secondsPerLiquidityCumulativeX128s', - type: 'uint160[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - name: 'positions', - outputs: [ - { internalType: 'uint128', name: 'liquidity', type: 'uint128' }, - { - internalType: 'uint256', - name: 'feeGrowthInside0LastX128', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'feeGrowthInside1LastX128', - type: 'uint256', - }, - { internalType: 'uint128', name: 'tokensOwed0', type: 'uint128' }, - { internalType: 'uint128', name: 'tokensOwed1', type: 'uint128' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'protocolFees', - outputs: [ - { internalType: 'uint128', name: 'token0', type: 'uint128' }, - { internalType: 'uint128', name: 'token1', type: 'uint128' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint8', name: 'feeProtocol0', type: 'uint8' }, - { internalType: 'uint8', name: 'feeProtocol1', type: 'uint8' }, - ], - name: 'setFeeProtocol', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'slot0', - outputs: [ - { internalType: 'uint160', name: 'sqrtPriceX96', type: 'uint160' }, - { internalType: 'int24', name: 'tick', type: 'int24' }, - { internalType: 'uint16', name: 'observationIndex', type: 'uint16' }, - { - internalType: 'uint16', - name: 'observationCardinality', - type: 'uint16', - }, - { - internalType: 'uint16', - name: 'observationCardinalityNext', - type: 'uint16', - }, - { internalType: 'uint8', name: 'feeProtocol', type: 'uint8' }, - { internalType: 'bool', name: 'unlocked', type: 'bool' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'int24', name: 'tickLower', type: 'int24' }, - { internalType: 'int24', name: 'tickUpper', type: 'int24' }, - ], - name: 'snapshotCumulativesInside', - outputs: [ - { internalType: 'int56', name: 'tickCumulativeInside', type: 'int56' }, - { - internalType: 'uint160', - name: 'secondsPerLiquidityInsideX128', - type: 'uint160', - }, - { internalType: 'uint32', name: 'secondsInside', type: 'uint32' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'bool', name: 'zeroForOne', type: 'bool' }, - { internalType: 'int256', name: 'amountSpecified', type: 'int256' }, - { internalType: 'uint160', name: 'sqrtPriceLimitX96', type: 'uint160' }, - { internalType: 'bytes', name: 'data', type: 'bytes' }, - ], - name: 'swap', - outputs: [ - { internalType: 'int256', name: 'amount0', type: 'int256' }, - { internalType: 'int256', name: 'amount1', type: 'int256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'int16', name: '', type: 'int16' }], - name: 'tickBitmap', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'tickSpacing', - outputs: [{ internalType: 'int24', name: '', type: 'int24' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'int24', name: '', type: 'int24' }], - name: 'ticks', - outputs: [ - { internalType: 'uint128', name: 'liquidityGross', type: 'uint128' }, - { internalType: 'int128', name: 'liquidityNet', type: 'int128' }, - { - internalType: 'uint256', - name: 'feeGrowthOutside0X128', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'feeGrowthOutside1X128', - type: 'uint256', - }, - { internalType: 'int56', name: 'tickCumulativeOutside', type: 'int56' }, - { - internalType: 'uint160', - name: 'secondsPerLiquidityOutsideX128', - type: 'uint160', - }, - { internalType: 'uint32', name: 'secondsOutside', type: 'uint32' }, - { internalType: 'bool', name: 'initialized', type: 'bool' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'token0', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'token1', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/UniswapV3Quoter.ts b/libs/shared/contracts/src/abis/UniswapV3Quoter.ts deleted file mode 100644 index 6733013d4..000000000 --- a/libs/shared/contracts/src/abis/UniswapV3Quoter.ts +++ /dev/null @@ -1,82 +0,0 @@ -// DO NOT EDIT - GENERATED -export const UniswapV3QuoterABI = [ - { - inputs: [ - { internalType: 'address', name: '_factory', type: 'address' }, - { internalType: 'address', name: '_WETH9', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [], - name: 'WETH9', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'factory', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'bytes', name: 'path', type: 'bytes' }, - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - ], - name: 'quoteExactInput', - outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenIn', type: 'address' }, - { internalType: 'address', name: 'tokenOut', type: 'address' }, - { internalType: 'uint24', name: 'fee', type: 'uint24' }, - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { internalType: 'uint160', name: 'sqrtPriceLimitX96', type: 'uint160' }, - ], - name: 'quoteExactInputSingle', - outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'bytes', name: 'path', type: 'bytes' }, - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - ], - name: 'quoteExactOutput', - outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'tokenIn', type: 'address' }, - { internalType: 'address', name: 'tokenOut', type: 'address' }, - { internalType: 'uint24', name: 'fee', type: 'uint24' }, - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'uint160', name: 'sqrtPriceLimitX96', type: 'uint160' }, - ], - name: 'quoteExactOutputSingle', - outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'int256', name: 'amount0Delta', type: 'int256' }, - { internalType: 'int256', name: 'amount1Delta', type: 'int256' }, - { internalType: 'bytes', name: 'path', type: 'bytes' }, - ], - name: 'uniswapV3SwapCallback', - outputs: [], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/UniswapV3Router.ts b/libs/shared/contracts/src/abis/UniswapV3Router.ts deleted file mode 100644 index 6cfa72d83..000000000 --- a/libs/shared/contracts/src/abis/UniswapV3Router.ts +++ /dev/null @@ -1,255 +0,0 @@ -// DO NOT EDIT - GENERATED -export const UniswapV3RouterABI = [ - { - inputs: [ - { internalType: 'address', name: '_factory', type: 'address' }, - { internalType: 'address', name: '_WETH9', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [], - name: 'WETH9', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - components: [ - { internalType: 'bytes', name: 'path', type: 'bytes' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { - internalType: 'uint256', - name: 'amountOutMinimum', - type: 'uint256', - }, - ], - internalType: 'struct ISwapRouter.ExactInputParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'exactInput', - outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { internalType: 'address', name: 'tokenIn', type: 'address' }, - { internalType: 'address', name: 'tokenOut', type: 'address' }, - { internalType: 'uint24', name: 'fee', type: 'uint24' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint256', name: 'amountIn', type: 'uint256' }, - { - internalType: 'uint256', - name: 'amountOutMinimum', - type: 'uint256', - }, - { - internalType: 'uint160', - name: 'sqrtPriceLimitX96', - type: 'uint160', - }, - ], - internalType: 'struct ISwapRouter.ExactInputSingleParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'exactInputSingle', - outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { internalType: 'bytes', name: 'path', type: 'bytes' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'uint256', name: 'amountInMaximum', type: 'uint256' }, - ], - internalType: 'struct ISwapRouter.ExactOutputParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'exactOutput', - outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { internalType: 'address', name: 'tokenIn', type: 'address' }, - { internalType: 'address', name: 'tokenOut', type: 'address' }, - { internalType: 'uint24', name: 'fee', type: 'uint24' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint256', name: 'amountOut', type: 'uint256' }, - { internalType: 'uint256', name: 'amountInMaximum', type: 'uint256' }, - { - internalType: 'uint160', - name: 'sqrtPriceLimitX96', - type: 'uint160', - }, - ], - internalType: 'struct ISwapRouter.ExactOutputSingleParams', - name: 'params', - type: 'tuple', - }, - ], - name: 'exactOutputSingle', - outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [], - name: 'factory', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'bytes[]', name: 'data', type: 'bytes[]' }], - name: 'multicall', - outputs: [{ internalType: 'bytes[]', name: 'results', type: 'bytes[]' }], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [], - name: 'refundETH', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'selfPermit', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'nonce', type: 'uint256' }, - { internalType: 'uint256', name: 'expiry', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'selfPermitAllowed', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'nonce', type: 'uint256' }, - { internalType: 'uint256', name: 'expiry', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'selfPermitAllowedIfNecessary', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'selfPermitIfNecessary', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - ], - name: 'sweepToken', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'token', type: 'address' }, - { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'feeBips', type: 'uint256' }, - { internalType: 'address', name: 'feeRecipient', type: 'address' }, - ], - name: 'sweepTokenWithFee', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'int256', name: 'amount0Delta', type: 'int256' }, - { internalType: 'int256', name: 'amount1Delta', type: 'int256' }, - { internalType: 'bytes', name: '_data', type: 'bytes' }, - ], - name: 'uniswapV3SwapCallback', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - ], - name: 'unwrapWETH9', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'feeBips', type: 'uint256' }, - { internalType: 'address', name: 'feeRecipient', type: 'address' }, - ], - name: 'unwrapWETH9WithFee', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { stateMutability: 'payable', type: 'receive' }, -] as const; diff --git a/libs/shared/contracts/src/abis/UniswapV3USDC_USDT.ts b/libs/shared/contracts/src/abis/UniswapV3USDC_USDT.ts deleted file mode 100644 index fd024aa5e..000000000 --- a/libs/shared/contracts/src/abis/UniswapV3USDC_USDT.ts +++ /dev/null @@ -1,643 +0,0 @@ -// DO NOT EDIT - GENERATED -export const UniswapV3USDC_USDTABI = [ - { inputs: [], stateMutability: 'nonpayable', type: 'constructor' }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickLower', - type: 'int24', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickUpper', - type: 'int24', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - name: 'Burn', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickLower', - type: 'int24', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickUpper', - type: 'int24', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount0', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount1', - type: 'uint128', - }, - ], - name: 'Collect', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount0', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount1', - type: 'uint128', - }, - ], - name: 'CollectProtocol', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'paid0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'paid1', - type: 'uint256', - }, - ], - name: 'Flash', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint16', - name: 'observationCardinalityNextOld', - type: 'uint16', - }, - { - indexed: false, - internalType: 'uint16', - name: 'observationCardinalityNextNew', - type: 'uint16', - }, - ], - name: 'IncreaseObservationCardinalityNext', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint160', - name: 'sqrtPriceX96', - type: 'uint160', - }, - { indexed: false, internalType: 'int24', name: 'tick', type: 'int24' }, - ], - name: 'Initialize', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickLower', - type: 'int24', - }, - { - indexed: true, - internalType: 'int24', - name: 'tickUpper', - type: 'int24', - }, - { - indexed: false, - internalType: 'uint128', - name: 'amount', - type: 'uint128', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount0', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount1', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint8', - name: 'feeProtocol0Old', - type: 'uint8', - }, - { - indexed: false, - internalType: 'uint8', - name: 'feeProtocol1Old', - type: 'uint8', - }, - { - indexed: false, - internalType: 'uint8', - name: 'feeProtocol0New', - type: 'uint8', - }, - { - indexed: false, - internalType: 'uint8', - name: 'feeProtocol1New', - type: 'uint8', - }, - ], - name: 'SetFeeProtocol', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'recipient', - type: 'address', - }, - { - indexed: false, - internalType: 'int256', - name: 'amount0', - type: 'int256', - }, - { - indexed: false, - internalType: 'int256', - name: 'amount1', - type: 'int256', - }, - { - indexed: false, - internalType: 'uint160', - name: 'sqrtPriceX96', - type: 'uint160', - }, - { - indexed: false, - internalType: 'uint128', - name: 'liquidity', - type: 'uint128', - }, - { indexed: false, internalType: 'int24', name: 'tick', type: 'int24' }, - ], - name: 'Swap', - type: 'event', - }, - { - inputs: [ - { internalType: 'int24', name: 'tickLower', type: 'int24' }, - { internalType: 'int24', name: 'tickUpper', type: 'int24' }, - { internalType: 'uint128', name: 'amount', type: 'uint128' }, - ], - name: 'burn', - outputs: [ - { internalType: 'uint256', name: 'amount0', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'int24', name: 'tickLower', type: 'int24' }, - { internalType: 'int24', name: 'tickUpper', type: 'int24' }, - { internalType: 'uint128', name: 'amount0Requested', type: 'uint128' }, - { internalType: 'uint128', name: 'amount1Requested', type: 'uint128' }, - ], - name: 'collect', - outputs: [ - { internalType: 'uint128', name: 'amount0', type: 'uint128' }, - { internalType: 'uint128', name: 'amount1', type: 'uint128' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint128', name: 'amount0Requested', type: 'uint128' }, - { internalType: 'uint128', name: 'amount1Requested', type: 'uint128' }, - ], - name: 'collectProtocol', - outputs: [ - { internalType: 'uint128', name: 'amount0', type: 'uint128' }, - { internalType: 'uint128', name: 'amount1', type: 'uint128' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'factory', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'fee', - outputs: [{ internalType: 'uint24', name: '', type: 'uint24' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'feeGrowthGlobal0X128', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'feeGrowthGlobal1X128', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount0', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1', type: 'uint256' }, - { internalType: 'bytes', name: 'data', type: 'bytes' }, - ], - name: 'flash', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint16', - name: 'observationCardinalityNext', - type: 'uint16', - }, - ], - name: 'increaseObservationCardinalityNext', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint160', name: 'sqrtPriceX96', type: 'uint160' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'liquidity', - outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'maxLiquidityPerTick', - outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'int24', name: 'tickLower', type: 'int24' }, - { internalType: 'int24', name: 'tickUpper', type: 'int24' }, - { internalType: 'uint128', name: 'amount', type: 'uint128' }, - { internalType: 'bytes', name: 'data', type: 'bytes' }, - ], - name: 'mint', - outputs: [ - { internalType: 'uint256', name: 'amount0', type: 'uint256' }, - { internalType: 'uint256', name: 'amount1', type: 'uint256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'observations', - outputs: [ - { internalType: 'uint32', name: 'blockTimestamp', type: 'uint32' }, - { internalType: 'int56', name: 'tickCumulative', type: 'int56' }, - { - internalType: 'uint160', - name: 'secondsPerLiquidityCumulativeX128', - type: 'uint160', - }, - { internalType: 'bool', name: 'initialized', type: 'bool' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint32[]', name: 'secondsAgos', type: 'uint32[]' }, - ], - name: 'observe', - outputs: [ - { internalType: 'int56[]', name: 'tickCumulatives', type: 'int56[]' }, - { - internalType: 'uint160[]', - name: 'secondsPerLiquidityCumulativeX128s', - type: 'uint160[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - name: 'positions', - outputs: [ - { internalType: 'uint128', name: 'liquidity', type: 'uint128' }, - { - internalType: 'uint256', - name: 'feeGrowthInside0LastX128', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'feeGrowthInside1LastX128', - type: 'uint256', - }, - { internalType: 'uint128', name: 'tokensOwed0', type: 'uint128' }, - { internalType: 'uint128', name: 'tokensOwed1', type: 'uint128' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'protocolFees', - outputs: [ - { internalType: 'uint128', name: 'token0', type: 'uint128' }, - { internalType: 'uint128', name: 'token1', type: 'uint128' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint8', name: 'feeProtocol0', type: 'uint8' }, - { internalType: 'uint8', name: 'feeProtocol1', type: 'uint8' }, - ], - name: 'setFeeProtocol', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'slot0', - outputs: [ - { internalType: 'uint160', name: 'sqrtPriceX96', type: 'uint160' }, - { internalType: 'int24', name: 'tick', type: 'int24' }, - { internalType: 'uint16', name: 'observationIndex', type: 'uint16' }, - { - internalType: 'uint16', - name: 'observationCardinality', - type: 'uint16', - }, - { - internalType: 'uint16', - name: 'observationCardinalityNext', - type: 'uint16', - }, - { internalType: 'uint8', name: 'feeProtocol', type: 'uint8' }, - { internalType: 'bool', name: 'unlocked', type: 'bool' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'int24', name: 'tickLower', type: 'int24' }, - { internalType: 'int24', name: 'tickUpper', type: 'int24' }, - ], - name: 'snapshotCumulativesInside', - outputs: [ - { internalType: 'int56', name: 'tickCumulativeInside', type: 'int56' }, - { - internalType: 'uint160', - name: 'secondsPerLiquidityInsideX128', - type: 'uint160', - }, - { internalType: 'uint32', name: 'secondsInside', type: 'uint32' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'bool', name: 'zeroForOne', type: 'bool' }, - { internalType: 'int256', name: 'amountSpecified', type: 'int256' }, - { internalType: 'uint160', name: 'sqrtPriceLimitX96', type: 'uint160' }, - { internalType: 'bytes', name: 'data', type: 'bytes' }, - ], - name: 'swap', - outputs: [ - { internalType: 'int256', name: 'amount0', type: 'int256' }, - { internalType: 'int256', name: 'amount1', type: 'int256' }, - ], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'int16', name: '', type: 'int16' }], - name: 'tickBitmap', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'tickSpacing', - outputs: [{ internalType: 'int24', name: '', type: 'int24' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'int24', name: '', type: 'int24' }], - name: 'ticks', - outputs: [ - { internalType: 'uint128', name: 'liquidityGross', type: 'uint128' }, - { internalType: 'int128', name: 'liquidityNet', type: 'int128' }, - { - internalType: 'uint256', - name: 'feeGrowthOutside0X128', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'feeGrowthOutside1X128', - type: 'uint256', - }, - { internalType: 'int56', name: 'tickCumulativeOutside', type: 'int56' }, - { - internalType: 'uint160', - name: 'secondsPerLiquidityOutsideX128', - type: 'uint160', - }, - { internalType: 'uint32', name: 'secondsOutside', type: 'uint32' }, - { internalType: 'bool', name: 'initialized', type: 'bool' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'token0', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'token1', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/Vault.ts b/libs/shared/contracts/src/abis/Vault.ts index be2511e6f..34f71def5 100644 --- a/libs/shared/contracts/src/abis/Vault.ts +++ b/libs/shared/contracts/src/abis/Vault.ts @@ -1,21 +1,9 @@ // DO NOT EDIT - GENERATED export const VaultABI = [ - { - constant: true, - inputs: [], - name: 'depositPaused', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, { constant: false, - inputs: [ - { internalType: 'address[]', name: '_assets', type: 'address[]' }, - { internalType: 'uint256[]', name: '_amounts', type: 'uint256[]' }, - ], - name: 'mintMultiple', + inputs: [], + name: 'unpauseRebase', outputs: [], payable: false, stateMutability: 'nonpayable', @@ -39,6 +27,29 @@ export const VaultABI = [ stateMutability: 'view', type: 'function', }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_strategyAddr', type: 'address' }, + ], + name: 'harvest', + outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'uint256', name: '_amount', type: 'uint256' }, + ], + name: 'transferToken', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, { constant: true, inputs: [], @@ -48,6 +59,15 @@ export const VaultABI = [ stateMutability: 'view', type: 'function', }, + { + constant: false, + inputs: [{ internalType: 'address', name: '_addr', type: 'address' }], + name: 'removeStrategy', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, { constant: true, inputs: [], @@ -59,38 +79,67 @@ export const VaultABI = [ }, { constant: true, - inputs: [], - name: 'getAllAssets', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], + inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], + name: 'priceUSDRedeem', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_priceProvider', type: 'address' }, + ], + name: 'setPriceProvider', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [{ internalType: 'address', name: '_addr', type: 'address' }], + name: 'approveStrategy', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, { constant: false, inputs: [], - name: 'redeemAll', + name: 'pauseCapital', outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', }, { - constant: true, + constant: false, inputs: [], - name: 'getStrategyCount', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + name: 'harvest', + outputs: [], payable: false, - stateMutability: 'view', + stateMutability: 'nonpayable', type: 'function', }, { constant: false, inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, + { internalType: 'address', name: '_priceProvider', type: 'address' }, + { internalType: 'address', name: '_ousd', type: 'address' }, ], - name: 'mint', + name: 'initialize', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], + name: 'supportAsset', outputs: [], payable: false, stateMutability: 'nonpayable', @@ -132,10 +181,21 @@ export const VaultABI = [ stateMutability: 'nonpayable', type: 'function', }, + { + constant: false, + inputs: [ + { internalType: 'uint256', name: '_maxSupplyDiff', type: 'uint256' }, + ], + name: 'setMaxSupplyDiff', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, { constant: true, - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', + inputs: [{ internalType: 'string', name: 'symbol', type: 'string' }], + name: 'priceUSDMint', outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', @@ -143,9 +203,27 @@ export const VaultABI = [ }, { constant: false, - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'calculateRedeemOutputs', - outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }], + inputs: [{ internalType: 'address', name: '_address', type: 'address' }], + name: 'setStrategistAddr', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: '_strategyFromAddress', + type: 'address', + }, + { internalType: 'address', name: '_strategyToAddress', type: 'address' }, + { internalType: 'address[]', name: '_assets', type: 'address[]' }, + { internalType: 'uint256[]', name: '_amounts', type: 'uint256[]' }, + ], + name: 'reallocate', + outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', @@ -153,19 +231,30 @@ export const VaultABI = [ { constant: true, inputs: [], - name: 'rebaseHooksAddr', - outputs: [{ internalType: 'address', name: '', type: 'address' }], + name: 'maxSupplyDiff', + outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], payable: false, stateMutability: 'view', type: 'function', }, { - constant: true, - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'isSupportedAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + constant: false, + inputs: [ + { internalType: 'uint256', name: '_vaultBuffer', type: 'uint256' }, + ], + name: 'setVaultBuffer', + outputs: [], payable: false, - stateMutability: 'view', + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [], + name: 'unpauseCapital', + outputs: [], + payable: false, + stateMutability: 'nonpayable', type: 'function', }, { @@ -179,17 +268,17 @@ export const VaultABI = [ }, { constant: true, - inputs: [], - name: 'getAssetCount', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + inputs: [{ internalType: 'address', name: '', type: 'address' }], + name: 'assetDefaultStrategies', + outputs: [{ internalType: 'address', name: '', type: 'address' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, - inputs: [], - name: 'allocate', + inputs: [{ internalType: 'address', name: '_address', type: 'address' }], + name: 'setUniswapAddr', outputs: [], payable: false, stateMutability: 'nonpayable', @@ -197,9 +286,9 @@ export const VaultABI = [ }, { constant: false, - inputs: [], - name: 'rebase', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + inputs: [{ internalType: 'uint256', name: '_threshold', type: 'uint256' }], + name: 'setAutoAllocateThreshold', + outputs: [], payable: false, stateMutability: 'nonpayable', type: 'function', @@ -213,6 +302,36 @@ export const VaultABI = [ stateMutability: 'view', type: 'function', }, + { + constant: false, + inputs: [{ internalType: 'uint256', name: '_threshold', type: 'uint256' }], + name: 'setRebaseThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { internalType: 'address', name: '_asset', type: 'address' }, + { internalType: 'address', name: '_strategy', type: 'address' }, + ], + name: 'setAssetDefaultStrategy', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [], + name: 'pauseRebase', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, { constant: true, inputs: [], @@ -236,16 +355,18 @@ export const VaultABI = [ { constant: true, inputs: [], - name: 'totalValue', - outputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }], + name: 'capitalPaused', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], payable: false, stateMutability: 'view', type: 'function', }, { constant: false, - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'redeem', + inputs: [ + { internalType: 'uint256', name: '_redeemFeeBps', type: 'uint256' }, + ], + name: 'setRedeemFeeBps', outputs: [], payable: false, stateMutability: 'nonpayable', @@ -260,7 +381,6 @@ export const VaultABI = [ stateMutability: 'nonpayable', type: 'function', }, - { payable: true, stateMutability: 'payable', type: 'fallback' }, { anonymous: false, inputs: [ @@ -274,6 +394,25 @@ export const VaultABI = [ name: 'AssetSupported', type: 'event', }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: '_asset', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: '_strategy', + type: 'address', + }, + ], + name: 'AssetDefaultStrategyUpdated', + type: 'event', + }, { anonymous: false, inputs: [ @@ -284,7 +423,7 @@ export const VaultABI = [ type: 'address', }, ], - name: 'StrategyAdded', + name: 'StrategyApproved', type: 'event', }, { @@ -338,27 +477,114 @@ export const VaultABI = [ name: 'Redeem', type: 'event', }, + { anonymous: false, inputs: [], name: 'CapitalPaused', type: 'event' }, + { anonymous: false, inputs: [], name: 'CapitalUnpaused', type: 'event' }, + { anonymous: false, inputs: [], name: 'RebasePaused', type: 'event' }, + { anonymous: false, inputs: [], name: 'RebaseUnpaused', type: 'event' }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: '_vaultBuffer', + type: 'uint256', + }, + ], + name: 'VaultBufferUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: '_redeemFeeBps', + type: 'uint256', + }, + ], + name: 'RedeemFeeUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: '_priceProvider', + type: 'address', + }, + ], + name: 'PriceProviderUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'AllocateThresholdUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'RebaseThresholdUpdated', + type: 'event', + }, { anonymous: false, inputs: [ { indexed: false, - internalType: 'address[]', - name: '_strategyAddresses', - type: 'address[]', + internalType: 'address', + name: '_address', + type: 'address', }, + ], + name: 'UniswapUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ { indexed: false, - internalType: 'uint256[]', - name: 'weights', - type: 'uint256[]', + internalType: 'address', + name: '_address', + type: 'address', + }, + ], + name: 'StrategistUpdated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'maxSupplyDiff', + type: 'uint256', }, ], - name: 'StrategyWeightsUpdated', + name: 'MaxSupplyDiffChanged', type: 'event', }, - { anonymous: false, inputs: [], name: 'DepositsPaused', type: 'event' }, - { anonymous: false, inputs: [], name: 'DepositsUnpaused', type: 'event' }, { anonymous: false, inputs: [ diff --git a/libs/shared/contracts/src/abis/VaultCore.ts b/libs/shared/contracts/src/abis/VaultCore.ts index b64843a6e..7b41ad813 100644 --- a/libs/shared/contracts/src/abis/VaultCore.ts +++ b/libs/shared/contracts/src/abis/VaultCore.ts @@ -1,77 +1,5 @@ // DO NOT EDIT - GENERATED export const VaultCoreABI = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_threshold', - type: 'uint256', - }, - ], - name: 'AllocateThresholdUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_strategy', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, - ], - name: 'AssetAllocated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_strategy', - type: 'address', - }, - ], - name: 'AssetDefaultStrategyUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_asset', - type: 'address', - }, - ], - name: 'AssetSupported', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'CapitalPaused', type: 'event' }, - { anonymous: false, inputs: [], name: 'CapitalUnpaused', type: 'event' }, { anonymous: false, inputs: [ @@ -91,64 +19,6 @@ export const VaultCoreABI = [ name: 'GovernorshipTransferred', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'maxSupplyDiff', - type: 'uint256', - }, - ], - name: 'MaxSupplyDiffChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_addr', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_threshold', - type: 'uint256', - }, - ], - name: 'NetOusdMintForStrategyThresholdChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_ousdMetaStrategy', - type: 'address', - }, - ], - name: 'OusdMetaStrategyUpdated', - type: 'event', - }, { anonymous: false, inputs: [ @@ -172,210 +42,23 @@ export const VaultCoreABI = [ anonymous: false, inputs: [ { - indexed: false, - internalType: 'address', - name: '_priceProvider', - type: 'address', - }, - ], - name: 'PriceProviderUpdated', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'RebasePaused', type: 'event' }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_threshold', - type: 'uint256', - }, - ], - name: 'RebaseThresholdUpdated', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'RebaseUnpaused', type: 'event' }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_addr', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - ], - name: 'Redeem', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_redeemFeeBps', - type: 'uint256', - }, - ], - name: 'RedeemFeeUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_address', - type: 'address', - }, - ], - name: 'StrategistUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_addr', - type: 'address', - }, - ], - name: 'StrategyApproved', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_addr', - type: 'address', - }, - ], - name: 'StrategyRemoved', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, + indexed: true, internalType: 'address', - name: '_address', + name: 'implementation', type: 'address', }, ], - name: 'TrusteeAddressChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_basis', - type: 'uint256', - }, - ], - name: 'TrusteeFeeBpsChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_vaultBuffer', - type: 'uint256', - }, - ], - name: 'VaultBufferUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, internalType: 'address', name: '_to', type: 'address' }, - { - indexed: false, - internalType: 'uint256', - name: '_yield', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fee', - type: 'uint256', - }, - ], - name: 'YieldDistribution', + name: 'Upgraded', type: 'event', }, { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: 'allocate', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetDefaultStrategies', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: 'autoAllocateThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'burnForStrategy', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'calculateRedeemOutputs', - outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'capitalPaused', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'claimGovernance', @@ -383,34 +66,6 @@ export const VaultCoreABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'getAllAssets', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getAllStrategies', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getAssetCount', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getStrategyCount', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'governor', @@ -420,167 +75,55 @@ export const VaultCoreABI = [ }, { inputs: [], - name: 'isGovernor', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'isSupportedAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'maxSupplyDiff', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], + name: 'implementation', + outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - { internalType: 'uint256', name: '_minimumOusdAmount', type: 'uint256' }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], - name: 'mint', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'mintForStrategy', + name: 'initialize', outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'netOusdMintForStrategyThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'netOusdMintedForStrategy', - outputs: [{ internalType: 'int256', name: '', type: 'int256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'ousdMetaStrategy', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', + stateMutability: 'payable', type: 'function', }, { inputs: [], - name: 'priceProvider', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rebase', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'rebasePaused', + name: 'isGovernor', outputs: [{ internalType: 'bool', name: '', type: 'bool' }], stateMutability: 'view', type: 'function', }, - { - inputs: [], - name: 'rebaseThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - { internalType: 'uint256', name: '_minimumUnitAmount', type: 'uint256' }, + { internalType: 'address', name: '_newGovernor', type: 'address' }, ], - name: 'redeem', + name: 'transferGovernance', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ - { internalType: 'uint256', name: '_minimumUnitAmount', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'redeemAll', + name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [], - name: 'redeemFeeBps', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'newImpl', type: 'address' }], - name: 'setAdminImpl', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'strategistAddr', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalValue', - outputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [ - { internalType: 'address', name: '_newGovernor', type: 'address' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'transferGovernance', + name: 'upgradeToAndCall', outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'trusteeAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'trusteeFeeBps', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'vaultBuffer', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', + stateMutability: 'payable', type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/VaultProxy.ts b/libs/shared/contracts/src/abis/VaultProxy.ts index aa7c9770b..8ad33a916 100644 --- a/libs/shared/contracts/src/abis/VaultProxy.ts +++ b/libs/shared/contracts/src/abis/VaultProxy.ts @@ -1,152 +1,109 @@ // DO NOT EDIT - GENERATED export const VaultProxyABI = [ { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_threshold', - type: 'uint256', - }, - ], - name: 'AllocateThresholdUpdated', - type: 'event', + constant: true, + inputs: [], + name: 'governor', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', }, { - anonymous: false, + constant: false, inputs: [ - { - indexed: false, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_strategy', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_amount', - type: 'uint256', - }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'AssetAllocated', - type: 'event', + name: 'upgradeTo', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', }, { - anonymous: false, + constant: false, inputs: [ - { - indexed: false, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: '_strategy', - type: 'address', - }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'AssetDefaultStrategyUpdated', - type: 'event', + name: 'upgradeToAndCall', + outputs: [], + payable: true, + stateMutability: 'payable', + type: 'function', }, { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_asset', - type: 'address', - }, - ], - name: 'AssetSupported', - type: 'event', + constant: true, + inputs: [], + name: 'implementation', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', }, - { anonymous: false, inputs: [], name: 'CapitalPaused', type: 'event' }, - { anonymous: false, inputs: [], name: 'CapitalUnpaused', type: 'event' }, { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'GovernorshipTransferred', - type: 'event', + constant: false, + inputs: [], + name: 'claimGovernance', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', }, { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'maxSupplyDiff', - type: 'uint256', - }, - ], - name: 'MaxSupplyDiffChanged', - type: 'event', + constant: true, + inputs: [], + name: 'isGovernor', + outputs: [{ internalType: 'bool', name: '', type: 'bool' }], + payable: false, + stateMutability: 'view', + type: 'function', }, { - anonymous: false, + constant: false, inputs: [ - { - indexed: false, - internalType: 'address', - name: '_addr', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], - name: 'Mint', - type: 'event', + name: 'initialize', + outputs: [], + payable: true, + stateMutability: 'payable', + type: 'function', }, { - anonymous: false, + constant: false, inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_threshold', - type: 'uint256', - }, + { internalType: 'address', name: '_newGovernor', type: 'address' }, ], - name: 'NetOusdMintForStrategyThresholdChanged', - type: 'event', + name: 'transferGovernance', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', }, + { + constant: true, + inputs: [], + name: 'admin', + outputs: [{ internalType: 'address', name: '', type: 'address' }], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { payable: true, stateMutability: 'payable', type: 'fallback' }, { anonymous: false, inputs: [ { - indexed: false, + indexed: true, internalType: 'address', - name: '_ousdMetaStrategy', + name: 'implementation', type: 'address', }, ], - name: 'OusdMetaStrategyUpdated', + name: 'Upgraded', type: 'event', }, { @@ -168,536 +125,23 @@ export const VaultProxyABI = [ name: 'PendingGovernorshipTransfer', type: 'event', }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_priceProvider', - type: 'address', - }, - ], - name: 'PriceProviderUpdated', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'RebasePaused', type: 'event' }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_threshold', - type: 'uint256', - }, - ], - name: 'RebaseThresholdUpdated', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'RebaseUnpaused', type: 'event' }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_addr', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - ], - name: 'Redeem', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_redeemFeeBps', - type: 'uint256', - }, - ], - name: 'RedeemFeeUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_address', - type: 'address', - }, - ], - name: 'StrategistUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_addr', - type: 'address', - }, - ], - name: 'StrategyApproved', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_addr', - type: 'address', - }, - ], - name: 'StrategyRemoved', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_basis', - type: 'uint256', - }, - ], - name: 'SwapAllowedUndervalueChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_asset', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_basis', - type: 'uint256', - }, - ], - name: 'SwapSlippageChanged', - type: 'event', - }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', - name: '_fromAsset', + name: 'previousGovernor', type: 'address', }, { indexed: true, internalType: 'address', - name: '_toAsset', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromAssetAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_toAssetAmount', - type: 'uint256', - }, - ], - name: 'Swapped', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_address', - type: 'address', - }, - ], - name: 'SwapperChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_address', + name: 'newGovernor', type: 'address', }, ], - name: 'TrusteeAddressChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_basis', - type: 'uint256', - }, - ], - name: 'TrusteeFeeBpsChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_vaultBuffer', - type: 'uint256', - }, - ], - name: 'VaultBufferUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, internalType: 'address', name: '_to', type: 'address' }, - { - indexed: false, - internalType: 'uint256', - name: '_yield', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fee', - type: 'uint256', - }, - ], - name: 'YieldDistribution', + name: 'GovernorshipTransferred', type: 'event', }, - { stateMutability: 'payable', type: 'fallback' }, - { - inputs: [], - name: 'allocate', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'assetDefaultStrategies', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'autoAllocateThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'burnForStrategy', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'calculateRedeemOutputs', - outputs: [{ internalType: 'uint256[]', name: '', type: 'uint256[]' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'capitalPaused', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'checkBalance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'claimGovernance', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'getAllAssets', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getAllStrategies', - outputs: [{ internalType: 'address[]', name: '', type: 'address[]' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'getAssetConfig', - outputs: [ - { - components: [ - { internalType: 'bool', name: 'isSupported', type: 'bool' }, - { - internalType: 'enum VaultStorage.UnitConversion', - name: 'unitConversion', - type: 'uint8', - }, - { internalType: 'uint8', name: 'decimals', type: 'uint8' }, - { - internalType: 'uint16', - name: 'allowedOracleSlippageBps', - type: 'uint16', - }, - ], - internalType: 'struct VaultStorage.Asset', - name: 'config', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getAssetCount', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getStrategyCount', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'governor', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'isGovernor', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_asset', type: 'address' }], - name: 'isSupportedAsset', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'maxSupplyDiff', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_asset', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - { internalType: 'uint256', name: '_minimumOusdAmount', type: 'uint256' }, - ], - name: 'mint', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'mintForStrategy', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'netOusdMintForStrategyThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'netOusdMintedForStrategy', - outputs: [{ internalType: 'int256', name: '', type: 'int256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'ousdMetaStrategy', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'priceProvider', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'asset', type: 'address' }], - name: 'priceUnitMint', - outputs: [{ internalType: 'uint256', name: 'price', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'asset', type: 'address' }], - name: 'priceUnitRedeem', - outputs: [{ internalType: 'uint256', name: 'price', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rebase', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'rebasePaused', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rebaseThreshold', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - { internalType: 'uint256', name: '_minimumUnitAmount', type: 'uint256' }, - ], - name: 'redeem', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: '_minimumUnitAmount', type: 'uint256' }, - ], - name: 'redeemAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'redeemFeeBps', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'newImpl', type: 'address' }], - name: 'setAdminImpl', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'strategistAddr', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalValue', - outputs: [{ internalType: 'uint256', name: 'value', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_newGovernor', type: 'address' }, - ], - name: 'transferGovernance', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'trusteeAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'trusteeFeeBps', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'vaultBuffer', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, ] as const; diff --git a/libs/shared/contracts/src/abis/WETH.ts b/libs/shared/contracts/src/abis/WETH.ts deleted file mode 100644 index 28a96a528..000000000 --- a/libs/shared/contracts/src/abis/WETH.ts +++ /dev/null @@ -1,154 +0,0 @@ -// DO NOT EDIT - GENERATED -export const WETHABI = [ - { - constant: true, - inputs: [], - name: 'name', - outputs: [{ name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: 'guy', type: 'address' }, - { name: 'wad', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: 'src', type: 'address' }, - { name: 'dst', type: 'address' }, - { name: 'wad', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'wad', type: 'uint256' }], - name: 'withdraw', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [{ name: '', type: 'uint8' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ name: '', type: 'address' }], - name: 'balanceOf', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [{ name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: 'dst', type: 'address' }, - { name: 'wad', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'deposit', - outputs: [], - payable: true, - stateMutability: 'payable', - type: 'function', - }, - { - constant: true, - inputs: [ - { name: '', type: 'address' }, - { name: '', type: 'address' }, - ], - name: 'allowance', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { payable: true, stateMutability: 'payable', type: 'fallback' }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'src', type: 'address' }, - { indexed: true, name: 'guy', type: 'address' }, - { indexed: false, name: 'wad', type: 'uint256' }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'src', type: 'address' }, - { indexed: true, name: 'dst', type: 'address' }, - { indexed: false, name: 'wad', type: 'uint256' }, - ], - name: 'Transfer', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'dst', type: 'address' }, - { indexed: false, name: 'wad', type: 'uint256' }, - ], - name: 'Deposit', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'src', type: 'address' }, - { indexed: false, name: 'wad', type: 'uint256' }, - ], - name: 'Withdrawal', - type: 'event', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/WOETHProxy.ts b/libs/shared/contracts/src/abis/WOETHProxy.ts index 44d0693ac..6087ef7d0 100644 --- a/libs/shared/contracts/src/abis/WOETHProxy.ts +++ b/libs/shared/contracts/src/abis/WOETHProxy.ts @@ -1,70 +1,5 @@ // DO NOT EDIT - GENERATED export const WOETHProxyABI = [ - { - inputs: [ - { internalType: 'contract ERC20', name: 'underlying_', type: 'address' }, - { internalType: 'string', name: 'name_', type: 'string' }, - { internalType: 'string', name: 'symbol_', type: 'string' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - 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: 'caller', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'assets', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'shares', - type: 'uint256', - }, - ], - name: 'Deposit', - type: 'event', - }, { anonymous: false, inputs: [ @@ -106,89 +41,24 @@ export const WOETHProxyABI = [ { 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: 'caller', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'receiver', - type: 'address', - }, { indexed: true, internalType: 'address', - name: 'owner', + name: 'implementation', type: 'address', }, - { - indexed: false, - internalType: 'uint256', - name: 'assets', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'shares', - type: 'uint256', - }, ], - name: 'Withdraw', + name: 'Upgraded', type: 'event', }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, + { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: 'asset', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'claimGovernance', @@ -196,69 +66,29 @@ export const WOETHProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - name: 'convertToAssets', - outputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - name: 'convertToShares', - outputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], + name: 'governor', + outputs: [{ internalType: 'address', name: '', type: 'address' }], 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: 'uint256', name: 'assets', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - ], - name: 'deposit', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, { inputs: [], - name: 'governor', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'addedValue', type: 'uint256' }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], - name: 'increaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], name: 'initialize', outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, { @@ -268,132 +98,6 @@ export const WOETHProxyABI = [ stateMutability: 'view', type: 'function', }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'maxDeposit', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'maxMint', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'maxRedeem', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'maxWithdraw', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'shares', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - ], - name: 'mint', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - name: 'previewDeposit', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - name: 'previewMint', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - name: 'previewRedeem', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - name: 'previewWithdraw', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'shares', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - { internalType: 'address', name: 'owner', type: 'address' }, - ], - name: 'redeem', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalAssets', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'sender', type: 'address' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, { inputs: [ { internalType: 'address', name: '_newGovernor', type: 'address' }, @@ -405,23 +109,21 @@ export const WOETHProxyABI = [ }, { inputs: [ - { internalType: 'address', name: 'asset_', type: 'address' }, - { internalType: 'uint256', name: 'amount_', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'transferToken', + name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ - { internalType: 'uint256', name: 'assets', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - { internalType: 'address', name: 'owner', type: 'address' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'withdraw', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', + name: 'upgradeToAndCall', + outputs: [], + stateMutability: 'payable', type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/WOUSD.ts b/libs/shared/contracts/src/abis/WOUSD.ts deleted file mode 100644 index 0dbac0db6..000000000 --- a/libs/shared/contracts/src/abis/WOUSD.ts +++ /dev/null @@ -1,427 +0,0 @@ -// DO NOT EDIT - GENERATED -export const WOUSDABI = [ - { - inputs: [ - { internalType: 'contract ERC20', name: 'underlying_', type: 'address' }, - { internalType: 'string', name: 'name_', type: 'string' }, - { internalType: 'string', name: 'symbol_', type: 'string' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - 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: 'caller', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'assets', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'shares', - type: 'uint256', - }, - ], - name: 'Deposit', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'GovernorshipTransferred', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'previousGovernor', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'newGovernor', - type: 'address', - }, - ], - name: 'PendingGovernorshipTransfer', - 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: 'caller', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'receiver', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'assets', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'shares', - type: 'uint256', - }, - ], - name: 'Withdraw', - type: 'event', - }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'asset', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'claimGovernance', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - name: 'convertToAssets', - outputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - name: 'convertToShares', - outputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', 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: 'uint256', name: 'assets', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - ], - name: 'deposit', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'governor', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'addedValue', type: 'uint256' }, - ], - name: 'increaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'isGovernor', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'maxDeposit', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'maxMint', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'maxRedeem', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'maxWithdraw', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'shares', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - ], - name: 'mint', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - name: 'previewDeposit', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - name: 'previewMint', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - name: 'previewRedeem', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - name: 'previewWithdraw', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'shares', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - { internalType: 'address', name: 'owner', type: 'address' }, - ], - name: 'redeem', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalAssets', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'sender', type: 'address' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_newGovernor', type: 'address' }, - ], - name: 'transferGovernance', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'asset_', type: 'address' }, - { internalType: 'uint256', name: 'amount_', type: 'uint256' }, - ], - name: 'transferToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'assets', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - { internalType: 'address', name: 'owner', type: 'address' }, - ], - name: 'withdraw', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/WrappedOUSDProxy.ts b/libs/shared/contracts/src/abis/WrappedOUSDProxy.ts index 49bfd7a56..d41477ad3 100644 --- a/libs/shared/contracts/src/abis/WrappedOUSDProxy.ts +++ b/libs/shared/contracts/src/abis/WrappedOUSDProxy.ts @@ -1,70 +1,5 @@ // DO NOT EDIT - GENERATED export const WrappedOUSDProxyABI = [ - { - inputs: [ - { internalType: 'contract ERC20', name: 'underlying_', type: 'address' }, - { internalType: 'string', name: 'name_', type: 'string' }, - { internalType: 'string', name: 'symbol_', type: 'string' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - 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: 'caller', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'assets', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'shares', - type: 'uint256', - }, - ], - name: 'Deposit', - type: 'event', - }, { anonymous: false, inputs: [ @@ -106,89 +41,24 @@ export const WrappedOUSDProxyABI = [ { 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: 'caller', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'receiver', - type: 'address', - }, { indexed: true, internalType: 'address', - name: 'owner', + name: 'implementation', type: 'address', }, - { - indexed: false, - internalType: 'uint256', - name: 'assets', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'shares', - type: 'uint256', - }, ], - name: 'Withdraw', + name: 'Upgraded', type: 'event', }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, + { stateMutability: 'payable', type: 'fallback' }, { inputs: [], - name: 'asset', + name: 'admin', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], name: 'claimGovernance', @@ -196,69 +66,29 @@ export const WrappedOUSDProxyABI = [ stateMutability: 'nonpayable', type: 'function', }, - { - inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - name: 'convertToAssets', - outputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - name: 'convertToShares', - outputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, { inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], + name: 'governor', + outputs: [{ internalType: 'address', name: '', type: 'address' }], 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: 'uint256', name: 'assets', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - ], - name: 'deposit', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, { inputs: [], - name: 'governor', + name: 'implementation', outputs: [{ internalType: 'address', name: '', type: 'address' }], stateMutability: 'view', type: 'function', }, { inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'addedValue', type: 'uint256' }, + { internalType: 'address', name: '_logic', type: 'address' }, + { internalType: 'address', name: '_initGovernor', type: 'address' }, + { internalType: 'bytes', name: '_data', type: 'bytes' }, ], - name: 'increaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], name: 'initialize', outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'payable', type: 'function', }, { @@ -268,132 +98,6 @@ export const WrappedOUSDProxyABI = [ stateMutability: 'view', type: 'function', }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'maxDeposit', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'maxMint', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'maxRedeem', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'maxWithdraw', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'shares', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - ], - name: 'mint', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - name: 'previewDeposit', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - name: 'previewMint', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - name: 'previewRedeem', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - name: 'previewWithdraw', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'shares', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - { internalType: 'address', name: 'owner', type: 'address' }, - ], - name: 'redeem', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalAssets', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'sender', type: 'address' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, { inputs: [ { internalType: 'address', name: '_newGovernor', type: 'address' }, @@ -405,23 +109,21 @@ export const WrappedOUSDProxyABI = [ }, { inputs: [ - { internalType: 'address', name: 'asset_', type: 'address' }, - { internalType: 'uint256', name: 'amount_', type: 'uint256' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, ], - name: 'transferToken', + name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ - { internalType: 'uint256', name: 'assets', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - { internalType: 'address', name: 'owner', type: 'address' }, + { internalType: 'address', name: 'newImplementation', type: 'address' }, + { internalType: 'bytes', name: 'data', type: 'bytes' }, ], - name: 'withdraw', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', + name: 'upgradeToAndCall', + outputs: [], + stateMutability: 'payable', type: 'function', }, ] as const; diff --git a/libs/shared/contracts/src/abis/aTUSD.ts b/libs/shared/contracts/src/abis/aTUSD.ts deleted file mode 100644 index fe14f467a..000000000 --- a/libs/shared/contracts/src/abis/aTUSD.ts +++ /dev/null @@ -1,543 +0,0 @@ -// DO NOT EDIT - GENERATED -export const aTUSDABI = [ - { - inputs: [ - { - internalType: 'contract LendingPoolAddressesProvider', - name: '_addressesProvider', - type: 'address', - }, - { internalType: 'address', name: '_underlyingAsset', type: 'address' }, - { - internalType: 'uint8', - name: '_underlyingAssetDecimals', - type: 'uint8', - }, - { internalType: 'string', name: '_name', type: 'string' }, - { internalType: 'string', name: '_symbol', type: 'string' }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - 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: '_value', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_toBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_toIndex', - type: 'uint256', - }, - ], - name: 'BalanceTransfer', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_from', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, - ], - name: 'BurnOnLiquidation', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_from', - type: 'address', - }, - { indexed: true, internalType: 'address', name: '_to', type: 'address' }, - ], - name: 'InterestRedirectionAllowanceChanged', - 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: '_redirectedBalance', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, - ], - name: 'InterestStreamRedirected', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_from', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, - ], - name: 'MintOnDeposit', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_from', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, - ], - name: 'Redeem', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_targetAddress', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_targetBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_targetIndex', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_redirectedBalanceAdded', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_redirectedBalanceRemoved', - type: 'uint256', - }, - ], - name: 'RedirectedBalanceUpdated', - 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', - }, - { - constant: true, - inputs: [], - name: 'UINT_MAX_VALUE', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: '_to', type: 'address' }], - name: 'allowInterestRedirectionTo', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_user', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_account', type: 'address' }, - { internalType: 'uint256', name: '_value', type: 'uint256' }, - ], - name: 'burnOnLiquidation', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'subtractedValue', type: 'uint256' }, - ], - name: 'decreaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_user', type: 'address' }], - name: 'getInterestRedirectionAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_user', type: 'address' }], - name: 'getRedirectedBalance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_user', type: 'address' }], - name: 'getUserIndex', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'addedValue', type: 'uint256' }, - ], - name: 'increaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { internalType: 'address', name: '_user', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'isTransferAllowed', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_account', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'mintOnDeposit', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_user', type: 'address' }], - name: 'principalBalanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'redeem', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: '_to', type: 'address' }], - name: 'redirectInterestStream', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_from', type: 'address' }, - { internalType: 'address', name: '_to', type: 'address' }, - ], - name: 'redirectInterestStreamOf', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'sender', type: 'address' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_from', type: 'address' }, - { internalType: 'address', name: '_to', type: 'address' }, - { internalType: 'uint256', name: '_value', type: 'uint256' }, - ], - name: 'transferOnLiquidation', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'underlyingAssetAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/aUSDT.ts b/libs/shared/contracts/src/abis/aUSDT.ts deleted file mode 100644 index 5ad71a117..000000000 --- a/libs/shared/contracts/src/abis/aUSDT.ts +++ /dev/null @@ -1,543 +0,0 @@ -// DO NOT EDIT - GENERATED -export const aUSDTABI = [ - { - inputs: [ - { - internalType: 'contract LendingPoolAddressesProvider', - name: '_addressesProvider', - type: 'address', - }, - { internalType: 'address', name: '_underlyingAsset', type: 'address' }, - { - internalType: 'uint8', - name: '_underlyingAssetDecimals', - type: 'uint8', - }, - { internalType: 'string', name: '_name', type: 'string' }, - { internalType: 'string', name: '_symbol', type: 'string' }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - 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: '_value', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_toBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_toIndex', - type: 'uint256', - }, - ], - name: 'BalanceTransfer', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_from', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, - ], - name: 'BurnOnLiquidation', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_from', - type: 'address', - }, - { indexed: true, internalType: 'address', name: '_to', type: 'address' }, - ], - name: 'InterestRedirectionAllowanceChanged', - 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: '_redirectedBalance', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, - ], - name: 'InterestStreamRedirected', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_from', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, - ], - name: 'MintOnDeposit', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_from', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_value', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_fromIndex', - type: 'uint256', - }, - ], - name: 'Redeem', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: '_targetAddress', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: '_targetBalanceIncrease', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_targetIndex', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_redirectedBalanceAdded', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_redirectedBalanceRemoved', - type: 'uint256', - }, - ], - name: 'RedirectedBalanceUpdated', - 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', - }, - { - constant: true, - inputs: [], - name: 'UINT_MAX_VALUE', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: '_to', type: 'address' }], - name: 'allowInterestRedirectionTo', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_user', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_account', type: 'address' }, - { internalType: 'uint256', name: '_value', type: 'uint256' }, - ], - name: 'burnOnLiquidation', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'subtractedValue', type: 'uint256' }, - ], - name: 'decreaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_user', type: 'address' }], - name: 'getInterestRedirectionAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_user', type: 'address' }], - name: 'getRedirectedBalance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_user', type: 'address' }], - name: 'getUserIndex', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'addedValue', type: 'uint256' }, - ], - name: 'increaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { internalType: 'address', name: '_user', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'isTransferAllowed', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_account', type: 'address' }, - { internalType: 'uint256', name: '_amount', type: 'uint256' }, - ], - name: 'mintOnDeposit', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ internalType: 'address', name: '_user', type: 'address' }], - name: 'principalBalanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }], - name: 'redeem', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ internalType: 'address', name: '_to', type: 'address' }], - name: 'redirectInterestStream', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_from', type: 'address' }, - { internalType: 'address', name: '_to', type: 'address' }, - ], - name: 'redirectInterestStreamOf', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: 'sender', type: 'address' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { internalType: 'address', name: '_from', type: 'address' }, - { internalType: 'address', name: '_to', type: 'address' }, - { internalType: 'uint256', name: '_value', type: 'uint256' }, - ], - name: 'transferOnLiquidation', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'underlyingAssetAddress', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/cDAI.ts b/libs/shared/contracts/src/abis/cDAI.ts deleted file mode 100644 index eb9a5947d..000000000 --- a/libs/shared/contracts/src/abis/cDAI.ts +++ /dev/null @@ -1,964 +0,0 @@ -// DO NOT EDIT - GENERATED -export const cDAIABI = [ - { inputs: [], stateMutability: 'nonpayable', type: 'constructor' }, - { inputs: [], name: 'AcceptAdminPendingAdminCheck', type: 'error' }, - { - inputs: [ - { internalType: 'uint256', name: 'actualAddAmount', type: 'uint256' }, - ], - name: 'AddReservesFactorFreshCheck', - type: 'error', - }, - { inputs: [], name: 'BorrowCashNotAvailable', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'BorrowComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'BorrowFreshnessCheck', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'LiquidateAccrueBorrowInterestFailed', - type: 'error', - }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'LiquidateAccrueCollateralInterestFailed', - type: 'error', - }, - { inputs: [], name: 'LiquidateCloseAmountIsUintMax', type: 'error' }, - { inputs: [], name: 'LiquidateCloseAmountIsZero', type: 'error' }, - { inputs: [], name: 'LiquidateCollateralFreshnessCheck', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'LiquidateComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'LiquidateFreshnessCheck', type: 'error' }, - { inputs: [], name: 'LiquidateLiquidatorIsBorrower', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'LiquidateRepayBorrowFreshFailed', - type: 'error', - }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'LiquidateSeizeComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'LiquidateSeizeLiquidatorIsBorrower', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'MintComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'MintFreshnessCheck', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'RedeemComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'RedeemFreshnessCheck', type: 'error' }, - { inputs: [], name: 'RedeemTransferOutNotPossible', type: 'error' }, - { inputs: [], name: 'ReduceReservesAdminCheck', type: 'error' }, - { inputs: [], name: 'ReduceReservesCashNotAvailable', type: 'error' }, - { inputs: [], name: 'ReduceReservesCashValidation', type: 'error' }, - { inputs: [], name: 'ReduceReservesFreshCheck', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'RepayBorrowComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'RepayBorrowFreshnessCheck', type: 'error' }, - { inputs: [], name: 'SetComptrollerOwnerCheck', type: 'error' }, - { inputs: [], name: 'SetInterestRateModelFreshCheck', type: 'error' }, - { inputs: [], name: 'SetInterestRateModelOwnerCheck', type: 'error' }, - { inputs: [], name: 'SetPendingAdminOwnerCheck', type: 'error' }, - { inputs: [], name: 'SetReserveFactorAdminCheck', type: 'error' }, - { inputs: [], name: 'SetReserveFactorBoundsCheck', type: 'error' }, - { inputs: [], name: 'SetReserveFactorFreshCheck', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'TransferComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'TransferNotAllowed', type: 'error' }, - { inputs: [], name: 'TransferNotEnough', type: 'error' }, - { inputs: [], name: 'TransferTooMuch', type: 'error' }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'cashPrior', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'interestAccumulated', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'borrowIndex', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - ], - name: 'AccrueInterest', - 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: 'amount', - type: 'uint256', - }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'borrowAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'accountBorrows', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - ], - name: 'Borrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'liquidator', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'address', - name: 'cTokenCollateral', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'seizeTokens', - type: 'uint256', - }, - ], - name: 'LiquidateBorrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'minter', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'mintAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'mintTokens', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldAdmin', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newAdmin', - type: 'address', - }, - ], - name: 'NewAdmin', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract ComptrollerInterface', - name: 'oldComptroller', - type: 'address', - }, - { - indexed: false, - internalType: 'contract ComptrollerInterface', - name: 'newComptroller', - type: 'address', - }, - ], - name: 'NewComptroller', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract InterestRateModel', - name: 'oldInterestRateModel', - type: 'address', - }, - { - indexed: false, - internalType: 'contract InterestRateModel', - name: 'newInterestRateModel', - type: 'address', - }, - ], - name: 'NewMarketInterestRateModel', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldPendingAdmin', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newPendingAdmin', - type: 'address', - }, - ], - name: 'NewPendingAdmin', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldReserveFactorMantissa', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newReserveFactorMantissa', - type: 'uint256', - }, - ], - name: 'NewReserveFactor', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'redeemer', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'redeemAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'redeemTokens', - type: 'uint256', - }, - ], - name: 'Redeem', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'payer', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'accountBorrows', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - ], - name: 'RepayBorrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'benefactor', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'addAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newTotalReserves', - type: 'uint256', - }, - ], - name: 'ReservesAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'admin', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'reduceAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newTotalReserves', - type: 'uint256', - }, - ], - name: 'ReservesReduced', - 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: 'Transfer', - type: 'event', - }, - { - inputs: [], - name: 'NO_ERROR', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: '_acceptAdmin', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'addAmount', type: 'uint256' }], - name: '_addReserves', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'bytes', name: 'data', type: 'bytes' }], - name: '_becomeImplementation', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'compLikeDelegatee', type: 'address' }, - ], - name: '_delegateCompLikeTo', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'reduceAmount', type: 'uint256' }, - ], - name: '_reduceReserves', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: '_resignImplementation', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract ComptrollerInterface', - name: 'newComptroller', - type: 'address', - }, - ], - name: '_setComptroller', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract InterestRateModel', - name: 'newInterestRateModel', - type: 'address', - }, - ], - name: '_setInterestRateModel', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address payable', - name: 'newPendingAdmin', - type: 'address', - }, - ], - name: '_setPendingAdmin', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'newReserveFactorMantissa', - type: 'uint256', - }, - ], - name: '_setReserveFactor', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'accrualBlockNumber', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'accrueInterest', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'admin', - outputs: [{ internalType: 'address payable', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'balanceOfUnderlying', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'borrowAmount', type: 'uint256' }, - ], - name: 'borrow', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'borrowBalanceCurrent', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'borrowBalanceStored', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'borrowIndex', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'borrowRatePerBlock', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'comptroller', - outputs: [ - { - internalType: 'contract ComptrollerInterface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'exchangeRateCurrent', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'exchangeRateStored', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'getAccountSnapshot', - outputs: [ - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getCash', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'implementation', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'underlying_', type: 'address' }, - { - internalType: 'contract ComptrollerInterface', - name: 'comptroller_', - type: 'address', - }, - { - internalType: 'contract InterestRateModel', - name: 'interestRateModel_', - type: 'address', - }, - { - internalType: 'uint256', - name: 'initialExchangeRateMantissa_', - type: 'uint256', - }, - { internalType: 'string', name: 'name_', type: 'string' }, - { internalType: 'string', name: 'symbol_', type: 'string' }, - { internalType: 'uint8', name: 'decimals_', type: 'uint8' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract ComptrollerInterface', - name: 'comptroller_', - type: 'address', - }, - { - internalType: 'contract InterestRateModel', - name: 'interestRateModel_', - type: 'address', - }, - { - internalType: 'uint256', - name: 'initialExchangeRateMantissa_', - type: 'uint256', - }, - { internalType: 'string', name: 'name_', type: 'string' }, - { internalType: 'string', name: 'symbol_', type: 'string' }, - { internalType: 'uint8', name: 'decimals_', type: 'uint8' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'interestRateModel', - outputs: [ - { internalType: 'contract InterestRateModel', name: '', type: 'address' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'isCToken', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'borrower', type: 'address' }, - { internalType: 'uint256', name: 'repayAmount', type: 'uint256' }, - { - internalType: 'contract CTokenInterface', - name: 'cTokenCollateral', - type: 'address', - }, - ], - name: 'liquidateBorrow', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'mintAmount', type: 'uint256' }], - name: 'mint', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pendingAdmin', - outputs: [{ internalType: 'address payable', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'protocolSeizeShareMantissa', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'redeemTokens', type: 'uint256' }, - ], - name: 'redeem', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'redeemAmount', type: 'uint256' }, - ], - name: 'redeemUnderlying', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'repayAmount', type: 'uint256' }], - name: 'repayBorrow', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'borrower', type: 'address' }, - { internalType: 'uint256', name: 'repayAmount', type: 'uint256' }, - ], - name: 'repayBorrowBehalf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'reserveFactorMantissa', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'liquidator', type: 'address' }, - { internalType: 'address', name: 'borrower', type: 'address' }, - { internalType: 'uint256', name: 'seizeTokens', type: 'uint256' }, - ], - name: 'seize', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'supplyRatePerBlock', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract EIP20NonStandardInterface', - name: 'token', - type: 'address', - }, - ], - name: 'sweepToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalBorrows', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalBorrowsCurrent', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'totalReserves', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'dst', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'src', type: 'address' }, - { internalType: 'address', name: 'dst', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'underlying', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/cUSDC.ts b/libs/shared/contracts/src/abis/cUSDC.ts deleted file mode 100644 index afaae0124..000000000 --- a/libs/shared/contracts/src/abis/cUSDC.ts +++ /dev/null @@ -1,610 +0,0 @@ -// DO NOT EDIT - GENERATED -export const cUSDCABI = [ - { - constant: true, - inputs: [], - name: 'name', - outputs: [{ name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: 'spender', type: 'address' }, - { name: 'amount', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'repayAmount', type: 'uint256' }], - name: 'repayBorrow', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'reserveFactorMantissa', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'account', type: 'address' }], - name: 'borrowBalanceCurrent', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'exchangeRateStored', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: 'src', type: 'address' }, - { name: 'dst', type: 'address' }, - { name: 'amount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: 'borrower', type: 'address' }, - { name: 'repayAmount', type: 'uint256' }, - ], - name: 'repayBorrowBehalf', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'pendingAdmin', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'owner', type: 'address' }], - name: 'balanceOfUnderlying', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getCash', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'newComptroller', type: 'address' }], - name: '_setComptroller', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalBorrows', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'comptroller', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'reduceAmount', type: 'uint256' }], - name: '_reduceReserves', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'initialExchangeRateMantissa', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'accrualBlockNumber', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'underlying', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ name: 'owner', type: 'address' }], - name: 'balanceOf', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'totalBorrowsCurrent', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'redeemAmount', type: 'uint256' }], - name: 'redeemUnderlying', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalReserves', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [{ name: '', type: 'string' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ name: 'account', type: 'address' }], - name: 'borrowBalanceStored', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'mintAmount', type: 'uint256' }], - name: 'mint', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'accrueInterest', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: 'dst', type: 'address' }, - { name: 'amount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'borrowIndex', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'supplyRatePerBlock', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: 'liquidator', type: 'address' }, - { name: 'borrower', type: 'address' }, - { name: 'seizeTokens', type: 'uint256' }, - ], - name: 'seize', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'newPendingAdmin', type: 'address' }], - name: '_setPendingAdmin', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'exchangeRateCurrent', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ name: 'account', type: 'address' }], - name: 'getAccountSnapshot', - outputs: [ - { name: '', type: 'uint256' }, - { name: '', type: 'uint256' }, - { name: '', type: 'uint256' }, - { name: '', type: 'uint256' }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'borrowAmount', type: 'uint256' }], - name: 'borrow', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'redeemTokens', type: 'uint256' }], - name: 'redeem', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { name: 'owner', type: 'address' }, - { name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: '_acceptAdmin', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'newInterestRateModel', type: 'address' }], - name: '_setInterestRateModel', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'interestRateModel', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: 'borrower', type: 'address' }, - { name: 'repayAmount', type: 'uint256' }, - { name: 'cTokenCollateral', type: 'address' }, - ], - name: 'liquidateBorrow', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'admin', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'borrowRatePerBlock', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: 'newReserveFactorMantissa', type: 'uint256' }], - name: '_setReserveFactor', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'isCToken', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { name: 'underlying_', type: 'address' }, - { name: 'comptroller_', type: 'address' }, - { name: 'interestRateModel_', type: 'address' }, - { name: 'initialExchangeRateMantissa_', type: 'uint256' }, - { name: 'name_', type: 'string' }, - { name: 'symbol_', type: 'string' }, - { name: 'decimals_', type: 'uint256' }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'interestAccumulated', type: 'uint256' }, - { indexed: false, name: 'borrowIndex', type: 'uint256' }, - { indexed: false, name: 'totalBorrows', type: 'uint256' }, - ], - name: 'AccrueInterest', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'minter', type: 'address' }, - { indexed: false, name: 'mintAmount', type: 'uint256' }, - { indexed: false, name: 'mintTokens', type: 'uint256' }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'redeemer', type: 'address' }, - { indexed: false, name: 'redeemAmount', type: 'uint256' }, - { indexed: false, name: 'redeemTokens', type: 'uint256' }, - ], - name: 'Redeem', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'borrower', type: 'address' }, - { indexed: false, name: 'borrowAmount', type: 'uint256' }, - { indexed: false, name: 'accountBorrows', type: 'uint256' }, - { indexed: false, name: 'totalBorrows', type: 'uint256' }, - ], - name: 'Borrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'payer', type: 'address' }, - { indexed: false, name: 'borrower', type: 'address' }, - { indexed: false, name: 'repayAmount', type: 'uint256' }, - { indexed: false, name: 'accountBorrows', type: 'uint256' }, - { indexed: false, name: 'totalBorrows', type: 'uint256' }, - ], - name: 'RepayBorrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'liquidator', type: 'address' }, - { indexed: false, name: 'borrower', type: 'address' }, - { indexed: false, name: 'repayAmount', type: 'uint256' }, - { indexed: false, name: 'cTokenCollateral', type: 'address' }, - { indexed: false, name: 'seizeTokens', type: 'uint256' }, - ], - name: 'LiquidateBorrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'oldPendingAdmin', type: 'address' }, - { indexed: false, name: 'newPendingAdmin', type: 'address' }, - ], - name: 'NewPendingAdmin', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'oldAdmin', type: 'address' }, - { indexed: false, name: 'newAdmin', type: 'address' }, - ], - name: 'NewAdmin', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'oldComptroller', type: 'address' }, - { indexed: false, name: 'newComptroller', type: 'address' }, - ], - name: 'NewComptroller', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'oldInterestRateModel', type: 'address' }, - { indexed: false, name: 'newInterestRateModel', type: 'address' }, - ], - name: 'NewMarketInterestRateModel', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'oldReserveFactorMantissa', type: 'uint256' }, - { indexed: false, name: 'newReserveFactorMantissa', type: 'uint256' }, - ], - name: 'NewReserveFactor', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'admin', type: 'address' }, - { indexed: false, name: 'reduceAmount', type: 'uint256' }, - { indexed: false, name: 'newTotalReserves', type: 'uint256' }, - ], - name: 'ReservesReduced', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'error', type: 'uint256' }, - { indexed: false, name: 'info', type: 'uint256' }, - { indexed: false, name: 'detail', type: 'uint256' }, - ], - name: 'Failure', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'from', type: 'address' }, - { indexed: true, name: 'to', type: 'address' }, - { indexed: false, name: 'amount', type: 'uint256' }, - ], - name: 'Transfer', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'owner', type: 'address' }, - { indexed: true, name: 'spender', type: 'address' }, - { indexed: false, name: 'amount', type: 'uint256' }, - ], - name: 'Approval', - type: 'event', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/cUSDT.ts b/libs/shared/contracts/src/abis/cUSDT.ts deleted file mode 100644 index e9a88a12f..000000000 --- a/libs/shared/contracts/src/abis/cUSDT.ts +++ /dev/null @@ -1,964 +0,0 @@ -// DO NOT EDIT - GENERATED -export const cUSDTABI = [ - { inputs: [], stateMutability: 'nonpayable', type: 'constructor' }, - { inputs: [], name: 'AcceptAdminPendingAdminCheck', type: 'error' }, - { - inputs: [ - { internalType: 'uint256', name: 'actualAddAmount', type: 'uint256' }, - ], - name: 'AddReservesFactorFreshCheck', - type: 'error', - }, - { inputs: [], name: 'BorrowCashNotAvailable', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'BorrowComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'BorrowFreshnessCheck', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'LiquidateAccrueBorrowInterestFailed', - type: 'error', - }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'LiquidateAccrueCollateralInterestFailed', - type: 'error', - }, - { inputs: [], name: 'LiquidateCloseAmountIsUintMax', type: 'error' }, - { inputs: [], name: 'LiquidateCloseAmountIsZero', type: 'error' }, - { inputs: [], name: 'LiquidateCollateralFreshnessCheck', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'LiquidateComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'LiquidateFreshnessCheck', type: 'error' }, - { inputs: [], name: 'LiquidateLiquidatorIsBorrower', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'LiquidateRepayBorrowFreshFailed', - type: 'error', - }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'LiquidateSeizeComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'LiquidateSeizeLiquidatorIsBorrower', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'MintComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'MintFreshnessCheck', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'RedeemComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'RedeemFreshnessCheck', type: 'error' }, - { inputs: [], name: 'RedeemTransferOutNotPossible', type: 'error' }, - { inputs: [], name: 'ReduceReservesAdminCheck', type: 'error' }, - { inputs: [], name: 'ReduceReservesCashNotAvailable', type: 'error' }, - { inputs: [], name: 'ReduceReservesCashValidation', type: 'error' }, - { inputs: [], name: 'ReduceReservesFreshCheck', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'RepayBorrowComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'RepayBorrowFreshnessCheck', type: 'error' }, - { inputs: [], name: 'SetComptrollerOwnerCheck', type: 'error' }, - { inputs: [], name: 'SetInterestRateModelFreshCheck', type: 'error' }, - { inputs: [], name: 'SetInterestRateModelOwnerCheck', type: 'error' }, - { inputs: [], name: 'SetPendingAdminOwnerCheck', type: 'error' }, - { inputs: [], name: 'SetReserveFactorAdminCheck', type: 'error' }, - { inputs: [], name: 'SetReserveFactorBoundsCheck', type: 'error' }, - { inputs: [], name: 'SetReserveFactorFreshCheck', type: 'error' }, - { - inputs: [{ internalType: 'uint256', name: 'errorCode', type: 'uint256' }], - name: 'TransferComptrollerRejection', - type: 'error', - }, - { inputs: [], name: 'TransferNotAllowed', type: 'error' }, - { inputs: [], name: 'TransferNotEnough', type: 'error' }, - { inputs: [], name: 'TransferTooMuch', type: 'error' }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'cashPrior', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'interestAccumulated', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'borrowIndex', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - ], - name: 'AccrueInterest', - 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: 'amount', - type: 'uint256', - }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'borrowAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'accountBorrows', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - ], - name: 'Borrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'liquidator', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'address', - name: 'cTokenCollateral', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'seizeTokens', - type: 'uint256', - }, - ], - name: 'LiquidateBorrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'minter', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'mintAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'mintTokens', - type: 'uint256', - }, - ], - name: 'Mint', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldAdmin', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newAdmin', - type: 'address', - }, - ], - name: 'NewAdmin', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract ComptrollerInterface', - name: 'oldComptroller', - type: 'address', - }, - { - indexed: false, - internalType: 'contract ComptrollerInterface', - name: 'newComptroller', - type: 'address', - }, - ], - name: 'NewComptroller', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'contract InterestRateModel', - name: 'oldInterestRateModel', - type: 'address', - }, - { - indexed: false, - internalType: 'contract InterestRateModel', - name: 'newInterestRateModel', - type: 'address', - }, - ], - name: 'NewMarketInterestRateModel', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldPendingAdmin', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newPendingAdmin', - type: 'address', - }, - ], - name: 'NewPendingAdmin', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'oldReserveFactorMantissa', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newReserveFactorMantissa', - type: 'uint256', - }, - ], - name: 'NewReserveFactor', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'redeemer', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'redeemAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'redeemTokens', - type: 'uint256', - }, - ], - name: 'Redeem', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'payer', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'borrower', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'repayAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'accountBorrows', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'totalBorrows', - type: 'uint256', - }, - ], - name: 'RepayBorrow', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'benefactor', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'addAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newTotalReserves', - type: 'uint256', - }, - ], - name: 'ReservesAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'admin', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'reduceAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newTotalReserves', - type: 'uint256', - }, - ], - name: 'ReservesReduced', - 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: 'Transfer', - type: 'event', - }, - { - inputs: [], - name: 'NO_ERROR', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: '_acceptAdmin', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'addAmount', type: 'uint256' }], - name: '_addReserves', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'bytes', name: 'data', type: 'bytes' }], - name: '_becomeImplementation', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'compLikeDelegatee', type: 'address' }, - ], - name: '_delegateCompLikeTo', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'reduceAmount', type: 'uint256' }, - ], - name: '_reduceReserves', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: '_resignImplementation', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract ComptrollerInterface', - name: 'newComptroller', - type: 'address', - }, - ], - name: '_setComptroller', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract InterestRateModel', - name: 'newInterestRateModel', - type: 'address', - }, - ], - name: '_setInterestRateModel', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address payable', - name: 'newPendingAdmin', - type: 'address', - }, - ], - name: '_setPendingAdmin', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'newReserveFactorMantissa', - type: 'uint256', - }, - ], - name: '_setReserveFactor', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'accrualBlockNumber', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'accrueInterest', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'admin', - outputs: [{ internalType: 'address payable', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'balanceOfUnderlying', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'borrowAmount', type: 'uint256' }, - ], - name: 'borrow', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'borrowBalanceCurrent', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'borrowBalanceStored', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'borrowIndex', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'borrowRatePerBlock', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'comptroller', - outputs: [ - { - internalType: 'contract ComptrollerInterface', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'exchangeRateCurrent', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'exchangeRateStored', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'getAccountSnapshot', - outputs: [ - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getCash', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'implementation', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'underlying_', type: 'address' }, - { - internalType: 'contract ComptrollerInterface', - name: 'comptroller_', - type: 'address', - }, - { - internalType: 'contract InterestRateModel', - name: 'interestRateModel_', - type: 'address', - }, - { - internalType: 'uint256', - name: 'initialExchangeRateMantissa_', - type: 'uint256', - }, - { internalType: 'string', name: 'name_', type: 'string' }, - { internalType: 'string', name: 'symbol_', type: 'string' }, - { internalType: 'uint8', name: 'decimals_', type: 'uint8' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract ComptrollerInterface', - name: 'comptroller_', - type: 'address', - }, - { - internalType: 'contract InterestRateModel', - name: 'interestRateModel_', - type: 'address', - }, - { - internalType: 'uint256', - name: 'initialExchangeRateMantissa_', - type: 'uint256', - }, - { internalType: 'string', name: 'name_', type: 'string' }, - { internalType: 'string', name: 'symbol_', type: 'string' }, - { internalType: 'uint8', name: 'decimals_', type: 'uint8' }, - ], - name: 'initialize', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'interestRateModel', - outputs: [ - { internalType: 'contract InterestRateModel', name: '', type: 'address' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'isCToken', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'borrower', type: 'address' }, - { internalType: 'uint256', name: 'repayAmount', type: 'uint256' }, - { - internalType: 'contract CTokenInterface', - name: 'cTokenCollateral', - type: 'address', - }, - ], - name: 'liquidateBorrow', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'mintAmount', type: 'uint256' }], - name: 'mint', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pendingAdmin', - outputs: [{ internalType: 'address payable', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'protocolSeizeShareMantissa', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'redeemTokens', type: 'uint256' }, - ], - name: 'redeem', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'redeemAmount', type: 'uint256' }, - ], - name: 'redeemUnderlying', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'repayAmount', type: 'uint256' }], - name: 'repayBorrow', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'borrower', type: 'address' }, - { internalType: 'uint256', name: 'repayAmount', type: 'uint256' }, - ], - name: 'repayBorrowBehalf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'reserveFactorMantissa', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'liquidator', type: 'address' }, - { internalType: 'address', name: 'borrower', type: 'address' }, - { internalType: 'uint256', name: 'seizeTokens', type: 'uint256' }, - ], - name: 'seize', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'supplyRatePerBlock', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'contract EIP20NonStandardInterface', - name: 'token', - type: 'address', - }, - ], - name: 'sweepToken', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalBorrows', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalBorrowsCurrent', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'totalReserves', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'dst', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'src', type: 'address' }, - { internalType: 'address', name: 'dst', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'underlying', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/frxETH.ts b/libs/shared/contracts/src/abis/frxETH.ts deleted file mode 100644 index 9d4ce25fc..000000000 --- a/libs/shared/contracts/src/abis/frxETH.ts +++ /dev/null @@ -1,390 +0,0 @@ -// DO NOT EDIT - GENERATED -export const frxETHABI = [ - { - inputs: [ - { internalType: 'address', name: '_creator_address', type: 'address' }, - { internalType: 'address', name: '_timelock_address', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - 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: 'minter_address', - type: 'address', - }, - ], - name: 'MinterAdded', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'minter_address', - type: 'address', - }, - ], - name: 'MinterRemoved', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'oldOwner', - type: 'address', - }, - { - indexed: false, - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'OwnerChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'OwnerNominated', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'timelock_address', - type: 'address', - }, - ], - name: 'TimelockChanged', - 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: 'TokenMinterBurned', - 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: 'TokenMinterMinted', - 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', - }, - { - inputs: [], - name: 'DOMAIN_SEPARATOR', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'acceptOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'minter_address', type: 'address' }, - ], - name: 'addMinter', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', 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' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'amount', type: 'uint256' }], - name: 'burn', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'account', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'burnFrom', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', 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: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'addedValue', type: 'uint256' }, - ], - name: 'increaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'b_address', type: 'address' }, - { internalType: 'uint256', name: 'b_amount', type: 'uint256' }, - ], - name: 'minter_burn_from', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'm_address', type: 'address' }, - { internalType: 'uint256', name: 'm_amount', type: 'uint256' }, - ], - name: 'minter_mint', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'minters', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - name: 'minters_array', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '_owner', type: 'address' }], - name: 'nominateNewOwner', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'nominatedOwner', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'nonces', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'permit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'minter_address', type: 'address' }, - ], - name: 'removeMinter', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '_timelock_address', type: 'address' }, - ], - name: 'setTimelock', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'timelock_address', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'from', type: 'address' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/json/Aave.json b/libs/shared/contracts/src/abis/json/Aave.json deleted file mode 100644 index d9a0b1a15..000000000 --- a/libs/shared/contracts/src/abis/json/Aave.json +++ /dev/null @@ -1,495 +0,0 @@ -{ - "name": "Aave", - "address": "0x24a42fD28C976A61Df5D00D0599C34c4f90748c8", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "EthereumAddressUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "FeeProviderUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "LendingPoolConfiguratorUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "LendingPoolCoreUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "LendingPoolDataProviderUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "LendingPoolLiquidationManagerUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "LendingPoolManagerUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "LendingPoolParametersProviderUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "LendingPoolUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "LendingRateOracleUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "PriceOracleUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "id", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "ProxyCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "TokenDistributorUpdated", - "type": "event" - }, - { - "constant": true, - "inputs": [ - { "internalType": "bytes32", "name": "_key", "type": "bytes32" } - ], - "name": "getAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getFeeProvider", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getLendingPool", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getLendingPoolConfigurator", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getLendingPoolCore", - "outputs": [ - { "internalType": "address payable", "name": "", "type": "address" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getLendingPoolDataProvider", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getLendingPoolLiquidationManager", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getLendingPoolManager", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getLendingPoolParametersProvider", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getLendingRateOracle", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getPriceOracle", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getTokenDistributor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isOwner", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_feeProvider", "type": "address" } - ], - "name": "setFeeProviderImpl", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_configurator", - "type": "address" - } - ], - "name": "setLendingPoolConfiguratorImpl", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_lendingPoolCore", - "type": "address" - } - ], - "name": "setLendingPoolCoreImpl", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_provider", "type": "address" } - ], - "name": "setLendingPoolDataProviderImpl", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_pool", "type": "address" } - ], - "name": "setLendingPoolImpl", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_manager", "type": "address" } - ], - "name": "setLendingPoolLiquidationManager", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_lendingPoolManager", - "type": "address" - } - ], - "name": "setLendingPoolManager", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_parametersProvider", - "type": "address" - } - ], - "name": "setLendingPoolParametersProviderImpl", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_lendingRateOracle", - "type": "address" - } - ], - "name": "setLendingRateOracle", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_priceOracle", "type": "address" } - ], - "name": "setPriceOracle", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_tokenDistributor", - "type": "address" - } - ], - "name": "setTokenDistributor", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "newOwner", "type": "address" } - ], - "name": "transferOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/AaveStrategy.json b/libs/shared/contracts/src/abis/json/AaveStrategy.json deleted file mode 100644 index 43695c888..000000000 --- a/libs/shared/contracts/src/abis/json/AaveStrategy.json +++ /dev/null @@ -1,497 +0,0 @@ -{ - "name": "AaveStrategy", - "address": "0x4F424C6f066ae74784f3595A3A84923ad36d5471", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "incentivesController", - "outputs": [ - { - "internalType": "contract IAaveIncentivesController", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { - "internalType": "address[]", - "name": "_pTokens", - "type": "address[]" - }, - { - "internalType": "address", - "name": "_incentivesAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_stkAaveAddress", - "type": "address" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "stkAave", - "outputs": [ - { - "internalType": "contract IAaveStakedToken", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/AaveStrategyProxy.json b/libs/shared/contracts/src/abis/json/AaveStrategyProxy.json deleted file mode 100644 index 97ea4ff19..000000000 --- a/libs/shared/contracts/src/abis/json/AaveStrategyProxy.json +++ /dev/null @@ -1,497 +0,0 @@ -{ - "name": "AaveStrategyProxy", - "address": "0x5e3646A1Db86993f73E6b74A57D8640B69F7e259", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "incentivesController", - "outputs": [ - { - "internalType": "contract IAaveIncentivesController", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { - "internalType": "address[]", - "name": "_pTokens", - "type": "address[]" - }, - { - "internalType": "address", - "name": "_incentivesAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_stkAaveAddress", - "type": "address" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "stkAave", - "outputs": [ - { - "internalType": "contract IAaveStakedToken", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/Buyback.json b/libs/shared/contracts/src/abis/json/Buyback.json deleted file mode 100644 index cc6e58dae..000000000 --- a/libs/shared/contracts/src/abis/json/Buyback.json +++ /dev/null @@ -1,191 +0,0 @@ -{ - "name": "Buyback", - "address": "0x6C5cdfB47150EFc52072cB93Eea1e0F123529748", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_uniswapAddr", - "type": "address" - }, - { - "internalType": "address", - "name": "_strategistAddr", - "type": "address" - }, - { "internalType": "address", "name": "_ousd", "type": "address" }, - { "internalType": "address", "name": "_ogv", "type": "address" }, - { "internalType": "address", "name": "_usdt", "type": "address" }, - { "internalType": "address", "name": "_weth9", "type": "address" }, - { - "internalType": "address", - "name": "_rewardsSource", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "StrategistUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "UniswapUpdated", - "type": "event" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rewardsSource", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_address", "type": "address" } - ], - "name": "setStrategistAddr", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_address", "type": "address" } - ], - "name": "setUniswapAddr", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "strategistAddr", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "swap", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "ousdAmount", "type": "uint256" }, - { "internalType": "uint256", "name": "minExpected", "type": "uint256" } - ], - "name": "swapNow", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "uniswapAddr", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/COMP.json b/libs/shared/contracts/src/abis/json/COMP.json deleted file mode 100644 index 05bc17915..000000000 --- a/libs/shared/contracts/src/abis/json/COMP.json +++ /dev/null @@ -1,320 +0,0 @@ -{ - "name": "COMP", - "address": "0xc00e94Cb662C3520282E6f5717214004A7f26888", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "delegator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "fromDelegate", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "toDelegate", - "type": "address" - } - ], - "name": "DelegateChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "delegate", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "previousBalance", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newBalance", - "type": "uint256" - } - ], - "name": "DelegateVotesChanged", - "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": "Transfer", - "type": "event" - }, - { - "constant": true, - "inputs": [], - "name": "DELEGATION_TYPEHASH", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "DOMAIN_TYPEHASH", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "rawAmount", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "uint32", "name": "", "type": "uint32" } - ], - "name": "checkpoints", - "outputs": [ - { "internalType": "uint32", "name": "fromBlock", "type": "uint32" }, - { "internalType": "uint96", "name": "votes", "type": "uint96" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "delegatee", "type": "address" } - ], - "name": "delegate", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "delegatee", "type": "address" }, - { "internalType": "uint256", "name": "nonce", "type": "uint256" }, - { "internalType": "uint256", "name": "expiry", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "delegateBySig", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "delegates", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "getCurrentVotes", - "outputs": [{ "internalType": "uint96", "name": "", "type": "uint96" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "uint256", "name": "blockNumber", "type": "uint256" } - ], - "name": "getPriorVotes", - "outputs": [{ "internalType": "uint96", "name": "", "type": "uint96" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "nonces", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "numCheckpoints", - "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "dst", "type": "address" }, - { "internalType": "uint256", "name": "rawAmount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "src", "type": "address" }, - { "internalType": "address", "name": "dst", "type": "address" }, - { "internalType": "uint256", "name": "rawAmount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ChainlinkDAI_ETH.json b/libs/shared/contracts/src/abis/json/ChainlinkDAI_ETH.json deleted file mode 100644 index 20ef9aae4..000000000 --- a/libs/shared/contracts/src/abis/json/ChainlinkDAI_ETH.json +++ /dev/null @@ -1,347 +0,0 @@ -{ - "name": "ChainlinkDAI_ETH", - "address": "0x773616E4d11A78F511299002da57A0a94577F1f4", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" }, - { - "internalType": "address", - "name": "_accessController", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "int256", - "name": "current", - "type": "int256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "roundId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "updatedAt", - "type": "uint256" - } - ], - "name": "AnswerUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "roundId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "startedBy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "startedAt", - "type": "uint256" - } - ], - "name": "NewRound", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferRequested", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "acceptOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "accessController", - "outputs": [ - { - "internalType": "contract AccessControllerInterface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "aggregator", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" } - ], - "name": "confirmAggregator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "description", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_roundId", "type": "uint256" } - ], - "name": "getAnswer", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint80", "name": "_roundId", "type": "uint80" } - ], - "name": "getRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_roundId", "type": "uint256" } - ], - "name": "getTimestamp", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestAnswer", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestRound", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestTimestamp", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { "internalType": "address payable", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], - "name": "phaseAggregators", - "outputs": [ - { - "internalType": "contract AggregatorV2V3Interface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "phaseId", - "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" } - ], - "name": "proposeAggregator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "proposedAggregator", - "outputs": [ - { - "internalType": "contract AggregatorV2V3Interface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint80", "name": "_roundId", "type": "uint80" } - ], - "name": "proposedGetRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "proposedLatestRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_accessController", - "type": "address" - } - ], - "name": "setController", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "version", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ChainlinkETH_USD.json b/libs/shared/contracts/src/abis/json/ChainlinkETH_USD.json deleted file mode 100644 index 7eb537a93..000000000 --- a/libs/shared/contracts/src/abis/json/ChainlinkETH_USD.json +++ /dev/null @@ -1,347 +0,0 @@ -{ - "name": "ChainlinkETH_USD", - "address": "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" }, - { - "internalType": "address", - "name": "_accessController", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "int256", - "name": "current", - "type": "int256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "roundId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "updatedAt", - "type": "uint256" - } - ], - "name": "AnswerUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "roundId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "startedBy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "startedAt", - "type": "uint256" - } - ], - "name": "NewRound", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferRequested", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "acceptOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "accessController", - "outputs": [ - { - "internalType": "contract AccessControllerInterface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "aggregator", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" } - ], - "name": "confirmAggregator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "description", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_roundId", "type": "uint256" } - ], - "name": "getAnswer", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint80", "name": "_roundId", "type": "uint80" } - ], - "name": "getRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_roundId", "type": "uint256" } - ], - "name": "getTimestamp", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestAnswer", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestRound", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestTimestamp", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { "internalType": "address payable", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], - "name": "phaseAggregators", - "outputs": [ - { - "internalType": "contract AggregatorV2V3Interface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "phaseId", - "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" } - ], - "name": "proposeAggregator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "proposedAggregator", - "outputs": [ - { - "internalType": "contract AggregatorV2V3Interface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint80", "name": "_roundId", "type": "uint80" } - ], - "name": "proposedGetRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "proposedLatestRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_accessController", - "type": "address" - } - ], - "name": "setController", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "version", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ChainlinkFAST_GAS.json b/libs/shared/contracts/src/abis/json/ChainlinkFAST_GAS.json deleted file mode 100644 index 221a83b4c..000000000 --- a/libs/shared/contracts/src/abis/json/ChainlinkFAST_GAS.json +++ /dev/null @@ -1,347 +0,0 @@ -{ - "name": "ChainlinkFAST_GAS", - "address": "0x169E633A2D1E6c10dD91238Ba11c4A708dfEF37C", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" }, - { - "internalType": "address", - "name": "_accessController", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "int256", - "name": "current", - "type": "int256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "roundId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "updatedAt", - "type": "uint256" - } - ], - "name": "AnswerUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "roundId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "startedBy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "startedAt", - "type": "uint256" - } - ], - "name": "NewRound", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferRequested", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "acceptOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "accessController", - "outputs": [ - { - "internalType": "contract AccessControllerInterface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "aggregator", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" } - ], - "name": "confirmAggregator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "description", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_roundId", "type": "uint256" } - ], - "name": "getAnswer", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint80", "name": "_roundId", "type": "uint80" } - ], - "name": "getRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_roundId", "type": "uint256" } - ], - "name": "getTimestamp", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestAnswer", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestRound", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestTimestamp", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { "internalType": "address payable", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], - "name": "phaseAggregators", - "outputs": [ - { - "internalType": "contract AggregatorV2V3Interface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "phaseId", - "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" } - ], - "name": "proposeAggregator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "proposedAggregator", - "outputs": [ - { - "internalType": "contract AggregatorV2V3Interface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint80", "name": "_roundId", "type": "uint80" } - ], - "name": "proposedGetRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "proposedLatestRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_accessController", - "type": "address" - } - ], - "name": "setController", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "version", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ChainlinkOracle.json b/libs/shared/contracts/src/abis/json/ChainlinkOracle.json deleted file mode 100644 index 4e9141b67..000000000 --- a/libs/shared/contracts/src/abis/json/ChainlinkOracle.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "name": "ChainlinkOracle", - "address": "0x8DE3Ac42F800a1186b6D70CB91e0D6876cC36759", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "tokEthPrice", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "tokUsdPrice", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "ethUsdPrice", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "feed", "type": "address" }, - { "internalType": "string", "name": "symbol", "type": "string" }, - { "internalType": "bool", "name": "directToUsd", "type": "bool" } - ], - "name": "registerFeed", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "price", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "ethFeed_", "type": "address" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ChainlinkUSDC_ETH.json b/libs/shared/contracts/src/abis/json/ChainlinkUSDC_ETH.json deleted file mode 100644 index cec0eb170..000000000 --- a/libs/shared/contracts/src/abis/json/ChainlinkUSDC_ETH.json +++ /dev/null @@ -1,347 +0,0 @@ -{ - "name": "ChainlinkUSDC_ETH", - "address": "0x986b5E1e1755e3C2440e960477f25201B0a8bbD4", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" }, - { - "internalType": "address", - "name": "_accessController", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "int256", - "name": "current", - "type": "int256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "roundId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "updatedAt", - "type": "uint256" - } - ], - "name": "AnswerUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "roundId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "startedBy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "startedAt", - "type": "uint256" - } - ], - "name": "NewRound", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferRequested", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "acceptOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "accessController", - "outputs": [ - { - "internalType": "contract AccessControllerInterface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "aggregator", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" } - ], - "name": "confirmAggregator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "description", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_roundId", "type": "uint256" } - ], - "name": "getAnswer", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint80", "name": "_roundId", "type": "uint80" } - ], - "name": "getRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_roundId", "type": "uint256" } - ], - "name": "getTimestamp", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestAnswer", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestRound", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestTimestamp", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { "internalType": "address payable", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], - "name": "phaseAggregators", - "outputs": [ - { - "internalType": "contract AggregatorV2V3Interface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "phaseId", - "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" } - ], - "name": "proposeAggregator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "proposedAggregator", - "outputs": [ - { - "internalType": "contract AggregatorV2V3Interface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint80", "name": "_roundId", "type": "uint80" } - ], - "name": "proposedGetRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "proposedLatestRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_accessController", - "type": "address" - } - ], - "name": "setController", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "version", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ChainlinkUSDT_ETH.json b/libs/shared/contracts/src/abis/json/ChainlinkUSDT_ETH.json deleted file mode 100644 index 553b0f722..000000000 --- a/libs/shared/contracts/src/abis/json/ChainlinkUSDT_ETH.json +++ /dev/null @@ -1,347 +0,0 @@ -{ - "name": "ChainlinkUSDT_ETH", - "address": "0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" }, - { - "internalType": "address", - "name": "_accessController", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "int256", - "name": "current", - "type": "int256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "roundId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "updatedAt", - "type": "uint256" - } - ], - "name": "AnswerUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "roundId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "startedBy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "startedAt", - "type": "uint256" - } - ], - "name": "NewRound", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferRequested", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "acceptOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "accessController", - "outputs": [ - { - "internalType": "contract AccessControllerInterface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "aggregator", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" } - ], - "name": "confirmAggregator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "description", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_roundId", "type": "uint256" } - ], - "name": "getAnswer", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint80", "name": "_roundId", "type": "uint80" } - ], - "name": "getRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_roundId", "type": "uint256" } - ], - "name": "getTimestamp", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestAnswer", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestRound", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestTimestamp", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { "internalType": "address payable", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], - "name": "phaseAggregators", - "outputs": [ - { - "internalType": "contract AggregatorV2V3Interface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "phaseId", - "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_aggregator", "type": "address" } - ], - "name": "proposeAggregator", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "proposedAggregator", - "outputs": [ - { - "internalType": "contract AggregatorV2V3Interface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint80", "name": "_roundId", "type": "uint80" } - ], - "name": "proposedGetRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "proposedLatestRoundData", - "outputs": [ - { "internalType": "uint80", "name": "roundId", "type": "uint80" }, - { "internalType": "int256", "name": "answer", "type": "int256" }, - { "internalType": "uint256", "name": "startedAt", "type": "uint256" }, - { "internalType": "uint256", "name": "updatedAt", "type": "uint256" }, - { - "internalType": "uint80", - "name": "answeredInRound", - "type": "uint80" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_accessController", - "type": "address" - } - ], - "name": "setController", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "version", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/CompensationClaims.json b/libs/shared/contracts/src/abis/json/CompensationClaims.json deleted file mode 100644 index 5acfe9e0e..000000000 --- a/libs/shared/contracts/src/abis/json/CompensationClaims.json +++ /dev/null @@ -1,295 +0,0 @@ -{ - "name": "CompensationClaims", - "address": "0x9C94df9d594BA1eb94430C006c269C314B1A8281", - "abi": [ - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_coin", "type": "address" } - ], - "name": "collect", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" } - ], - "name": "claim", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address[]", - "name": "_addresses", - "type": "address[]" - }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "setClaims", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalClaims", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "unlockAdjuster", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "_seconds", "type": "uint256" } - ], - "name": "start", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isAdjusterLocked", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "adjuster", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "lockAdjuster", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "end", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "token", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_token", "type": "address" }, - { "internalType": "address", "name": "_adjuster", "type": "address" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Claim", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "ClaimSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "end", - "type": "uint256" - } - ], - "name": "Start", - "type": "event" - }, - { "anonymous": false, "inputs": [], "name": "Lock", "type": "event" }, - { "anonymous": false, "inputs": [], "name": "Unlock", "type": "event" }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "coin", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Collect", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/CompoundStrategy.json b/libs/shared/contracts/src/abis/json/CompoundStrategy.json deleted file mode 100644 index 577118e6f..000000000 --- a/libs/shared/contracts/src/abis/json/CompoundStrategy.json +++ /dev/null @@ -1,399 +0,0 @@ -{ - "name": "CompoundStrategy", - "address": "0xFaf23Bd848126521064184282e8AD344490BA6f0", - "abi": [ - { - "constant": false, - "inputs": [], - "name": "collectRewardToken", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "liquidate", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [ - { - "internalType": "uint256", - "name": "amountDeposited", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_rewardTokenAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_rewardTokenAddress", - "type": "address" - } - ], - "name": "setRewardTokenAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setRewardLiquidationThreshold", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "amountWithdrawn", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "SkippedWithdrawal", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/CompoundStrategyProxy.json b/libs/shared/contracts/src/abis/json/CompoundStrategyProxy.json deleted file mode 100644 index 4a2b24038..000000000 --- a/libs/shared/contracts/src/abis/json/CompoundStrategyProxy.json +++ /dev/null @@ -1,399 +0,0 @@ -{ - "name": "CompoundStrategyProxy", - "address": "0x12115A32a19e4994C2BA4A5437C22CEf5ABb59C3", - "abi": [ - { - "constant": false, - "inputs": [], - "name": "collectRewardToken", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "liquidate", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [ - { - "internalType": "uint256", - "name": "amountDeposited", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_rewardTokenAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_rewardTokenAddress", - "type": "address" - } - ], - "name": "setRewardTokenAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setRewardLiquidationThreshold", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "amountWithdrawn", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "SkippedWithdrawal", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ConvexGeneralizedMetaStrategy.json b/libs/shared/contracts/src/abis/json/ConvexGeneralizedMetaStrategy.json deleted file mode 100644 index 11f0d65dd..000000000 --- a/libs/shared/contracts/src/abis/json/ConvexGeneralizedMetaStrategy.json +++ /dev/null @@ -1,537 +0,0 @@ -{ - "name": "ConvexGeneralizedMetaStrategy", - "address": "0xB6764c2Cc8F1fDCd89Af1C3e246f886579746233", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_prevMaxSlippagePercentage", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_newMaxSlippagePercentage", - "type": "uint256" - } - ], - "name": "MaxWithdrawalSlippageUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { - "internalType": "address[]", - "name": "_pTokens", - "type": "address[]" - }, - { - "components": [ - { - "internalType": "address", - "name": "platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "vaultAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "cvxDepositorAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "metapoolAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "metapoolMainToken", - "type": "address" - }, - { - "internalType": "address", - "name": "cvxRewardStakerAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "metapoolLPToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "cvxDepositorPTokenId", - "type": "uint256" - } - ], - "internalType": "struct BaseConvexMetaStrategy.InitConfig", - "name": "initConfig", - "type": "tuple" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxWithdrawalSlippage", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_maxWithdrawalSlippage", - "type": "uint256" - } - ], - "name": "setMaxWithdrawalSlippage", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ConvexLUSDMetaStrategyProxy.json b/libs/shared/contracts/src/abis/json/ConvexLUSDMetaStrategyProxy.json deleted file mode 100644 index 1a18a4249..000000000 --- a/libs/shared/contracts/src/abis/json/ConvexLUSDMetaStrategyProxy.json +++ /dev/null @@ -1,537 +0,0 @@ -{ - "name": "ConvexLUSDMetaStrategyProxy", - "address": "0x7A192DD9Cc4Ea9bdEdeC9992df74F1DA55e60a19", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_prevMaxSlippagePercentage", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_newMaxSlippagePercentage", - "type": "uint256" - } - ], - "name": "MaxWithdrawalSlippageUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { - "internalType": "address[]", - "name": "_pTokens", - "type": "address[]" - }, - { - "components": [ - { - "internalType": "address", - "name": "platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "vaultAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "cvxDepositorAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "metapoolAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "metapoolMainToken", - "type": "address" - }, - { - "internalType": "address", - "name": "cvxRewardStakerAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "metapoolLPToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "cvxDepositorPTokenId", - "type": "uint256" - } - ], - "internalType": "struct BaseConvexMetaStrategy.InitConfig", - "name": "initConfig", - "type": "tuple" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxWithdrawalSlippage", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_maxWithdrawalSlippage", - "type": "uint256" - } - ], - "name": "setMaxWithdrawalSlippage", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ConvexOUSDMetaStrategy.json b/libs/shared/contracts/src/abis/json/ConvexOUSDMetaStrategy.json deleted file mode 100644 index 0555ccd31..000000000 --- a/libs/shared/contracts/src/abis/json/ConvexOUSDMetaStrategy.json +++ /dev/null @@ -1,537 +0,0 @@ -{ - "name": "ConvexOUSDMetaStrategy", - "address": "0xc7faB3de576caf6044369930422f12C4FDbb2B32", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_prevMaxSlippagePercentage", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_newMaxSlippagePercentage", - "type": "uint256" - } - ], - "name": "MaxWithdrawalSlippageUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { - "internalType": "address[]", - "name": "_pTokens", - "type": "address[]" - }, - { - "components": [ - { - "internalType": "address", - "name": "platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "vaultAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "cvxDepositorAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "metapoolAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "metapoolMainToken", - "type": "address" - }, - { - "internalType": "address", - "name": "cvxRewardStakerAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "metapoolLPToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "cvxDepositorPTokenId", - "type": "uint256" - } - ], - "internalType": "struct BaseConvexMetaStrategy.InitConfig", - "name": "initConfig", - "type": "tuple" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxWithdrawalSlippage", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_maxWithdrawalSlippage", - "type": "uint256" - } - ], - "name": "setMaxWithdrawalSlippage", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ConvexOUSDMetaStrategyProxy.json b/libs/shared/contracts/src/abis/json/ConvexOUSDMetaStrategyProxy.json deleted file mode 100644 index b8fea645e..000000000 --- a/libs/shared/contracts/src/abis/json/ConvexOUSDMetaStrategyProxy.json +++ /dev/null @@ -1,537 +0,0 @@ -{ - "name": "ConvexOUSDMetaStrategyProxy", - "address": "0x89Eb88fEdc50FC77ae8a18aAD1cA0ac27f777a90", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_prevMaxSlippagePercentage", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_newMaxSlippagePercentage", - "type": "uint256" - } - ], - "name": "MaxWithdrawalSlippageUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { - "internalType": "address[]", - "name": "_pTokens", - "type": "address[]" - }, - { - "components": [ - { - "internalType": "address", - "name": "platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "vaultAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "cvxDepositorAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "metapoolAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "metapoolMainToken", - "type": "address" - }, - { - "internalType": "address", - "name": "cvxRewardStakerAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "metapoolLPToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "cvxDepositorPTokenId", - "type": "uint256" - } - ], - "internalType": "struct BaseConvexMetaStrategy.InitConfig", - "name": "initConfig", - "type": "tuple" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxWithdrawalSlippage", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_maxWithdrawalSlippage", - "type": "uint256" - } - ], - "name": "setMaxWithdrawalSlippage", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ConvexStrategy.json b/libs/shared/contracts/src/abis/json/ConvexStrategy.json deleted file mode 100644 index 689ca3a4d..000000000 --- a/libs/shared/contracts/src/abis/json/ConvexStrategy.json +++ /dev/null @@ -1,483 +0,0 @@ -{ - "name": "ConvexStrategy", - "address": "0xEe83F8eBB435373f6c231173995cC990697af1B8", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "_deprecated_cvxRewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { - "internalType": "address[]", - "name": "_pTokens", - "type": "address[]" - }, - { - "internalType": "address", - "name": "_cvxDepositorAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_cvxRewardStakerAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_cvxDepositorPTokenId", - "type": "uint256" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ConvexStrategyProxy.json b/libs/shared/contracts/src/abis/json/ConvexStrategyProxy.json deleted file mode 100644 index 22a15e6e6..000000000 --- a/libs/shared/contracts/src/abis/json/ConvexStrategyProxy.json +++ /dev/null @@ -1,483 +0,0 @@ -{ - "name": "ConvexStrategyProxy", - "address": "0xEA2Ef2e2E5A749D4A66b41Db9aD85a38Aa264cb3", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "_deprecated_cvxRewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { - "internalType": "address[]", - "name": "_pTokens", - "type": "address[]" - }, - { - "internalType": "address", - "name": "_cvxDepositorAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_cvxRewardStakerAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_cvxDepositorPTokenId", - "type": "uint256" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/CurveAddressProvider.json b/libs/shared/contracts/src/abis/json/CurveAddressProvider.json deleted file mode 100644 index 369fa4fb8..000000000 --- a/libs/shared/contracts/src/abis/json/CurveAddressProvider.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "name": "CurveAddressProvider", - "address": "0x0000000022d53366457f9d5e68ec105046fc4383", - "abi": [ - { - "name": "NewAddressIdentifier", - "inputs": [ - { "type": "uint256", "name": "id", "indexed": true }, - { "type": "address", "name": "addr", "indexed": false }, - { "type": "string", "name": "description", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "AddressModified", - "inputs": [ - { "type": "uint256", "name": "id", "indexed": true }, - { "type": "address", "name": "new_address", "indexed": false }, - { "type": "uint256", "name": "version", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "CommitNewAdmin", - "inputs": [ - { "type": "uint256", "name": "deadline", "indexed": true }, - { "type": "address", "name": "admin", "indexed": true } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "NewAdmin", - "inputs": [{ "type": "address", "name": "admin", "indexed": true }], - "anonymous": false, - "type": "event" - }, - { - "outputs": [], - "inputs": [{ "type": "address", "name": "_admin" }], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "name": "get_registry", - "outputs": [{ "type": "address", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 1061 - }, - { - "name": "max_id", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 1258 - }, - { - "name": "get_address", - "outputs": [{ "type": "address", "name": "" }], - "inputs": [{ "type": "uint256", "name": "_id" }], - "stateMutability": "view", - "type": "function", - "gas": 1308 - }, - { - "name": "add_new_id", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "address", "name": "_address" }, - { "type": "string", "name": "_description" } - ], - "stateMutability": "nonpayable", - "type": "function", - "gas": 291275 - }, - { - "name": "set_address", - "outputs": [{ "type": "bool", "name": "" }], - "inputs": [ - { "type": "uint256", "name": "_id" }, - { "type": "address", "name": "_address" } - ], - "stateMutability": "nonpayable", - "type": "function", - "gas": 182430 - }, - { - "name": "unset_address", - "outputs": [{ "type": "bool", "name": "" }], - "inputs": [{ "type": "uint256", "name": "_id" }], - "stateMutability": "nonpayable", - "type": "function", - "gas": 101348 - }, - { - "name": "commit_transfer_ownership", - "outputs": [{ "type": "bool", "name": "" }], - "inputs": [{ "type": "address", "name": "_new_admin" }], - "stateMutability": "nonpayable", - "type": "function", - "gas": 74048 - }, - { - "name": "apply_transfer_ownership", - "outputs": [{ "type": "bool", "name": "" }], - "inputs": [], - "stateMutability": "nonpayable", - "type": "function", - "gas": 60125 - }, - { - "name": "revert_transfer_ownership", - "outputs": [{ "type": "bool", "name": "" }], - "inputs": [], - "stateMutability": "nonpayable", - "type": "function", - "gas": 21400 - }, - { - "name": "admin", - "outputs": [{ "type": "address", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 1331 - }, - { - "name": "transfer_ownership_deadline", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 1361 - }, - { - "name": "future_admin", - "outputs": [{ "type": "address", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 1391 - }, - { - "name": "get_id_info", - "outputs": [ - { "type": "address", "name": "addr" }, - { "type": "bool", "name": "is_active" }, - { "type": "uint256", "name": "version" }, - { "type": "uint256", "name": "last_modified" }, - { "type": "string", "name": "description" } - ], - "inputs": [{ "type": "uint256", "name": "arg0" }], - "stateMutability": "view", - "type": "function", - "gas": 12168 - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/CurveGaugeController.json b/libs/shared/contracts/src/abis/json/CurveGaugeController.json deleted file mode 100644 index 5b8c4dd3b..000000000 --- a/libs/shared/contracts/src/abis/json/CurveGaugeController.json +++ /dev/null @@ -1,433 +0,0 @@ -{ - "name": "CurveGaugeController", - "address": "0x2f50d538606fa9edd2b11e2446beb18c9d5846bb", - "abi": [ - { - "name": "CommitOwnership", - "inputs": [{ "type": "address", "name": "admin", "indexed": false }], - "anonymous": false, - "type": "event" - }, - { - "name": "ApplyOwnership", - "inputs": [{ "type": "address", "name": "admin", "indexed": false }], - "anonymous": false, - "type": "event" - }, - { - "name": "AddType", - "inputs": [ - { "type": "string", "name": "name", "indexed": false }, - { "type": "int128", "name": "type_id", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "NewTypeWeight", - "inputs": [ - { "type": "int128", "name": "type_id", "indexed": false }, - { "type": "uint256", "name": "time", "indexed": false }, - { "type": "uint256", "name": "weight", "indexed": false }, - { "type": "uint256", "name": "total_weight", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "NewGaugeWeight", - "inputs": [ - { "type": "address", "name": "gauge_address", "indexed": false }, - { "type": "uint256", "name": "time", "indexed": false }, - { "type": "uint256", "name": "weight", "indexed": false }, - { "type": "uint256", "name": "total_weight", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "VoteForGauge", - "inputs": [ - { "type": "uint256", "name": "time", "indexed": false }, - { "type": "address", "name": "user", "indexed": false }, - { "type": "address", "name": "gauge_addr", "indexed": false }, - { "type": "uint256", "name": "weight", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "NewGauge", - "inputs": [ - { "type": "address", "name": "addr", "indexed": false }, - { "type": "int128", "name": "gauge_type", "indexed": false }, - { "type": "uint256", "name": "weight", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "outputs": [], - "inputs": [ - { "type": "address", "name": "_token" }, - { "type": "address", "name": "_voting_escrow" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "name": "commit_transfer_ownership", - "outputs": [], - "inputs": [{ "type": "address", "name": "addr" }], - "stateMutability": "nonpayable", - "type": "function", - "gas": 37597 - }, - { - "name": "apply_transfer_ownership", - "outputs": [], - "inputs": [], - "stateMutability": "nonpayable", - "type": "function", - "gas": 38497 - }, - { - "name": "gauge_types", - "outputs": [{ "type": "int128", "name": "" }], - "inputs": [{ "type": "address", "name": "_addr" }], - "stateMutability": "view", - "type": "function", - "gas": 1625 - }, - { - "name": "add_gauge", - "outputs": [], - "inputs": [ - { "type": "address", "name": "addr" }, - { "type": "int128", "name": "gauge_type" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "add_gauge", - "outputs": [], - "inputs": [ - { "type": "address", "name": "addr" }, - { "type": "int128", "name": "gauge_type" }, - { "type": "uint256", "name": "weight" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "checkpoint", - "outputs": [], - "inputs": [], - "stateMutability": "nonpayable", - "type": "function", - "gas": 18033784416 - }, - { - "name": "checkpoint_gauge", - "outputs": [], - "inputs": [{ "type": "address", "name": "addr" }], - "stateMutability": "nonpayable", - "type": "function", - "gas": 18087678795 - }, - { - "name": "gauge_relative_weight", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [{ "type": "address", "name": "addr" }], - "stateMutability": "view", - "type": "function" - }, - { - "name": "gauge_relative_weight", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "address", "name": "addr" }, - { "type": "uint256", "name": "time" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "name": "gauge_relative_weight_write", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [{ "type": "address", "name": "addr" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "gauge_relative_weight_write", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "address", "name": "addr" }, - { "type": "uint256", "name": "time" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "add_type", - "outputs": [], - "inputs": [{ "type": "string", "name": "_name" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "add_type", - "outputs": [], - "inputs": [ - { "type": "string", "name": "_name" }, - { "type": "uint256", "name": "weight" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "change_type_weight", - "outputs": [], - "inputs": [ - { "type": "int128", "name": "type_id" }, - { "type": "uint256", "name": "weight" } - ], - "stateMutability": "nonpayable", - "type": "function", - "gas": 36246310050 - }, - { - "name": "change_gauge_weight", - "outputs": [], - "inputs": [ - { "type": "address", "name": "addr" }, - { "type": "uint256", "name": "weight" } - ], - "stateMutability": "nonpayable", - "type": "function", - "gas": 36354170809 - }, - { - "name": "vote_for_gauge_weights", - "outputs": [], - "inputs": [ - { "type": "address", "name": "_gauge_addr" }, - { "type": "uint256", "name": "_user_weight" } - ], - "stateMutability": "nonpayable", - "type": "function", - "gas": 18142052127 - }, - { - "name": "get_gauge_weight", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [{ "type": "address", "name": "addr" }], - "stateMutability": "view", - "type": "function", - "gas": 2974 - }, - { - "name": "get_type_weight", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [{ "type": "int128", "name": "type_id" }], - "stateMutability": "view", - "type": "function", - "gas": 2977 - }, - { - "name": "get_total_weight", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 2693 - }, - { - "name": "get_weights_sum_per_type", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [{ "type": "int128", "name": "type_id" }], - "stateMutability": "view", - "type": "function", - "gas": 3109 - }, - { - "name": "admin", - "outputs": [{ "type": "address", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 1841 - }, - { - "name": "future_admin", - "outputs": [{ "type": "address", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 1871 - }, - { - "name": "token", - "outputs": [{ "type": "address", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 1901 - }, - { - "name": "voting_escrow", - "outputs": [{ "type": "address", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 1931 - }, - { - "name": "n_gauge_types", - "outputs": [{ "type": "int128", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 1961 - }, - { - "name": "n_gauges", - "outputs": [{ "type": "int128", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 1991 - }, - { - "name": "gauge_type_names", - "outputs": [{ "type": "string", "name": "" }], - "inputs": [{ "type": "int128", "name": "arg0" }], - "stateMutability": "view", - "type": "function", - "gas": 8628 - }, - { - "name": "gauges", - "outputs": [{ "type": "address", "name": "" }], - "inputs": [{ "type": "uint256", "name": "arg0" }], - "stateMutability": "view", - "type": "function", - "gas": 2160 - }, - { - "name": "vote_user_slopes", - "outputs": [ - { "type": "uint256", "name": "slope" }, - { "type": "uint256", "name": "power" }, - { "type": "uint256", "name": "end" } - ], - "inputs": [ - { "type": "address", "name": "arg0" }, - { "type": "address", "name": "arg1" } - ], - "stateMutability": "view", - "type": "function", - "gas": 5020 - }, - { - "name": "vote_user_power", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [{ "type": "address", "name": "arg0" }], - "stateMutability": "view", - "type": "function", - "gas": 2265 - }, - { - "name": "last_user_vote", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "address", "name": "arg0" }, - { "type": "address", "name": "arg1" } - ], - "stateMutability": "view", - "type": "function", - "gas": 2449 - }, - { - "name": "points_weight", - "outputs": [ - { "type": "uint256", "name": "bias" }, - { "type": "uint256", "name": "slope" } - ], - "inputs": [ - { "type": "address", "name": "arg0" }, - { "type": "uint256", "name": "arg1" } - ], - "stateMutability": "view", - "type": "function", - "gas": 3859 - }, - { - "name": "time_weight", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [{ "type": "address", "name": "arg0" }], - "stateMutability": "view", - "type": "function", - "gas": 2355 - }, - { - "name": "points_sum", - "outputs": [ - { "type": "uint256", "name": "bias" }, - { "type": "uint256", "name": "slope" } - ], - "inputs": [ - { "type": "int128", "name": "arg0" }, - { "type": "uint256", "name": "arg1" } - ], - "stateMutability": "view", - "type": "function", - "gas": 3970 - }, - { - "name": "time_sum", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [{ "type": "uint256", "name": "arg0" }], - "stateMutability": "view", - "type": "function", - "gas": 2370 - }, - { - "name": "points_total", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [{ "type": "uint256", "name": "arg0" }], - "stateMutability": "view", - "type": "function", - "gas": 2406 - }, - { - "name": "time_total", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 2321 - }, - { - "name": "points_type_weight", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "int128", "name": "arg0" }, - { "type": "uint256", "name": "arg1" } - ], - "stateMutability": "view", - "type": "function", - "gas": 2671 - }, - { - "name": "time_type_weight", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [{ "type": "uint256", "name": "arg0" }], - "stateMutability": "view", - "type": "function", - "gas": 2490 - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/CurveOUSDFactoryGauge.json b/libs/shared/contracts/src/abis/json/CurveOUSDFactoryGauge.json deleted file mode 100644 index fd04c75ad..000000000 --- a/libs/shared/contracts/src/abis/json/CurveOUSDFactoryGauge.json +++ /dev/null @@ -1,515 +0,0 @@ -{ - "name": "CurveOUSDFactoryGauge", - "address": "0x25f0cE4E2F8dbA112D9b115710AC297F816087CD", - "abi": [ - { - "name": "Deposit", - "inputs": [ - { "name": "provider", "type": "address", "indexed": true }, - { "name": "value", "type": "uint256", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "Withdraw", - "inputs": [ - { "name": "provider", "type": "address", "indexed": true }, - { "name": "value", "type": "uint256", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "UpdateLiquidityLimit", - "inputs": [ - { "name": "user", "type": "address", "indexed": false }, - { "name": "original_balance", "type": "uint256", "indexed": false }, - { "name": "original_supply", "type": "uint256", "indexed": false }, - { "name": "working_balance", "type": "uint256", "indexed": false }, - { "name": "working_supply", "type": "uint256", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "CommitOwnership", - "inputs": [{ "name": "admin", "type": "address", "indexed": false }], - "anonymous": false, - "type": "event" - }, - { - "name": "ApplyOwnership", - "inputs": [{ "name": "admin", "type": "address", "indexed": false }], - "anonymous": false, - "type": "event" - }, - { - "name": "Transfer", - "inputs": [ - { "name": "_from", "type": "address", "indexed": true }, - { "name": "_to", "type": "address", "indexed": true }, - { "name": "_value", "type": "uint256", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "Approval", - "inputs": [ - { "name": "_owner", "type": "address", "indexed": true }, - { "name": "_spender", "type": "address", "indexed": true }, - { "name": "_value", "type": "uint256", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "stateMutability": "nonpayable", - "type": "constructor", - "inputs": [], - "outputs": [] - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "initialize", - "inputs": [{ "name": "_lp_token", "type": "address" }], - "outputs": [], - "gas": 374587 - }, - { - "stateMutability": "view", - "type": "function", - "name": "decimals", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 318 - }, - { - "stateMutability": "view", - "type": "function", - "name": "integrate_checkpoint", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 4590 - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "user_checkpoint", - "inputs": [{ "name": "addr", "type": "address" }], - "outputs": [{ "name": "", "type": "bool" }], - "gas": 3123886 - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "claimable_tokens", - "inputs": [{ "name": "addr", "type": "address" }], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3038676 - }, - { - "stateMutability": "view", - "type": "function", - "name": "claimed_reward", - "inputs": [ - { "name": "_addr", "type": "address" }, - { "name": "_token", "type": "address" } - ], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3036 - }, - { - "stateMutability": "view", - "type": "function", - "name": "claimable_reward", - "inputs": [ - { "name": "_user", "type": "address" }, - { "name": "_reward_token", "type": "address" } - ], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 20255 - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "set_rewards_receiver", - "inputs": [{ "name": "_receiver", "type": "address" }], - "outputs": [], - "gas": 35673 - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "claim_rewards", - "inputs": [], - "outputs": [] - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "claim_rewards", - "inputs": [{ "name": "_addr", "type": "address" }], - "outputs": [] - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "claim_rewards", - "inputs": [ - { "name": "_addr", "type": "address" }, - { "name": "_receiver", "type": "address" } - ], - "outputs": [] - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "kick", - "inputs": [{ "name": "addr", "type": "address" }], - "outputs": [], - "gas": 3137977 - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "deposit", - "inputs": [{ "name": "_value", "type": "uint256" }], - "outputs": [] - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "deposit", - "inputs": [ - { "name": "_value", "type": "uint256" }, - { "name": "_addr", "type": "address" } - ], - "outputs": [] - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "deposit", - "inputs": [ - { "name": "_value", "type": "uint256" }, - { "name": "_addr", "type": "address" }, - { "name": "_claim_rewards", "type": "bool" } - ], - "outputs": [] - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "withdraw", - "inputs": [{ "name": "_value", "type": "uint256" }], - "outputs": [] - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "withdraw", - "inputs": [ - { "name": "_value", "type": "uint256" }, - { "name": "_claim_rewards", "type": "bool" } - ], - "outputs": [] - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "transfer", - "inputs": [ - { "name": "_to", "type": "address" }, - { "name": "_value", "type": "uint256" } - ], - "outputs": [{ "name": "", "type": "bool" }], - "gas": 18062826 - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "transferFrom", - "inputs": [ - { "name": "_from", "type": "address" }, - { "name": "_to", "type": "address" }, - { "name": "_value", "type": "uint256" } - ], - "outputs": [{ "name": "", "type": "bool" }], - "gas": 18100776 - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "approve", - "inputs": [ - { "name": "_spender", "type": "address" }, - { "name": "_value", "type": "uint256" } - ], - "outputs": [{ "name": "", "type": "bool" }], - "gas": 38151 - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "increaseAllowance", - "inputs": [ - { "name": "_spender", "type": "address" }, - { "name": "_added_value", "type": "uint256" } - ], - "outputs": [{ "name": "", "type": "bool" }], - "gas": 40695 - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "decreaseAllowance", - "inputs": [ - { "name": "_spender", "type": "address" }, - { "name": "_subtracted_value", "type": "uint256" } - ], - "outputs": [{ "name": "", "type": "bool" }], - "gas": 40719 - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "add_reward", - "inputs": [ - { "name": "_reward_token", "type": "address" }, - { "name": "_distributor", "type": "address" } - ], - "outputs": [], - "gas": 115414 - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "set_reward_distributor", - "inputs": [ - { "name": "_reward_token", "type": "address" }, - { "name": "_distributor", "type": "address" } - ], - "outputs": [], - "gas": 43179 - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "deposit_reward_token", - "inputs": [ - { "name": "_reward_token", "type": "address" }, - { "name": "_amount", "type": "uint256" } - ], - "outputs": [], - "gas": 1540067 - }, - { - "stateMutability": "nonpayable", - "type": "function", - "name": "set_killed", - "inputs": [{ "name": "_is_killed", "type": "bool" }], - "outputs": [], - "gas": 40529 - }, - { - "stateMutability": "view", - "type": "function", - "name": "lp_token", - "inputs": [], - "outputs": [{ "name": "", "type": "address" }], - "gas": 3018 - }, - { - "stateMutability": "view", - "type": "function", - "name": "future_epoch_time", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3048 - }, - { - "stateMutability": "view", - "type": "function", - "name": "balanceOf", - "inputs": [{ "name": "arg0", "type": "address" }], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3293 - }, - { - "stateMutability": "view", - "type": "function", - "name": "totalSupply", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3108 - }, - { - "stateMutability": "view", - "type": "function", - "name": "allowance", - "inputs": [ - { "name": "arg0", "type": "address" }, - { "name": "arg1", "type": "address" } - ], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3568 - }, - { - "stateMutability": "view", - "type": "function", - "name": "name", - "inputs": [], - "outputs": [{ "name": "", "type": "string" }], - "gas": 13398 - }, - { - "stateMutability": "view", - "type": "function", - "name": "symbol", - "inputs": [], - "outputs": [{ "name": "", "type": "string" }], - "gas": 11151 - }, - { - "stateMutability": "view", - "type": "function", - "name": "working_balances", - "inputs": [{ "name": "arg0", "type": "address" }], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3443 - }, - { - "stateMutability": "view", - "type": "function", - "name": "working_supply", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3258 - }, - { - "stateMutability": "view", - "type": "function", - "name": "period", - "inputs": [], - "outputs": [{ "name": "", "type": "int128" }], - "gas": 3288 - }, - { - "stateMutability": "view", - "type": "function", - "name": "period_timestamp", - "inputs": [{ "name": "arg0", "type": "uint256" }], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3363 - }, - { - "stateMutability": "view", - "type": "function", - "name": "integrate_inv_supply", - "inputs": [{ "name": "arg0", "type": "uint256" }], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3393 - }, - { - "stateMutability": "view", - "type": "function", - "name": "integrate_inv_supply_of", - "inputs": [{ "name": "arg0", "type": "address" }], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3593 - }, - { - "stateMutability": "view", - "type": "function", - "name": "integrate_checkpoint_of", - "inputs": [{ "name": "arg0", "type": "address" }], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3623 - }, - { - "stateMutability": "view", - "type": "function", - "name": "integrate_fraction", - "inputs": [{ "name": "arg0", "type": "address" }], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3653 - }, - { - "stateMutability": "view", - "type": "function", - "name": "inflation_rate", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3468 - }, - { - "stateMutability": "view", - "type": "function", - "name": "reward_count", - "inputs": [], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 3498 - }, - { - "stateMutability": "view", - "type": "function", - "name": "reward_tokens", - "inputs": [{ "name": "arg0", "type": "uint256" }], - "outputs": [{ "name": "", "type": "address" }], - "gas": 3573 - }, - { - "stateMutability": "view", - "type": "function", - "name": "reward_data", - "inputs": [{ "name": "arg0", "type": "address" }], - "outputs": [ - { "name": "token", "type": "address" }, - { "name": "distributor", "type": "address" }, - { "name": "period_finish", "type": "uint256" }, - { "name": "rate", "type": "uint256" }, - { "name": "last_update", "type": "uint256" }, - { "name": "integral", "type": "uint256" } - ], - "gas": 15003 - }, - { - "stateMutability": "view", - "type": "function", - "name": "rewards_receiver", - "inputs": [{ "name": "arg0", "type": "address" }], - "outputs": [{ "name": "", "type": "address" }], - "gas": 3803 - }, - { - "stateMutability": "view", - "type": "function", - "name": "reward_integral_for", - "inputs": [ - { "name": "arg0", "type": "address" }, - { "name": "arg1", "type": "address" } - ], - "outputs": [{ "name": "", "type": "uint256" }], - "gas": 4048 - }, - { - "stateMutability": "view", - "type": "function", - "name": "is_killed", - "inputs": [], - "outputs": [{ "name": "", "type": "bool" }], - "gas": 3648 - }, - { - "stateMutability": "view", - "type": "function", - "name": "factory", - "inputs": [], - "outputs": [{ "name": "", "type": "address" }], - "gas": 3678 - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/CurveOUSDMetaPool.json b/libs/shared/contracts/src/abis/json/CurveOUSDMetaPool.json deleted file mode 100644 index 9c49dbe0e..000000000 --- a/libs/shared/contracts/src/abis/json/CurveOUSDMetaPool.json +++ /dev/null @@ -1,656 +0,0 @@ -{ - "name": "CurveOUSDMetaPool", - "address": "0x87650D7bbfC3A9F10587d7778206671719d9910D", - "abi": [ - { - "name": "Transfer", - "inputs": [ - { "type": "address", "name": "sender", "indexed": true }, - { "type": "address", "name": "receiver", "indexed": true }, - { "type": "uint256", "name": "value", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "Approval", - "inputs": [ - { "type": "address", "name": "owner", "indexed": true }, - { "type": "address", "name": "spender", "indexed": true }, - { "type": "uint256", "name": "value", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "TokenExchange", - "inputs": [ - { "type": "address", "name": "buyer", "indexed": true }, - { "type": "int128", "name": "sold_id", "indexed": false }, - { "type": "uint256", "name": "tokens_sold", "indexed": false }, - { "type": "int128", "name": "bought_id", "indexed": false }, - { "type": "uint256", "name": "tokens_bought", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "TokenExchangeUnderlying", - "inputs": [ - { "type": "address", "name": "buyer", "indexed": true }, - { "type": "int128", "name": "sold_id", "indexed": false }, - { "type": "uint256", "name": "tokens_sold", "indexed": false }, - { "type": "int128", "name": "bought_id", "indexed": false }, - { "type": "uint256", "name": "tokens_bought", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "AddLiquidity", - "inputs": [ - { "type": "address", "name": "provider", "indexed": true }, - { "type": "uint256[2]", "name": "token_amounts", "indexed": false }, - { "type": "uint256[2]", "name": "fees", "indexed": false }, - { "type": "uint256", "name": "invariant", "indexed": false }, - { "type": "uint256", "name": "token_supply", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "RemoveLiquidity", - "inputs": [ - { "type": "address", "name": "provider", "indexed": true }, - { "type": "uint256[2]", "name": "token_amounts", "indexed": false }, - { "type": "uint256[2]", "name": "fees", "indexed": false }, - { "type": "uint256", "name": "token_supply", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "RemoveLiquidityOne", - "inputs": [ - { "type": "address", "name": "provider", "indexed": true }, - { "type": "uint256", "name": "token_amount", "indexed": false }, - { "type": "uint256", "name": "coin_amount", "indexed": false }, - { "type": "uint256", "name": "token_supply", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "RemoveLiquidityImbalance", - "inputs": [ - { "type": "address", "name": "provider", "indexed": true }, - { "type": "uint256[2]", "name": "token_amounts", "indexed": false }, - { "type": "uint256[2]", "name": "fees", "indexed": false }, - { "type": "uint256", "name": "invariant", "indexed": false }, - { "type": "uint256", "name": "token_supply", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "CommitNewAdmin", - "inputs": [ - { "type": "uint256", "name": "deadline", "indexed": true }, - { "type": "address", "name": "admin", "indexed": true } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "NewAdmin", - "inputs": [{ "type": "address", "name": "admin", "indexed": true }], - "anonymous": false, - "type": "event" - }, - { - "name": "CommitNewFee", - "inputs": [ - { "type": "uint256", "name": "deadline", "indexed": true }, - { "type": "uint256", "name": "fee", "indexed": false }, - { "type": "uint256", "name": "admin_fee", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "NewFee", - "inputs": [ - { "type": "uint256", "name": "fee", "indexed": false }, - { "type": "uint256", "name": "admin_fee", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "RampA", - "inputs": [ - { "type": "uint256", "name": "old_A", "indexed": false }, - { "type": "uint256", "name": "new_A", "indexed": false }, - { "type": "uint256", "name": "initial_time", "indexed": false }, - { "type": "uint256", "name": "future_time", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "name": "StopRampA", - "inputs": [ - { "type": "uint256", "name": "A", "indexed": false }, - { "type": "uint256", "name": "t", "indexed": false } - ], - "anonymous": false, - "type": "event" - }, - { - "outputs": [], - "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "name": "initialize", - "outputs": [], - "inputs": [ - { "type": "string", "name": "_name" }, - { "type": "string", "name": "_symbol" }, - { "type": "address", "name": "_coin" }, - { "type": "uint256", "name": "_decimals" }, - { "type": "uint256", "name": "_A" }, - { "type": "uint256", "name": "_fee" }, - { "type": "address", "name": "_admin" } - ], - "stateMutability": "nonpayable", - "type": "function", - "gas": 470049 - }, - { - "name": "decimals", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 291 - }, - { - "name": "transfer", - "outputs": [{ "type": "bool", "name": "" }], - "inputs": [ - { "type": "address", "name": "_to" }, - { "type": "uint256", "name": "_value" } - ], - "stateMutability": "nonpayable", - "type": "function", - "gas": 75402 - }, - { - "name": "transferFrom", - "outputs": [{ "type": "bool", "name": "" }], - "inputs": [ - { "type": "address", "name": "_from" }, - { "type": "address", "name": "_to" }, - { "type": "uint256", "name": "_value" } - ], - "stateMutability": "nonpayable", - "type": "function", - "gas": 112037 - }, - { - "name": "approve", - "outputs": [{ "type": "bool", "name": "" }], - "inputs": [ - { "type": "address", "name": "_spender" }, - { "type": "uint256", "name": "_value" } - ], - "stateMutability": "nonpayable", - "type": "function", - "gas": 37854 - }, - { - "name": "get_previous_balances", - "outputs": [{ "type": "uint256[2]", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 2254 - }, - { - "name": "get_balances", - "outputs": [{ "type": "uint256[2]", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 2284 - }, - { - "name": "get_twap_balances", - "outputs": [{ "type": "uint256[2]", "name": "" }], - "inputs": [ - { "type": "uint256[2]", "name": "_first_balances" }, - { "type": "uint256[2]", "name": "_last_balances" }, - { "type": "uint256", "name": "_time_elapsed" } - ], - "stateMutability": "view", - "type": "function", - "gas": 1522 - }, - { - "name": "get_price_cumulative_last", - "outputs": [{ "type": "uint256[2]", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 2344 - }, - { - "name": "admin_fee", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 621 - }, - { - "name": "A", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 5859 - }, - { - "name": "A_precise", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 5821 - }, - { - "name": "get_virtual_price", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 1011891 - }, - { - "name": "calc_token_amount", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "uint256[2]", "name": "_amounts" }, - { "type": "bool", "name": "_is_deposit" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "name": "calc_token_amount", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "uint256[2]", "name": "_amounts" }, - { "type": "bool", "name": "_is_deposit" }, - { "type": "bool", "name": "_previous" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "name": "add_liquidity", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "uint256[2]", "name": "_amounts" }, - { "type": "uint256", "name": "_min_mint_amount" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "add_liquidity", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "uint256[2]", "name": "_amounts" }, - { "type": "uint256", "name": "_min_mint_amount" }, - { "type": "address", "name": "_receiver" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "get_dy", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "int128", "name": "i" }, - { "type": "int128", "name": "j" }, - { "type": "uint256", "name": "dx" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "name": "get_dy", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "int128", "name": "i" }, - { "type": "int128", "name": "j" }, - { "type": "uint256", "name": "dx" }, - { "type": "uint256[2]", "name": "_balances" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "name": "get_dy_underlying", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "int128", "name": "i" }, - { "type": "int128", "name": "j" }, - { "type": "uint256", "name": "dx" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "name": "get_dy_underlying", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "int128", "name": "i" }, - { "type": "int128", "name": "j" }, - { "type": "uint256", "name": "dx" }, - { "type": "uint256[2]", "name": "_balances" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "name": "exchange", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "int128", "name": "i" }, - { "type": "int128", "name": "j" }, - { "type": "uint256", "name": "dx" }, - { "type": "uint256", "name": "min_dy" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "exchange", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "int128", "name": "i" }, - { "type": "int128", "name": "j" }, - { "type": "uint256", "name": "dx" }, - { "type": "uint256", "name": "min_dy" }, - { "type": "address", "name": "_receiver" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "exchange_underlying", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "int128", "name": "i" }, - { "type": "int128", "name": "j" }, - { "type": "uint256", "name": "dx" }, - { "type": "uint256", "name": "min_dy" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "exchange_underlying", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "int128", "name": "i" }, - { "type": "int128", "name": "j" }, - { "type": "uint256", "name": "dx" }, - { "type": "uint256", "name": "min_dy" }, - { "type": "address", "name": "_receiver" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "remove_liquidity", - "outputs": [{ "type": "uint256[2]", "name": "" }], - "inputs": [ - { "type": "uint256", "name": "_burn_amount" }, - { "type": "uint256[2]", "name": "_min_amounts" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "remove_liquidity", - "outputs": [{ "type": "uint256[2]", "name": "" }], - "inputs": [ - { "type": "uint256", "name": "_burn_amount" }, - { "type": "uint256[2]", "name": "_min_amounts" }, - { "type": "address", "name": "_receiver" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "remove_liquidity_imbalance", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "uint256[2]", "name": "_amounts" }, - { "type": "uint256", "name": "_max_burn_amount" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "remove_liquidity_imbalance", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "uint256[2]", "name": "_amounts" }, - { "type": "uint256", "name": "_max_burn_amount" }, - { "type": "address", "name": "_receiver" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "calc_withdraw_one_coin", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "uint256", "name": "_burn_amount" }, - { "type": "int128", "name": "i" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "name": "calc_withdraw_one_coin", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "uint256", "name": "_burn_amount" }, - { "type": "int128", "name": "i" }, - { "type": "bool", "name": "_previous" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "name": "remove_liquidity_one_coin", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "uint256", "name": "_burn_amount" }, - { "type": "int128", "name": "i" }, - { "type": "uint256", "name": "_min_received" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "remove_liquidity_one_coin", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "uint256", "name": "_burn_amount" }, - { "type": "int128", "name": "i" }, - { "type": "uint256", "name": "_min_received" }, - { "type": "address", "name": "_receiver" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "name": "ramp_A", - "outputs": [], - "inputs": [ - { "type": "uint256", "name": "_future_A" }, - { "type": "uint256", "name": "_future_time" } - ], - "stateMutability": "nonpayable", - "type": "function", - "gas": 152464 - }, - { - "name": "stop_ramp_A", - "outputs": [], - "inputs": [], - "stateMutability": "nonpayable", - "type": "function", - "gas": 149225 - }, - { - "name": "admin_balances", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [{ "type": "uint256", "name": "i" }], - "stateMutability": "view", - "type": "function", - "gas": 3601 - }, - { - "name": "withdraw_admin_fees", - "outputs": [], - "inputs": [], - "stateMutability": "nonpayable", - "type": "function", - "gas": 11347 - }, - { - "name": "admin", - "outputs": [{ "type": "address", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 2141 - }, - { - "name": "coins", - "outputs": [{ "type": "address", "name": "" }], - "inputs": [{ "type": "uint256", "name": "arg0" }], - "stateMutability": "view", - "type": "function", - "gas": 2280 - }, - { - "name": "balances", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [{ "type": "uint256", "name": "arg0" }], - "stateMutability": "view", - "type": "function", - "gas": 2310 - }, - { - "name": "fee", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 2231 - }, - { - "name": "block_timestamp_last", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 2261 - }, - { - "name": "initial_A", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 2291 - }, - { - "name": "future_A", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 2321 - }, - { - "name": "initial_A_time", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 2351 - }, - { - "name": "future_A_time", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 2381 - }, - { - "name": "name", - "outputs": [{ "type": "string", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 8813 - }, - { - "name": "symbol", - "outputs": [{ "type": "string", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 7866 - }, - { - "name": "balanceOf", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [{ "type": "address", "name": "arg0" }], - "stateMutability": "view", - "type": "function", - "gas": 2686 - }, - { - "name": "allowance", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [ - { "type": "address", "name": "arg0" }, - { "type": "address", "name": "arg1" } - ], - "stateMutability": "view", - "type": "function", - "gas": 2931 - }, - { - "name": "totalSupply", - "outputs": [{ "type": "uint256", "name": "" }], - "inputs": [], - "stateMutability": "view", - "type": "function", - "gas": 2531 - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/CurveUSDCStrategyProxy.json b/libs/shared/contracts/src/abis/json/CurveUSDCStrategyProxy.json deleted file mode 100644 index 3d8bb1202..000000000 --- a/libs/shared/contracts/src/abis/json/CurveUSDCStrategyProxy.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "CurveUSDCStrategyProxy", - "address": "0x67023c56548BA15aD3542E65493311F19aDFdd6d", - "abi": "Contract source code not verified" -} diff --git a/libs/shared/contracts/src/abis/json/CurveUSDTStrategyProxy.json b/libs/shared/contracts/src/abis/json/CurveUSDTStrategyProxy.json deleted file mode 100644 index 575797531..000000000 --- a/libs/shared/contracts/src/abis/json/CurveUSDTStrategyProxy.json +++ /dev/null @@ -1,417 +0,0 @@ -{ - "name": "CurveUSDTStrategyProxy", - "address": "0xe40e09cD6725E542001FcB900d9dfeA447B529C0", - "abi": [ - { - "constant": false, - "inputs": [], - "name": "collectRewardToken", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "liquidate", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_rewardTokenAddress", - "type": "address" - }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" }, - { - "internalType": "address", - "name": "_crvGaugeAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_crvMinterAddress", - "type": "address" - } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [ - { - "internalType": "uint256", - "name": "amountDeposited", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_rewardTokenAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_rewardTokenAddress", - "type": "address" - } - ], - "name": "setRewardTokenAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setRewardLiquidationThreshold", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [ - { - "internalType": "uint256", - "name": "amountWithdrawn", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/DAI.json b/libs/shared/contracts/src/abis/json/DAI.json deleted file mode 100644 index eed96ee15..000000000 --- a/libs/shared/contracts/src/abis/json/DAI.json +++ /dev/null @@ -1,341 +0,0 @@ -{ - "name": "DAI", - "address": "0x6b175474e89094c44da98b954eedeac495271d0f", - "abi": [ - { - "inputs": [ - { "internalType": "uint256", "name": "chainId_", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "src", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "guy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "wad", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": true, - "inputs": [ - { - "indexed": true, - "internalType": "bytes4", - "name": "sig", - "type": "bytes4" - }, - { - "indexed": true, - "internalType": "address", - "name": "usr", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "arg1", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "arg2", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "LogNote", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "src", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "dst", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "wad", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "constant": true, - "inputs": [], - "name": "DOMAIN_SEPARATOR", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "PERMIT_TYPEHASH", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "address", "name": "", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "usr", "type": "address" }, - { "internalType": "uint256", "name": "wad", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "usr", "type": "address" }, - { "internalType": "uint256", "name": "wad", "type": "uint256" } - ], - "name": "burn", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "guy", "type": "address" } - ], - "name": "deny", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "usr", "type": "address" }, - { "internalType": "uint256", "name": "wad", "type": "uint256" } - ], - "name": "mint", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "src", "type": "address" }, - { "internalType": "address", "name": "dst", "type": "address" }, - { "internalType": "uint256", "name": "wad", "type": "uint256" } - ], - "name": "move", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "nonces", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "holder", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "nonce", "type": "uint256" }, - { "internalType": "uint256", "name": "expiry", "type": "uint256" }, - { "internalType": "bool", "name": "allowed", "type": "bool" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "permit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "usr", "type": "address" }, - { "internalType": "uint256", "name": "wad", "type": "uint256" } - ], - "name": "pull", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "usr", "type": "address" }, - { "internalType": "uint256", "name": "wad", "type": "uint256" } - ], - "name": "push", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "guy", "type": "address" } - ], - "name": "rely", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "dst", "type": "address" }, - { "internalType": "uint256", "name": "wad", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "src", "type": "address" }, - { "internalType": "address", "name": "dst", "type": "address" }, - { "internalType": "uint256", "name": "wad", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "version", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "wards", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/Dripper.json b/libs/shared/contracts/src/abis/json/Dripper.json deleted file mode 100644 index 72f86e3eb..000000000 --- a/libs/shared/contracts/src/abis/json/Dripper.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "name": "Dripper", - "address": "0xc7068A35F9F5b77471BcFfBdf82D9531D52AFCdc", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_vault", "type": "address" }, - { "internalType": "address", "name": "_token", "type": "address" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "inputs": [], - "name": "availableFunds", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collect", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectAndRebase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "drip", - "outputs": [ - { "internalType": "uint64", "name": "lastCollect", "type": "uint64" }, - { "internalType": "uint192", "name": "perBlock", "type": "uint192" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "dripDuration", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_durationSeconds", - "type": "uint256" - } - ], - "name": "setDripDuration", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/DripperProxy.json b/libs/shared/contracts/src/abis/json/DripperProxy.json deleted file mode 100644 index 748934dc9..000000000 --- a/libs/shared/contracts/src/abis/json/DripperProxy.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "name": "DripperProxy", - "address": "0x80C898ae5e56f888365E235CeB8CEa3EB726CB58", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_vault", "type": "address" }, - { "internalType": "address", "name": "_token", "type": "address" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "inputs": [], - "name": "availableFunds", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collect", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectAndRebase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "drip", - "outputs": [ - { "internalType": "uint64", "name": "lastCollect", "type": "uint64" }, - { "internalType": "uint192", "name": "perBlock", "type": "uint192" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "dripDuration", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_durationSeconds", - "type": "uint256" - } - ], - "name": "setDripDuration", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/Flipper.json b/libs/shared/contracts/src/abis/json/Flipper.json deleted file mode 100644 index 3ee739dbe..000000000 --- a/libs/shared/contracts/src/abis/json/Flipper.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "name": "Flipper", - "address": "0xcecaD69d7D4Ed6D52eFcFA028aF8732F27e08F70", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "buyOusdWithUsdt", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "buyOusdWithDai", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "sellOusdForDai", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "buyOusdWithUsdc", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "sellOusdForUsdc", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "sellOusdForUsdt", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "rebaseOptIn", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/FraxETHStrategyProxy.json b/libs/shared/contracts/src/abis/json/FraxETHStrategyProxy.json deleted file mode 100644 index e6493b470..000000000 --- a/libs/shared/contracts/src/abis/json/FraxETHStrategyProxy.json +++ /dev/null @@ -1,453 +0,0 @@ -{ - "name": "FraxETHStrategyProxy", - "address": "0x3fF8654D633D4Ea0faE24c52Aec73B4A20D0d0e5", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "fraxETHMinter", - "outputs": [ - { - "internalType": "contract IFraxETHMinter", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "weth", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { "stateMutability": "payable", "type": "receive" } - ] -} diff --git a/libs/shared/contracts/src/abis/json/Generalized4626Strategy.json b/libs/shared/contracts/src/abis/json/Generalized4626Strategy.json deleted file mode 100644 index 4ce12eaee..000000000 --- a/libs/shared/contracts/src/abis/json/Generalized4626Strategy.json +++ /dev/null @@ -1,432 +0,0 @@ -{ - "name": "Generalized4626Strategy", - "address": "0x167747bF5B3B6Bf2F7f7C4CCe32C463E9598D425", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/Governor.json b/libs/shared/contracts/src/abis/json/Governor.json deleted file mode 100644 index 725211d44..000000000 --- a/libs/shared/contracts/src/abis/json/Governor.json +++ /dev/null @@ -1,449 +0,0 @@ -{ - "name": "Governor", - "address": "0x72426BA137DEC62657306b12B1E869d43FeC6eC7", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "admin_", "type": "address" }, - { "internalType": "uint256", "name": "delay_", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "indexed": false, - "internalType": "string", - "name": "signature", - "type": "string" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "eta", - "type": "uint256" - } - ], - "name": "CancelTransaction", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "indexed": false, - "internalType": "string", - "name": "signature", - "type": "string" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "eta", - "type": "uint256" - } - ], - "name": "ExecuteTransaction", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "NewAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "newDelay", - "type": "uint256" - } - ], - "name": "NewDelay", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newPendingAdmin", - "type": "address" - } - ], - "name": "NewPendingAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "id", - "type": "uint256" - } - ], - "name": "ProposalCancelled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "proposer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "targets", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "string[]", - "name": "signatures", - "type": "string[]" - }, - { - "indexed": false, - "internalType": "bytes[]", - "name": "calldatas", - "type": "bytes[]" - }, - { - "indexed": false, - "internalType": "string", - "name": "description", - "type": "string" - } - ], - "name": "ProposalCreated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "id", - "type": "uint256" - } - ], - "name": "ProposalExecuted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "id", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "eta", - "type": "uint256" - } - ], - "name": "ProposalQueued", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "indexed": false, - "internalType": "string", - "name": "signature", - "type": "string" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "eta", - "type": "uint256" - } - ], - "name": "QueueTransaction", - "type": "event" - }, - { - "inputs": [], - "name": "GRACE_PERIOD", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAXIMUM_DELAY", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MAX_OPERATIONS", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MINIMUM_DELAY", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "acceptAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "admin", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "proposalId", "type": "uint256" } - ], - "name": "cancel", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "delay", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "proposalId", "type": "uint256" } - ], - "name": "execute", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "proposalId", "type": "uint256" } - ], - "name": "getActions", - "outputs": [ - { "internalType": "address[]", "name": "targets", "type": "address[]" }, - { - "internalType": "string[]", - "name": "signatures", - "type": "string[]" - }, - { "internalType": "bytes[]", "name": "calldatas", "type": "bytes[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "target", "type": "address" } - ], - "name": "pauseCapital", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "pendingAdmin", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "proposalCount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "proposals", - "outputs": [ - { "internalType": "uint256", "name": "id", "type": "uint256" }, - { "internalType": "address", "name": "proposer", "type": "address" }, - { "internalType": "uint256", "name": "eta", "type": "uint256" }, - { "internalType": "bool", "name": "executed", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address[]", "name": "targets", "type": "address[]" }, - { - "internalType": "string[]", - "name": "signatures", - "type": "string[]" - }, - { "internalType": "bytes[]", "name": "calldatas", "type": "bytes[]" }, - { "internalType": "string", "name": "description", "type": "string" } - ], - "name": "propose", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "proposalId", "type": "uint256" } - ], - "name": "queue", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "name": "queuedTransactions", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "delay_", "type": "uint256" } - ], - "name": "setDelay", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "pendingAdmin_", - "type": "address" - } - ], - "name": "setPendingAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "proposalId", "type": "uint256" } - ], - "name": "state", - "outputs": [ - { - "internalType": "enum Governor.ProposalState", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "target", "type": "address" } - ], - "name": "unpauseCapital", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/Harvester.json b/libs/shared/contracts/src/abis/json/Harvester.json deleted file mode 100644 index 4b03a871c..000000000 --- a/libs/shared/contracts/src/abis/json/Harvester.json +++ /dev/null @@ -1,359 +0,0 @@ -{ - "name": "Harvester", - "address": "0x5E72EB0ab74B5B4d2766a7956D210746Ceab96E1", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { "internalType": "address", "name": "_usdtAddress", "type": "address" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint16", - "name": "_allowedSlippageBps", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "uint16", - "name": "_harvestRewardBps", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "address", - "name": "_uniswapV2CompatibleAddr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_liquidationLimit", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bool", - "name": "_doSwapRewardToken", - "type": "bool" - } - ], - "name": "RewardTokenConfigUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "_isSupported", - "type": "bool" - } - ], - "name": "SupportedStrategyUpdate", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "UniswapUpdated", - "type": "event" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyAddr", - "type": "address" - } - ], - "name": "harvest", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "harvest", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "harvestAndSwap", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyAddr", - "type": "address" - } - ], - "name": "harvestAndSwap", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyAddr", - "type": "address" - }, - { "internalType": "address", "name": "_rewardTo", "type": "address" } - ], - "name": "harvestAndSwap", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rewardProceedsAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "rewardTokenConfigs", - "outputs": [ - { - "internalType": "uint16", - "name": "allowedSlippageBps", - "type": "uint16" - }, - { - "internalType": "uint16", - "name": "harvestRewardBps", - "type": "uint16" - }, - { - "internalType": "address", - "name": "uniswapV2CompatibleAddr", - "type": "address" - }, - { "internalType": "bool", "name": "doSwapRewardToken", "type": "bool" }, - { - "internalType": "uint256", - "name": "liquidationLimit", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - }, - { - "internalType": "uint16", - "name": "_allowedSlippageBps", - "type": "uint16" - }, - { - "internalType": "uint16", - "name": "_harvestRewardBps", - "type": "uint16" - }, - { - "internalType": "address", - "name": "_uniswapV2CompatibleAddr", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_liquidationLimit", - "type": "uint256" - }, - { "internalType": "bool", "name": "_doSwapRewardToken", "type": "bool" } - ], - "name": "setRewardTokenConfig", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_rewardProceedsAddress", - "type": "address" - } - ], - "name": "setRewardsProceedsAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyAddress", - "type": "address" - }, - { "internalType": "bool", "name": "_isSupported", "type": "bool" } - ], - "name": "setSupportedStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "supportedStrategies", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "swap", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_swapToken", "type": "address" } - ], - "name": "swapRewardToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "usdtAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/HarvesterProxy.json b/libs/shared/contracts/src/abis/json/HarvesterProxy.json deleted file mode 100644 index c2f801393..000000000 --- a/libs/shared/contracts/src/abis/json/HarvesterProxy.json +++ /dev/null @@ -1,355 +0,0 @@ -{ - "name": "HarvesterProxy", - "address": "0x21Fb5812D70B3396880D30e90D9e5C1202266c89", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_vault", "type": "address" }, - { "internalType": "address", "name": "_usdtAddress", "type": "address" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint16", - "name": "_allowedSlippageBps", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "uint16", - "name": "_harvestRewardBps", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "address", - "name": "_uniswapV2CompatibleAddr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_liquidationLimit", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bool", - "name": "_doSwapRewardToken", - "type": "bool" - } - ], - "name": "RewardTokenConfigUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "_isSupported", - "type": "bool" - } - ], - "name": "SupportedStrategyUpdate", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "UniswapUpdated", - "type": "event" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyAddr", - "type": "address" - } - ], - "name": "harvest", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "harvest", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "harvestAndSwap", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyAddr", - "type": "address" - } - ], - "name": "harvestAndSwap", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyAddr", - "type": "address" - }, - { "internalType": "address", "name": "_rewardTo", "type": "address" } - ], - "name": "harvestAndSwap", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rewardProceedsAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "rewardTokenConfigs", - "outputs": [ - { - "internalType": "uint16", - "name": "allowedSlippageBps", - "type": "uint16" - }, - { - "internalType": "uint16", - "name": "harvestRewardBps", - "type": "uint16" - }, - { - "internalType": "address", - "name": "uniswapV2CompatibleAddr", - "type": "address" - }, - { "internalType": "bool", "name": "doSwapRewardToken", "type": "bool" }, - { - "internalType": "uint256", - "name": "liquidationLimit", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_tokenAddress", - "type": "address" - }, - { - "internalType": "uint16", - "name": "_allowedSlippageBps", - "type": "uint16" - }, - { - "internalType": "uint16", - "name": "_harvestRewardBps", - "type": "uint16" - }, - { - "internalType": "address", - "name": "_uniswapV2CompatibleAddr", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_liquidationLimit", - "type": "uint256" - }, - { "internalType": "bool", "name": "_doSwapRewardToken", "type": "bool" } - ], - "name": "setRewardTokenConfig", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_rewardProceedsAddress", - "type": "address" - } - ], - "name": "setRewardsProceedsAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyAddress", - "type": "address" - }, - { "internalType": "bool", "name": "_isSupported", "type": "bool" } - ], - "name": "setSupportedStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "supportedStrategies", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "swap", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_swapToken", "type": "address" } - ], - "name": "swapRewardToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "usdtAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/MandatoryLockupDistributor.json b/libs/shared/contracts/src/abis/json/MandatoryLockupDistributor.json deleted file mode 100644 index 580afb5c9..000000000 --- a/libs/shared/contracts/src/abis/json/MandatoryLockupDistributor.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "name": "MandatoryLockupDistributor", - "address": "0xD667091c2d1DCc8620f4eaEA254CdFB0a176718D", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_token", "type": "address" }, - { "internalType": "bytes32", "name": "_merkleRoot", "type": "bytes32" }, - { - "internalType": "address", - "name": "_stakingContract", - "type": "address" - }, - { "internalType": "uint256", "name": "_endBlock", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Claimed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "OGVBurned", - "type": "event" - }, - { - "inputs": [], - "name": "burnRemainingOGV", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_index", "type": "uint256" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { - "internalType": "bytes32[]", - "name": "_merkleProof", - "type": "bytes32[]" - } - ], - "name": "claim", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "endBlock", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_index", "type": "uint256" } - ], - "name": "isClaimed", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_index", "type": "uint256" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { "internalType": "address", "name": "_account", "type": "address" }, - { - "internalType": "bytes32[]", - "name": "_merkleProof", - "type": "bytes32[]" - } - ], - "name": "isProofValid", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "merkleRoot", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "stakingContract", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "token", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/MinuteTimelock.json b/libs/shared/contracts/src/abis/json/MinuteTimelock.json deleted file mode 100644 index 83ca8d858..000000000 --- a/libs/shared/contracts/src/abis/json/MinuteTimelock.json +++ /dev/null @@ -1,337 +0,0 @@ -{ - "name": "MinuteTimelock", - "address": "0x52BEBd3d7f37EC4284853Fd5861Ae71253A7F428", - "abi": [ - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "target", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "string", "name": "signature", "type": "string" }, - { "internalType": "bytes", "name": "data", "type": "bytes" }, - { "internalType": "uint256", "name": "eta", "type": "uint256" } - ], - "name": "executeTransaction", - "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "acceptAdmin", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "pendingAdmin", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "target", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "string", "name": "signature", "type": "string" }, - { "internalType": "bytes", "name": "data", "type": "bytes" }, - { "internalType": "uint256", "name": "eta", "type": "uint256" } - ], - "name": "queueTransaction", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "pendingAdmin_", - "type": "address" - } - ], - "name": "setPendingAdmin", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "target", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "string", "name": "signature", "type": "string" }, - { "internalType": "bytes", "name": "data", "type": "bytes" }, - { "internalType": "uint256", "name": "eta", "type": "uint256" } - ], - "name": "cancelTransaction", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "delay", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "MAXIMUM_DELAY", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "MINIMUM_DELAY", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "GRACE_PERIOD", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_admin", "type": "address" } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "delay_", "type": "uint256" } - ], - "name": "setDelay", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "name": "queuedTransactions", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "admin", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "delay_", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { "payable": true, "stateMutability": "payable", "type": "fallback" }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "NewAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newPendingAdmin", - "type": "address" - } - ], - "name": "NewPendingAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "newDelay", - "type": "uint256" - } - ], - "name": "NewDelay", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "signature", - "type": "string" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "eta", - "type": "uint256" - } - ], - "name": "CancelTransaction", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "signature", - "type": "string" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "eta", - "type": "uint256" - } - ], - "name": "ExecuteTransaction", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "signature", - "type": "string" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "eta", - "type": "uint256" - } - ], - "name": "QueueTransaction", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/MixOracle.json b/libs/shared/contracts/src/abis/json/MixOracle.json deleted file mode 100644 index 1ecac571a..000000000 --- a/libs/shared/contracts/src/abis/json/MixOracle.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "name": "MixOracle", - "address": "0x4d4f5e7a1FE57F5cEB38BfcE8653EFFa5e584458", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "priceMin", - "outputs": [ - { "internalType": "uint256", "name": "price", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "maxDrift", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "_maxDrift", "type": "uint256" }, - { "internalType": "uint256", "name": "_minDrift", "type": "uint256" } - ], - "name": "setMinMaxDrift", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "minDrift", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "priceMax", - "outputs": [ - { "internalType": "uint256", "name": "price", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" }, - { - "internalType": "address[]", - "name": "ethOracles", - "type": "address[]" - }, - { - "internalType": "address[]", - "name": "usdOracles", - "type": "address[]" - } - ], - "name": "registerTokenOracles", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "oracle", "type": "address" } - ], - "name": "unregisterEthUsdOracle", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "oracle", "type": "address" } - ], - "name": "registerEthUsdOracle", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "ethUsdOracles", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_maxDrift", "type": "uint256" }, - { "internalType": "uint256", "name": "_minDrift", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/MorphoAaveStrategy.json b/libs/shared/contracts/src/abis/json/MorphoAaveStrategy.json deleted file mode 100644 index 920ac2aa2..000000000 --- a/libs/shared/contracts/src/abis/json/MorphoAaveStrategy.json +++ /dev/null @@ -1,475 +0,0 @@ -{ - "name": "MorphoAaveStrategy", - "address": "0xC72bda59E382be10bb5D71aBd01Ecc65aa16fD83", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "LENS", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MORPHO", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getPendingRewards", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/MorphoAaveStrategyProxy.json b/libs/shared/contracts/src/abis/json/MorphoAaveStrategyProxy.json deleted file mode 100644 index a43b28f64..000000000 --- a/libs/shared/contracts/src/abis/json/MorphoAaveStrategyProxy.json +++ /dev/null @@ -1,475 +0,0 @@ -{ - "name": "MorphoAaveStrategyProxy", - "address": "0x79F2188EF9350A1dC11A062cca0abE90684b0197", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "LENS", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MORPHO", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getPendingRewards", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/MorphoCompoundStrategy.json b/libs/shared/contracts/src/abis/json/MorphoCompoundStrategy.json deleted file mode 100644 index a532370b1..000000000 --- a/libs/shared/contracts/src/abis/json/MorphoCompoundStrategy.json +++ /dev/null @@ -1,475 +0,0 @@ -{ - "name": "MorphoCompoundStrategy", - "address": "0x5cC70898c47f73265BdE5b8BB9D37346d0726c09", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "LENS", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MORPHO", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getPendingRewards", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/MorphoCompoundStrategyProxy.json b/libs/shared/contracts/src/abis/json/MorphoCompoundStrategyProxy.json deleted file mode 100644 index 97ecd2fa5..000000000 --- a/libs/shared/contracts/src/abis/json/MorphoCompoundStrategyProxy.json +++ /dev/null @@ -1,475 +0,0 @@ -{ - "name": "MorphoCompoundStrategyProxy", - "address": "0x5A4eEe58744D1430876d5cA93cAB5CcB763C037D", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_oldHarvesterAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_newHarvesterAddress", - "type": "address" - } - ], - "name": "HarvesterAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_oldAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "_newAddresses", - "type": "address[]" - } - ], - "name": "RewardTokenAddressesUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "rewardToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "inputs": [], - "name": "LENS", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "MORPHO", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_deprecated_rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewardTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "depositAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getPendingRewards", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getRewardTokenAddresses", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "harvesterAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rewardTokenAddresses", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_harvesterAddress", - "type": "address" - } - ], - "name": "setHarvesterAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "_rewardTokenAddresses", - "type": "address[]" - } - ], - "name": "setRewardTokenAddresses", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OETH.json b/libs/shared/contracts/src/abis/json/OETH.json deleted file mode 100644 index 995c76e23..000000000 --- a/libs/shared/contracts/src/abis/json/OETH.json +++ /dev/null @@ -1,419 +0,0 @@ -{ - "name": "OETH", - "address": "0x856c4Efb76C1D1AE02e20CEB03A2A6a08b0b8dC3", - "abi": [ - { - "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": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "totalSupply", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rebasingCredits", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rebasingCreditsPerToken", - "type": "uint256" - } - ], - "name": "TotalSupplyUpdatedHighres", - "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" - }, - { - "inputs": [], - "name": "_totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" }, - { "internalType": "address", "name": "_spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_spender", "type": "address" }, - { "internalType": "uint256", "name": "_value", "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": "account", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "burn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_newTotalSupply", - "type": "uint256" - } - ], - "name": "changeSupply", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "creditsBalanceOf", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "creditsBalanceOfHighres", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "bool", "name": "", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "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": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_spender", "type": "address" }, - { "internalType": "uint256", "name": "_addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "string", "name": "_nameArg", "type": "string" }, - { "internalType": "string", "name": "_symbolArg", "type": "string" }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_initialCreditsPerToken", - "type": "uint256" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "isUpgraded", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "nonRebasingCreditsPerToken", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "nonRebasingSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseOptIn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseOptOut", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "rebaseState", - "outputs": [ - { - "internalType": "enum OUSD.RebaseOptions", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCredits", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsHighres", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsPerToken", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsPerTokenHighres", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OETHOracleRouter.json b/libs/shared/contracts/src/abis/json/OETHOracleRouter.json deleted file mode 100644 index c56f17dd4..000000000 --- a/libs/shared/contracts/src/abis/json/OETHOracleRouter.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "OETHOracleRouter", - "address": "0x3ccd26e82f7305b12742fbb36708b42f82b61dba", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "asset", "type": "address" } - ], - "name": "cacheDecimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset", "type": "address" } - ], - "name": "price", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OETHProxy.json b/libs/shared/contracts/src/abis/json/OETHProxy.json deleted file mode 100644 index 08a825ea2..000000000 --- a/libs/shared/contracts/src/abis/json/OETHProxy.json +++ /dev/null @@ -1,419 +0,0 @@ -{ - "name": "OETHProxy", - "address": "0x856c4Efb76C1D1AE02e20CEB03A2A6a08b0b8dC3", - "abi": [ - { - "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": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "totalSupply", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rebasingCredits", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rebasingCreditsPerToken", - "type": "uint256" - } - ], - "name": "TotalSupplyUpdatedHighres", - "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" - }, - { - "inputs": [], - "name": "_totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" }, - { "internalType": "address", "name": "_spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_spender", "type": "address" }, - { "internalType": "uint256", "name": "_value", "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": "account", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "burn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_newTotalSupply", - "type": "uint256" - } - ], - "name": "changeSupply", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "creditsBalanceOf", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "creditsBalanceOfHighres", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "bool", "name": "", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "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": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_spender", "type": "address" }, - { "internalType": "uint256", "name": "_addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "string", "name": "_nameArg", "type": "string" }, - { "internalType": "string", "name": "_symbolArg", "type": "string" }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_initialCreditsPerToken", - "type": "uint256" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "isUpgraded", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "nonRebasingCreditsPerToken", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "nonRebasingSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseOptIn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseOptOut", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "rebaseState", - "outputs": [ - { - "internalType": "enum OUSD.RebaseOptions", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCredits", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsHighres", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsPerToken", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsPerTokenHighres", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OETHVault.json b/libs/shared/contracts/src/abis/json/OETHVault.json deleted file mode 100644 index bc3375663..000000000 --- a/libs/shared/contracts/src/abis/json/OETHVault.json +++ /dev/null @@ -1,785 +0,0 @@ -{ - "name": "OETHVault", - "address": "0xe4775E018bFC72CC3c4944E6879d64cDF885c247", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "AllocateThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "AssetAllocated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - } - ], - "name": "AssetDefaultStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - } - ], - "name": "AssetSupported", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalPaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "maxSupplyDiff", - "type": "uint256" - } - ], - "name": "MaxSupplyDiffChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "NetOusdMintForStrategyThresholdChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_ousdMetaStrategy", - "type": "address" - } - ], - "name": "OusdMetaStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_priceProvider", - "type": "address" - } - ], - "name": "PriceProviderUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebasePaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "RebaseThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebaseUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_redeemFeeBps", - "type": "uint256" - } - ], - "name": "RedeemFeeUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "StrategistUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyApproved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "TrusteeAddressChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_basis", - "type": "uint256" - } - ], - "name": "TrusteeFeeBpsChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_vaultBuffer", - "type": "uint256" - } - ], - "name": "VaultBufferUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_yield", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fee", - "type": "uint256" - } - ], - "name": "YieldDistribution", - "type": "event" - }, - { - "inputs": [ - { "internalType": "address", "name": "_addr", "type": "address" } - ], - "name": "approveStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetDefaultStrategies", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "autoAllocateThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "cacheDecimals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "capitalPaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyToAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "depositToStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_priceProvider", - "type": "address" - }, - { "internalType": "address", "name": "_ousd", "type": "address" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxSupplyDiff", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintForStrategyThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintedForStrategy", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ousdMetaStrategy", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pauseCapital", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "pauseRebase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "priceProvider", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyFromAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_strategyToAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "reallocate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rebasePaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "redeemFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_addr", "type": "address" } - ], - "name": "removeStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "newImpl", "type": "address" } - ], - "name": "setAdminImpl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_strategy", "type": "address" } - ], - "name": "setAssetDefaultStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setAutoAllocateThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_maxSupplyDiff", - "type": "uint256" - } - ], - "name": "setMaxSupplyDiff", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setNetOusdMintForStrategyThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_ousdMetaStrategy", - "type": "address" - } - ], - "name": "setOusdMetaStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_priceProvider", - "type": "address" - } - ], - "name": "setPriceProvider", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setRebaseThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_redeemFeeBps", - "type": "uint256" - } - ], - "name": "setRedeemFeeBps", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_address", "type": "address" } - ], - "name": "setStrategistAddr", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_address", "type": "address" } - ], - "name": "setTrusteeAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_basis", "type": "uint256" } - ], - "name": "setTrusteeFeeBps", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_vaultBuffer", "type": "uint256" } - ], - "name": "setVaultBuffer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "strategistAddr", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint8", "name": "_unitConversion", "type": "uint8" } - ], - "name": "supportAsset", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "unpauseCapital", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "unpauseRebase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultBuffer", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAllFromStrategies", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyAddr", - "type": "address" - } - ], - "name": "withdrawAllFromStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyFromAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "withdrawFromStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OETHVaultAdmin.json b/libs/shared/contracts/src/abis/json/OETHVaultAdmin.json deleted file mode 100644 index 05c3af2d2..000000000 --- a/libs/shared/contracts/src/abis/json/OETHVaultAdmin.json +++ /dev/null @@ -1,771 +0,0 @@ -{ - "name": "OETHVaultAdmin", - "address": "0xbA3656713862dF9De5EB3dFEA22141F06d67221c", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "AllocateThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "AssetAllocated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - } - ], - "name": "AssetDefaultStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - } - ], - "name": "AssetSupported", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalPaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "maxSupplyDiff", - "type": "uint256" - } - ], - "name": "MaxSupplyDiffChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "NetOusdMintForStrategyThresholdChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_ousdMetaStrategy", - "type": "address" - } - ], - "name": "OusdMetaStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_priceProvider", - "type": "address" - } - ], - "name": "PriceProviderUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebasePaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "RebaseThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebaseUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_redeemFeeBps", - "type": "uint256" - } - ], - "name": "RedeemFeeUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "StrategistUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyApproved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "TrusteeAddressChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_basis", - "type": "uint256" - } - ], - "name": "TrusteeFeeBpsChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_vaultBuffer", - "type": "uint256" - } - ], - "name": "VaultBufferUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_yield", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fee", - "type": "uint256" - } - ], - "name": "YieldDistribution", - "type": "event" - }, - { - "inputs": [ - { "internalType": "address", "name": "_addr", "type": "address" } - ], - "name": "approveStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetDefaultStrategies", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "autoAllocateThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "cacheDecimals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "capitalPaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyToAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "depositToStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxSupplyDiff", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintForStrategyThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintedForStrategy", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ousdMetaStrategy", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pauseCapital", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "pauseRebase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "priceProvider", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyFromAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_strategyToAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "reallocate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rebasePaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "redeemFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_addr", "type": "address" } - ], - "name": "removeStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "newImpl", "type": "address" } - ], - "name": "setAdminImpl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_strategy", "type": "address" } - ], - "name": "setAssetDefaultStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setAutoAllocateThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_maxSupplyDiff", - "type": "uint256" - } - ], - "name": "setMaxSupplyDiff", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setNetOusdMintForStrategyThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_ousdMetaStrategy", - "type": "address" - } - ], - "name": "setOusdMetaStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_priceProvider", - "type": "address" - } - ], - "name": "setPriceProvider", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setRebaseThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_redeemFeeBps", - "type": "uint256" - } - ], - "name": "setRedeemFeeBps", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_address", "type": "address" } - ], - "name": "setStrategistAddr", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_address", "type": "address" } - ], - "name": "setTrusteeAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_basis", "type": "uint256" } - ], - "name": "setTrusteeFeeBps", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_vaultBuffer", "type": "uint256" } - ], - "name": "setVaultBuffer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "strategistAddr", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint8", "name": "_unitConversion", "type": "uint8" } - ], - "name": "supportAsset", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "unpauseCapital", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "unpauseRebase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultBuffer", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAllFromStrategies", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyAddr", - "type": "address" - } - ], - "name": "withdrawAllFromStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyFromAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "withdrawFromStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OETHVaultCore.json b/libs/shared/contracts/src/abis/json/OETHVaultCore.json deleted file mode 100644 index 97b47252a..000000000 --- a/libs/shared/contracts/src/abis/json/OETHVaultCore.json +++ /dev/null @@ -1,668 +0,0 @@ -{ - "name": "OETHVaultCore", - "address": "0x1091588Cc431275F99DC5Df311fd8E1Ab81c89F3", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "AllocateThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "AssetAllocated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - } - ], - "name": "AssetDefaultStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - } - ], - "name": "AssetSupported", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalPaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "maxSupplyDiff", - "type": "uint256" - } - ], - "name": "MaxSupplyDiffChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "NetOusdMintForStrategyThresholdChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_ousdMetaStrategy", - "type": "address" - } - ], - "name": "OusdMetaStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_priceProvider", - "type": "address" - } - ], - "name": "PriceProviderUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebasePaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "RebaseThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebaseUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_redeemFeeBps", - "type": "uint256" - } - ], - "name": "RedeemFeeUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "StrategistUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyApproved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "TrusteeAddressChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_basis", - "type": "uint256" - } - ], - "name": "TrusteeFeeBpsChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_vaultBuffer", - "type": "uint256" - } - ], - "name": "VaultBufferUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_yield", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fee", - "type": "uint256" - } - ], - "name": "YieldDistribution", - "type": "event" - }, - { "stateMutability": "payable", "type": "fallback" }, - { - "inputs": [], - "name": "allocate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetDefaultStrategies", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "autoAllocateThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "burnForStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "calculateRedeemOutputs", - "outputs": [ - { "internalType": "uint256[]", "name": "", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "capitalPaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getAllAssets", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAllStrategies", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAssetCount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getStrategyCount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "isSupportedAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxSupplyDiff", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { - "internalType": "uint256", - "name": "_minimumOusdAmount", - "type": "uint256" - } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mintForStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintForStrategyThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintedForStrategy", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ousdMetaStrategy", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "priceProvider", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset", "type": "address" } - ], - "name": "priceUnitMint", - "outputs": [ - { "internalType": "uint256", "name": "price", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset", "type": "address" } - ], - "name": "priceUnitRedeem", - "outputs": [ - { "internalType": "uint256", "name": "price", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rebasePaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { - "internalType": "uint256", - "name": "_minimumUnitAmount", - "type": "uint256" - } - ], - "name": "redeem", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_minimumUnitAmount", - "type": "uint256" - } - ], - "name": "redeemAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "redeemFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "newImpl", "type": "address" } - ], - "name": "setAdminImpl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "strategistAddr", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalValue", - "outputs": [ - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "vaultBuffer", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OETHVaultProxy.json b/libs/shared/contracts/src/abis/json/OETHVaultProxy.json deleted file mode 100644 index f05318315..000000000 --- a/libs/shared/contracts/src/abis/json/OETHVaultProxy.json +++ /dev/null @@ -1,773 +0,0 @@ -{ - "name": "OETHVaultProxy", - "address": "0x39254033945AA2E4809Cc2977E7087BEE48bd7Ab", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "AllocateThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "AssetAllocated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - } - ], - "name": "AssetDefaultStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - } - ], - "name": "AssetSupported", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalPaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "maxSupplyDiff", - "type": "uint256" - } - ], - "name": "MaxSupplyDiffChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "NetOusdMintForStrategyThresholdChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_ousdMetaStrategy", - "type": "address" - } - ], - "name": "OusdMetaStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_priceProvider", - "type": "address" - } - ], - "name": "PriceProviderUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebasePaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "RebaseThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebaseUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_redeemFeeBps", - "type": "uint256" - } - ], - "name": "RedeemFeeUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "StrategistUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyApproved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_basis", - "type": "uint256" - } - ], - "name": "SwapAllowedUndervalueChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_basis", - "type": "uint256" - } - ], - "name": "SwapSlippageChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_fromAsset", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_toAsset", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromAssetAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_toAssetAmount", - "type": "uint256" - } - ], - "name": "Swapped", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "SwapperChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "TrusteeAddressChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_basis", - "type": "uint256" - } - ], - "name": "TrusteeFeeBpsChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_vaultBuffer", - "type": "uint256" - } - ], - "name": "VaultBufferUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_yield", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fee", - "type": "uint256" - } - ], - "name": "YieldDistribution", - "type": "event" - }, - { "stateMutability": "payable", "type": "fallback" }, - { - "inputs": [], - "name": "allocate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetDefaultStrategies", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "autoAllocateThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "burnForStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "calculateRedeemOutputs", - "outputs": [ - { "internalType": "uint256[]", "name": "", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "capitalPaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getAllAssets", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAllStrategies", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "getAssetConfig", - "outputs": [ - { - "components": [ - { "internalType": "bool", "name": "isSupported", "type": "bool" }, - { - "internalType": "enum VaultStorage.UnitConversion", - "name": "unitConversion", - "type": "uint8" - }, - { "internalType": "uint8", "name": "decimals", "type": "uint8" }, - { - "internalType": "uint16", - "name": "allowedOracleSlippageBps", - "type": "uint16" - } - ], - "internalType": "struct VaultStorage.Asset", - "name": "config", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAssetCount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getStrategyCount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "isSupportedAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxSupplyDiff", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { - "internalType": "uint256", - "name": "_minimumOusdAmount", - "type": "uint256" - } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mintForStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintForStrategyThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintedForStrategy", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ousdMetaStrategy", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "priceProvider", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset", "type": "address" } - ], - "name": "priceUnitMint", - "outputs": [ - { "internalType": "uint256", "name": "price", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset", "type": "address" } - ], - "name": "priceUnitRedeem", - "outputs": [ - { "internalType": "uint256", "name": "price", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rebasePaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { - "internalType": "uint256", - "name": "_minimumUnitAmount", - "type": "uint256" - } - ], - "name": "redeem", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_minimumUnitAmount", - "type": "uint256" - } - ], - "name": "redeemAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "redeemFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "newImpl", "type": "address" } - ], - "name": "setAdminImpl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "strategistAddr", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalValue", - "outputs": [ - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "vaultBuffer", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OETHZapper.json b/libs/shared/contracts/src/abis/json/OETHZapper.json deleted file mode 100644 index 6319223d5..000000000 --- a/libs/shared/contracts/src/abis/json/OETHZapper.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "name": "OETHZapper", - "address": "0x9858e47bcbbe6fbac040519b02d7cd4b2c470c66", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_oeth", "type": "address" }, - { "internalType": "address", "name": "_vault", "type": "address" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "minter", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Zap", - "type": "event" - }, - { - "inputs": [], - "name": "deposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "minOETH", "type": "uint256" } - ], - "name": "depositSFRXETH", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "frxeth", - "outputs": [ - { "internalType": "contract IERC20", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "oeth", - "outputs": [ - { "internalType": "contract IERC20", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "sfrxeth", - "outputs": [ - { "internalType": "contract ISfrxETH", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "vault", - "outputs": [ - { "internalType": "contract IVault", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "weth", - "outputs": [ - { "internalType": "contract IWETH9", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { "stateMutability": "payable", "type": "receive" } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OGN.json b/libs/shared/contracts/src/abis/json/OGN.json deleted file mode 100644 index 2456375ad..000000000 --- a/libs/shared/contracts/src/abis/json/OGN.json +++ /dev/null @@ -1,429 +0,0 @@ -{ - "name": "OGN", - "address": "0x8207c1ffc5b6804f6024322ccf34f29c3541ae26", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "whitelistActive", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "mintingFinished", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_spender", "type": "address" }, - { "name": "_value", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_from", "type": "address" }, - { "name": "_to", "type": "address" }, - { "name": "_value", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_transactor", "type": "address" }], - "name": "addAllowedTransactor", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "unpause", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_to", "type": "address" }, - { "name": "_amount", "type": "uint256" } - ], - "name": "mint", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_value", "type": "uint256" }], - "name": "burn", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_transactor", "type": "address" }], - "name": "removeAllowedTransactor", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "paused", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_spender", "type": "address" }, - { "name": "_subtractedValue", "type": "uint256" } - ], - "name": "decreaseApproval", - "outputs": [{ "name": "success", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "_owner", "type": "address" }], - "name": "balanceOf", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "renounceOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "finishMinting", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_spender", "type": "address" }, - { "name": "_value", "type": "uint256" }, - { "name": "_selector", "type": "bytes4" }, - { "name": "_callParams", "type": "bytes" } - ], - "name": "approveAndCallWithSender", - "outputs": [{ "name": "", "type": "bool" }], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "pause", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_spender", "type": "address" }], - "name": "addCallSpenderWhitelist", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_who", "type": "address" }, - { "name": "_value", "type": "uint256" } - ], - "name": "burn", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_to", "type": "address" }, - { "name": "_value", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "whitelistExpiration", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "", "type": "address" }], - "name": "allowedTransactors", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_expiration", "type": "uint256" }], - "name": "setWhitelistExpiration", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_spender", "type": "address" }, - { "name": "_addedValue", "type": "uint256" } - ], - "name": "increaseApproval", - "outputs": [{ "name": "success", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "name": "_owner", "type": "address" }, - { "name": "_spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_newOwner", "type": "address" }], - "name": "transferOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_spender", "type": "address" }], - "name": "removeCallSpenderWhitelist", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "", "type": "address" }], - "name": "callSpenderWhitelist", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "name": "_initialSupply", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "enabler", "type": "address" }, - { "indexed": false, "name": "spender", "type": "address" } - ], - "name": "AddCallSpenderWhitelist", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "disabler", "type": "address" }, - { "indexed": false, "name": "spender", "type": "address" } - ], - "name": "RemoveCallSpenderWhitelist", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "name": "expiration", "type": "uint256" }], - "name": "SetWhitelistExpiration", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "name": "sender", "type": "address" }], - "name": "AllowedTransactorAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "name": "sender", "type": "address" }], - "name": "AllowedTransactorRemoved", - "type": "event" - }, - { "anonymous": false, "inputs": [], "name": "Pause", "type": "event" }, - { "anonymous": false, "inputs": [], "name": "Unpause", "type": "event" }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "to", "type": "address" }, - { "indexed": false, "name": "amount", "type": "uint256" } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "MintFinished", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "previousOwner", "type": "address" } - ], - "name": "OwnershipRenounced", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "previousOwner", "type": "address" }, - { "indexed": true, "name": "newOwner", "type": "address" } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "burner", "type": "address" }, - { "indexed": false, "name": "value", "type": "uint256" } - ], - "name": "Burn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "owner", "type": "address" }, - { "indexed": true, "name": "spender", "type": "address" }, - { "indexed": false, "name": "value", "type": "uint256" } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "from", "type": "address" }, - { "indexed": true, "name": "to", "type": "address" }, - { "indexed": false, "name": "value", "type": "uint256" } - ], - "name": "Transfer", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OGNStakingProxy.json b/libs/shared/contracts/src/abis/json/OGNStakingProxy.json deleted file mode 100644 index 3b9b34ccd..000000000 --- a/libs/shared/contracts/src/abis/json/OGNStakingProxy.json +++ /dev/null @@ -1,522 +0,0 @@ -{ - "name": "OGNStakingProxy", - "address": "0x501804B374EF06fa9C427476147ac09F1551B9A0", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint8", - "name": "stakeType", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "rootHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "proofDepth", - "type": "uint256" - } - ], - "name": "NewAirDropRootHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "durations", - "type": "uint256[]" - } - ], - "name": "NewDurations", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "rates", - "type": "uint256[]" - } - ], - "name": "NewRates", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "yes", - "type": "bool" - } - ], - "name": "Paused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rate", - "type": "uint256" - } - ], - "name": "Staked", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "fromUser", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "toUser", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "numStakes", - "type": "uint256" - } - ], - "name": "StakesTransfered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "stakedAmount", - "type": "uint256" - } - ], - "name": "Withdrawn", - "type": "event" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "index", "type": "uint256" }, - { "internalType": "uint8", "name": "stakeType", "type": "uint8" }, - { "internalType": "uint256", "name": "duration", "type": "uint256" }, - { "internalType": "uint256", "name": "rate", "type": "uint256" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { - "internalType": "bytes32[]", - "name": "merkleProof", - "type": "bytes32[]" - } - ], - "name": "airDroppedStake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "uint8", "name": "stakeType", "type": "uint8" } - ], - "name": "airDroppedStakeClaimed", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "name": "dropRoots", - "outputs": [ - { "internalType": "bytes32", "name": "hash", "type": "bytes32" }, - { "internalType": "uint256", "name": "depth", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_duration", "type": "uint256" } - ], - "name": "durationRewardRate", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "durations", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "exit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getAllDurations", - "outputs": [ - { "internalType": "uint256[]", "name": "", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAllRates", - "outputs": [ - { "internalType": "uint256[]", "name": "", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "getAllStakes", - "outputs": [ - { - "components": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "end", "type": "uint256" }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { "internalType": "uint240", "name": "rate", "type": "uint240" }, - { "internalType": "bool", "name": "paid", "type": "bool" }, - { "internalType": "uint8", "name": "stakeType", "type": "uint8" } - ], - "internalType": "struct SingleAssetStaking.Stake[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_stakingToken", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "_durations", - "type": "uint256[]" - }, - { "internalType": "uint256[]", "name": "_rates", "type": "uint256[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "paused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rates", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint8", "name": "_stakeType", "type": "uint8" }, - { "internalType": "bytes32", "name": "_rootHash", "type": "bytes32" }, - { "internalType": "uint256", "name": "_proofDepth", "type": "uint256" } - ], - "name": "setAirDropRoot", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_durations", - "type": "uint256[]" - }, - { "internalType": "uint256[]", "name": "_rates", "type": "uint256[]" } - ], - "name": "setDurationRates", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "bool", "name": "_paused", "type": "bool" }], - "name": "setPaused", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_agent", "type": "address" } - ], - "name": "setTransferAgent", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "duration", "type": "uint256" } - ], - "name": "stake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "staker", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "duration", "type": "uint256" } - ], - "name": "stakeWithSender", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "stakingToken", - "outputs": [ - { "internalType": "contract IERC20", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "totalCurrentHoldings", - "outputs": [ - { "internalType": "uint256", "name": "total", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "totalExpectedRewards", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalOutstanding", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "totalStaked", - "outputs": [ - { "internalType": "uint256", "name": "total", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "transferAgent", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_frmAccount", "type": "address" }, - { "internalType": "address", "name": "_dstAccount", "type": "address" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" }, - { "internalType": "uint8", "name": "v", "type": "uint8" } - ], - "name": "transferStakes", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "name": "userStakes", - "outputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "end", "type": "uint256" }, - { "internalType": "uint256", "name": "duration", "type": "uint256" }, - { "internalType": "uint240", "name": "rate", "type": "uint240" }, - { "internalType": "bool", "name": "paid", "type": "bool" }, - { "internalType": "uint8", "name": "stakeType", "type": "uint8" } - ], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OGV.json b/libs/shared/contracts/src/abis/json/OGV.json deleted file mode 100644 index 43c9bc348..000000000 --- a/libs/shared/contracts/src/abis/json/OGV.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "OGV", - "address": "0x9c354503C38481a7A7a51629142963F98eCC12D0", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_logic", "type": "address" }, - { "internalType": "bytes", "name": "_data", "type": "bytes" } - ], - "stateMutability": "payable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "previousAdmin", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "AdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "beacon", - "type": "address" - } - ], - "name": "BeaconUpgraded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "implementation", - "type": "address" - } - ], - "name": "Upgraded", - "type": "event" - }, - { "stateMutability": "payable", "type": "fallback" }, - { "stateMutability": "payable", "type": "receive" } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OUSD.json b/libs/shared/contracts/src/abis/json/OUSD.json deleted file mode 100644 index d943abee5..000000000 --- a/libs/shared/contracts/src/abis/json/OUSD.json +++ /dev/null @@ -1,414 +0,0 @@ -{ - "name": "OUSD", - "address": "0x2A8e1E676Ec238d8A992307B495b45B3fEAa5e86", - "abi": [ - { - "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": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "totalSupply", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rebasingCredits", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rebasingCreditsPerToken", - "type": "uint256" - } - ], - "name": "TotalSupplyUpdatedHighres", - "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" - }, - { - "inputs": [], - "name": "_totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" }, - { "internalType": "address", "name": "_spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_spender", "type": "address" }, - { "internalType": "uint256", "name": "_value", "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": "account", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "burn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_newTotalSupply", - "type": "uint256" - } - ], - "name": "changeSupply", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "creditsBalanceOf", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "creditsBalanceOfHighres", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "bool", "name": "", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "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": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_spender", "type": "address" }, - { "internalType": "uint256", "name": "_addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "string", "name": "_nameArg", "type": "string" }, - { "internalType": "string", "name": "_symbolArg", "type": "string" }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "isUpgraded", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "nonRebasingCreditsPerToken", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "nonRebasingSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseOptIn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseOptOut", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "rebaseState", - "outputs": [ - { - "internalType": "enum OUSD.RebaseOptions", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCredits", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsHighres", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsPerToken", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsPerTokenHighres", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OUSDProxy.json b/libs/shared/contracts/src/abis/json/OUSDProxy.json deleted file mode 100644 index 905a2061e..000000000 --- a/libs/shared/contracts/src/abis/json/OUSDProxy.json +++ /dev/null @@ -1,414 +0,0 @@ -{ - "name": "OUSDProxy", - "address": "0x2A8e1E676Ec238d8A992307B495b45B3fEAa5e86", - "abi": [ - { - "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": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "totalSupply", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rebasingCredits", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rebasingCreditsPerToken", - "type": "uint256" - } - ], - "name": "TotalSupplyUpdatedHighres", - "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" - }, - { - "inputs": [], - "name": "_totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" }, - { "internalType": "address", "name": "_spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_spender", "type": "address" }, - { "internalType": "uint256", "name": "_value", "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": "account", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "burn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_newTotalSupply", - "type": "uint256" - } - ], - "name": "changeSupply", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "creditsBalanceOf", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "creditsBalanceOfHighres", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "bool", "name": "", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "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": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_spender", "type": "address" }, - { "internalType": "uint256", "name": "_addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "string", "name": "_nameArg", "type": "string" }, - { "internalType": "string", "name": "_symbolArg", "type": "string" }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "isUpgraded", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "nonRebasingCreditsPerToken", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "nonRebasingSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseOptIn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseOptOut", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "rebaseState", - "outputs": [ - { - "internalType": "enum OUSD.RebaseOptions", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCredits", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsHighres", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsPerToken", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsPerTokenHighres", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OUSDReset.json b/libs/shared/contracts/src/abis/json/OUSDReset.json deleted file mode 100644 index c100bad2c..000000000 --- a/libs/shared/contracts/src/abis/json/OUSDReset.json +++ /dev/null @@ -1,489 +0,0 @@ -{ - "name": "OUSDReset", - "address": "0x78b107E4c3192E225e6Bc2bc10e28de9866d39De", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "string", "name": "_nameArg", "type": "string" }, - { "internalType": "string", "name": "_symbolArg", "type": "string" }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rebasingCredits", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_spender", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "_decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_spender", "type": "address" }, - { "internalType": "uint256", "name": "_addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "uint256", - "name": "_newTotalSupply", - "type": "uint256" - } - ], - "name": "changeSupply", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "_totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mint", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "rebaseState", - "outputs": [ - { - "internalType": "enum OUSD.RebaseOptions", - "name": "", - "type": "uint8" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "nonRebasingCreditsPerToken", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rebasingCreditsPerToken", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - } - ], - "name": "setVaultAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "burn", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_spender", "type": "address" }, - { - "internalType": "uint256", - "name": "_subtractedValue", - "type": "uint256" - } - ], - "name": "decreaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "_symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "rebaseOptOut", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "_name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "reset", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" }, - { "internalType": "address", "name": "_spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "nonRebasingSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "rebaseOptIn", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "creditsBalanceOf", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "totalSupply", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rebasingCredits", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rebasingCreditsPerToken", - "type": "uint256" - } - ], - "name": "TotalSupplyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "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": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OUSDResolutionUpgrade.json b/libs/shared/contracts/src/abis/json/OUSDResolutionUpgrade.json deleted file mode 100644 index 1fc35817f..000000000 --- a/libs/shared/contracts/src/abis/json/OUSDResolutionUpgrade.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "name": "OUSDResolutionUpgrade", - "address": "0xB248c975DaeAc47c4960EcBD10a79E486eBD1cA8", - "abi": [ - { - "inputs": [], - "name": "_totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "creditsBalanceOfHighres", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "bool", "name": "", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "isUpgraded", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "nonRebasingCreditsPerToken", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "nonRebasingSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "rebaseState", - "outputs": [ - { - "internalType": "enum OUSDResolutionUpgrade.RebaseOptions", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCredits", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsHighres", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsPerToken", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebasingCreditsPerTokenHighres", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address[]", "name": "accounts", "type": "address[]" } - ], - "name": "upgradeAccounts", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "upgradeGlobals", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OpenOracle.json b/libs/shared/contracts/src/abis/json/OpenOracle.json deleted file mode 100644 index 2066b2976..000000000 --- a/libs/shared/contracts/src/abis/json/OpenOracle.json +++ /dev/null @@ -1,611 +0,0 @@ -{ - "name": "OpenOracle", - "address": "0x9b8eb8b3d6e2e0db36f41455185fef7049a35cae", - "abi": [ - { - "inputs": [ - { - "internalType": "contract OpenOraclePriceData", - "name": "priceData_", - "type": "address" - }, - { "internalType": "address", "name": "reporter_", "type": "address" }, - { - "internalType": "uint256", - "name": "anchorToleranceMantissa_", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "anchorPeriod_", - "type": "uint256" - }, - { - "components": [ - { "internalType": "address", "name": "cToken", "type": "address" }, - { - "internalType": "address", - "name": "underlying", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "symbolHash", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "baseUnit", - "type": "uint256" - }, - { - "internalType": "enum UniswapConfig.PriceSource", - "name": "priceSource", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "fixedPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "uniswapMarket", - "type": "address" - }, - { - "internalType": "bool", - "name": "isUniswapReversed", - "type": "bool" - } - ], - "internalType": "struct UniswapConfig.TokenConfig[]", - "name": "configs", - "type": "tuple[]" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "symbol", - "type": "string" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "anchorPrice", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "oldTimestamp", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newTimestamp", - "type": "uint256" - } - ], - "name": "AnchorPriceUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "symbol", - "type": "string" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "reporter", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "anchor", - "type": "uint256" - } - ], - "name": "PriceGuarded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "string", - "name": "symbol", - "type": "string" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "price", - "type": "uint256" - } - ], - "name": "PriceUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "reporter", - "type": "address" - } - ], - "name": "ReporterInvalidated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "symbolHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "oldTimestamp", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newTimestamp", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "oldPrice", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newPrice", - "type": "uint256" - } - ], - "name": "UniswapWindowUpdated", - "type": "event" - }, - { - "inputs": [], - "name": "anchorPeriod", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ethBaseUnit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "expScale", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "i", "type": "uint256" }], - "name": "getTokenConfig", - "outputs": [ - { - "components": [ - { "internalType": "address", "name": "cToken", "type": "address" }, - { - "internalType": "address", - "name": "underlying", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "symbolHash", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "baseUnit", - "type": "uint256" - }, - { - "internalType": "enum UniswapConfig.PriceSource", - "name": "priceSource", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "fixedPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "uniswapMarket", - "type": "address" - }, - { - "internalType": "bool", - "name": "isUniswapReversed", - "type": "bool" - } - ], - "internalType": "struct UniswapConfig.TokenConfig", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "cToken", "type": "address" } - ], - "name": "getTokenConfigByCToken", - "outputs": [ - { - "components": [ - { "internalType": "address", "name": "cToken", "type": "address" }, - { - "internalType": "address", - "name": "underlying", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "symbolHash", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "baseUnit", - "type": "uint256" - }, - { - "internalType": "enum UniswapConfig.PriceSource", - "name": "priceSource", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "fixedPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "uniswapMarket", - "type": "address" - }, - { - "internalType": "bool", - "name": "isUniswapReversed", - "type": "bool" - } - ], - "internalType": "struct UniswapConfig.TokenConfig", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "getTokenConfigBySymbol", - "outputs": [ - { - "components": [ - { "internalType": "address", "name": "cToken", "type": "address" }, - { - "internalType": "address", - "name": "underlying", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "symbolHash", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "baseUnit", - "type": "uint256" - }, - { - "internalType": "enum UniswapConfig.PriceSource", - "name": "priceSource", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "fixedPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "uniswapMarket", - "type": "address" - }, - { - "internalType": "bool", - "name": "isUniswapReversed", - "type": "bool" - } - ], - "internalType": "struct UniswapConfig.TokenConfig", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "bytes32", "name": "symbolHash", "type": "bytes32" } - ], - "name": "getTokenConfigBySymbolHash", - "outputs": [ - { - "components": [ - { "internalType": "address", "name": "cToken", "type": "address" }, - { - "internalType": "address", - "name": "underlying", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "symbolHash", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "baseUnit", - "type": "uint256" - }, - { - "internalType": "enum UniswapConfig.PriceSource", - "name": "priceSource", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "fixedPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "uniswapMarket", - "type": "address" - }, - { - "internalType": "bool", - "name": "isUniswapReversed", - "type": "bool" - } - ], - "internalType": "struct UniswapConfig.TokenConfig", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "underlying", "type": "address" } - ], - "name": "getTokenConfigByUnderlying", - "outputs": [ - { - "components": [ - { "internalType": "address", "name": "cToken", "type": "address" }, - { - "internalType": "address", - "name": "underlying", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "symbolHash", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "baseUnit", - "type": "uint256" - }, - { - "internalType": "enum UniswapConfig.PriceSource", - "name": "priceSource", - "type": "uint8" - }, - { - "internalType": "uint256", - "name": "fixedPrice", - "type": "uint256" - }, - { - "internalType": "address", - "name": "uniswapMarket", - "type": "address" - }, - { - "internalType": "bool", - "name": "isUniswapReversed", - "type": "bool" - } - ], - "internalType": "struct UniswapConfig.TokenConfig", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "cToken", "type": "address" } - ], - "name": "getUnderlyingPrice", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "bytes", "name": "message", "type": "bytes" }, - { "internalType": "bytes", "name": "signature", "type": "bytes" } - ], - "name": "invalidateReporter", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "lowerBoundAnchorRatio", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxTokens", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "name": "newObservations", - "outputs": [ - { "internalType": "uint256", "name": "timestamp", "type": "uint256" }, - { "internalType": "uint256", "name": "acc", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "numTokens", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "name": "oldObservations", - "outputs": [ - { "internalType": "uint256", "name": "timestamp", "type": "uint256" }, - { "internalType": "uint256", "name": "acc", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "bytes[]", "name": "messages", "type": "bytes[]" }, - { "internalType": "bytes[]", "name": "signatures", "type": "bytes[]" }, - { "internalType": "string[]", "name": "symbols", "type": "string[]" } - ], - "name": "postPrices", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "price", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "priceData", - "outputs": [ - { - "internalType": "contract OpenOraclePriceData", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "name": "prices", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "reporter", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "reporterInvalidated", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "bytes", "name": "message", "type": "bytes" }, - { "internalType": "bytes", "name": "signature", "type": "bytes" } - ], - "name": "source", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [], - "name": "upperBoundAnchorRatio", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OpenUniswapOracle.json b/libs/shared/contracts/src/abis/json/OpenUniswapOracle.json deleted file mode 100644 index fb93075f9..000000000 --- a/libs/shared/contracts/src/abis/json/OpenUniswapOracle.json +++ /dev/null @@ -1,271 +0,0 @@ -{ - "name": "OpenUniswapOracle", - "address": "0xc15169Bad17e676b3BaDb699DEe327423cE6178e", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "tokEthPrice", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "debugPrice", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "tokUsdPrice", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "ethPriceOracle_", - "type": "address" - } - ], - "name": "registerEthPriceOracle", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "getSwapConfig", - "outputs": [ - { - "components": [ - { "internalType": "bool", "name": "ethOnFirst", "type": "bool" }, - { "internalType": "address", "name": "swap", "type": "address" }, - { - "internalType": "uint256", - "name": "blockTimestampLast", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "latestBlockTimestampLast", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "priceCumulativeLast", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "latestPriceCumulativeLast", - "type": "uint256" - }, - { "internalType": "uint256", "name": "baseUnit", "type": "uint256" } - ], - "internalType": "struct OpenUniswapOracle.SwapConfig", - "name": "", - "type": "tuple" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "bytes32[]", - "name": "symbolHashes", - "type": "bytes32[]" - } - ], - "name": "updatePriceWindows", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "ethUsdPrice", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "ethPriceOracle", - "outputs": [ - { - "internalType": "contract IPriceOracle", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "PERIOD", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "openPrice", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "pair_", "type": "address" } - ], - "name": "registerPair", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "price", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "ethPriceOracle_", - "type": "address" - }, - { "internalType": "address", "name": "ethToken_", "type": "address" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/OptionalLockupDistributor.json b/libs/shared/contracts/src/abis/json/OptionalLockupDistributor.json deleted file mode 100644 index 667c467bd..000000000 --- a/libs/shared/contracts/src/abis/json/OptionalLockupDistributor.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "name": "OptionalLockupDistributor", - "address": "0x7aE2334f12a449895AD21d4c255D9DE194fe986f", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_token", "type": "address" }, - { "internalType": "bytes32", "name": "_merkleRoot", "type": "bytes32" }, - { - "internalType": "address", - "name": "_stakingContract", - "type": "address" - }, - { "internalType": "uint256", "name": "_endBlock", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Claimed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "OGVBurned", - "type": "event" - }, - { - "inputs": [], - "name": "burnRemainingOGV", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_index", "type": "uint256" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { - "internalType": "bytes32[]", - "name": "_merkleProof", - "type": "bytes32[]" - }, - { - "internalType": "uint256", - "name": "_stakeDuration", - "type": "uint256" - } - ], - "name": "claim", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "endBlock", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_index", "type": "uint256" } - ], - "name": "isClaimed", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_index", "type": "uint256" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { "internalType": "address", "name": "_account", "type": "address" }, - { - "internalType": "bytes32[]", - "name": "_merkleProof", - "type": "bytes32[]" - } - ], - "name": "isProofValid", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "merkleRoot", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "stakingContract", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "token", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/RebaseHooks.json b/libs/shared/contracts/src/abis/json/RebaseHooks.json deleted file mode 100644 index 3c99e52e1..000000000 --- a/libs/shared/contracts/src/abis/json/RebaseHooks.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "name": "RebaseHooks", - "address": "0x3dcd70E6A3fB474cFd7567A021864066Fdef6C5c", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "internalType": "bool", "name": "sync", "type": "bool" }], - "name": "postRebase", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "uniswapPairs", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address[]", - "name": "_uniswapPairs", - "type": "address[]" - } - ], - "name": "setUniswapPairs", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/RewardsSource.json b/libs/shared/contracts/src/abis/json/RewardsSource.json deleted file mode 100644 index 85d340d48..000000000 --- a/libs/shared/contracts/src/abis/json/RewardsSource.json +++ /dev/null @@ -1,187 +0,0 @@ -{ - "name": "RewardsSource", - "address": "0x7d82e86cf1496f9485a8ea04012afeb3c7489397", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "ogv_", "type": "address" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "InflationChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "previousTarget", - "type": "address" - } - ], - "name": "RewardsTargetChange", - "type": "event" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewards", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "inflationSlopes", - "outputs": [ - { "internalType": "uint64", "name": "start", "type": "uint64" }, - { "internalType": "uint64", "name": "end", "type": "uint64" }, - { "internalType": "uint128", "name": "ratePerDay", "type": "uint128" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lastRewardTime", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ogv", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "previewRewards", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rewardsTarget", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { "internalType": "uint64", "name": "start", "type": "uint64" }, - { "internalType": "uint64", "name": "end", "type": "uint64" }, - { - "internalType": "uint128", - "name": "ratePerDay", - "type": "uint128" - } - ], - "internalType": "struct RewardsSource.Slope[]", - "name": "slopes", - "type": "tuple[]" - } - ], - "name": "setInflation", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "rewardsTarget_", - "type": "address" - } - ], - "name": "setRewardsTarget", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/SingleAssetStaking.json b/libs/shared/contracts/src/abis/json/SingleAssetStaking.json deleted file mode 100644 index edec0476d..000000000 --- a/libs/shared/contracts/src/abis/json/SingleAssetStaking.json +++ /dev/null @@ -1,522 +0,0 @@ -{ - "name": "SingleAssetStaking", - "address": "0x3675c3521F8A6876c8287E9bB51E056862D1399B", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint8", - "name": "stakeType", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "rootHash", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "proofDepth", - "type": "uint256" - } - ], - "name": "NewAirDropRootHash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "durations", - "type": "uint256[]" - } - ], - "name": "NewDurations", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "rates", - "type": "uint256[]" - } - ], - "name": "NewRates", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "yes", - "type": "bool" - } - ], - "name": "Paused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rate", - "type": "uint256" - } - ], - "name": "Staked", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "fromUser", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "toUser", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "numStakes", - "type": "uint256" - } - ], - "name": "StakesTransfered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "stakedAmount", - "type": "uint256" - } - ], - "name": "Withdrawn", - "type": "event" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "index", "type": "uint256" }, - { "internalType": "uint8", "name": "stakeType", "type": "uint8" }, - { "internalType": "uint256", "name": "duration", "type": "uint256" }, - { "internalType": "uint256", "name": "rate", "type": "uint256" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { - "internalType": "bytes32[]", - "name": "merkleProof", - "type": "bytes32[]" - } - ], - "name": "airDroppedStake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "uint8", "name": "stakeType", "type": "uint8" } - ], - "name": "airDroppedStakeClaimed", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "name": "dropRoots", - "outputs": [ - { "internalType": "bytes32", "name": "hash", "type": "bytes32" }, - { "internalType": "uint256", "name": "depth", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_duration", "type": "uint256" } - ], - "name": "durationRewardRate", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "durations", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "exit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getAllDurations", - "outputs": [ - { "internalType": "uint256[]", "name": "", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAllRates", - "outputs": [ - { "internalType": "uint256[]", "name": "", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "getAllStakes", - "outputs": [ - { - "components": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "end", "type": "uint256" }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { "internalType": "uint240", "name": "rate", "type": "uint240" }, - { "internalType": "bool", "name": "paid", "type": "bool" }, - { "internalType": "uint8", "name": "stakeType", "type": "uint8" } - ], - "internalType": "struct SingleAssetStaking.Stake[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_stakingToken", - "type": "address" - }, - { - "internalType": "uint256[]", - "name": "_durations", - "type": "uint256[]" - }, - { "internalType": "uint256[]", "name": "_rates", "type": "uint256[]" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "paused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "rates", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint8", "name": "_stakeType", "type": "uint8" }, - { "internalType": "bytes32", "name": "_rootHash", "type": "bytes32" }, - { "internalType": "uint256", "name": "_proofDepth", "type": "uint256" } - ], - "name": "setAirDropRoot", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256[]", - "name": "_durations", - "type": "uint256[]" - }, - { "internalType": "uint256[]", "name": "_rates", "type": "uint256[]" } - ], - "name": "setDurationRates", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "bool", "name": "_paused", "type": "bool" }], - "name": "setPaused", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_agent", "type": "address" } - ], - "name": "setTransferAgent", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "duration", "type": "uint256" } - ], - "name": "stake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "staker", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "duration", "type": "uint256" } - ], - "name": "stakeWithSender", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "stakingToken", - "outputs": [ - { "internalType": "contract IERC20", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "totalCurrentHoldings", - "outputs": [ - { "internalType": "uint256", "name": "total", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "totalExpectedRewards", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalOutstanding", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "totalStaked", - "outputs": [ - { "internalType": "uint256", "name": "total", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "transferAgent", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_frmAccount", "type": "address" }, - { "internalType": "address", "name": "_dstAccount", "type": "address" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" }, - { "internalType": "uint8", "name": "v", "type": "uint8" } - ], - "name": "transferStakes", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "name": "userStakes", - "outputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "end", "type": "uint256" }, - { "internalType": "uint256", "name": "duration", "type": "uint256" }, - { "internalType": "uint240", "name": "rate", "type": "uint240" }, - { "internalType": "bool", "name": "paid", "type": "bool" }, - { "internalType": "uint8", "name": "stakeType", "type": "uint8" } - ], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/SushiSwapRouter.json b/libs/shared/contracts/src/abis/json/SushiSwapRouter.json deleted file mode 100644 index 2dc3696b4..000000000 --- a/libs/shared/contracts/src/abis/json/SushiSwapRouter.json +++ /dev/null @@ -1,446 +0,0 @@ -{ - "name": "SushiSwapRouter", - "address": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_factory", "type": "address" }, - { "internalType": "address", "name": "_WETH", "type": "address" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "WETH", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "tokenA", "type": "address" }, - { "internalType": "address", "name": "tokenB", "type": "address" }, - { - "internalType": "uint256", - "name": "amountADesired", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountBDesired", - "type": "uint256" - }, - { "internalType": "uint256", "name": "amountAMin", "type": "uint256" }, - { "internalType": "uint256", "name": "amountBMin", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "addLiquidity", - "outputs": [ - { "internalType": "uint256", "name": "amountA", "type": "uint256" }, - { "internalType": "uint256", "name": "amountB", "type": "uint256" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { - "internalType": "uint256", - "name": "amountTokenDesired", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "addLiquidityETH", - "outputs": [ - { "internalType": "uint256", "name": "amountToken", "type": "uint256" }, - { "internalType": "uint256", "name": "amountETH", "type": "uint256" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "factory", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, - { "internalType": "uint256", "name": "reserveIn", "type": "uint256" }, - { "internalType": "uint256", "name": "reserveOut", "type": "uint256" } - ], - "name": "getAmountIn", - "outputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, - { "internalType": "uint256", "name": "reserveIn", "type": "uint256" }, - { "internalType": "uint256", "name": "reserveOut", "type": "uint256" } - ], - "name": "getAmountOut", - "outputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, - { "internalType": "address[]", "name": "path", "type": "address[]" } - ], - "name": "getAmountsIn", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, - { "internalType": "address[]", "name": "path", "type": "address[]" } - ], - "name": "getAmountsOut", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountA", "type": "uint256" }, - { "internalType": "uint256", "name": "reserveA", "type": "uint256" }, - { "internalType": "uint256", "name": "reserveB", "type": "uint256" } - ], - "name": "quote", - "outputs": [ - { "internalType": "uint256", "name": "amountB", "type": "uint256" } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "tokenA", "type": "address" }, - { "internalType": "address", "name": "tokenB", "type": "address" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, - { "internalType": "uint256", "name": "amountAMin", "type": "uint256" }, - { "internalType": "uint256", "name": "amountBMin", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "removeLiquidity", - "outputs": [ - { "internalType": "uint256", "name": "amountA", "type": "uint256" }, - { "internalType": "uint256", "name": "amountB", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "removeLiquidityETH", - "outputs": [ - { "internalType": "uint256", "name": "amountToken", "type": "uint256" }, - { "internalType": "uint256", "name": "amountETH", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "removeLiquidityETHSupportingFeeOnTransferTokens", - "outputs": [ - { "internalType": "uint256", "name": "amountETH", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "bool", "name": "approveMax", "type": "bool" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "removeLiquidityETHWithPermit", - "outputs": [ - { "internalType": "uint256", "name": "amountToken", "type": "uint256" }, - { "internalType": "uint256", "name": "amountETH", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "bool", "name": "approveMax", "type": "bool" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - "outputs": [ - { "internalType": "uint256", "name": "amountETH", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "tokenA", "type": "address" }, - { "internalType": "address", "name": "tokenB", "type": "address" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, - { "internalType": "uint256", "name": "amountAMin", "type": "uint256" }, - { "internalType": "uint256", "name": "amountBMin", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "bool", "name": "approveMax", "type": "bool" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "removeLiquidityWithPermit", - "outputs": [ - { "internalType": "uint256", "name": "amountA", "type": "uint256" }, - { "internalType": "uint256", "name": "amountB", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapETHForExactTokens", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapExactETHForTokens", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapExactETHForTokensSupportingFeeOnTransferTokens", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapExactTokensForETH", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapExactTokensForETHSupportingFeeOnTransferTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapExactTokensForTokens", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapExactTokensForTokensSupportingFeeOnTransferTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, - { "internalType": "uint256", "name": "amountInMax", "type": "uint256" }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapTokensForExactETH", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, - { "internalType": "uint256", "name": "amountInMax", "type": "uint256" }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapTokensForExactTokens", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { "stateMutability": "payable", "type": "receive" } - ] -} diff --git a/libs/shared/contracts/src/abis/json/TUSD.json b/libs/shared/contracts/src/abis/json/TUSD.json deleted file mode 100644 index 0ee0751e5..000000000 --- a/libs/shared/contracts/src/abis/json/TUSD.json +++ /dev/null @@ -1,486 +0,0 @@ -{ - "name": "TUSD", - "address": "0x0000000000085d4780B73119b644AE5ecd22b376", - "abi": [ - { - "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": "account", - "type": "address" - }, - { - "indexed": false, - "internalType": "bool", - "name": "isBlacklisted", - "type": "bool" - } - ], - "name": "Blacklisted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "burner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Burn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldFeed", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newFeed", - "type": "address" - } - ], - "name": "NewChainReserveFeed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldHeartbeat", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newHeartbeat", - "type": "uint256" - } - ], - "name": "NewChainReserveHeartbeat", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "ProofOfReserveDisabled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "ProofOfReserveEnabled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "newMin", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newMax", - "type": "uint256" - } - ], - "name": "SetBurnBounds", - "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" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "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" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "burn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "burnMax", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "burnMin", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "canBurn", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "chainReserveFeed", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "chainReserveHeartbeat", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "pure", - "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": [], - "name": "disableProofOfReserve", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "enableProofOfReserve", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pendingOwner", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "proofOfReserveEnabled", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address payable", "name": "_to", "type": "address" } - ], - "name": "reclaimEther", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IERC20", - "name": "token", - "type": "address" - }, - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "reclaimToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rounding", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "bool", "name": "_isBlacklisted", "type": "bool" } - ], - "name": "setBlacklisted", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_min", "type": "uint256" }, - { "internalType": "uint256", "name": "_max", "type": "uint256" } - ], - "name": "setBurnBounds", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "bool", "name": "_canBurn", "type": "bool" } - ], - "name": "setCanBurn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "newFeed", "type": "address" } - ], - "name": "setChainReserveFeed", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "newHeartbeat", "type": "uint256" } - ], - "name": "setChainReserveHeartbeat", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "sender", "type": "address" }, - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "newOwner", "type": "address" } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ThreePoolStrategy.json b/libs/shared/contracts/src/abis/json/ThreePoolStrategy.json deleted file mode 100644 index d20683a9b..000000000 --- a/libs/shared/contracts/src/abis/json/ThreePoolStrategy.json +++ /dev/null @@ -1,448 +0,0 @@ -{ - "name": "ThreePoolStrategy", - "address": "0x874c74E6ec318AD0a7e6f23301678a4751d00482", - "abi": [ - { - "constant": false, - "inputs": [], - "name": "collectRewardToken", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_rewardTokenAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_rewardTokenAddress", - "type": "address" - } - ], - "name": "setRewardTokenAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setRewardLiquidationThreshold", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "depositAll", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_rewardTokenAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { - "internalType": "address[]", - "name": "_pTokens", - "type": "address[]" - }, - { - "internalType": "address", - "name": "_crvGaugeAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_crvMinterAddress", - "type": "address" - } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/ThreePoolStrategyProxy.json b/libs/shared/contracts/src/abis/json/ThreePoolStrategyProxy.json deleted file mode 100644 index dd0ad8d83..000000000 --- a/libs/shared/contracts/src/abis/json/ThreePoolStrategyProxy.json +++ /dev/null @@ -1,448 +0,0 @@ -{ - "name": "ThreePoolStrategyProxy", - "address": "0x3c5fe0a3922777343CBD67D3732FCdc9f2Fa6f2F", - "abi": [ - { - "constant": false, - "inputs": [], - "name": "collectRewardToken", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_pToken", "type": "address" } - ], - "name": "setPTokenAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetToPToken", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rewardTokenAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "vaultAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "deposit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rewardLiquidationThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [ - { "internalType": "uint256", "name": "balance", "type": "uint256" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_rewardTokenAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "address[]", "name": "_pTokens", "type": "address[]" } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "withdrawAll", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "_assetIndex", "type": "uint256" } - ], - "name": "removePToken", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_rewardTokenAddress", - "type": "address" - } - ], - "name": "setRewardTokenAddress", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportsAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "safeApproveAllTokens", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setRewardLiquidationThreshold", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_recipient", "type": "address" }, - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "withdraw", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "platformAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "depositAll", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "_platformAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_vaultAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_rewardTokenAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { - "internalType": "address[]", - "name": "_pTokens", - "type": "address[]" - }, - { - "internalType": "address", - "name": "_crvGaugeAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_crvMinterAddress", - "type": "address" - } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "RewardTokenCollected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - } - ], - "name": "PTokenRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_pToken", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "Withdrawal", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/Timelock.json b/libs/shared/contracts/src/abis/json/Timelock.json deleted file mode 100644 index f434b8f24..000000000 --- a/libs/shared/contracts/src/abis/json/Timelock.json +++ /dev/null @@ -1,349 +0,0 @@ -{ - "name": "Timelock", - "address": "0x2693C0eCcb5734EBd3910E9c23a8039401a73c87", - "abi": [ - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "target", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "string", "name": "signature", "type": "string" }, - { "internalType": "bytes", "name": "data", "type": "bytes" }, - { "internalType": "uint256", "name": "eta", "type": "uint256" } - ], - "name": "executeTransaction", - "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "acceptAdmin", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "pendingAdmin", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "target", "type": "address" } - ], - "name": "pauseDeposits", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "target", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "string", "name": "signature", "type": "string" }, - { "internalType": "bytes", "name": "data", "type": "bytes" }, - { "internalType": "uint256", "name": "eta", "type": "uint256" } - ], - "name": "queueTransaction", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "pendingAdmin_", - "type": "address" - } - ], - "name": "setPendingAdmin", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "target", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "string", "name": "signature", "type": "string" }, - { "internalType": "bytes", "name": "data", "type": "bytes" }, - { "internalType": "uint256", "name": "eta", "type": "uint256" } - ], - "name": "cancelTransaction", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "delay", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "MAXIMUM_DELAY", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "MINIMUM_DELAY", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "GRACE_PERIOD", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "target", "type": "address" } - ], - "name": "unpauseDeposits", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "delay_", "type": "uint256" } - ], - "name": "setDelay", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "name": "queuedTransactions", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "admin", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "admin_", "type": "address" }, - { "internalType": "uint256", "name": "delay_", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { "payable": true, "stateMutability": "payable", "type": "fallback" }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "NewAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newPendingAdmin", - "type": "address" - } - ], - "name": "NewPendingAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "newDelay", - "type": "uint256" - } - ], - "name": "NewDelay", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "signature", - "type": "string" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "eta", - "type": "uint256" - } - ], - "name": "CancelTransaction", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "signature", - "type": "string" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "eta", - "type": "uint256" - } - ], - "name": "ExecuteTransaction", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "txHash", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "target", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "signature", - "type": "string" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "eta", - "type": "uint256" - } - ], - "name": "QueueTransaction", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/USDC.json b/libs/shared/contracts/src/abis/json/USDC.json deleted file mode 100644 index 5a06e3543..000000000 --- a/libs/shared/contracts/src/abis/json/USDC.json +++ /dev/null @@ -1,750 +0,0 @@ -{ - "name": "USDC", - "address": "0xa2327a938febf5fec13bacfb16ae10ecbc4cbdcf", - "abi": [ - { - "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": "authorizer", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "nonce", - "type": "bytes32" - } - ], - "name": "AuthorizationCanceled", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "authorizer", - "type": "address" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "nonce", - "type": "bytes32" - } - ], - "name": "AuthorizationUsed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_account", - "type": "address" - } - ], - "name": "Blacklisted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newBlacklister", - "type": "address" - } - ], - "name": "BlacklisterChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "burner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Burn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newMasterMinter", - "type": "address" - } - ], - "name": "MasterMinterChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "minter", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "minter", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "minterAllowedAmount", - "type": "uint256" - } - ], - "name": "MinterConfigured", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "oldMinter", - "type": "address" - } - ], - "name": "MinterRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { "anonymous": false, "inputs": [], "name": "Pause", "type": "event" }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newAddress", - "type": "address" - } - ], - "name": "PauserChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "newRescuer", - "type": "address" - } - ], - "name": "RescuerChanged", - "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": "_account", - "type": "address" - } - ], - "name": "UnBlacklisted", - "type": "event" - }, - { "anonymous": false, "inputs": [], "name": "Unpause", "type": "event" }, - { - "inputs": [], - "name": "CANCEL_AUTHORIZATION_TYPEHASH", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "DOMAIN_SEPARATOR", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "PERMIT_TYPEHASH", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "RECEIVE_WITH_AUTHORIZATION_TYPEHASH", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "TRANSFER_WITH_AUTHORIZATION_TYPEHASH", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "authorizer", "type": "address" }, - { "internalType": "bytes32", "name": "nonce", "type": "bytes32" } - ], - "name": "authorizationState", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "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": "_account", "type": "address" } - ], - "name": "blacklist", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "blacklister", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "burn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "authorizer", "type": "address" }, - { "internalType": "bytes32", "name": "nonce", "type": "bytes32" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "cancelAuthorization", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "minter", "type": "address" }, - { - "internalType": "uint256", - "name": "minterAllowedAmount", - "type": "uint256" - } - ], - "name": "configureMinter", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "currency", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "decrement", "type": "uint256" } - ], - "name": "decreaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "increment", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "string", "name": "tokenName", "type": "string" }, - { "internalType": "string", "name": "tokenSymbol", "type": "string" }, - { "internalType": "string", "name": "tokenCurrency", "type": "string" }, - { "internalType": "uint8", "name": "tokenDecimals", "type": "uint8" }, - { - "internalType": "address", - "name": "newMasterMinter", - "type": "address" - }, - { "internalType": "address", "name": "newPauser", "type": "address" }, - { - "internalType": "address", - "name": "newBlacklister", - "type": "address" - }, - { "internalType": "address", "name": "newOwner", "type": "address" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "string", "name": "newName", "type": "string" } - ], - "name": "initializeV2", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "lostAndFound", "type": "address" } - ], - "name": "initializeV2_1", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "isBlacklisted", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "isMinter", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "masterMinter", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mint", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "minter", "type": "address" } - ], - "name": "minterAllowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "nonces", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "paused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pauser", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "permit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "from", "type": "address" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "uint256", "name": "validAfter", "type": "uint256" }, - { "internalType": "uint256", "name": "validBefore", "type": "uint256" }, - { "internalType": "bytes32", "name": "nonce", "type": "bytes32" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "receiveWithAuthorization", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "minter", "type": "address" } - ], - "name": "removeMinter", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IERC20", - "name": "tokenContract", - "type": "address" - }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "rescueERC20", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rescuer", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "from", "type": "address" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "newOwner", "type": "address" } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "from", "type": "address" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "uint256", "name": "validAfter", "type": "uint256" }, - { "internalType": "uint256", "name": "validBefore", "type": "uint256" }, - { "internalType": "bytes32", "name": "nonce", "type": "bytes32" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "transferWithAuthorization", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" } - ], - "name": "unBlacklist", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "unpause", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_newBlacklister", - "type": "address" - } - ], - "name": "updateBlacklister", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_newMasterMinter", - "type": "address" - } - ], - "name": "updateMasterMinter", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newPauser", "type": "address" } - ], - "name": "updatePauser", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "newRescuer", "type": "address" } - ], - "name": "updateRescuer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "version", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/USDT.json b/libs/shared/contracts/src/abis/json/USDT.json deleted file mode 100644 index 7c3518726..000000000 --- a/libs/shared/contracts/src/abis/json/USDT.json +++ /dev/null @@ -1,394 +0,0 @@ -{ - "name": "USDT", - "address": "0xdac17f958d2ee523a2206206994597c13d831ec7", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_upgradedAddress", "type": "address" }], - "name": "deprecate", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_spender", "type": "address" }, - { "name": "_value", "type": "uint256" } - ], - "name": "approve", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "deprecated", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_evilUser", "type": "address" }], - "name": "addBlackList", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_from", "type": "address" }, - { "name": "_to", "type": "address" }, - { "name": "_value", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "upgradedAddress", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "", "type": "address" }], - "name": "balances", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "maximumFee", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "_totalSupply", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "unpause", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "_maker", "type": "address" }], - "name": "getBlackListStatus", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "name": "", "type": "address" }, - { "name": "", "type": "address" } - ], - "name": "allowed", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "paused", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "who", "type": "address" }], - "name": "balanceOf", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "pause", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getOwner", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_to", "type": "address" }, - { "name": "_value", "type": "uint256" } - ], - "name": "transfer", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "newBasisPoints", "type": "uint256" }, - { "name": "newMaxFee", "type": "uint256" } - ], - "name": "setParams", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "amount", "type": "uint256" }], - "name": "issue", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "amount", "type": "uint256" }], - "name": "redeem", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "name": "_owner", "type": "address" }, - { "name": "_spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "name": "remaining", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "basisPointsRate", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "", "type": "address" }], - "name": "isBlackListed", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_clearedUser", "type": "address" }], - "name": "removeBlackList", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "MAX_UINT", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "newOwner", "type": "address" }], - "name": "transferOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_blackListedUser", "type": "address" }], - "name": "destroyBlackFunds", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "name": "_initialSupply", "type": "uint256" }, - { "name": "_name", "type": "string" }, - { "name": "_symbol", "type": "string" }, - { "name": "_decimals", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "name": "amount", "type": "uint256" }], - "name": "Issue", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "name": "amount", "type": "uint256" }], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "name": "newAddress", "type": "address" }], - "name": "Deprecate", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "feeBasisPoints", "type": "uint256" }, - { "indexed": false, "name": "maxFee", "type": "uint256" } - ], - "name": "Params", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "_blackListedUser", "type": "address" }, - { "indexed": false, "name": "_balance", "type": "uint256" } - ], - "name": "DestroyedBlackFunds", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "name": "_user", "type": "address" }], - "name": "AddedBlackList", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "name": "_user", "type": "address" }], - "name": "RemovedBlackList", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "owner", "type": "address" }, - { "indexed": true, "name": "spender", "type": "address" }, - { "indexed": false, "name": "value", "type": "uint256" } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "from", "type": "address" }, - { "indexed": true, "name": "to", "type": "address" }, - { "indexed": false, "name": "value", "type": "uint256" } - ], - "name": "Transfer", - "type": "event" - }, - { "anonymous": false, "inputs": [], "name": "Pause", "type": "event" }, - { "anonymous": false, "inputs": [], "name": "Unpause", "type": "event" } - ] -} diff --git a/libs/shared/contracts/src/abis/json/UniswapDAI_ETH.json b/libs/shared/contracts/src/abis/json/UniswapDAI_ETH.json deleted file mode 100644 index 1ed13a293..000000000 --- a/libs/shared/contracts/src/abis/json/UniswapDAI_ETH.json +++ /dev/null @@ -1,471 +0,0 @@ -{ - "name": "UniswapDAI_ETH", - "address": "0xa478c2975ab1ea89e8196811f51a7b7ade33eb11", - "abi": [ - { - "inputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "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": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "Burn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0In", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1In", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0Out", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1Out", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "Swap", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint112", - "name": "reserve0", - "type": "uint112" - }, - { - "indexed": false, - "internalType": "uint112", - "name": "reserve1", - "type": "uint112" - } - ], - "name": "Sync", - "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" - }, - { - "constant": true, - "inputs": [], - "name": "DOMAIN_SEPARATOR", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "MINIMUM_LIQUIDITY", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "PERMIT_TYPEHASH", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "address", "name": "", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "burn", - "outputs": [ - { "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "factory", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getReserves", - "outputs": [ - { "internalType": "uint112", "name": "_reserve0", "type": "uint112" }, - { "internalType": "uint112", "name": "_reserve1", "type": "uint112" }, - { - "internalType": "uint32", - "name": "_blockTimestampLast", - "type": "uint32" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_token0", "type": "address" }, - { "internalType": "address", "name": "_token1", "type": "address" } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "kLast", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "mint", - "outputs": [ - { "internalType": "uint256", "name": "liquidity", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "nonces", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "permit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "price0CumulativeLast", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "price1CumulativeLast", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "skim", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "amount0Out", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1Out", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "bytes", "name": "data", "type": "bytes" } - ], - "name": "swap", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "sync", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "token0", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "token1", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "from", "type": "address" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/UniswapOracle.json b/libs/shared/contracts/src/abis/json/UniswapOracle.json deleted file mode 100644 index aa314d6b6..000000000 --- a/libs/shared/contracts/src/abis/json/UniswapOracle.json +++ /dev/null @@ -1,271 +0,0 @@ -{ - "name": "UniswapOracle", - "address": "0xc15169Bad17e676b3BaDb699DEe327423cE6178e", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "tokEthPrice", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "debugPrice", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "tokUsdPrice", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "address", - "name": "ethPriceOracle_", - "type": "address" - } - ], - "name": "registerEthPriceOracle", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "getSwapConfig", - "outputs": [ - { - "components": [ - { "internalType": "bool", "name": "ethOnFirst", "type": "bool" }, - { "internalType": "address", "name": "swap", "type": "address" }, - { - "internalType": "uint256", - "name": "blockTimestampLast", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "latestBlockTimestampLast", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "priceCumulativeLast", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "latestPriceCumulativeLast", - "type": "uint256" - }, - { "internalType": "uint256", "name": "baseUnit", "type": "uint256" } - ], - "internalType": "struct OpenUniswapOracle.SwapConfig", - "name": "", - "type": "tuple" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "internalType": "bytes32[]", - "name": "symbolHashes", - "type": "bytes32[]" - } - ], - "name": "updatePriceWindows", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "ethUsdPrice", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "ethPriceOracle", - "outputs": [ - { - "internalType": "contract IPriceOracle", - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "PERIOD", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "openPrice", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "pair_", "type": "address" } - ], - "name": "registerPair", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "string", "name": "symbol", "type": "string" } - ], - "name": "price", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "ethPriceOracle_", - "type": "address" - }, - { "internalType": "address", "name": "ethToken_", "type": "address" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/UniswapUSDC_ETH.json b/libs/shared/contracts/src/abis/json/UniswapUSDC_ETH.json deleted file mode 100644 index 4b890db52..000000000 --- a/libs/shared/contracts/src/abis/json/UniswapUSDC_ETH.json +++ /dev/null @@ -1,471 +0,0 @@ -{ - "name": "UniswapUSDC_ETH", - "address": "0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc", - "abi": [ - { - "inputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "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": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "Burn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0In", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1In", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0Out", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1Out", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "Swap", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint112", - "name": "reserve0", - "type": "uint112" - }, - { - "indexed": false, - "internalType": "uint112", - "name": "reserve1", - "type": "uint112" - } - ], - "name": "Sync", - "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" - }, - { - "constant": true, - "inputs": [], - "name": "DOMAIN_SEPARATOR", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "MINIMUM_LIQUIDITY", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "PERMIT_TYPEHASH", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "address", "name": "", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "burn", - "outputs": [ - { "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "factory", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getReserves", - "outputs": [ - { "internalType": "uint112", "name": "_reserve0", "type": "uint112" }, - { "internalType": "uint112", "name": "_reserve1", "type": "uint112" }, - { - "internalType": "uint32", - "name": "_blockTimestampLast", - "type": "uint32" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_token0", "type": "address" }, - { "internalType": "address", "name": "_token1", "type": "address" } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "kLast", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "mint", - "outputs": [ - { "internalType": "uint256", "name": "liquidity", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "nonces", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "permit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "price0CumulativeLast", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "price1CumulativeLast", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "skim", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "amount0Out", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1Out", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "bytes", "name": "data", "type": "bytes" } - ], - "name": "swap", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "sync", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "token0", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "token1", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "from", "type": "address" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/UniswapUSDT_ETH.json b/libs/shared/contracts/src/abis/json/UniswapUSDT_ETH.json deleted file mode 100644 index 3d04d4d29..000000000 --- a/libs/shared/contracts/src/abis/json/UniswapUSDT_ETH.json +++ /dev/null @@ -1,471 +0,0 @@ -{ - "name": "UniswapUSDT_ETH", - "address": "0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852", - "abi": [ - { - "inputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "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": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "Burn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0In", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1In", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0Out", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1Out", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "Swap", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint112", - "name": "reserve0", - "type": "uint112" - }, - { - "indexed": false, - "internalType": "uint112", - "name": "reserve1", - "type": "uint112" - } - ], - "name": "Sync", - "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" - }, - { - "constant": true, - "inputs": [], - "name": "DOMAIN_SEPARATOR", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "MINIMUM_LIQUIDITY", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "PERMIT_TYPEHASH", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "address", "name": "", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "burn", - "outputs": [ - { "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "factory", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getReserves", - "outputs": [ - { "internalType": "uint112", "name": "_reserve0", "type": "uint112" }, - { "internalType": "uint112", "name": "_reserve1", "type": "uint112" }, - { - "internalType": "uint32", - "name": "_blockTimestampLast", - "type": "uint32" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_token0", "type": "address" }, - { "internalType": "address", "name": "_token1", "type": "address" } - ], - "name": "initialize", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "kLast", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "mint", - "outputs": [ - { "internalType": "uint256", "name": "liquidity", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "nonces", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "permit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "price0CumulativeLast", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "price1CumulativeLast", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "skim", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "amount0Out", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1Out", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "bytes", "name": "data", "type": "bytes" } - ], - "name": "swap", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "sync", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "token0", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "token1", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "from", "type": "address" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/UniswapV2Router.json b/libs/shared/contracts/src/abis/json/UniswapV2Router.json deleted file mode 100644 index d7466ff06..000000000 --- a/libs/shared/contracts/src/abis/json/UniswapV2Router.json +++ /dev/null @@ -1,446 +0,0 @@ -{ - "name": "UniswapV2Router", - "address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_factory", "type": "address" }, - { "internalType": "address", "name": "_WETH", "type": "address" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "WETH", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "tokenA", "type": "address" }, - { "internalType": "address", "name": "tokenB", "type": "address" }, - { - "internalType": "uint256", - "name": "amountADesired", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountBDesired", - "type": "uint256" - }, - { "internalType": "uint256", "name": "amountAMin", "type": "uint256" }, - { "internalType": "uint256", "name": "amountBMin", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "addLiquidity", - "outputs": [ - { "internalType": "uint256", "name": "amountA", "type": "uint256" }, - { "internalType": "uint256", "name": "amountB", "type": "uint256" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { - "internalType": "uint256", - "name": "amountTokenDesired", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "addLiquidityETH", - "outputs": [ - { "internalType": "uint256", "name": "amountToken", "type": "uint256" }, - { "internalType": "uint256", "name": "amountETH", "type": "uint256" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "factory", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, - { "internalType": "uint256", "name": "reserveIn", "type": "uint256" }, - { "internalType": "uint256", "name": "reserveOut", "type": "uint256" } - ], - "name": "getAmountIn", - "outputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, - { "internalType": "uint256", "name": "reserveIn", "type": "uint256" }, - { "internalType": "uint256", "name": "reserveOut", "type": "uint256" } - ], - "name": "getAmountOut", - "outputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, - { "internalType": "address[]", "name": "path", "type": "address[]" } - ], - "name": "getAmountsIn", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, - { "internalType": "address[]", "name": "path", "type": "address[]" } - ], - "name": "getAmountsOut", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountA", "type": "uint256" }, - { "internalType": "uint256", "name": "reserveA", "type": "uint256" }, - { "internalType": "uint256", "name": "reserveB", "type": "uint256" } - ], - "name": "quote", - "outputs": [ - { "internalType": "uint256", "name": "amountB", "type": "uint256" } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "tokenA", "type": "address" }, - { "internalType": "address", "name": "tokenB", "type": "address" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, - { "internalType": "uint256", "name": "amountAMin", "type": "uint256" }, - { "internalType": "uint256", "name": "amountBMin", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "removeLiquidity", - "outputs": [ - { "internalType": "uint256", "name": "amountA", "type": "uint256" }, - { "internalType": "uint256", "name": "amountB", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "removeLiquidityETH", - "outputs": [ - { "internalType": "uint256", "name": "amountToken", "type": "uint256" }, - { "internalType": "uint256", "name": "amountETH", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "removeLiquidityETHSupportingFeeOnTransferTokens", - "outputs": [ - { "internalType": "uint256", "name": "amountETH", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "bool", "name": "approveMax", "type": "bool" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "removeLiquidityETHWithPermit", - "outputs": [ - { "internalType": "uint256", "name": "amountToken", "type": "uint256" }, - { "internalType": "uint256", "name": "amountETH", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountTokenMin", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountETHMin", - "type": "uint256" - }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "bool", "name": "approveMax", "type": "bool" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - "outputs": [ - { "internalType": "uint256", "name": "amountETH", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "tokenA", "type": "address" }, - { "internalType": "address", "name": "tokenB", "type": "address" }, - { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, - { "internalType": "uint256", "name": "amountAMin", "type": "uint256" }, - { "internalType": "uint256", "name": "amountBMin", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "bool", "name": "approveMax", "type": "bool" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "removeLiquidityWithPermit", - "outputs": [ - { "internalType": "uint256", "name": "amountA", "type": "uint256" }, - { "internalType": "uint256", "name": "amountB", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapETHForExactTokens", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapExactETHForTokens", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapExactETHForTokensSupportingFeeOnTransferTokens", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapExactTokensForETH", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapExactTokensForETHSupportingFeeOnTransferTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapExactTokensForTokens", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, - { - "internalType": "uint256", - "name": "amountOutMin", - "type": "uint256" - }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapExactTokensForTokensSupportingFeeOnTransferTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, - { "internalType": "uint256", "name": "amountInMax", "type": "uint256" }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapTokensForExactETH", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, - { "internalType": "uint256", "name": "amountInMax", "type": "uint256" }, - { "internalType": "address[]", "name": "path", "type": "address[]" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" } - ], - "name": "swapTokensForExactTokens", - "outputs": [ - { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { "stateMutability": "payable", "type": "receive" } - ] -} diff --git a/libs/shared/contracts/src/abis/json/UniswapV3DAI_USDT.json b/libs/shared/contracts/src/abis/json/UniswapV3DAI_USDT.json deleted file mode 100644 index 974333c4b..000000000 --- a/libs/shared/contracts/src/abis/json/UniswapV3DAI_USDT.json +++ /dev/null @@ -1,716 +0,0 @@ -{ - "name": "UniswapV3DAI_USDT", - "address": "0x6f48eca74b38d2936b02ab603ff4e36a6c0e3a77", - "abi": [ - { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickLower", - "type": "int24" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickUpper", - "type": "int24" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - } - ], - "name": "Burn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickLower", - "type": "int24" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickUpper", - "type": "int24" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount0", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount1", - "type": "uint128" - } - ], - "name": "Collect", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount0", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount1", - "type": "uint128" - } - ], - "name": "CollectProtocol", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "paid0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "paid1", - "type": "uint256" - } - ], - "name": "Flash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "observationCardinalityNextOld", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "uint16", - "name": "observationCardinalityNextNew", - "type": "uint16" - } - ], - "name": "IncreaseObservationCardinalityNext", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint160", - "name": "sqrtPriceX96", - "type": "uint160" - }, - { - "indexed": false, - "internalType": "int24", - "name": "tick", - "type": "int24" - } - ], - "name": "Initialize", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickLower", - "type": "int24" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickUpper", - "type": "int24" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint8", - "name": "feeProtocol0Old", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "feeProtocol1Old", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "feeProtocol0New", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "feeProtocol1New", - "type": "uint8" - } - ], - "name": "SetFeeProtocol", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "int256", - "name": "amount0", - "type": "int256" - }, - { - "indexed": false, - "internalType": "int256", - "name": "amount1", - "type": "int256" - }, - { - "indexed": false, - "internalType": "uint160", - "name": "sqrtPriceX96", - "type": "uint160" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "liquidity", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "int24", - "name": "tick", - "type": "int24" - } - ], - "name": "Swap", - "type": "event" - }, - { - "inputs": [ - { "internalType": "int24", "name": "tickLower", "type": "int24" }, - { "internalType": "int24", "name": "tickUpper", "type": "int24" }, - { "internalType": "uint128", "name": "amount", "type": "uint128" } - ], - "name": "burn", - "outputs": [ - { "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "int24", "name": "tickLower", "type": "int24" }, - { "internalType": "int24", "name": "tickUpper", "type": "int24" }, - { - "internalType": "uint128", - "name": "amount0Requested", - "type": "uint128" - }, - { - "internalType": "uint128", - "name": "amount1Requested", - "type": "uint128" - } - ], - "name": "collect", - "outputs": [ - { "internalType": "uint128", "name": "amount0", "type": "uint128" }, - { "internalType": "uint128", "name": "amount1", "type": "uint128" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { - "internalType": "uint128", - "name": "amount0Requested", - "type": "uint128" - }, - { - "internalType": "uint128", - "name": "amount1Requested", - "type": "uint128" - } - ], - "name": "collectProtocol", - "outputs": [ - { "internalType": "uint128", "name": "amount0", "type": "uint128" }, - { "internalType": "uint128", "name": "amount1", "type": "uint128" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "factory", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "fee", - "outputs": [{ "internalType": "uint24", "name": "", "type": "uint24" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "feeGrowthGlobal0X128", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "feeGrowthGlobal1X128", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1", "type": "uint256" }, - { "internalType": "bytes", "name": "data", "type": "bytes" } - ], - "name": "flash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint16", - "name": "observationCardinalityNext", - "type": "uint16" - } - ], - "name": "increaseObservationCardinalityNext", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "liquidity", - "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxLiquidityPerTick", - "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "int24", "name": "tickLower", "type": "int24" }, - { "internalType": "int24", "name": "tickUpper", "type": "int24" }, - { "internalType": "uint128", "name": "amount", "type": "uint128" }, - { "internalType": "bytes", "name": "data", "type": "bytes" } - ], - "name": "mint", - "outputs": [ - { "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "observations", - "outputs": [ - { - "internalType": "uint32", - "name": "blockTimestamp", - "type": "uint32" - }, - { "internalType": "int56", "name": "tickCumulative", "type": "int56" }, - { - "internalType": "uint160", - "name": "secondsPerLiquidityCumulativeX128", - "type": "uint160" - }, - { "internalType": "bool", "name": "initialized", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32[]", - "name": "secondsAgos", - "type": "uint32[]" - } - ], - "name": "observe", - "outputs": [ - { - "internalType": "int56[]", - "name": "tickCumulatives", - "type": "int56[]" - }, - { - "internalType": "uint160[]", - "name": "secondsPerLiquidityCumulativeX128s", - "type": "uint160[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "name": "positions", - "outputs": [ - { "internalType": "uint128", "name": "liquidity", "type": "uint128" }, - { - "internalType": "uint256", - "name": "feeGrowthInside0LastX128", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "feeGrowthInside1LastX128", - "type": "uint256" - }, - { "internalType": "uint128", "name": "tokensOwed0", "type": "uint128" }, - { "internalType": "uint128", "name": "tokensOwed1", "type": "uint128" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "protocolFees", - "outputs": [ - { "internalType": "uint128", "name": "token0", "type": "uint128" }, - { "internalType": "uint128", "name": "token1", "type": "uint128" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint8", "name": "feeProtocol0", "type": "uint8" }, - { "internalType": "uint8", "name": "feeProtocol1", "type": "uint8" } - ], - "name": "setFeeProtocol", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "slot0", - "outputs": [ - { - "internalType": "uint160", - "name": "sqrtPriceX96", - "type": "uint160" - }, - { "internalType": "int24", "name": "tick", "type": "int24" }, - { - "internalType": "uint16", - "name": "observationIndex", - "type": "uint16" - }, - { - "internalType": "uint16", - "name": "observationCardinality", - "type": "uint16" - }, - { - "internalType": "uint16", - "name": "observationCardinalityNext", - "type": "uint16" - }, - { "internalType": "uint8", "name": "feeProtocol", "type": "uint8" }, - { "internalType": "bool", "name": "unlocked", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "int24", "name": "tickLower", "type": "int24" }, - { "internalType": "int24", "name": "tickUpper", "type": "int24" } - ], - "name": "snapshotCumulativesInside", - "outputs": [ - { - "internalType": "int56", - "name": "tickCumulativeInside", - "type": "int56" - }, - { - "internalType": "uint160", - "name": "secondsPerLiquidityInsideX128", - "type": "uint160" - }, - { "internalType": "uint32", "name": "secondsInside", "type": "uint32" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "bool", "name": "zeroForOne", "type": "bool" }, - { - "internalType": "int256", - "name": "amountSpecified", - "type": "int256" - }, - { - "internalType": "uint160", - "name": "sqrtPriceLimitX96", - "type": "uint160" - }, - { "internalType": "bytes", "name": "data", "type": "bytes" } - ], - "name": "swap", - "outputs": [ - { "internalType": "int256", "name": "amount0", "type": "int256" }, - { "internalType": "int256", "name": "amount1", "type": "int256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "int16", "name": "", "type": "int16" }], - "name": "tickBitmap", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "tickSpacing", - "outputs": [{ "internalType": "int24", "name": "", "type": "int24" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "int24", "name": "", "type": "int24" }], - "name": "ticks", - "outputs": [ - { - "internalType": "uint128", - "name": "liquidityGross", - "type": "uint128" - }, - { "internalType": "int128", "name": "liquidityNet", "type": "int128" }, - { - "internalType": "uint256", - "name": "feeGrowthOutside0X128", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "feeGrowthOutside1X128", - "type": "uint256" - }, - { - "internalType": "int56", - "name": "tickCumulativeOutside", - "type": "int56" - }, - { - "internalType": "uint160", - "name": "secondsPerLiquidityOutsideX128", - "type": "uint160" - }, - { - "internalType": "uint32", - "name": "secondsOutside", - "type": "uint32" - }, - { "internalType": "bool", "name": "initialized", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "token0", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "token1", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/UniswapV3OUSD_USDT.json b/libs/shared/contracts/src/abis/json/UniswapV3OUSD_USDT.json deleted file mode 100644 index d394c94d5..000000000 --- a/libs/shared/contracts/src/abis/json/UniswapV3OUSD_USDT.json +++ /dev/null @@ -1,716 +0,0 @@ -{ - "name": "UniswapV3OUSD_USDT", - "address": "0x129360c964e2e13910d603043f6287e5e9383374", - "abi": [ - { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickLower", - "type": "int24" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickUpper", - "type": "int24" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - } - ], - "name": "Burn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickLower", - "type": "int24" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickUpper", - "type": "int24" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount0", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount1", - "type": "uint128" - } - ], - "name": "Collect", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount0", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount1", - "type": "uint128" - } - ], - "name": "CollectProtocol", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "paid0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "paid1", - "type": "uint256" - } - ], - "name": "Flash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "observationCardinalityNextOld", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "uint16", - "name": "observationCardinalityNextNew", - "type": "uint16" - } - ], - "name": "IncreaseObservationCardinalityNext", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint160", - "name": "sqrtPriceX96", - "type": "uint160" - }, - { - "indexed": false, - "internalType": "int24", - "name": "tick", - "type": "int24" - } - ], - "name": "Initialize", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickLower", - "type": "int24" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickUpper", - "type": "int24" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint8", - "name": "feeProtocol0Old", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "feeProtocol1Old", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "feeProtocol0New", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "feeProtocol1New", - "type": "uint8" - } - ], - "name": "SetFeeProtocol", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "int256", - "name": "amount0", - "type": "int256" - }, - { - "indexed": false, - "internalType": "int256", - "name": "amount1", - "type": "int256" - }, - { - "indexed": false, - "internalType": "uint160", - "name": "sqrtPriceX96", - "type": "uint160" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "liquidity", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "int24", - "name": "tick", - "type": "int24" - } - ], - "name": "Swap", - "type": "event" - }, - { - "inputs": [ - { "internalType": "int24", "name": "tickLower", "type": "int24" }, - { "internalType": "int24", "name": "tickUpper", "type": "int24" }, - { "internalType": "uint128", "name": "amount", "type": "uint128" } - ], - "name": "burn", - "outputs": [ - { "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "int24", "name": "tickLower", "type": "int24" }, - { "internalType": "int24", "name": "tickUpper", "type": "int24" }, - { - "internalType": "uint128", - "name": "amount0Requested", - "type": "uint128" - }, - { - "internalType": "uint128", - "name": "amount1Requested", - "type": "uint128" - } - ], - "name": "collect", - "outputs": [ - { "internalType": "uint128", "name": "amount0", "type": "uint128" }, - { "internalType": "uint128", "name": "amount1", "type": "uint128" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { - "internalType": "uint128", - "name": "amount0Requested", - "type": "uint128" - }, - { - "internalType": "uint128", - "name": "amount1Requested", - "type": "uint128" - } - ], - "name": "collectProtocol", - "outputs": [ - { "internalType": "uint128", "name": "amount0", "type": "uint128" }, - { "internalType": "uint128", "name": "amount1", "type": "uint128" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "factory", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "fee", - "outputs": [{ "internalType": "uint24", "name": "", "type": "uint24" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "feeGrowthGlobal0X128", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "feeGrowthGlobal1X128", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1", "type": "uint256" }, - { "internalType": "bytes", "name": "data", "type": "bytes" } - ], - "name": "flash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint16", - "name": "observationCardinalityNext", - "type": "uint16" - } - ], - "name": "increaseObservationCardinalityNext", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "liquidity", - "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxLiquidityPerTick", - "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "int24", "name": "tickLower", "type": "int24" }, - { "internalType": "int24", "name": "tickUpper", "type": "int24" }, - { "internalType": "uint128", "name": "amount", "type": "uint128" }, - { "internalType": "bytes", "name": "data", "type": "bytes" } - ], - "name": "mint", - "outputs": [ - { "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "observations", - "outputs": [ - { - "internalType": "uint32", - "name": "blockTimestamp", - "type": "uint32" - }, - { "internalType": "int56", "name": "tickCumulative", "type": "int56" }, - { - "internalType": "uint160", - "name": "secondsPerLiquidityCumulativeX128", - "type": "uint160" - }, - { "internalType": "bool", "name": "initialized", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32[]", - "name": "secondsAgos", - "type": "uint32[]" - } - ], - "name": "observe", - "outputs": [ - { - "internalType": "int56[]", - "name": "tickCumulatives", - "type": "int56[]" - }, - { - "internalType": "uint160[]", - "name": "secondsPerLiquidityCumulativeX128s", - "type": "uint160[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "name": "positions", - "outputs": [ - { "internalType": "uint128", "name": "liquidity", "type": "uint128" }, - { - "internalType": "uint256", - "name": "feeGrowthInside0LastX128", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "feeGrowthInside1LastX128", - "type": "uint256" - }, - { "internalType": "uint128", "name": "tokensOwed0", "type": "uint128" }, - { "internalType": "uint128", "name": "tokensOwed1", "type": "uint128" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "protocolFees", - "outputs": [ - { "internalType": "uint128", "name": "token0", "type": "uint128" }, - { "internalType": "uint128", "name": "token1", "type": "uint128" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint8", "name": "feeProtocol0", "type": "uint8" }, - { "internalType": "uint8", "name": "feeProtocol1", "type": "uint8" } - ], - "name": "setFeeProtocol", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "slot0", - "outputs": [ - { - "internalType": "uint160", - "name": "sqrtPriceX96", - "type": "uint160" - }, - { "internalType": "int24", "name": "tick", "type": "int24" }, - { - "internalType": "uint16", - "name": "observationIndex", - "type": "uint16" - }, - { - "internalType": "uint16", - "name": "observationCardinality", - "type": "uint16" - }, - { - "internalType": "uint16", - "name": "observationCardinalityNext", - "type": "uint16" - }, - { "internalType": "uint8", "name": "feeProtocol", "type": "uint8" }, - { "internalType": "bool", "name": "unlocked", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "int24", "name": "tickLower", "type": "int24" }, - { "internalType": "int24", "name": "tickUpper", "type": "int24" } - ], - "name": "snapshotCumulativesInside", - "outputs": [ - { - "internalType": "int56", - "name": "tickCumulativeInside", - "type": "int56" - }, - { - "internalType": "uint160", - "name": "secondsPerLiquidityInsideX128", - "type": "uint160" - }, - { "internalType": "uint32", "name": "secondsInside", "type": "uint32" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "bool", "name": "zeroForOne", "type": "bool" }, - { - "internalType": "int256", - "name": "amountSpecified", - "type": "int256" - }, - { - "internalType": "uint160", - "name": "sqrtPriceLimitX96", - "type": "uint160" - }, - { "internalType": "bytes", "name": "data", "type": "bytes" } - ], - "name": "swap", - "outputs": [ - { "internalType": "int256", "name": "amount0", "type": "int256" }, - { "internalType": "int256", "name": "amount1", "type": "int256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "int16", "name": "", "type": "int16" }], - "name": "tickBitmap", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "tickSpacing", - "outputs": [{ "internalType": "int24", "name": "", "type": "int24" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "int24", "name": "", "type": "int24" }], - "name": "ticks", - "outputs": [ - { - "internalType": "uint128", - "name": "liquidityGross", - "type": "uint128" - }, - { "internalType": "int128", "name": "liquidityNet", "type": "int128" }, - { - "internalType": "uint256", - "name": "feeGrowthOutside0X128", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "feeGrowthOutside1X128", - "type": "uint256" - }, - { - "internalType": "int56", - "name": "tickCumulativeOutside", - "type": "int56" - }, - { - "internalType": "uint160", - "name": "secondsPerLiquidityOutsideX128", - "type": "uint160" - }, - { - "internalType": "uint32", - "name": "secondsOutside", - "type": "uint32" - }, - { "internalType": "bool", "name": "initialized", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "token0", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "token1", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/UniswapV3Quoter.json b/libs/shared/contracts/src/abis/json/UniswapV3Quoter.json deleted file mode 100644 index b7621ad2c..000000000 --- a/libs/shared/contracts/src/abis/json/UniswapV3Quoter.json +++ /dev/null @@ -1,101 +0,0 @@ -{ - "name": "UniswapV3Quoter", - "address": "0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_factory", "type": "address" }, - { "internalType": "address", "name": "_WETH9", "type": "address" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "WETH9", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "factory", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "bytes", "name": "path", "type": "bytes" }, - { "internalType": "uint256", "name": "amountIn", "type": "uint256" } - ], - "name": "quoteExactInput", - "outputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "tokenIn", "type": "address" }, - { "internalType": "address", "name": "tokenOut", "type": "address" }, - { "internalType": "uint24", "name": "fee", "type": "uint24" }, - { "internalType": "uint256", "name": "amountIn", "type": "uint256" }, - { - "internalType": "uint160", - "name": "sqrtPriceLimitX96", - "type": "uint160" - } - ], - "name": "quoteExactInputSingle", - "outputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "bytes", "name": "path", "type": "bytes" }, - { "internalType": "uint256", "name": "amountOut", "type": "uint256" } - ], - "name": "quoteExactOutput", - "outputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "tokenIn", "type": "address" }, - { "internalType": "address", "name": "tokenOut", "type": "address" }, - { "internalType": "uint24", "name": "fee", "type": "uint24" }, - { "internalType": "uint256", "name": "amountOut", "type": "uint256" }, - { - "internalType": "uint160", - "name": "sqrtPriceLimitX96", - "type": "uint160" - } - ], - "name": "quoteExactOutputSingle", - "outputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "int256", "name": "amount0Delta", "type": "int256" }, - { "internalType": "int256", "name": "amount1Delta", "type": "int256" }, - { "internalType": "bytes", "name": "path", "type": "bytes" } - ], - "name": "uniswapV3SwapCallback", - "outputs": [], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/UniswapV3Router.json b/libs/shared/contracts/src/abis/json/UniswapV3Router.json deleted file mode 100644 index aa42a5ef5..000000000 --- a/libs/shared/contracts/src/abis/json/UniswapV3Router.json +++ /dev/null @@ -1,350 +0,0 @@ -{ - "name": "UniswapV3Router", - "address": "0xe592427a0aece92de3edee1f18e0157c05861564", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_factory", "type": "address" }, - { "internalType": "address", "name": "_WETH9", "type": "address" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "WETH9", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { "internalType": "bytes", "name": "path", "type": "bytes" }, - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountIn", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountOutMinimum", - "type": "uint256" - } - ], - "internalType": "struct ISwapRouter.ExactInputParams", - "name": "params", - "type": "tuple" - } - ], - "name": "exactInput", - "outputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { "internalType": "address", "name": "tokenIn", "type": "address" }, - { - "internalType": "address", - "name": "tokenOut", - "type": "address" - }, - { "internalType": "uint24", "name": "fee", "type": "uint24" }, - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountIn", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountOutMinimum", - "type": "uint256" - }, - { - "internalType": "uint160", - "name": "sqrtPriceLimitX96", - "type": "uint160" - } - ], - "internalType": "struct ISwapRouter.ExactInputSingleParams", - "name": "params", - "type": "tuple" - } - ], - "name": "exactInputSingle", - "outputs": [ - { "internalType": "uint256", "name": "amountOut", "type": "uint256" } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { "internalType": "bytes", "name": "path", "type": "bytes" }, - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountOut", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountInMaximum", - "type": "uint256" - } - ], - "internalType": "struct ISwapRouter.ExactOutputParams", - "name": "params", - "type": "tuple" - } - ], - "name": "exactOutput", - "outputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { "internalType": "address", "name": "tokenIn", "type": "address" }, - { - "internalType": "address", - "name": "tokenOut", - "type": "address" - }, - { "internalType": "uint24", "name": "fee", "type": "uint24" }, - { - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "internalType": "uint256", - "name": "deadline", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountOut", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "amountInMaximum", - "type": "uint256" - }, - { - "internalType": "uint160", - "name": "sqrtPriceLimitX96", - "type": "uint160" - } - ], - "internalType": "struct ISwapRouter.ExactOutputSingleParams", - "name": "params", - "type": "tuple" - } - ], - "name": "exactOutputSingle", - "outputs": [ - { "internalType": "uint256", "name": "amountIn", "type": "uint256" } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "factory", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "bytes[]", "name": "data", "type": "bytes[]" } - ], - "name": "multicall", - "outputs": [ - { "internalType": "bytes[]", "name": "results", "type": "bytes[]" } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "refundETH", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "selfPermit", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "nonce", "type": "uint256" }, - { "internalType": "uint256", "name": "expiry", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "selfPermitAllowed", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "nonce", "type": "uint256" }, - { "internalType": "uint256", "name": "expiry", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "selfPermitAllowedIfNecessary", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "selfPermitIfNecessary", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { - "internalType": "uint256", - "name": "amountMinimum", - "type": "uint256" - }, - { "internalType": "address", "name": "recipient", "type": "address" } - ], - "name": "sweepToken", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "token", "type": "address" }, - { - "internalType": "uint256", - "name": "amountMinimum", - "type": "uint256" - }, - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "feeBips", "type": "uint256" }, - { "internalType": "address", "name": "feeRecipient", "type": "address" } - ], - "name": "sweepTokenWithFee", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "int256", "name": "amount0Delta", "type": "int256" }, - { "internalType": "int256", "name": "amount1Delta", "type": "int256" }, - { "internalType": "bytes", "name": "_data", "type": "bytes" } - ], - "name": "uniswapV3SwapCallback", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountMinimum", - "type": "uint256" - }, - { "internalType": "address", "name": "recipient", "type": "address" } - ], - "name": "unwrapWETH9", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amountMinimum", - "type": "uint256" - }, - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "feeBips", "type": "uint256" }, - { "internalType": "address", "name": "feeRecipient", "type": "address" } - ], - "name": "unwrapWETH9WithFee", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { "stateMutability": "payable", "type": "receive" } - ] -} diff --git a/libs/shared/contracts/src/abis/json/UniswapV3USDC_USDT.json b/libs/shared/contracts/src/abis/json/UniswapV3USDC_USDT.json deleted file mode 100644 index eadf7c19c..000000000 --- a/libs/shared/contracts/src/abis/json/UniswapV3USDC_USDT.json +++ /dev/null @@ -1,716 +0,0 @@ -{ - "name": "UniswapV3USDC_USDT", - "address": "0x7858e59e0c01ea06df3af3d20ac7b0003275d4bf", - "abi": [ - { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickLower", - "type": "int24" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickUpper", - "type": "int24" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - } - ], - "name": "Burn", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickLower", - "type": "int24" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickUpper", - "type": "int24" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount0", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount1", - "type": "uint128" - } - ], - "name": "Collect", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount0", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount1", - "type": "uint128" - } - ], - "name": "CollectProtocol", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "paid0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "paid1", - "type": "uint256" - } - ], - "name": "Flash", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint16", - "name": "observationCardinalityNextOld", - "type": "uint16" - }, - { - "indexed": false, - "internalType": "uint16", - "name": "observationCardinalityNextNew", - "type": "uint16" - } - ], - "name": "IncreaseObservationCardinalityNext", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint160", - "name": "sqrtPriceX96", - "type": "uint160" - }, - { - "indexed": false, - "internalType": "int24", - "name": "tick", - "type": "int24" - } - ], - "name": "Initialize", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickLower", - "type": "int24" - }, - { - "indexed": true, - "internalType": "int24", - "name": "tickUpper", - "type": "int24" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "amount", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount0", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount1", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint8", - "name": "feeProtocol0Old", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "feeProtocol1Old", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "feeProtocol0New", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "feeProtocol1New", - "type": "uint8" - } - ], - "name": "SetFeeProtocol", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "recipient", - "type": "address" - }, - { - "indexed": false, - "internalType": "int256", - "name": "amount0", - "type": "int256" - }, - { - "indexed": false, - "internalType": "int256", - "name": "amount1", - "type": "int256" - }, - { - "indexed": false, - "internalType": "uint160", - "name": "sqrtPriceX96", - "type": "uint160" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "liquidity", - "type": "uint128" - }, - { - "indexed": false, - "internalType": "int24", - "name": "tick", - "type": "int24" - } - ], - "name": "Swap", - "type": "event" - }, - { - "inputs": [ - { "internalType": "int24", "name": "tickLower", "type": "int24" }, - { "internalType": "int24", "name": "tickUpper", "type": "int24" }, - { "internalType": "uint128", "name": "amount", "type": "uint128" } - ], - "name": "burn", - "outputs": [ - { "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "int24", "name": "tickLower", "type": "int24" }, - { "internalType": "int24", "name": "tickUpper", "type": "int24" }, - { - "internalType": "uint128", - "name": "amount0Requested", - "type": "uint128" - }, - { - "internalType": "uint128", - "name": "amount1Requested", - "type": "uint128" - } - ], - "name": "collect", - "outputs": [ - { "internalType": "uint128", "name": "amount0", "type": "uint128" }, - { "internalType": "uint128", "name": "amount1", "type": "uint128" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { - "internalType": "uint128", - "name": "amount0Requested", - "type": "uint128" - }, - { - "internalType": "uint128", - "name": "amount1Requested", - "type": "uint128" - } - ], - "name": "collectProtocol", - "outputs": [ - { "internalType": "uint128", "name": "amount0", "type": "uint128" }, - { "internalType": "uint128", "name": "amount1", "type": "uint128" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "factory", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "fee", - "outputs": [{ "internalType": "uint24", "name": "", "type": "uint24" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "feeGrowthGlobal0X128", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "feeGrowthGlobal1X128", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1", "type": "uint256" }, - { "internalType": "bytes", "name": "data", "type": "bytes" } - ], - "name": "flash", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint16", - "name": "observationCardinalityNext", - "type": "uint16" - } - ], - "name": "increaseObservationCardinalityNext", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "liquidity", - "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxLiquidityPerTick", - "outputs": [{ "internalType": "uint128", "name": "", "type": "uint128" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "int24", "name": "tickLower", "type": "int24" }, - { "internalType": "int24", "name": "tickUpper", "type": "int24" }, - { "internalType": "uint128", "name": "amount", "type": "uint128" }, - { "internalType": "bytes", "name": "data", "type": "bytes" } - ], - "name": "mint", - "outputs": [ - { "internalType": "uint256", "name": "amount0", "type": "uint256" }, - { "internalType": "uint256", "name": "amount1", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "observations", - "outputs": [ - { - "internalType": "uint32", - "name": "blockTimestamp", - "type": "uint32" - }, - { "internalType": "int56", "name": "tickCumulative", "type": "int56" }, - { - "internalType": "uint160", - "name": "secondsPerLiquidityCumulativeX128", - "type": "uint160" - }, - { "internalType": "bool", "name": "initialized", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint32[]", - "name": "secondsAgos", - "type": "uint32[]" - } - ], - "name": "observe", - "outputs": [ - { - "internalType": "int56[]", - "name": "tickCumulatives", - "type": "int56[]" - }, - { - "internalType": "uint160[]", - "name": "secondsPerLiquidityCumulativeX128s", - "type": "uint160[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "name": "positions", - "outputs": [ - { "internalType": "uint128", "name": "liquidity", "type": "uint128" }, - { - "internalType": "uint256", - "name": "feeGrowthInside0LastX128", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "feeGrowthInside1LastX128", - "type": "uint256" - }, - { "internalType": "uint128", "name": "tokensOwed0", "type": "uint128" }, - { "internalType": "uint128", "name": "tokensOwed1", "type": "uint128" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "protocolFees", - "outputs": [ - { "internalType": "uint128", "name": "token0", "type": "uint128" }, - { "internalType": "uint128", "name": "token1", "type": "uint128" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint8", "name": "feeProtocol0", "type": "uint8" }, - { "internalType": "uint8", "name": "feeProtocol1", "type": "uint8" } - ], - "name": "setFeeProtocol", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "slot0", - "outputs": [ - { - "internalType": "uint160", - "name": "sqrtPriceX96", - "type": "uint160" - }, - { "internalType": "int24", "name": "tick", "type": "int24" }, - { - "internalType": "uint16", - "name": "observationIndex", - "type": "uint16" - }, - { - "internalType": "uint16", - "name": "observationCardinality", - "type": "uint16" - }, - { - "internalType": "uint16", - "name": "observationCardinalityNext", - "type": "uint16" - }, - { "internalType": "uint8", "name": "feeProtocol", "type": "uint8" }, - { "internalType": "bool", "name": "unlocked", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "int24", "name": "tickLower", "type": "int24" }, - { "internalType": "int24", "name": "tickUpper", "type": "int24" } - ], - "name": "snapshotCumulativesInside", - "outputs": [ - { - "internalType": "int56", - "name": "tickCumulativeInside", - "type": "int56" - }, - { - "internalType": "uint160", - "name": "secondsPerLiquidityInsideX128", - "type": "uint160" - }, - { "internalType": "uint32", "name": "secondsInside", "type": "uint32" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "bool", "name": "zeroForOne", "type": "bool" }, - { - "internalType": "int256", - "name": "amountSpecified", - "type": "int256" - }, - { - "internalType": "uint160", - "name": "sqrtPriceLimitX96", - "type": "uint160" - }, - { "internalType": "bytes", "name": "data", "type": "bytes" } - ], - "name": "swap", - "outputs": [ - { "internalType": "int256", "name": "amount0", "type": "int256" }, - { "internalType": "int256", "name": "amount1", "type": "int256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "int16", "name": "", "type": "int16" }], - "name": "tickBitmap", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "tickSpacing", - "outputs": [{ "internalType": "int24", "name": "", "type": "int24" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "int24", "name": "", "type": "int24" }], - "name": "ticks", - "outputs": [ - { - "internalType": "uint128", - "name": "liquidityGross", - "type": "uint128" - }, - { "internalType": "int128", "name": "liquidityNet", "type": "int128" }, - { - "internalType": "uint256", - "name": "feeGrowthOutside0X128", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "feeGrowthOutside1X128", - "type": "uint256" - }, - { - "internalType": "int56", - "name": "tickCumulativeOutside", - "type": "int56" - }, - { - "internalType": "uint160", - "name": "secondsPerLiquidityOutsideX128", - "type": "uint160" - }, - { - "internalType": "uint32", - "name": "secondsOutside", - "type": "uint32" - }, - { "internalType": "bool", "name": "initialized", "type": "bool" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "token0", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "token1", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/Vault.json b/libs/shared/contracts/src/abis/json/Vault.json deleted file mode 100644 index b33ab0e88..000000000 --- a/libs/shared/contracts/src/abis/json/Vault.json +++ /dev/null @@ -1,429 +0,0 @@ -{ - "name": "Vault", - "address": "0x328d15f6b5eba1c30cde1a5f1f5a9e35b07f5424", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "depositPaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "mintMultiple", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "redeemFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "uniswapAddr", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "vaultBuffer", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getAllAssets", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "redeemAll", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getStrategyCount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mint", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rebaseThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rebasePaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "strategistAddr", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "calculateRedeemOutputs", - "outputs": [ - { "internalType": "uint256[]", "name": "", "type": "uint256[]" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "rebaseHooksAddr", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "isSupportedAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "autoAllocateThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getAssetCount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "allocate", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "rebase", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "priceProvider", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalValue", - "outputs": [ - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "redeem", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "newImpl", "type": "address" } - ], - "name": "setAdminImpl", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { "payable": true, "stateMutability": "payable", "type": "fallback" }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - } - ], - "name": "AssetSupported", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address[]", - "name": "_strategyAddresses", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint256[]", - "name": "weights", - "type": "uint256[]" - } - ], - "name": "StrategyWeightsUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "DepositsPaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "DepositsUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/VaultAdmin.json b/libs/shared/contracts/src/abis/json/VaultAdmin.json deleted file mode 100644 index c7e3241a2..000000000 --- a/libs/shared/contracts/src/abis/json/VaultAdmin.json +++ /dev/null @@ -1,779 +0,0 @@ -{ - "name": "VaultAdmin", - "address": "0x1eF0553FEb80e6f133cAe3092e38F0b23dA6452b", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "AllocateThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "AssetAllocated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - } - ], - "name": "AssetDefaultStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - } - ], - "name": "AssetSupported", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalPaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "maxSupplyDiff", - "type": "uint256" - } - ], - "name": "MaxSupplyDiffChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "NetOusdMintForStrategyThresholdChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_ousdMetaStrategy", - "type": "address" - } - ], - "name": "OusdMetaStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_priceProvider", - "type": "address" - } - ], - "name": "PriceProviderUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebasePaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "RebaseThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebaseUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_redeemFeeBps", - "type": "uint256" - } - ], - "name": "RedeemFeeUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "StrategistUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyApproved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "TrusteeAddressChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_basis", - "type": "uint256" - } - ], - "name": "TrusteeFeeBpsChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_vaultBuffer", - "type": "uint256" - } - ], - "name": "VaultBufferUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_yield", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fee", - "type": "uint256" - } - ], - "name": "YieldDistribution", - "type": "event" - }, - { - "inputs": [ - { "internalType": "address", "name": "_addr", "type": "address" } - ], - "name": "approveStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetDefaultStrategies", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "autoAllocateThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "capitalPaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyToAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "depositToStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxSupplyDiff", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintForStrategyThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintedForStrategy", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ousdMetaStrategy", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pauseCapital", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "pauseRebase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "priceProvider", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset", "type": "address" } - ], - "name": "priceUSDMint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset", "type": "address" } - ], - "name": "priceUSDRedeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyFromAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_strategyToAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "reallocate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rebasePaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "redeemFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_addr", "type": "address" } - ], - "name": "removeStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "newImpl", "type": "address" } - ], - "name": "setAdminImpl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "address", "name": "_strategy", "type": "address" } - ], - "name": "setAssetDefaultStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setAutoAllocateThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_maxSupplyDiff", - "type": "uint256" - } - ], - "name": "setMaxSupplyDiff", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setNetOusdMintForStrategyThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_ousdMetaStrategy", - "type": "address" - } - ], - "name": "setOusdMetaStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_priceProvider", - "type": "address" - } - ], - "name": "setPriceProvider", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_threshold", "type": "uint256" } - ], - "name": "setRebaseThreshold", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_redeemFeeBps", - "type": "uint256" - } - ], - "name": "setRedeemFeeBps", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_address", "type": "address" } - ], - "name": "setStrategistAddr", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_address", "type": "address" } - ], - "name": "setTrusteeAddress", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_basis", "type": "uint256" } - ], - "name": "setTrusteeFeeBps", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_vaultBuffer", "type": "uint256" } - ], - "name": "setVaultBuffer", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "strategistAddr", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "supportAsset", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "unpauseCapital", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "unpauseRebase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vaultBuffer", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "withdrawAllFromStrategies", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyAddr", - "type": "address" - } - ], - "name": "withdrawAllFromStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_strategyFromAddress", - "type": "address" - }, - { "internalType": "address[]", "name": "_assets", "type": "address[]" }, - { "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" } - ], - "name": "withdrawFromStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/VaultCore.json b/libs/shared/contracts/src/abis/json/VaultCore.json deleted file mode 100644 index fc8c5bc93..000000000 --- a/libs/shared/contracts/src/abis/json/VaultCore.json +++ /dev/null @@ -1,646 +0,0 @@ -{ - "name": "VaultCore", - "address": "0x997c35A0bf8E21404aE4379841E0603C957138c3", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "AllocateThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "AssetAllocated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - } - ], - "name": "AssetDefaultStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - } - ], - "name": "AssetSupported", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalPaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "maxSupplyDiff", - "type": "uint256" - } - ], - "name": "MaxSupplyDiffChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "NetOusdMintForStrategyThresholdChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_ousdMetaStrategy", - "type": "address" - } - ], - "name": "OusdMetaStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_priceProvider", - "type": "address" - } - ], - "name": "PriceProviderUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebasePaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "RebaseThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebaseUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_redeemFeeBps", - "type": "uint256" - } - ], - "name": "RedeemFeeUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "StrategistUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyApproved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "TrusteeAddressChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_basis", - "type": "uint256" - } - ], - "name": "TrusteeFeeBpsChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_vaultBuffer", - "type": "uint256" - } - ], - "name": "VaultBufferUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_yield", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fee", - "type": "uint256" - } - ], - "name": "YieldDistribution", - "type": "event" - }, - { "stateMutability": "payable", "type": "fallback" }, - { - "inputs": [], - "name": "allocate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetDefaultStrategies", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "autoAllocateThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "burnForStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "calculateRedeemOutputs", - "outputs": [ - { "internalType": "uint256[]", "name": "", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "capitalPaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getAllAssets", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAllStrategies", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAssetCount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getStrategyCount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "isSupportedAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxSupplyDiff", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { - "internalType": "uint256", - "name": "_minimumOusdAmount", - "type": "uint256" - } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mintForStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintForStrategyThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintedForStrategy", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ousdMetaStrategy", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "priceProvider", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rebasePaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { - "internalType": "uint256", - "name": "_minimumUnitAmount", - "type": "uint256" - } - ], - "name": "redeem", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_minimumUnitAmount", - "type": "uint256" - } - ], - "name": "redeemAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "redeemFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "newImpl", "type": "address" } - ], - "name": "setAdminImpl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "strategistAddr", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalValue", - "outputs": [ - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "vaultBuffer", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/VaultProxy.json b/libs/shared/contracts/src/abis/json/VaultProxy.json deleted file mode 100644 index 5a312911e..000000000 --- a/libs/shared/contracts/src/abis/json/VaultProxy.json +++ /dev/null @@ -1,773 +0,0 @@ -{ - "name": "VaultProxy", - "address": "0xE75D77B1865Ae93c7eaa3040B038D7aA7BC02F70", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "AllocateThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "AssetAllocated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "_strategy", - "type": "address" - } - ], - "name": "AssetDefaultStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - } - ], - "name": "AssetSupported", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalPaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "CapitalUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "maxSupplyDiff", - "type": "uint256" - } - ], - "name": "MaxSupplyDiffChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "NetOusdMintForStrategyThresholdChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_ousdMetaStrategy", - "type": "address" - } - ], - "name": "OusdMetaStrategyUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_priceProvider", - "type": "address" - } - ], - "name": "PriceProviderUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebasePaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_threshold", - "type": "uint256" - } - ], - "name": "RebaseThresholdUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "RebaseUnpaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_redeemFeeBps", - "type": "uint256" - } - ], - "name": "RedeemFeeUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "StrategistUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyApproved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_addr", - "type": "address" - } - ], - "name": "StrategyRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_basis", - "type": "uint256" - } - ], - "name": "SwapAllowedUndervalueChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_asset", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_basis", - "type": "uint256" - } - ], - "name": "SwapSlippageChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_fromAsset", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_toAsset", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromAssetAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_toAssetAmount", - "type": "uint256" - } - ], - "name": "Swapped", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "SwapperChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_address", - "type": "address" - } - ], - "name": "TrusteeAddressChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_basis", - "type": "uint256" - } - ], - "name": "TrusteeFeeBpsChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "_vaultBuffer", - "type": "uint256" - } - ], - "name": "VaultBufferUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_yield", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fee", - "type": "uint256" - } - ], - "name": "YieldDistribution", - "type": "event" - }, - { "stateMutability": "payable", "type": "fallback" }, - { - "inputs": [], - "name": "allocate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "assetDefaultStrategies", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "autoAllocateThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "burnForStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "calculateRedeemOutputs", - "outputs": [ - { "internalType": "uint256[]", "name": "", "type": "uint256[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "capitalPaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "checkBalance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getAllAssets", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAllStrategies", - "outputs": [ - { "internalType": "address[]", "name": "", "type": "address[]" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "getAssetConfig", - "outputs": [ - { - "components": [ - { "internalType": "bool", "name": "isSupported", "type": "bool" }, - { - "internalType": "enum VaultStorage.UnitConversion", - "name": "unitConversion", - "type": "uint8" - }, - { "internalType": "uint8", "name": "decimals", "type": "uint8" }, - { - "internalType": "uint16", - "name": "allowedOracleSlippageBps", - "type": "uint16" - } - ], - "internalType": "struct VaultStorage.Asset", - "name": "config", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getAssetCount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getStrategyCount", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" } - ], - "name": "isSupportedAsset", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxSupplyDiff", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_asset", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { - "internalType": "uint256", - "name": "_minimumOusdAmount", - "type": "uint256" - } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mintForStrategy", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintForStrategyThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "netOusdMintedForStrategy", - "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ousdMetaStrategy", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "priceProvider", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset", "type": "address" } - ], - "name": "priceUnitMint", - "outputs": [ - { "internalType": "uint256", "name": "price", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset", "type": "address" } - ], - "name": "priceUnitRedeem", - "outputs": [ - { "internalType": "uint256", "name": "price", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebase", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rebasePaused", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rebaseThreshold", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" }, - { - "internalType": "uint256", - "name": "_minimumUnitAmount", - "type": "uint256" - } - ], - "name": "redeem", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_minimumUnitAmount", - "type": "uint256" - } - ], - "name": "redeemAll", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "redeemFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "newImpl", "type": "address" } - ], - "name": "setAdminImpl", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "strategistAddr", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalValue", - "outputs": [ - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "trusteeFeeBps", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "vaultBuffer", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/VaultValueChecker.json b/libs/shared/contracts/src/abis/json/VaultValueChecker.json deleted file mode 100644 index b3e7d4dc5..000000000 --- a/libs/shared/contracts/src/abis/json/VaultValueChecker.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "name": "VaultValueChecker", - "address": "0xEEcD72c99749A1FC977704AB900a05e8300F4318", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "_vault", "type": "address" }, - { "internalType": "address", "name": "_ousd", "type": "address" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { "internalType": "int256", "name": "lowValueDelta", "type": "int256" }, - { - "internalType": "int256", - "name": "highValueDelta", - "type": "int256" - }, - { - "internalType": "int256", - "name": "lowSupplyDelta", - "type": "int256" - }, - { - "internalType": "int256", - "name": "highSupplyDelta", - "type": "int256" - } - ], - "name": "checkDelta", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "ousd", - "outputs": [ - { "internalType": "contract OUSD", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "snapshots", - "outputs": [ - { "internalType": "uint256", "name": "vaultValue", "type": "uint256" }, - { "internalType": "uint256", "name": "totalSupply", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "takeSnapshot", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "vault", - "outputs": [ - { "internalType": "contract VaultCore", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/WETH.json b/libs/shared/contracts/src/abis/json/WETH.json deleted file mode 100644 index 5bf0cd6d5..000000000 --- a/libs/shared/contracts/src/abis/json/WETH.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "name": "WETH", - "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "guy", "type": "address" }, - { "name": "wad", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "src", "type": "address" }, - { "name": "dst", "type": "address" }, - { "name": "wad", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "wad", "type": "uint256" }], - "name": "withdraw", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "", "type": "address" }], - "name": "balanceOf", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "dst", "type": "address" }, - { "name": "wad", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "deposit", - "outputs": [], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "name": "", "type": "address" }, - { "name": "", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { "payable": true, "stateMutability": "payable", "type": "fallback" }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "src", "type": "address" }, - { "indexed": true, "name": "guy", "type": "address" }, - { "indexed": false, "name": "wad", "type": "uint256" } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "src", "type": "address" }, - { "indexed": true, "name": "dst", "type": "address" }, - { "indexed": false, "name": "wad", "type": "uint256" } - ], - "name": "Transfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "dst", "type": "address" }, - { "indexed": false, "name": "wad", "type": "uint256" } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "src", "type": "address" }, - { "indexed": false, "name": "wad", "type": "uint256" } - ], - "name": "Withdrawal", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/WOETH.json b/libs/shared/contracts/src/abis/json/WOETH.json deleted file mode 100644 index 8606e00eb..000000000 --- a/libs/shared/contracts/src/abis/json/WOETH.json +++ /dev/null @@ -1,470 +0,0 @@ -{ - "name": "woETH", - "address": "0xdcee70654261af21c44c093c300ed3bb97b78192", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ERC20", - "name": "underlying_", - "type": "address" - }, - { "internalType": "string", "name": "name_", "type": "string" }, - { "internalType": "string", "name": "symbol_", "type": "string" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "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": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "assets", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "shares", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "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": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "assets", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "shares", - "type": "uint256" - } - ], - "name": "Withdraw", - "type": "event" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "asset", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "convertToAssets", - "outputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "convertToShares", - "outputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "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": "uint256", "name": "assets", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" } - ], - "name": "deposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "maxDeposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "maxMint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "maxRedeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "maxWithdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" } - ], - "name": "mint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "previewDeposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "previewMint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "previewRedeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "previewWithdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "redeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalAssets", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "sender", "type": "address" }, - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset_", "type": "address" }, - { "internalType": "uint256", "name": "amount_", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "withdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/WOETHProxy.json b/libs/shared/contracts/src/abis/json/WOETHProxy.json deleted file mode 100644 index cb008514d..000000000 --- a/libs/shared/contracts/src/abis/json/WOETHProxy.json +++ /dev/null @@ -1,470 +0,0 @@ -{ - "name": "WOETHProxy", - "address": "0xDcEe70654261AF21C44c093C300eD3Bb97b78192", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ERC20", - "name": "underlying_", - "type": "address" - }, - { "internalType": "string", "name": "name_", "type": "string" }, - { "internalType": "string", "name": "symbol_", "type": "string" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "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": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "assets", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "shares", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "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": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "assets", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "shares", - "type": "uint256" - } - ], - "name": "Withdraw", - "type": "event" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "asset", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "convertToAssets", - "outputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "convertToShares", - "outputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "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": "uint256", "name": "assets", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" } - ], - "name": "deposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "maxDeposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "maxMint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "maxRedeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "maxWithdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" } - ], - "name": "mint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "previewDeposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "previewMint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "previewRedeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "previewWithdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "redeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalAssets", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "sender", "type": "address" }, - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset_", "type": "address" }, - { "internalType": "uint256", "name": "amount_", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "withdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/WOUSD.json b/libs/shared/contracts/src/abis/json/WOUSD.json deleted file mode 100644 index 659f2050f..000000000 --- a/libs/shared/contracts/src/abis/json/WOUSD.json +++ /dev/null @@ -1,470 +0,0 @@ -{ - "name": "WOUSD", - "address": "0xD2af830E8CBdFed6CC11Bab697bB25496ed6FA62", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ERC20", - "name": "underlying_", - "type": "address" - }, - { "internalType": "string", "name": "name_", "type": "string" }, - { "internalType": "string", "name": "symbol_", "type": "string" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "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": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "assets", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "shares", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "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": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "assets", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "shares", - "type": "uint256" - } - ], - "name": "Withdraw", - "type": "event" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "asset", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "convertToAssets", - "outputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "convertToShares", - "outputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "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": "uint256", "name": "assets", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" } - ], - "name": "deposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "maxDeposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "maxMint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "maxRedeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "maxWithdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" } - ], - "name": "mint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "previewDeposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "previewMint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "previewRedeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "previewWithdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "redeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalAssets", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "sender", "type": "address" }, - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset_", "type": "address" }, - { "internalType": "uint256", "name": "amount_", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "withdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/WrappedOUSDProxy.json b/libs/shared/contracts/src/abis/json/WrappedOUSDProxy.json deleted file mode 100644 index fc19a863a..000000000 --- a/libs/shared/contracts/src/abis/json/WrappedOUSDProxy.json +++ /dev/null @@ -1,470 +0,0 @@ -{ - "name": "WrappedOUSDProxy", - "address": "0xD2af830E8CBdFed6CC11Bab697bB25496ed6FA62", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ERC20", - "name": "underlying_", - "type": "address" - }, - { "internalType": "string", "name": "name_", "type": "string" }, - { "internalType": "string", "name": "symbol_", "type": "string" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "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": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "assets", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "shares", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "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": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "assets", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "shares", - "type": "uint256" - } - ], - "name": "Withdraw", - "type": "event" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "asset", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "convertToAssets", - "outputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "convertToShares", - "outputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "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": "uint256", "name": "assets", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" } - ], - "name": "deposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "maxDeposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "maxMint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "maxRedeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "maxWithdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" } - ], - "name": "mint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "previewDeposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "previewMint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "previewRedeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "previewWithdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "redeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalAssets", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "sender", "type": "address" }, - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset_", "type": "address" }, - { "internalType": "uint256", "name": "amount_", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "withdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/WrappedOusd.json b/libs/shared/contracts/src/abis/json/WrappedOusd.json deleted file mode 100644 index 1ad687238..000000000 --- a/libs/shared/contracts/src/abis/json/WrappedOusd.json +++ /dev/null @@ -1,470 +0,0 @@ -{ - "name": "WrappedOusd", - "address": "0xBF3B9b141Cb3629F5Bb8F721cbA9265c92494539", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ERC20", - "name": "underlying_", - "type": "address" - }, - { "internalType": "string", "name": "name_", "type": "string" }, - { "internalType": "string", "name": "symbol_", "type": "string" } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "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": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "assets", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "shares", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "GovernorshipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "previousGovernor", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newGovernor", - "type": "address" - } - ], - "name": "PendingGovernorshipTransfer", - "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": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "assets", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "shares", - "type": "uint256" - } - ], - "name": "Withdraw", - "type": "event" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "asset", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "claimGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "convertToAssets", - "outputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "convertToShares", - "outputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "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": "uint256", "name": "assets", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" } - ], - "name": "deposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "governor", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "isGovernor", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "maxDeposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "maxMint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "maxRedeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "maxWithdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" } - ], - "name": "mint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "previewDeposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "previewMint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "previewRedeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "previewWithdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "redeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalAssets", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "sender", "type": "address" }, - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_newGovernor", "type": "address" } - ], - "name": "transferGovernance", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "asset_", "type": "address" }, - { "internalType": "uint256", "name": "amount_", "type": "uint256" } - ], - "name": "transferToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "withdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/aTUSD.json b/libs/shared/contracts/src/abis/json/aTUSD.json deleted file mode 100644 index 126d6406d..000000000 --- a/libs/shared/contracts/src/abis/json/aTUSD.json +++ /dev/null @@ -1,595 +0,0 @@ -{ - "name": "aTUSD", - "address": "0x4DA9b813057D04BAef4e5800E36083717b4a0341", - "abi": [ - { - "inputs": [ - { - "internalType": "contract LendingPoolAddressesProvider", - "name": "_addressesProvider", - "type": "address" - }, - { - "internalType": "address", - "name": "_underlyingAsset", - "type": "address" - }, - { - "internalType": "uint8", - "name": "_underlyingAssetDecimals", - "type": "uint8" - }, - { "internalType": "string", "name": "_name", "type": "string" }, - { "internalType": "string", "name": "_symbol", "type": "string" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "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": "_value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_toBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromIndex", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_toIndex", - "type": "uint256" - } - ], - "name": "BalanceTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromIndex", - "type": "uint256" - } - ], - "name": "BurnOnLiquidation", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_to", - "type": "address" - } - ], - "name": "InterestRedirectionAllowanceChanged", - "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": "_redirectedBalance", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromIndex", - "type": "uint256" - } - ], - "name": "InterestStreamRedirected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromIndex", - "type": "uint256" - } - ], - "name": "MintOnDeposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromIndex", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_targetAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_targetBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_targetIndex", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_redirectedBalanceAdded", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_redirectedBalanceRemoved", - "type": "uint256" - } - ], - "name": "RedirectedBalanceUpdated", - "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" - }, - { - "constant": true, - "inputs": [], - "name": "UINT_MAX_VALUE", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "allowInterestRedirectionTo", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_user", "type": "address" } - ], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "burnOnLiquidation", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { - "internalType": "uint256", - "name": "subtractedValue", - "type": "uint256" - } - ], - "name": "decreaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_user", "type": "address" } - ], - "name": "getInterestRedirectionAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_user", "type": "address" } - ], - "name": "getRedirectedBalance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_user", "type": "address" } - ], - "name": "getUserIndex", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_user", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "isTransferAllowed", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mintOnDeposit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_user", "type": "address" } - ], - "name": "principalBalanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "redeem", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "redirectInterestStream", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "redirectInterestStreamOf", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "sender", "type": "address" }, - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transferOnLiquidation", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "underlyingAssetAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/aUSDT.json b/libs/shared/contracts/src/abis/json/aUSDT.json deleted file mode 100644 index 8e08d766a..000000000 --- a/libs/shared/contracts/src/abis/json/aUSDT.json +++ /dev/null @@ -1,595 +0,0 @@ -{ - "name": "aUSDT", - "address": "0x71fc860F7D3A592A4a98740e39dB31d25db65ae8", - "abi": [ - { - "inputs": [ - { - "internalType": "contract LendingPoolAddressesProvider", - "name": "_addressesProvider", - "type": "address" - }, - { - "internalType": "address", - "name": "_underlyingAsset", - "type": "address" - }, - { - "internalType": "uint8", - "name": "_underlyingAssetDecimals", - "type": "uint8" - }, - { "internalType": "string", "name": "_name", "type": "string" }, - { "internalType": "string", "name": "_symbol", "type": "string" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "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": "_value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_toBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromIndex", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_toIndex", - "type": "uint256" - } - ], - "name": "BalanceTransfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromIndex", - "type": "uint256" - } - ], - "name": "BurnOnLiquidation", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "_to", - "type": "address" - } - ], - "name": "InterestRedirectionAllowanceChanged", - "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": "_redirectedBalance", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromIndex", - "type": "uint256" - } - ], - "name": "InterestStreamRedirected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromIndex", - "type": "uint256" - } - ], - "name": "MintOnDeposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_from", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_fromIndex", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "_targetAddress", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_targetBalanceIncrease", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_targetIndex", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_redirectedBalanceAdded", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "_redirectedBalanceRemoved", - "type": "uint256" - } - ], - "name": "RedirectedBalanceUpdated", - "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" - }, - { - "constant": true, - "inputs": [], - "name": "UINT_MAX_VALUE", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "allowInterestRedirectionTo", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_user", "type": "address" } - ], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "burnOnLiquidation", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { - "internalType": "uint256", - "name": "subtractedValue", - "type": "uint256" - } - ], - "name": "decreaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_user", "type": "address" } - ], - "name": "getInterestRedirectionAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_user", "type": "address" } - ], - "name": "getRedirectedBalance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_user", "type": "address" } - ], - "name": "getUserIndex", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_user", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "isTransferAllowed", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_account", "type": "address" }, - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "mintOnDeposit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "internalType": "address", "name": "_user", "type": "address" } - ], - "name": "principalBalanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "uint256", "name": "_amount", "type": "uint256" } - ], - "name": "redeem", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "redirectInterestStream", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "redirectInterestStreamOf", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "sender", "type": "address" }, - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "internalType": "address", "name": "_from", "type": "address" }, - { "internalType": "address", "name": "_to", "type": "address" }, - { "internalType": "uint256", "name": "_value", "type": "uint256" } - ], - "name": "transferOnLiquidation", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "underlyingAssetAddress", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/cDAI.json b/libs/shared/contracts/src/abis/json/cDAI.json deleted file mode 100644 index 26a772069..000000000 --- a/libs/shared/contracts/src/abis/json/cDAI.json +++ /dev/null @@ -1,1037 +0,0 @@ -{ - "name": "cDAI", - "address": "0x5d3a536e4d6dbd6114cc1ead35777bab948e3643", - "abi": [ - { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, - { "inputs": [], "name": "AcceptAdminPendingAdminCheck", "type": "error" }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "actualAddAmount", - "type": "uint256" - } - ], - "name": "AddReservesFactorFreshCheck", - "type": "error" - }, - { "inputs": [], "name": "BorrowCashNotAvailable", "type": "error" }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "BorrowComptrollerRejection", - "type": "error" - }, - { "inputs": [], "name": "BorrowFreshnessCheck", "type": "error" }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "LiquidateAccrueBorrowInterestFailed", - "type": "error" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "LiquidateAccrueCollateralInterestFailed", - "type": "error" - }, - { "inputs": [], "name": "LiquidateCloseAmountIsUintMax", "type": "error" }, - { "inputs": [], "name": "LiquidateCloseAmountIsZero", "type": "error" }, - { - "inputs": [], - "name": "LiquidateCollateralFreshnessCheck", - "type": "error" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "LiquidateComptrollerRejection", - "type": "error" - }, - { "inputs": [], "name": "LiquidateFreshnessCheck", "type": "error" }, - { "inputs": [], "name": "LiquidateLiquidatorIsBorrower", "type": "error" }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "LiquidateRepayBorrowFreshFailed", - "type": "error" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "LiquidateSeizeComptrollerRejection", - "type": "error" - }, - { - "inputs": [], - "name": "LiquidateSeizeLiquidatorIsBorrower", - "type": "error" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "MintComptrollerRejection", - "type": "error" - }, - { "inputs": [], "name": "MintFreshnessCheck", "type": "error" }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "RedeemComptrollerRejection", - "type": "error" - }, - { "inputs": [], "name": "RedeemFreshnessCheck", "type": "error" }, - { "inputs": [], "name": "RedeemTransferOutNotPossible", "type": "error" }, - { "inputs": [], "name": "ReduceReservesAdminCheck", "type": "error" }, - { "inputs": [], "name": "ReduceReservesCashNotAvailable", "type": "error" }, - { "inputs": [], "name": "ReduceReservesCashValidation", "type": "error" }, - { "inputs": [], "name": "ReduceReservesFreshCheck", "type": "error" }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "RepayBorrowComptrollerRejection", - "type": "error" - }, - { "inputs": [], "name": "RepayBorrowFreshnessCheck", "type": "error" }, - { "inputs": [], "name": "SetComptrollerOwnerCheck", "type": "error" }, - { "inputs": [], "name": "SetInterestRateModelFreshCheck", "type": "error" }, - { "inputs": [], "name": "SetInterestRateModelOwnerCheck", "type": "error" }, - { "inputs": [], "name": "SetPendingAdminOwnerCheck", "type": "error" }, - { "inputs": [], "name": "SetReserveFactorAdminCheck", "type": "error" }, - { "inputs": [], "name": "SetReserveFactorBoundsCheck", "type": "error" }, - { "inputs": [], "name": "SetReserveFactorFreshCheck", "type": "error" }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "TransferComptrollerRejection", - "type": "error" - }, - { "inputs": [], "name": "TransferNotAllowed", "type": "error" }, - { "inputs": [], "name": "TransferNotEnough", "type": "error" }, - { "inputs": [], "name": "TransferTooMuch", "type": "error" }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "cashPrior", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "interestAccumulated", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "borrowIndex", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - } - ], - "name": "AccrueInterest", - "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": "amount", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "borrowAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "accountBorrows", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - } - ], - "name": "Borrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "liquidator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "cTokenCollateral", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "seizeTokens", - "type": "uint256" - } - ], - "name": "LiquidateBorrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "minter", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "mintAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "mintTokens", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldAdmin", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "NewAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract ComptrollerInterface", - "name": "oldComptroller", - "type": "address" - }, - { - "indexed": false, - "internalType": "contract ComptrollerInterface", - "name": "newComptroller", - "type": "address" - } - ], - "name": "NewComptroller", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract InterestRateModel", - "name": "oldInterestRateModel", - "type": "address" - }, - { - "indexed": false, - "internalType": "contract InterestRateModel", - "name": "newInterestRateModel", - "type": "address" - } - ], - "name": "NewMarketInterestRateModel", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldPendingAdmin", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newPendingAdmin", - "type": "address" - } - ], - "name": "NewPendingAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldReserveFactorMantissa", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newReserveFactorMantissa", - "type": "uint256" - } - ], - "name": "NewReserveFactor", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "redeemer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "redeemAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "redeemTokens", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "payer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "accountBorrows", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - } - ], - "name": "RepayBorrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "benefactor", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "addAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newTotalReserves", - "type": "uint256" - } - ], - "name": "ReservesAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "admin", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "reduceAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newTotalReserves", - "type": "uint256" - } - ], - "name": "ReservesReduced", - "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": "Transfer", - "type": "event" - }, - { - "inputs": [], - "name": "NO_ERROR", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_acceptAdmin", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "addAmount", "type": "uint256" } - ], - "name": "_addReserves", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "bytes", "name": "data", "type": "bytes" }], - "name": "_becomeImplementation", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "compLikeDelegatee", - "type": "address" - } - ], - "name": "_delegateCompLikeTo", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "reduceAmount", "type": "uint256" } - ], - "name": "_reduceReserves", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "_resignImplementation", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract ComptrollerInterface", - "name": "newComptroller", - "type": "address" - } - ], - "name": "_setComptroller", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract InterestRateModel", - "name": "newInterestRateModel", - "type": "address" - } - ], - "name": "_setInterestRateModel", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address payable", - "name": "newPendingAdmin", - "type": "address" - } - ], - "name": "_setPendingAdmin", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "newReserveFactorMantissa", - "type": "uint256" - } - ], - "name": "_setReserveFactor", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "accrualBlockNumber", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accrueInterest", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "admin", - "outputs": [ - { "internalType": "address payable", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "balanceOfUnderlying", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "borrowAmount", "type": "uint256" } - ], - "name": "borrow", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "borrowBalanceCurrent", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "borrowBalanceStored", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "borrowIndex", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "borrowRatePerBlock", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "comptroller", - "outputs": [ - { - "internalType": "contract ComptrollerInterface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "exchangeRateCurrent", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "exchangeRateStored", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "getAccountSnapshot", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getCash", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "implementation", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "underlying_", "type": "address" }, - { - "internalType": "contract ComptrollerInterface", - "name": "comptroller_", - "type": "address" - }, - { - "internalType": "contract InterestRateModel", - "name": "interestRateModel_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "initialExchangeRateMantissa_", - "type": "uint256" - }, - { "internalType": "string", "name": "name_", "type": "string" }, - { "internalType": "string", "name": "symbol_", "type": "string" }, - { "internalType": "uint8", "name": "decimals_", "type": "uint8" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract ComptrollerInterface", - "name": "comptroller_", - "type": "address" - }, - { - "internalType": "contract InterestRateModel", - "name": "interestRateModel_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "initialExchangeRateMantissa_", - "type": "uint256" - }, - { "internalType": "string", "name": "name_", "type": "string" }, - { "internalType": "string", "name": "symbol_", "type": "string" }, - { "internalType": "uint8", "name": "decimals_", "type": "uint8" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "interestRateModel", - "outputs": [ - { - "internalType": "contract InterestRateModel", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isCToken", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "borrower", "type": "address" }, - { "internalType": "uint256", "name": "repayAmount", "type": "uint256" }, - { - "internalType": "contract CTokenInterface", - "name": "cTokenCollateral", - "type": "address" - } - ], - "name": "liquidateBorrow", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "mintAmount", "type": "uint256" } - ], - "name": "mint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pendingAdmin", - "outputs": [ - { "internalType": "address payable", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "protocolSeizeShareMantissa", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "redeemTokens", "type": "uint256" } - ], - "name": "redeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "redeemAmount", "type": "uint256" } - ], - "name": "redeemUnderlying", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "repayAmount", "type": "uint256" } - ], - "name": "repayBorrow", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "borrower", "type": "address" }, - { "internalType": "uint256", "name": "repayAmount", "type": "uint256" } - ], - "name": "repayBorrowBehalf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "reserveFactorMantissa", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "liquidator", "type": "address" }, - { "internalType": "address", "name": "borrower", "type": "address" }, - { "internalType": "uint256", "name": "seizeTokens", "type": "uint256" } - ], - "name": "seize", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "supplyRatePerBlock", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract EIP20NonStandardInterface", - "name": "token", - "type": "address" - } - ], - "name": "sweepToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalBorrows", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalBorrowsCurrent", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "totalReserves", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "dst", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "src", "type": "address" }, - { "internalType": "address", "name": "dst", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "underlying", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/cUSDC.json b/libs/shared/contracts/src/abis/json/cUSDC.json deleted file mode 100644 index f930f2f16..000000000 --- a/libs/shared/contracts/src/abis/json/cUSDC.json +++ /dev/null @@ -1,621 +0,0 @@ -{ - "name": "cUSDC", - "address": "0x39aa39c021dfbae8fac545936693ac917d5e7563", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "spender", "type": "address" }, - { "name": "amount", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "repayAmount", "type": "uint256" }], - "name": "repayBorrow", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "reserveFactorMantissa", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "account", "type": "address" }], - "name": "borrowBalanceCurrent", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "exchangeRateStored", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "src", "type": "address" }, - { "name": "dst", "type": "address" }, - { "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "borrower", "type": "address" }, - { "name": "repayAmount", "type": "uint256" } - ], - "name": "repayBorrowBehalf", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "pendingAdmin", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "owner", "type": "address" }], - "name": "balanceOfUnderlying", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getCash", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "newComptroller", "type": "address" }], - "name": "_setComptroller", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalBorrows", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "comptroller", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "reduceAmount", "type": "uint256" }], - "name": "_reduceReserves", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "initialExchangeRateMantissa", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "accrualBlockNumber", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "underlying", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "owner", "type": "address" }], - "name": "balanceOf", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "totalBorrowsCurrent", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "redeemAmount", "type": "uint256" }], - "name": "redeemUnderlying", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalReserves", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "name": "", "type": "string" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "account", "type": "address" }], - "name": "borrowBalanceStored", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "mintAmount", "type": "uint256" }], - "name": "mint", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "accrueInterest", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "dst", "type": "address" }, - { "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "borrowIndex", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "supplyRatePerBlock", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "liquidator", "type": "address" }, - { "name": "borrower", "type": "address" }, - { "name": "seizeTokens", "type": "uint256" } - ], - "name": "seize", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "newPendingAdmin", "type": "address" }], - "name": "_setPendingAdmin", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "exchangeRateCurrent", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "account", "type": "address" }], - "name": "getAccountSnapshot", - "outputs": [ - { "name": "", "type": "uint256" }, - { "name": "", "type": "uint256" }, - { "name": "", "type": "uint256" }, - { "name": "", "type": "uint256" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "borrowAmount", "type": "uint256" }], - "name": "borrow", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "redeemTokens", "type": "uint256" }], - "name": "redeem", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "name": "owner", "type": "address" }, - { "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "_acceptAdmin", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "newInterestRateModel", "type": "address" }], - "name": "_setInterestRateModel", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "interestRateModel", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "borrower", "type": "address" }, - { "name": "repayAmount", "type": "uint256" }, - { "name": "cTokenCollateral", "type": "address" } - ], - "name": "liquidateBorrow", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "admin", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "borrowRatePerBlock", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "newReserveFactorMantissa", "type": "uint256" }], - "name": "_setReserveFactor", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isCToken", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "name": "underlying_", "type": "address" }, - { "name": "comptroller_", "type": "address" }, - { "name": "interestRateModel_", "type": "address" }, - { "name": "initialExchangeRateMantissa_", "type": "uint256" }, - { "name": "name_", "type": "string" }, - { "name": "symbol_", "type": "string" }, - { "name": "decimals_", "type": "uint256" } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "interestAccumulated", "type": "uint256" }, - { "indexed": false, "name": "borrowIndex", "type": "uint256" }, - { "indexed": false, "name": "totalBorrows", "type": "uint256" } - ], - "name": "AccrueInterest", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "minter", "type": "address" }, - { "indexed": false, "name": "mintAmount", "type": "uint256" }, - { "indexed": false, "name": "mintTokens", "type": "uint256" } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "redeemer", "type": "address" }, - { "indexed": false, "name": "redeemAmount", "type": "uint256" }, - { "indexed": false, "name": "redeemTokens", "type": "uint256" } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "borrower", "type": "address" }, - { "indexed": false, "name": "borrowAmount", "type": "uint256" }, - { "indexed": false, "name": "accountBorrows", "type": "uint256" }, - { "indexed": false, "name": "totalBorrows", "type": "uint256" } - ], - "name": "Borrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "payer", "type": "address" }, - { "indexed": false, "name": "borrower", "type": "address" }, - { "indexed": false, "name": "repayAmount", "type": "uint256" }, - { "indexed": false, "name": "accountBorrows", "type": "uint256" }, - { "indexed": false, "name": "totalBorrows", "type": "uint256" } - ], - "name": "RepayBorrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "liquidator", "type": "address" }, - { "indexed": false, "name": "borrower", "type": "address" }, - { "indexed": false, "name": "repayAmount", "type": "uint256" }, - { "indexed": false, "name": "cTokenCollateral", "type": "address" }, - { "indexed": false, "name": "seizeTokens", "type": "uint256" } - ], - "name": "LiquidateBorrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "oldPendingAdmin", "type": "address" }, - { "indexed": false, "name": "newPendingAdmin", "type": "address" } - ], - "name": "NewPendingAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "oldAdmin", "type": "address" }, - { "indexed": false, "name": "newAdmin", "type": "address" } - ], - "name": "NewAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "oldComptroller", "type": "address" }, - { "indexed": false, "name": "newComptroller", "type": "address" } - ], - "name": "NewComptroller", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "oldInterestRateModel", "type": "address" }, - { "indexed": false, "name": "newInterestRateModel", "type": "address" } - ], - "name": "NewMarketInterestRateModel", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "oldReserveFactorMantissa", - "type": "uint256" - }, - { - "indexed": false, - "name": "newReserveFactorMantissa", - "type": "uint256" - } - ], - "name": "NewReserveFactor", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "admin", "type": "address" }, - { "indexed": false, "name": "reduceAmount", "type": "uint256" }, - { "indexed": false, "name": "newTotalReserves", "type": "uint256" } - ], - "name": "ReservesReduced", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "error", "type": "uint256" }, - { "indexed": false, "name": "info", "type": "uint256" }, - { "indexed": false, "name": "detail", "type": "uint256" } - ], - "name": "Failure", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "from", "type": "address" }, - { "indexed": true, "name": "to", "type": "address" }, - { "indexed": false, "name": "amount", "type": "uint256" } - ], - "name": "Transfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "owner", "type": "address" }, - { "indexed": true, "name": "spender", "type": "address" }, - { "indexed": false, "name": "amount", "type": "uint256" } - ], - "name": "Approval", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/cUSDT.json b/libs/shared/contracts/src/abis/json/cUSDT.json deleted file mode 100644 index 6a07d8c70..000000000 --- a/libs/shared/contracts/src/abis/json/cUSDT.json +++ /dev/null @@ -1,1037 +0,0 @@ -{ - "name": "cUSDT", - "address": "0xf650c3d88d12db855b8bf7d11be6c55a4e07dcc9", - "abi": [ - { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, - { "inputs": [], "name": "AcceptAdminPendingAdminCheck", "type": "error" }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "actualAddAmount", - "type": "uint256" - } - ], - "name": "AddReservesFactorFreshCheck", - "type": "error" - }, - { "inputs": [], "name": "BorrowCashNotAvailable", "type": "error" }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "BorrowComptrollerRejection", - "type": "error" - }, - { "inputs": [], "name": "BorrowFreshnessCheck", "type": "error" }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "LiquidateAccrueBorrowInterestFailed", - "type": "error" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "LiquidateAccrueCollateralInterestFailed", - "type": "error" - }, - { "inputs": [], "name": "LiquidateCloseAmountIsUintMax", "type": "error" }, - { "inputs": [], "name": "LiquidateCloseAmountIsZero", "type": "error" }, - { - "inputs": [], - "name": "LiquidateCollateralFreshnessCheck", - "type": "error" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "LiquidateComptrollerRejection", - "type": "error" - }, - { "inputs": [], "name": "LiquidateFreshnessCheck", "type": "error" }, - { "inputs": [], "name": "LiquidateLiquidatorIsBorrower", "type": "error" }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "LiquidateRepayBorrowFreshFailed", - "type": "error" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "LiquidateSeizeComptrollerRejection", - "type": "error" - }, - { - "inputs": [], - "name": "LiquidateSeizeLiquidatorIsBorrower", - "type": "error" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "MintComptrollerRejection", - "type": "error" - }, - { "inputs": [], "name": "MintFreshnessCheck", "type": "error" }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "RedeemComptrollerRejection", - "type": "error" - }, - { "inputs": [], "name": "RedeemFreshnessCheck", "type": "error" }, - { "inputs": [], "name": "RedeemTransferOutNotPossible", "type": "error" }, - { "inputs": [], "name": "ReduceReservesAdminCheck", "type": "error" }, - { "inputs": [], "name": "ReduceReservesCashNotAvailable", "type": "error" }, - { "inputs": [], "name": "ReduceReservesCashValidation", "type": "error" }, - { "inputs": [], "name": "ReduceReservesFreshCheck", "type": "error" }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "RepayBorrowComptrollerRejection", - "type": "error" - }, - { "inputs": [], "name": "RepayBorrowFreshnessCheck", "type": "error" }, - { "inputs": [], "name": "SetComptrollerOwnerCheck", "type": "error" }, - { "inputs": [], "name": "SetInterestRateModelFreshCheck", "type": "error" }, - { "inputs": [], "name": "SetInterestRateModelOwnerCheck", "type": "error" }, - { "inputs": [], "name": "SetPendingAdminOwnerCheck", "type": "error" }, - { "inputs": [], "name": "SetReserveFactorAdminCheck", "type": "error" }, - { "inputs": [], "name": "SetReserveFactorBoundsCheck", "type": "error" }, - { "inputs": [], "name": "SetReserveFactorFreshCheck", "type": "error" }, - { - "inputs": [ - { "internalType": "uint256", "name": "errorCode", "type": "uint256" } - ], - "name": "TransferComptrollerRejection", - "type": "error" - }, - { "inputs": [], "name": "TransferNotAllowed", "type": "error" }, - { "inputs": [], "name": "TransferNotEnough", "type": "error" }, - { "inputs": [], "name": "TransferTooMuch", "type": "error" }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "cashPrior", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "interestAccumulated", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "borrowIndex", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - } - ], - "name": "AccrueInterest", - "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": "amount", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "borrowAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "accountBorrows", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - } - ], - "name": "Borrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "liquidator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "cTokenCollateral", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "seizeTokens", - "type": "uint256" - } - ], - "name": "LiquidateBorrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "minter", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "mintAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "mintTokens", - "type": "uint256" - } - ], - "name": "Mint", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldAdmin", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "NewAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract ComptrollerInterface", - "name": "oldComptroller", - "type": "address" - }, - { - "indexed": false, - "internalType": "contract ComptrollerInterface", - "name": "newComptroller", - "type": "address" - } - ], - "name": "NewComptroller", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "contract InterestRateModel", - "name": "oldInterestRateModel", - "type": "address" - }, - { - "indexed": false, - "internalType": "contract InterestRateModel", - "name": "newInterestRateModel", - "type": "address" - } - ], - "name": "NewMarketInterestRateModel", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldPendingAdmin", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newPendingAdmin", - "type": "address" - } - ], - "name": "NewPendingAdmin", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "oldReserveFactorMantissa", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newReserveFactorMantissa", - "type": "uint256" - } - ], - "name": "NewReserveFactor", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "redeemer", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "redeemAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "redeemTokens", - "type": "uint256" - } - ], - "name": "Redeem", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "payer", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "borrower", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "repayAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "accountBorrows", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalBorrows", - "type": "uint256" - } - ], - "name": "RepayBorrow", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "benefactor", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "addAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newTotalReserves", - "type": "uint256" - } - ], - "name": "ReservesAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "admin", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "reduceAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newTotalReserves", - "type": "uint256" - } - ], - "name": "ReservesReduced", - "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": "Transfer", - "type": "event" - }, - { - "inputs": [], - "name": "NO_ERROR", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "_acceptAdmin", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "addAmount", "type": "uint256" } - ], - "name": "_addReserves", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "bytes", "name": "data", "type": "bytes" }], - "name": "_becomeImplementation", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "compLikeDelegatee", - "type": "address" - } - ], - "name": "_delegateCompLikeTo", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "reduceAmount", "type": "uint256" } - ], - "name": "_reduceReserves", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "_resignImplementation", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract ComptrollerInterface", - "name": "newComptroller", - "type": "address" - } - ], - "name": "_setComptroller", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract InterestRateModel", - "name": "newInterestRateModel", - "type": "address" - } - ], - "name": "_setInterestRateModel", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address payable", - "name": "newPendingAdmin", - "type": "address" - } - ], - "name": "_setPendingAdmin", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "newReserveFactorMantissa", - "type": "uint256" - } - ], - "name": "_setReserveFactor", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "accrualBlockNumber", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accrueInterest", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "admin", - "outputs": [ - { "internalType": "address payable", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "balanceOfUnderlying", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "borrowAmount", "type": "uint256" } - ], - "name": "borrow", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "borrowBalanceCurrent", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "borrowBalanceStored", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "borrowIndex", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "borrowRatePerBlock", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "comptroller", - "outputs": [ - { - "internalType": "contract ComptrollerInterface", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "exchangeRateCurrent", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "exchangeRateStored", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "getAccountSnapshot", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getCash", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "implementation", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "underlying_", "type": "address" }, - { - "internalType": "contract ComptrollerInterface", - "name": "comptroller_", - "type": "address" - }, - { - "internalType": "contract InterestRateModel", - "name": "interestRateModel_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "initialExchangeRateMantissa_", - "type": "uint256" - }, - { "internalType": "string", "name": "name_", "type": "string" }, - { "internalType": "string", "name": "symbol_", "type": "string" }, - { "internalType": "uint8", "name": "decimals_", "type": "uint8" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract ComptrollerInterface", - "name": "comptroller_", - "type": "address" - }, - { - "internalType": "contract InterestRateModel", - "name": "interestRateModel_", - "type": "address" - }, - { - "internalType": "uint256", - "name": "initialExchangeRateMantissa_", - "type": "uint256" - }, - { "internalType": "string", "name": "name_", "type": "string" }, - { "internalType": "string", "name": "symbol_", "type": "string" }, - { "internalType": "uint8", "name": "decimals_", "type": "uint8" } - ], - "name": "initialize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "interestRateModel", - "outputs": [ - { - "internalType": "contract InterestRateModel", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "isCToken", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "borrower", "type": "address" }, - { "internalType": "uint256", "name": "repayAmount", "type": "uint256" }, - { - "internalType": "contract CTokenInterface", - "name": "cTokenCollateral", - "type": "address" - } - ], - "name": "liquidateBorrow", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "mintAmount", "type": "uint256" } - ], - "name": "mint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pendingAdmin", - "outputs": [ - { "internalType": "address payable", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "protocolSeizeShareMantissa", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "redeemTokens", "type": "uint256" } - ], - "name": "redeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "redeemAmount", "type": "uint256" } - ], - "name": "redeemUnderlying", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "repayAmount", "type": "uint256" } - ], - "name": "repayBorrow", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "borrower", "type": "address" }, - { "internalType": "uint256", "name": "repayAmount", "type": "uint256" } - ], - "name": "repayBorrowBehalf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "reserveFactorMantissa", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "liquidator", "type": "address" }, - { "internalType": "address", "name": "borrower", "type": "address" }, - { "internalType": "uint256", "name": "seizeTokens", "type": "uint256" } - ], - "name": "seize", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "supplyRatePerBlock", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract EIP20NonStandardInterface", - "name": "token", - "type": "address" - } - ], - "name": "sweepToken", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalBorrows", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalBorrowsCurrent", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "totalReserves", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "dst", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "src", "type": "address" }, - { "internalType": "address", "name": "dst", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "underlying", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/frxETH.json b/libs/shared/contracts/src/abis/json/frxETH.json deleted file mode 100644 index 3c125ed2c..000000000 --- a/libs/shared/contracts/src/abis/json/frxETH.json +++ /dev/null @@ -1,455 +0,0 @@ -{ - "name": "frxETH", - "address": "0x5E8422345238F34275888049021821E8E08CAa1f", - "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_creator_address", - "type": "address" - }, - { - "internalType": "address", - "name": "_timelock_address", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "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": "minter_address", - "type": "address" - } - ], - "name": "MinterAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "minter_address", - "type": "address" - } - ], - "name": "MinterRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "oldOwner", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnerChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "newOwner", - "type": "address" - } - ], - "name": "OwnerNominated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "timelock_address", - "type": "address" - } - ], - "name": "TimelockChanged", - "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": "TokenMinterBurned", - "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": "TokenMinterMinted", - "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" - }, - { - "inputs": [], - "name": "DOMAIN_SEPARATOR", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "acceptOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "minter_address", - "type": "address" - } - ], - "name": "addMinter", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "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" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "burn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "burnFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "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": "spender", "type": "address" }, - { "internalType": "uint256", "name": "addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "b_address", "type": "address" }, - { "internalType": "uint256", "name": "b_amount", "type": "uint256" } - ], - "name": "minter_burn_from", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "m_address", "type": "address" }, - { "internalType": "uint256", "name": "m_amount", "type": "uint256" } - ], - "name": "minter_mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "minters", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "name": "minters_array", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "_owner", "type": "address" } - ], - "name": "nominateNewOwner", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "nominatedOwner", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "nonces", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "permit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "minter_address", - "type": "address" - } - ], - "name": "removeMinter", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_timelock_address", - "type": "address" - } - ], - "name": "setTimelock", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "timelock_address", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "from", "type": "address" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/rETH.json b/libs/shared/contracts/src/abis/json/rETH.json deleted file mode 100644 index 99b41415a..000000000 --- a/libs/shared/contracts/src/abis/json/rETH.json +++ /dev/null @@ -1,336 +0,0 @@ -{ - "name": "rETH", - "address": "0xae78736cd615f374d3085123a210448e74fc6393", - "abi": [ - { - "inputs": [ - { - "internalType": "contract RocketStorageInterface", - "name": "_rocketStorageAddress", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "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": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "EtherDeposited", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "ethAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "TokensBurned", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "ethAmount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "time", - "type": "uint256" - } - ], - "name": "TokensMinted", - "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" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "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" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_rethAmount", "type": "uint256" } - ], - "name": "burn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "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": [], - "name": "depositExcess", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "depositExcessCollateral", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getCollateralRate", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_rethAmount", "type": "uint256" } - ], - "name": "getEthValue", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getExchangeRate", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_ethAmount", "type": "uint256" } - ], - "name": "getRethValue", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getTotalCollateral", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "_ethAmount", "type": "uint256" }, - { "internalType": "address", "name": "_to", "type": "address" } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "sender", "type": "address" }, - { "internalType": "address", "name": "recipient", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "version", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "view", - "type": "function" - }, - { "stateMutability": "payable", "type": "receive" } - ] -} diff --git a/libs/shared/contracts/src/abis/json/sfrxETH.json b/libs/shared/contracts/src/abis/json/sfrxETH.json deleted file mode 100644 index f1f826f66..000000000 --- a/libs/shared/contracts/src/abis/json/sfrxETH.json +++ /dev/null @@ -1,476 +0,0 @@ -{ - "name": "sfrxETH", - "address": "0xac3e018457b222d93114458476f3e3416abbe38f", - "abi": [ - { - "inputs": [ - { - "internalType": "contract ERC20", - "name": "_underlying", - "type": "address" - }, - { - "internalType": "uint32", - "name": "_rewardsCycleLength", - "type": "uint32" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { "inputs": [], "name": "SyncError", "type": "error" }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "assets", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "shares", - "type": "uint256" - } - ], - "name": "Deposit", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint32", - "name": "cycleEnd", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rewardAmount", - "type": "uint256" - } - ], - "name": "NewRewardsCycle", - "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": "Transfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "caller", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "assets", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "shares", - "type": "uint256" - } - ], - "name": "Withdraw", - "type": "event" - }, - { - "inputs": [], - "name": "DOMAIN_SEPARATOR", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "address", "name": "", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "asset", - "outputs": [ - { "internalType": "contract ERC20", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "balanceOf", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "convertToAssets", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "convertToShares", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" } - ], - "name": "deposit", - "outputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "bool", "name": "approveMax", "type": "bool" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "depositWithSignature", - "outputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "lastRewardAmount", - "outputs": [{ "internalType": "uint192", "name": "", "type": "uint192" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "lastSync", - "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "maxDeposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "maxMint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "maxRedeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "maxWithdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" } - ], - "name": "mint", - "outputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "nonces", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "permit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "previewDeposit", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "previewMint", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "name": "previewRedeem", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "name": "previewWithdraw", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "pricePerShare", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "redeem", - "outputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "rewardsCycleEnd", - "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rewardsCycleLength", - "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "syncRewards", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "totalAssets", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "from", "type": "address" }, - { "internalType": "address", "name": "to", "type": "address" }, - { "internalType": "uint256", "name": "amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "assets", "type": "uint256" }, - { "internalType": "address", "name": "receiver", "type": "address" }, - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "withdraw", - "outputs": [ - { "internalType": "uint256", "name": "shares", "type": "uint256" } - ], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/stETH.json b/libs/shared/contracts/src/abis/json/stETH.json deleted file mode 100644 index 5cf1502c9..000000000 --- a/libs/shared/contracts/src/abis/json/stETH.json +++ /dev/null @@ -1,908 +0,0 @@ -{ - "name": "stETH", - "address": "0xae7ab96520de3a18e5e111b5eaab095312d7fe84", - "abi": [ - { - "constant": false, - "inputs": [], - "name": "resume", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "name", - "outputs": [{ "name": "", "type": "string" }], - "payable": false, - "stateMutability": "pure", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "stop", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "hasInitialized", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_spender", "type": "address" }, - { "name": "_amount", "type": "uint256" } - ], - "name": "approve", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "STAKING_CONTROL_ROLE", - "outputs": [{ "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "_ethAmount", "type": "uint256" }], - "name": "getSharesByPooledEth", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isStakingPaused", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_sender", "type": "address" }, - { "name": "_recipient", "type": "address" }, - { "name": "_amount", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "_script", "type": "bytes" }], - "name": "getEVMScriptExecutor", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_maxStakeLimit", "type": "uint256" }, - { "name": "_stakeLimitIncreasePerBlock", "type": "uint256" } - ], - "name": "setStakingLimit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "RESUME_ROLE", - "outputs": [{ "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_lidoLocator", "type": "address" }, - { "name": "_eip712StETH", "type": "address" } - ], - "name": "finalizeUpgrade_v2", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [{ "name": "", "type": "uint8" }], - "payable": false, - "stateMutability": "pure", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getRecoveryVault", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "DOMAIN_SEPARATOR", - "outputs": [{ "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getTotalPooledEther", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_newDepositedValidators", "type": "uint256" }], - "name": "unsafeChangeDepositedValidators", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "PAUSE_ROLE", - "outputs": [{ "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_spender", "type": "address" }, - { "name": "_addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getTreasury", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isStopped", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getBufferedEther", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_lidoLocator", "type": "address" }, - { "name": "_eip712StETH", "type": "address" } - ], - "name": "initialize", - "outputs": [], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "receiveELRewards", - "outputs": [], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getWithdrawalCredentials", - "outputs": [{ "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getCurrentStakeLimit", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getStakeLimitFullInfo", - "outputs": [ - { "name": "isStakingPaused", "type": "bool" }, - { "name": "isStakingLimitSet", "type": "bool" }, - { "name": "currentStakeLimit", "type": "uint256" }, - { "name": "maxStakeLimit", "type": "uint256" }, - { "name": "maxStakeLimitGrowthBlocks", "type": "uint256" }, - { "name": "prevStakeLimit", "type": "uint256" }, - { "name": "prevStakeBlockNumber", "type": "uint256" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_sender", "type": "address" }, - { "name": "_recipient", "type": "address" }, - { "name": "_sharesAmount", "type": "uint256" } - ], - "name": "transferSharesFrom", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "_account", "type": "address" }], - "name": "balanceOf", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "resumeStaking", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getFeeDistribution", - "outputs": [ - { "name": "treasuryFeeBasisPoints", "type": "uint16" }, - { "name": "insuranceFeeBasisPoints", "type": "uint16" }, - { "name": "operatorsFeeBasisPoints", "type": "uint16" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "receiveWithdrawals", - "outputs": [], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "_sharesAmount", "type": "uint256" }], - "name": "getPooledEthByShares", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "token", "type": "address" }], - "name": "allowRecoverability", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "owner", "type": "address" }], - "name": "nonces", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "appId", - "outputs": [{ "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getOracle", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "eip712Domain", - "outputs": [ - { "name": "name", "type": "string" }, - { "name": "version", "type": "string" }, - { "name": "chainId", "type": "uint256" }, - { "name": "verifyingContract", "type": "address" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getContractVersion", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getInitializationBlock", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_recipient", "type": "address" }, - { "name": "_sharesAmount", "type": "uint256" } - ], - "name": "transferShares", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "symbol", - "outputs": [{ "name": "", "type": "string" }], - "payable": false, - "stateMutability": "pure", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getEIP712StETH", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "", "type": "address" }], - "name": "transferToVault", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "name": "_sender", "type": "address" }, - { "name": "_role", "type": "bytes32" }, - { "name": "_params", "type": "uint256[]" } - ], - "name": "canPerform", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [{ "name": "_referral", "type": "address" }], - "name": "submit", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": true, - "stateMutability": "payable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_spender", "type": "address" }, - { "name": "_subtractedValue", "type": "uint256" } - ], - "name": "decreaseAllowance", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getEVMScriptRegistry", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_recipient", "type": "address" }, - { "name": "_amount", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_maxDepositsCount", "type": "uint256" }, - { "name": "_stakingModuleId", "type": "uint256" }, - { "name": "_depositCalldata", "type": "bytes" } - ], - "name": "deposit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "UNSAFE_CHANGE_DEPOSITED_VALIDATORS_ROLE", - "outputs": [{ "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getBeaconStat", - "outputs": [ - { "name": "depositedValidators", "type": "uint256" }, - { "name": "beaconValidators", "type": "uint256" }, - { "name": "beaconBalance", "type": "uint256" } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "removeStakingLimit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_reportTimestamp", "type": "uint256" }, - { "name": "_timeElapsed", "type": "uint256" }, - { "name": "_clValidators", "type": "uint256" }, - { "name": "_clBalance", "type": "uint256" }, - { "name": "_withdrawalVaultBalance", "type": "uint256" }, - { "name": "_elRewardsVaultBalance", "type": "uint256" }, - { "name": "_sharesRequestedToBurn", "type": "uint256" }, - { "name": "_withdrawalFinalizationBatches", "type": "uint256[]" }, - { "name": "_simulatedShareRate", "type": "uint256" } - ], - "name": "handleOracleReport", - "outputs": [{ "name": "postRebaseAmounts", "type": "uint256[4]" }], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getFee", - "outputs": [{ "name": "totalFee", "type": "uint16" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "kernel", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getTotalShares", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { "name": "_owner", "type": "address" }, - { "name": "_spender", "type": "address" }, - { "name": "_value", "type": "uint256" }, - { "name": "_deadline", "type": "uint256" }, - { "name": "_v", "type": "uint8" }, - { "name": "_r", "type": "bytes32" }, - { "name": "_s", "type": "bytes32" } - ], - "name": "permit", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { "name": "_owner", "type": "address" }, - { "name": "_spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "isPetrified", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getLidoLocator", - "outputs": [{ "name": "", "type": "address" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "canDeposit", - "outputs": [{ "name": "", "type": "bool" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "STAKING_PAUSE_ROLE", - "outputs": [{ "name": "", "type": "bytes32" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getDepositableEther", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [{ "name": "_account", "type": "address" }], - "name": "sharesOf", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [], - "name": "pauseStaking", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getTotalELRewardsCollected", - "outputs": [{ "name": "", "type": "uint256" }], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { "payable": true, "stateMutability": "payable", "type": "fallback" }, - { - "anonymous": false, - "inputs": [], - "name": "StakingPaused", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "StakingResumed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "maxStakeLimit", "type": "uint256" }, - { - "indexed": false, - "name": "stakeLimitIncreasePerBlock", - "type": "uint256" - } - ], - "name": "StakingLimitSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [], - "name": "StakingLimitRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "reportTimestamp", "type": "uint256" }, - { "indexed": false, "name": "preCLValidators", "type": "uint256" }, - { "indexed": false, "name": "postCLValidators", "type": "uint256" } - ], - "name": "CLValidatorsUpdated", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "depositedValidators", "type": "uint256" } - ], - "name": "DepositedValidatorsChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "reportTimestamp", "type": "uint256" }, - { "indexed": false, "name": "preCLBalance", "type": "uint256" }, - { "indexed": false, "name": "postCLBalance", "type": "uint256" }, - { "indexed": false, "name": "withdrawalsWithdrawn", "type": "uint256" }, - { - "indexed": false, - "name": "executionLayerRewardsWithdrawn", - "type": "uint256" - }, - { "indexed": false, "name": "postBufferedEther", "type": "uint256" } - ], - "name": "ETHDistributed", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "reportTimestamp", "type": "uint256" }, - { "indexed": false, "name": "timeElapsed", "type": "uint256" }, - { "indexed": false, "name": "preTotalShares", "type": "uint256" }, - { "indexed": false, "name": "preTotalEther", "type": "uint256" }, - { "indexed": false, "name": "postTotalShares", "type": "uint256" }, - { "indexed": false, "name": "postTotalEther", "type": "uint256" }, - { "indexed": false, "name": "sharesMintedAsFees", "type": "uint256" } - ], - "name": "TokenRebased", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "lidoLocator", "type": "address" } - ], - "name": "LidoLocatorSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "name": "amount", "type": "uint256" }], - "name": "ELRewardsReceived", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "name": "amount", "type": "uint256" }], - "name": "WithdrawalsReceived", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "sender", "type": "address" }, - { "indexed": false, "name": "amount", "type": "uint256" }, - { "indexed": false, "name": "referral", "type": "address" } - ], - "name": "Submitted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "name": "amount", "type": "uint256" }], - "name": "Unbuffered", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "executor", "type": "address" }, - { "indexed": false, "name": "script", "type": "bytes" }, - { "indexed": false, "name": "input", "type": "bytes" }, - { "indexed": false, "name": "returnData", "type": "bytes" } - ], - "name": "ScriptResult", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "vault", "type": "address" }, - { "indexed": true, "name": "token", "type": "address" }, - { "indexed": false, "name": "amount", "type": "uint256" } - ], - "name": "RecoverToVault", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": false, "name": "eip712StETH", "type": "address" } - ], - "name": "EIP712StETHInitialized", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "from", "type": "address" }, - { "indexed": true, "name": "to", "type": "address" }, - { "indexed": false, "name": "sharesValue", "type": "uint256" } - ], - "name": "TransferShares", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "account", "type": "address" }, - { "indexed": false, "name": "preRebaseTokenAmount", "type": "uint256" }, - { - "indexed": false, - "name": "postRebaseTokenAmount", - "type": "uint256" - }, - { "indexed": false, "name": "sharesAmount", "type": "uint256" } - ], - "name": "SharesBurnt", - "type": "event" - }, - { "anonymous": false, "inputs": [], "name": "Stopped", "type": "event" }, - { "anonymous": false, "inputs": [], "name": "Resumed", "type": "event" }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "from", "type": "address" }, - { "indexed": true, "name": "to", "type": "address" }, - { "indexed": false, "name": "value", "type": "uint256" } - ], - "name": "Transfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { "indexed": true, "name": "owner", "type": "address" }, - { "indexed": true, "name": "spender", "type": "address" }, - { "indexed": false, "name": "value", "type": "uint256" } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [{ "indexed": false, "name": "version", "type": "uint256" }], - "name": "ContractVersionSet", - "type": "event" - } - ] -} diff --git a/libs/shared/contracts/src/abis/json/veOGV.json b/libs/shared/contracts/src/abis/json/veOGV.json deleted file mode 100644 index 7459608da..000000000 --- a/libs/shared/contracts/src/abis/json/veOGV.json +++ /dev/null @@ -1,596 +0,0 @@ -{ - "name": "veOGV", - "address": "0x0C4576Ca1c365868E162554AF8e385dc3e7C66D9", - "abi": [ - { - "inputs": [ - { "internalType": "address", "name": "ogv_", "type": "address" }, - { "internalType": "uint256", "name": "epoch_", "type": "uint256" }, - { - "internalType": "uint256", - "name": "minStakeDuration_", - "type": "uint256" - }, - { - "internalType": "address", - "name": "rewardsSource_", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [{ "internalType": "uint256", "name": "x", "type": "uint256" }], - "name": "PRBMathUD60x18__Exp2InputTooBig", - "type": "error" - }, - { - "inputs": [{ "internalType": "uint256", "name": "x", "type": "uint256" }], - "name": "PRBMathUD60x18__LogInputTooSmall", - "type": "error" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "prod1", "type": "uint256" } - ], - "name": "PRBMath__MulDivFixedPointOverflow", - "type": "error" - }, - { - "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": "delegator", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "fromDelegate", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "toDelegate", - "type": "address" - } - ], - "name": "DelegateChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "delegate", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "previousBalance", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "newBalance", - "type": "uint256" - } - ], - "name": "DelegateVotesChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "Reward", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "lockupId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "end", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "points", - "type": "uint256" - } - ], - "name": "Stake", - "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": "lockupId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "end", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "points", - "type": "uint256" - } - ], - "name": "Unstake", - "type": "event" - }, - { - "inputs": [], - "name": "DOMAIN_SEPARATOR", - "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "accRewardPerShare", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" } - ], - "name": "allowance", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "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" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "uint32", "name": "pos", "type": "uint32" } - ], - "name": "checkpoints", - "outputs": [ - { - "components": [ - { "internalType": "uint32", "name": "fromBlock", "type": "uint32" }, - { "internalType": "uint224", "name": "votes", "type": "uint224" } - ], - "internalType": "struct ERC20Votes.Checkpoint", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "collectRewards", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [{ "internalType": "uint8", "name": "", "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": "delegatee", "type": "address" } - ], - "name": "delegate", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "delegatee", "type": "address" }, - { "internalType": "uint256", "name": "nonce", "type": "uint256" }, - { "internalType": "uint256", "name": "expiry", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "delegateBySig", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "delegates", - "outputs": [{ "internalType": "address", "name": "", "type": "address" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "epoch", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "lockupId", "type": "uint256" }, - { "internalType": "uint256", "name": "duration", "type": "uint256" } - ], - "name": "extend", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "blockNumber", "type": "uint256" } - ], - "name": "getPastTotalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" }, - { "internalType": "uint256", "name": "blockNumber", "type": "uint256" } - ], - "name": "getPastVotes", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "getVotes", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "hasDelegationSet", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "addedValue", "type": "uint256" } - ], - "name": "increaseAllowance", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "name": "lockups", - "outputs": [ - { "internalType": "uint128", "name": "amount", "type": "uint128" }, - { "internalType": "uint128", "name": "end", "type": "uint128" }, - { "internalType": "uint256", "name": "points", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "minStakeDuration", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" } - ], - "name": "nonces", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "account", "type": "address" } - ], - "name": "numCheckpoints", - "outputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "ogv", - "outputs": [ - { "internalType": "contract ERC20", "name": "", "type": "address" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "owner", "type": "address" }, - { "internalType": "address", "name": "spender", "type": "address" }, - { "internalType": "uint256", "name": "value", "type": "uint256" }, - { "internalType": "uint256", "name": "deadline", "type": "uint256" }, - { "internalType": "uint8", "name": "v", "type": "uint8" }, - { "internalType": "bytes32", "name": "r", "type": "bytes32" }, - { "internalType": "bytes32", "name": "s", "type": "bytes32" } - ], - "name": "permit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "duration", "type": "uint256" } - ], - "name": "previewPoints", - "outputs": [ - { "internalType": "uint256", "name": "", "type": "uint256" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "user", "type": "address" } - ], - "name": "previewRewards", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [{ "internalType": "address", "name": "", "type": "address" }], - "name": "rewardDebtPerShare", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "rewardsSource", - "outputs": [ - { - "internalType": "contract RewardsSource", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "duration", "type": "uint256" }, - { "internalType": "address", "name": "to", "type": "address" } - ], - "name": "stake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "amount", "type": "uint256" }, - { "internalType": "uint256", "name": "duration", "type": "uint256" } - ], - "name": "stake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [{ "internalType": "string", "name": "", "type": "string" }], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "name": "transfer", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "address", "name": "", "type": "address" }, - { "internalType": "uint256", "name": "", "type": "uint256" } - ], - "name": "transferFrom", - "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { "internalType": "uint256", "name": "lockupId", "type": "uint256" } - ], - "name": "unstake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] -} diff --git a/libs/shared/contracts/src/abis/rETH.ts b/libs/shared/contracts/src/abis/rETH.ts deleted file mode 100644 index 203333bbd..000000000 --- a/libs/shared/contracts/src/abis/rETH.ts +++ /dev/null @@ -1,296 +0,0 @@ -// DO NOT EDIT - GENERATED -export const rETHABI = [ - { - inputs: [ - { - internalType: 'contract RocketStorageInterface', - name: '_rocketStorageAddress', - type: 'address', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - 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: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'time', - type: 'uint256', - }, - ], - name: 'EtherDeposited', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'from', type: 'address' }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'ethAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'time', - type: 'uint256', - }, - ], - name: 'TokensBurned', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'to', type: 'address' }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'ethAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'time', - type: 'uint256', - }, - ], - name: 'TokensMinted', - 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', - }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', 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' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_rethAmount', type: 'uint256' }], - name: 'burn', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', 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: [], - name: 'depositExcess', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [], - name: 'depositExcessCollateral', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'getCollateralRate', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_rethAmount', type: 'uint256' }], - name: 'getEthValue', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getExchangeRate', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: '_ethAmount', type: 'uint256' }], - name: 'getRethValue', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'getTotalCollateral', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'addedValue', type: 'uint256' }, - ], - name: 'increaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: '_ethAmount', type: 'uint256' }, - { internalType: 'address', name: '_to', type: 'address' }, - ], - name: 'mint', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'sender', type: 'address' }, - { internalType: 'address', name: 'recipient', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'version', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - stateMutability: 'view', - type: 'function', - }, - { stateMutability: 'payable', type: 'receive' }, -] as const; diff --git a/libs/shared/contracts/src/abis/sfrxETH.ts b/libs/shared/contracts/src/abis/sfrxETH.ts deleted file mode 100644 index b8da87e3a..000000000 --- a/libs/shared/contracts/src/abis/sfrxETH.ts +++ /dev/null @@ -1,427 +0,0 @@ -// DO NOT EDIT - GENERATED -export const sfrxETHABI = [ - { - inputs: [ - { internalType: 'contract ERC20', name: '_underlying', type: 'address' }, - { internalType: 'uint32', name: '_rewardsCycleLength', type: 'uint32' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { inputs: [], name: 'SyncError', type: 'error' }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'caller', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'assets', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'shares', - type: 'uint256', - }, - ], - name: 'Deposit', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'uint32', - name: 'cycleEnd', - type: 'uint32', - }, - { - indexed: false, - internalType: 'uint256', - name: 'rewardAmount', - type: 'uint256', - }, - ], - name: 'NewRewardsCycle', - 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: 'Transfer', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'caller', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'receiver', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'assets', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'shares', - type: 'uint256', - }, - ], - name: 'Withdraw', - type: 'event', - }, - { - inputs: [], - name: 'DOMAIN_SEPARATOR', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '', type: 'address' }, - { internalType: 'address', name: '', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'asset', - outputs: [{ internalType: 'contract ERC20', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'balanceOf', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - name: 'convertToAssets', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - name: 'convertToShares', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'assets', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - ], - name: 'deposit', - outputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'assets', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'bool', name: 'approveMax', type: 'bool' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'depositWithSignature', - outputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'lastRewardAmount', - outputs: [{ internalType: 'uint192', name: '', type: 'uint192' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'lastSync', - outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'maxDeposit', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'maxMint', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'maxRedeem', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'maxWithdraw', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'shares', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - ], - name: 'mint', - outputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'nonces', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'permit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - name: 'previewDeposit', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - name: 'previewMint', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - name: 'previewRedeem', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - name: 'previewWithdraw', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'pricePerShare', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'shares', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - { internalType: 'address', name: 'owner', type: 'address' }, - ], - name: 'redeem', - outputs: [{ internalType: 'uint256', name: 'assets', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'rewardsCycleEnd', - outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rewardsCycleLength', - outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'syncRewards', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'totalAssets', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'from', type: 'address' }, - { internalType: 'address', name: 'to', type: 'address' }, - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'assets', type: 'uint256' }, - { internalType: 'address', name: 'receiver', type: 'address' }, - { internalType: 'address', name: 'owner', type: 'address' }, - ], - name: 'withdraw', - outputs: [{ internalType: 'uint256', name: 'shares', type: 'uint256' }], - stateMutability: 'nonpayable', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/stETH.ts b/libs/shared/contracts/src/abis/stETH.ts deleted file mode 100644 index a613a5107..000000000 --- a/libs/shared/contracts/src/abis/stETH.ts +++ /dev/null @@ -1,876 +0,0 @@ -// DO NOT EDIT - GENERATED -export const stETHABI = [ - { - constant: false, - inputs: [], - name: 'resume', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'name', - outputs: [{ name: '', type: 'string' }], - payable: false, - stateMutability: 'pure', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'stop', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'hasInitialized', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_spender', type: 'address' }, - { name: '_amount', type: 'uint256' }, - ], - name: 'approve', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'STAKING_CONTROL_ROLE', - outputs: [{ name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ name: '_ethAmount', type: 'uint256' }], - name: 'getSharesByPooledEth', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'isStakingPaused', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_sender', type: 'address' }, - { name: '_recipient', type: 'address' }, - { name: '_amount', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ name: '_script', type: 'bytes' }], - name: 'getEVMScriptExecutor', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_maxStakeLimit', type: 'uint256' }, - { name: '_stakeLimitIncreasePerBlock', type: 'uint256' }, - ], - name: 'setStakingLimit', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'RESUME_ROLE', - outputs: [{ name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_lidoLocator', type: 'address' }, - { name: '_eip712StETH', type: 'address' }, - ], - name: 'finalizeUpgrade_v2', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [{ name: '', type: 'uint8' }], - payable: false, - stateMutability: 'pure', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getRecoveryVault', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'DOMAIN_SEPARATOR', - outputs: [{ name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getTotalPooledEther', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '_newDepositedValidators', type: 'uint256' }], - name: 'unsafeChangeDepositedValidators', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'PAUSE_ROLE', - outputs: [{ name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_spender', type: 'address' }, - { name: '_addedValue', type: 'uint256' }, - ], - name: 'increaseAllowance', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getTreasury', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'isStopped', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getBufferedEther', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_lidoLocator', type: 'address' }, - { name: '_eip712StETH', type: 'address' }, - ], - name: 'initialize', - outputs: [], - payable: true, - stateMutability: 'payable', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'receiveELRewards', - outputs: [], - payable: true, - stateMutability: 'payable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getWithdrawalCredentials', - outputs: [{ name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getCurrentStakeLimit', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getStakeLimitFullInfo', - outputs: [ - { name: 'isStakingPaused', type: 'bool' }, - { name: 'isStakingLimitSet', type: 'bool' }, - { name: 'currentStakeLimit', type: 'uint256' }, - { name: 'maxStakeLimit', type: 'uint256' }, - { name: 'maxStakeLimitGrowthBlocks', type: 'uint256' }, - { name: 'prevStakeLimit', type: 'uint256' }, - { name: 'prevStakeBlockNumber', type: 'uint256' }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_sender', type: 'address' }, - { name: '_recipient', type: 'address' }, - { name: '_sharesAmount', type: 'uint256' }, - ], - name: 'transferSharesFrom', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [{ name: '_account', type: 'address' }], - name: 'balanceOf', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'resumeStaking', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getFeeDistribution', - outputs: [ - { name: 'treasuryFeeBasisPoints', type: 'uint16' }, - { name: 'insuranceFeeBasisPoints', type: 'uint16' }, - { name: 'operatorsFeeBasisPoints', type: 'uint16' }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'receiveWithdrawals', - outputs: [], - payable: true, - stateMutability: 'payable', - type: 'function', - }, - { - constant: true, - inputs: [{ name: '_sharesAmount', type: 'uint256' }], - name: 'getPooledEthByShares', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ name: 'token', type: 'address' }], - name: 'allowRecoverability', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ name: 'owner', type: 'address' }], - name: 'nonces', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'appId', - outputs: [{ name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getOracle', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'eip712Domain', - outputs: [ - { name: 'name', type: 'string' }, - { name: 'version', type: 'string' }, - { name: 'chainId', type: 'uint256' }, - { name: 'verifyingContract', type: 'address' }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getContractVersion', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getInitializationBlock', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_recipient', type: 'address' }, - { name: '_sharesAmount', type: 'uint256' }, - ], - name: 'transferShares', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [{ name: '', type: 'string' }], - payable: false, - stateMutability: 'pure', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getEIP712StETH', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '', type: 'address' }], - name: 'transferToVault', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { name: '_sender', type: 'address' }, - { name: '_role', type: 'bytes32' }, - { name: '_params', type: 'uint256[]' }, - ], - name: 'canPerform', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [{ name: '_referral', type: 'address' }], - name: 'submit', - outputs: [{ name: '', type: 'uint256' }], - payable: true, - stateMutability: 'payable', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_spender', type: 'address' }, - { name: '_subtractedValue', type: 'uint256' }, - ], - name: 'decreaseAllowance', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getEVMScriptRegistry', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_recipient', type: 'address' }, - { name: '_amount', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_maxDepositsCount', type: 'uint256' }, - { name: '_stakingModuleId', type: 'uint256' }, - { name: '_depositCalldata', type: 'bytes' }, - ], - name: 'deposit', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'UNSAFE_CHANGE_DEPOSITED_VALIDATORS_ROLE', - outputs: [{ name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getBeaconStat', - outputs: [ - { name: 'depositedValidators', type: 'uint256' }, - { name: 'beaconValidators', type: 'uint256' }, - { name: 'beaconBalance', type: 'uint256' }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'removeStakingLimit', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_reportTimestamp', type: 'uint256' }, - { name: '_timeElapsed', type: 'uint256' }, - { name: '_clValidators', type: 'uint256' }, - { name: '_clBalance', type: 'uint256' }, - { name: '_withdrawalVaultBalance', type: 'uint256' }, - { name: '_elRewardsVaultBalance', type: 'uint256' }, - { name: '_sharesRequestedToBurn', type: 'uint256' }, - { name: '_withdrawalFinalizationBatches', type: 'uint256[]' }, - { name: '_simulatedShareRate', type: 'uint256' }, - ], - name: 'handleOracleReport', - outputs: [{ name: 'postRebaseAmounts', type: 'uint256[4]' }], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getFee', - outputs: [{ name: 'totalFee', type: 'uint16' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'kernel', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getTotalShares', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { name: '_owner', type: 'address' }, - { name: '_spender', type: 'address' }, - { name: '_value', type: 'uint256' }, - { name: '_deadline', type: 'uint256' }, - { name: '_v', type: 'uint8' }, - { name: '_r', type: 'bytes32' }, - { name: '_s', type: 'bytes32' }, - ], - name: 'permit', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { name: '_owner', type: 'address' }, - { name: '_spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'isPetrified', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getLidoLocator', - outputs: [{ name: '', type: 'address' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'canDeposit', - outputs: [{ name: '', type: 'bool' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'STAKING_PAUSE_ROLE', - outputs: [{ name: '', type: 'bytes32' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getDepositableEther', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [{ name: '_account', type: 'address' }], - name: 'sharesOf', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [], - name: 'pauseStaking', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getTotalELRewardsCollected', - outputs: [{ name: '', type: 'uint256' }], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { payable: true, stateMutability: 'payable', type: 'fallback' }, - { anonymous: false, inputs: [], name: 'StakingPaused', type: 'event' }, - { anonymous: false, inputs: [], name: 'StakingResumed', type: 'event' }, - { - anonymous: false, - inputs: [ - { indexed: false, name: 'maxStakeLimit', type: 'uint256' }, - { indexed: false, name: 'stakeLimitIncreasePerBlock', type: 'uint256' }, - ], - name: 'StakingLimitSet', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'StakingLimitRemoved', type: 'event' }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'reportTimestamp', type: 'uint256' }, - { indexed: false, name: 'preCLValidators', type: 'uint256' }, - { indexed: false, name: 'postCLValidators', type: 'uint256' }, - ], - name: 'CLValidatorsUpdated', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: 'depositedValidators', type: 'uint256' }], - name: 'DepositedValidatorsChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'reportTimestamp', type: 'uint256' }, - { indexed: false, name: 'preCLBalance', type: 'uint256' }, - { indexed: false, name: 'postCLBalance', type: 'uint256' }, - { indexed: false, name: 'withdrawalsWithdrawn', type: 'uint256' }, - { - indexed: false, - name: 'executionLayerRewardsWithdrawn', - type: 'uint256', - }, - { indexed: false, name: 'postBufferedEther', type: 'uint256' }, - ], - name: 'ETHDistributed', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'reportTimestamp', type: 'uint256' }, - { indexed: false, name: 'timeElapsed', type: 'uint256' }, - { indexed: false, name: 'preTotalShares', type: 'uint256' }, - { indexed: false, name: 'preTotalEther', type: 'uint256' }, - { indexed: false, name: 'postTotalShares', type: 'uint256' }, - { indexed: false, name: 'postTotalEther', type: 'uint256' }, - { indexed: false, name: 'sharesMintedAsFees', type: 'uint256' }, - ], - name: 'TokenRebased', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: 'lidoLocator', type: 'address' }], - name: 'LidoLocatorSet', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: 'amount', type: 'uint256' }], - name: 'ELRewardsReceived', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: 'amount', type: 'uint256' }], - name: 'WithdrawalsReceived', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'sender', type: 'address' }, - { indexed: false, name: 'amount', type: 'uint256' }, - { indexed: false, name: 'referral', type: 'address' }, - ], - name: 'Submitted', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: 'amount', type: 'uint256' }], - name: 'Unbuffered', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'executor', type: 'address' }, - { indexed: false, name: 'script', type: 'bytes' }, - { indexed: false, name: 'input', type: 'bytes' }, - { indexed: false, name: 'returnData', type: 'bytes' }, - ], - name: 'ScriptResult', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'vault', type: 'address' }, - { indexed: true, name: 'token', type: 'address' }, - { indexed: false, name: 'amount', type: 'uint256' }, - ], - name: 'RecoverToVault', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: 'eip712StETH', type: 'address' }], - name: 'EIP712StETHInitialized', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'from', type: 'address' }, - { indexed: true, name: 'to', type: 'address' }, - { indexed: false, name: 'sharesValue', type: 'uint256' }, - ], - name: 'TransferShares', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'account', type: 'address' }, - { indexed: false, name: 'preRebaseTokenAmount', type: 'uint256' }, - { indexed: false, name: 'postRebaseTokenAmount', type: 'uint256' }, - { indexed: false, name: 'sharesAmount', type: 'uint256' }, - ], - name: 'SharesBurnt', - type: 'event', - }, - { anonymous: false, inputs: [], name: 'Stopped', type: 'event' }, - { anonymous: false, inputs: [], name: 'Resumed', type: 'event' }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'from', type: 'address' }, - { indexed: true, name: 'to', type: 'address' }, - { indexed: false, name: 'value', type: 'uint256' }, - ], - name: 'Transfer', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, name: 'owner', type: 'address' }, - { indexed: true, name: 'spender', type: 'address' }, - { indexed: false, name: 'value', type: 'uint256' }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [{ indexed: false, name: 'version', type: 'uint256' }], - name: 'ContractVersionSet', - type: 'event', - }, -] as const; diff --git a/libs/shared/contracts/src/abis/veOGV.ts b/libs/shared/contracts/src/abis/veOGV.ts deleted file mode 100644 index a2b639598..000000000 --- a/libs/shared/contracts/src/abis/veOGV.ts +++ /dev/null @@ -1,520 +0,0 @@ -// DO NOT EDIT - GENERATED -export const veOGVABI = [ - { - inputs: [ - { internalType: 'address', name: 'ogv_', type: 'address' }, - { internalType: 'uint256', name: 'epoch_', type: 'uint256' }, - { internalType: 'uint256', name: 'minStakeDuration_', type: 'uint256' }, - { internalType: 'address', name: 'rewardsSource_', type: 'address' }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [{ internalType: 'uint256', name: 'x', type: 'uint256' }], - name: 'PRBMathUD60x18__Exp2InputTooBig', - type: 'error', - }, - { - inputs: [{ internalType: 'uint256', name: 'x', type: 'uint256' }], - name: 'PRBMathUD60x18__LogInputTooSmall', - type: 'error', - }, - { - inputs: [{ internalType: 'uint256', name: 'prod1', type: 'uint256' }], - name: 'PRBMath__MulDivFixedPointOverflow', - type: 'error', - }, - { - 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: 'delegator', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'fromDelegate', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'toDelegate', - type: 'address', - }, - ], - name: 'DelegateChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'delegate', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'previousBalance', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'newBalance', - type: 'uint256', - }, - ], - name: 'DelegateVotesChanged', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'user', type: 'address' }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'Reward', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { indexed: true, internalType: 'address', name: 'user', type: 'address' }, - { - indexed: false, - internalType: 'uint256', - name: 'lockupId', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { indexed: false, internalType: 'uint256', name: 'end', type: 'uint256' }, - { - indexed: false, - internalType: 'uint256', - name: 'points', - type: 'uint256', - }, - ], - name: 'Stake', - 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: 'lockupId', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { indexed: false, internalType: 'uint256', name: 'end', type: 'uint256' }, - { - indexed: false, - internalType: 'uint256', - name: 'points', - type: 'uint256', - }, - ], - name: 'Unstake', - type: 'event', - }, - { - inputs: [], - name: 'DOMAIN_SEPARATOR', - outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'accRewardPerShare', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - ], - name: 'allowance', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', 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' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'account', type: 'address' }, - { internalType: 'uint32', name: 'pos', type: 'uint32' }, - ], - name: 'checkpoints', - outputs: [ - { - components: [ - { internalType: 'uint32', name: 'fromBlock', type: 'uint32' }, - { internalType: 'uint224', name: 'votes', type: 'uint224' }, - ], - internalType: 'struct ERC20Votes.Checkpoint', - name: '', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'collectRewards', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'decimals', - outputs: [{ internalType: 'uint8', name: '', 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: 'delegatee', type: 'address' }], - name: 'delegate', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'delegatee', type: 'address' }, - { internalType: 'uint256', name: 'nonce', type: 'uint256' }, - { internalType: 'uint256', name: 'expiry', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'delegateBySig', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'delegates', - outputs: [{ internalType: 'address', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'epoch', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'lockupId', type: 'uint256' }, - { internalType: 'uint256', name: 'duration', type: 'uint256' }, - ], - name: 'extend', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'blockNumber', type: 'uint256' }], - name: 'getPastTotalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'account', type: 'address' }, - { internalType: 'uint256', name: 'blockNumber', type: 'uint256' }, - ], - name: 'getPastVotes', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'getVotes', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'hasDelegationSet', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'addedValue', type: 'uint256' }, - ], - name: 'increaseAllowance', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '', type: 'address' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - ], - name: 'lockups', - outputs: [ - { internalType: 'uint128', name: 'amount', type: 'uint128' }, - { internalType: 'uint128', name: 'end', type: 'uint128' }, - { internalType: 'uint256', name: 'points', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'minStakeDuration', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'owner', type: 'address' }], - name: 'nonces', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'account', type: 'address' }], - name: 'numCheckpoints', - outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'ogv', - outputs: [{ internalType: 'contract ERC20', name: '', type: 'address' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: 'owner', type: 'address' }, - { internalType: 'address', name: 'spender', type: 'address' }, - { internalType: 'uint256', name: 'value', type: 'uint256' }, - { internalType: 'uint256', name: 'deadline', type: 'uint256' }, - { internalType: 'uint8', name: 'v', type: 'uint8' }, - { internalType: 'bytes32', name: 'r', type: 'bytes32' }, - { internalType: 'bytes32', name: 's', type: 'bytes32' }, - ], - name: 'permit', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - { internalType: 'uint256', name: 'duration', type: 'uint256' }, - ], - name: 'previewPoints', - outputs: [ - { internalType: 'uint256', name: '', type: 'uint256' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: 'user', type: 'address' }], - name: 'previewRewards', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [{ internalType: 'address', name: '', type: 'address' }], - name: 'rewardDebtPerShare', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'rewardsSource', - outputs: [ - { internalType: 'contract RewardsSource', name: '', type: 'address' }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - { internalType: 'uint256', name: 'duration', type: 'uint256' }, - { internalType: 'address', name: 'to', type: 'address' }, - ], - name: 'stake', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'uint256', name: 'amount', type: 'uint256' }, - { internalType: 'uint256', name: 'duration', type: 'uint256' }, - ], - name: 'stake', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [{ internalType: 'string', name: '', type: 'string' }], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [], - name: 'totalSupply', - outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '', type: 'address' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - ], - name: 'transfer', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { internalType: 'address', name: '', type: 'address' }, - { internalType: 'address', name: '', type: 'address' }, - { internalType: 'uint256', name: '', type: 'uint256' }, - ], - name: 'transferFrom', - outputs: [{ internalType: 'bool', name: '', type: 'bool' }], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [{ internalType: 'uint256', name: 'lockupId', type: 'uint256' }], - name: 'unstake', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, -] as const; diff --git a/libs/shared/contracts/src/contracts.ts b/libs/shared/contracts/src/contracts.ts index 520ec47ac..d68d190d9 100644 --- a/libs/shared/contracts/src/contracts.ts +++ b/libs/shared/contracts/src/contracts.ts @@ -1,13 +1,8 @@ import { mainnet } from 'wagmi/chains'; -import ChainlinkAggregatorV3Interface from './abis/ChainlinkAggregatorV3Interface.json'; -import CompensationClaims from './abis/CompensationClaims.json'; -import CurveAddressProvider from './abis/CurveAddressProvider.json'; -import OETH from './abis/OETH.json'; -import OETHZapper from './abis/OETHZapper.json'; +import { OETHZapperABI } from './abis/OETHZapper'; import { OracleRouterABI } from './abis/OracleRouter'; import { VaultCoreABI } from './abis/VaultCore'; -import WOETH from './abis/WOETH.json'; export const contracts = { mainnet: { @@ -17,53 +12,10 @@ export const contracts = { abi: VaultCoreABI, name: 'vault', }, - compensation: { - address: '0x9C94df9d594BA1eb94430C006c269C314B1A8281', - chainId: mainnet.id, - abi: CompensationClaims, - name: 'compensation', - }, - chainlinkEthAggregator: { - address: '0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419', - chainId: mainnet.id, - abi: ChainlinkAggregatorV3Interface, - name: 'chainlinkEthAggregator', - }, - chainlinkFastGasAggregator: { - address: '0x169E633A2D1E6c10dD91238Ba11c4A708dfEF37C', - chainId: mainnet.id, - abi: ChainlinkAggregatorV3Interface, - name: 'chainlinkFastGasAggregator', - }, - curveAddressProvider: { - address: '0x0000000022d53366457f9d5e68ec105046fc4383', - chainId: mainnet.id, - abi: CurveAddressProvider, - name: 'curveAddressProvider', - }, - curveOETHPool: { - address: '0x94b17476a93b3262d87b9a326965d1e91f9c13e7', - chainId: mainnet.id, - abi: [ - { - stateMutability: 'payable', - type: 'function', - name: 'exchange', - inputs: [ - { name: 'i', type: 'int128' }, - { name: 'j', type: 'int128' }, - { name: '_dx', type: 'uint256' }, - { name: '_min_dy', type: 'uint256' }, - ], - outputs: [{ name: '', type: 'uint256' }], - }, - ], - name: 'curveOETHPool', - }, zapper: { address: '0x9858e47BCbBe6fBAC040519B02d7cd4B2C470C66', chainId: mainnet.id, - abi: OETHZapper, + abi: OETHZapperABI, name: 'zapper', }, oracleRouter: { @@ -72,17 +24,5 @@ export const contracts = { abi: OracleRouterABI, name: 'oracleRouter', }, - oethProxy: { - address: '0x856c4Efb76C1D1AE02e20CEB03A2A6a08b0b8dC3', - chainId: mainnet.id, - abi: OETH, - name: 'oethProxy', - }, - woethProxy: { - address: '0xDcEe70654261AF21C44c093C300eD3Bb97b78192', - chainId: mainnet.id, - abi: WOETH, - name: 'woethProxy', - }, }, } as const; diff --git a/libs/shared/contracts/src/generateABIs.ts b/libs/shared/contracts/src/generateABIs.ts deleted file mode 100644 index 81de9d2a4..000000000 --- a/libs/shared/contracts/src/generateABIs.ts +++ /dev/null @@ -1,32 +0,0 @@ -const fs = require('fs'); -const path = require('path'); - -const getFiles = (path, ext = '.json') => fs - .readdirSync(path) - .filter((item) => item.includes(ext)) - .map((i, index) => ({ - id: index, - filename: i, - path: `${path}/${i}`, - })); - -const INPUT_DIR = './libs/shared/contracts/src/abis/json'; -const OUTPUT_DIR = './libs/shared/contracts/src/abis'; - -(async function(){ - const files = getFiles(path.resolve(INPUT_DIR)); - await Promise.all(files.map(async (file) => { - try { - const { abi } = JSON.parse(fs.readFileSync(file.path, 'utf-8')); - const cleanFileName = file.filename.replace('.json', ''); - fs.writeFileSync( - path.resolve(`${OUTPUT_DIR}/${cleanFileName}.ts`), - `// DO NOT EDIT - GENERATED - export const ${cleanFileName}ABI = ${JSON.stringify(abi)} as const;` - ) - } catch (e){ - console.error(e); - console.log("There was an error processing file"); - } - })) -}()) diff --git a/package.json b/package.json index 8f678e406..9d108fe67 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "@storybook/react-vite": "^7.2.1", "@storybook/testing-library": "^0.2.0", "@testing-library/react": "14.0.0", + "@types/fs-extra": "^11.0.1", "@types/node": "18.14.2", "@types/ramda": "^0.29.3", "@types/react": "18.2.18", @@ -77,6 +78,7 @@ "eslint-plugin-react-hooks": "4.6.0", "eslint-plugin-simple-import-sort": "^10.0.0", "eslint-plugin-unused-imports": "^3.0.0", + "fs-extra": "^11.1.1", "jsdom": "~22.1.0", "nx": "16.6.0", "prettier": "^3.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 57458cc11..4a7103968 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -133,6 +133,9 @@ devDependencies: '@testing-library/react': specifier: 14.0.0 version: 14.0.0(react-dom@18.2.0)(react@18.2.0) + '@types/fs-extra': + specifier: ^11.0.1 + version: 11.0.1 '@types/node': specifier: 18.14.2 version: 18.14.2 @@ -199,6 +202,9 @@ devDependencies: eslint-plugin-unused-imports: specifier: ^3.0.0 version: 3.0.0(@typescript-eslint/eslint-plugin@6.5.0)(eslint@8.48.0) + fs-extra: + specifier: ^11.1.1 + version: 11.1.1 jsdom: specifier: ~22.1.0 version: 22.1.0 @@ -5873,6 +5879,13 @@ packages: resolution: {integrity: sha512-frsJrz2t/CeGifcu/6uRo4b+SzAwT4NYCVPu1GN8IB9XTzrpPkGuV0tmh9mN+/L0PklAlsC3u5Fxt0ju00LXIw==} dev: true + /@types/fs-extra@11.0.1: + resolution: {integrity: sha512-MxObHvNl4A69ofaTRU8DFqvgzzv8s9yRtaPPm5gud9HDNvpB3GPQFvNuTWAI59B9huVGV5jXYJwbCsmBsOGYWA==} + dependencies: + '@types/jsonfile': 6.1.1 + '@types/node': 18.14.2 + dev: true + /@types/glob@7.2.0: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: @@ -5939,6 +5952,12 @@ packages: resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} dev: true + /@types/jsonfile@6.1.1: + resolution: {integrity: sha512-GSgiRCVeapDN+3pqA35IkQwasaCh/0YFH5dEF6S88iDvEn901DjOeH3/QPY+XYP1DFzDZPvIvfeEgk+7br5png==} + dependencies: + '@types/node': 18.14.2 + dev: true + /@types/lodash@4.14.196: resolution: {integrity: sha512-22y3o88f4a94mKljsZcanlNWPzO0uBsBdzLAngf2tp533LzZcQzb6+eZPJ+vCTt+bqF2XnvT9gejTLsAcJAJyQ==} dev: true