Skip to content

Commit

Permalink
Merge pull request #76 from Secured-Finance/SF-985-arbitrum-support
Browse files Browse the repository at this point in the history
feat: support Arbitrum [SF-985]
  • Loading branch information
biga816 authored Jan 9, 2024
2 parents be766bb + 7029062 commit 447f3e7
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
- staging-arb
- sepolia
- mainnet
- arbitrum-sepolia
- arbitrum-one
push:
branches:
Expand Down
10 changes: 10 additions & 0 deletions deployment.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,15 @@
"isMajorUpdate": false,
"isMinorUpdate": false,
"version": "0.0.2"
},
"arbitrum-sepolia": {
"version": "0.0.0",
"isMajorUpdate": false,
"isMinorUpdate": false
},
"arbitrum-one": {
"version": "0.0.0",
"isMajorUpdate": false,
"isMinorUpdate": false
}
}
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"deploy:staging-arb": "cat ./subgraph.staging-arb.yaml && graph deploy sf-protocol-stg-arb-sepolia ./subgraph.staging-arb.yaml --studio --output-dir ./build/staging-arb --version-label",
"deploy:sepolia": "cat ./subgraph.sepolia.yaml && graph deploy sf-protocol-prd-sepolia ./subgraph.sepolia.yaml --studio --output-dir ./build/sepolia --version-label",
"deploy:mainnet": "cat ./subgraph.mainnet.yaml && graph deploy sf-protocol-prd-mainnet ./subgraph.mainnet.yaml --studio --output-dir ./build/mainnet --version-label",
"deploy:arbitrum-one": "cat ./subgraph.arbitrum-one.yaml && graph deploy sf-protocol-prd-arbitrum-one ./subgraph.arbitrum-one.yaml --studio --output-dir ./build/arbitrum-one --version-label",
"deploy:arbitrum-sepolia": "cat ./subgraph.arbitrum-sepolia.yaml && graph deploy sf-protocol-prd-arb-sepolia ./subgraph.arbitrum-sepolia.yaml --studio --output-dir ./build/arbitrum-sepolia --version-label",
"deploy:arbitrum-one": "cat ./subgraph.arbitrum-one.yaml && graph deploy sf-protocol-prd-arb-one ./subgraph.arbitrum-one.yaml --studio --output-dir ./build/arbitrum-one --version-label",
"prepublish": "npm run codegen",
"update-subgraphrc": "ts-node ./scripts/update-subgraphrc.ts",
"format": "prettier --config ./.prettierrc.json --check '**/*.{js,jsx,ts,tsx,json}' '*.{js,jsx,ts,tsx,json}'",
Expand All @@ -26,7 +27,7 @@
"devDependencies": {
"@graphprotocol/graph-cli": "0.62.0",
"@graphprotocol/graph-ts": "0.31.0",
"@secured-finance/contracts": "1.0.1-beta.1",
"@secured-finance/contracts": "1.0.1",
"@types/js-yaml": "4.0.5",
"@types/node": "16.18.67",
"js-yaml": "4.1.0",
Expand Down
1 change: 1 addition & 0 deletions scripts/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const arrowedNetworks = [
'staging-arb',
'sepolia',
'mainnet',
'arbitrum-sepolia',
'arbitrum-one',
] as const;
type Network = (typeof arrowedNetworks)[number];
Expand Down
1 change: 1 addition & 0 deletions scripts/update-subgraphrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const arrowedNetworks = [
'staging-arb',
'sepolia',
'mainnet',
'arbitrum-sepolia',
'arbitrum-one',
] as const;
type Network = (typeof arrowedNetworks)[number];
Expand Down

0 comments on commit 447f3e7

Please sign in to comment.