@bitgo/public-types 5.33.0 → 5.34.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.
@@ -4269,7 +4269,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
4269
4269
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
4270
4270
  }>]>, t.TypeC<{
4271
4271
  intentType: t.LiteralC<"customTx">;
4272
- solVersionedTransactionData: t.TypeC<{
4272
+ solVersionedTransactionData: t.IntersectionC<[t.TypeC<{
4273
4273
  versionedInstructions: t.ArrayC<t.TypeC<{
4274
4274
  programIdIndex: t.NumberC;
4275
4275
  accountKeyIndexes: t.ArrayC<t.NumberC>;
@@ -4286,7 +4286,9 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
4286
4286
  numReadonlySignedAccounts: t.NumberC;
4287
4287
  numReadonlyUnsignedAccounts: t.NumberC;
4288
4288
  }>;
4289
- }>;
4289
+ }>, t.PartialC<{
4290
+ recentBlockhash: t.StringC;
4291
+ }>]>;
4290
4292
  }>]>, t.IntersectionC<[t.PartialC<{
4291
4293
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
4292
4294
  }>, t.TypeC<{
@@ -48,7 +48,7 @@ export declare const SolVersionedCustomTxIntent: t.IntersectionC<[t.Intersection
48
48
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
49
49
  }>]>, t.TypeC<{
50
50
  intentType: t.LiteralC<"customTx">;
51
- solVersionedTransactionData: t.TypeC<{
51
+ solVersionedTransactionData: t.IntersectionC<[t.TypeC<{
52
52
  versionedInstructions: t.ArrayC<t.TypeC<{
53
53
  programIdIndex: t.NumberC;
54
54
  accountKeyIndexes: t.ArrayC<t.NumberC>;
@@ -65,6 +65,8 @@ export declare const SolVersionedCustomTxIntent: t.IntersectionC<[t.Intersection
65
65
  numReadonlySignedAccounts: t.NumberC;
66
66
  numReadonlyUnsignedAccounts: t.NumberC;
67
67
  }>;
68
- }>;
68
+ }>, t.PartialC<{
69
+ recentBlockhash: t.StringC;
70
+ }>]>;
69
71
  }>]>;
70
72
  export type SolVersionedCustomTxIntent = t.TypeOf<typeof SolVersionedCustomTxIntent>;
@@ -33,24 +33,29 @@ exports.SolVersionedCustomTxIntent = t.intersection([
33
33
  solBuildOptions_1.SolBuildOptions,
34
34
  t.type({
35
35
  intentType: intentType_1.intentTypes.customTx,
36
- solVersionedTransactionData: t.type({
37
- versionedInstructions: t.array(t.type({
38
- programIdIndex: t.number,
39
- accountKeyIndexes: t.array(t.number),
40
- data: t.string,
41
- })),
42
- addressLookupTables: t.array(t.type({
43
- accountKey: t.string,
44
- writableIndexes: t.array(t.number),
45
- readonlyIndexes: t.array(t.number),
46
- })),
47
- staticAccountKeys: t.array(t.string),
48
- messageHeader: t.type({
49
- numRequiredSignatures: t.number,
50
- numReadonlySignedAccounts: t.number,
51
- numReadonlyUnsignedAccounts: t.number,
36
+ solVersionedTransactionData: t.intersection([
37
+ t.type({
38
+ versionedInstructions: t.array(t.type({
39
+ programIdIndex: t.number,
40
+ accountKeyIndexes: t.array(t.number),
41
+ data: t.string,
42
+ })),
43
+ addressLookupTables: t.array(t.type({
44
+ accountKey: t.string,
45
+ writableIndexes: t.array(t.number),
46
+ readonlyIndexes: t.array(t.number),
47
+ })),
48
+ staticAccountKeys: t.array(t.string),
49
+ messageHeader: t.type({
50
+ numRequiredSignatures: t.number,
51
+ numReadonlySignedAccounts: t.number,
52
+ numReadonlyUnsignedAccounts: t.number,
53
+ }),
52
54
  }),
53
- }),
55
+ t.partial({
56
+ recentBlockhash: t.string,
57
+ }),
58
+ ]),
54
59
  }),
55
60
  ]);
56
61
  //# sourceMappingURL=solVersionedCustomTxIntent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"solVersionedCustomTxIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solVersionedCustomTxIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA2C;AAK9B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,2BAA2B,EAAE,CAAC,CAAC,IAAI,CAAC;YAClC,qBAAqB,EAAE,CAAC,CAAC,KAAK,CAC5B,CAAC,CAAC,IAAI,CAAC;gBACL,cAAc,EAAE,CAAC,CAAC,MAAM;gBACxB,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;gBACpC,IAAI,EAAE,CAAC,CAAC,MAAM;aACf,CAAC,CACH;YACD,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAC1B,CAAC,CAAC,IAAI,CAAC;gBACL,UAAU,EAAE,CAAC,CAAC,MAAM;gBACpB,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;gBAClC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;aACnC,CAAC,CACH;YACD,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;YACpC,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC;gBACpB,qBAAqB,EAAE,CAAC,CAAC,MAAM;gBAC/B,yBAAyB,EAAE,CAAC,CAAC,MAAM;gBACnC,2BAA2B,EAAE,CAAC,CAAC,MAAM;aACtC,CAAC;SACH,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"solVersionedCustomTxIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solVersionedCustomTxIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA2C;AAK9B,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,2BAA2B,EAAE,CAAC,CAAC,YAAY,CAAC;YAC1C,CAAC,CAAC,IAAI,CAAC;gBACL,qBAAqB,EAAE,CAAC,CAAC,KAAK,CAC5B,CAAC,CAAC,IAAI,CAAC;oBACL,cAAc,EAAE,CAAC,CAAC,MAAM;oBACxB,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;oBACpC,IAAI,EAAE,CAAC,CAAC,MAAM;iBACf,CAAC,CACH;gBACD,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAC1B,CAAC,CAAC,IAAI,CAAC;oBACL,UAAU,EAAE,CAAC,CAAC,MAAM;oBACpB,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;oBAClC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;iBACnC,CAAC,CACH;gBACD,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;gBACpC,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC;oBACpB,qBAAqB,EAAE,CAAC,CAAC,MAAM;oBAC/B,yBAAyB,EAAE,CAAC,CAAC,MAAM;oBACnC,2BAA2B,EAAE,CAAC,CAAC,MAAM;iBACtC,CAAC;aACH,CAAC;YACF,CAAC,CAAC,OAAO,CAAC;gBACR,eAAe,EAAE,CAAC,CAAC,MAAM;aAC1B,CAAC;SACH,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -4367,7 +4367,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
4367
4367
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
4368
4368
  }>]>, t.TypeC<{
4369
4369
  intentType: t.LiteralC<"customTx">;
4370
- solVersionedTransactionData: t.TypeC<{
4370
+ solVersionedTransactionData: t.IntersectionC<[t.TypeC<{
4371
4371
  versionedInstructions: t.ArrayC<t.TypeC<{
4372
4372
  programIdIndex: t.NumberC;
4373
4373
  accountKeyIndexes: t.ArrayC<t.NumberC>;
@@ -4384,7 +4384,9 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
4384
4384
  numReadonlySignedAccounts: t.NumberC;
4385
4385
  numReadonlyUnsignedAccounts: t.NumberC;
4386
4386
  }>;
4387
- }>;
4387
+ }>, t.PartialC<{
4388
+ recentBlockhash: t.StringC;
4389
+ }>]>;
4388
4390
  }>]>, t.IntersectionC<[t.PartialC<{
4389
4391
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
4390
4392
  }>, t.TypeC<{
@@ -11268,7 +11270,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
11268
11270
  memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
11269
11271
  }>]>, t.TypeC<{
11270
11272
  intentType: t.LiteralC<"customTx">;
11271
- solVersionedTransactionData: t.TypeC<{
11273
+ solVersionedTransactionData: t.IntersectionC<[t.TypeC<{
11272
11274
  versionedInstructions: t.ArrayC<t.TypeC<{
11273
11275
  programIdIndex: t.NumberC;
11274
11276
  accountKeyIndexes: t.ArrayC<t.NumberC>;
@@ -11285,7 +11287,9 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
11285
11287
  numReadonlySignedAccounts: t.NumberC;
11286
11288
  numReadonlyUnsignedAccounts: t.NumberC;
11287
11289
  }>;
11288
- }>;
11290
+ }>, t.PartialC<{
11291
+ recentBlockhash: t.StringC;
11292
+ }>]>;
11289
11293
  }>]>, t.IntersectionC<[t.PartialC<{
11290
11294
  nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
11291
11295
  }>, t.TypeC<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.33.0",
3
+ "version": "5.34.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -11,28 +11,33 @@ export const SolVersionedCustomTxIntent = t.intersection([
11
11
  SolBuildOptions,
12
12
  t.type({
13
13
  intentType: intentTypes.customTx,
14
- solVersionedTransactionData: t.type({
15
- versionedInstructions: t.array(
16
- t.type({
17
- programIdIndex: t.number,
18
- accountKeyIndexes: t.array(t.number),
19
- data: t.string,
14
+ solVersionedTransactionData: t.intersection([
15
+ t.type({
16
+ versionedInstructions: t.array(
17
+ t.type({
18
+ programIdIndex: t.number,
19
+ accountKeyIndexes: t.array(t.number),
20
+ data: t.string,
21
+ }),
22
+ ),
23
+ addressLookupTables: t.array(
24
+ t.type({
25
+ accountKey: t.string,
26
+ writableIndexes: t.array(t.number),
27
+ readonlyIndexes: t.array(t.number),
28
+ }),
29
+ ),
30
+ staticAccountKeys: t.array(t.string),
31
+ messageHeader: t.type({
32
+ numRequiredSignatures: t.number,
33
+ numReadonlySignedAccounts: t.number,
34
+ numReadonlyUnsignedAccounts: t.number,
20
35
  }),
21
- ),
22
- addressLookupTables: t.array(
23
- t.type({
24
- accountKey: t.string,
25
- writableIndexes: t.array(t.number),
26
- readonlyIndexes: t.array(t.number),
27
- }),
28
- ),
29
- staticAccountKeys: t.array(t.string),
30
- messageHeader: t.type({
31
- numRequiredSignatures: t.number,
32
- numReadonlySignedAccounts: t.number,
33
- numReadonlyUnsignedAccounts: t.number,
34
36
  }),
35
- }),
37
+ t.partial({
38
+ recentBlockhash: t.string,
39
+ }),
40
+ ]),
36
41
  }),
37
42
  ]);
38
43