Skip to content

Commit

Permalink
Fix CI (#422)
Browse files Browse the repository at this point in the history
* fix: Remove deploy steward script

* fix: Remove old gho steward from tests

* fix: Add rpc mainnet env var to ci
  • Loading branch information
CheyenneAtapour authored Sep 4, 2024
1 parent a41f8a2 commit fe72684
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 302 deletions.
1 change: 1 addition & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
env:
ALCHEMY_KEY: '${{secrets.ALCHEMY_KEY}}'
ETH_RPC_URL: 'https://eth-mainnet.g.alchemy.com/v2/${{secrets.ALCHEMY_KEY}}'
RPC_MAINNET: 'https://eth-mainnet.g.alchemy.com/v2/${{secrets.ALCHEMY_KEY}}'
strategy:
matrix:
node-version:
Expand Down
29 changes: 0 additions & 29 deletions deploy/10_deploy_ghomanager.ts

This file was deleted.

5 changes: 0 additions & 5 deletions helpers/contract-getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import {
VariableDebtToken,
StakedAaveV3,
GhoFlashMinter,
GhoSteward,
GhoStableDebtToken,
} from '../types';

// Prevent error HH9 when importing this file inside tasks or helpers at Hardhat config load
Expand Down Expand Up @@ -78,9 +76,6 @@ export const getGhoStableDebtToken = async (
address || (await hre.deployments.get('GhoStableDebtToken')).address
);

export const getGhoSteward = async (address?: tEthereumAddress): Promise<GhoSteward> =>
getContract('GhoSteward', address || (await hre.deployments.get('GhoSteward')).address);

export const getBaseImmutableAdminUpgradeabilityProxy = async (
address: tEthereumAddress
): Promise<BaseImmutableAdminUpgradeabilityProxy> =>
Expand Down
8 changes: 0 additions & 8 deletions tasks/main/gho-testnet-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,7 @@ task('gho-testnet-setup', 'Deploy and Configure Gho').setAction(async (params, h
blankSpace();
await hre.run('upgrade-stkAave');

/*****************************************
* ADD GhoSteward *
******************************************/
blankSpace();

await hre.run('add-gho-steward');

console.log(`\nGho Setup Complete!\n`);

await hre.run('print-all-deployments');
});

Expand Down
36 changes: 0 additions & 36 deletions tasks/testnet-setup/07_add-gho-steward.ts

This file was deleted.

218 changes: 0 additions & 218 deletions test/gho-steward.test.ts

This file was deleted.

6 changes: 0 additions & 6 deletions test/helpers/make-suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
StakedAaveV3,
MintableERC20,
GhoFlashMinter,
GhoSteward,
} from '../../types';
import {
getGhoDiscountRateStrategy,
Expand All @@ -31,7 +30,6 @@ import {
getStakedAave,
getMintableErc20,
getGhoFlashMinter,
getGhoSteward,
getGhoStableDebtToken,
} from '../../helpers/contract-getters';
import {
Expand Down Expand Up @@ -85,7 +83,6 @@ export interface TestEnv {
aaveToken: IERC20;
flashMinter: GhoFlashMinter;
faucetOwner: Faucet;
ghoSteward: GhoSteward;
}

let HardhatSnapshotId: string = '0x1';
Expand Down Expand Up @@ -123,7 +120,6 @@ const testEnv: TestEnv = {
aaveToken: {} as IERC20,
flashMinter: {} as GhoFlashMinter,
faucetOwner: {} as Faucet,
ghoSteward: {} as GhoSteward,
} as TestEnv;

export async function initializeMakeSuite() {
Expand Down Expand Up @@ -166,8 +162,6 @@ export async function initializeMakeSuite() {
tokenProxyAddresses.variableDebtTokenAddress
);

testEnv.ghoSteward = await getGhoSteward();

testEnv.aTokenImplementation = await getGhoAToken();
testEnv.stableDebtTokenImplementation = await getGhoStableDebtToken();
testEnv.variableDebtTokenImplementation = await getGhoVariableDebtToken();
Expand Down

0 comments on commit fe72684

Please sign in to comment.