@bitgo/public-types 5.23.1 → 5.24.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/aptBuildOptions.d.ts +9 -0
- package/dist/src/schema/transactionRequest/intents/aptBuildOptions.js +37 -0
- package/dist/src/schema/transactionRequest/intents/aptBuildOptions.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.d.ts +60 -0
- package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.js +48 -0
- package/dist/src/schema/transactionRequest/intents/aptCustomTxIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/index.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/index.js +1 -0
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +57 -0
- package/dist/src/schema/transactionRequest/intents/intent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/aptBuildOptions.ts +13 -0
- package/src/schema/transactionRequest/intents/aptCustomTxIntent.ts +27 -0
- package/src/schema/transactionRequest/intents/index.ts +1 -0
- package/src/schema/transactionRequest/intents/intent.ts +2 -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,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;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,kDAAgC;AAChC,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,6DAA2C;AAC3C,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,qDAAmC;AACnC,kDAAgC;AAChC,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,sDAAoC;AACpC,wDAAsC;AACtC,sDAAoC;AACpC,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+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/transactionRequ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AAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,sDAAoC;AACpC,wDAAsC;AACtC,sDAAoC;AACpC,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+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"}
|
@@ -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">;
|
@@ -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");
|
@@ -119,6 +120,7 @@ exports.TransactionIntent = t.union([
|
|
119
120
|
adaStakeIntent_1.AdaStakeIntent,
|
120
121
|
adaUnstakeIntent_1.AdaUnstakeIntent,
|
121
122
|
adaVoteDelegationIntent_1.AdaVoteDelegationIntent,
|
123
|
+
aptCustomTxIntent_1.AptCustomTxIntent,
|
122
124
|
atomPaymentIntent_1.AtomPaymentIntent,
|
123
125
|
atomStakeIntent_1.AtomStakeIntent,
|
124
126
|
atomUnstakeIntent_1.AtomUnstakeIntent,
|
@@ -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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;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"}
|
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,yE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B,2CAAoB;IACpB,qDAAyB;IACzB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,+CAAsB;IACtB,mDAAwB;IACxB,mCAAgB;IAChB,+CAAsB;IACtB,2CAAoB;IACpB,mDAAwB;IACxB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,mDAAwB;IACxB,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"}
|
package/package.json
CHANGED
@@ -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";
|
@@ -97,6 +98,7 @@ export const TransactionIntent = t.union([
|
|
97
98
|
AdaStakeIntent,
|
98
99
|
AdaUnstakeIntent,
|
99
100
|
AdaVoteDelegationIntent,
|
101
|
+
AptCustomTxIntent,
|
100
102
|
AtomPaymentIntent,
|
101
103
|
AtomStakeIntent,
|
102
104
|
AtomUnstakeIntent,
|