Skip to content

Commit

Permalink
magicswap: add dev deployment to base sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
alecananian committed Dec 15, 2024
1 parent 9f8e09f commit 109f174
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
- name: Generate code for DEV (Sepolia)
if: inputs.environment == 'Development (Sepolia)'
run: npm run generate:dev-sepolia --if-present
- name: Generate code for DEV (Base Sepolia)
if: inputs.environment == 'Development (Base Sepolia)'
run: npm run generate:dev-base-sepolia --if-present
- name: Generate code for PROD
if: inputs.environment == 'Production'
run: npm run generate:prod --if-present
Expand All @@ -61,6 +64,9 @@ jobs:
- name: Deploy to DEV (Sepolia)
if: inputs.environment == 'Development (Sepolia)'
run: npx goldsky subgraph deploy ${{ inputs.subgraph }}-dev-sepolia/${{ inputs.version }} --token ${{ secrets.GOLDSKY_DEPLOY_KEY }}
- name: Deploy to DEV (Base Sepolia)
if: inputs.environment == 'Development (Base Sepolia)'
run: npx goldsky subgraph deploy ${{ inputs.subgraph }}-dev-base-sepolia/${{ inputs.version }} --token ${{ secrets.GOLDSKY_DEPLOY_KEY }}
- name: Deploy to PROD
if: inputs.environment == 'Production'
run: npx goldsky subgraph deploy ${{ inputs.subgraph }}/${{ inputs.version }} --token ${{ secrets.GOLDSKY_DEPLOY_KEY }}
15 changes: 15 additions & 0 deletions packages/config/src/base-sepolia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"network": "base-sepolia",
"burner_address": "0x0000000000000000000000000000000000000000",

"magicswapv1_start_block": 19260859,
"magicswapv1_uniswapv2_factory_address": "0x0000000000000000000000000000000000000000",
"magicswapv2_start_block": 19260859,
"magicswapv2_nft_vault_factory_address": "0x0000000000000000000000000000000000000000",
"magicswapv2_nft_vault_factory_v2_address": "0xa0ca75c44138c7fe07ce5d1405193c9d0a31e91a",
"magicswapv2_uniswapv2_factory_address": "0xce649351edee697f28f380345211ea7467af9e02",
"magicswapv2_router_address": "0x4043b1c99838945555341c0d5e101e75f143a660",
"magicswapv2_staking_address": "0x0000000000000000000000000000000000000000",
"magic_usd_price_feed_address": "0x0000000000000000000000000000000000000000",
"weth_address": "0x74158ec2ad19Df364430C6404B7dA6E5284645BA"
}
3 changes: 2 additions & 1 deletion packages/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"prepare:arbitrum": "mustache ../../node_modules/@treasure/subgraph-config/src/arbitrum.json src/index.template.ts > index.ts",
"prepare:arbitrum-sepolia": "mustache ../../node_modules/@treasure/subgraph-config/src/arbitrum-sepolia.json src/index.template.ts > index.ts",
"prepare:treasure-topaz": "mustache ../../node_modules/@treasure/subgraph-config/src/treasure-topaz.json src/index.template.ts > index.ts",
"prepare:sepolia": "mustache ../../node_modules/@treasure/subgraph-config/src/sepolia.json src/index.template.ts > index.ts"
"prepare:sepolia": "mustache ../../node_modules/@treasure/subgraph-config/src/sepolia.json src/index.template.ts > index.ts",
"prepare:base-sepolia": "mustache ../../node_modules/@treasure/subgraph-config/src/base-sepolia.json src/index.template.ts > index.ts"
}
}
1 change: 1 addition & 0 deletions subgraphs/magicswap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"generate:dev": "npm run prepare:arbitrum-sepolia --prefix=../../packages/constants && mustache ../../node_modules/@treasure/subgraph-config/src/arbitrum-sepolia.json template.yaml > subgraph.yaml && graph codegen",
"generate:dev-topaz": "npm run prepare:treasure-topaz --prefix=../../packages/constants && mustache ../../node_modules/@treasure/subgraph-config/src/treasure-topaz.json template.yaml > subgraph.yaml && graph codegen",
"generate:dev-sepolia": "npm run prepare:sepolia --prefix=../../packages/constants && mustache ../../node_modules/@treasure/subgraph-config/src/sepolia.json template.yaml > subgraph.yaml && graph codegen",
"generate:dev-base-sepolia": "npm run prepare:base-sepolia --prefix=../../packages/constants && mustache ../../node_modules/@treasure/subgraph-config/src/base-sepolia.json template.yaml > subgraph.yaml && graph codegen",
"generate:prod": "npm run prepare:arbitrum --prefix=../../packages/constants && mustache ../../node_modules/@treasure/subgraph-config/src/arbitrum.json template.yaml > subgraph.yaml && graph codegen"
}
}

0 comments on commit 109f174

Please sign in to comment.