Skip to content

Commit 0e4877b

Browse files
committed
chore(awm): rename shorthand ebe to awm
Ticket: WP-5298
1 parent 2473bec commit 0e4877b

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

.commitlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"header-max-length": [2, "always", 72],
66
"references-empty": [1, "never"],
77
"subject-case": [0],
8-
"scope-enum": [2, "always", ["mbe", "ebe", "docker"]],
8+
"scope-enum": [2, "always", ["mbe", "awm", "docker"]],
99
"scope-empty": [0, "never"]
1010
},
1111
"parserPreset": {

src/__tests__/api/advancedWalletManager/nonRecovery.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('Non Recovery', () => {
4949
sinon.restore();
5050
});
5151

52-
it('should fail to run ebe recovery if not in recovery mode', async () => {
52+
it('should fail to run awm recovery if not in recovery mode', async () => {
5353
const userPub = 'xpub_user';
5454
const backupPub = 'xpub_backup';
5555
const bitgoPub = 'xpub_bitgo';

src/__tests__/api/advancedWalletManager/recoveryMusigEth.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { AppMode, AdvancedWalletManagerConfig, TlsMode } from '../../../shared/t
99
import * as sinon from 'sinon';
1010
import * as configModule from '../../../initConfig';
1111

12-
import { ebeData } from '../../mocks/ethRecoveryMusigMockData';
12+
import { awmData } from '../../mocks/ethRecoveryMusigMockData';
1313
import unsignedSweepRecJSON from '../../mocks/unsigned-sweep-prebuild-hteth-musig-recovery.json';
1414

1515
describe('recoveryMultisigTransaction', () => {
@@ -59,7 +59,7 @@ describe('recoveryMultisigTransaction', () => {
5959
});
6060

6161
it('should generate a successful txHex from unsigned sweep prebuild data', async () => {
62-
const { userPub, backupPub, walletContractAddress, userPrv, backupPrv, txHexResult } = ebeData;
62+
const { userPub, backupPub, walletContractAddress, userPrv, backupPrv, txHexResult } = awmData;
6363
const unsignedSweepPrebuildTx = unsignedSweepRecJSON as unknown as any;
6464

6565
const mockKmsUserResponse = {
@@ -106,7 +106,7 @@ describe('recoveryMultisigTransaction', () => {
106106
});
107107

108108
it('should fail when prv keys non related to pub keys', async () => {
109-
const { userPub, backupPub, walletContractAddress } = ebeData;
109+
const { userPub, backupPub, walletContractAddress } = awmData;
110110
const unsignedSweepPrebuildTx = unsignedSweepRecJSON as unknown as any;
111111

112112
// Use invalid private keys

src/__tests__/api/master/ecdsa.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ describe('Ecdsa Signing Handler', () => {
202202
});
203203

204204
// Mock MPCv2 Round 1 signing
205-
const signMpcV2Round1NockEbe = nock(advancedWalletManagerUrl)
205+
const signMpcV2Round1NockAwm = nock(advancedWalletManagerUrl)
206206
.post(`/api/${coin}/mpc/sign/mpcv2round1`)
207207
.reply(200, {
208208
signatureShareRound1: round1SignatureShare,
@@ -213,15 +213,15 @@ describe('Ecdsa Signing Handler', () => {
213213
});
214214

215215
// Mock MPCv2 Round 2 signing
216-
const signMpcV2Round2NockEbe = nock(advancedWalletManagerUrl)
216+
const signMpcV2Round2NockAwm = nock(advancedWalletManagerUrl)
217217
.post(`/api/${coin}/mpc/sign/mpcv2round2`)
218218
.reply(200, {
219219
signatureShareRound2: round2SignatureShare,
220220
encryptedRound2Session: 'encrypted-round2-session',
221221
});
222222

223223
// Mock MPCv2 Round 3 signing
224-
const signMpcV2Round3NockEbe = nock(advancedWalletManagerUrl)
224+
const signMpcV2Round3NockAwm = nock(advancedWalletManagerUrl)
225225
.post(`/api/${coin}/mpc/sign/mpcv2round3`)
226226
.reply(200, {
227227
signatureShareRound3: round3SignatureShare,
@@ -246,8 +246,8 @@ describe('Ecdsa Signing Handler', () => {
246246
sendSignatureShareV2Round2Nock.done();
247247
sendSignatureShareV2Round3Nock.done();
248248
sendTxRequestNock.done();
249-
signMpcV2Round1NockEbe.done();
250-
signMpcV2Round2NockEbe.done();
251-
signMpcV2Round3NockEbe.done();
249+
signMpcV2Round1NockAwm.done();
250+
signMpcV2Round2NockAwm.done();
251+
signMpcV2Round3NockAwm.done();
252252
});
253253
});

src/__tests__/api/master/eddsa.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ describe('Eddsa Signing Handler', () => {
190190
});
191191

192192
// Mock MPC commitment signing
193-
const signMpcCommitmentNockEbe = nock(advancedWalletManagerUrl)
193+
const signMpcCommitmentNockAwm = nock(advancedWalletManagerUrl)
194194
.post(`/api/${coin}/mpc/sign/commitment`)
195195
.reply(200, {
196196
userToBitgoCommitment: { share: 'user-commitment-share' },
@@ -200,7 +200,7 @@ describe('Eddsa Signing Handler', () => {
200200
});
201201

202202
// Mock MPC R-share signing
203-
const signMpcRShareNockEbe = nock(advancedWalletManagerUrl)
203+
const signMpcRShareNockAwm = nock(advancedWalletManagerUrl)
204204
.post(`/api/${coin}/mpc/sign/r`)
205205
.reply(200, {
206206
rShare: {
@@ -214,7 +214,7 @@ describe('Eddsa Signing Handler', () => {
214214
});
215215

216216
// Mock MPC G-share signing
217-
const signMpcGShareNockEbe = nock(advancedWalletManagerUrl)
217+
const signMpcGShareNockAwm = nock(advancedWalletManagerUrl)
218218
.post(`/api/${coin}/mpc/sign/g`)
219219
.reply(200, {
220220
gShare: {
@@ -240,8 +240,8 @@ describe('Eddsa Signing Handler', () => {
240240
getBitgoRShareNock.done();
241241
sendGShareNock.done();
242242
finalGetTxRequestNock.done();
243-
signMpcCommitmentNockEbe.done();
244-
signMpcRShareNockEbe.done();
245-
signMpcGShareNockEbe.done();
243+
signMpcCommitmentNockAwm.done();
244+
signMpcRShareNockAwm.done();
245+
signMpcGShareNockAwm.done();
246246
});
247247
});

src/__tests__/mocks/ethRecoveryMusigMockData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const data = {
3737
recoveryDestinationAddress: '0x927324f364a6fd1bf4648310a445b58063f5bb64',
3838
};
3939

40-
export const ebeData = {
40+
export const awmData = {
4141
userPub:
4242
'xpub661MyMwAqRbcGvbtjkhDJ5uiFWb6eK9nFQmLLgW1jDwJzJ2vQPyp2uKLmUBgGZKiA9HDUFYfuDoyP1dF3tj3Ucod25tmiEG2k26UX97S3Wz',
4343
backupPub:

0 commit comments

Comments
 (0)