Skip to content

does not work out of the box #1

@msmyers

Description

@msmyers
npm install
npm run test

Error HH404: File fuse-flywheel/src/vaults/fuse/FuseERC4626.sol, imported from contracts/Greeter.sol, not found.

and furthermore

forge build

Compiler run failed
error[6275]: ParserError: Source "fuse-flywheel/src/vaults/fuse/FuseERC4626.sol" not found: File not found. Searched the following locations: "/Users/msmyers/projects/fei-protocol/getting-started".
 --> contracts/Greeter.sol:2:1:
  |
2 | import {FuseERC4626} from "fuse-flywheel/src/vaults/fuse/FuseERC4626.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

furthermore

forge update
forge build

Error: 
Compiler run failed
error[5333]: ParserError: Source file requires different compiler version (current compiler is 0.8.15+commit.e14f2714.Darwin.appleclang) - note that nightly builds are considered to be strictly less than the released version
 --> fuse-flywheel/src/vaults/fuse/FuseERC4626.sol:2:1:
  |
2 | pragma solidity 0.8.10;
  | ^^^^^^^^^^^^^^^^^^^^^^^

furthermore

❯ forge build --use solc:0.8.10
[⠊] Compiling...
[⠒] Unable to resolve import: "fuse-flywheel/src/vaults/fuse/FuseERC4626.sol" with remappings:
        @ensdomains/=/Users/msmyers/Sync/volumes/syncthing/projects/fei-protocol/getting-started/node_modules/@ensdomains/
        eth-gas-reporter/=/Users/msmyers/Sync/volumes/syncthing/projects/fei-protocol/getting-started/node_modules/eth-gas-reporter/
        hardhat/=/Users/msmyers/Sync/volumes/syncthing/projects/fei-protocol/getting-started/node_modules/hardhat/
        contracts/=/Users/msmyers/Sync/volumes/syncthing/projects/fei-protocol/getting-started/contracts/
        test/=/Users/msmyers/Sync/volumes/syncthing/projects/fei-protocol/getting-started/test/
[⠢] Compiling 1 files with 0.8.10
[⠆] Solc 0.8.10 finished in 7.92ms
Error: 
Compiler run failed
error[6275]: ParserError: Source "solmate/mixins/ERC4626.sol" not found: File not found.
 --> fuse-flywheel/src/vaults/fuse/FuseERC4626.sol:4:1:
  |
4 | import {ERC20, ERC4626} from "solmate/mixins/ERC4626.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



error[6275]: ParserError: Source "solmate/utils/SafeTransferLib.sol" not found: File not found.
 --> fuse-flywheel/src/vaults/fuse/FuseERC4626.sol:5:1:
  |
5 | import {SafeTransferLib} from "solmate/utils/SafeTransferLib.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



error[6275]: ParserError: Source "solmate/utils/FixedPointMathLib.sol" not found: File not found.
 --> fuse-flywheel/src/vaults/fuse/FuseERC4626.sol:6:1:
  |
6 | import {FixedPointMathLib} from "solmate/utils/FixedPointMathLib.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



error[6275]: ParserError: Source "libcompound/LibFuse.sol" not found: File not found.
 --> fuse-flywheel/src/vaults/fuse/FuseERC4626.sol:7:1:
  |
7 | import {LibFuse} from "libcompound/LibFuse.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



error[6275]: ParserError: Source "libcompound/interfaces/CERC20.sol" not found: File not found.
 --> fuse-flywheel/src/external/CToken.sol:4:1:
  |
4 | import {CERC20} from "libcompound/interfaces/CERC20.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



error[6275]: ParserError: Source "libcompound/interfaces/CERC20.sol" not found: File not found.
 --> fuse-flywheel/src/external/Unitroller.sol:4:1:
  |
4 | import {CERC20} from "libcompound/interfaces/CERC20.sol";
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

furthermore

cd fuse-flywheel
forge update
forge build

[⠊] Compiling...
[⠑] Compiling 52 files with 0.8.10
[⠘] Solc 0.8.10 finished in 639.77ms
Error: 
Compiler run failed
warning[3420]: Warning: Source file does not specify required compiler version! Consider adding "pragma solidity ^0.8.10;"
--> src/test/interfaces/IPlugin.sol



error[6480]: TypeError: Derived contract must override function "assertFalse". Two or more base classes define function with same name and parameter types.
  --> src/test/integration/FlywheelDynamicRewardsIntegration.t.sol:25:1:
   |
25 | contract FlywheelDynamicRewardsIntegrationTest is DSTestPlus, Test {
   | ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "Test": 
   --> lib/forge-std/src/Test.sol:239:5:
    |
239 |     function assertFalse(bool data) internal virtual {
    |     ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "DSTestPlus": 
  --> lib/solmate/src/test/utils/DSTestPlus.sol:71:5:
   |
71 |     function assertFalse(bool data) internal virtual {
   |     ^ (Relevant source part starts here and spans across multiple lines).



error[6480]: TypeError: Derived contract must override function "bound". Two or more base classes define function with same name and parameter types.
  --> src/test/integration/FlywheelDynamicRewardsIntegration.t.sol:25:1:
   |
25 | contract FlywheelDynamicRewardsIntegrationTest is DSTestPlus, Test {
   | ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "Test": 
   --> lib/forge-std/src/Test.sol:139:5:
    |
139 |     function bound(uint256 x, uint256 min, uint256 max) internal virtual returns (uint256 result) {
    |     ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "DSTestPlus": 
   --> lib/solmate/src/test/utils/DSTestPlus.sol:148:5:
    |
148 |     function bound(
    |     ^ (Relevant source part starts here and spans across multiple lines).



error[6480]: TypeError: Derived contract must override function "fail". Two or more base classes define function with same name and parameter types.
  --> src/test/integration/FlywheelDynamicRewardsIntegration.t.sol:25:1:
   |
25 | contract FlywheelDynamicRewardsIntegrationTest is DSTestPlus, Test {
   | ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "Test": 
   --> lib/forge-std/src/Test.sol:234:5:
    |
234 |     function fail(string memory err) internal virtual {
    |     ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "DSTestPlus": 
  --> lib/solmate/src/test/utils/DSTestPlus.sol:66:5:
   |
66 |     function fail(string memory err) internal virtual {
   |     ^ (Relevant source part starts here and spans across multiple lines).



error[6480]: TypeError: Derived contract must override function "assertFalse". Two or more base classes define function with same name and parameter types.
  --> src/test/integration/pools/FusePool156test.t.sol:16:1:
   |
16 | contract FusePool156Test is DSTestPlus, Test {
   | ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "Test": 
   --> lib/forge-std/src/Test.sol:239:5:
    |
239 |     function assertFalse(bool data) internal virtual {
    |     ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "DSTestPlus": 
  --> lib/solmate/src/test/utils/DSTestPlus.sol:71:5:
   |
71 |     function assertFalse(bool data) internal virtual {
   |     ^ (Relevant source part starts here and spans across multiple lines).



error[6480]: TypeError: Derived contract must override function "bound". Two or more base classes define function with same name and parameter types.
  --> src/test/integration/pools/FusePool156test.t.sol:16:1:
   |
16 | contract FusePool156Test is DSTestPlus, Test {
   | ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "Test": 
   --> lib/forge-std/src/Test.sol:139:5:
    |
139 |     function bound(uint256 x, uint256 min, uint256 max) internal virtual returns (uint256 result) {
    |     ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "DSTestPlus": 
   --> lib/solmate/src/test/utils/DSTestPlus.sol:148:5:
    |
148 |     function bound(
    |     ^ (Relevant source part starts here and spans across multiple lines).



error[6480]: TypeError: Derived contract must override function "fail". Two or more base classes define function with same name and parameter types.
  --> src/test/integration/pools/FusePool156test.t.sol:16:1:
   |
16 | contract FusePool156Test is DSTestPlus, Test {
   | ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "Test": 
   --> lib/forge-std/src/Test.sol:234:5:
    |
234 |     function fail(string memory err) internal virtual {
    |     ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "DSTestPlus": 
  --> lib/solmate/src/test/utils/DSTestPlus.sol:66:5:
   |
66 |     function fail(string memory err) internal virtual {
   |     ^ (Relevant source part starts here and spans across multiple lines).



error[6480]: TypeError: Derived contract must override function "assertFalse". Two or more base classes define function with same name and parameter types.
  --> src/test/integration/pools/FusePool190test.t.sol:15:1:
   |
15 | contract Pool190Test is DSTestPlus, Test {
   | ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "Test": 
   --> lib/forge-std/src/Test.sol:239:5:
    |
239 |     function assertFalse(bool data) internal virtual {
    |     ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "DSTestPlus": 
  --> lib/solmate/src/test/utils/DSTestPlus.sol:71:5:
   |
71 |     function assertFalse(bool data) internal virtual {
   |     ^ (Relevant source part starts here and spans across multiple lines).



error[6480]: TypeError: Derived contract must override function "bound". Two or more base classes define function with same name and parameter types.
  --> src/test/integration/pools/FusePool190test.t.sol:15:1:
   |
15 | contract Pool190Test is DSTestPlus, Test {
   | ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "Test": 
   --> lib/forge-std/src/Test.sol:139:5:
    |
139 |     function bound(uint256 x, uint256 min, uint256 max) internal virtual returns (uint256 result) {
    |     ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "DSTestPlus": 
   --> lib/solmate/src/test/utils/DSTestPlus.sol:148:5:
    |
148 |     function bound(
    |     ^ (Relevant source part starts here and spans across multiple lines).



error[6480]: TypeError: Derived contract must override function "fail". Two or more base classes define function with same name and parameter types.
  --> src/test/integration/pools/FusePool190test.t.sol:15:1:
   |
15 | contract Pool190Test is DSTestPlus, Test {
   | ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "Test": 
   --> lib/forge-std/src/Test.sol:234:5:
    |
234 |     function fail(string memory err) internal virtual {
    |     ^ (Relevant source part starts here and spans across multiple lines).
Note: Definition in "DSTestPlus": 
  --> lib/solmate/src/test/utils/DSTestPlus.sol:66:5:
   |
66 |     function fail(string memory err) internal virtual {
   |     ^ (Relevant source part starts here and spans across multiple lines).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions