From f9db9b788f73c6991af9bc1ff7e6ae9bd77a475d Mon Sep 17 00:00:00 2001 From: miguelmtzinf Date: Tue, 19 Dec 2023 16:19:42 +0100 Subject: [PATCH] test: Update Certora files --- ...certora-staging.yml => certora-latest.yml} | 2 +- .../ghoVariableDebtTokenHarnessInternal.sol | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) rename .github/workflows/{certora-staging.yml => certora-latest.yml} (96%) create mode 100644 certora/harness/ghoVariableDebtTokenHarnessInternal.sol diff --git a/.github/workflows/certora-staging.yml b/.github/workflows/certora-latest.yml similarity index 96% rename from .github/workflows/certora-staging.yml rename to .github/workflows/certora-latest.yml index 5bafec07..647f0a14 100644 --- a/.github/workflows/certora-staging.yml +++ b/.github/workflows/certora-latest.yml @@ -28,7 +28,7 @@ jobs: with: { java-version: '11', java-package: jre } - name: Install certora cli - run: pip install certora-cli + run: pip install certora-cli==5.0.5 - name: Install solc run: | diff --git a/certora/harness/ghoVariableDebtTokenHarnessInternal.sol b/certora/harness/ghoVariableDebtTokenHarnessInternal.sol new file mode 100644 index 00000000..71a8ba7a --- /dev/null +++ b/certora/harness/ghoVariableDebtTokenHarnessInternal.sol @@ -0,0 +1,20 @@ +pragma solidity 0.8.10; + +import {GhoVariableDebtTokenHarness} from './ghoVariableDebtTokenHarness.sol'; +import {GhoVariableDebtToken} from '../munged/contracts/facilitators/aave/tokens/GhoVariableDebtToken.sol'; +import {IPool} from '@aave/core-v3/contracts/interfaces/IPool.sol'; + +contract GhoVariableDebtTokenHarnessInternal is GhoVariableDebtTokenHarness { + constructor(IPool pool) public GhoVariableDebtTokenHarness(pool) { + //nop + } + + function accrueDebtOnAction( + address user, + uint256 previousScaledBalance, + uint256 discountPercent, + uint256 index + ) external returns (uint256, uint256) { + return _accrueDebtOnAction(user, previousScaledBalance, discountPercent, index); + } +}