Skip to content

Commit

Permalink
Update app ABIs (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre authored Jan 20, 2025
1 parent 7c45110 commit 614eb09
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 15 deletions.
9 changes: 2 additions & 7 deletions frontend/app/src/abi/BorrowerOperations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export const BorrowerOperations = [
{
"type": "function",
"name": "shutdownFromOracleFailure",
"inputs": [{ "name": "_failedOracleAddr", "type": "address", "internalType": "address" }],
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable",
},
Expand Down Expand Up @@ -478,12 +478,6 @@ export const BorrowerOperations = [
"inputs": [{ "name": "_tcr", "type": "uint256", "indexed": false, "internalType": "uint256" }],
"anonymous": false,
},
{
"type": "event",
"name": "ShutDownFromOracleFailure",
"inputs": [{ "name": "_oracleAddress", "type": "address", "indexed": false, "internalType": "address" }],
"anonymous": false,
},
{
"type": "event",
"name": "SortedTrovesAddressChanged",
Expand Down Expand Up @@ -537,6 +531,7 @@ export const BorrowerOperations = [
{ "type": "error", "name": "TroveNotInBatch", "inputs": [] },
{ "type": "error", "name": "TroveNotOpen", "inputs": [] },
{ "type": "error", "name": "TroveNotZombie", "inputs": [] },
{ "type": "error", "name": "TroveWithZeroDebt", "inputs": [] },
{ "type": "error", "name": "UpfrontFeeTooHigh", "inputs": [] },
{ "type": "error", "name": "ZeroAdjustment", "inputs": [] },
] as const;
2 changes: 1 addition & 1 deletion frontend/app/src/abi/CollSurplusPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const CollSurplusPool = [{
}, {
"type": "event",
"name": "CollSent",
"inputs": [{ "name": "_to", "type": "address", "indexed": false, "internalType": "address" }, {
"inputs": [{ "name": "_to", "type": "address", "indexed": true, "internalType": "address" }, {
"name": "_amount",
"type": "uint256",
"indexed": false,
Expand Down
6 changes: 3 additions & 3 deletions frontend/app/src/abi/LeverageLSTZapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const LeverageLSTZapper = [
},
{
"type": "function",
"name": "adjustUnredeemableTrove",
"name": "adjustZombieTrove",
"inputs": [
{ "name": "_troveId", "type": "uint256", "internalType": "uint256" },
{ "name": "_collChange", "type": "uint256", "internalType": "uint256" },
Expand Down Expand Up @@ -83,8 +83,8 @@ export const LeverageLSTZapper = [
{
"type": "function",
"name": "closeTroveFromCollateral",
"inputs": [{ "name": "troveId", "type": "uint256", "internalType": "uint256" }, {
"name": "flashLoanAmount",
"inputs": [{ "name": "_troveId", "type": "uint256", "internalType": "uint256" }, {
"name": "_flashLoanAmount",
"type": "uint256",
"internalType": "uint256",
}],
Expand Down
6 changes: 3 additions & 3 deletions frontend/app/src/abi/LeverageWETHZapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const LeverageWETHZapper = [
{ "name": "_maxUpfrontFee", "type": "uint256", "internalType": "uint256" },
],
"outputs": [],
"stateMutability": "nonpayable",
"stateMutability": "payable",
},
{
"type": "function",
Expand All @@ -79,8 +79,8 @@ export const LeverageWETHZapper = [
{
"type": "function",
"name": "closeTroveFromCollateral",
"inputs": [{ "name": "troveId", "type": "uint256", "internalType": "uint256" }, {
"name": "flashLoanAmount",
"inputs": [{ "name": "_troveId", "type": "uint256", "internalType": "uint256" }, {
"name": "_flashLoanAmount",
"type": "uint256",
"internalType": "uint256",
}],
Expand Down
10 changes: 10 additions & 0 deletions frontend/app/src/abi/PriceFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ export const PriceFeed = [{
"internalType": "bool",
}],
"stateMutability": "view",
}, {
"type": "function",
"name": "fetchRedemptionPrice",
"inputs": [],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }, {
"name": "",
"type": "bool",
"internalType": "bool",
}],
"stateMutability": "view",
}, {
"type": "function",
"name": "getEthUsdStalenessThreshold",
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/src/abi/StabilityPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export const StabilityPool = [
},
{
"type": "function",
"name": "lastBoldLossError_Offset",
"name": "lastBoldLossErrorByP_Offset",
"inputs": [],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view",
Expand Down
2 changes: 2 additions & 0 deletions frontend/app/src/abi/TroveManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ export const TroveManager = [
"inputs": [
{ "name": "_troveId", "type": "uint256", "internalType": "uint256" },
{ "name": "_newTroveColl", "type": "uint256", "internalType": "uint256" },
{ "name": "_newTroveDebt", "type": "uint256", "internalType": "uint256" },
{
"name": "_troveChange",
"type": "tuple",
Expand Down Expand Up @@ -761,4 +762,5 @@ export const TroveManager = [
{ "type": "error", "name": "NotShutDown", "inputs": [] },
{ "type": "error", "name": "NothingToLiquidate", "inputs": [] },
{ "type": "error", "name": "OnlyOneTroveLeft", "inputs": [] },
{ "type": "error", "name": "ZeroAmount", "inputs": [] },
] as const;

0 comments on commit 614eb09

Please sign in to comment.