-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Koi staking reward query (#154)
* Support Koi staking reward query * Fix handler
- Loading branch information
1 parent
9b6bf93
commit ea36d80
Showing
9 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ export enum Chain { | |
Kusama = 'kusama', | ||
Polkadot = 'polkadot', | ||
Moonbase = 'moonbase', | ||
|
||
Koi = 'koi', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,6 @@ | |
"devDependencies": { | ||
"lerna": "^5.5.2", | ||
"nx": "^14.4.3" | ||
} | ||
}, | ||
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
specVersion: 1.0.0 | ||
name: index-subql | ||
version: 1.0.0 | ||
runner: | ||
node: | ||
name: "@subql/node" | ||
version: "*" | ||
query: | ||
name: "@subql/query" | ||
version: "*" | ||
description: Koi index | ||
repository: "https://github.com/darwinia-network/indexer" | ||
schema: | ||
file: ./schema.graphql | ||
network: | ||
chainId: "0xce663480d55121504f3faf403756ac2b2d9f9870135b6f10222c848db45ded58" | ||
endpoint: "wss://koi-rpc.darwinia.network" | ||
dataSources: | ||
- name: main | ||
kind: substrate/Runtime | ||
startBlock: 1 | ||
mapping: | ||
file: ./dist/index.js | ||
handlers: | ||
- handler: handleBlock | ||
kind: substrate/BlockHandler | ||
|
||
- handler: handleCall | ||
kind: substrate/CallHandler | ||
|
||
################# Staking Events Start Here ################# | ||
- handler: handleEvent | ||
kind: substrate/EventHandler | ||
filter: | ||
module: darwiniaStaking | ||
method: Payout | ||
################# Staking Events End Here ################# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters