@@ -44,7 +44,6 @@ import type { EncryptionKeysProvider } from '../../encryption/encryption-keys-pr
4444import { DataServiceApiFactory } from '../../dialect-cloud-api/data-service-api-factory' ;
4545import type { DataServiceApi } from '../../dialect-cloud-api/data-service-api' ;
4646import { DataServiceWalletsApiClientV1 } from '../../dialect-cloud-api/data-service-wallets-api.v1' ;
47- import { isBoolean } from '../../utils/typecheck' ;
4847
4948export class InternalDialectSdk < ChainSdk extends BlockchainSdk >
5049 implements DialectSdk < ChainSdk >
@@ -273,6 +272,7 @@ export class DialectSdkFactory<ChainSdk extends BlockchainSdk> {
273272 const baseConfig : DialectCloudConfig = {
274273 environment : 'production' ,
275274 url : 'https://dialectapi.to' ,
275+ v2Url : 'https://alerts.dialectapi.to' ,
276276 tokenStore : this . createTokenStore ( ) ,
277277 tokenLifetimeMinutes : this . createTokenLifetime ( ) ,
278278 walletCreation : 'implicit' ,
@@ -283,25 +283,31 @@ export class DialectSdkFactory<ChainSdk extends BlockchainSdk> {
283283 }
284284 if ( environment === 'production' ) {
285285 baseConfig . url = 'https://dialectapi.to' ;
286+ baseConfig . v2Url = 'https://alerts.dialectapi.to' ;
286287 }
287288 if ( environment === 'development' ) {
288289 baseConfig . url = 'https://dev.dialectapi.to' ;
290+ baseConfig . v2Url = 'https://alerts.dev.dialectapi.to' ;
289291 }
290292 if ( environment === 'local-development' ) {
291293 baseConfig . url = 'http://localhost:8080' ;
294+ baseConfig . v2Url = 'http://localhost:3003' ;
292295 }
293296 const dialectCloudEnvironment = this . config . dialectCloud ?. environment ;
294297 if ( dialectCloudEnvironment ) {
295298 baseConfig . environment = dialectCloudEnvironment ;
296299 }
297300 if ( dialectCloudEnvironment === 'production' ) {
298301 baseConfig . url = 'https://dialectapi.to' ;
302+ baseConfig . v2Url = 'https://alerts.dialectapi.to' ;
299303 }
300304 if ( dialectCloudEnvironment === 'development' ) {
301305 baseConfig . url = 'https://dev.dialectapi.to' ;
306+ baseConfig . v2Url = 'https://alerts.dev.dialectapi.to' ;
302307 }
303308 if ( dialectCloudEnvironment === 'local-development' ) {
304309 baseConfig . url = 'http://localhost:8080' ;
310+ baseConfig . v2Url = 'http://localhost:3003' ;
305311 }
306312 if ( this . config . dialectCloud ?. url ) {
307313 baseConfig . url = this . config . dialectCloud . url ;
0 commit comments