@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.
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +4 -2
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.d.ts +4 -2
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.js +22 -17
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +8 -4
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.ts +25 -20
|
@@ -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.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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;
|
|
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
|
@@ -11,28 +11,33 @@ export const SolVersionedCustomTxIntent = t.intersection([
|
|
|
11
11
|
SolBuildOptions,
|
|
12
12
|
t.type({
|
|
13
13
|
intentType: intentTypes.customTx,
|
|
14
|
-
solVersionedTransactionData: t.
|
|
15
|
-
|
|
16
|
-
t.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
|