Skip to content

Commit

Permalink
Fix env variables (#11)
Browse files Browse the repository at this point in the history
* Fix env variables

* fix provider events
  • Loading branch information
0xslipk committed Nov 17, 2022
1 parent b39bfd4 commit 3b7b1e2
Show file tree
Hide file tree
Showing 17 changed files with 1,303 additions and 3,447 deletions.
6 changes: 5 additions & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ GRAPHQL_DEBUG=true
GRAPHQL_PLAYGROUND=true
GRAPHQL_SORT_SCHEMA=true
GRAPHQL_INTROSPECTION=true
DATABASE_HOST=0.0.0.0
DATABASE_HOST=localhost
DATABASE_NAME=ink
DATABASE_USERNAME=root
DATABASE_PASSWORD=password
DATABASE_PORT=5432
DATABASE_SSL_CA=""
DATABASE_RETRY_ATTEMPTS=5
DATABASE_RETRY_DELAY=3000
WS_PROVIDER=ws://127.0.0.1:9944
LOAD_ALL_BLOCKS=false
FIRST_BLOCK_TO_LOAD=0
BLOCKS_CONCURRENCY=1000
3 changes: 2 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ services:
- postgres
build:
context: .
dockerfile: Dockerfile #dev.Dockefile
# dockerfile: dev.Dockerfile
dockerfile: Dockerfile
ports:
- 8080:8080
volumes:
Expand Down
2 changes: 1 addition & 1 deletion mocks/contracts-mocks.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import abi from './erc20'

export const generateAbiInBase64 = () => {
const buff = new Buffer(JSON.stringify(abi))
const buff = Buffer.from(JSON.stringify(abi))
const base64data = buff.toString('base64')
return base64data
}
Expand Down
74 changes: 35 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,73 +83,69 @@
},
"homepage": "https://github.com/blockcoders/ink-substrate-explorer-api#readme",
"dependencies": {
"@fastify/compress": "5.0.0",
"@fastify/helmet": "8.1.0",
"@nestjs/apollo": "^10.0.19",
"@fastify/compress": "^5.0.0",
"@fastify/helmet": "^8.1.0",
"@nestjs/apollo": "^10.1.6",
"@nestjs/common": "^8.4.7",
"@nestjs/config": "^2.2.0",
"@nestjs/core": "^8.4.7",
"@nestjs/graphql": "^10.0.21",
"@nestjs/mapped-types": "1.1.0",
"@nestjs/platform-fastify": "8.4.7",
"@nestjs/typeorm": "9.0.0",
"@polkadot/api": "^9.4.3",
"@polkadot/api-augment": "^9.4.3",
"@polkadot/api-contract": "^9.4.3",
"@polkadot/types": "^9.4.3",
"@polkadot/types-codec": "^9.4.3",
"@polkadot/types-create": "^9.4.3",
"@polkadot/util": "10.1.2",
"@substrate/txwrapper": "^7.0.1",
"@substrate/txwrapper-core": "^3.1.7",
"@substrate/txwrapper-registry": "^3.1.7",
"apollo-server-fastify": "^3.10.0",
"@nestjs/graphql": "^10.1.6",
"@nestjs/mapped-types": "^1.2.0",
"@nestjs/platform-fastify": "^8.4.7",
"@nestjs/typeorm": "^9.0.1",
"@polkadot/api": "9.8.2",
"@polkadot/api-augment": "9.8.2",
"@polkadot/api-contract": "9.8.2",
"@polkadot/types": "9.8.2",
"@polkadot/types-codec": "9.8.2",
"@polkadot/types-create": "9.8.2",
"@polkadot/util": "10.1.12",
"apollo-server-fastify": "^3.11.1",
"async-await-retry": "^2.0.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.13.2",
"compression": "^1.7.4",
"fastify": "^3.17.0",
"graphql": "16.5.0",
"fastify": "^3.29.3",
"graphql": "^16.6.0",
"graphql-type-json": "^0.3.2",
"nestjs-pino": "^3.1.1",
"p-queue": "6.6.2",
"pg": "^8.7.3",
"pino": "^8.3.1",
"pino-http": "^8.2.0",
"p-queue": "^6.6.2",
"pg": "^8.8.0",
"pino": "^8.7.0",
"pino-http": "^8.2.1",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^7.5.6",
"typeorm": "^0.3.7",
"rxjs": "^7.5.7",
"typeorm": "^0.3.10",
"uuid": "^8.3.2",
"uuidv4": "^6.2.13"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@nestjs/cli": "^8.0.1",
"@nestjs/cli": "^8.2.8",
"@nestjs/schematics": "^8.0.11",
"@nestjs/testing": "^8.4.7",
"@types/jest": "^28.1.6",
"@types/node": "^16.11.7",
"@types/jest": "^28.1.8",
"@types/node": "^16.18.3",
"@types/supertest": "^2.0.12",
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^5.32.0",
"@typescript-eslint/parser": "^5.32.0",
"eslint": "^8.21.0",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^28.1.3",
"pino-pretty": "^8.1.0",
"pre-commit": "^1.2.2",
"prettier": "^2.7.1",
"supertest": "^6.2.4",
"ts-jest": "^28.0.7",
"ts-loader": "^9.3.1",
"supertest": "^6.3.1",
"ts-jest": "^28.0.8",
"ts-loader": "^9.4.1",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.0.0",
"typescript": "^4.7.4",
"util": "link:@types/@polkadot/util",
"webpack": "^5.74.0"
"tsconfig-paths": "^4.1.0",
"typescript": "4.7.4",
"webpack": "^5.75.0"
},
"jest": {
"verbose": true,
Expand Down

0 comments on commit 3b7b1e2

Please sign in to comment.