@bitgo/public-types 6.83.0 → 6.85.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.
Files changed (24) hide show
  1. package/dist/src/schema/transactionRequest/intents/cantonAllocationAllocateIntent.d.ts +2 -0
  2. package/dist/src/schema/transactionRequest/intents/cantonAllocationAllocateIntent.js +2 -0
  3. package/dist/src/schema/transactionRequest/intents/cantonAllocationAllocateIntent.js.map +1 -1
  4. package/dist/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.d.ts +4 -2
  5. package/dist/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.js +4 -2
  6. package/dist/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.js.map +1 -1
  7. package/dist/src/schema/transactionRequest/intents/intent.d.ts +6 -2
  8. package/dist/src/schema/transactionRequest/intents/taoClaimRootIntent.js.map +1 -1
  9. package/dist/src/schema/transactionRequest/intents/taoStakeIntent.js.map +1 -1
  10. package/dist/src/schema/transactionRequest/intents/taoStakingBaseIntent.js.map +1 -1
  11. package/dist/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.js.map +1 -1
  12. package/dist/src/schema/transactionRequest/intents/taoTransferStakeIntent.js.map +1 -1
  13. package/dist/src/schema/transactionRequest/intents/taoUnstakeIntent.js.map +1 -1
  14. package/dist/src/schema/transactionRequest/intents/withdrawIntent.js.map +1 -1
  15. package/package.json +1 -1
  16. package/src/schema/transactionRequest/intents/cantonAllocationAllocateIntent.ts +4 -0
  17. package/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.ts +16 -7
  18. package/src/schema/transactionRequest/intents/taoClaimRootIntent.ts +9 -0
  19. package/src/schema/transactionRequest/intents/taoStakeIntent.ts +6 -0
  20. package/src/schema/transactionRequest/intents/taoStakingBaseIntent.ts +12 -0
  21. package/src/schema/transactionRequest/intents/taoSwitchValidatorIntent.ts +25 -0
  22. package/src/schema/transactionRequest/intents/taoTransferStakeIntent.ts +33 -0
  23. package/src/schema/transactionRequest/intents/taoUnstakeIntent.ts +11 -0
  24. package/src/schema/transactionRequest/intents/withdrawIntent.ts +4 -0
@@ -102,6 +102,8 @@ export declare const CantonAllocationAllocateIntent: t.IntersectionC<[t.Intersec
102
102
  receiveAmount: t.StringC;
103
103
  allocateBefore: t.StringC;
104
104
  settleBefore: t.StringC;
105
+ legType: t.UnionC<[t.LiteralC<"trade">, t.LiteralC<"fee">]>;
106
+ parentTradeId: t.StringC;
105
107
  comment: t.StringC;
106
108
  requestedAt: t.StringC;
107
109
  }>]>;
@@ -47,6 +47,8 @@ exports.CantonAllocationAllocateIntent = t.intersection([
47
47
  receiveAmount: t.string,
48
48
  allocateBefore: t.string,
49
49
  settleBefore: t.string,
50
+ legType: t.union([t.literal("trade"), t.literal("fee")]),
51
+ parentTradeId: t.string,
50
52
  comment: t.string,
51
53
  requestedAt: t.string,
52
54
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"cantonAllocationAllocateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonAllocationAllocateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAa9B,QAAA,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3D,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,kBAAkB;QAC1C,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,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,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,cAAc,EAAE,CAAC,CAAC,MAAM;QACxB,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"cantonAllocationAllocateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonAllocationAllocateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAe9B,QAAA,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3D,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,kBAAkB;QAC1C,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,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,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,cAAc,EAAE,CAAC,CAAC,MAAM;QACxB,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,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,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;CACH,CAAC,CAAC"}
@@ -96,12 +96,14 @@ export declare const CantonAllocationRequestIntent: t.IntersectionC<[t.Intersect
96
96
  receiverPartyId: t.StringC;
97
97
  amount: t.StringC;
98
98
  token: t.StringC;
99
- receiveToken: t.StringC;
100
- receiveAmount: t.StringC;
101
99
  allocateBefore: t.StringC;
102
100
  settleBefore: t.StringC;
103
101
  }>, t.PartialC<{
104
102
  comment: t.StringC;
105
103
  requestedAt: t.StringC;
104
+ receiveToken: t.StringC;
105
+ receiveAmount: t.StringC;
106
+ legType: t.UnionC<[t.LiteralC<"trade">, t.LiteralC<"fee">]>;
107
+ parentTradeId: t.StringC;
106
108
  }>]>;
107
109
  export type CantonAllocationRequestIntent = t.TypeOf<typeof CantonAllocationRequestIntent>;
@@ -40,14 +40,16 @@ exports.CantonAllocationRequestIntent = t.intersection([
40
40
  receiverPartyId: t.string,
41
41
  amount: t.string,
42
42
  token: t.string,
43
- receiveToken: t.string,
44
- receiveAmount: t.string,
45
43
  allocateBefore: t.string,
46
44
  settleBefore: t.string,
47
45
  }),
48
46
  t.partial({
49
47
  comment: t.string,
50
48
  requestedAt: t.string,
49
+ receiveToken: t.string,
50
+ receiveAmount: t.string,
51
+ legType: t.union([t.literal("trade"), t.literal("fee")]),
52
+ parentTradeId: t.string,
51
53
  }),
52
54
  ]);
53
55
  //# 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;AA+B9B,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,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,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;KACtB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"cantonAllocationRequestIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonAllocationRequestIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAsC9B,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;KACxB,CAAC;CACH,CAAC,CAAC"}
@@ -2029,6 +2029,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
2029
2029
  receiveAmount: t.StringC;
2030
2030
  allocateBefore: t.StringC;
2031
2031
  settleBefore: t.StringC;
2032
+ legType: t.UnionC<[t.LiteralC<"trade">, t.LiteralC<"fee">]>;
2033
+ parentTradeId: t.StringC;
2032
2034
  comment: t.StringC;
2033
2035
  requestedAt: t.StringC;
2034
2036
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
@@ -2324,13 +2326,15 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
2324
2326
  receiverPartyId: t.StringC;
2325
2327
  amount: t.StringC;
2326
2328
  token: t.StringC;
2327
- receiveToken: t.StringC;
2328
- receiveAmount: t.StringC;
2329
2329
  allocateBefore: t.StringC;
2330
2330
  settleBefore: t.StringC;
2331
2331
  }>, t.PartialC<{
2332
2332
  comment: t.StringC;
2333
2333
  requestedAt: t.StringC;
2334
+ receiveToken: t.StringC;
2335
+ receiveAmount: t.StringC;
2336
+ legType: t.UnionC<[t.LiteralC<"trade">, t.LiteralC<"fee">]>;
2337
+ parentTradeId: t.StringC;
2334
2338
  }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2335
2339
  intentType: t.KeyofC<{
2336
2340
  payment: t.LiteralC<"payment">;
@@ -1 +1 @@
1
- {"version":3,"file":"taoClaimRootIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoClaimRootIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,yFAAsF;AACtF,6CAA2C;AAU9B,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,iCAAe;IACf,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,iBAAiB;QACzC,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"taoClaimRootIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoClaimRootIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,yFAAsF;AACtF,6CAA2C;AAU9B,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,iCAAe;IACf,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QAEL,UAAU,EAAE,wBAAW,CAAC,iBAAiB;QAKzC,MAAM,EAAE,CAAC,CAAC,MAAM;QAKhB,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,CAAC;CACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"taoStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+CAA4C;AAC5C,iEAA8D;AAKjD,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,yBAAW;IACX,2CAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,YAAY,EAAE,CAAC,CAAC,MAAM;KACvB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"taoStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,+CAA4C;AAC5C,iEAA8D;AAUjD,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,yBAAW;IACX,2CAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QAEL,YAAY,EAAE,CAAC,CAAC,MAAM;KACvB,CAAC;CACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"taoStakingBaseIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoStakingBaseIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,yFAAsF;AAKzE,QAAA,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,iCAAe;IACf,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QACL,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"taoStakingBaseIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoStakingBaseIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,yFAAsF;AASzE,QAAA,oBAAoB,GAAG,CAAC,CAAC,YAAY,CAAC;IACjD,iCAAe;IACf,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QAKL,MAAM,EAAE,CAAC,CAAC,MAAM;QAKhB,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,CAAC;CACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"taoSwitchValidatorIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoSwitchValidatorIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,yFAAsF;AACtF,6CAA2C;AAK9B,QAAA,wBAAwB,GAAG,CAAC,CAAC,YAAY,CAAC;IACrD,iCAAe;IACf,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,eAAe;QACvC,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,iBAAiB,EAAE,CAAC,CAAC,MAAM;QAC3B,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,iBAAiB,EAAE,CAAC,CAAC,MAAM;QAC3B,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"taoSwitchValidatorIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoSwitchValidatorIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,yFAAsF;AACtF,6CAA2C;AAS9B,QAAA,wBAAwB,GAAG,CAAC,CAAC,YAAY,CAAC;IACrD,iCAAe;IACf,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QAEL,UAAU,EAAE,wBAAW,CAAC,eAAe;QAKvC,YAAY,EAAE,CAAC,CAAC,MAAM;QAKtB,iBAAiB,EAAE,CAAC,CAAC,MAAM;QAK3B,YAAY,EAAE,CAAC,CAAC,MAAM;QAKtB,iBAAiB,EAAE,CAAC,CAAC,MAAM;QAK3B,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;CACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"taoTransferStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoTransferStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,yFAAsF;AACtF,6CAA2C;AAC3C,0CAAgD;AAKnC,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,iCAAe;IACf,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,aAAa;QACrC,aAAa,EAAE,sBAAc;QAC7B,kBAAkB,EAAE,CAAC,CAAC,MAAM;QAC5B,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,iBAAiB,EAAE,CAAC,CAAC,MAAM;QAC3B,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"taoTransferStakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoTransferStakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,yFAAsF;AACtF,6CAA2C;AAC3C,0CAAgD;AAWnC,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,iCAAe;IACf,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QAEL,UAAU,EAAE,wBAAW,CAAC,aAAa;QAOrC,aAAa,EAAE,sBAAc;QAK7B,kBAAkB,EAAE,CAAC,CAAC,MAAM;QAK5B,MAAM,EAAE,CAAC,CAAC,MAAM;QAKhB,YAAY,EAAE,CAAC,CAAC,MAAM;QAKtB,iBAAiB,EAAE,CAAC,CAAC,MAAM;QAK3B,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;CACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"taoUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qDAAkD;AAClD,iEAA8D;AAKjD,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,+BAAc;IACd,2CAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QACL,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"taoUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/taoUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qDAAkD;AAClD,iEAA8D;AAWjD,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,+BAAc;IACd,2CAAoB;IACpB,CAAC,CAAC,IAAI,CAAC;QAML,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;CACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"withdrawIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/withdrawIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,qCAAkC;AAClC,0CAA0C;AAE7B,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QAEL,UAAU,EAAE,wBAAW,CAAC,KAAK;KAC9B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;KACzB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"withdrawIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/withdrawIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,qCAAkC;AAClC,0CAA0C;AAE7B,QAAA,cAAc,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QAEL,UAAU,EAAE,wBAAW,CAAC,KAAK;KAC9B,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QAKR,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;KACzB,CAAC;CACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "6.83.0",
3
+ "version": "6.85.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -12,6 +12,8 @@ import { intentTypes } from "./intentType";
12
12
  *
13
13
  * @param {String} intentType - The type of intent (always set to allocationAllocate)
14
14
  * @param {String} txRequestId - The allocationRequest txRequestId to allocate against
15
+ * @param {String} [legType] - The leg category: "trade" for a DvP delivery leg, "fee" for a payment-only operator-fee leg; mirrors the parent allocationRequest intent
16
+ * @param {String} [parentTradeId] - For fee legs, the trade identifier of the parent trade this fee belongs to
15
17
  */
16
18
  export const CantonAllocationAllocateIntent = t.intersection([
17
19
  BaseIntent,
@@ -33,6 +35,8 @@ export const CantonAllocationAllocateIntent = t.intersection([
33
35
  receiveAmount: t.string,
34
36
  allocateBefore: t.string,
35
37
  settleBefore: t.string,
38
+ legType: t.union([t.literal("trade"), t.literal("fee")]),
39
+ parentTradeId: t.string,
36
40
  comment: t.string,
37
41
  requestedAt: t.string,
38
42
  }),
@@ -10,9 +10,14 @@ import { intentTypes } from "./intentType";
10
10
  * (Delivery vs Payment) trade. The operator emits an AllocationRequest instructing both
11
11
  * parties to lock their respective assets before atomic settlement can proceed.
12
12
  *
13
- * Each intent covers one party's allocation leg. The `receiveToken` / `receiveAmount` fields
14
- * show what the allocating party will receive upon successful settlement, giving the user full
15
- * visibility into the trade terms before acting.
13
+ * Each intent covers one party's allocation leg. For a trade leg (`legType` "trade"), the
14
+ * `receiveToken` / `receiveAmount` fields show what the allocating party will receive upon
15
+ * successful settlement, giving the user full visibility into the trade terms before acting.
16
+ *
17
+ * A fee leg (`legType` "fee") is payment-only: the fee payer sends the operator fee and
18
+ * receives nothing, so the receive fields are absent. `parentTradeId` carries the trade
19
+ * identifier of the parent trade the fee belongs to (the fee trade's own `tradeId` is
20
+ * suffixed, e.g. "TC-1234:fee").
16
21
  *
17
22
  * @param {String} intentType - The type of intent (always set to allocationRequest)
18
23
  * @param {String} updateId - The transaction update id of the AllocationRequest event
@@ -24,8 +29,10 @@ import { intentTypes } from "./intentType";
24
29
  * @param {String} receiverPartyId - The counterparty receiving the allocated asset
25
30
  * @param {String} amount - Quantity to allocate (decimal string, e.g. "70.0000000000")
26
31
  * @param {String} token - BitGo token identifier for the asset being allocated
27
- * @param {String} receiveToken - BitGo token identifier the allocating party will receive on settlement
28
- * @param {String} receiveAmount - Quantity the allocating party will receive on settlement
32
+ * @param {String} [receiveToken] - BitGo token identifier the allocating party will receive on settlement; required for trade legs, absent for fee legs
33
+ * @param {String} [receiveAmount] - Quantity the allocating party will receive on settlement; required for trade legs, absent for fee legs
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
+ * @param {String} [parentTradeId] - For fee legs, the trade identifier of the parent trade this fee belongs to
29
36
  * @param {String} allocateBefore - ISO 8601 deadline by which allocation must be submitted
30
37
  * @param {String} settleBefore - ISO 8601 deadline by which settlement must complete
31
38
  * @param {String} [comment] - Optional free-form note
@@ -44,14 +51,16 @@ export const CantonAllocationRequestIntent = t.intersection([
44
51
  receiverPartyId: t.string,
45
52
  amount: t.string,
46
53
  token: t.string,
47
- receiveToken: t.string,
48
- receiveAmount: t.string,
49
54
  allocateBefore: t.string,
50
55
  settleBefore: t.string,
51
56
  }),
52
57
  t.partial({
53
58
  comment: t.string,
54
59
  requestedAt: t.string,
60
+ receiveToken: t.string,
61
+ receiveAmount: t.string,
62
+ legType: t.union([t.literal("trade"), t.literal("fee")]),
63
+ parentTradeId: t.string,
55
64
  }),
56
65
  ]);
57
66
 
@@ -15,8 +15,17 @@ export const TaoClaimRootIntent = t.intersection([
15
15
  BaseStakeIntent,
16
16
  SubstrateAccountBaseBuildOptions,
17
17
  t.type({
18
+ /** Must be "stakeClaimRewards". */
18
19
  intentType: intentTypes.stakeClaimRewards,
20
+ /**
21
+ * SS58-encoded public key of the hotkey whose accrued root-network basket
22
+ * rewards are being claimed.
23
+ */
19
24
  hotkey: t.string,
25
+ /**
26
+ * Must be "0" — the root network identifier. The underlying
27
+ * claimRootWithHotkey extrinsic only exists for the root network.
28
+ */
20
29
  netuid: t.string,
21
30
  }),
22
31
  ]);
@@ -3,12 +3,18 @@ import { StakeIntent } from "./stakeIntent";
3
3
  import { TaoStakingBaseIntent } from "./taoStakingBaseIntent";
4
4
 
5
5
  /**
6
+ * Stake TAO from the wallet's root address (coldkey) to a hotkey (validator)
7
+ * on a specified Bittensor subnet. Corresponds to the on-chain `add_stake`
8
+ * extrinsic. Requires a staking request ID from the BitGo staking service,
9
+ * and requires the enterprise to have staking permissions.
10
+ *
6
11
  * @title Tao Stake Intent
7
12
  */
8
13
  export const TaoStakeIntent = t.intersection([
9
14
  StakeIntent,
10
15
  TaoStakingBaseIntent,
11
16
  t.type({
17
+ /** Amount to stake, in base units (RAO for native TAO). */
12
18
  amountStaked: t.string,
13
19
  }),
14
20
  ]);
@@ -3,13 +3,25 @@ import { BaseStakeIntent } from "./baseStakeIntent";
3
3
  import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOptions";
4
4
 
5
5
  /**
6
+ * Base fields shared by the TAO staking intents (`stake` and `claim`): the
7
+ * hotkey (validator) and Bittensor subnet to operate on. All TAO staking
8
+ * operations are submitted by the wallet's root address (coldkey).
9
+ *
6
10
  * @title Tao Staking Base Intent
7
11
  */
8
12
  export const TaoStakingBaseIntent = t.intersection([
9
13
  BaseStakeIntent,
10
14
  SubstrateAccountBaseBuildOptions,
11
15
  t.type({
16
+ /**
17
+ * SS58-encoded public key of the hotkey (validator) to stake to or
18
+ * remove stake from on the specified subnet.
19
+ */
12
20
  hotkey: t.string,
21
+ /**
22
+ * Numeric identifier of the Bittensor subnet to stake on or remove stake
23
+ * from, as a string. Use "0" for the root network.
24
+ */
13
25
  netuid: t.string,
14
26
  }),
15
27
  ]);
@@ -4,17 +4,42 @@ import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOpt
4
4
  import { intentTypes } from "./intentType";
5
5
 
6
6
  /**
7
+ * Move staked alpha tokens from one hotkey (validator) or subnet to another
8
+ * within the same wallet coldkey — no unstaking and re-staking required.
9
+ * Corresponds to the on-chain `move_stake` extrinsic.
10
+ *
7
11
  * @title Tao Switch Validator Intent
8
12
  */
9
13
  export const TaoSwitchValidatorIntent = t.intersection([
10
14
  BaseStakeIntent,
11
15
  SubstrateAccountBaseBuildOptions,
12
16
  t.type({
17
+ /** Must be "switchValidator". */
13
18
  intentType: intentTypes.switchValidator,
19
+ /**
20
+ * SS58-encoded public key of the source hotkey (validator) currently
21
+ * holding the stake.
22
+ */
14
23
  originHotkey: t.string,
24
+ /**
25
+ * SS58-encoded public key of the target hotkey (validator) to move the
26
+ * stake to.
27
+ */
15
28
  destinationHotkey: t.string,
29
+ /**
30
+ * Numeric identifier of the source subnet where the stake currently
31
+ * resides, as a string.
32
+ */
16
33
  originNetuid: t.string,
34
+ /**
35
+ * Numeric identifier of the destination subnet to move the stake to,
36
+ * as a string. May equal originNetuid when changing hotkeys only.
37
+ */
17
38
  destinationNetuid: t.string,
39
+ /**
40
+ * Amount of alpha tokens to move, in raw alpha units. Must not exceed
41
+ * the staked balance for originHotkey on originNetuid.
42
+ */
18
43
  alphaAmount: t.string,
19
44
  }),
20
45
  ]);
@@ -5,18 +5,51 @@ import { intentTypes } from "./intentType";
5
5
  import { optionalString } from "../../../utils";
6
6
 
7
7
  /**
8
+ * Transfer staked alpha tokens from this wallet's coldkey to another coldkey
9
+ * on a specified subnet. This cross-coldkey operation transfers ownership of
10
+ * the stake without unstaking; it is distinct from switchValidator, which
11
+ * moves stake within the same coldkey. Corresponds to the on-chain
12
+ * `transfer_stake` extrinsic.
13
+ *
8
14
  * @title Tao Transfer Stake Intent
9
15
  */
10
16
  export const TaoTransferStakeIntent = t.intersection([
11
17
  BaseStakeIntent,
12
18
  SubstrateAccountBaseBuildOptions,
13
19
  t.type({
20
+ /** Must be "transferStake". */
14
21
  intentType: intentTypes.transferStake,
22
+ /**
23
+ * Optional SS58-encoded coldkey address within this wallet to send the
24
+ * stake from. Defaults to the wallet's root address when omitted. Must
25
+ * be a wallet-owned address; otherwise the request fails with an
26
+ * AddressNotFound error.
27
+ */
15
28
  originColdkey: optionalString,
29
+ /**
30
+ * SS58-encoded coldkey address of the recipient who will own the stake
31
+ * after the transfer. May belong to any wallet.
32
+ */
16
33
  destinationColdkey: t.string,
34
+ /**
35
+ * SS58-encoded public key of the hotkey (validator) whose stake position
36
+ * is being transferred. Must have an active stake on originNetuid.
37
+ */
17
38
  hotkey: t.string,
39
+ /**
40
+ * Numeric identifier of the source subnet where the stake currently
41
+ * resides, as a string.
42
+ */
18
43
  originNetuid: t.string,
44
+ /**
45
+ * Numeric identifier of the destination subnet where the transferred
46
+ * stake will be registered, as a string. May differ from originNetuid.
47
+ */
19
48
  destinationNetuid: t.string,
49
+ /**
50
+ * Amount of alpha tokens to transfer, in raw alpha units. Must not
51
+ * exceed the staked alpha balance for hotkey on originNetuid.
52
+ */
20
53
  alphaAmount: t.string,
21
54
  }),
22
55
  ]);
@@ -3,12 +3,23 @@ import { WithdrawIntent } from "./withdrawIntent";
3
3
  import { TaoStakingBaseIntent } from "./taoStakingBaseIntent";
4
4
 
5
5
  /**
6
+ * Remove staked TAO or alpha tokens from a hotkey on a specified subnet.
7
+ * Funds return to the wallet's root address (coldkey). Corresponds to the
8
+ * on-chain `remove_stake` extrinsic. Note: the `intentType` value for
9
+ * unstaking is "claim" (inherited from the generic withdraw/claim intent),
10
+ * not "unstake".
11
+ *
6
12
  * @title Tao Unstake Intent
7
13
  */
8
14
  export const TaoUnstakeIntent = t.intersection([
9
15
  WithdrawIntent,
10
16
  TaoStakingBaseIntent,
11
17
  t.type({
18
+ /**
19
+ * Amount to unstake, in base units (RAO for native TAO; raw alpha units
20
+ * for subnet tokens). Must not exceed the staked amount for the given
21
+ * hotkey and netuid.
22
+ */
12
23
  amountUnstaked: t.string,
13
24
  }),
14
25
  ]);
@@ -11,6 +11,10 @@ export const WithdrawIntent = t.intersection([
11
11
  intentType: intentTypes.claim,
12
12
  }),
13
13
  t.partial({
14
+ /**
15
+ * Optional amount override. amount.symbol identifies the asset;
16
+ * amount.value is the quantity in base units.
17
+ */
14
18
  amount: Optional(Amount),
15
19
  }),
16
20
  ]);