Skip to content

Remove unnecessary import #2725

Remove unnecessary import

Remove unnecessary import #2725

Re-run triggered February 19, 2025 13:05
Status Failure
Total duration 2m 26s
Artifacts 1

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
generator/features/assetListing.spec.ts > feature: assetListing > should properly generate files: generator/features/assetListing.spec.ts#L36
Error: Snapshot `feature: assetListing > should properly generate files 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ { - "aip": "--- + "aip": "--- title: "test" author: "test" discussions: "test" snapshot: "test" --- @@ -45,67 +45,67 @@ ## Copyright Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). ", - "jsonConfig": "import {ConfigFile} from '../../generator/types'; + "jsonConfig": "import {ConfigFile} from '../../generator/types'; export const config: ConfigFile = { - rootOptions: { + rootOptions: { - pools: ['AaveV3Ethereum'], + pools: ['AaveV3Ethereum'], - title: 'test', + title: 'test', - shortName: 'Test', + shortName: 'Test', - date: '20231023', + date: '20231023', - author: 'test', + author: 'test', - discussion: 'test', + discussion: 'test', - snapshot: 'test', + snapshot: 'test', - }, + }, - poolOptions: { + poolOptions: { - AaveV3Ethereum: { + AaveV3Ethereum: { - configs: { + configs: { - ASSET_LISTING: [ + ASSET_LISTING: [ - { - assetSymbol: 'PSP', + { + assetSymbol: 'PSP', - decimals: 18, + decimals: 18, - priceFeed: '0x72AFAECF99C9d9C8215fF44C77B94B99C28741e8', + priceFeed: '0x72AFAECF99C9d9C8215fF44C77B94B99C28741e8', - ltv: '40', + ltv: '40', - liqThreshold: '50', + liqThreshold: '50', - liqBonus: '5', + liqBonus: '5', - debtCeiling: '100000', + debtCeiling: '100000', - liqProtocolFee: '20', + liqProtocolFee: '20', - enabledToBorrow: 'ENABLED', + enabledToBorrow: 'ENABLED', - flashloanable: 'ENABLED', + flashloanable: 'ENABLED', - stableRateModeEnabled: 'DISABLED', + stableRateModeEnabled: 'DISABLED', - borrowableInIsolation: 'DISABLED', + borrowableInIsolation: 'DISABLED', - withSiloedBorrowing: 'DISABLED', + withSiloedBorrowing: 'DISABLED', - reserveFactor: '20', + reserveFactor: '20', - supplyCap: '10000', + supplyCap: '10000', - borrowCap: '5000', + borrowCap: '5000', - rateStrategyParams: { + rateStrategyParams: { - optimalUtilizationRate: '80', + optimalUtilizationRate: '80', - baseVariableBorrowRate: '0', + baseVariableBorrowRate: '0', - variableRateSlope1: '10', + variableRateSlope1: '10', - variableRateSlope2: '100', + variableRateSlope2: '100', - stableRateSlope1: '10', + stableRateSlope1: '10', - stableRateSlope2: '100', + stableRateSlope2: '100', - baseStableRateOffset: '1', + baseStableRateOffset: '1', - stableRateExcessOffset: '0', + stableRateExcessOffset: '0', - optimalStableToTotalDebtRatio: '10', + optimalStableToTotalDebtRatio: '10', - }, + }, - eModeCategory: 'AaveV3EthereumEModes.NONE', + eModeCategory: 'AaveV3EthereumEModes.NONE', - asset: '0xcAfE001067cDEF266AfB7Eb5A286dCFD277f3dE5', + asset: '0xcAfE001067cDEF266AfB7Eb5A286dCFD277f3dE5', - }, + }, - ], + ], - }, + }, - cache: {blockNumber: 42}, + cache: {blockNumber: 42}, - }, + }, - }, + }, }; ", - "payloads": [ + "payloads": [ - { - "contractName": "AaveV3Ethereum_Test_20231023", + { + "contractName": "AaveV3Ethereum_Test_20231023", - "payload": "// SPDX-License-Identifier: MIT + "payload": "// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {AaveV3Ethereum} from 'aave-address-book/AaveV3Ethereum.sol'; import {AaveV3PayloadEthereum} from 'aave-helpers/src/v3-config-engine/AaveV3Payloa
generator/features/assetListing.spec.ts > feature: assetListing > regression: isolation mode should be flase when ceiling is zero: generator/features/assetListing.spec.ts#L56
Error: Snapshot `feature: assetListing > regression: isolation mode should be flase when ceiling is zero 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ { - "aip": "--- + "aip": "--- title: "test" author: "test" discussions: "test" snapshot: "test" --- @@ -45,67 +45,67 @@ ## Copyright Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). ", - "jsonConfig": "import {ConfigFile} from '../../generator/types'; + "jsonConfig": "import {ConfigFile} from '../../generator/types'; export const config: ConfigFile = { - rootOptions: { + rootOptions: { - pools: ['AaveV3Ethereum'], + pools: ['AaveV3Ethereum'], - title: 'test', + title: 'test', - shortName: 'Test', + shortName: 'Test', - date: '20231023', + date: '20231023', - author: 'test', + author: 'test', - discussion: 'test', + discussion: 'test', - snapshot: 'test', + snapshot: 'test', - }, + }, - poolOptions: { + poolOptions: { - AaveV3Ethereum: { + AaveV3Ethereum: { - configs: { + configs: { - ASSET_LISTING: [ + ASSET_LISTING: [ - { - assetSymbol: 'PSP', + { + assetSymbol: 'PSP', - decimals: 18, + decimals: 18, - priceFeed: '0x72AFAECF99C9d9C8215fF44C77B94B99C28741e8', + priceFeed: '0x72AFAECF99C9d9C8215fF44C77B94B99C28741e8', - ltv: '40', + ltv: '40', - liqThreshold: '50', + liqThreshold: '50', - liqBonus: '5', + liqBonus: '5', - debtCeiling: 0, + debtCeiling: 0, - liqProtocolFee: '20', + liqProtocolFee: '20', - enabledToBorrow: 'ENABLED', + enabledToBorrow: 'ENABLED', - flashloanable: 'ENABLED', + flashloanable: 'ENABLED', - stableRateModeEnabled: 'DISABLED', + stableRateModeEnabled: 'DISABLED', - borrowableInIsolation: 'DISABLED', + borrowableInIsolation: 'DISABLED', - withSiloedBorrowing: 'DISABLED', + withSiloedBorrowing: 'DISABLED', - reserveFactor: '20', + reserveFactor: '20', - supplyCap: '10000', + supplyCap: '10000', - borrowCap: '5000', + borrowCap: '5000', - rateStrategyParams: { + rateStrategyParams: { - optimalUtilizationRate: '80', + optimalUtilizationRate: '80', - baseVariableBorrowRate: '0', + baseVariableBorrowRate: '0', - variableRateSlope1: '10', + variableRateSlope1: '10', - variableRateSlope2: '100', + variableRateSlope2: '100', - stableRateSlope1: '10', + stableRateSlope1: '10', - stableRateSlope2: '100', + stableRateSlope2: '100', - baseStableRateOffset: '1', + baseStableRateOffset: '1', - stableRateExcessOffset: '0', + stableRateExcessOffset: '0', - optimalStableToTotalDebtRatio: '10', + optimalStableToTotalDebtRatio: '10', - }, + }, - eModeCategory: 'AaveV3EthereumEModes.NONE', + eModeCategory: 'AaveV3EthereumEModes.NONE', - asset: '0xcAfE001067cDEF266AfB7Eb5A286dCFD277f3dE5', + asset: '0xcAfE001067cDEF266AfB7Eb5A286dCFD277f3dE5', - }, + }, - ], + ], - }, + }, - cache: {blockNumber: 42}, + cache: {blockNumber: 42}, - }, + }, - }, + }, }; ", - "payloads": [ + "payloads": [ - { - "contractName": "AaveV3Ethereum_Test_20231023", + { + "contractName": "AaveV3Ethereum_Test_20231023", - "payload": "// SPDX-License-Identifier: MIT + "payload": "// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {AaveV3Ethereum} from 'aave-address-book/AaveV3Ethereum.sol'; import {AaveV3PayloadEthereum} from 'aave-helpers/src/v3-config-
generator/features/priceFeedsUpdate.spec.ts > feature: priceFeedsUpdates > should properly generate files: generator/features/priceFeedsUpdate.spec.ts#L36
Error: Snapshot `feature: priceFeedsUpdates > should properly generate files 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ { - "aip": "--- + "aip": "--- title: "test" author: "test" discussions: "test" snapshot: "test" --- @@ -21,37 +21,37 @@ ## Copyright Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). ", - "jsonConfig": "import {ConfigFile} from '../../generator/types'; + "jsonConfig": "import {ConfigFile} from '../../generator/types'; export const config: ConfigFile = { - rootOptions: { + rootOptions: { - pools: ['AaveV3Ethereum'], + pools: ['AaveV3Ethereum'], - title: 'test', + title: 'test', - shortName: 'Test', + shortName: 'Test', - date: '20231023', + date: '20231023', - author: 'test', + author: 'test', - discussion: 'test', + discussion: 'test', - snapshot: 'test', + snapshot: 'test', - }, + }, - poolOptions: { + poolOptions: { - AaveV3Ethereum: { + AaveV3Ethereum: { - configs: { + configs: { - PRICE_FEEDS_UPDATE: [ + PRICE_FEEDS_UPDATE: [ - {asset: 'DAI', priceFeed: '0xae7ab96520de3a18e5e111b5eaab095312d7fe84'}, + {asset: 'DAI', priceFeed: '0xae7ab96520de3a18e5e111b5eaab095312d7fe84'}, - ], + ], - }, + }, - cache: {blockNumber: 42}, + cache: {blockNumber: 42}, - }, + }, - }, + }, }; ", - "payloads": [ + "payloads": [ - { + { - "contractName": "AaveV3Ethereum_Test_20231023", + "contractName": "AaveV3Ethereum_Test_20231023", - "payload": "// SPDX-License-Identifier: MIT + "payload": "// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol'; import {AaveV3PayloadEthereum} from 'aave-helpers/src/v3-config-engine/AaveV3PayloadEthereum.sol'; import {IAaveV3ConfigEngine} from 'aave-v3-origin/contracts/extensions/v3-config-engine/IAaveV3ConfigEngine.sol'; @@ -60,62 +60,61 @@ * @author test * - Snapshot: test * - Discussion: test */ contract AaveV3Ethereum_Test_20231023 is AaveV3PayloadEthereum { - function priceFeedsUpdates() + function priceFeedsUpdates() - public + public - pure + pure - override + override - returns (IAaveV3ConfigEngine.PriceFeedUpdate[] memory) + returns (IAaveV3ConfigEngine.PriceFeedUpdate[] memory) - { - IAaveV3ConfigEngine.PriceFeedUpdate[] + { + IAaveV3ConfigEngine.PriceFeedUpdate[] - memory priceFeedUpdates = new IAaveV3ConfigEngine.PriceFeedUpdate[](1); + memory priceFeedUpdates = new IAaveV3ConfigEngine.PriceFeedUpdate[](1); - priceFeedUpdates[0] = IAaveV3ConfigEngine.PriceFeedUpdate({ + priceFeedUpdates[0] = IAaveV3ConfigEngine.PriceFeedUpdate({ - asset: AaveV3EthereumAssets.DAI_UNDERLYING, + asset: AaveV3EthereumAssets.DAI_UNDERLYING, - priceFeed: 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84 + priceFeed: 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84 - }); + }); - return priceFeedUpdates; + return priceFeedUpdates; - } + } } ", - "pool": "AaveV3Ethereum", + "pool": "AaveV3Ethereum", - "test": "// SPDX-License-Identifier: MIT + "test": "// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {AaveV3Ethereum} from 'aave-address-book/AaveV3Ethereum.sol'; - import 'forge-std/Test.sol'; import {ProtocolV3TestBase, ReserveConfig} from 'aave-helpers/src/ProtocolV3TestBase.sol'; import {AaveV3Ethereum_Test_20231023} from './AaveV3Ethereum_Test_20231023.sol'; /** * @dev Test for AaveV3Ethereum_Test_20231023 * command: FOUNDRY_PROFILE=mainnet forge test --match-path=src/20231023_AaveV3Ethereum_Test/AaveV3Ethereum_Test_20231023.t.sol -vv */ contract AaveV3Ethereum_Test_20231023_Test is ProtocolV3TestBase { - AaveV3Ethereum_Test_20231023 internal proposal; + AaveV3Ethereum_Test_20231023 internal proposal; - function setUp() public { + function setUp() public { - vm.createSelectFork(vm.rpcUrl('mainnet'), 42); + vm.
generator/features/rateUpdates.spec.ts > feature: rateUpdatesV2 > should properly generate files: generator/features/rateUpdates.spec.ts#L35
Error: Snapshot `feature: rateUpdatesV2 > should properly generate files 1` mismatched - Expected + Received @@ -1,7 +1,7 @@ { - "aip": "--- + "aip": "--- title: "test" author: "test" discussions: "test" snapshot: "test" --- @@ -21,91 +21,91 @@ ## Copyright Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). ", - "jsonConfig": "import {ConfigFile} from '../../generator/types'; + "jsonConfig": "import {ConfigFile} from '../../generator/types'; export const config: ConfigFile = { - rootOptions: { + rootOptions: { - pools: ['AaveV2EthereumAMM'], + pools: ['AaveV2EthereumAMM'], - title: 'test', + title: 'test', - shortName: 'Test', + shortName: 'Test', - date: '20231023', + date: '20231023', - author: 'test', + author: 'test', - discussion: 'test', + discussion: 'test', - snapshot: 'test', + snapshot: 'test', - }, + }, - poolOptions: { + poolOptions: { - AaveV2EthereumAMM: { + AaveV2EthereumAMM: { - configs: { + configs: { - RATE_UPDATE_V2: [ + RATE_UPDATE_V2: [ - { + { - asset: 'WETH', + asset: 'WETH', - params: { + params: { - optimalUtilizationRate: '', + optimalUtilizationRate: '', - baseVariableBorrowRate: '6', + baseVariableBorrowRate: '6', - variableRateSlope1: '', + variableRateSlope1: '', - variableRateSlope2: '', + variableRateSlope2: '', - stableRateSlope1: '', + stableRateSlope1: '', - stableRateSlope2: '', + stableRateSlope2: '', - }, + }, - }, + }, - { - asset: 'DAI', + { + asset: 'DAI', - params: { + params: { - optimalUtilizationRate: '', + optimalUtilizationRate: '', - baseVariableBorrowRate: '4', + baseVariableBorrowRate: '4', - variableRateSlope1: '10', + variableRateSlope1: '10', - variableRateSlope2: '', + variableRateSlope2: '', - stableRateSlope1: '', + stableRateSlope1: '', - stableRateSlope2: '', + stableRateSlope2: '', - }, + }, - }, + }, - { + { - asset: 'USDC', + asset: 'USDC', - params: { + params: { - optimalUtilizationRate: '', + optimalUtilizationRate: '', - baseVariableBorrowRate: '4', + baseVariableBorrowRate: '4', - variableRateSlope1: '10', + variableRateSlope1: '10', - variableRateSlope2: '', + variableRateSlope2: '', - stableRateSlope1: '', + stableRateSlope1: '', - stableRateSlope2: '', + stableRateSlope2: '', - }, + }, - }, + }, - { + { - asset: 'USDT', + asset: 'USDT', - params: { + params: { - optimalUtilizationRate: '', + optimalUtilizationRate: '', - baseVariableBorrowRate: '6', + baseVariableBorrowRate: '6', - variableRateSlope1: '10', + variableRateSlope1: '10', - variableRateSlope2: '', + variableRateSlope2: '', - stableRateSlope1: '', + stableRateSlope1: '', - stableRateSlope2: '', + stableRateSlope2: '', - }, + }, - }, + }, - { + { - asset: 'WBTC', + asset: 'WBTC', - params: { + params: { - optimalUtilizationRate: '', + optimalUtilizationRate: '', - baseVariableBorrowRate: '5', + baseVariableBorrowRate:
test-js / release
Process completed with exit code 1.
Foundry build n test
Unexpected input(s) 'ROOT_DIR', valid inputs are ['MODE', 'ZKSYNC']

Artifacts

Produced during runtime
Name Size
content
146 Bytes