move auto-generated typings, adapt .gitignore

This commit is contained in:
Matthias Kretschmann 2021-01-14 05:44:24 +01:00
parent 67871f6397
commit 4b4e8ed096
Signed by: m
GPG Key ID: 606EEEF3C479A91F
7 changed files with 20 additions and 12 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
src/@types
build
# Logs
logs
*.log

View File

@ -3,7 +3,9 @@ node_js: node
script:
# will run `npm ci` automatically here
# - npm test
- npm run lint
- npm run codegen
# TODO: activate once this issue is solved:
# https://github.com/graphprotocol/graph-ts/issues/113
# - npm run type-check

View File

@ -19,9 +19,9 @@ import {
TokenBalance,
TokenTransaction,
PoolTransactionTokenValues
} from './types/schema'
} from './@types/schema'
import { Pool } from './types/templates/Pool/Pool'
import { Pool } from './@types/templates/Pool/Pool'
export const ZERO_BD = BigDecimal.fromString('0.0')
export const MINUS_1_BD = BigDecimal.fromString('-1.0')

View File

@ -1,7 +1,7 @@
import { BigInt, BigDecimal } from '@graphprotocol/graph-ts'
import { OrderStarted, Transfer } from '../types/templates/DataToken/DataToken'
import { OrderStarted, Transfer } from '../@types/templates/DataToken/DataToken'
import { Datatoken, TokenBalance, TokenOrder } from '../types/schema'
import { Datatoken, TokenBalance, TokenOrder } from '../@types/schema'
import {
tokenToDecimal,
updateTokenBalance,

View File

@ -1,7 +1,10 @@
import { BigInt, log } from '@graphprotocol/graph-ts'
import { TokenRegistered } from '../types/DTFactory/DTFactory'
import { DatatokenFactory, Datatoken as DatatokenEntity } from '../types/schema'
import { DataToken as DatatokenDataSource } from '../types/templates'
import { TokenRegistered } from '../@types/DTFactory/DTFactory'
import {
DatatokenFactory,
Datatoken as DatatokenEntity
} from '../@types/schema'
import { DataToken as DatatokenDataSource } from '../@types/templates'
import { createUserEntity, tokenToDecimal, ZERO_BD } from '../helpers'

View File

@ -1,7 +1,7 @@
import { BigInt, BigDecimal, log } from '@graphprotocol/graph-ts'
import { BPoolRegistered } from '../types/Factory/Factory'
import { PoolFactory, Pool } from '../types/schema'
import { Pool as PoolContract } from '../types/templates'
import { BPoolRegistered } from '../@types/Factory/Factory'
import { PoolFactory, Pool } from '../@types/schema'
import { Pool as PoolContract } from '../@types/templates'
import { ZERO_BD } from '../helpers'
export function handleNewPool(event: BPoolRegistered): void {

View File

@ -5,7 +5,7 @@ import {
LOG_EXIT,
LOG_SWAP,
Transfer
} from '../types/templates/Pool/Pool'
} from '../@types/templates/Pool/Pool'
import {
PoolFactory,
@ -14,7 +14,7 @@ import {
PoolShare,
Datatoken,
PoolTransaction
} from '../types/schema'
} from '../@types/schema'
import {
hexToDecimal,
tokenToDecimal,