File tree Expand file tree Collapse file tree 5 files changed +12
-2
lines changed Expand file tree Collapse file tree 5 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ Subgraph for Matic contracts
3
3
4
4
Please take a look at [ Graph protocol] ( https://github.com/graphprotocol/graph-node ) for more information.
5
5
6
+ ## Polygon hosted node endpoints
7
+
8
+ ** Root**
9
+ - Mainnet: ` https://thegraph.com/hosted-service/subgraph/maticnetwork/mainnet-root-subgraphs `
10
+ - Goerli: ` https://thegraph.com/hosted-service/subgraph/maticnetwork/mumbai-root-subgraphs `
11
+
6
12
## For Mumbai hosted node endpoints
7
13
- Graph node: ` https://mumbai-graph.matic.today `
8
14
- GraphQL endpoint: ` https://api.mumbai-graph.matic.today/subgraphs/name/<YOUR_GITHUB_USERNAME>/<SUBGRAPH_NAME>/graphql `
Original file line number Diff line number Diff line change 1
1
{
2
2
"network" : " goerli" ,
3
3
"subgraphId" : " QmPuwKiewn7sczRV6LwGPWuNtDZTscKECz6NB6V1gE57bm" ,
4
- "graftingStartBlock" : 5996697 ,
4
+ "graftingStartBlock" : 2815580 ,
5
5
"contracts" : {
6
6
"rootChain" : {
7
7
"address" : " 0x2890bA17EfE978480615e330ecB65333b880928e" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"network" : " mainnet" ,
3
3
"subgraphId" : " QmQTfDsLaqbT8VzCAE8zLDi4jjzXxDSkgw79r6VeLemv7b" ,
4
- "graftingStartBlock" : 13977920 ,
4
+ "graftingStartBlock" : 10167760 ,
5
5
"contracts" : {
6
6
"rootChain" : {
7
7
"address" : " 0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287" ,
Original file line number Diff line number Diff line change @@ -19,8 +19,10 @@ type StateSync @entity {
19
19
depositorOrRootToken : String !
20
20
depositedTokenOrChildToken : String !
21
21
data : String !
22
+ logIndex : String !
22
23
transactionHash : Bytes !
23
24
timestamp : BigInt !
25
+ blockNumber : BigInt !
24
26
}
25
27
26
28
type StateRegistration @entity {
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ export function handleStateSynced(event: StateSynced): void {
13
13
14
14
entity . transactionHash = event . transaction . hash
15
15
entity . timestamp = event . block . timestamp
16
+ entity . blockNumber = event . block . number
17
+ entity . logIndex = event . logIndex . toString ( )
16
18
17
19
// Attempting to create an instance of `Decoder` smart contract
18
20
// to be used for decoding valid state sync data
You can’t perform that action at this time.
0 commit comments