@bitgo/public-types 6.92.0 → 6.93.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/dist/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.js +1 -0
- package/dist/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +1 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.ts +2 -0
|
@@ -108,5 +108,6 @@ export declare const CantonAllocationRequestIntent: t.IntersectionC<[t.Intersect
|
|
|
108
108
|
receiveAmount: t.StringC;
|
|
109
109
|
legType: t.UnionC<[t.LiteralC<"trade">, t.LiteralC<"fee">]>;
|
|
110
110
|
parentTradeId: t.StringC;
|
|
111
|
+
allocationRole: t.UnionC<[t.LiteralC<"send">, t.LiteralC<"receive">]>;
|
|
111
112
|
}>]>;
|
|
112
113
|
export type CantonAllocationRequestIntent = t.TypeOf<typeof CantonAllocationRequestIntent>;
|
|
@@ -50,6 +50,7 @@ exports.CantonAllocationRequestIntent = t.intersection([
|
|
|
50
50
|
receiveAmount: t.string,
|
|
51
51
|
legType: t.union([t.literal("trade"), t.literal("fee")]),
|
|
52
52
|
parentTradeId: t.string,
|
|
53
|
+
allocationRole: t.union([t.literal("send"), t.literal("receive")]),
|
|
53
54
|
}),
|
|
54
55
|
]);
|
|
55
56
|
//# sourceMappingURL=cantonAllocationRequestIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cantonAllocationRequestIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonAllocationRequestIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;
|
|
1
|
+
{"version":3,"file":"cantonAllocationRequestIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonAllocationRequestIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAuC9B,QAAA,6BAA6B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1D,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,iBAAiB;QACzC,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB,UAAU,EAAE,CAAC,CAAC,MAAM;QACpB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;QACvC,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,eAAe,EAAE,CAAC,CAAC,MAAM;QACzB,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,KAAK,EAAE,CAAC,CAAC,MAAM;QACf,cAAc,EAAE,CAAC,CAAC,MAAM;QACxB,YAAY,EAAE,CAAC,CAAC,MAAM;KACvB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,WAAW,EAAE,CAAC,CAAC,MAAM;QACrB,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QACxD,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;KACnE,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -2401,6 +2401,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
2401
2401
|
receiveAmount: t.StringC;
|
|
2402
2402
|
legType: t.UnionC<[t.LiteralC<"trade">, t.LiteralC<"fee">]>;
|
|
2403
2403
|
parentTradeId: t.StringC;
|
|
2404
|
+
allocationRole: t.UnionC<[t.LiteralC<"send">, t.LiteralC<"receive">]>;
|
|
2404
2405
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
2405
2406
|
intentType: t.KeyofC<{
|
|
2406
2407
|
payment: t.LiteralC<"payment">;
|
package/package.json
CHANGED
|
@@ -33,6 +33,7 @@ import { intentTypes } from "./intentType";
|
|
|
33
33
|
* @param {String} [receiveAmount] - Quantity the allocating party will receive on settlement; required for trade legs, absent for fee legs
|
|
34
34
|
* @param {String} [legType] - The leg category: "trade" for a DvP delivery leg, "fee" for a payment-only operator-fee leg; absent for legacy trade intents
|
|
35
35
|
* @param {String} [parentTradeId] - For fee legs, the trade identifier of the parent trade this fee belongs to
|
|
36
|
+
* @param {String} [allocationRole] - The role of this offer within the leg: "send" (default) allocates the sender's leg; "receive" is a receive-only offer for a cross-issuer trade leg with no SenderSide, locking nothing
|
|
36
37
|
* @param {String} allocateBefore - ISO 8601 deadline by which allocation must be submitted
|
|
37
38
|
* @param {String} settleBefore - ISO 8601 deadline by which settlement must complete
|
|
38
39
|
* @param {String} [comment] - Optional free-form note
|
|
@@ -61,6 +62,7 @@ export const CantonAllocationRequestIntent = t.intersection([
|
|
|
61
62
|
receiveAmount: t.string,
|
|
62
63
|
legType: t.union([t.literal("trade"), t.literal("fee")]),
|
|
63
64
|
parentTradeId: t.string,
|
|
65
|
+
allocationRole: t.union([t.literal("send"), t.literal("receive")]),
|
|
64
66
|
}),
|
|
65
67
|
]);
|
|
66
68
|
|