-
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.
* frontier -> multi-chain * Update Astar/astar-evm-starter/README.md * Update Moonbeam/moonbeam-evm-starter/README.md * Update Peaq/peaq-starter/README.md --------- Co-authored-by: James Bayly <[email protected]>
- Loading branch information
1 parent
59d25e2
commit b1174f6
Showing
68 changed files
with
1,115 additions
and
1,470 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
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
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,41 @@ | ||
# // Auto-generated , DO NOT EDIT | ||
specVersion: 1.0.0 | ||
version: 0.0.1 | ||
name: astar-evm-starter | ||
description: >- | ||
This project can be use as a starting point for developing your new Ethereum | ||
SubQuery project | ||
runner: | ||
node: | ||
name: "@subql/node-ethereum" | ||
version: ">=3.0.0" | ||
query: | ||
name: "@subql/query" | ||
version: "*" | ||
schema: | ||
file: ./schema.graphql | ||
network: | ||
chainId: "592" | ||
endpoint: | ||
- wss://astar.api.onfinality.io/public-ws | ||
- wss://rpc.astar.network | ||
dataSources: | ||
- kind: ethereum/Runtime | ||
startBlock: 970733 | ||
options: | ||
abi: erc20 | ||
assets: | ||
erc20: | ||
file: ./abis/erc20.abi.json | ||
mapping: | ||
file: ./dist/index.js | ||
handlers: | ||
- handler: handleEVMLog | ||
kind: ethereum/LogHandler | ||
filter: | ||
topics: | ||
- Transfer(address indexed from,address indexed to,uint256 value) | ||
- handler: handleEVMTransaction | ||
kind: ethereum/TransactionHandler | ||
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
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 |
---|---|---|
@@ -1,17 +1,28 @@ | ||
type Transaction @entity { | ||
id: ID! # Unique identifier | ||
transactionHash: String! | ||
value: BigInt | ||
to: String | ||
from: String | ||
blockHeight: String | ||
# To improve query performance, we strongly suggest adding indexes to any field that you plan to filter or sort by | ||
# Add the `@index` or `@index(unique: true)` annotation after any non-key field | ||
# https://academy.subquery.network/build/graphql.html#indexing-by-non-primary-key-field | ||
|
||
type ERC20TokenTransfer @entity { | ||
id: ID! | ||
value: BigInt! | ||
to: String! | ||
from: String! | ||
contractAddress: String! | ||
} | ||
|
||
type Approval @entity { | ||
id: ID! # Unique identifier | ||
value: BigInt | ||
type ERC20Approval @entity { | ||
id: ID! | ||
value: BigInt! | ||
owner: String! | ||
spender: String! | ||
contractAddress: String! | ||
} | ||
|
||
type SubstrateTransfer @entity { | ||
id: ID! | ||
amount: BigInt! | ||
blockNumber: Int! | ||
date: Date! | ||
from: String! | ||
to: String! | ||
} |
Oops, something went wrong.