Skip to content

Commit

Permalink
fix: support cjs (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Aug 11, 2023
1 parent 268df2f commit 6ff3a0d
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 53 deletions.
104 changes: 52 additions & 52 deletions src/ts/AaveAddressBook.ts
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
export * as AaveGovernanceV2 from './AaveGovernanceV2.js';
export * as AaveSafetyModule from './AaveSafetyModule.js';
export * as AaveGovernanceV2 from './AaveGovernanceV2';
export * as AaveSafetyModule from './AaveSafetyModule';
// autogenerated entrypoints
export * as AaveV2Ethereum from './AaveV2Ethereum.js';
export * as AaveV2EthereumAssets from './AaveV2EthereumAssets.js';
export * as AaveV2EthereumAMM from './AaveV2EthereumAMM.js';
export * as AaveV2EthereumAMMAssets from './AaveV2EthereumAMMAssets.js';
export * as AaveV2EthereumArc from './AaveV2EthereumArc.js';
export * as AaveV2Goerli from './AaveV2Goerli.js';
export * as AaveV2GoerliAssets from './AaveV2GoerliAssets.js';
export * as AaveV2Mumbai from './AaveV2Mumbai.js';
export * as AaveV2MumbaiAssets from './AaveV2MumbaiAssets.js';
export * as AaveV2Polygon from './AaveV2Polygon.js';
export * as AaveV2PolygonAssets from './AaveV2PolygonAssets.js';
export * as AaveV2Fuji from './AaveV2Fuji.js';
export * as AaveV2FujiAssets from './AaveV2FujiAssets.js';
export * as AaveV2Avalanche from './AaveV2Avalanche.js';
export * as AaveV2AvalancheAssets from './AaveV2AvalancheAssets.js';
export * as AaveV3Ethereum from './AaveV3Ethereum.js';
export * as AaveV3EthereumAssets from './AaveV3EthereumAssets.js';
export * as AaveV3Sepolia from './AaveV3Sepolia.js';
export * as AaveV3SepoliaAssets from './AaveV3SepoliaAssets.js';
export * as AaveV3Goerli from './AaveV3Goerli.js';
export * as AaveV3GoerliAssets from './AaveV3GoerliAssets.js';
export * as AaveV3GoerliGho from './AaveV3GoerliGho.js';
export * as AaveV3GoerliGhoAssets from './AaveV3GoerliGhoAssets.js';
export * as AaveV3Mumbai from './AaveV3Mumbai.js';
export * as AaveV3MumbaiAssets from './AaveV3MumbaiAssets.js';
export * as AaveV3Polygon from './AaveV3Polygon.js';
export * as AaveV3PolygonAssets from './AaveV3PolygonAssets.js';
export * as AaveV3Fuji from './AaveV3Fuji.js';
export * as AaveV3FujiAssets from './AaveV3FujiAssets.js';
export * as AaveV3Avalanche from './AaveV3Avalanche.js';
export * as AaveV3AvalancheAssets from './AaveV3AvalancheAssets.js';
export * as AaveV3Arbitrum from './AaveV3Arbitrum.js';
export * as AaveV3ArbitrumAssets from './AaveV3ArbitrumAssets.js';
export * as AaveV3ArbitrumGoerli from './AaveV3ArbitrumGoerli.js';
export * as AaveV3ArbitrumGoerliAssets from './AaveV3ArbitrumGoerliAssets.js';
export * as AaveV3FantomTestnet from './AaveV3FantomTestnet.js';
export * as AaveV3FantomTestnetAssets from './AaveV3FantomTestnetAssets.js';
export * as AaveV3Fantom from './AaveV3Fantom.js';
export * as AaveV3FantomAssets from './AaveV3FantomAssets.js';
export * as AaveV3Harmony from './AaveV3Harmony.js';
export * as AaveV3HarmonyAssets from './AaveV3HarmonyAssets.js';
export * as AaveV3Optimism from './AaveV3Optimism.js';
export * as AaveV3OptimismAssets from './AaveV3OptimismAssets.js';
export * as AaveV3OptimismGoerli from './AaveV3OptimismGoerli.js';
export * as AaveV3OptimismGoerliAssets from './AaveV3OptimismGoerliAssets.js';
export * as AaveV3ScrollAlpha from './AaveV3ScrollAlpha.js';
export * as AaveV3ScrollAlphaAssets from './AaveV3ScrollAlphaAssets.js';
export * as AaveV3Metis from './AaveV3Metis.js';
export * as AaveV3MetisAssets from './AaveV3MetisAssets.js';
export * as AaveV3Basenet from './AaveV3Basenet.js';
export * as AaveV2Ethereum from './AaveV2Ethereum';
export * as AaveV2EthereumAssets from './AaveV2EthereumAssets';
export * as AaveV2EthereumAMM from './AaveV2EthereumAMM';
export * as AaveV2EthereumAMMAssets from './AaveV2EthereumAMMAssets';
export * as AaveV2EthereumArc from './AaveV2EthereumArc';
export * as AaveV2Goerli from './AaveV2Goerli';
export * as AaveV2GoerliAssets from './AaveV2GoerliAssets';
export * as AaveV2Mumbai from './AaveV2Mumbai';
export * as AaveV2MumbaiAssets from './AaveV2MumbaiAssets';
export * as AaveV2Polygon from './AaveV2Polygon';
export * as AaveV2PolygonAssets from './AaveV2PolygonAssets';
export * as AaveV2Fuji from './AaveV2Fuji';
export * as AaveV2FujiAssets from './AaveV2FujiAssets';
export * as AaveV2Avalanche from './AaveV2Avalanche';
export * as AaveV2AvalancheAssets from './AaveV2AvalancheAssets';
export * as AaveV3Ethereum from './AaveV3Ethereum';
export * as AaveV3EthereumAssets from './AaveV3EthereumAssets';
export * as AaveV3Sepolia from './AaveV3Sepolia';
export * as AaveV3SepoliaAssets from './AaveV3SepoliaAssets';
export * as AaveV3Goerli from './AaveV3Goerli';
export * as AaveV3GoerliAssets from './AaveV3GoerliAssets';
export * as AaveV3GoerliGho from './AaveV3GoerliGho';
export * as AaveV3GoerliGhoAssets from './AaveV3GoerliGhoAssets';
export * as AaveV3Mumbai from './AaveV3Mumbai';
export * as AaveV3MumbaiAssets from './AaveV3MumbaiAssets';
export * as AaveV3Polygon from './AaveV3Polygon';
export * as AaveV3PolygonAssets from './AaveV3PolygonAssets';
export * as AaveV3Fuji from './AaveV3Fuji';
export * as AaveV3FujiAssets from './AaveV3FujiAssets';
export * as AaveV3Avalanche from './AaveV3Avalanche';
export * as AaveV3AvalancheAssets from './AaveV3AvalancheAssets';
export * as AaveV3Arbitrum from './AaveV3Arbitrum';
export * as AaveV3ArbitrumAssets from './AaveV3ArbitrumAssets';
export * as AaveV3ArbitrumGoerli from './AaveV3ArbitrumGoerli';
export * as AaveV3ArbitrumGoerliAssets from './AaveV3ArbitrumGoerliAssets';
export * as AaveV3FantomTestnet from './AaveV3FantomTestnet';
export * as AaveV3FantomTestnetAssets from './AaveV3FantomTestnetAssets';
export * as AaveV3Fantom from './AaveV3Fantom';
export * as AaveV3FantomAssets from './AaveV3FantomAssets';
export * as AaveV3Harmony from './AaveV3Harmony';
export * as AaveV3HarmonyAssets from './AaveV3HarmonyAssets';
export * as AaveV3Optimism from './AaveV3Optimism';
export * as AaveV3OptimismAssets from './AaveV3OptimismAssets';
export * as AaveV3OptimismGoerli from './AaveV3OptimismGoerli';
export * as AaveV3OptimismGoerliAssets from './AaveV3OptimismGoerliAssets';
export * as AaveV3ScrollAlpha from './AaveV3ScrollAlpha';
export * as AaveV3ScrollAlphaAssets from './AaveV3ScrollAlphaAssets';
export * as AaveV3Metis from './AaveV3Metis';
export * as AaveV3MetisAssets from './AaveV3MetisAssets';
export * as AaveV3Basenet from './AaveV3Basenet';
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/* Modules */
"module": "esnext" /* Specify what module code is generated. */,
// "rootDir": "./", /* Specify the root folder within your source files. */
"moduleResolution": "NodeNext" /* Specify how TypeScript looks up a file from a given module specifier. */,
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
Expand Down

1 comment on commit 6ff3a0d

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Foundry report

forge 0.2.0 (a0a31c3 2023-08-11T18:50:06.819909971Z)
Build log
installing solc version "0.8.21"
Successfully installed solc 0.8.21
Compiling 71 files with 0.8.21
Solc 0.8.21 finished in 4.99s
Compiler run successful!
| Contract                   | Size (kB) | Margin (kB) |
|----------------------------|-----------|-------------|
| AaveGovernanceV2           | 0.285     | 24.291      |
| AaveMisc                   | 0.086     | 24.49       |
| AaveV2Avalanche            | 0.086     | 24.49       |
| AaveV2AvalancheAssets      | 0.086     | 24.49       |
| AaveV2Ethereum             | 0.086     | 24.49       |
| AaveV2EthereumAMM          | 0.086     | 24.49       |
| AaveV2EthereumAMMAssets    | 0.086     | 24.49       |
| AaveV2EthereumArc          | 0.086     | 24.49       |
| AaveV2EthereumAssets       | 0.086     | 24.49       |
| AaveV2Fuji                 | 0.086     | 24.49       |
| AaveV2FujiAssets           | 0.086     | 24.49       |
| AaveV2Goerli               | 0.086     | 24.49       |
| AaveV2GoerliAssets         | 0.086     | 24.49       |
| AaveV2Mumbai               | 0.086     | 24.49       |
| AaveV2MumbaiAssets         | 0.086     | 24.49       |
| AaveV2Polygon              | 0.086     | 24.49       |
| AaveV2PolygonAssets        | 0.086     | 24.49       |
| AaveV3Arbitrum             | 0.086     | 24.49       |
| AaveV3ArbitrumAssets       | 0.086     | 24.49       |
| AaveV3ArbitrumGoerli       | 0.086     | 24.49       |
| AaveV3ArbitrumGoerliAssets | 0.086     | 24.49       |
| AaveV3Avalanche            | 0.086     | 24.49       |
| AaveV3AvalancheAssets      | 0.086     | 24.49       |
| AaveV3Basenet              | 0.086     | 24.49       |
| AaveV3Ethereum             | 0.086     | 24.49       |
| AaveV3EthereumAssets       | 0.086     | 24.49       |
| AaveV3Fantom               | 0.086     | 24.49       |
| AaveV3FantomAssets         | 0.086     | 24.49       |
| AaveV3FantomTestnet        | 0.086     | 24.49       |
| AaveV3FantomTestnetAssets  | 0.086     | 24.49       |
| AaveV3Fuji                 | 0.086     | 24.49       |
| AaveV3FujiAssets           | 0.086     | 24.49       |
| AaveV3Goerli               | 0.086     | 24.49       |
| AaveV3GoerliAssets         | 0.086     | 24.49       |
| AaveV3GoerliGho            | 0.086     | 24.49       |
| AaveV3GoerliGhoAssets      | 0.086     | 24.49       |
| AaveV3Harmony              | 0.086     | 24.49       |
| AaveV3HarmonyAssets        | 0.086     | 24.49       |
| AaveV3Metis                | 0.086     | 24.49       |
| AaveV3MetisAssets          | 0.086     | 24.49       |
| AaveV3Mumbai               | 0.086     | 24.49       |
| AaveV3MumbaiAssets         | 0.086     | 24.49       |
| AaveV3Optimism             | 0.086     | 24.49       |
| AaveV3OptimismAssets       | 0.086     | 24.49       |
| AaveV3OptimismGoerli       | 0.086     | 24.49       |
| AaveV3OptimismGoerliAssets | 0.086     | 24.49       |
| AaveV3Polygon              | 0.086     | 24.49       |
| AaveV3PolygonAssets        | 0.086     | 24.49       |
| AaveV3ScrollAlpha          | 0.086     | 24.49       |
| AaveV3ScrollAlphaAssets    | 0.086     | 24.49       |
| AaveV3Sepolia              | 0.086     | 24.49       |
| AaveV3SepoliaAssets        | 0.086     | 24.49       |
| ConfiguratorInputTypes     | 0.086     | 24.49       |
| DataTypes                  | 0.086     | 24.49       |
| StdStyle                   | 0.086     | 24.49       |
| console                    | 0.086     | 24.49       |
| console2                   | 0.086     | 24.49       |
| safeconsole                | 0.086     | 24.49       |
| stdError                   | 0.713     | 23.863      |
| stdJson                    | 0.086     | 24.49       |
| stdMath                    | 0.086     | 24.49       |
| stdStorage                 | 0.086     | 24.49       |
| stdStorageSafe             | 0.086     | 24.49       |
Test success 🌈
No files changed, compilation skipped

Running 1 test for src/test/AaveV2Misfits.t.sol:AaveAddressMisfitsTest
[PASS] testArcPoolAdminIsCorrect() (gas: 258)
Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 405.00µs

Running 8 tests for src/test/AaveV2Ethereum.t.sol:AaveAddressBookTest
[PASS] testAaveProtocolDataProviderIsCorrect() (gas: 280)
[PASS] testCollectorIsCorrect() (gas: 280)
[PASS] testEmergencyAdminIsCorrect() (gas: 237)
[PASS] testOracleIsCorrect() (gas: 258)
[PASS] testPoolAddressIsCorrect() (gas: 281)
[PASS] testPoolAddressProviderIsCorrect() (gas: 302)
[PASS] testPoolAdminIsCorrect() (gas: 302)
[PASS] testPoolConfiguratorIsCorrect() (gas: 268)
Test result: ok. 8 passed; 0 failed; 0 skipped; finished in 663.70µs

Running 8 tests for src/test/AaveV3Avalanche.t.sol:AaveAddressBookTest
[PASS] testACLAdminIsCorrect() (gas: 303)
[PASS] testACLManagerIsCorrect() (gas: 259)
[PASS] testCollectorIsCorrect() (gas: 302)
[PASS] testEmissionManagerIsCorrect() (gas: 280)
[PASS] testOracleIsCorrect() (gas: 280)
[PASS] testPoolAddressIsCorrect() (gas: 258)
[PASS] testPoolAddressProviderIsCorrect() (gas: 302)
[PASS] testPoolConfiguratorIsCorrect() (gas: 268)
Test result: ok. 8 passed; 0 failed; 0 skipped; finished in 402.30µs
Ran 3 test suites: 17 tests passed, 0 failed, 0 skipped (17 total tests)

Please sign in to comment.