Skip to content

Commit ae8cbab

Browse files
authored
Merge pull request #6109 from BitGo/aloe/addAdminStaging
2 parents 96ce67a + 2d4a6c3 commit ae8cbab

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

modules/bitgo/test/unit/bitgo.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ 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();
106-
(() => TestBitGo.decorate(BitGo, { env: 'adminLatest', hmacVerification: false })).should.not.throw();
105+
(() => TestBitGo.decorate(BitGo, { env: 'adminStaging', hmacVerification: false })).should.not.throw();
107106
(() => TestBitGo.decorate(BitGo, { env: 'local', hmacVerification: false })).should.not.throw();
108107
(() => TestBitGo.decorate(BitGo, { env: 'localNonSecure', hmacVerification: false })).should.not.throw();
109108
(() =>

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: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,17 @@ export type EnvironmentName =
108108
| 'staging'
109109
| 'test'
110110
| 'dev'
111-
| 'latest'
112111
| 'local'
113112
| 'localNonSecure'
114113
| 'mock'
115114
| 'adminProd'
116115
| 'adminTest'
116+
| 'adminStaging'
117117
| 'adminDev'
118-
| 'adminLatest'
119118
| 'custom'
120119
| 'branch';
121120

122-
export type AliasEnvironmentName = 'production' | 'msProd' | 'msTest' | 'msDev' | 'msLatest';
121+
export type AliasEnvironmentName = 'production' | 'msProd' | 'msTest' | 'msDev';
123122

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

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

135133
const mainnetBase: EnvironmentTemplate = {
@@ -292,10 +290,6 @@ export const Environments: Environments = {
292290
uri: 'https://app.bitgo-dev.com',
293291
stellarFederationServerUrl: 'https://app.bitgo-dev.com/api/v2/txlm/federation',
294292
}),
295-
latest: Object.assign({}, devBase, {
296-
uri: 'https://app.bitgo-latest.com',
297-
stellarFederationServerUrl: 'https://app.bitgo-latest.com/api/v2/xlm/federation',
298-
}),
299293
staging: Object.assign({}, testnetBase, {
300294
uri: 'https://app.bitgo-staging.com',
301295
stellarFederationServerUrl: 'https://app.bitgo-staging.com/api/v2/txlm/federation',
@@ -328,9 +322,9 @@ export const Environments: Environments = {
328322
uri: 'https://admin.bitgo-dev.com',
329323
stellarFederationServerUrl: 'https://admin.bitgo-dev.com/api/v2/txlm/federation',
330324
}),
331-
adminLatest: Object.assign({}, devBase, {
332-
uri: 'https://admin.bitgo-latest.com',
333-
stellarFederationServerUrl: 'https://admin.bitgo-latest.com/api/v2/xlm/federation',
325+
adminStaging: Object.assign({}, testnetBase, {
326+
uri: 'https://admin.bitgo-staging.com',
327+
stellarFederationServerUrl: 'https://admin.bitgo-staging.com/api/v2/xlm/federation',
334328
}),
335329
custom: Object.assign({}, mainnetBase, {
336330
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion

0 commit comments

Comments
 (0)