Skip to content

Commit

Permalink
changes to accomodate Mainnet APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisom2912 committed Feb 5, 2024
1 parent ce7e483 commit 25e5128
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ title: Supported Chains and Tokens
sidebar_position: 6
---

import APIData from '../../../../src/utils/GatewayAddressTable' ;

## Mainnet
For supported chains on mainnet, please refer below -
<APIData
apiData={[
{ contractConfigUrl: 'https://sentry.lcd.routerprotocol.com/router-protocol/router-chain/multichain/contract_config',
chainConfigUrl: 'https://sentry.lcd.routerprotocol.com/router-protocol/router-chain/multichain/chain_config',
networkType: 'Mainnet', contractType: 'VOYAGER' }
]}
/>

:::info
All valid token addresses can be passed in the API.
:::

## Testnet

### Supported Chains
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ main()
```

:::note
Mainnet URL - https://api-beta.pathfinder.routerprotocol.com/api/v2

In case you want source / destination token to be native token, then the following value should be used for token address - 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
:::

Expand Down
14 changes: 14 additions & 0 deletions static/api/PATHFINDER.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ info:
servers:
- url: https://api.pf.testnet.routerprotocol.com/api/v2
description: Router Protocol Testnet
- url: https://api-beta.pathfinder.routerprotocol.com/api/v2
description: Router Protocol Mainnet
tags:
- name: Quote
description: Requesting a quote from the Pathfinder algorithm
Expand Down Expand Up @@ -390,6 +392,12 @@ components:
partnerId:
type: number
example: 0
estimatedTime:
type: number
example: 40
slippageTolerance:
type: number
example: 1
StatusResponse:
type: object
required:
Expand Down Expand Up @@ -702,6 +710,12 @@ components:
partnerId:
type: string
example: "0"
estimatedTime:
type: number
example: 40
slippageTolerance:
type: number
example: 1
senderAddress:
type: string
example: "0x2B351b7bbC86ab5DF433539fE907f8EE4DE1B964"
Expand Down

0 comments on commit 25e5128

Please sign in to comment.