@bitgo/public-types 5.25.1 → 5.26.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/aptCustomTxIntent.d.ts +4 -0
- package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.js +5 -0
- package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +4 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/aptCustomTxIntent.ts +7 -0
@@ -52,6 +52,10 @@ export declare const AptCustomTxIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
52
52
|
aptosCustomTransactionParams: t.IntersectionC<[t.TypeC<{
|
53
53
|
moduleName: t.StringC;
|
54
54
|
functionName: t.StringC;
|
55
|
+
abi: t.TypeC<{
|
56
|
+
typeParameters: t.ArrayC<t.AnyC>;
|
57
|
+
parameters: t.ArrayC<t.AnyC>;
|
58
|
+
}>;
|
55
59
|
}>, t.PartialC<{
|
56
60
|
typeArguments: t.ArrayC<t.StringC>;
|
57
61
|
functionArguments: t.ArrayC<t.AnyC>;
|
@@ -28,6 +28,10 @@ const t = __importStar(require("io-ts"));
|
|
28
28
|
const aptBuildOptions_1 = require("./aptBuildOptions");
|
29
29
|
const baseIntent_1 = require("./baseIntent");
|
30
30
|
const intentType_1 = require("./intentType");
|
31
|
+
const EntryFunctionABI = t.type({
|
32
|
+
typeParameters: t.array(t.any),
|
33
|
+
parameters: t.array(t.any),
|
34
|
+
});
|
31
35
|
exports.AptCustomTxIntent = t.intersection([
|
32
36
|
baseIntent_1.BaseIntent,
|
33
37
|
aptBuildOptions_1.AptBuildOptions,
|
@@ -37,6 +41,7 @@ exports.AptCustomTxIntent = t.intersection([
|
|
37
41
|
t.type({
|
38
42
|
moduleName: t.string,
|
39
43
|
functionName: t.string,
|
44
|
+
abi: EntryFunctionABI,
|
40
45
|
}),
|
41
46
|
t.partial({
|
42
47
|
typeArguments: t.array(t.string),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"aptCustomTxIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/aptCustomTxIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA2C;
|
1
|
+
{"version":3,"file":"aptCustomTxIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/aptCustomTxIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA0C;AAC1C,6CAA2C;AAG3C,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9B,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;IAC9B,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;CAC3B,CAAC,CAAC;AAKU,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,4BAA4B,EAAE,CAAC,CAAC,YAAY,CAAC;YAC3C,CAAC,CAAC,IAAI,CAAC;gBACL,UAAU,EAAE,CAAC,CAAC,MAAM;gBACpB,YAAY,EAAE,CAAC,CAAC,MAAM;gBACtB,GAAG,EAAE,gBAAgB;aACtB,CAAC;YACF,CAAC,CAAC,OAAO,CAAC;gBACR,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;gBAChC,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;aAClC,CAAC;SACH,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
@@ -387,6 +387,10 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
387
387
|
aptosCustomTransactionParams: t.IntersectionC<[t.TypeC<{
|
388
388
|
moduleName: t.StringC;
|
389
389
|
functionName: t.StringC;
|
390
|
+
abi: t.TypeC<{
|
391
|
+
typeParameters: t.ArrayC<t.AnyC>;
|
392
|
+
parameters: t.ArrayC<t.AnyC>;
|
393
|
+
}>;
|
390
394
|
}>, t.PartialC<{
|
391
395
|
typeArguments: t.ArrayC<t.StringC>;
|
392
396
|
functionArguments: t.ArrayC<t.AnyC>;
|
package/package.json
CHANGED
@@ -3,6 +3,12 @@ import { AptBuildOptions } from "./aptBuildOptions";
|
|
3
3
|
import { BaseIntent } from "./baseIntent";
|
4
4
|
import { intentTypes } from "./intentType";
|
5
5
|
|
6
|
+
// EntryFunctionABI codec for io-ts validation
|
7
|
+
const EntryFunctionABI = t.type({
|
8
|
+
typeParameters: t.array(t.any),
|
9
|
+
parameters: t.array(t.any),
|
10
|
+
});
|
11
|
+
|
6
12
|
/**
|
7
13
|
* @title APT Custom Transaction Intent
|
8
14
|
*/
|
@@ -15,6 +21,7 @@ export const AptCustomTxIntent = t.intersection([
|
|
15
21
|
t.type({
|
16
22
|
moduleName: t.string,
|
17
23
|
functionName: t.string,
|
24
|
+
abi: EntryFunctionABI,
|
18
25
|
}),
|
19
26
|
t.partial({
|
20
27
|
typeArguments: t.array(t.string),
|