Skip to content

Commit

Permalink
add changi on configs
Browse files Browse the repository at this point in the history
  • Loading branch information
pierregee committed Aug 25, 2023
1 parent ed9839d commit d92b702
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions apps/legacy-api/src/pipes/NetworkValidationPipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
PipeTransform
} from '@nestjs/common'

export type SupportedNetwork = 'mainnet' | 'testnet' | 'devnet' | 'regtest'
export type SupportedNetwork = 'mainnet' | 'testnet' | 'devnet' | 'regtest' | 'changi'

@Injectable()
export class NetworkValidationPipe implements PipeTransform {
Expand All @@ -14,7 +14,8 @@ export class NetworkValidationPipe implements PipeTransform {
'mainnet',
'testnet',
'devnet',
'regtest'
'regtest',
'changi'
])

transform (value: any, metadata: ArgumentMetadata): any {
Expand Down
2 changes: 1 addition & 1 deletion apps/whale-api/src/app.configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function ENV_VALIDATION_SCHEMA (): any {
return Joi.object({
NODE_ENV: Joi.string().optional(),
WHALE_VERSION: Joi.string().optional(),
WHALE_NETWORK: Joi.string().valid('mainnet', 'testnet', 'regtest', 'devnet').default('regtest'),
WHALE_NETWORK: Joi.string().valid('mainnet', 'testnet', 'regtest', 'devnet', 'changi').default('regtest'),
WHALE_DEFID_URL: Joi.string().optional(),
WHALE_DATABASE_PROVIDER: Joi.string().optional(),
WHALE_DATABASE_LEVEL_LOCATION: Joi.string().optional()
Expand Down
2 changes: 1 addition & 1 deletion packages/ocean-api-client/src/OceanApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface OceanApiClientOptions {
/**
* Network that ocean client is configured to
*/
network?: 'mainnet' | 'testnet' | 'devnet' | 'regtest' | string
network?: 'mainnet' | 'testnet' | 'devnet' | 'regtest' | 'changi' | string
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/testcontainers/src/containers/DeFiDContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { NativeChainRpc } from '../index'
/**
* Types of network as per https://github.com/DeFiCh/ain/blob/bc231241/src/chainparams.cpp#L825-L836
*/
type Network = 'mainnet' | 'testnet' | 'devnet' | 'regtest'
type Network = 'mainnet' | 'testnet' | 'devnet' | 'regtest' | 'changi'

/**
* Mandatory options to start defid with
Expand Down

0 comments on commit d92b702

Please sign in to comment.