Skip to content

Commit

Permalink
Update project.yaml to 0.2.0 (#38)
Browse files Browse the repository at this point in the history
* update project.yaml to 0.2.0

* delete yarn.lock

* add yarn.lock to gitignore
  • Loading branch information
stepanLav authored Jan 10, 2022
1 parent ea81cea commit 0764b1c
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 3,229 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
node_modules
dist
src/types
.data
.data
.idea
.DS_Store
yarn.lock
5 changes: 0 additions & 5 deletions .idea/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/subquery-fearless.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

7 changes: 7 additions & 0 deletions local-runner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
docker rm -f $(docker-compose ps -a -q)
sudo rm -rf .data/
sudo rm -rf dist/
yarn
yarn codegen
yarn build
yarn start:docker
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
"lodash": "^4.17.21"
},
"devDependencies": {
"@polkadot/api": "^4",
"@subql/types": "^0.7.1",
"@polkadot/api": "^6",
"@subql/types": "^0.12.0",
"typescript": "^4.1.3",
"@subql/cli": "^0.9.3"
"@subql/cli": "^0.16.2",
"@kiltprotocol/type-definitions": "^0.1.23"
}
}
25 changes: 12 additions & 13 deletions project.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
specVersion: 0.0.1
specVersion: 0.2.0
name: nova
version: 1.0.0
description: Nova SubQuery project
repository: 'https://github.com/nova-wallet/subquery-nova'
schema: ./schema.graphql
repository: https://github.com/nova-wallet/subquery-nova
schema:
file: ./schema.graphql
network:
endpoint: 'wss://rpc.polkadot.io'
genesisHash: '0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
endpoint: wss://polkadot.api.onfinality.io/public-ws
dictionary: 'https://api.subquery.network/sq/subquery/dictionary-polkadot'

dataSources:
- name: main
kind: substrate/Runtime
startBlock: 1

# polkadot test slash bloks: 3570179

# westend test stake block: 6000000
# kusama test stake block: 8124580
# polkadot test stake block: 5645004

# polkadot test rewards block: 5704983
mapping:
file: ./dist/index.js
handlers:
- handler: handleHistoryElement
kind: substrate/CallHandler
Expand Down Expand Up @@ -69,4 +68,4 @@ dataSources:
kind: substrate/EventHandler
filter:
module: staking
method: StakersElected
method: StakersElected
6 changes: 3 additions & 3 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ type Extrinsic @jsonField {
type HistoryElement @entity {
id: ID!
blockNumber: Int!
extrinsicIdx: Int,
extrinsicHash: String
extrinsicIdx: Int
extrinsicHash: String!
timestamp: BigInt! @index
address: String! @index
reward: Reward
Expand Down Expand Up @@ -65,7 +65,7 @@ type IndividualExposure @jsonField {
type StakeChange @entity {
id: ID!
blockNumber: Int!
extrinsicHash: String
extrinsicHash: String!
eventIdx: Int!
timestamp: BigInt! @index
address: String! @index
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"rootDir": "src",
"target": "es2020",
"skipLibCheck": true,
"strictNullChecks": true
"strictNullChecks": false
},
"include": [
"src/**/*",
Expand Down
Loading

0 comments on commit 0764b1c

Please sign in to comment.