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

Commit

Permalink
added new network playground (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh authored May 25, 2021
1 parent f8b9702 commit baff402
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"start:prod": "node dist/main",
"test": "jest",
"test:watch": "jest --watch",
"test:ci": "jest --ci --coverage",
"test:ci": "jest --ci --coverage --maxWorkers=4",
"packages:build": "lerna run build",
"packages:version": "lerna version $1 --yes --no-push --no-git-tag-version",
"packages:publish:next": "lerna exec -- npm publish --tag next --access public",
Expand Down
5 changes: 3 additions & 2 deletions packages/whale-api-client/src/whale.api.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@ export interface WhaleApiClientOptions {

/**
* Network that whale client is configured to
* Playground is a special network for testing, see https://github.com/DeFiCh/playground
*/
network?: 'mainnet' | 'testnet' | 'regtest'
network?: 'mainnet' | 'testnet' | 'regtest' | 'playground'
}

/**
* WhaleApiClient default options
*/
export const DefaultOptions: WhaleApiClientOptions = {
url: 'https://whale.ocean.defichain.com',
url: 'https://ocean.defichain.com',
timeout: 60000,
version: 'v1',
network: 'mainnet'
Expand Down
3 changes: 2 additions & 1 deletion src/module.api/guards/network.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export class NetworkGuard implements CanActivate {
static available: string[] = [
'mainnet',
'testnet',
'regtest'
'regtest',
'playground'
]

private readonly network: string
Expand Down

0 comments on commit baff402

Please sign in to comment.