Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add production environment for subgraph #277

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/deploy-subgraph-to-mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Deploy Subgraph to Mainnet
on:
push:
branches:
- main
- staging
- development
paths:
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@
"lodash": "^4.17.21",
"sinon": "^15.1.0",
"tree-kill": "^1.2.2",
"@eonian/upgradeable": "0.2.0"
"@eonian/upgradeable": "0.2.1"
}
}
33 changes: 29 additions & 4 deletions packages/subgraph/deploy/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ files:
- output: eonian-sepolia-testnet.yaml
data:
network: sepolia
description: The subgraph of Eonian yield aggregator protocol for Sepolia testnet
description: The subgraph of Eonian savings account protocol for Sepolia testnet
schema: ../../schema.graphql
vaults:
- name: "USDT Vault"
Expand All @@ -27,7 +27,7 @@ files:
- output: eonian-bsc-development.yaml
data:
network: bsc
description: The subgraph of Eonian yield aggregator protocol for Binance Smart Chain development environment
description: The subgraph of Eonian savings account protocol for Binance Smart Chain development environment
schema: ../../schema.graphql
vaults:
- name: "USDT Vault"
Expand All @@ -52,7 +52,7 @@ files:
- output: eonian-bsc-staging.yaml
data:
network: bsc
description: The subgraph of Eonian yield aggregator protocol for Binance Smart Chain staging environment
description: The subgraph of Eonian savings account protocol for Binance Smart Chain staging environment
schema: ../../schema.graphql
vaults:
- name: "USDT Vault"
Expand All @@ -74,12 +74,37 @@ files:
eventHandlers:
file: ../../src/event-handlers.ts

- output: eonian-bsc-production.yaml
data:
network: bsc
description: The production subgraph of Eonian savings account protocol for Binance Smart Chain
schema: ../../schema.graphql
vaults:
- name: "USDT Vault"
address: "0xaBfCaA1c65d78C2f1D51fd796290029f976192B3"
startBlock: 40594939
- name: "USDC Vault"
address: "0x5340f5a1B7b847Ae71865D2D7B200dc8a06a9ffC"
startBlock: 40594891
- name: "WETH Vault"
address: "0x03A49bc893bBBEec9181b02C2D6abD6eb8e10311"
startBlock: 40595023
- name: "BTCB Vault"
address: "0x33C29951844aAa19524F51177cF725D6A0D720d4"
startBlock: 40594975
abis:
Vault: ../../abis/VaultImplementation.json
ERC20: ../../abis/ERC20.json
ChainLinkPriceFeed: ../../abis/ChainLinkPriceFeed.json
eventHandlers:
file: ../../src/event-handlers.ts

# used primarly for testing
# matchstick framework doesn't allow to pass the path to the schema
- output: local.yaml
data:
network: sepolia
description: The subgraph of Eonian yield aggregator protocol for Sepolia testnet
description: The subgraph of Eonian savings account protocol for Sepolia testnet
schema: ./schema.graphql
vaults:
- name: "USDT Vault"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
specVersion: 0.0.5
description: The subgraph of Eonian yield aggregator protocol for Binance Smart
specVersion: 1.0.0
description: The subgraph of Eonian savings account protocol for Binance Smart
Chain development environment
repository: https://github.com/eonian-core/farm
indexerHints:
prune: auto
schema:
file: ../../schema.graphql
dataSources:
Expand Down
Loading