@bitgo/public-types 6.77.1 → 6.77.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.
- package/dist/src/schema/mpcv2/derive/deriveRound.d.ts +0 -1
- package/dist/src/schema/mpcv2/derive/deriveRound.js +0 -1
- package/dist/src/schema/mpcv2/derive/deriveRound.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.js +1 -2
- package/dist/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +1 -1
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +2 -2
- package/package.json +1 -1
- package/src/schema/mpcv2/derive/deriveRound.ts +0 -1
- package/src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.ts +2 -3
|
@@ -51,7 +51,6 @@ export declare const MPCv2DeriveRound3Response: t.TypeC<{
|
|
|
51
51
|
export type MPCv2DeriveRound3Response = t.TypeOf<typeof MPCv2DeriveRound3Response>;
|
|
52
52
|
export declare const EddsaMPCv2DeriveRound1Request: t.TypeC<{
|
|
53
53
|
userGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
|
54
|
-
backupGpgPublicKey: import("io-ts-types").NonEmptyStringC;
|
|
55
54
|
userMsg1: t.TypeC<{
|
|
56
55
|
message: t.StringC;
|
|
57
56
|
signature: t.StringC;
|
|
@@ -55,7 +55,6 @@ exports.MPCv2DeriveRound3Response = t.type({
|
|
|
55
55
|
});
|
|
56
56
|
exports.EddsaMPCv2DeriveRound1Request = t.type({
|
|
57
57
|
userGpgPublicKey: io_ts_types_1.NonEmptyString,
|
|
58
|
-
backupGpgPublicKey: io_ts_types_1.NonEmptyString,
|
|
59
58
|
userMsg1: common_1.EddsaMPCv2SignedMessage,
|
|
60
59
|
parentKeyId: io_ts_types_1.NonEmptyString,
|
|
61
60
|
derivationIndex: DerivationIndex,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deriveRound.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/derive/deriveRound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA6C;AAC7C,sCAA2E;AAM3E,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAC7B,CAAC,CAAC,MAAM,EACR,CAAC,KAAa,EAAoD,EAAE,CAClE,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,EAC3C,iBAAiB,CAClB,CAAC;AAEW,QAAA,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAC5C;IACE,gBAAgB,EAAE,4BAAc;IAChC,QAAQ,EAAE,8BAAqB;IAC/B,WAAW,EAAE,4BAAc;IAC3B,eAAe,EAAE,eAAe;CACjC,EACD,0BAA0B,CAC3B,CAAC;AAMW,QAAA,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9C,SAAS,EAAE,4BAAc;IACzB,SAAS,EAAE,8BAAqB;CACjC,CAAC,CAAC;AAMU,QAAA,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,SAAS,EAAE,4BAAc;IACzB,QAAQ,EAAE,8BAAqB;CAChC,CAAC,CAAC;AAMU,QAAA,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9C,SAAS,EAAE,4BAAc;IACzB,SAAS,EAAE,8BAAqB;CACjC,CAAC,CAAC;AAMU,QAAA,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,SAAS,EAAE,4BAAc;CAC1B,CAAC,CAAC;AAMU,QAAA,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9C,SAAS,EAAE,4BAAc;IACzB,cAAc,EAAE,4BAAc;CAC/B,CAAC,CAAC;AAMU,QAAA,6BAA6B,GAAG,CAAC,CAAC,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jD;IACE,gBAAgB,EAAE,4BAAc;IAChC,QAAQ,EAAE,gCAAuB;IACjC,WAAW,EAAE,4BAAc;IAC3B,eAAe,EAAE,eAAe;CACjC,EACD,+BAA+B,CAChC,CAAC;AAMW,QAAA,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC;IACnD,SAAS,EAAE,4BAAc;IACzB,SAAS,EAAE,gCAAuB;CACnC,CAAC,CAAC;AAMU,QAAA,6BAA6B,GAAG,CAAC,CAAC,IAAI,CAAC;IAClD,SAAS,EAAE,4BAAc;IACzB,QAAQ,EAAE,gCAAuB;CAClC,CAAC,CAAC;AAMU,QAAA,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC;IACnD,SAAS,EAAE,4BAAc;IACzB,oBAAoB,EAAE,4BAAc;IACpC,SAAS,EAAE,gCAAuB;CACnC,CAAC,CAAC"}
|
|
@@ -88,7 +88,7 @@ export declare const CantonTransferAcknowledgeIntent: t.IntersectionC<[t.Interse
|
|
|
88
88
|
contractId: t.StringC;
|
|
89
89
|
senderPartyId: t.StringC;
|
|
90
90
|
updateId: t.StringC;
|
|
91
|
-
amount:
|
|
91
|
+
amount: t.UnionC<[t.StringC, t.NumberC]>;
|
|
92
92
|
expiry: t.NumberC;
|
|
93
93
|
}>, t.PartialC<{
|
|
94
94
|
memoId: t.StringC;
|
|
@@ -25,7 +25,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.CantonTransferAcknowledgeIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
const io_ts_types_1 = require("io-ts-types");
|
|
29
28
|
const baseIntent_1 = require("./baseIntent");
|
|
30
29
|
const intentType_1 = require("./intentType");
|
|
31
30
|
exports.CantonTransferAcknowledgeIntent = t.intersection([
|
|
@@ -35,7 +34,7 @@ exports.CantonTransferAcknowledgeIntent = t.intersection([
|
|
|
35
34
|
contractId: t.string,
|
|
36
35
|
senderPartyId: t.string,
|
|
37
36
|
updateId: t.string,
|
|
38
|
-
amount:
|
|
37
|
+
amount: t.union([t.string, t.number]),
|
|
39
38
|
expiry: t.number,
|
|
40
39
|
}),
|
|
41
40
|
t.partial({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cantonTransferAcknowledgeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"cantonTransferAcknowledgeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAmB9B,QAAA,+BAA+B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5D,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,mBAAmB;QAC3C,UAAU,EAAE,CAAC,CAAC,MAAM;QACpB,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;QACrC,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,KAAK,EAAE,CAAC,CAAC,MAAM;KAChB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -2873,7 +2873,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
2873
2873
|
contractId: t.StringC;
|
|
2874
2874
|
senderPartyId: t.StringC;
|
|
2875
2875
|
updateId: t.StringC;
|
|
2876
|
-
amount:
|
|
2876
|
+
amount: t.UnionC<[t.StringC, t.NumberC]>;
|
|
2877
2877
|
expiry: t.NumberC;
|
|
2878
2878
|
}>, t.PartialC<{
|
|
2879
2879
|
memoId: t.StringC;
|
|
@@ -2971,7 +2971,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
2971
2971
|
contractId: t.StringC;
|
|
2972
2972
|
senderPartyId: t.StringC;
|
|
2973
2973
|
updateId: t.StringC;
|
|
2974
|
-
amount:
|
|
2974
|
+
amount: t.UnionC<[t.StringC, t.NumberC]>;
|
|
2975
2975
|
expiry: t.NumberC;
|
|
2976
2976
|
}>, t.PartialC<{
|
|
2977
2977
|
memoId: t.StringC;
|
|
@@ -20147,7 +20147,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
20147
20147
|
contractId: t.StringC;
|
|
20148
20148
|
senderPartyId: t.StringC;
|
|
20149
20149
|
updateId: t.StringC;
|
|
20150
|
-
amount:
|
|
20150
|
+
amount: t.UnionC<[t.StringC, t.NumberC]>;
|
|
20151
20151
|
expiry: t.NumberC;
|
|
20152
20152
|
}>, t.PartialC<{
|
|
20153
20153
|
memoId: t.StringC;
|
package/package.json
CHANGED
|
@@ -74,7 +74,6 @@ export type MPCv2DeriveRound3Response = t.TypeOf<
|
|
|
74
74
|
export const EddsaMPCv2DeriveRound1Request = t.type(
|
|
75
75
|
{
|
|
76
76
|
userGpgPublicKey: NonEmptyString,
|
|
77
|
-
backupGpgPublicKey: NonEmptyString,
|
|
78
77
|
userMsg1: EddsaMPCv2SignedMessage,
|
|
79
78
|
parentKeyId: NonEmptyString,
|
|
80
79
|
derivationIndex: DerivationIndex,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
|
-
import { NumberFromString } from "io-ts-types";
|
|
3
2
|
import { BaseIntent } from "./baseIntent";
|
|
4
3
|
import { intentTypes } from "./intentType";
|
|
5
4
|
|
|
@@ -15,7 +14,7 @@ import { intentTypes } from "./intentType";
|
|
|
15
14
|
* @param {String} contractId - The contract id that needs to be acted on by the receiver
|
|
16
15
|
* @param {String} senderPartyId - The address (partyId) of the sender
|
|
17
16
|
* @param {String} updateId - The transaction id of the deposit
|
|
18
|
-
* @param {String} amount - The deposit amount
|
|
17
|
+
* @param {String} amount - The exact deposit amount as a decimal string; numbers remain accepted for compatibility
|
|
19
18
|
* @param {Number} expiry - The expiry epoch
|
|
20
19
|
* @param {String} [memoId] - The optional memoId
|
|
21
20
|
* @param {String} [token] - The optional token
|
|
@@ -27,7 +26,7 @@ export const CantonTransferAcknowledgeIntent = t.intersection([
|
|
|
27
26
|
contractId: t.string,
|
|
28
27
|
senderPartyId: t.string,
|
|
29
28
|
updateId: t.string,
|
|
30
|
-
amount:
|
|
29
|
+
amount: t.union([t.string, t.number]),
|
|
31
30
|
expiry: t.number,
|
|
32
31
|
}),
|
|
33
32
|
t.partial({
|