@bitgo/public-types 5.23.1 → 5.25.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 (21) hide show
  1. package/dist/src/schema/transactionRequest/intents/aptBuildOptions.d.ts +9 -0
  2. package/dist/src/schema/transactionRequest/intents/aptBuildOptions.js +37 -0
  3. package/dist/src/schema/transactionRequest/intents/aptBuildOptions.js.map +1 -0
  4. package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.d.ts +60 -0
  5. package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.js +48 -0
  6. package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.js.map +1 -0
  7. package/dist/src/schema/transactionRequest/intents/index.d.ts +1 -0
  8. package/dist/src/schema/transactionRequest/intents/index.js +1 -0
  9. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  10. package/dist/src/schema/transactionRequest/intents/intent.d.ts +135 -0
  11. package/dist/src/schema/transactionRequest/intents/intent.js +4 -0
  12. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  13. package/dist/src/schema/transactionRequest/intents/polyxPreApproveAssetIntent.d.ts +81 -0
  14. package/dist/src/schema/transactionRequest/intents/polyxPreApproveAssetIntent.js +44 -0
  15. package/dist/src/schema/transactionRequest/intents/polyxPreApproveAssetIntent.js.map +1 -0
  16. package/package.json +1 -1
  17. package/src/schema/transactionRequest/intents/aptBuildOptions.ts +13 -0
  18. package/src/schema/transactionRequest/intents/aptCustomTxIntent.ts +27 -0
  19. package/src/schema/transactionRequest/intents/index.ts +1 -0
  20. package/src/schema/transactionRequest/intents/intent.ts +4 -0
  21. package/src/schema/transactionRequest/intents/polyxPreApproveAssetIntent.ts +25 -0
@@ -0,0 +1,9 @@
1
+ import * as t from "io-ts";
2
+ export declare const AptBuildOptions: t.IntersectionC<[t.PartialC<{
3
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
4
+ }>, t.PartialC<{
5
+ maxGasAmount: t.NumberC;
6
+ gasUnitPrice: t.NumberC;
7
+ expirationTime: t.NumberC;
8
+ }>]>;
9
+ export type AptBuildOptions = t.TypeOf<typeof AptBuildOptions>;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.AptBuildOptions = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const accountBaseBuildOptions_1 = require("./accountBaseBuildOptions");
29
+ exports.AptBuildOptions = t.intersection([
30
+ accountBaseBuildOptions_1.AccountBaseBuildOptions,
31
+ t.partial({
32
+ maxGasAmount: t.number,
33
+ gasUnitPrice: t.number,
34
+ expirationTime: t.number,
35
+ }),
36
+ ]);
37
+ //# sourceMappingURL=aptBuildOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aptBuildOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/aptBuildOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uEAAoE;AAEvD,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,iDAAuB;IACvB,CAAC,CAAC,OAAO,CAAC;QACR,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,60 @@
1
+ import * as t from "io-ts";
2
+ export declare const AptCustomTxIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
+ intentType: t.KeyofC<{
4
+ payment: t.LiteralC<"payment">;
5
+ transferToken: t.LiteralC<"transferToken">;
6
+ consolidate: t.LiteralC<"consolidate">;
7
+ consolidateToken: t.LiteralC<"consolidateToken">;
8
+ fanout: t.LiteralC<"fanout">;
9
+ stake: t.LiteralC<"stake">;
10
+ unstake: t.LiteralC<"unstake">;
11
+ delegate: t.LiteralC<"delegate">;
12
+ undelegate: t.LiteralC<"undelegate">;
13
+ switchValidator: t.LiteralC<"switchValidator">;
14
+ claim: t.LiteralC<"claim">;
15
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
16
+ pledge: t.LiteralC<"pledge">;
17
+ voteDelegation: t.LiteralC<"voteDelegation">;
18
+ vote: t.LiteralC<"vote">;
19
+ createAccount: t.LiteralC<"createAccount">;
20
+ updateAccount: t.LiteralC<"updateAccount">;
21
+ addTrustLine: t.LiteralC<"addTrustLine">;
22
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
23
+ signMessage: t.LiteralC<"signMessage">;
24
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
25
+ enableToken: t.LiteralC<"enableToken">;
26
+ authorize: t.LiteralC<"authorize">;
27
+ acceleration: t.LiteralC<"acceleration">;
28
+ fillNonce: t.LiteralC<"fillNonce">;
29
+ walletRecovery: t.LiteralC<"walletRecovery">;
30
+ contractCall: t.LiteralC<"contractCall">;
31
+ deactivate: t.LiteralC<"deactivate">;
32
+ customTx: t.LiteralC<"customTx">;
33
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
34
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
35
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
36
+ tokenApproval: t.LiteralC<"tokenApproval">;
37
+ goUnstake: t.LiteralC<"goUnstake">;
38
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
39
+ }>;
40
+ }>, t.PartialC<{
41
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
42
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
43
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
44
+ }>]>, t.IntersectionC<[t.PartialC<{
45
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
46
+ }>, t.PartialC<{
47
+ maxGasAmount: t.NumberC;
48
+ gasUnitPrice: t.NumberC;
49
+ expirationTime: t.NumberC;
50
+ }>]>, t.TypeC<{
51
+ intentType: t.LiteralC<"customTx">;
52
+ aptosCustomTransactionParams: t.IntersectionC<[t.TypeC<{
53
+ moduleName: t.StringC;
54
+ functionName: t.StringC;
55
+ }>, t.PartialC<{
56
+ typeArguments: t.ArrayC<t.StringC>;
57
+ functionArguments: t.ArrayC<t.AnyC>;
58
+ }>]>;
59
+ }>]>;
60
+ export type AptCustomTxIntent = t.TypeOf<typeof AptCustomTxIntent>;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.AptCustomTxIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const aptBuildOptions_1 = require("./aptBuildOptions");
29
+ const baseIntent_1 = require("./baseIntent");
30
+ const intentType_1 = require("./intentType");
31
+ exports.AptCustomTxIntent = t.intersection([
32
+ baseIntent_1.BaseIntent,
33
+ aptBuildOptions_1.AptBuildOptions,
34
+ t.type({
35
+ intentType: intentType_1.intentTypes.customTx,
36
+ aptosCustomTransactionParams: t.intersection([
37
+ t.type({
38
+ moduleName: t.string,
39
+ functionName: t.string,
40
+ }),
41
+ t.partial({
42
+ typeArguments: t.array(t.string),
43
+ functionArguments: t.array(t.any),
44
+ }),
45
+ ]),
46
+ }),
47
+ ]);
48
+ //# sourceMappingURL=aptCustomTxIntent.js.map
@@ -0,0 +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;AAK9B,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;aACvB,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"}
@@ -12,6 +12,7 @@ export * from "./adaUnstakeIntent";
12
12
  export * from "./adaVoteDelegationIntent";
13
13
  export * from "./address";
14
14
  export * from "./amount";
15
+ export * from "./aptCustomTxIntent";
15
16
  export * from "./atomPaymentIntent";
16
17
  export * from "./atomStakeIntent";
17
18
  export * from "./atomUnstakeIntent";
@@ -28,6 +28,7 @@ __exportStar(require("./adaUnstakeIntent"), exports);
28
28
  __exportStar(require("./adaVoteDelegationIntent"), exports);
29
29
  __exportStar(require("./address"), exports);
30
30
  __exportStar(require("./amount"), exports);
31
+ __exportStar(require("./aptCustomTxIntent"), exports);
31
32
  __exportStar(require("./atomPaymentIntent"), exports);
32
33
  __exportStar(require("./atomStakeIntent"), exports);
33
34
  __exportStar(require("./atomUnstakeIntent"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC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B,+DAA6C;AAC7C,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,8DAA4C;AAC5C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,6DAA2C;AAC3C,qDAAmC;AACnC,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,qDAAmC;AACnC,+DAA6C;AAC7C,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,+DAA6C;AAC7C,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kEAAgD;AAChD,6DAA2C;AAC3C,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;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ACnD,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,qDAAmC;AACnC,+DAA6C;AAC7C,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,uDAAqC"}
@@ -334,6 +334,63 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
334
334
  intentType: t.LiteralC<"voteDelegation">;
335
335
  }>]>, t.TypeC<{
336
336
  dRepId: t.StringC;
337
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
338
+ intentType: t.KeyofC<{
339
+ payment: t.LiteralC<"payment">;
340
+ transferToken: t.LiteralC<"transferToken">;
341
+ consolidate: t.LiteralC<"consolidate">;
342
+ consolidateToken: t.LiteralC<"consolidateToken">;
343
+ fanout: t.LiteralC<"fanout">;
344
+ stake: t.LiteralC<"stake">;
345
+ unstake: t.LiteralC<"unstake">;
346
+ delegate: t.LiteralC<"delegate">;
347
+ undelegate: t.LiteralC<"undelegate">;
348
+ switchValidator: t.LiteralC<"switchValidator">;
349
+ claim: t.LiteralC<"claim">;
350
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
351
+ pledge: t.LiteralC<"pledge">;
352
+ voteDelegation: t.LiteralC<"voteDelegation">;
353
+ vote: t.LiteralC<"vote">;
354
+ createAccount: t.LiteralC<"createAccount">;
355
+ updateAccount: t.LiteralC<"updateAccount">;
356
+ addTrustLine: t.LiteralC<"addTrustLine">;
357
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
358
+ signMessage: t.LiteralC<"signMessage">;
359
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
360
+ enableToken: t.LiteralC<"enableToken">;
361
+ authorize: t.LiteralC<"authorize">;
362
+ acceleration: t.LiteralC<"acceleration">;
363
+ fillNonce: t.LiteralC<"fillNonce">;
364
+ walletRecovery: t.LiteralC<"walletRecovery">;
365
+ contractCall: t.LiteralC<"contractCall">;
366
+ deactivate: t.LiteralC<"deactivate">;
367
+ customTx: t.LiteralC<"customTx">;
368
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
369
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
370
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
371
+ tokenApproval: t.LiteralC<"tokenApproval">;
372
+ goUnstake: t.LiteralC<"goUnstake">;
373
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
374
+ }>;
375
+ }>, t.PartialC<{
376
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
377
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
378
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
379
+ }>]>, t.IntersectionC<[t.PartialC<{
380
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
381
+ }>, t.PartialC<{
382
+ maxGasAmount: t.NumberC;
383
+ gasUnitPrice: t.NumberC;
384
+ expirationTime: t.NumberC;
385
+ }>]>, t.TypeC<{
386
+ intentType: t.LiteralC<"customTx">;
387
+ aptosCustomTransactionParams: t.IntersectionC<[t.TypeC<{
388
+ moduleName: t.StringC;
389
+ functionName: t.StringC;
390
+ }>, t.PartialC<{
391
+ typeArguments: t.ArrayC<t.StringC>;
392
+ functionArguments: t.ArrayC<t.AnyC>;
393
+ }>]>;
337
394
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
338
395
  intentType: t.KeyofC<{
339
396
  payment: t.LiteralC<"payment">;
@@ -2916,6 +2973,84 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
2916
2973
  } & {
2917
2974
  data?: string | undefined;
2918
2975
  })[], unknown>, t.UndefinedC]>;
2976
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2977
+ intentType: t.KeyofC<{
2978
+ payment: t.LiteralC<"payment">;
2979
+ transferToken: t.LiteralC<"transferToken">;
2980
+ consolidate: t.LiteralC<"consolidate">;
2981
+ consolidateToken: t.LiteralC<"consolidateToken">;
2982
+ fanout: t.LiteralC<"fanout">;
2983
+ stake: t.LiteralC<"stake">;
2984
+ unstake: t.LiteralC<"unstake">;
2985
+ delegate: t.LiteralC<"delegate">;
2986
+ undelegate: t.LiteralC<"undelegate">;
2987
+ switchValidator: t.LiteralC<"switchValidator">;
2988
+ claim: t.LiteralC<"claim">;
2989
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
2990
+ pledge: t.LiteralC<"pledge">;
2991
+ voteDelegation: t.LiteralC<"voteDelegation">;
2992
+ vote: t.LiteralC<"vote">;
2993
+ createAccount: t.LiteralC<"createAccount">;
2994
+ updateAccount: t.LiteralC<"updateAccount">;
2995
+ addTrustLine: t.LiteralC<"addTrustLine">;
2996
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
2997
+ signMessage: t.LiteralC<"signMessage">;
2998
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
2999
+ enableToken: t.LiteralC<"enableToken">;
3000
+ authorize: t.LiteralC<"authorize">;
3001
+ acceleration: t.LiteralC<"acceleration">;
3002
+ fillNonce: t.LiteralC<"fillNonce">;
3003
+ walletRecovery: t.LiteralC<"walletRecovery">;
3004
+ contractCall: t.LiteralC<"contractCall">;
3005
+ deactivate: t.LiteralC<"deactivate">;
3006
+ customTx: t.LiteralC<"customTx">;
3007
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3008
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
3009
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
3010
+ tokenApproval: t.LiteralC<"tokenApproval">;
3011
+ goUnstake: t.LiteralC<"goUnstake">;
3012
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
3013
+ }>;
3014
+ }>, t.PartialC<{
3015
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3016
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3017
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3018
+ }>]>, t.IntersectionC<[t.PartialC<{
3019
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3020
+ }>, t.PartialC<{
3021
+ fee: t.UnionC<[t.Type<{
3022
+ amount: string | number;
3023
+ } & {
3024
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
3025
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
3026
+ type?: "max" | "base" | "tip" | undefined;
3027
+ }, {
3028
+ amount: string | number;
3029
+ } & {
3030
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
3031
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
3032
+ type?: "max" | "base" | "tip" | undefined;
3033
+ }, unknown>, t.UndefinedC]>;
3034
+ }>]>, t.TypeC<{
3035
+ intentType: t.LiteralC<"addTrustLine">;
3036
+ recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
3037
+ address: t.PartialC<{
3038
+ address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3039
+ option: t.UnionC<[t.Type<{
3040
+ [x: string]: unknown;
3041
+ }, {
3042
+ [x: string]: unknown;
3043
+ }, unknown>, t.UndefinedC]>;
3044
+ }>;
3045
+ amount: t.TypeC<{
3046
+ value: t.StringC;
3047
+ symbol: t.StringC;
3048
+ }>;
3049
+ }>, t.PartialC<{
3050
+ data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3051
+ }>]>>;
3052
+ }>, t.PartialC<{
3053
+ memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
2919
3054
  }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
2920
3055
  intentType: t.KeyofC<{
2921
3056
  payment: t.LiteralC<"payment">;
@@ -29,6 +29,7 @@ const adaConsolidateIntent_1 = require("./adaConsolidateIntent");
29
29
  const adaPaymentIntent_1 = require("./adaPaymentIntent");
30
30
  const adaStakeIntent_1 = require("./adaStakeIntent");
31
31
  const adaVoteDelegationIntent_1 = require("./adaVoteDelegationIntent");
32
+ const aptCustomTxIntent_1 = require("./aptCustomTxIntent");
32
33
  const atomPaymentIntent_1 = require("./atomPaymentIntent");
33
34
  const atomStakeIntent_1 = require("./atomStakeIntent");
34
35
  const atomUnstakeIntent_1 = require("./atomUnstakeIntent");
@@ -61,6 +62,7 @@ const nearStakeIntent_1 = require("./nearStakeIntent");
61
62
  const nearUnstakeIntent_1 = require("./nearUnstakeIntent");
62
63
  const nearWithdrawIntent_1 = require("./nearWithdrawIntent");
63
64
  const polyxCreateAccountIntent_1 = require("./polyxCreateAccountIntent");
65
+ const polyxPreApproveAssetIntent_1 = require("./polyxPreApproveAssetIntent");
64
66
  const polyxStakeIntent_1 = require("./polyxStakeIntent");
65
67
  const polyxUnstakeIntent_1 = require("./polyxUnstakeIntent");
66
68
  const polyxWithdrawIntent_1 = require("./polyxWithdrawIntent");
@@ -119,6 +121,7 @@ exports.TransactionIntent = t.union([
119
121
  adaStakeIntent_1.AdaStakeIntent,
120
122
  adaUnstakeIntent_1.AdaUnstakeIntent,
121
123
  adaVoteDelegationIntent_1.AdaVoteDelegationIntent,
124
+ aptCustomTxIntent_1.AptCustomTxIntent,
122
125
  atomPaymentIntent_1.AtomPaymentIntent,
123
126
  atomStakeIntent_1.AtomStakeIntent,
124
127
  atomUnstakeIntent_1.AtomUnstakeIntent,
@@ -155,6 +158,7 @@ exports.TransactionIntent = t.union([
155
158
  nearUnstakeIntent_1.NearUnstakeIntent,
156
159
  nearWithdrawIntent_1.NearWithdrawIntent,
157
160
  polyxCreateAccountIntent_1.PolyxCreateAccountIntent,
161
+ polyxPreApproveAssetIntent_1.PolyxPreApproveAssetIntent,
158
162
  polyxStakeIntent_1.PolyxStakeIntent,
159
163
  polyxUnstakeIntent_1.PolyxUnstakeIntent,
160
164
  polyxWithdrawIntent_1.PolyxWithdrawIntent,
@@ -1 +1 @@
1
- {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,uEAAoE;AACpE,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,mFAAgF;AAChF,yEAAsE;AACtE,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,6DAG8B;AAC9B,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,yEAAsE;AACtE,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,yEAAsE;AACtE,yDAAsD;AACtD,6DAA0D;AAC1D,+DAA4D;AAC5D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,2DAAwD;AACxD,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,6EAA0E;AAC1E,qEAAkE;AAClE,qDAAkD;AAClD,yEAAsE;AACtE,yDAAsD;AACtD,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D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Ac;IACd,mCAAgB;IAChB,uDAA0B;IAC1B,+CAAsB;IACtB,2CAAoB;IACpB,qCAAiB;IACjB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+BAAc;IACd,mDAAwB;IACxB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,mCAAgB;IAChB,4CAAuB;IACvB,qCAAgB;IAChB,uDAA0B;IAC1B,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IAKpB,uBAAU;CACX,CAAC,CAAC"}
1
+ {"version":3,"file":"intent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/intent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,iEAA8D;AAC9D,yDAAsD;AACtD,qDAAkD;AAClD,uEAAoE;AACpE,2DAAwD;AACxD,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,mFAAgF;AAChF,yEAAsE;AACtE,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,6DAG8B;AAC9B,+DAA4D;AAC5D,2DAAwD;AACxD,+EAA4E;AAC5E,+DAA4D;AAC5D,iEAA8D;AAC9D,qEAAkE;AAClE,yDAAsD;AACtD,yDAAsD;AACtD,6DAA0D;AAC1D,qEAAkE;AAClE,mEAAgE;AAChE,6DAA0D;AAC1D,yDAAsD;AACtD,yDAAsD;AACtD,yEAAsE;AACtE,yDAAsD;AACtD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,yEAAsE;AACtE,6EAA0E;AAC1E,yDAAsD;AACtD,6DAA0D;AAC1D,+DAA4D;AAC5D,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B,mCAAgB;IAChB,+CAAsB;IACtB,mDAAwB;IACxB,mCAAgB;IAChB,+CAAsB;IACtB,2CAAoB;IACpB,mDAAwB;IACxB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,mDAAwB;IACxB,uDAA0B;IAC1B,mCAAgB;IAChB,uCAAkB;IAClB,yCAAmB;IACnB,uCAAkB;IAClB,+BAAc;IACd,2EAAoC;IACpC,2CAAoB;IACpB,6EAAqC;IACrC,qCAAiB;IACjB,yCAAmB;IACnB,qCAAiB;IACjB,uCAAkB;IAClB,mCAAgB;IAChB,+BAAc;IACd,mCAAgB;IAChB,uDAA0B;IAC1B,+CAAsB;IACtB,2CAAoB;IACpB,qCAAiB;IACjB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+BAAc;IACd,mDAAwB;IACxB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,mCAAgB;IAChB,4CAAuB;IACvB,qCAAgB;IAChB,uDAA0B;IAC1B,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IAKpB,uBAAU;CACX,CAAC,CAAC"}
@@ -0,0 +1,81 @@
1
+ import * as t from "io-ts";
2
+ export declare const PolyxPreApproveAssetIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3
+ intentType: t.KeyofC<{
4
+ payment: t.LiteralC<"payment">;
5
+ transferToken: t.LiteralC<"transferToken">;
6
+ consolidate: t.LiteralC<"consolidate">;
7
+ consolidateToken: t.LiteralC<"consolidateToken">;
8
+ fanout: t.LiteralC<"fanout">;
9
+ stake: t.LiteralC<"stake">;
10
+ unstake: t.LiteralC<"unstake">;
11
+ delegate: t.LiteralC<"delegate">;
12
+ undelegate: t.LiteralC<"undelegate">;
13
+ switchValidator: t.LiteralC<"switchValidator">;
14
+ claim: t.LiteralC<"claim">;
15
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
16
+ pledge: t.LiteralC<"pledge">;
17
+ voteDelegation: t.LiteralC<"voteDelegation">;
18
+ vote: t.LiteralC<"vote">;
19
+ createAccount: t.LiteralC<"createAccount">;
20
+ updateAccount: t.LiteralC<"updateAccount">;
21
+ addTrustLine: t.LiteralC<"addTrustLine">;
22
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
23
+ signMessage: t.LiteralC<"signMessage">;
24
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
25
+ enableToken: t.LiteralC<"enableToken">;
26
+ authorize: t.LiteralC<"authorize">;
27
+ acceleration: t.LiteralC<"acceleration">;
28
+ fillNonce: t.LiteralC<"fillNonce">;
29
+ walletRecovery: t.LiteralC<"walletRecovery">;
30
+ contractCall: t.LiteralC<"contractCall">;
31
+ deactivate: t.LiteralC<"deactivate">;
32
+ customTx: t.LiteralC<"customTx">;
33
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
34
+ stakeWithCallData: t.LiteralC<"stakeWithCallData">;
35
+ feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
36
+ tokenApproval: t.LiteralC<"tokenApproval">;
37
+ goUnstake: t.LiteralC<"goUnstake">;
38
+ createBtcDelegation: t.LiteralC<"createBtcDelegation">;
39
+ }>;
40
+ }>, t.PartialC<{
41
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
42
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
43
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
44
+ }>]>, t.IntersectionC<[t.PartialC<{
45
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
46
+ }>, t.PartialC<{
47
+ fee: t.UnionC<[t.Type<{
48
+ amount: string | number;
49
+ } & {
50
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
51
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
52
+ type?: "max" | "base" | "tip" | undefined;
53
+ }, {
54
+ amount: string | number;
55
+ } & {
56
+ unit?: "baseUnit" | "cpu" | "ram" | undefined;
57
+ formula?: "fixed" | "feeRate" | "perKB" | "custom" | undefined;
58
+ type?: "max" | "base" | "tip" | undefined;
59
+ }, unknown>, t.UndefinedC]>;
60
+ }>]>, t.TypeC<{
61
+ intentType: t.LiteralC<"addTrustLine">;
62
+ recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
63
+ address: t.PartialC<{
64
+ address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
65
+ option: t.UnionC<[t.Type<{
66
+ [x: string]: unknown;
67
+ }, {
68
+ [x: string]: unknown;
69
+ }, unknown>, t.UndefinedC]>;
70
+ }>;
71
+ amount: t.TypeC<{
72
+ value: t.StringC;
73
+ symbol: t.StringC;
74
+ }>;
75
+ }>, t.PartialC<{
76
+ data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
77
+ }>]>>;
78
+ }>, t.PartialC<{
79
+ memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
80
+ }>]>;
81
+ export type PolyxPreApproveAssetIntent = t.TypeOf<typeof PolyxPreApproveAssetIntent>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.PolyxPreApproveAssetIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const baseIntent_1 = require("./baseIntent");
29
+ const intentType_1 = require("./intentType");
30
+ const substrateAccountBaseBuildOptions_1 = require("./substrateAccountBaseBuildOptions");
31
+ const recipientEntry_1 = require("./recipientEntry");
32
+ const utils_1 = require("../../../utils");
33
+ exports.PolyxPreApproveAssetIntent = t.intersection([
34
+ baseIntent_1.BaseIntent,
35
+ substrateAccountBaseBuildOptions_1.SubstrateAccountBaseBuildOptions,
36
+ t.type({
37
+ intentType: intentType_1.intentTypes.addTrustLine,
38
+ recipients: t.array(recipientEntry_1.RecipientEntry),
39
+ }),
40
+ t.partial({
41
+ memo: utils_1.optionalString,
42
+ }),
43
+ ]);
44
+ //# sourceMappingURL=polyxPreApproveAssetIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polyxPreApproveAssetIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/polyxPreApproveAssetIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,yFAAsF;AACtF,qDAAkD;AAClD,0CAAgD;AAKnC,QAAA,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,uBAAU;IACV,mEAAgC;IAChC,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,YAAY;QACpC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC;KACpC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,sBAAc;KACrB,CAAC;CACH,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.23.1",
3
+ "version": "5.25.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -0,0 +1,13 @@
1
+ import * as t from "io-ts";
2
+ import { AccountBaseBuildOptions } from "./accountBaseBuildOptions";
3
+
4
+ export const AptBuildOptions = t.intersection([
5
+ AccountBaseBuildOptions,
6
+ t.partial({
7
+ maxGasAmount: t.number,
8
+ gasUnitPrice: t.number,
9
+ expirationTime: t.number,
10
+ }),
11
+ ]);
12
+
13
+ export type AptBuildOptions = t.TypeOf<typeof AptBuildOptions>;
@@ -0,0 +1,27 @@
1
+ import * as t from "io-ts";
2
+ import { AptBuildOptions } from "./aptBuildOptions";
3
+ import { BaseIntent } from "./baseIntent";
4
+ import { intentTypes } from "./intentType";
5
+
6
+ /**
7
+ * @title APT Custom Transaction Intent
8
+ */
9
+ export const AptCustomTxIntent = t.intersection([
10
+ BaseIntent,
11
+ AptBuildOptions,
12
+ t.type({
13
+ intentType: intentTypes.customTx,
14
+ aptosCustomTransactionParams: t.intersection([
15
+ t.type({
16
+ moduleName: t.string,
17
+ functionName: t.string,
18
+ }),
19
+ t.partial({
20
+ typeArguments: t.array(t.string),
21
+ functionArguments: t.array(t.any),
22
+ }),
23
+ ]),
24
+ }),
25
+ ]);
26
+
27
+ export type AptCustomTxIntent = t.TypeOf<typeof AptCustomTxIntent>;
@@ -12,6 +12,7 @@ export * from "./adaUnstakeIntent";
12
12
  export * from "./adaVoteDelegationIntent";
13
13
  export * from "./address";
14
14
  export * from "./amount";
15
+ export * from "./aptCustomTxIntent";
15
16
  export * from "./atomPaymentIntent";
16
17
  export * from "./atomStakeIntent";
17
18
  export * from "./atomUnstakeIntent";
@@ -3,6 +3,7 @@ import { AdaConsolidateIntent } from "./adaConsolidateIntent";
3
3
  import { AdaPaymentIntent } from "./adaPaymentIntent";
4
4
  import { AdaStakeIntent } from "./adaStakeIntent";
5
5
  import { AdaVoteDelegationIntent } from "./adaVoteDelegationIntent";
6
+ import { AptCustomTxIntent } from "./aptCustomTxIntent";
6
7
  import { AtomPaymentIntent } from "./atomPaymentIntent";
7
8
  import { AtomStakeIntent } from "./atomStakeIntent";
8
9
  import { AtomUnstakeIntent } from "./atomUnstakeIntent";
@@ -38,6 +39,7 @@ import { NearStakeIntent } from "./nearStakeIntent";
38
39
  import { NearUnstakeIntent } from "./nearUnstakeIntent";
39
40
  import { NearWithdrawIntent } from "./nearWithdrawIntent";
40
41
  import { PolyxCreateAccountIntent } from "./polyxCreateAccountIntent";
42
+ import { PolyxPreApproveAssetIntent } from "./polyxPreApproveAssetIntent";
41
43
  import { PolyxStakeIntent } from "./polyxStakeIntent";
42
44
  import { PolyxUnstakeIntent } from "./polyxUnstakeIntent";
43
45
  import { PolyxWithdrawIntent } from "./polyxWithdrawIntent";
@@ -97,6 +99,7 @@ export const TransactionIntent = t.union([
97
99
  AdaStakeIntent,
98
100
  AdaUnstakeIntent,
99
101
  AdaVoteDelegationIntent,
102
+ AptCustomTxIntent,
100
103
  AtomPaymentIntent,
101
104
  AtomStakeIntent,
102
105
  AtomUnstakeIntent,
@@ -133,6 +136,7 @@ export const TransactionIntent = t.union([
133
136
  NearUnstakeIntent,
134
137
  NearWithdrawIntent,
135
138
  PolyxCreateAccountIntent,
139
+ PolyxPreApproveAssetIntent,
136
140
  PolyxStakeIntent,
137
141
  PolyxUnstakeIntent,
138
142
  PolyxWithdrawIntent,
@@ -0,0 +1,25 @@
1
+ import * as t from "io-ts";
2
+ import { BaseIntent } from "./baseIntent";
3
+ import { intentTypes } from "./intentType";
4
+ import { SubstrateAccountBaseBuildOptions } from "./substrateAccountBaseBuildOptions";
5
+ import { RecipientEntry } from "./recipientEntry";
6
+ import { optionalString } from "../../../utils";
7
+
8
+ /**
9
+ * @title POLYX Pre-Approve Asset Intent
10
+ */
11
+ export const PolyxPreApproveAssetIntent = t.intersection([
12
+ BaseIntent,
13
+ SubstrateAccountBaseBuildOptions,
14
+ t.type({
15
+ intentType: intentTypes.addTrustLine,
16
+ recipients: t.array(RecipientEntry),
17
+ }),
18
+ t.partial({
19
+ memo: optionalString,
20
+ }),
21
+ ]);
22
+
23
+ export type PolyxPreApproveAssetIntent = t.TypeOf<
24
+ typeof PolyxPreApproveAssetIntent
25
+ >;