-
Notifications
You must be signed in to change notification settings - Fork 19
Migration frax subgraph #81
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
build/ | ||
generated/ | ||
node_modules/ |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file isn't necessary in the public repository |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint"], | ||
"extends": ["plugin:@typescript-eslint/recommended", "prettier", "prettier/@typescript-eslint"] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "CLI deploy" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
projectName: | ||
description: "Project name" | ||
required: true | ||
type: string | ||
jobs: | ||
deploy: | ||
name: CLI Deploy | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: DEPLOYMENT | ||
env: | ||
SUBQL_ACCESS_TOKEN: ${{ secrets.SUBQL_ACCESS_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
- run: yarn | ||
- name: Codegen | ||
run: yarn codegen | ||
- name: Version | ||
run: npx subql --version | ||
- name: repo | ||
run: echo ${{github.repository}} | ||
- name: Publish and Deploy | ||
run: | | ||
sh .github/workflows/scripts/publish-deploy.sh -o ${{github.repository}} -p ${{github.event.inputs.projectName}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: PR | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- ".github/workflows/**" | ||
jobs: | ||
pr: | ||
name: pr | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
- run: yarn | ||
- name: Codegen | ||
run: yarn codegen | ||
- name: Build | ||
run: yarn build | ||
- name: Install subql-node-ethereum | ||
run: yarn global add @subql/node-ethereum | ||
- name: Run tests with Subquery Node | ||
run: subql-node-ethereum test -f ${{ github.workspace }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
while getopts p:o: flag | ||
do | ||
case "${flag}" in | ||
p) PROJECTNAME=${OPTARG};; | ||
o) ORG=${OPTARG};; | ||
*) echo "Usage: $0 [-p projectname] [-o org]" && exit 1;; | ||
esac | ||
done | ||
|
||
IPFSCID=$(npx subql publish -o -f .) | ||
|
||
npx subql deployment:deploy -d --ipfsCID="$IPFSCID" --projectName="${PROJECTNAME}" --org="${ORG%/*}" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# These are some examples of commonly ignored file patterns. | ||
# You should customize this list as applicable to your project. | ||
# Learn more about .gitignore: | ||
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore | ||
|
||
# Node artifact files | ||
node_modules/ | ||
dist/ | ||
|
||
# lock files | ||
yarn.lock | ||
package-lock.json | ||
|
||
# Compiled Java class files | ||
*.class | ||
|
||
# Compiled Python bytecode | ||
*.py[cod] | ||
|
||
# Log files | ||
*.log | ||
|
||
# Package files | ||
*.jar | ||
|
||
# Generated files | ||
target/ | ||
dist/ | ||
src/types | ||
project.yaml | ||
|
||
# JetBrains IDE | ||
.idea/ | ||
|
||
# Unit test reports | ||
TEST*.xml | ||
|
||
# Generated by MacOS | ||
.DS_Store | ||
|
||
# Generated by Windows | ||
Thumbs.db | ||
|
||
# Applications | ||
*.app | ||
*.exe | ||
*.war | ||
|
||
# Large media files | ||
*.mp4 | ||
*.tiff | ||
*.avi | ||
*.flv | ||
*.mov | ||
*.wmv | ||
|
||
.data | ||
.yarn | ||
|
||
.DS_Store |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please consider relocating this to the designated section in |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
pairs(first: 30) { | ||
nodes { | ||
token0 { | ||
symbol | ||
} | ||
token1 { | ||
symbol | ||
} | ||
token0Price | ||
token1Price | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file isn't necessary in the public repository