@bitgo/public-types 2.37.0 → 2.39.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/lightning/payment.d.ts +20 -0
- package/dist/src/schema/lightning/payment.js +43 -0
- package/dist/src/schema/lightning/payment.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.d.ts +45 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.js +6 -0
- package/dist/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.d.ts +50 -0
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.js +38 -0
- package/dist/src/schema/transactionRequest/intents/adaUnstakeIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/index.d.ts +3 -1
- package/dist/src/schema/transactionRequest/intents/index.js +3 -1
- package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +98 -2
- package/dist/src/schema/transactionRequest/intents/intent.js +4 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.d.ts +9 -2
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/lightningPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.d.ts +1 -0
- package/dist/src/schema/transactions/sendTransactions.d.ts +0 -56
- package/dist/src/schema/transactions/sendTransactions.js +0 -12
- package/dist/src/schema/transactions/sendTransactions.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/lightning/payment.ts +23 -0
- package/src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.ts +8 -0
- package/src/schema/transactionRequest/intents/adaUnstakeIntent.ts +14 -0
- package/src/schema/transactionRequest/intents/index.ts +3 -1
- package/src/schema/transactionRequest/intents/intent.ts +4 -0
- package/src/schema/transactionRequest/intents/lightningPaymentIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/stakeClaimRewardsIntent.ts +2 -0
- package/src/schema/transactions/sendTransactions.ts +0 -14
@@ -0,0 +1,20 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const LightningPaymentRequest: t.IntersectionC<[t.TypeC<{
|
3
|
+
invoice: t.StringC;
|
4
|
+
}>, t.PartialC<{
|
5
|
+
amountMsat: import("io-ts-types").BigIntFromStringC;
|
6
|
+
feeLimitMsat: import("io-ts-types").BigIntFromStringC;
|
7
|
+
feeLimitRatio: t.NumberC;
|
8
|
+
}>]>;
|
9
|
+
export declare const LightningPaymentRequestWithSig: t.TypeC<{
|
10
|
+
request: t.IntersectionC<[t.TypeC<{
|
11
|
+
invoice: t.StringC;
|
12
|
+
}>, t.PartialC<{
|
13
|
+
amountMsat: import("io-ts-types").BigIntFromStringC;
|
14
|
+
feeLimitMsat: import("io-ts-types").BigIntFromStringC;
|
15
|
+
feeLimitRatio: t.NumberC;
|
16
|
+
}>]>;
|
17
|
+
signature: t.StringC;
|
18
|
+
}>;
|
19
|
+
export type LightningPaymentRequest = t.TypeOf<typeof LightningPaymentRequest>;
|
20
|
+
export type LightningPaymentRequestWithSig = t.TypeOf<typeof LightningPaymentRequestWithSig>;
|
@@ -0,0 +1,43 @@
|
|
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.LightningPaymentRequestWithSig = exports.LightningPaymentRequest = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const io_ts_types_1 = require("io-ts-types");
|
29
|
+
exports.LightningPaymentRequest = t.intersection([
|
30
|
+
t.type({
|
31
|
+
invoice: t.string,
|
32
|
+
}),
|
33
|
+
t.partial({
|
34
|
+
amountMsat: io_ts_types_1.BigIntFromString,
|
35
|
+
feeLimitMsat: io_ts_types_1.BigIntFromString,
|
36
|
+
feeLimitRatio: t.number,
|
37
|
+
}),
|
38
|
+
]);
|
39
|
+
exports.LightningPaymentRequestWithSig = t.type({
|
40
|
+
request: exports.LightningPaymentRequest,
|
41
|
+
signature: t.string,
|
42
|
+
});
|
43
|
+
//# sourceMappingURL=payment.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../../../src/schema/lightning/payment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA+C;AAElC,QAAA,uBAAuB,GAAG,CAAC,CAAC,YAAY,CAAC;IACpD,CAAC,CAAC,IAAI,CAAC;QACL,OAAO,EAAE,CAAC,CAAC,MAAM;KAClB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,8BAAgB;QAC5B,YAAY,EAAE,8BAAgB;QAC9B,aAAa,EAAE,CAAC,CAAC,MAAM;KACxB,CAAC;CACH,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC;IACnD,OAAO,EAAE,+BAAuB;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM;CACpB,CAAC,CAAC"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const AdaStakeClaimRewardsIntent: 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
|
+
vote: t.LiteralC<"vote">;
|
18
|
+
createAccount: t.LiteralC<"createAccount">;
|
19
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
20
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
21
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
22
|
+
signMessage: t.LiteralC<"signMessage">;
|
23
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
24
|
+
enableToken: t.LiteralC<"enableToken">;
|
25
|
+
authorize: t.LiteralC<"authorize">;
|
26
|
+
acceleration: t.LiteralC<"acceleration">;
|
27
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
28
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
29
|
+
contractCall: t.LiteralC<"contractCall">;
|
30
|
+
deactivate: t.LiteralC<"deactivate">;
|
31
|
+
customTx: t.LiteralC<"customTx">;
|
32
|
+
}>;
|
33
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
+
nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
|
36
|
+
}>, t.TypeC<{
|
37
|
+
stakingRequestId: t.StringC;
|
38
|
+
}>]>, t.TypeC<{
|
39
|
+
intentType: t.LiteralC<"stakeClaimRewards">;
|
40
|
+
amount: t.TypeC<{
|
41
|
+
value: t.StringC;
|
42
|
+
symbol: t.StringC;
|
43
|
+
}>;
|
44
|
+
}>]>;
|
45
|
+
export type AdaStakeClaimRewardsIntent = t.TypeOf<typeof AdaStakeClaimRewardsIntent>;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AdaStakeClaimRewardsIntent = void 0;
|
4
|
+
const stakeClaimRewardsIntent_1 = require("./stakeClaimRewardsIntent");
|
5
|
+
exports.AdaStakeClaimRewardsIntent = stakeClaimRewardsIntent_1.StakeClaimRewardsIntent;
|
6
|
+
//# sourceMappingURL=adaStakeClaimRewardsIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"adaStakeClaimRewardsIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/adaStakeClaimRewardsIntent.ts"],"names":[],"mappings":";;;AACA,uEAAoE;AAEvD,QAAA,0BAA0B,GAAG,iDAAuB,CAAC"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const AdaUnstakeIntent: t.IntersectionC<[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
|
+
vote: t.LiteralC<"vote">;
|
18
|
+
createAccount: t.LiteralC<"createAccount">;
|
19
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
20
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
21
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
22
|
+
signMessage: t.LiteralC<"signMessage">;
|
23
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
24
|
+
enableToken: t.LiteralC<"enableToken">;
|
25
|
+
authorize: t.LiteralC<"authorize">;
|
26
|
+
acceleration: t.LiteralC<"acceleration">;
|
27
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
28
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
29
|
+
contractCall: t.LiteralC<"contractCall">;
|
30
|
+
deactivate: t.LiteralC<"deactivate">;
|
31
|
+
customTx: t.LiteralC<"customTx">;
|
32
|
+
}>;
|
33
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
|
+
nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
|
36
|
+
}>, t.TypeC<{
|
37
|
+
stakingRequestId: t.StringC;
|
38
|
+
}>]>, t.TypeC<{
|
39
|
+
intentType: t.LiteralC<"unstake">;
|
40
|
+
}>]>, t.TypeC<{
|
41
|
+
amount: t.UnionC<[t.Type<{
|
42
|
+
value: string;
|
43
|
+
symbol: string;
|
44
|
+
}, {
|
45
|
+
value: string;
|
46
|
+
symbol: string;
|
47
|
+
}, unknown>, t.UndefinedC]>;
|
48
|
+
poolKeyHash: t.StringC;
|
49
|
+
}>]>;
|
50
|
+
export type AdaUnstakeIntent = t.TypeOf<typeof AdaUnstakeIntent>;
|
@@ -0,0 +1,38 @@
|
|
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.AdaUnstakeIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const amount_1 = require("./amount");
|
29
|
+
const utils_1 = require("../../../utils");
|
30
|
+
const unstakeIntent_1 = require("./unstakeIntent");
|
31
|
+
exports.AdaUnstakeIntent = t.intersection([
|
32
|
+
unstakeIntent_1.UnstakeIntent,
|
33
|
+
t.type({
|
34
|
+
amount: (0, utils_1.Optional)(amount_1.Amount),
|
35
|
+
poolKeyHash: t.string,
|
36
|
+
}),
|
37
|
+
]);
|
38
|
+
//# sourceMappingURL=adaUnstakeIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"adaUnstakeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/adaUnstakeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qCAAkC;AAClC,0CAA0C;AAC1C,mDAAgD;AAEnC,QAAA,gBAAgB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7C,6BAAa;IACb,CAAC,CAAC,IAAI,CAAC;QACL,MAAM,EAAE,IAAA,gBAAQ,EAAC,eAAM,CAAC;QACxB,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;CACH,CAAC,CAAC"}
|
@@ -6,7 +6,9 @@ export * from "./accountBaseUpdateAccountIntent";
|
|
6
6
|
export * from "./adaConsolidateIntent";
|
7
7
|
export * from "./adaPaymentIntent";
|
8
8
|
export * from "./adaPledgeIntent";
|
9
|
+
export * from "./adaStakeClaimRewardsIntent";
|
9
10
|
export * from "./adaStakeIntent";
|
11
|
+
export * from "./adaUnstakeIntent";
|
10
12
|
export * from "./address";
|
11
13
|
export * from "./amount";
|
12
14
|
export * from "./atomPaymentIntent";
|
@@ -60,8 +62,8 @@ export * from "./signMessageIntent";
|
|
60
62
|
export * from "./solAuthorizeIntent";
|
61
63
|
export * from "./solBuildOptions";
|
62
64
|
export * from "./solClaimIntent";
|
63
|
-
export * from "./solCreateAssociatedTokenAccountIntent";
|
64
65
|
export * from "./solConsolidateIntent";
|
66
|
+
export * from "./solCreateAssociatedTokenAccountIntent";
|
65
67
|
export * from "./solDeactivateIntent";
|
66
68
|
export * from "./solDelegateIntent";
|
67
69
|
export * from "./solPaymentIntent";
|
@@ -22,7 +22,9 @@ __exportStar(require("./accountBaseUpdateAccountIntent"), exports);
|
|
22
22
|
__exportStar(require("./adaConsolidateIntent"), exports);
|
23
23
|
__exportStar(require("./adaPaymentIntent"), exports);
|
24
24
|
__exportStar(require("./adaPledgeIntent"), exports);
|
25
|
+
__exportStar(require("./adaStakeClaimRewardsIntent"), exports);
|
25
26
|
__exportStar(require("./adaStakeIntent"), exports);
|
27
|
+
__exportStar(require("./adaUnstakeIntent"), exports);
|
26
28
|
__exportStar(require("./address"), exports);
|
27
29
|
__exportStar(require("./amount"), exports);
|
28
30
|
__exportStar(require("./atomPaymentIntent"), exports);
|
@@ -76,8 +78,8 @@ __exportStar(require("./signMessageIntent"), exports);
|
|
76
78
|
__exportStar(require("./solAuthorizeIntent"), exports);
|
77
79
|
__exportStar(require("./solBuildOptions"), exports);
|
78
80
|
__exportStar(require("./solClaimIntent"), exports);
|
79
|
-
__exportStar(require("./solCreateAssociatedTokenAccountIntent"), exports);
|
80
81
|
__exportStar(require("./solConsolidateIntent"), exports);
|
82
|
+
__exportStar(require("./solCreateAssociatedTokenAccountIntent"), exports);
|
81
83
|
__exportStar(require("./solDeactivateIntent"), exports);
|
82
84
|
__exportStar(require("./solDelegateIntent"), exports);
|
83
85
|
__exportStar(require("./solPaymentIntent"), 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,mDAAiC;AACjC,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,kDAAgC;AAChC,2DAAyC;AACzC,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,0EAAwD;AACxD,
|
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,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,sDAAoC;AACpC,2DAAyC;AACzC,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,kDAAgC;AAChC,2DAAyC;AACzC,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,0EAAwD;AACxD,wDAAsC;AACtC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,oDAAkC;AAClC,sDAAoC;AACpC,kDAAgC;AAChC,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,yDAAuC;AACvC,mDAAiC"}
|
@@ -140,6 +140,48 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
140
140
|
}>>;
|
141
141
|
}>]>, t.TypeC<{
|
142
142
|
unspents: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
|
143
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
144
|
+
intentType: t.KeyofC<{
|
145
|
+
payment: t.LiteralC<"payment">;
|
146
|
+
transferToken: t.LiteralC<"transferToken">;
|
147
|
+
consolidate: t.LiteralC<"consolidate">;
|
148
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
149
|
+
fanout: t.LiteralC<"fanout">;
|
150
|
+
stake: t.LiteralC<"stake">;
|
151
|
+
unstake: t.LiteralC<"unstake">;
|
152
|
+
delegate: t.LiteralC<"delegate">;
|
153
|
+
undelegate: t.LiteralC<"undelegate">;
|
154
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
155
|
+
claim: t.LiteralC<"claim">;
|
156
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
157
|
+
pledge: t.LiteralC<"pledge">;
|
158
|
+
vote: t.LiteralC<"vote">;
|
159
|
+
createAccount: t.LiteralC<"createAccount">;
|
160
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
161
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
162
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
163
|
+
signMessage: t.LiteralC<"signMessage">;
|
164
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
165
|
+
enableToken: t.LiteralC<"enableToken">;
|
166
|
+
authorize: t.LiteralC<"authorize">;
|
167
|
+
acceleration: t.LiteralC<"acceleration">;
|
168
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
169
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
170
|
+
contractCall: t.LiteralC<"contractCall">;
|
171
|
+
deactivate: t.LiteralC<"deactivate">;
|
172
|
+
customTx: t.LiteralC<"customTx">;
|
173
|
+
}>;
|
174
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
175
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
176
|
+
nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
|
177
|
+
}>, t.TypeC<{
|
178
|
+
stakingRequestId: t.StringC;
|
179
|
+
}>]>, t.TypeC<{
|
180
|
+
intentType: t.LiteralC<"stakeClaimRewards">;
|
181
|
+
amount: t.TypeC<{
|
182
|
+
value: t.StringC;
|
183
|
+
symbol: t.StringC;
|
184
|
+
}>;
|
143
185
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
144
186
|
intentType: t.KeyofC<{
|
145
187
|
payment: t.LiteralC<"payment">;
|
@@ -187,6 +229,53 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
187
229
|
symbol: string;
|
188
230
|
}, unknown>, t.UndefinedC]>;
|
189
231
|
poolKeyHash: t.StringC;
|
232
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
233
|
+
intentType: t.KeyofC<{
|
234
|
+
payment: t.LiteralC<"payment">;
|
235
|
+
transferToken: t.LiteralC<"transferToken">;
|
236
|
+
consolidate: t.LiteralC<"consolidate">;
|
237
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
238
|
+
fanout: t.LiteralC<"fanout">;
|
239
|
+
stake: t.LiteralC<"stake">;
|
240
|
+
unstake: t.LiteralC<"unstake">;
|
241
|
+
delegate: t.LiteralC<"delegate">;
|
242
|
+
undelegate: t.LiteralC<"undelegate">;
|
243
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
244
|
+
claim: t.LiteralC<"claim">;
|
245
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
246
|
+
pledge: t.LiteralC<"pledge">;
|
247
|
+
vote: t.LiteralC<"vote">;
|
248
|
+
createAccount: t.LiteralC<"createAccount">;
|
249
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
250
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
251
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
252
|
+
signMessage: t.LiteralC<"signMessage">;
|
253
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
254
|
+
enableToken: t.LiteralC<"enableToken">;
|
255
|
+
authorize: t.LiteralC<"authorize">;
|
256
|
+
acceleration: t.LiteralC<"acceleration">;
|
257
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
258
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
259
|
+
contractCall: t.LiteralC<"contractCall">;
|
260
|
+
deactivate: t.LiteralC<"deactivate">;
|
261
|
+
customTx: t.LiteralC<"customTx">;
|
262
|
+
}>;
|
263
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
264
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
265
|
+
nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
|
266
|
+
}>, t.TypeC<{
|
267
|
+
stakingRequestId: t.StringC;
|
268
|
+
}>]>, t.TypeC<{
|
269
|
+
intentType: t.LiteralC<"unstake">;
|
270
|
+
}>]>, t.TypeC<{
|
271
|
+
amount: t.UnionC<[t.Type<{
|
272
|
+
value: string;
|
273
|
+
symbol: string;
|
274
|
+
}, {
|
275
|
+
value: string;
|
276
|
+
symbol: string;
|
277
|
+
}, unknown>, t.UndefinedC]>;
|
278
|
+
poolKeyHash: t.StringC;
|
190
279
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
191
280
|
intentType: t.KeyofC<{
|
192
281
|
payment: t.LiteralC<"payment">;
|
@@ -1504,10 +1593,17 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
1504
1593
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
1505
1594
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
1506
1595
|
nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
|
1596
|
+
}>, t.TypeC<{
|
1597
|
+
request: t.IntersectionC<[t.TypeC<{
|
1598
|
+
invoice: t.StringC;
|
1599
|
+
}>, t.PartialC<{
|
1600
|
+
amountMsat: import("io-ts-types").BigIntFromStringC;
|
1601
|
+
feeLimitMsat: import("io-ts-types").BigIntFromStringC;
|
1602
|
+
feeLimitRatio: t.NumberC;
|
1603
|
+
}>]>;
|
1604
|
+
signature: t.StringC;
|
1507
1605
|
}>, t.TypeC<{
|
1508
1606
|
intentType: t.LiteralC<"payment">;
|
1509
|
-
invoice: t.StringC;
|
1510
|
-
signedInvoice: t.StringC;
|
1511
1607
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
1512
1608
|
intentType: t.KeyofC<{
|
1513
1609
|
payment: t.LiteralC<"payment">;
|
@@ -70,11 +70,15 @@ const tonUndelegateIntent_1 = require("./tonUndelegateIntent");
|
|
70
70
|
const walletRecoveryIntent_1 = require("./walletRecoveryIntent");
|
71
71
|
const solConsolidateIntent_1 = require("./solConsolidateIntent");
|
72
72
|
const tonConsolidateIntent_1 = require("./tonConsolidateIntent");
|
73
|
+
const adaStakeClaimRewardsIntent_1 = require("./adaStakeClaimRewardsIntent");
|
74
|
+
const adaUnstakeIntent_1 = require("./adaUnstakeIntent");
|
73
75
|
exports.TransactionIntent = t.union([
|
74
76
|
adaConsolidateIntent_1.AdaConsolidateIntent,
|
75
77
|
adaPaymentIntent_1.AdaPaymentIntent,
|
76
78
|
adaPaymentIntent_1.AdaPaymentIntent,
|
79
|
+
adaStakeClaimRewardsIntent_1.AdaStakeClaimRewardsIntent,
|
77
80
|
adaStakeIntent_1.AdaStakeIntent,
|
81
|
+
adaUnstakeIntent_1.AdaUnstakeIntent,
|
78
82
|
atomPaymentIntent_1.AtomPaymentIntent,
|
79
83
|
atomStakeIntent_1.AtomStakeIntent,
|
80
84
|
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,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,2DAAwD;AACxD,+DAA4D;AAC5D,2DAAwD;AACxD,+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,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,+DAA4D;AAC5D,2DAAwD;AACxD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D;AAC9D,iEAA8D;
|
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,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,2DAAwD;AACxD,+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CAAkB;IAClB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IAIpB,CAAC,CAAC,OAAO;CACV,CAAC,CAAC"}
|
@@ -33,9 +33,16 @@ export declare const LightningPaymentIntent: t.IntersectionC<[t.TypeC<{
|
|
33
33
|
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
34
34
|
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
35
35
|
nonce: t.UnionC<[t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>, t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>]>;
|
36
|
+
}>, t.TypeC<{
|
37
|
+
request: t.IntersectionC<[t.TypeC<{
|
38
|
+
invoice: t.StringC;
|
39
|
+
}>, t.PartialC<{
|
40
|
+
amountMsat: import("io-ts-types").BigIntFromStringC;
|
41
|
+
feeLimitMsat: import("io-ts-types").BigIntFromStringC;
|
42
|
+
feeLimitRatio: t.NumberC;
|
43
|
+
}>]>;
|
44
|
+
signature: t.StringC;
|
36
45
|
}>, t.TypeC<{
|
37
46
|
intentType: t.LiteralC<"payment">;
|
38
|
-
invoice: t.StringC;
|
39
|
-
signedInvoice: t.StringC;
|
40
47
|
}>]>;
|
41
48
|
export type LightningPaymentIntent = t.TypeOf<typeof LightningPaymentIntent>;
|
@@ -27,12 +27,12 @@ exports.LightningPaymentIntent = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
28
28
|
const baseIntent_1 = require("./baseIntent");
|
29
29
|
const intentType_1 = require("./intentType");
|
30
|
+
const payment_1 = require("../../lightning/payment");
|
30
31
|
exports.LightningPaymentIntent = t.intersection([
|
31
32
|
baseIntent_1.BaseIntent,
|
33
|
+
payment_1.LightningPaymentRequestWithSig,
|
32
34
|
t.type({
|
33
35
|
intentType: intentType_1.intentTypes.payment,
|
34
|
-
invoice: t.string,
|
35
|
-
signedInvoice: t.string,
|
36
36
|
}),
|
37
37
|
]);
|
38
38
|
//# sourceMappingURL=lightningPaymentIntent.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lightningPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/lightningPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;
|
1
|
+
{"version":3,"file":"lightningPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/lightningPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAC3C,qDAAyE;AAE5D,QAAA,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,uBAAU;IACV,wCAA8B;IAC9B,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,OAAO;KAChC,CAAC;CACH,CAAC,CAAC"}
|
@@ -8,15 +8,6 @@ declare const recipient: t.PartialC<{
|
|
8
8
|
tokenName: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
9
9
|
}>;
|
10
10
|
export type TransactionRecipient = t.TypeOf<typeof recipient>;
|
11
|
-
declare const lightningPaymentRequest: t.IntersectionC<[t.TypeC<{
|
12
|
-
invoice: t.StringC;
|
13
|
-
}>, t.PartialC<{
|
14
|
-
amount: t.NumberC;
|
15
|
-
sequenceId: t.StringC;
|
16
|
-
feeLimit: t.NumberC;
|
17
|
-
feeLimitRatio: t.NumberC;
|
18
|
-
}>]>;
|
19
|
-
export type LightningPaymentRequest = t.TypeOf<typeof lightningPaymentRequest>;
|
20
11
|
declare const halfSigned: t.PartialC<{
|
21
12
|
txHex: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
22
13
|
recipients: t.UnionC<[t.Type<{
|
@@ -48,21 +39,6 @@ declare const halfSigned: t.PartialC<{
|
|
48
39
|
operationHash: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
49
40
|
signedChildPsbt: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
50
41
|
signature: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
51
|
-
lightningPaymentRequest: t.UnionC<[t.Type<{
|
52
|
-
invoice: string;
|
53
|
-
} & {
|
54
|
-
amount?: number | undefined;
|
55
|
-
sequenceId?: string | undefined;
|
56
|
-
feeLimit?: number | undefined;
|
57
|
-
feeLimitRatio?: number | undefined;
|
58
|
-
}, {
|
59
|
-
invoice: string;
|
60
|
-
} & {
|
61
|
-
amount?: number | undefined;
|
62
|
-
sequenceId?: string | undefined;
|
63
|
-
feeLimit?: number | undefined;
|
64
|
-
feeLimitRatio?: number | undefined;
|
65
|
-
}, unknown>, t.UndefinedC]>;
|
66
42
|
}>;
|
67
43
|
export type HalfSignedTransaction = t.TypeOf<typeof halfSigned>;
|
68
44
|
export declare const memo: t.PartialC<{
|
@@ -93,14 +69,6 @@ export declare const txSendBody: {
|
|
93
69
|
operationHash?: string | undefined;
|
94
70
|
signedChildPsbt?: string | undefined;
|
95
71
|
signature?: string | undefined;
|
96
|
-
lightningPaymentRequest?: ({
|
97
|
-
invoice: string;
|
98
|
-
} & {
|
99
|
-
amount?: number | undefined;
|
100
|
-
sequenceId?: string | undefined;
|
101
|
-
feeLimit?: number | undefined;
|
102
|
-
feeLimitRatio?: number | undefined;
|
103
|
-
}) | undefined;
|
104
72
|
}, {
|
105
73
|
txHex?: string | undefined;
|
106
74
|
recipients?: {
|
@@ -122,14 +90,6 @@ export declare const txSendBody: {
|
|
122
90
|
operationHash?: string | undefined;
|
123
91
|
signedChildPsbt?: string | undefined;
|
124
92
|
signature?: string | undefined;
|
125
|
-
lightningPaymentRequest?: ({
|
126
|
-
invoice: string;
|
127
|
-
} & {
|
128
|
-
amount?: number | undefined;
|
129
|
-
sequenceId?: string | undefined;
|
130
|
-
feeLimit?: number | undefined;
|
131
|
-
feeLimitRatio?: number | undefined;
|
132
|
-
}) | undefined;
|
133
93
|
}, unknown>, t.UndefinedC]>;
|
134
94
|
invoice: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
135
95
|
memo: t.UnionC<[t.Type<{
|
@@ -284,14 +244,6 @@ export declare const TxSendBody: t.ExactC<t.IntersectionC<[t.PartialC<{
|
|
284
244
|
operationHash?: string | undefined;
|
285
245
|
signedChildPsbt?: string | undefined;
|
286
246
|
signature?: string | undefined;
|
287
|
-
lightningPaymentRequest?: ({
|
288
|
-
invoice: string;
|
289
|
-
} & {
|
290
|
-
amount?: number | undefined;
|
291
|
-
sequenceId?: string | undefined;
|
292
|
-
feeLimit?: number | undefined;
|
293
|
-
feeLimitRatio?: number | undefined;
|
294
|
-
}) | undefined;
|
295
247
|
}, {
|
296
248
|
txHex?: string | undefined;
|
297
249
|
recipients?: {
|
@@ -313,14 +265,6 @@ export declare const TxSendBody: t.ExactC<t.IntersectionC<[t.PartialC<{
|
|
313
265
|
operationHash?: string | undefined;
|
314
266
|
signedChildPsbt?: string | undefined;
|
315
267
|
signature?: string | undefined;
|
316
|
-
lightningPaymentRequest?: ({
|
317
|
-
invoice: string;
|
318
|
-
} & {
|
319
|
-
amount?: number | undefined;
|
320
|
-
sequenceId?: string | undefined;
|
321
|
-
feeLimit?: number | undefined;
|
322
|
-
feeLimitRatio?: number | undefined;
|
323
|
-
}) | undefined;
|
324
268
|
}, unknown>, t.UndefinedC]>;
|
325
269
|
invoice: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
326
270
|
memo: t.UnionC<[t.Type<{
|
@@ -40,17 +40,6 @@ const eip1559 = t.partial({
|
|
40
40
|
maxPriorityFeePerGas: utils_1.optionalString,
|
41
41
|
maxFeePerGas: utils_1.optionalString,
|
42
42
|
});
|
43
|
-
const lightningPaymentRequest = t.intersection([
|
44
|
-
t.type({
|
45
|
-
invoice: t.string,
|
46
|
-
}),
|
47
|
-
t.partial({
|
48
|
-
amount: t.number,
|
49
|
-
sequenceId: t.string,
|
50
|
-
feeLimit: t.number,
|
51
|
-
feeLimitRatio: t.number,
|
52
|
-
}),
|
53
|
-
]);
|
54
43
|
const halfSigned = t.partial({
|
55
44
|
txHex: utils_1.optionalString,
|
56
45
|
recipients: (0, utils_1.Optional)(recipients),
|
@@ -62,7 +51,6 @@ const halfSigned = t.partial({
|
|
62
51
|
operationHash: utils_1.optionalString,
|
63
52
|
signedChildPsbt: utils_1.optionalString,
|
64
53
|
signature: utils_1.optionalString,
|
65
|
-
lightningPaymentRequest: (0, utils_1.Optional)(lightningPaymentRequest),
|
66
54
|
});
|
67
55
|
exports.memo = t.partial({
|
68
56
|
type: utils_1.optionalString,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sendTransactions.js","sourceRoot":"","sources":["../../../../src/schema/transactions/sendTransactions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uCAOqB;AACrB,iDAAyD;AAEzD,MAAM,SAAS,GAAG,CAAC,CAAC,OAAO,CAAC;IAC1B,OAAO,EAAE,CAAC,CAAC,MAAM;IACjB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,EAAE,sBAAc;IACxB,IAAI,EAAE,sBAAc;IACpB,IAAI,EAAE,sBAAc;IACpB,SAAS,EAAE,sBAAc;CAC1B,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAEtC,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC;IACxB,oBAAoB,EAAE,sBAAc;IACpC,YAAY,EAAE,sBAAc;CAC7B,CAAC,CAAC;AAEH,MAAM,
|
1
|
+
{"version":3,"file":"sendTransactions.js","sourceRoot":"","sources":["../../../../src/schema/transactions/sendTransactions.ts"],"names":[],"mappings":";;;;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AAC,CAAC,KAAK,CAAC,WAAW,CAAC;IAC7B,EAAE,EAAE,CAAC,CAAC,MAAM;IACZ,OAAO,EAAE,CAAC,CAAC,OAAO;IAClB,mBAAmB,EAAE,CAAC,CAAC,MAAM;IAC7B,KAAK,EAAE,CAAC,CAAC,OAAO;IAChB,QAAQ,EAAE,CAAC,CAAC,OAAO;IACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC;IACvC,QAAQ,EAAE,CAAC,CAAC,MAAM;IAClB,cAAc,EAAE,CAAC,CAAC,MAAM;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM;IACpB,UAAU,EAAE,CAAC,CAAC,MAAM;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM;IACf,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM;IACd,QAAQ,EAAE,CAAC,CAAC,MAAM;IAClB,WAAW,EAAE,CAAC,CAAC,MAAM;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM;IACd,GAAG,EAAE,CAAC,CAAC,MAAM;IACb,OAAO,EAAE,CAAC,CAAC,MAAM;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM;IACf,WAAW,EAAE,CAAC,CAAC,MAAM;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM;IACf,MAAM,EAAE,CAAC,CAAC,MAAM;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM;CACrB,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { BigIntFromString } from "io-ts-types";
|
3
|
+
|
4
|
+
export const LightningPaymentRequest = t.intersection([
|
5
|
+
t.type({
|
6
|
+
invoice: t.string,
|
7
|
+
}),
|
8
|
+
t.partial({
|
9
|
+
amountMsat: BigIntFromString,
|
10
|
+
feeLimitMsat: BigIntFromString,
|
11
|
+
feeLimitRatio: t.number,
|
12
|
+
}),
|
13
|
+
]);
|
14
|
+
|
15
|
+
export const LightningPaymentRequestWithSig = t.type({
|
16
|
+
request: LightningPaymentRequest,
|
17
|
+
signature: t.string,
|
18
|
+
});
|
19
|
+
|
20
|
+
export type LightningPaymentRequest = t.TypeOf<typeof LightningPaymentRequest>;
|
21
|
+
export type LightningPaymentRequestWithSig = t.TypeOf<
|
22
|
+
typeof LightningPaymentRequestWithSig
|
23
|
+
>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { Amount } from "./amount";
|
3
|
+
import { Optional } from "../../../utils";
|
4
|
+
import { UnstakeIntent } from "./unstakeIntent";
|
5
|
+
|
6
|
+
export const AdaUnstakeIntent = t.intersection([
|
7
|
+
UnstakeIntent,
|
8
|
+
t.type({
|
9
|
+
amount: Optional(Amount),
|
10
|
+
poolKeyHash: t.string,
|
11
|
+
}),
|
12
|
+
]);
|
13
|
+
|
14
|
+
export type AdaUnstakeIntent = t.TypeOf<typeof AdaUnstakeIntent>;
|
@@ -6,7 +6,9 @@ export * from "./accountBaseUpdateAccountIntent";
|
|
6
6
|
export * from "./adaConsolidateIntent";
|
7
7
|
export * from "./adaPaymentIntent";
|
8
8
|
export * from "./adaPledgeIntent";
|
9
|
+
export * from "./adaStakeClaimRewardsIntent";
|
9
10
|
export * from "./adaStakeIntent";
|
11
|
+
export * from "./adaUnstakeIntent";
|
10
12
|
export * from "./address";
|
11
13
|
export * from "./amount";
|
12
14
|
export * from "./atomPaymentIntent";
|
@@ -60,8 +62,8 @@ export * from "./signMessageIntent";
|
|
60
62
|
export * from "./solAuthorizeIntent";
|
61
63
|
export * from "./solBuildOptions";
|
62
64
|
export * from "./solClaimIntent";
|
63
|
-
export * from "./solCreateAssociatedTokenAccountIntent";
|
64
65
|
export * from "./solConsolidateIntent";
|
66
|
+
export * from "./solCreateAssociatedTokenAccountIntent";
|
65
67
|
export * from "./solDeactivateIntent";
|
66
68
|
export * from "./solDelegateIntent";
|
67
69
|
export * from "./solPaymentIntent";
|
@@ -44,12 +44,16 @@ import { TonUndelegateIntent } from "./tonUndelegateIntent";
|
|
44
44
|
import { WalletRecoveryIntent } from "./walletRecoveryIntent";
|
45
45
|
import { SolConsolidateIntent } from "./solConsolidateIntent";
|
46
46
|
import { TonConsolidateIntent } from "./tonConsolidateIntent";
|
47
|
+
import { AdaStakeClaimRewardsIntent } from "./adaStakeClaimRewardsIntent";
|
48
|
+
import { AdaUnstakeIntent } from "./adaUnstakeIntent";
|
47
49
|
|
48
50
|
export const TransactionIntent = t.union([
|
49
51
|
AdaConsolidateIntent,
|
50
52
|
AdaPaymentIntent,
|
51
53
|
AdaPaymentIntent,
|
54
|
+
AdaStakeClaimRewardsIntent,
|
52
55
|
AdaStakeIntent,
|
56
|
+
AdaUnstakeIntent,
|
53
57
|
AtomPaymentIntent,
|
54
58
|
AtomStakeIntent,
|
55
59
|
AtomUnstakeIntent,
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import * as t from "io-ts";
|
2
2
|
import { BaseIntent } from "./baseIntent";
|
3
3
|
import { intentTypes } from "./intentType";
|
4
|
+
import { LightningPaymentRequestWithSig } from "../../lightning/payment";
|
4
5
|
|
5
6
|
export const LightningPaymentIntent = t.intersection([
|
6
7
|
BaseIntent,
|
8
|
+
LightningPaymentRequestWithSig,
|
7
9
|
t.type({
|
8
10
|
intentType: intentTypes.payment,
|
9
|
-
invoice: t.string,
|
10
|
-
signedInvoice: t.string,
|
11
11
|
}),
|
12
12
|
]);
|
13
13
|
|
@@ -25,19 +25,6 @@ const eip1559 = t.partial({
|
|
25
25
|
maxFeePerGas: optionalString,
|
26
26
|
});
|
27
27
|
|
28
|
-
const lightningPaymentRequest = t.intersection([
|
29
|
-
t.type({
|
30
|
-
invoice: t.string,
|
31
|
-
}),
|
32
|
-
t.partial({
|
33
|
-
amount: t.number,
|
34
|
-
sequenceId: t.string,
|
35
|
-
feeLimit: t.number,
|
36
|
-
feeLimitRatio: t.number,
|
37
|
-
}),
|
38
|
-
]);
|
39
|
-
export type LightningPaymentRequest = t.TypeOf<typeof lightningPaymentRequest>;
|
40
|
-
|
41
28
|
const halfSigned = t.partial({
|
42
29
|
txHex: optionalString,
|
43
30
|
recipients: Optional(recipients),
|
@@ -49,7 +36,6 @@ const halfSigned = t.partial({
|
|
49
36
|
operationHash: optionalString,
|
50
37
|
signedChildPsbt: optionalString,
|
51
38
|
signature: optionalString,
|
52
|
-
lightningPaymentRequest: Optional(lightningPaymentRequest),
|
53
39
|
});
|
54
40
|
export type HalfSignedTransaction = t.TypeOf<typeof halfSigned>;
|
55
41
|
|