Skip to content

Commit

Permalink
App: update ABIs
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre committed Sep 16, 2024
1 parent 2b77da2 commit 65ca577
Show file tree
Hide file tree
Showing 12 changed files with 647 additions and 803 deletions.
95 changes: 64 additions & 31 deletions frontend/app/src/abi/ActivePool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export const ActivePool = [
{
"type": "constructor",
"inputs": [{ "name": "_collAddress", "type": "address", "internalType": "address" }],
"inputs": [{ "name": "_addressesRegistry", "type": "address", "internalType": "contract IAddressesRegistry" }],
"stateMutability": "nonpayable",
},
{
Expand All @@ -20,13 +20,27 @@ export const ActivePool = [
"outputs": [],
"stateMutability": "nonpayable",
},
{
"type": "function",
"name": "aggBatchManagementFees",
"inputs": [],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view",
},
{
"type": "function",
"name": "aggRecordedDebt",
"inputs": [],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view",
},
{
"type": "function",
"name": "aggWeightedBatchManagementFeeSum",
"inputs": [],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view",
},
{
"type": "function",
"name": "aggWeightedDebtSum",
Expand All @@ -41,6 +55,13 @@ export const ActivePool = [
"outputs": [{ "name": "", "type": "address", "internalType": "address" }],
"stateMutability": "view",
},
{
"type": "function",
"name": "calcPendingAggBatchManagementFee",
"inputs": [],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view",
},
{
"type": "function",
"name": "calcPendingAggInterest",
Expand Down Expand Up @@ -100,6 +121,9 @@ export const ActivePool = [
{ "name": "newWeightedRecordedDebt", "type": "uint256", "internalType": "uint256" },
{ "name": "oldWeightedRecordedDebt", "type": "uint256", "internalType": "uint256" },
{ "name": "upfrontFee", "type": "uint256", "internalType": "uint256" },
{ "name": "batchAccruedManagementFee", "type": "uint256", "internalType": "uint256" },
{ "name": "newWeightedRecordedBatchManagementFee", "type": "uint256", "internalType": "uint256" },
{ "name": "oldWeightedRecordedBatchManagementFee", "type": "uint256", "internalType": "uint256" },
],
}],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
Expand All @@ -121,9 +145,9 @@ export const ActivePool = [
},
{
"type": "function",
"name": "isOwner",
"name": "lastAggBatchManagementFeesUpdateTime",
"inputs": [],
"outputs": [{ "name": "", "type": "bool", "internalType": "bool" }],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view",
},
{
Expand Down Expand Up @@ -151,17 +175,38 @@ export const ActivePool = [
{ "name": "newWeightedRecordedDebt", "type": "uint256", "internalType": "uint256" },
{ "name": "oldWeightedRecordedDebt", "type": "uint256", "internalType": "uint256" },
{ "name": "upfrontFee", "type": "uint256", "internalType": "uint256" },
{ "name": "batchAccruedManagementFee", "type": "uint256", "internalType": "uint256" },
{ "name": "newWeightedRecordedBatchManagementFee", "type": "uint256", "internalType": "uint256" },
{ "name": "oldWeightedRecordedBatchManagementFee", "type": "uint256", "internalType": "uint256" },
],
}],
}, { "name": "_batchAddress", "type": "address", "internalType": "address" }],
"outputs": [],
"stateMutability": "nonpayable",
},
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [{ "name": "", "type": "address", "internalType": "address" }],
"stateMutability": "view",
"name": "mintBatchManagementFeeAndAccountForChange",
"inputs": [{
"name": "_troveChange",
"type": "tuple",
"internalType": "struct TroveChange",
"components": [
{ "name": "appliedRedistBoldDebtGain", "type": "uint256", "internalType": "uint256" },
{ "name": "appliedRedistCollGain", "type": "uint256", "internalType": "uint256" },
{ "name": "collIncrease", "type": "uint256", "internalType": "uint256" },
{ "name": "collDecrease", "type": "uint256", "internalType": "uint256" },
{ "name": "debtIncrease", "type": "uint256", "internalType": "uint256" },
{ "name": "debtDecrease", "type": "uint256", "internalType": "uint256" },
{ "name": "newWeightedRecordedDebt", "type": "uint256", "internalType": "uint256" },
{ "name": "oldWeightedRecordedDebt", "type": "uint256", "internalType": "uint256" },
{ "name": "upfrontFee", "type": "uint256", "internalType": "uint256" },
{ "name": "batchAccruedManagementFee", "type": "uint256", "internalType": "uint256" },
{ "name": "newWeightedRecordedBatchManagementFee", "type": "uint256", "internalType": "uint256" },
{ "name": "oldWeightedRecordedBatchManagementFee", "type": "uint256", "internalType": "uint256" },
],
}, { "name": "_batchAddress", "type": "address", "internalType": "address" }],
"outputs": [],
"stateMutability": "nonpayable",
},
{
"type": "function",
Expand All @@ -188,21 +233,14 @@ export const ActivePool = [
"outputs": [],
"stateMutability": "nonpayable",
},
{ "type": "function", "name": "setShutdownFlag", "inputs": [], "outputs": [], "stateMutability": "nonpayable" },
{
"type": "function",
"name": "setAddresses",
"inputs": [
{ "name": "_borrowerOperationsAddress", "type": "address", "internalType": "address" },
{ "name": "_troveManagerAddress", "type": "address", "internalType": "address" },
{ "name": "_stabilityPoolAddress", "type": "address", "internalType": "address" },
{ "name": "_defaultPoolAddress", "type": "address", "internalType": "address" },
{ "name": "_boldTokenAddress", "type": "address", "internalType": "address" },
{ "name": "_interestRouterAddress", "type": "address", "internalType": "address" },
],
"outputs": [],
"stateMutability": "nonpayable",
"name": "shutdownTime",
"inputs": [],
"outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
"stateMutability": "view",
},
{ "type": "function", "name": "setShutdownFlag", "inputs": [], "outputs": [], "stateMutability": "nonpayable" },
{
"type": "function",
"name": "stabilityPool",
Expand Down Expand Up @@ -240,6 +278,12 @@ export const ActivePool = [
}],
"anonymous": false,
},
{
"type": "event",
"name": "CollTokenAddressChanged",
"inputs": [{ "name": "_newCollTokenAddress", "type": "address", "indexed": false, "internalType": "address" }],
"anonymous": false,
},
{
"type": "event",
"name": "DefaultPoolAddressChanged",
Expand All @@ -257,17 +301,6 @@ export const ActivePool = [
}],
"anonymous": false,
},
{
"type": "event",
"name": "OwnershipTransferred",
"inputs": [{ "name": "previousOwner", "type": "address", "indexed": true, "internalType": "address" }, {
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address",
}],
"anonymous": false,
},
{
"type": "event",
"name": "StabilityPoolAddressChanged",
Expand Down
Loading

0 comments on commit 65ca577

Please sign in to comment.