Skip to content

Commit a556391

Browse files
committed
fix: remove latest Env type
- this env does not exist Ticket: CE-5989
1 parent e73202d commit a556391

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

modules/bitgo/test/unit/bitgo.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ describe('BitGo Prototype Methods', function () {
101101

102102
it('allows disabling of HMAC request verification only for dev environments', function () {
103103
(() => TestBitGo.decorate(BitGo, { env: 'dev', hmacVerification: false })).should.not.throw();
104-
(() => TestBitGo.decorate(BitGo, { env: 'latest', hmacVerification: false })).should.not.throw();
105104
(() => TestBitGo.decorate(BitGo, { env: 'adminDev', hmacVerification: false })).should.not.throw();
106105
(() => TestBitGo.decorate(BitGo, { env: 'adminStaging', hmacVerification: false })).should.not.throw();
107106
(() => TestBitGo.decorate(BitGo, { env: 'local', hmacVerification: false })).should.not.throw();

modules/bitgo/test/v2/unit/environments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { AliasEnvironments } from '@bitgo/sdk-core';
44

55
describe('Environments', () => {
66
it('should swap alias environments for supported environments', () => {
7-
const aliasEnvs = ['production', 'msProd', 'msTest', 'msDev', 'msLatest'];
7+
const aliasEnvs = ['production', 'msProd', 'msTest', 'msDev'];
88
for (const aliasEnv of aliasEnvs) {
99
const bitgo = TestBitGo.decorate(BitGo, { env: aliasEnv } as any);
1010
bitgo.getEnv().should.eql(AliasEnvironments[aliasEnv]);

modules/sdk-core/src/bitgo/environments.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ export type EnvironmentName =
108108
| 'staging'
109109
| 'test'
110110
| 'dev'
111-
| 'latest'
112111
| 'local'
113112
| 'localNonSecure'
114113
| 'mock'
@@ -120,7 +119,7 @@ export type EnvironmentName =
120119
| 'custom'
121120
| 'branch';
122121

123-
export type AliasEnvironmentName = 'production' | 'msProd' | 'msTest' | 'msDev' | 'msLatest';
122+
export type AliasEnvironmentName = 'production' | 'msProd' | 'msTest' | 'msDev';
124123

125124
export type Environments = { [k in EnvironmentName]: Environment };
126125

@@ -130,7 +129,6 @@ export const AliasEnvironments: { [k in AliasEnvironmentName]: EnvironmentName }
130129
msProd: 'prod',
131130
msTest: 'test',
132131
msDev: 'dev',
133-
msLatest: 'latest',
134132
};
135133

136134
const mainnetBase: EnvironmentTemplate = {
@@ -293,10 +291,6 @@ export const Environments: Environments = {
293291
uri: 'https://app.bitgo-dev.com',
294292
stellarFederationServerUrl: 'https://app.bitgo-dev.com/api/v2/txlm/federation',
295293
}),
296-
latest: Object.assign({}, devBase, {
297-
uri: 'https://app.bitgo-latest.com',
298-
stellarFederationServerUrl: 'https://app.bitgo-latest.com/api/v2/xlm/federation',
299-
}),
300294
staging: Object.assign({}, testnetBase, {
301295
uri: 'https://app.bitgo-staging.com',
302296
stellarFederationServerUrl: 'https://app.bitgo-staging.com/api/v2/txlm/federation',
@@ -329,7 +323,7 @@ export const Environments: Environments = {
329323
uri: 'https://admin.bitgo-dev.com',
330324
stellarFederationServerUrl: 'https://admin.bitgo-dev.com/api/v2/txlm/federation',
331325
}),
332-
adminStaging: Object.assign({}, devBase, {
326+
adminStaging: Object.assign({}, testnetBase, {
333327
uri: 'https://admin.bitgo-staging.com',
334328
stellarFederationServerUrl: 'https://admin.bitgo-staging.com/api/v2/xlm/federation',
335329
}),

0 commit comments

Comments
 (0)