@@ -360,11 +360,13 @@ export type CreateKeychainParamsBase = {
360
360
361
361
export type CreateBitGoKeychainParamsBase = Omit < CreateKeychainParamsBase , 'bitgoKeychain' > ;
362
362
363
- export enum SignatureShareType {
364
- USER = 'user' ,
365
- BACKUP = 'backup' ,
366
- BITGO = 'bitgo' ,
367
- }
363
+ export const SignatureShareType = {
364
+ USER : 'user' ,
365
+ BACKUP : 'backup' ,
366
+ BITGO : 'bitgo' ,
367
+ } as const ;
368
+
369
+ export type SignatureShareType = ( typeof SignatureShareType ) [ keyof typeof SignatureShareType ] ;
368
370
369
371
interface ShareBaseRecord {
370
372
from : SignatureShareType ;
@@ -378,10 +380,13 @@ export interface SignatureShareRecord extends ShareBaseRecord {
378
380
publicShare ?: string ;
379
381
}
380
382
381
- export enum CommitmentType {
382
- COMMITMENT = 'commitment' ,
383
- DECOMMITMENT = 'decommitment' ,
384
- }
383
+ export const CommitmentType = {
384
+ COMMITMENT : 'commitment' ,
385
+ DECOMMITMENT : 'decommitment' ,
386
+ } as const ;
387
+
388
+ export type CommitmentType = ( typeof CommitmentType ) [ keyof typeof CommitmentType ] ;
389
+
385
390
export interface CommitmentShareRecord extends ShareBaseRecord {
386
391
type : CommitmentType ;
387
392
}
@@ -390,10 +395,13 @@ export interface ExchangeCommitmentResponse {
390
395
commitmentShare : CommitmentShareRecord ;
391
396
}
392
397
393
- export enum EncryptedSignerShareType {
394
- ENCRYPTED_SIGNER_SHARE = 'encryptedSignerShare' ,
395
- ENCRYPTED_R_SHARE = 'encryptedRShare' ,
396
- }
398
+ export const EncryptedSignerShareType = {
399
+ ENCRYPTED_SIGNER_SHARE : 'encryptedSignerShare' ,
400
+ ENCRYPTED_R_SHARE : 'encryptedRShare' ,
401
+ } as const ;
402
+
403
+ export type EncryptedSignerShareType = ( typeof EncryptedSignerShareType ) [ keyof typeof EncryptedSignerShareType ] ;
404
+
397
405
export interface EncryptedSignerShareRecord extends ShareBaseRecord {
398
406
type : EncryptedSignerShareType ;
399
407
}
0 commit comments