Skip to content

Commit

Permalink
Kovan config
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby Kreiselmaier committed Jun 1, 2022
1 parent 06d3562 commit 0eca721
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 34 deletions.
8 changes: 0 additions & 8 deletions .env

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ yarn lint

## Settings

- [x] Set endpoints, and subgraph-name in `.env` (for deployment to production graph-node) or `.env.local` (for deployment to local test graph-node) files. Check the `environments` folder for templates.
- [x] Make sure `subgraph.yaml` refers to the same contracts and the same blockchain as `.env` / `.env.local`. Check the `manifests` folder for templates.
- [x] Set endpoints, and subgraph-name in `.env.local` (for deployment to local test graph-node) files.
- [x] Make sure `subgraph.yaml` refers to the same contracts and the same blockchain as `.env.local`. Check the `manifests` folder for templates.
- [x] Ensure that the startblocks are the creation blocks of the related contracts in `subgraph.yaml`
- [x] Set the correct chain in `src/config.ts` according to the blockchain you're intending to use by using comments.

Expand Down
8 changes: 0 additions & 8 deletions environments/.env.kovan

This file was deleted.

8 changes: 0 additions & 8 deletions environments/.env.rinkeby

This file was deleted.

6 changes: 2 additions & 4 deletions src/mappings/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ export const DEFAULT_ADMIN_ROLE =
'0x1effbbff9c66c5e59634f24fe842750c60d18891155c32dd155fc2d661a4c86d' // bytes32(keccak256(DEFAULT_ADMIN_ROLE))
export const RELAYER_ROLE = '0xe2b7fb3b832174769106daebcfd6d1970523240dda11281102db9363b83b0dc4' // bytes32(keccak256(RELAYER_ROLE))

/* Rinkeby */
/* Rinkeby
export const CHAIN_ID = 4
export const BRIDGE = '0x638285e837db7124ff0947251c6f20ceeb2645df'
/* Kovan
/* Kovan */

export const CHAIN_ID = 42
export const BRIDGE = '0x638285e837db7124ff0947251c6f20ceeb2645df'
*/
8 changes: 4 additions & 4 deletions subgraph.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
specVersion: 0.0.4
description: The Moonbase Alpha Bridge subgraph indexes all activity related to GMI Farming on Rinkeby
description: The Moonbase Alpha Bridge subgraph indexes all activity related to GMI Farming on Kovan
repository: https://github.com/TobyKreiselmaier/Moonbase-Alpha-Bridge-Subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Bridge
network: rinkeby
network: kovan
source:
address: '0x638285e837db7124ff0947251c6f20ceeb2645df' # MoonbeamBridge on Rinkeby
address: '0x638285e837db7124ff0947251c6f20ceeb2645df' # MoonbeamBridge on Kovan
abi: Bridge
startBlock: 8660132 # contract creation
startBlock: 25101423 # contract creation
mapping:
kind: ethereum/events
apiVersion: 0.0.6
Expand Down

0 comments on commit 0eca721

Please sign in to comment.