From 16bb99bbff27103bf8035d29f2108539a95d5a77 Mon Sep 17 00:00:00 2001 From: Brean0 Date: Tue, 9 Apr 2024 13:42:12 -0500 Subject: [PATCH] add LibGerminate events --- protocol/abi/Beanstalk.json | 124 +++++++++++++++++++++++++++++++++++- protocol/hardhat.config.js | 1 + 2 files changed, 122 insertions(+), 3 deletions(-) diff --git a/protocol/abi/Beanstalk.json b/protocol/abi/Beanstalk.json index de5f89b6d9..247b726159 100644 --- a/protocol/abi/Beanstalk.json +++ b/protocol/abi/Beanstalk.json @@ -298,7 +298,7 @@ }, { "inputs": [], - "name": "getLockedBeansUnderlyingUnripeBeanEth", + "name": "getLockedBeansUnderlyingUnripeLP", "outputs": [ { "internalType": "uint256", @@ -592,6 +592,30 @@ "name": "SetFertilizer", "type": "event" }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "tokenAmountIn", + "type": "uint256" + }, + { + "internalType": "address", + "name": "barnRaiseToken", + "type": "address" + } + ], + "name": "_getMintFertilizerOut", + "outputs": [ + { + "internalType": "uint256", + "name": "fertilizerAmountOut", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [ { @@ -725,6 +749,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [ + { + "internalType": "address", + "name": "well", + "type": "address" + } + ], + "name": "beginBarnRaiseMigration", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { @@ -756,6 +793,32 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "getBarnRaiseToken", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getBarnRaiseWell", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "getCurrentHumidity", @@ -875,7 +938,7 @@ "inputs": [ { "internalType": "uint256", - "name": "wethAmountIn", + "name": "tokenAmountIn", "type": "uint256" } ], @@ -926,7 +989,7 @@ "inputs": [ { "internalType": "uint256", - "name": "wethAmountIn", + "name": "tokenAmountIn", "type": "uint256" }, { @@ -7113,6 +7176,56 @@ "name": "SeedsBalanceChanged", "type": "event" }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": false, + "internalType": "int256", + "name": "delta", + "type": "int256" + } + ], + "name": "FarmerGerminatingStalkBalanceChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "season", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "indexed": false, + "internalType": "int256", + "name": "delta", + "type": "int256" + }, + { + "indexed": false, + "internalType": "int256", + "name": "deltaBdv", + "type": "int256" + } + ], + "name": "TotalGerminatingBalanceChanged", + "type": "event" + }, { "inputs": [], "name": "maxWeight", @@ -7664,6 +7777,11 @@ "name": "stemScaleSeason", "type": "uint16" }, + { + "internalType": "uint32", + "name": "beanEthStartMintingSeason", + "type": "uint32" + }, { "internalType": "uint256", "name": "start", diff --git a/protocol/hardhat.config.js b/protocol/hardhat.config.js index 86d9910eff..ab030eaf4a 100644 --- a/protocol/hardhat.config.js +++ b/protocol/hardhat.config.js @@ -152,6 +152,7 @@ task("diamondABI", "Generates ABI file for diamond, includes all ABIs of facets" files.push("contracts/libraries/Silo/LibWhitelist.sol") files.push("contracts/libraries/LibGauge.sol") files.push("contracts/libraries/Silo/LibLegacyTokenSilo.sol") + files.push("contracts/libraries/Silo/LibGerminate.sol") } files.forEach((file) => { const facetName = getFacetName(file);