Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
Set whale version to v0 (#153)
Browse files Browse the repository at this point in the history
* Set whale version to 0

* Change PathPrefix

* Added v0 to more places
  • Loading branch information
monstrobishi authored Sep 7, 2021
1 parent fad03de commit ec21520
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/e2e/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ services:
WHALE_DATABASE_PROVIDER: level
WHALE_DATABASE_LEVEL_LOCATION: .level/index
WHALE_NETWORK: regtest
WHALE_VERSION: v0
labels:
- "traefik.http.services.whale.loadbalancer.server.port=3000"
- "traefik.http.routers.whale.rule=PathPrefix(`/v{[0-9]+}.{[0-9]+}/regtest/`)"
- "traefik.http.routers.whale.rule=PathPrefix(`/v{[0-9]+}/regtest/`)"
- "traefik.http.routers.whale.entrypoints=web"
3 changes: 2 additions & 1 deletion packages/salmon-oracles-functions/src/whaleOraclesManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export class WhaleOraclesManager extends OraclesManager {
): WhaleOraclesManager {
const whaleClient = new WhaleApiClient({
url,
network
network,
version: 'v0'
})

const hdNode = new WalletClassic(WIF.asEllipticPair(privKey))
Expand Down
3 changes: 2 additions & 1 deletion packages/salmon-provider-dex/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export class DexPriceProvider implements PriceProvider {
const env: EnvironmentConfig = await getEnvironmentConfig()
const client = new WhaleApiClient({
url: env.oceanUrl,
network: env.network
network: env.network,
version: 'v0'
})

const pairs: poolpairs.PoolPairData[] = []
Expand Down

0 comments on commit ec21520

Please sign in to comment.