This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add changes for manager and strategies Add Deposit and Withdraw tracking Add Claimed Performance Fee Remove Trends
- Loading branch information
Showing
31 changed files
with
753 additions
and
510 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
# dev = local ensonet | ||
# prod = remote ensonet | ||
MODE=dev | ||
MODE="dev" | ||
|
||
# Only needed if MODE=dev | ||
INFURA_API_KEY= | ||
MNEMONIC= | ||
ARCHIVE_NODE= | ||
INFURA_API_KEY="" | ||
MNEMONIC="" | ||
ARCHIVE_NODE="" | ||
|
||
# Only needed if MODE=prod | ||
ENSONET_URL= | ||
# Only needed deploying directly (without docker) | ||
GRAPH_ADMIN_URL="http://localhost:8020" | ||
IPFS_URL="http://localhost:5001" | ||
# If MODE=prod, only this variable is needed! (remote ensonet) | ||
ENSONET_URL="http://localhost:3000" |
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,35 @@ | ||
name: Deploy Enso Subgraph | ||
|
||
on: [push] | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy on EC2 Instance | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Enso Subgraph | ||
uses: actions/checkout@v1 | ||
- name: Deploy to my EC2 instance | ||
uses: easingthemes/[email protected] | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.EC2_SSH_KEY }} | ||
REMOTE_HOST: '18.220.98.192' | ||
REMOTE_USER: 'ubuntu' | ||
TARGET: '/home/ubuntu/enso-subgraph' | ||
- name: Run Enso Subgraph | ||
env: | ||
MODE: prod | ||
ENSONET_URL: https://testnet.enso.finance | ||
uses: appleboy/ssh-action@master | ||
with: | ||
envs: MODE,ENSONET_URL | ||
host: '18.220.98.192' | ||
username: 'ubuntu' | ||
key: ${{ secrets.EC2_SSH_KEY }} | ||
script: | | ||
export MODE=$MODE | ||
export ENSONET_URL=$ENSONET_URL | ||
cd /home/ubuntu/enso-subgraph | ||
yarn | ||
yarn start |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ generated | |
# Ignore the files generated by templates | ||
subgraph.yaml | ||
src/addresses.ts | ||
data | ||
data |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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
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
Oops, something went wrong.