@bitgo/public-types 5.28.0 → 5.29.0
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.
- package/README.md +1 -5
- package/dist/src/schema/enterprise/enterpriseIdString.d.ts +3 -0
- package/dist/src/schema/enterprise/enterpriseIdString.js +29 -0
- package/dist/src/schema/enterprise/enterpriseIdString.js.map +1 -0
- package/dist/src/schema/enterprise/index.d.ts +1 -0
- package/dist/src/schema/enterprise/index.js +18 -0
- package/dist/src/schema/enterprise/index.js.map +1 -0
- package/dist/src/schema/index.d.ts +1 -0
- package/dist/src/schema/index.js +1 -0
- package/dist/src/schema/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/baseShare.d.ts +14 -0
- package/dist/src/schema/transactionRequest/baseShare.js +34 -0
- package/dist/src/schema/transactionRequest/baseShare.js.map +1 -0
- package/dist/src/schema/transactionRequest/commitmentShare.d.ts +17 -0
- package/dist/src/schema/transactionRequest/commitmentShare.js +35 -0
- package/dist/src/schema/transactionRequest/commitmentShare.js.map +1 -0
- package/dist/src/schema/transactionRequest/encryptedShare.d.ts +20 -0
- package/dist/src/schema/transactionRequest/encryptedShare.js +34 -0
- package/dist/src/schema/transactionRequest/encryptedShare.js.map +1 -0
- package/dist/src/schema/transactionRequest/index.d.ts +7 -0
- package/dist/src/schema/transactionRequest/index.js +7 -0
- package/dist/src/schema/transactionRequest/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/message.d.ts +100 -0
- package/dist/src/schema/transactionRequest/message.js +56 -0
- package/dist/src/schema/transactionRequest/message.js.map +1 -0
- package/dist/src/schema/transactionRequest/shareType.d.ts +6 -0
- package/dist/src/schema/transactionRequest/shareType.js +32 -0
- package/dist/src/schema/transactionRequest/shareType.js.map +1 -0
- package/dist/src/schema/transactionRequest/signatureShare.d.ts +33 -0
- package/dist/src/schema/transactionRequest/signatureShare.js +42 -0
- package/dist/src/schema/transactionRequest/signatureShare.js.map +1 -0
- package/dist/src/schema/transactionRequest/signatureShareType.d.ts +7 -0
- package/dist/src/schema/transactionRequest/signatureShareType.js +33 -0
- package/dist/src/schema/transactionRequest/signatureShareType.js.map +1 -0
- package/dist/src/schema/transactionRequest/transaction.d.ts +105 -0
- package/dist/src/schema/transactionRequest/transaction.js +46 -0
- package/dist/src/schema/transactionRequest/transaction.js.map +1 -0
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +13532 -0
- package/dist/src/schema/transactionRequest/transactionRequest.js +87 -0
- package/dist/src/schema/transactionRequest/transactionRequest.js.map +1 -0
- package/dist/src/schema/transactionRequest/transactionRequestApiVersion.d.ts +6 -0
- package/dist/src/schema/transactionRequest/transactionRequestApiVersion.js +32 -0
- package/dist/src/schema/transactionRequest/transactionRequestApiVersion.js.map +1 -0
- package/dist/src/schema/transactionRequest/unsignedTransaction.d.ts +51 -0
- package/dist/src/schema/transactionRequest/unsignedTransaction.js +95 -0
- package/dist/src/schema/transactionRequest/unsignedTransaction.js.map +1 -0
- package/dist/src/schema/wallet/index.d.ts +1 -0
- package/dist/src/schema/wallet/index.js +1 -0
- package/dist/src/schema/wallet/index.js.map +1 -1
- package/dist/src/schema/wallet/wallet.d.ts +2 -0
- package/dist/src/schema/wallet/wallet.js +2 -1
- package/dist/src/schema/wallet/wallet.js.map +1 -1
- package/dist/src/schema/wallet/walletTypes.d.ts +11 -0
- package/dist/src/schema/wallet/walletTypes.js +37 -0
- package/dist/src/schema/wallet/walletTypes.js.map +1 -0
- package/package.json +1 -1
- package/src/schema/enterprise/enterpriseIdString.ts +9 -0
- package/src/schema/enterprise/index.ts +1 -0
- package/src/schema/index.ts +1 -0
- package/src/schema/transactionRequest/baseShare.ts +17 -0
- package/src/schema/transactionRequest/commitmentShare.ts +12 -0
- package/src/schema/transactionRequest/encryptedShare.ts +10 -0
- package/src/schema/transactionRequest/index.ts +7 -0
- package/src/schema/transactionRequest/message.ts +104 -0
- package/src/schema/transactionRequest/shareType.ts +10 -0
- package/src/schema/transactionRequest/signatureShare.ts +29 -0
- package/src/schema/transactionRequest/signatureShareType.ts +11 -0
- package/src/schema/transactionRequest/transaction.ts +24 -0
- package/src/schema/transactionRequest/transactionRequest.ts +118 -0
- package/src/schema/transactionRequest/transactionRequestApiVersion.ts +12 -0
- package/src/schema/transactionRequest/unsignedTransaction.ts +77 -0
- package/src/schema/wallet/index.ts +1 -0
- package/src/schema/wallet/wallet.ts +7 -0
- package/src/schema/wallet/walletTypes.ts +16 -0
@@ -0,0 +1,105 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const Transaction: t.IntersectionC<[t.TypeC<{
|
3
|
+
state: t.KeyofC<{
|
4
|
+
initialized: number;
|
5
|
+
pendingSignature: number;
|
6
|
+
eddsaPendingCommitment: number;
|
7
|
+
eddsaPendingRShare: number;
|
8
|
+
eddsaPendingGShare: number;
|
9
|
+
ecdsaMPCv2Round1: number;
|
10
|
+
ecdsaMPCv2Round2: number;
|
11
|
+
ecdsaMPCv2Round3: number;
|
12
|
+
readyToCombineShares: number;
|
13
|
+
signed: number;
|
14
|
+
held: number;
|
15
|
+
delivered: number;
|
16
|
+
invalidSignature: number;
|
17
|
+
rejected: number;
|
18
|
+
}>;
|
19
|
+
unsignedTx: t.IntersectionC<[t.TypeC<{
|
20
|
+
parsedTx: t.IntersectionC<[t.TypeC<{
|
21
|
+
inputs: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
22
|
+
valueString: t.StringC;
|
23
|
+
}>, t.PartialC<{
|
24
|
+
_id: t.StringC;
|
25
|
+
address: t.StringC;
|
26
|
+
chain: t.NumberC;
|
27
|
+
derivationIndex: t.NumberC;
|
28
|
+
index: t.NumberC;
|
29
|
+
value: t.UnionC<[t.NumberC, t.BigIntC]>;
|
30
|
+
}>]>>;
|
31
|
+
minerFee: t.UnionC<[t.StringC, t.NumberC]>;
|
32
|
+
outputs: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
33
|
+
valueString: t.StringC;
|
34
|
+
}>, t.PartialC<{
|
35
|
+
address: t.StringC;
|
36
|
+
change: t.BooleanC;
|
37
|
+
coinName: t.StringC;
|
38
|
+
data: t.StringC;
|
39
|
+
isPayGo: t.BooleanC;
|
40
|
+
value: t.UnionC<[t.NumberC, t.BigIntC]>;
|
41
|
+
wallet: t.StringC;
|
42
|
+
walletV1: t.StringC;
|
43
|
+
baseAddress: t.StringC;
|
44
|
+
enterprise: t.StringC;
|
45
|
+
}>]>>;
|
46
|
+
spendAmount: t.UnionC<[t.StringC, t.NumberC]>;
|
47
|
+
}>, t.PartialC<{
|
48
|
+
gasPrice: t.NumberC;
|
49
|
+
hasUnvalidatedData: t.BooleanC;
|
50
|
+
payGoFee: t.UnionC<[t.StringC, t.NumberC]>;
|
51
|
+
spendAmounts: t.ArrayC<t.UnknownRecordC>;
|
52
|
+
type: t.StringC;
|
53
|
+
}>]>;
|
54
|
+
serializedTxHex: t.StringC;
|
55
|
+
signableHex: t.StringC;
|
56
|
+
}>, t.PartialC<{
|
57
|
+
derivationPath: t.StringC;
|
58
|
+
coinSpecific: t.IntersectionC<[t.UnknownRecordC, t.PartialC<{
|
59
|
+
nonceAddress: t.StringC;
|
60
|
+
stakingAddress: t.StringC;
|
61
|
+
signature: t.StringC;
|
62
|
+
}>]>;
|
63
|
+
feeInfo: t.TypeC<{
|
64
|
+
fee: t.UnionC<[t.StringC, t.NumberC]>;
|
65
|
+
feeString: t.StringC;
|
66
|
+
}>;
|
67
|
+
}>]>;
|
68
|
+
}>, t.PartialC<{
|
69
|
+
signatureShares: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
70
|
+
from: t.KeyofC<{
|
71
|
+
user: number;
|
72
|
+
backup: number;
|
73
|
+
bitgo: number;
|
74
|
+
}>;
|
75
|
+
to: t.KeyofC<{
|
76
|
+
user: number;
|
77
|
+
backup: number;
|
78
|
+
bitgo: number;
|
79
|
+
}>;
|
80
|
+
share: t.StringC;
|
81
|
+
}>, t.PartialC<{
|
82
|
+
vssProof: t.StringC;
|
83
|
+
privateShareProof: t.StringC;
|
84
|
+
publicShare: t.StringC;
|
85
|
+
}>]>>;
|
86
|
+
commitmentShares: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
87
|
+
from: t.KeyofC<{
|
88
|
+
user: number;
|
89
|
+
backup: number;
|
90
|
+
bitgo: number;
|
91
|
+
}>;
|
92
|
+
to: t.KeyofC<{
|
93
|
+
user: number;
|
94
|
+
backup: number;
|
95
|
+
bitgo: number;
|
96
|
+
}>;
|
97
|
+
share: t.StringC;
|
98
|
+
}>, t.TypeC<{
|
99
|
+
type: t.LiteralC<"commitment">;
|
100
|
+
}>]>>;
|
101
|
+
txHash: t.StringC;
|
102
|
+
updatedDate: import("io-ts-types").DateFromISOStringC;
|
103
|
+
createdDate: import("io-ts-types").DateFromISOStringC;
|
104
|
+
}>]>;
|
105
|
+
export type Transaction = t.TypeOf<typeof Transaction>;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
exports.Transaction = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const io_ts_types_1 = require("io-ts-types");
|
29
|
+
const transactionState_1 = require("./transactionState");
|
30
|
+
const unsignedTransaction_1 = require("./unsignedTransaction");
|
31
|
+
const signatureShare_1 = require("./signatureShare");
|
32
|
+
const commitmentShare_1 = require("./commitmentShare");
|
33
|
+
exports.Transaction = t.intersection([
|
34
|
+
t.type({
|
35
|
+
state: transactionState_1.TransactionState,
|
36
|
+
unsignedTx: unsignedTransaction_1.UnsignedTransaction,
|
37
|
+
}),
|
38
|
+
t.partial({
|
39
|
+
signatureShares: t.array(signatureShare_1.SignatureShare),
|
40
|
+
commitmentShares: t.array(commitmentShare_1.CommitmentShare),
|
41
|
+
txHash: t.string,
|
42
|
+
updatedDate: io_ts_types_1.DateFromISOString,
|
43
|
+
createdDate: io_ts_types_1.DateFromISOString,
|
44
|
+
}),
|
45
|
+
]);
|
46
|
+
//# sourceMappingURL=transaction.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../../src/schema/transactionRequest/transaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAgD;AAChD,yDAAsD;AACtD,+DAA4D;AAC5D,qDAAkD;AAClD,uDAAoD;AAEvC,QAAA,WAAW,GAAG,CAAC,CAAC,YAAY,CAAC;IAExC,CAAC,CAAC,IAAI,CAAC;QACL,KAAK,EAAE,mCAAgB;QACvB,UAAU,EAAE,yCAAmB;KAChC,CAAC;IAEF,CAAC,CAAC,OAAO,CAAC;QACR,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC;QACxC,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,iCAAe,CAAC;QAC1C,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,WAAW,EAAE,+BAAiB;QAC9B,WAAW,EAAE,+BAAiB;KAC/B,CAAC;CACH,CAAC,CAAC"}
|