Skip to content

Commit

Permalink
fix: (4th Attempt) mantle and mantle-testnet urls (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
MantisClone authored Sep 13, 2023
1 parent 7e4e1cb commit d65d11f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
# Use Mantle Foundation graph node for Mantle Testnet
# Use FuxionX graph node for Mantle
# Use TheGraph Hosted Service for all other networks
url: ${{ matrix.chain == 'mantle-testnet' && 'https://graph.testnet.mantle.xyz/subgraphs/name/request-payments-mantle-testnet' || matrix.chain == 'mantle' && 'https://index.graph.fusionx.finance/subgraphs/name/request-payments-mantle' || format('https://thegraph.com/hosted-service/subgraph/requestnetwork/request-payments-{0}', matrix.chain) }}
url: ${{ matrix.chain == 'mantle-testnet' && 'https://graph.testnet.mantle.xyz/subgraphs/name/requestnetwork/request-payments-mantle-testnet' || matrix.chain == 'mantle' && 'https://index.graph.fusionx.finance/subgraphs/name/requestnetwork/request-payments-mantle' || format('https://thegraph.com/hosted-service/subgraph/requestnetwork/request-payments-{0}', matrix.chain) }}
steps:
- uses: actions/checkout@v3
- name: Get yarn cache directory path
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ Mainnets (all others) require manual approval in [github actions](https://github

#### Manual Deployment

The first time a subgraph is deployed to a non-hosted-service graph node, it needs to be created.

For example:

```bash
yarn graph create --node https://deploy.graph.fusionx.finance requestnetwork/request-payments-mantle
```

For non-EVM deployments like NEAR, use:

```
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"codegen": "graph codegen ./subgraph.goerli.yaml; graph codegen ./subgraph.near.yaml -o ./generated/near/",
"prepare": "yarn subgraph prepare && yarn codegen",
"build": "graph build",
"create-mantle-testnet": "graph create --node https://graph.testnet.mantle.xyz/deploy/ requestnetwork/request-payments-mantle-testnet",
"create-mantle": "graph create --node https://deploy.graph.fusionx.finance requestnetwork/request-payments-mantle",
"create-local": "graph create --node http://localhost:8020/ --access-token \"\" requestnetwork/request-payments-$NETWORK",
"remove-local": "graph remove --node http://localhost:8020/ --access-token \"\" requestnetwork/request-payments-$NETWORK",
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 requestnetwork/request-payments-$NETWORK ./subgraph.$NETWORK.yaml",
Expand Down

0 comments on commit d65d11f

Please sign in to comment.