-
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.
Merge pull request #92 from subquery/update-postgres
Update postgres and CI, revert manifest file format
- Loading branch information
Showing
222 changed files
with
2,981 additions
and
4,590 deletions.
There are no files selected for viewing
File renamed without changes.
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,20 @@ | ||
{ | ||
"compilerOptions": { | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"esModuleInterop": true, | ||
"declaration": true, | ||
"importHelpers": true, | ||
"resolveJsonModule": true, | ||
"module": "commonjs", | ||
"outDir": "dist", | ||
"rootDir": "src", | ||
"target": "es2017", | ||
"strict": true | ||
}, | ||
"include": [ | ||
"src/**/*", | ||
"../../node_modules/@subql/types-core/dist/global.d.ts", | ||
"../../node_modules/@subql/types/dist/global.d.ts" | ||
] | ||
} |
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,13 @@ | ||
#!/bin/bash | ||
|
||
# This file copies over a modified TS config that works with workspaces so we can build all projects | ||
|
||
set -e | ||
|
||
for DEST_PATH in ./*/*/; do | ||
|
||
SRC="./.github/scripts/ci.tsconfig.json" | ||
DEST="${DEST_PATH}tsconfig.json" | ||
|
||
[ -f "$DEST" ] && cp "$SRC" "$DEST" | ||
done |
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 |
---|---|---|
|
@@ -27,7 +27,7 @@ package-lock.json | |
target/ | ||
dist/ | ||
src/types | ||
project.yaml | ||
# project.yaml | ||
|
||
# JetBrains IDE | ||
.idea/ | ||
|
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
specVersion: 1.0.0 | ||
name: acala-evm-starter | ||
version: 1.0.0 | ||
runner: | ||
node: | ||
name: "@subql/node" | ||
version: "*" | ||
query: | ||
name: "@subql/query" | ||
version: "*" | ||
description: A basic Acala EVM example | ||
repository: "https://github.com/subquery/acala-evm-starter" | ||
schema: | ||
file: ./schema.graphql | ||
network: | ||
# The genesis hash of the network (hash of block 0) | ||
chainId: "0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c" | ||
# 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://acala-polkadot.api.onfinality.io/public-ws", | ||
"wss://acala-rpc-0.aca-api.network", | ||
] | ||
# Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing | ||
dictionary: https://explorer.subquery.network/subquery/subquery/acala-dictionary | ||
chaintypes: | ||
file: ./dist/chaintypes.js | ||
dataSources: | ||
- kind: substrate/AcalaEvm | ||
startBlock: 1000000 | ||
processor: | ||
file: "./node_modules/@subql/acala-evm-processor/dist/bundle.js" | ||
options: | ||
abi: erc20 | ||
address: "0x0000000000000000000100000000000000000000" # ACA Token https://blockscout.acala.network/address/0x0000000000000000000100000000000000000000 | ||
assets: | ||
erc20: | ||
file: ./erc20.abi.json | ||
mapping: | ||
file: ./dist/index.js | ||
handlers: | ||
- handler: handleAcalaEvmEvent | ||
kind: substrate/AcalaEvmEvent | ||
filter: | ||
topics: | ||
- "Transfer(address indexed from,address indexed to,uint256 value)" | ||
- null | ||
- null | ||
- null | ||
- handler: handleAcalaEvmCall | ||
kind: substrate/AcalaEvmCall | ||
filter: | ||
function: "approve(address to,uint256 value)" |
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 |
---|---|---|
|
@@ -27,7 +27,7 @@ package-lock.json | |
target/ | ||
dist/ | ||
src/types | ||
project.yaml | ||
# project.yaml | ||
|
||
# JetBrains IDE | ||
.idea/ | ||
|
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
specVersion: 1.0.0 | ||
name: acala-starter | ||
version: 1.0.0 | ||
runner: | ||
node: | ||
name: "@subql/node" | ||
version: "*" | ||
query: | ||
name: "@subql/query" | ||
version: "*" | ||
description: This project can be used as a starting point for developing your SubQuery project. It indexes all transfers on Acala network | ||
repository: "https://github.com/subquery/acala-subql-starter" | ||
schema: | ||
file: ./schema.graphql | ||
network: | ||
# The genesis hash of the network (hash of block 0) | ||
chainId: "0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c" | ||
# 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://acala-polkadot.api.onfinality.io/public-ws", | ||
"wss://acala-rpc-0.aca-api.network", | ||
] | ||
# Optionally provide the HTTP endpoint of a full chain dictionary to speed up processing | ||
dictionary: "https://api.subquery.network/sq/subquery/acala-dictionary" | ||
chaintypes: | ||
file: ./dist/chaintypes.js | ||
dataSources: | ||
- kind: substrate/Runtime | ||
startBlock: 1 | ||
mapping: | ||
file: ./dist/index.js | ||
handlers: | ||
# - handler: handleBlock | ||
# kind: substrate/BlockHandler | ||
# - handler: handleCall | ||
# kind: substrate/CallHandler | ||
# filter: | ||
# method: | ||
# module: balances | ||
# method: Deposit | ||
# success: true | ||
- handler: handleEvent | ||
kind: substrate/EventHandler | ||
filter: | ||
module: balances | ||
method: Transfer |
Oops, something went wrong.