-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
76 additions
and
53 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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import { SubstrateDatasourceKind, SubstrateHandlerKind, SubstrateProject } from "@subql/types"; | ||
|
||
// Can expand the Datasource processor types via the genreic param | ||
const project: SubstrateProject = { | ||
specVersion: '1.0.0', | ||
version: '0.0.1', | ||
name: 'polkadot-starter', | ||
description: 'This project can be used as a starting point for developing your SubQuery project', | ||
runner: { | ||
node: { | ||
name: '@subql/node', | ||
version: ">=3.0.1", | ||
}, | ||
query: { | ||
name: '@subql/query', | ||
version: "*" | ||
}, | ||
}, | ||
schema: { | ||
file: './schema.graphql' | ||
}, | ||
network: { | ||
/* The genesis hash of the network (hash of block 0) */ | ||
chainId: '0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3', | ||
/** | ||
* This endpoint must be a public non-pruned archive node | ||
* Public nodes may be rate limited, which can affect indexing speed | ||
* When developing your project we suggest getting a private API key | ||
* You can get them from OnFinality for free https://app.onfinality.io | ||
* https://documentation.onfinality.io/support/the-enhanced-api-service | ||
*/ | ||
endpoint: 'wss://polkadot.api.onfinality.io/public-ws' | ||
}, | ||
dataSources: [ | ||
{ | ||
kind: SubstrateDatasourceKind.Runtime, | ||
startBlock: 1, | ||
mapping: { | ||
file: './dist/index.js', | ||
handlers: [ | ||
/*{ | ||
kind: SubstrateHandlerKind.Block, | ||
handler: 'handleBlock', | ||
filter: {} | ||
},*/ | ||
/*{ | ||
kind: SubstrateHandlerKind.Call, | ||
handler: 'handleCall', | ||
filter: {} | ||
},*/ | ||
{ | ||
kind: SubstrateHandlerKind.Event, | ||
handler: 'handleEvent', | ||
filter: { | ||
module: 'balances', | ||
method: 'Deposit', | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
} | ||
|
||
export default project; |
This file was deleted.
Oops, something went wrong.
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