Skip to content

File 'src/types/*' not found #232

Open
@Lockwu6749

Description

After following the instructions, getting the following error when running the tests:

yarn run v1.22.19
$ graph test -d
Docker image already exists. Skipping docker build command...


| / | | | | | | | () | |
| . . | __ | | | | | | _ | | __
| |/| |/ ` | __/ _| ' / __| __| |/ __| |/ /
| | | | (
| | || (
| | | _
\ |
| | (
| <
_| |
/_,|____|| ||/_||___|_|_\

Compiling...

💬 Compiling intervalupdates...
💬 Compiling handlecollect...
💬 Compiling handleinitialize...
💬 Compiling handlemint...
💬 Compiling handleswap...
💬 Compiling handlepoolcreated...
💬 Compiling handleburn...
ERROR TS6054: File 'src/types/schema.ts' not found.

import { Bundle, Burn, Factory, Pool, Tick, Token } from '../../types/schema'
~~~~~~~~~~~~~~~~~~~~
in src/mappings/pool/burn.ts(3,58)

ERROR TS6054: File 'src/types/templates/Pool/Pool.ts' not found.

import { Burn as BurnEvent } from '../../types/templates/Pool/Pool'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/mappings/pool/burn.ts(4,35)

ERROR TS6054: File 'src/types/templates/Pool/Factory.ts' not found.

import { Factory as FactoryContract } from '../types/templates/Pool/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/constants.ts(3,44)

ERROR TS6054: File 'src/types/Factory/Factory.ts' not found.

import { PoolCreated } from '../types/Factory/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(3,29)

ERROR TS6054: File 'src/types/templates.ts' not found.

import { Pool as PoolTemplate } from '../types/templates'
~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(6,38)

ERROR TS6054: File 'src/types/Factory/ERC20.ts' not found.

import { ERC20 } from '../types/Factory/ERC20'
~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(3,23)

ERROR TS6054: File 'src/types/Factory/ERC20NameBytes.ts' not found.

import { ERC20NameBytes } from '../types/Factory/ERC20NameBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(4,32)

ERROR TS6054: File 'src/types/Factory/ERC20SymbolBytes.ts' not found.

import { ERC20SymbolBytes } from '../types/Factory/ERC20SymbolBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(5,34)

FAILURE 8 parse error(s)
ERROR TS6054: File 'src/types/schema.ts' not found.

import { Bundle, Factory, Mint, Pool, Tick, Token } from '../../types/schema'
~~~~~~~~~~~~~~~~~~~~
in src/mappings/pool/mint.ts(3,58)

ERROR TS6054: File 'src/types/templates/Pool/Pool.ts' not found.

import { Mint as MintEvent } from '../../types/templates/Pool/Pool'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/mappings/pool/mint.ts(4,35)

ERROR TS6054: File 'src/types/templates/Pool/Factory.ts' not found.

import { Factory as FactoryContract } from '../types/templates/Pool/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/constants.ts(3,44)

ERROR TS6054: File 'src/types/Factory/Factory.ts' not found.

import { PoolCreated } from '../types/Factory/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(3,29)

ERROR TS6054: File 'src/types/templates.ts' not found.

import { Pool as PoolTemplate } from '../types/templates'
~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(6,38)

ERROR TS6054: File 'src/types/Factory/ERC20.ts' not found.

import { ERC20 } from '../types/Factory/ERC20'
~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(3,23)

ERROR TS6054: File 'src/types/Factory/ERC20NameBytes.ts' not found.

import { ERC20NameBytes } from '../types/Factory/ERC20NameBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(4,32)

ERROR TS6054: File 'src/types/Factory/ERC20SymbolBytes.ts' not found.

import { ERC20SymbolBytes } from '../types/Factory/ERC20SymbolBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(5,34)

FAILURE 8 parse error(s)
ERROR TS6054: File 'src/types/schema.ts' not found.

import { Bundle, Collect, Factory, Pool, Token } from '../../types/schema'
~~~~~~~~~~~~~~~~~~~~
in src/mappings/pool/collect.ts(3,55)

ERROR TS6054: File 'src/types/templates/Pool/Pool.ts' not found.

import { Collect as CollectEvent } from '../../types/templates/Pool/Pool'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/mappings/pool/collect.ts(4,41)

ERROR TS6054: File 'src/types/templates/Pool/Factory.ts' not found.

import { Factory as FactoryContract } from '../types/templates/Pool/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/constants.ts(3,44)

ERROR TS6054: File 'src/types/Factory/Factory.ts' not found.

import { PoolCreated } from '../types/Factory/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(3,29)

ERROR TS6054: File 'src/types/templates.ts' not found.

import { Pool as PoolTemplate } from '../types/templates'
~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(6,38)

ERROR TS6054: File 'src/types/Factory/ERC20.ts' not found.

import { ERC20 } from '../types/Factory/ERC20'
~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(3,23)

ERROR TS6054: File 'src/types/Factory/ERC20NameBytes.ts' not found.

import { ERC20NameBytes } from '../types/Factory/ERC20NameBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(4,32)

ERROR TS6054: File 'src/types/Factory/ERC20SymbolBytes.ts' not found.

import { ERC20SymbolBytes } from '../types/Factory/ERC20SymbolBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(5,34)

FAILURE 8 parse error(s)
ERROR TS6054: File 'src/types/schema.ts' not found.

import { Bundle, Pool, Token } from '../../types/schema'
~~~~~~~~~~~~~~~~~~~~
in src/mappings/pool/initialize.ts(3,37)

ERROR TS6054: File 'src/types/templates/Pool/Pool.ts' not found.

import { Initialize } from '../../types/templates/Pool/Pool'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/mappings/pool/initialize.ts(4,28)

ERROR TS6054: File 'src/types/templates/Pool/Factory.ts' not found.

import { Factory as FactoryContract } from '../types/templates/Pool/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/constants.ts(3,44)

ERROR TS6054: File 'src/types/Factory/Factory.ts' not found.

import { PoolCreated } from '../types/Factory/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(3,29)

ERROR TS6054: File 'src/types/templates.ts' not found.

import { Pool as PoolTemplate } from '../types/templates'
~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(6,38)

ERROR TS6054: File 'src/types/Factory/ERC20.ts' not found.

import { ERC20 } from '../types/Factory/ERC20'
~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(3,23)

ERROR TS6054: File 'src/types/Factory/ERC20NameBytes.ts' not found.

import { ERC20NameBytes } from '../types/Factory/ERC20NameBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(4,32)

ERROR TS6054: File 'src/types/Factory/ERC20SymbolBytes.ts' not found.

import { ERC20SymbolBytes } from '../types/Factory/ERC20SymbolBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(5,34)

FAILURE 8 parse error(s)
ERROR TS6054: File 'src/types/schema.ts' not found.

import { Bundle, Factory, Pool, Swap, Token } from '../../types/schema'
~~~~~~~~~~~~~~~~~~~~
in src/mappings/pool/swap.ts(3,52)

ERROR TS6054: File 'src/types/templates/Pool/Pool.ts' not found.

import { Swap as SwapEvent } from '../../types/templates/Pool/Pool'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/mappings/pool/swap.ts(4,35)

ERROR TS6054: File 'src/types/templates/Pool/Factory.ts' not found.

import { Factory as FactoryContract } from '../types/templates/Pool/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/constants.ts(3,44)

ERROR TS6054: File 'src/types/Factory/Factory.ts' not found.

import { PoolCreated } from '../types/Factory/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(3,29)

ERROR TS6054: File 'src/types/templates.ts' not found.

import { Pool as PoolTemplate } from '../types/templates'
~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(6,38)

ERROR TS6054: File 'src/types/Factory/ERC20.ts' not found.

import { ERC20 } from '../types/Factory/ERC20'
~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(3,23)

ERROR TS6054: File 'src/types/Factory/ERC20NameBytes.ts' not found.

import { ERC20NameBytes } from '../types/Factory/ERC20NameBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(4,32)

ERROR TS6054: File 'src/types/Factory/ERC20SymbolBytes.ts' not found.

import { ERC20SymbolBytes } from '../types/Factory/ERC20SymbolBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(5,34)

FAILURE 8 parse error(s)
ERROR TS6054: File 'src/types/schema.ts' not found.

import { Pool, Token } from '../src/types/schema'
~~~~~~~~~~~~~~~~~~~~~
in tests/constants.ts(6,29)

ERROR TS6054: File 'src/types/templates/Pool/Factory.ts' not found.

import { Factory as FactoryContract } from '../types/templates/Pool/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/constants.ts(3,44)

ERROR TS6054: File 'src/types/Factory/ERC20.ts' not found.

import { ERC20 } from '../types/Factory/ERC20'
~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(3,23)

ERROR TS6054: File 'src/types/Factory/ERC20NameBytes.ts' not found.

import { ERC20NameBytes } from '../types/Factory/ERC20NameBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(4,32)

ERROR TS6054: File 'src/types/Factory/ERC20SymbolBytes.ts' not found.

import { ERC20SymbolBytes } from '../types/Factory/ERC20SymbolBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(5,34)

ERROR TS6054: File 'src/types/Factory/Factory.ts' not found.

import { PoolCreated } from '../types/Factory/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(3,29)

ERROR TS6054: File 'src/types/templates.ts' not found.

import { Pool as PoolTemplate } from '../types/templates'
~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(6,38)

FAILURE 7 parse error(s)
ERROR TS6054: File 'src/types/schema.ts' not found.

import { Bundle, Factory, Pool, Token } from '../src/types/schema'
~~~~~~~~~~~~~~~~~~~~~
in tests/intervalUpdates.test.ts(4,46)

ERROR TS6054: File 'src/types/templates/Pool/Factory.ts' not found.

import { Factory as FactoryContract } from '../types/templates/Pool/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/constants.ts(3,44)

ERROR TS6054: File 'src/types/Factory/Factory.ts' not found.

import { PoolCreated } from '../types/Factory/Factory'
~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(3,29)

ERROR TS6054: File 'src/types/templates.ts' not found.

import { Pool as PoolTemplate } from '../types/templates'
~~~~~~~~~~~~~~~~~~~~
in src/mappings/factory.ts(6,38)

ERROR TS6054: File 'src/types/Factory/ERC20.ts' not found.

import { ERC20 } from '../types/Factory/ERC20'
~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(3,23)

ERROR TS6054: File 'src/types/Factory/ERC20NameBytes.ts' not found.

import { ERC20NameBytes } from '../types/Factory/ERC20NameBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(4,32)

ERROR TS6054: File 'src/types/Factory/ERC20SymbolBytes.ts' not found.

import { ERC20SymbolBytes } from '../types/Factory/ERC20SymbolBytes'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
in src/utils/token.ts(5,34)

FAILURE 7 parse error(s)
thread 'main' panicked at '🆘 Please attend to the compilation errors above!', src/compiler/mod.rs:168:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Done in 3.91s.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions