@bitgo/public-types 4.0.2 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
1
  export * from "./keygenRound";
2
2
  export * from "./keygenState";
3
3
  export * from "./walletType";
4
+ export * from "./dsgType";
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./keygenRound"), exports);
18
18
  __exportStar(require("./keygenState"), exports);
19
19
  __exportStar(require("./walletType"), exports);
20
+ __exportStar(require("./dsgType"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/smc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/smc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,+CAA6B;AAC7B,4CAA0B"}
@@ -32,7 +32,7 @@ export interface Signature {
32
32
  R: string;
33
33
  sigma: string;
34
34
  }
35
- export type WalletType = "backing" | "cold" | "custodial" | "custodialPaired" | "hot" | "trading";
35
+ export type BaseWalletType = "backing" | "cold" | "custodial" | "custodialPaired" | "hot" | "trading";
36
36
  export type TxRequestState = "pendingCommitment" | "pendingApproval" | "canceled" | "rejected" | "initialized" | "pendingDelivery" | "delivered" | "pendingUserSignature" | "signed";
37
37
  export type UnsignedMessageTss = {
38
38
  derivationPath: string;
@@ -51,7 +51,7 @@ export type UnsignedTransactionTss = SignableTransaction & {
51
51
  coinSpecific?: Record<string, unknown>;
52
52
  parsedTx?: unknown;
53
53
  };
54
- export type TransactionState = "initialized" | "pendingCommitment" | "pendingSignature" | "signed" | "held" | "delivered" | "invalidSignature" | "rejected";
54
+ export type BaseTransactionState = "initialized" | "pendingCommitment" | "pendingSignature" | "signed" | "held" | "delivered" | "invalidSignature" | "rejected";
55
55
  export type SignedTx = {
56
56
  id: string;
57
57
  tx: string;
@@ -62,7 +62,7 @@ export type TxRequestVersion = "full" | "lite";
62
62
  export type TxRequest = {
63
63
  txRequestId: string;
64
64
  walletId: string;
65
- walletType: WalletType;
65
+ walletType: BaseWalletType;
66
66
  version: number;
67
67
  enterpriseId?: string;
68
68
  state: TxRequestState;
@@ -78,14 +78,14 @@ export type TxRequest = {
78
78
  unsignedMessages?: UnsignedMessageTss[];
79
79
  unsignedTxs: UnsignedTransactionTss[];
80
80
  transactions?: {
81
- state: TransactionState;
81
+ state: BaseTransactionState;
82
82
  unsignedTx: UnsignedTransactionTss;
83
83
  signatureShares: SignatureShareRecord[];
84
84
  signedTx?: SignedTx;
85
85
  commitmentShares?: CommitmentShareRecord[];
86
86
  }[];
87
87
  messages?: {
88
- state: TransactionState;
88
+ state: BaseTransactionState;
89
89
  signatureShares: SignatureShareRecord[];
90
90
  messageRaw: string;
91
91
  messageEncoded?: string;
@@ -1 +1,2 @@
1
1
  export * from "./tssSettings";
2
+ export * from "./baseTypes";
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./tssSettings"), exports);
18
+ __exportStar(require("./baseTypes"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/tss/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/tss/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,8CAA4B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -1,3 +1,4 @@
1
1
  export * from "./keygenRound";
2
2
  export * from "./keygenState";
3
3
  export * from "./walletType";
4
+ export * from "./dsgType";
@@ -40,7 +40,7 @@ export interface Signature {
40
40
  sigma: string;
41
41
  }
42
42
 
43
- export type WalletType =
43
+ export type BaseWalletType =
44
44
  | "backing"
45
45
  | "cold"
46
46
  | "custodial"
@@ -79,7 +79,7 @@ export type UnsignedTransactionTss = SignableTransaction & {
79
79
  parsedTx?: unknown;
80
80
  };
81
81
 
82
- export type TransactionState =
82
+ export type BaseTransactionState =
83
83
  | "initialized"
84
84
  | "pendingCommitment"
85
85
  | "pendingSignature"
@@ -101,7 +101,7 @@ export type TxRequestVersion = "full" | "lite";
101
101
  export type TxRequest = {
102
102
  txRequestId: string;
103
103
  walletId: string;
104
- walletType: WalletType;
104
+ walletType: BaseWalletType;
105
105
  version: number;
106
106
  enterpriseId?: string;
107
107
  state: TxRequestState;
@@ -117,14 +117,14 @@ export type TxRequest = {
117
117
  unsignedMessages?: UnsignedMessageTss[];
118
118
  unsignedTxs: UnsignedTransactionTss[];
119
119
  transactions?: {
120
- state: TransactionState;
120
+ state: BaseTransactionState;
121
121
  unsignedTx: UnsignedTransactionTss;
122
122
  signatureShares: SignatureShareRecord[];
123
123
  signedTx?: SignedTx;
124
124
  commitmentShares?: CommitmentShareRecord[];
125
125
  }[];
126
126
  messages?: {
127
- state: TransactionState;
127
+ state: BaseTransactionState;
128
128
  signatureShares: SignatureShareRecord[];
129
129
  messageRaw: string;
130
130
  messageEncoded?: string;
@@ -1 +1,2 @@
1
1
  export * from "./tssSettings";
2
+ export * from "./baseTypes";