@bitgo/public-types 5.84.1 → 5.86.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/accelerationIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/accelerationIntent.js +3 -2
- package/dist/src/schema/transactionRequest/intents/accelerationIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/cantonPaymentIntent.d.ts +85 -0
- package/dist/src/schema/transactionRequest/intents/cantonPaymentIntent.js +36 -0
- package/dist/src/schema/transactionRequest/intents/cantonPaymentIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/ethAccelerationIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/ethFillNonceIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.js +3 -2
- package/dist/src/schema/transactionRequest/intents/fillNonceIntent.js.map +1 -1
- 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 +86 -2
- package/dist/src/schema/transactionRequest/intents/intent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +172 -4
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/accelerationIntent.ts +3 -2
- package/src/schema/transactionRequest/intents/cantonPaymentIntent.ts +15 -0
- package/src/schema/transactionRequest/intents/fillNonceIntent.ts +3 -2
- package/src/schema/transactionRequest/intents/index.ts +1 -0
- package/src/schema/transactionRequest/intents/intent.ts +2 -0
|
@@ -60,6 +60,7 @@ export declare const AccelerationIntent: t.IntersectionC<[t.IntersectionC<[t.Typ
|
|
|
60
60
|
}>]>, t.TypeC<{
|
|
61
61
|
intentType: t.LiteralC<"acceleration">;
|
|
62
62
|
txid: t.StringC;
|
|
63
|
-
|
|
63
|
+
}>, t.PartialC<{
|
|
64
|
+
senderAddress: t.StringC;
|
|
64
65
|
}>]>;
|
|
65
66
|
export type AccelerationIntent = t.TypeOf<typeof AccelerationIntent>;
|
|
@@ -27,13 +27,14 @@ exports.AccelerationIntent = 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 utils_1 = require("../../../utils");
|
|
31
30
|
exports.AccelerationIntent = t.intersection([
|
|
32
31
|
baseIntent_1.BaseIntent,
|
|
33
32
|
t.type({
|
|
34
33
|
intentType: intentType_1.intentTypes.acceleration,
|
|
35
34
|
txid: t.string,
|
|
36
|
-
|
|
35
|
+
}),
|
|
36
|
+
t.partial({
|
|
37
|
+
senderAddress: t.string,
|
|
37
38
|
}),
|
|
38
39
|
]);
|
|
39
40
|
//# sourceMappingURL=accelerationIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accelerationIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/accelerationIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;
|
|
1
|
+
{"version":3,"file":"accelerationIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/accelerationIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAE9B,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,YAAY;QACpC,IAAI,EAAE,CAAC,CAAC,MAAM;KACf,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,aAAa,EAAE,CAAC,CAAC,MAAM;KACxB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare const CantonPaymentIntent: 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
|
+
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
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
36
|
+
switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
|
|
37
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
38
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
39
|
+
transferStake: t.LiteralC<"transferStake">;
|
|
40
|
+
validatorRegistration: t.LiteralC<"validatorRegistration">;
|
|
41
|
+
increaseStake: t.LiteralC<"increaseStake">;
|
|
42
|
+
decreaseStake: t.LiteralC<"decreaseStake">;
|
|
43
|
+
signalExit: t.LiteralC<"signalExit">;
|
|
44
|
+
withdrawStake: t.LiteralC<"withdrawStake">;
|
|
45
|
+
spotTransfer: t.LiteralC<"spotTransfer">;
|
|
46
|
+
bridgeFunds: t.LiteralC<"bridgeFunds">;
|
|
47
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
48
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
49
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
50
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
51
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
52
|
+
transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
|
|
53
|
+
"defi-deposit": t.LiteralC<"defi-deposit">;
|
|
54
|
+
"defi-redeem": t.LiteralC<"defi-redeem">;
|
|
55
|
+
}>;
|
|
56
|
+
}>, t.PartialC<{
|
|
57
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
58
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
59
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
60
|
+
}>]>, t.TypeC<{
|
|
61
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
62
|
+
address: t.PartialC<{
|
|
63
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
64
|
+
option: t.UnionC<[t.Type<{
|
|
65
|
+
[x: string]: unknown;
|
|
66
|
+
}, {
|
|
67
|
+
[x: string]: unknown;
|
|
68
|
+
}, unknown>, t.UndefinedC]>;
|
|
69
|
+
}>;
|
|
70
|
+
amount: t.TypeC<{
|
|
71
|
+
value: t.StringC;
|
|
72
|
+
symbol: t.StringC;
|
|
73
|
+
}>;
|
|
74
|
+
}>, t.PartialC<{
|
|
75
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
76
|
+
}>]>>;
|
|
77
|
+
}>, t.UnionC<[t.TypeC<{
|
|
78
|
+
intentType: t.LiteralC<"payment">;
|
|
79
|
+
}>, t.TypeC<{
|
|
80
|
+
intentType: t.LiteralC<"payment">;
|
|
81
|
+
isTestTransaction: t.BooleanC;
|
|
82
|
+
}>]>]>, t.PartialC<{
|
|
83
|
+
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
84
|
+
}>]>;
|
|
85
|
+
export type CantonPaymentIntent = t.TypeOf<typeof CantonPaymentIntent>;
|
|
@@ -0,0 +1,36 @@
|
|
|
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.CantonPaymentIntent = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const paymentIntent_1 = require("./paymentIntent");
|
|
29
|
+
const utils_1 = require("../../../utils");
|
|
30
|
+
exports.CantonPaymentIntent = t.intersection([
|
|
31
|
+
paymentIntent_1.PaymentIntent,
|
|
32
|
+
t.partial({
|
|
33
|
+
memo: utils_1.optionalString,
|
|
34
|
+
}),
|
|
35
|
+
]);
|
|
36
|
+
//# sourceMappingURL=cantonPaymentIntent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cantonPaymentIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonPaymentIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,mDAAgD;AAChD,0CAAgD;AAKnC,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,6BAAa;IACb,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,sBAAc;KACrB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -60,7 +60,8 @@ export declare const EthAccelerationIntent: t.IntersectionC<[t.IntersectionC<[t.
|
|
|
60
60
|
}>]>, t.TypeC<{
|
|
61
61
|
intentType: t.LiteralC<"acceleration">;
|
|
62
62
|
txid: t.StringC;
|
|
63
|
-
|
|
63
|
+
}>, t.PartialC<{
|
|
64
|
+
senderAddress: t.StringC;
|
|
64
65
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
65
66
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
66
67
|
}>, t.PartialC<{
|
|
@@ -59,7 +59,8 @@ export declare const EthFillNonceIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
|
59
59
|
}>]>, t.TypeC<{
|
|
60
60
|
intentType: t.LiteralC<"fillNonce">;
|
|
61
61
|
nonce: t.UnionC<[t.StringC, t.NumberC]>;
|
|
62
|
-
|
|
62
|
+
}>, t.PartialC<{
|
|
63
|
+
senderAddress: t.StringC;
|
|
63
64
|
}>]>, t.PartialC<{
|
|
64
65
|
feeOptions: t.UnionC<[t.Type<{
|
|
65
66
|
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
|
@@ -59,6 +59,7 @@ export declare const FillNonceIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<
|
|
|
59
59
|
}>]>, t.TypeC<{
|
|
60
60
|
intentType: t.LiteralC<"fillNonce">;
|
|
61
61
|
nonce: t.UnionC<[t.StringC, t.NumberC]>;
|
|
62
|
-
|
|
62
|
+
}>, t.PartialC<{
|
|
63
|
+
senderAddress: t.StringC;
|
|
63
64
|
}>]>;
|
|
64
65
|
export type FillNonceIntent = t.TypeOf<typeof FillNonceIntent>;
|
|
@@ -27,13 +27,14 @@ exports.FillNonceIntent = 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 utils_1 = require("../../../utils");
|
|
31
30
|
exports.FillNonceIntent = t.intersection([
|
|
32
31
|
baseIntent_1.BaseIntentWithoutNonce,
|
|
33
32
|
t.type({
|
|
34
33
|
intentType: intentType_1.intentTypes.fillNonce,
|
|
35
34
|
nonce: t.union([t.string, t.number]),
|
|
36
|
-
|
|
35
|
+
}),
|
|
36
|
+
t.partial({
|
|
37
|
+
senderAddress: t.string,
|
|
37
38
|
}),
|
|
38
39
|
]);
|
|
39
40
|
//# sourceMappingURL=fillNonceIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fillNonceIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/fillNonceIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAsD;AACtD,6CAA2C;
|
|
1
|
+
{"version":3,"file":"fillNonceIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/fillNonceIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAAsD;AACtD,6CAA2C;AAE9B,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,mCAAsB;IACtB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,SAAS;QACjC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;KACrC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,aAAa,EAAE,CAAC,CAAC,MAAM;KACxB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -33,6 +33,7 @@ export * from "./bscDelegateIntent";
|
|
|
33
33
|
export * from "./bscStakeClaimRewardsIntent";
|
|
34
34
|
export * from "./bscUndelegateIntent";
|
|
35
35
|
export * from "./bscWithdrawUndelegateIntent";
|
|
36
|
+
export * from "./cantonPaymentIntent";
|
|
36
37
|
export * from "./cantonTransferAcceptIntent";
|
|
37
38
|
export * from "./cantonTransferAcknowledgeIntent";
|
|
38
39
|
export * from "./cantonTransferOfferWithdrawnIntent";
|
|
@@ -49,6 +49,7 @@ __exportStar(require("./bscDelegateIntent"), exports);
|
|
|
49
49
|
__exportStar(require("./bscStakeClaimRewardsIntent"), exports);
|
|
50
50
|
__exportStar(require("./bscUndelegateIntent"), exports);
|
|
51
51
|
__exportStar(require("./bscWithdrawUndelegateIntent"), exports);
|
|
52
|
+
__exportStar(require("./cantonPaymentIntent"), exports);
|
|
52
53
|
__exportStar(require("./cantonTransferAcceptIntent"), exports);
|
|
53
54
|
__exportStar(require("./cantonTransferAcknowledgeIntent"), exports);
|
|
54
55
|
__exportStar(require("./cantonTransferOfferWithdrawnIntent"), 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,oDAAkC;AAClC,sDAAoC;AACpC,mDAAiC;AACjC,qDAAmC;AACnC,2DAAyC;AACzC,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kEAAgD;AAChD,6DAA2C;AAC3C,0DAAwC;AACxC,sDAAoC;AACpC,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,+DAA6C;AAC7C,oEAAkD;AAClD,uEAAqD;AACrD,+DAA6C;AAC7C,2DAAyC;AACzC,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,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,qEAAmD;AACnD,wDAAsC;AACtC,+DAA6C;AAC7C,8DAA4C;AAC5C,wDAAsC;AACtC,2DAAyC;AACzC,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,mDAAiC;AACjC,yDAAuC;AACvC,6DAA2C;AAC3C,2DAAyC;AACzC,qDAAmC;AACnC,wDAAsC;AACtC,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,oEAAkD;AAClD,sEAAoD;AACpD,qDAAmC;AACnC,qEAAmD;AACnD,uEAAqD;AACrD,mDAAiC;AACjC,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,gEAA8C;AAC9C,sDAAoC;AACpC,+DAA6C;AAC7C,qDAAmC;AACnC,uDAAqC;AACrC,mEAAiD;AACjD,2DAAyC;AACzC,2DAAyC;AACzC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,qDAAmC;AACnC,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,oDAAkC;AAClC,sDAAoC;AACpC,mDA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,uDAAqC"}
|
|
@@ -1189,6 +1189,88 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
1189
1189
|
}>]>, t.TypeC<{
|
|
1190
1190
|
validatorAddress: t.StringC;
|
|
1191
1191
|
requestNumber: t.NumberC;
|
|
1192
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1193
|
+
intentType: t.KeyofC<{
|
|
1194
|
+
payment: t.LiteralC<"payment">;
|
|
1195
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
1196
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
1197
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
1198
|
+
fanout: t.LiteralC<"fanout">;
|
|
1199
|
+
stake: t.LiteralC<"stake">;
|
|
1200
|
+
unstake: t.LiteralC<"unstake">;
|
|
1201
|
+
delegate: t.LiteralC<"delegate">;
|
|
1202
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
1203
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
1204
|
+
claim: t.LiteralC<"claim">;
|
|
1205
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
1206
|
+
pledge: t.LiteralC<"pledge">;
|
|
1207
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
1208
|
+
vote: t.LiteralC<"vote">;
|
|
1209
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
1210
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
1211
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
1212
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
1213
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
1214
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
1215
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
1216
|
+
authorize: t.LiteralC<"authorize">;
|
|
1217
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
1218
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
1219
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
1220
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
1221
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
1222
|
+
customTx: t.LiteralC<"customTx">;
|
|
1223
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
1224
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
1225
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
1226
|
+
switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
|
|
1227
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
1228
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
1229
|
+
transferStake: t.LiteralC<"transferStake">;
|
|
1230
|
+
validatorRegistration: t.LiteralC<"validatorRegistration">;
|
|
1231
|
+
increaseStake: t.LiteralC<"increaseStake">;
|
|
1232
|
+
decreaseStake: t.LiteralC<"decreaseStake">;
|
|
1233
|
+
signalExit: t.LiteralC<"signalExit">;
|
|
1234
|
+
withdrawStake: t.LiteralC<"withdrawStake">;
|
|
1235
|
+
spotTransfer: t.LiteralC<"spotTransfer">;
|
|
1236
|
+
bridgeFunds: t.LiteralC<"bridgeFunds">;
|
|
1237
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
1238
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
1239
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
1240
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
1241
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
1242
|
+
transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
|
|
1243
|
+
"defi-deposit": t.LiteralC<"defi-deposit">;
|
|
1244
|
+
"defi-redeem": t.LiteralC<"defi-redeem">;
|
|
1245
|
+
}>;
|
|
1246
|
+
}>, t.PartialC<{
|
|
1247
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
1248
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
1249
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
1250
|
+
}>]>, t.TypeC<{
|
|
1251
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
1252
|
+
address: t.PartialC<{
|
|
1253
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
1254
|
+
option: t.UnionC<[t.Type<{
|
|
1255
|
+
[x: string]: unknown;
|
|
1256
|
+
}, {
|
|
1257
|
+
[x: string]: unknown;
|
|
1258
|
+
}, unknown>, t.UndefinedC]>;
|
|
1259
|
+
}>;
|
|
1260
|
+
amount: t.TypeC<{
|
|
1261
|
+
value: t.StringC;
|
|
1262
|
+
symbol: t.StringC;
|
|
1263
|
+
}>;
|
|
1264
|
+
}>, t.PartialC<{
|
|
1265
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
1266
|
+
}>]>>;
|
|
1267
|
+
}>, t.UnionC<[t.TypeC<{
|
|
1268
|
+
intentType: t.LiteralC<"payment">;
|
|
1269
|
+
}>, t.TypeC<{
|
|
1270
|
+
intentType: t.LiteralC<"payment">;
|
|
1271
|
+
isTestTransaction: t.BooleanC;
|
|
1272
|
+
}>]>]>, t.PartialC<{
|
|
1273
|
+
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
1192
1274
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1193
1275
|
intentType: t.KeyofC<{
|
|
1194
1276
|
payment: t.LiteralC<"payment">;
|
|
@@ -2583,7 +2665,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
2583
2665
|
}>]>, t.TypeC<{
|
|
2584
2666
|
intentType: t.LiteralC<"acceleration">;
|
|
2585
2667
|
txid: t.StringC;
|
|
2586
|
-
|
|
2668
|
+
}>, t.PartialC<{
|
|
2669
|
+
senderAddress: t.StringC;
|
|
2587
2670
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
2588
2671
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
2589
2672
|
}>, t.PartialC<{
|
|
@@ -2890,7 +2973,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
2890
2973
|
}>]>, t.TypeC<{
|
|
2891
2974
|
intentType: t.LiteralC<"fillNonce">;
|
|
2892
2975
|
nonce: t.UnionC<[t.StringC, t.NumberC]>;
|
|
2893
|
-
|
|
2976
|
+
}>, t.PartialC<{
|
|
2977
|
+
senderAddress: t.StringC;
|
|
2894
2978
|
}>]>, t.PartialC<{
|
|
2895
2979
|
feeOptions: t.UnionC<[t.Type<{
|
|
2896
2980
|
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
|
@@ -131,6 +131,7 @@ const vetIncreaseStakeIntent_1 = require("./vetIncreaseStakeIntent");
|
|
|
131
131
|
const vetDecreaseStakeIntent_1 = require("./vetDecreaseStakeIntent");
|
|
132
132
|
const vetSignalExitIntent_1 = require("./vetSignalExitIntent");
|
|
133
133
|
const vetWithdrawStakeIntent_1 = require("./vetWithdrawStakeIntent");
|
|
134
|
+
const cantonPaymentIntent_1 = require("./cantonPaymentIntent");
|
|
134
135
|
const cantonTransferAcceptIntent_1 = require("./cantonTransferAcceptIntent");
|
|
135
136
|
const cantonTransferAcknowledgeIntent_1 = require("./cantonTransferAcknowledgeIntent");
|
|
136
137
|
const cantonTransferOfferWithdrawnIntent_1 = require("./cantonTransferOfferWithdrawnIntent");
|
|
@@ -159,6 +160,7 @@ exports.TransactionIntent = t.union([
|
|
|
159
160
|
bscDelegateIntent_1.BscDelegateIntent,
|
|
160
161
|
bscUndelegateIntent_1.BscUnDelegateIntent,
|
|
161
162
|
bscWithdrawUndelegateIntent_1.BscWithdrawUndelegateIntent,
|
|
163
|
+
cantonPaymentIntent_1.CantonPaymentIntent,
|
|
162
164
|
cantonTransferAcceptIntent_1.CantonTransferAcceptIntent,
|
|
163
165
|
cantonTransferAcknowledgeIntent_1.CantonTransferAcknowledgeIntent,
|
|
164
166
|
cantonTransferOfferWithdrawnIntent_1.CantonTransferOfferWithdrawnIntent,
|
|
@@ -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,2DAAwD;AACxD,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,mFAAgF;AAChF,yEAAsE;AACtE,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,6DAG8B;AAC9B,2DAAwD;AACxD,yDAAsD;AACtD,+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,2EAAwE;AACxE,yDAAsD;AACtD,yDAAsD;AACtD,uDAAoD;AACpD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,yEAAsE;AACtE,6EAA0E;AAC1E,yDAAsD;AACtD,6DAA0D;AAC1D,+DAA4D;AAC5D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,2DAAwD;AACxD,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,6EAA0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AoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IACpB,qCAAkB;IAClB,mCAAgB;IAChB,oCAAe;IACf,sCAAiB;IAKjB,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,2DAAwD;AACxD,yDAAsD;AACtD,+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,2EAAwE;AACxE,yDAAsD;AACtD,yDAAsD;AACtD,uDAAoD;AACpD,qEAAkE;AAClE,iEAA8D;AAC9D,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,yEAAsE;AACtE,6EAA0E;AAC1E,yDAAsD;AACtD,6DAA0D;AAC1D,+DAA4D;AAC5D,6DAA0D;AAC1D,qDAAkD;AAClD,mGAAgG;AAChG,2DAAwD;AACxD,+DAA4D;AAC5D,2DAAwD;AACxD,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,6EAA0E;AAC1E,2DAAwD;AACxD,yDAAsD;AACtD,6DA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DAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAClB,yCAAmB;IACnB,+CAAsB;IACtB,2CAAoB;IACpB,qCAAkB;IAClB,mCAAgB;IAChB,oCAAe;IACf,sCAAiB;IAKjB,uBAAU;CACX,CAAC,CAAC"}
|
|
@@ -1287,6 +1287,88 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
1287
1287
|
}>]>, t.TypeC<{
|
|
1288
1288
|
validatorAddress: t.StringC;
|
|
1289
1289
|
requestNumber: t.NumberC;
|
|
1290
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1291
|
+
intentType: t.KeyofC<{
|
|
1292
|
+
payment: t.LiteralC<"payment">;
|
|
1293
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
1294
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
1295
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
1296
|
+
fanout: t.LiteralC<"fanout">;
|
|
1297
|
+
stake: t.LiteralC<"stake">;
|
|
1298
|
+
unstake: t.LiteralC<"unstake">;
|
|
1299
|
+
delegate: t.LiteralC<"delegate">;
|
|
1300
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
1301
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
1302
|
+
claim: t.LiteralC<"claim">;
|
|
1303
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
1304
|
+
pledge: t.LiteralC<"pledge">;
|
|
1305
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
1306
|
+
vote: t.LiteralC<"vote">;
|
|
1307
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
1308
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
1309
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
1310
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
1311
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
1312
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
1313
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
1314
|
+
authorize: t.LiteralC<"authorize">;
|
|
1315
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
1316
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
1317
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
1318
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
1319
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
1320
|
+
customTx: t.LiteralC<"customTx">;
|
|
1321
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
1322
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
1323
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
1324
|
+
switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
|
|
1325
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
1326
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
1327
|
+
transferStake: t.LiteralC<"transferStake">;
|
|
1328
|
+
validatorRegistration: t.LiteralC<"validatorRegistration">;
|
|
1329
|
+
increaseStake: t.LiteralC<"increaseStake">;
|
|
1330
|
+
decreaseStake: t.LiteralC<"decreaseStake">;
|
|
1331
|
+
signalExit: t.LiteralC<"signalExit">;
|
|
1332
|
+
withdrawStake: t.LiteralC<"withdrawStake">;
|
|
1333
|
+
spotTransfer: t.LiteralC<"spotTransfer">;
|
|
1334
|
+
bridgeFunds: t.LiteralC<"bridgeFunds">;
|
|
1335
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
1336
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
1337
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
1338
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
1339
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
1340
|
+
transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
|
|
1341
|
+
"defi-deposit": t.LiteralC<"defi-deposit">;
|
|
1342
|
+
"defi-redeem": t.LiteralC<"defi-redeem">;
|
|
1343
|
+
}>;
|
|
1344
|
+
}>, t.PartialC<{
|
|
1345
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
1346
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
1347
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
1348
|
+
}>]>, t.TypeC<{
|
|
1349
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
1350
|
+
address: t.PartialC<{
|
|
1351
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
1352
|
+
option: t.UnionC<[t.Type<{
|
|
1353
|
+
[x: string]: unknown;
|
|
1354
|
+
}, {
|
|
1355
|
+
[x: string]: unknown;
|
|
1356
|
+
}, unknown>, t.UndefinedC]>;
|
|
1357
|
+
}>;
|
|
1358
|
+
amount: t.TypeC<{
|
|
1359
|
+
value: t.StringC;
|
|
1360
|
+
symbol: t.StringC;
|
|
1361
|
+
}>;
|
|
1362
|
+
}>, t.PartialC<{
|
|
1363
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
1364
|
+
}>]>>;
|
|
1365
|
+
}>, t.UnionC<[t.TypeC<{
|
|
1366
|
+
intentType: t.LiteralC<"payment">;
|
|
1367
|
+
}>, t.TypeC<{
|
|
1368
|
+
intentType: t.LiteralC<"payment">;
|
|
1369
|
+
isTestTransaction: t.BooleanC;
|
|
1370
|
+
}>]>]>, t.PartialC<{
|
|
1371
|
+
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
1290
1372
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1291
1373
|
intentType: t.KeyofC<{
|
|
1292
1374
|
payment: t.LiteralC<"payment">;
|
|
@@ -2681,7 +2763,8 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
2681
2763
|
}>]>, t.TypeC<{
|
|
2682
2764
|
intentType: t.LiteralC<"acceleration">;
|
|
2683
2765
|
txid: t.StringC;
|
|
2684
|
-
|
|
2766
|
+
}>, t.PartialC<{
|
|
2767
|
+
senderAddress: t.StringC;
|
|
2685
2768
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
2686
2769
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
2687
2770
|
}>, t.PartialC<{
|
|
@@ -2988,7 +3071,8 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
2988
3071
|
}>]>, t.TypeC<{
|
|
2989
3072
|
intentType: t.LiteralC<"fillNonce">;
|
|
2990
3073
|
nonce: t.UnionC<[t.StringC, t.NumberC]>;
|
|
2991
|
-
|
|
3074
|
+
}>, t.PartialC<{
|
|
3075
|
+
senderAddress: t.StringC;
|
|
2992
3076
|
}>]>, t.PartialC<{
|
|
2993
3077
|
feeOptions: t.UnionC<[t.Type<{
|
|
2994
3078
|
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
|
@@ -11277,6 +11361,88 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
11277
11361
|
}>]>, t.TypeC<{
|
|
11278
11362
|
validatorAddress: t.StringC;
|
|
11279
11363
|
requestNumber: t.NumberC;
|
|
11364
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
11365
|
+
intentType: t.KeyofC<{
|
|
11366
|
+
payment: t.LiteralC<"payment">;
|
|
11367
|
+
transferToken: t.LiteralC<"transferToken">;
|
|
11368
|
+
consolidate: t.LiteralC<"consolidate">;
|
|
11369
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
|
11370
|
+
fanout: t.LiteralC<"fanout">;
|
|
11371
|
+
stake: t.LiteralC<"stake">;
|
|
11372
|
+
unstake: t.LiteralC<"unstake">;
|
|
11373
|
+
delegate: t.LiteralC<"delegate">;
|
|
11374
|
+
undelegate: t.LiteralC<"undelegate">;
|
|
11375
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
|
11376
|
+
claim: t.LiteralC<"claim">;
|
|
11377
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
|
11378
|
+
pledge: t.LiteralC<"pledge">;
|
|
11379
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
|
11380
|
+
vote: t.LiteralC<"vote">;
|
|
11381
|
+
createAccount: t.LiteralC<"createAccount">;
|
|
11382
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
|
11383
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
|
11384
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
|
11385
|
+
signMessage: t.LiteralC<"signMessage">;
|
|
11386
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
|
11387
|
+
enableToken: t.LiteralC<"enableToken">;
|
|
11388
|
+
authorize: t.LiteralC<"authorize">;
|
|
11389
|
+
acceleration: t.LiteralC<"acceleration">;
|
|
11390
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
|
11391
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
|
11392
|
+
contractCall: t.LiteralC<"contractCall">;
|
|
11393
|
+
deactivate: t.LiteralC<"deactivate">;
|
|
11394
|
+
customTx: t.LiteralC<"customTx">;
|
|
11395
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
11396
|
+
stakeWithCallData: t.LiteralC<"stakeWithCallData">;
|
|
11397
|
+
unstakeWithCallData: t.LiteralC<"unstakeWithCallData">;
|
|
11398
|
+
switchValidatorWithCallData: t.LiteralC<"switchValidatorWithCallData">;
|
|
11399
|
+
feeAddressTransfer: t.LiteralC<"feeAddressTransfer">;
|
|
11400
|
+
tokenApproval: t.LiteralC<"tokenApproval">;
|
|
11401
|
+
transferStake: t.LiteralC<"transferStake">;
|
|
11402
|
+
validatorRegistration: t.LiteralC<"validatorRegistration">;
|
|
11403
|
+
increaseStake: t.LiteralC<"increaseStake">;
|
|
11404
|
+
decreaseStake: t.LiteralC<"decreaseStake">;
|
|
11405
|
+
signalExit: t.LiteralC<"signalExit">;
|
|
11406
|
+
withdrawStake: t.LiteralC<"withdrawStake">;
|
|
11407
|
+
spotTransfer: t.LiteralC<"spotTransfer">;
|
|
11408
|
+
bridgeFunds: t.LiteralC<"bridgeFunds">;
|
|
11409
|
+
goUnstake: t.LiteralC<"goUnstake">;
|
|
11410
|
+
createBtcDelegation: t.LiteralC<"createBtcDelegation">;
|
|
11411
|
+
transferAccept: t.LiteralC<"transferAccept">;
|
|
11412
|
+
transferReject: t.LiteralC<"transferReject">;
|
|
11413
|
+
transferAcknowledge: t.LiteralC<"transferAcknowledge">;
|
|
11414
|
+
transferOfferWithdrawn: t.LiteralC<"transferOfferWithdrawn">;
|
|
11415
|
+
"defi-deposit": t.LiteralC<"defi-deposit">;
|
|
11416
|
+
"defi-redeem": t.LiteralC<"defi-redeem">;
|
|
11417
|
+
}>;
|
|
11418
|
+
}>, t.PartialC<{
|
|
11419
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
11420
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
11421
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
11422
|
+
}>]>, t.TypeC<{
|
|
11423
|
+
recipients: t.ArrayC<t.IntersectionC<[t.TypeC<{
|
|
11424
|
+
address: t.PartialC<{
|
|
11425
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
11426
|
+
option: t.UnionC<[t.Type<{
|
|
11427
|
+
[x: string]: unknown;
|
|
11428
|
+
}, {
|
|
11429
|
+
[x: string]: unknown;
|
|
11430
|
+
}, unknown>, t.UndefinedC]>;
|
|
11431
|
+
}>;
|
|
11432
|
+
amount: t.TypeC<{
|
|
11433
|
+
value: t.StringC;
|
|
11434
|
+
symbol: t.StringC;
|
|
11435
|
+
}>;
|
|
11436
|
+
}>, t.PartialC<{
|
|
11437
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
11438
|
+
}>]>>;
|
|
11439
|
+
}>, t.UnionC<[t.TypeC<{
|
|
11440
|
+
intentType: t.LiteralC<"payment">;
|
|
11441
|
+
}>, t.TypeC<{
|
|
11442
|
+
intentType: t.LiteralC<"payment">;
|
|
11443
|
+
isTestTransaction: t.BooleanC;
|
|
11444
|
+
}>]>]>, t.PartialC<{
|
|
11445
|
+
memo: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
11280
11446
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
11281
11447
|
intentType: t.KeyofC<{
|
|
11282
11448
|
payment: t.LiteralC<"payment">;
|
|
@@ -12671,7 +12837,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
12671
12837
|
}>]>, t.TypeC<{
|
|
12672
12838
|
intentType: t.LiteralC<"acceleration">;
|
|
12673
12839
|
txid: t.StringC;
|
|
12674
|
-
|
|
12840
|
+
}>, t.PartialC<{
|
|
12841
|
+
senderAddress: t.StringC;
|
|
12675
12842
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
12676
12843
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
12677
12844
|
}>, t.PartialC<{
|
|
@@ -12978,7 +13145,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
12978
13145
|
}>]>, t.TypeC<{
|
|
12979
13146
|
intentType: t.LiteralC<"fillNonce">;
|
|
12980
13147
|
nonce: t.UnionC<[t.StringC, t.NumberC]>;
|
|
12981
|
-
|
|
13148
|
+
}>, t.PartialC<{
|
|
13149
|
+
senderAddress: t.StringC;
|
|
12982
13150
|
}>]>, t.PartialC<{
|
|
12983
13151
|
feeOptions: t.UnionC<[t.Type<{
|
|
12984
13152
|
unit?: "baseUnit" | "cpu" | "ram" | undefined;
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { BaseIntent } from "./baseIntent";
|
|
3
3
|
import { intentTypes } from "./intentType";
|
|
4
|
-
import { optionalString } from "../../../utils";
|
|
5
4
|
|
|
6
5
|
export const AccelerationIntent = t.intersection([
|
|
7
6
|
BaseIntent,
|
|
8
7
|
t.type({
|
|
9
8
|
intentType: intentTypes.acceleration,
|
|
10
9
|
txid: t.string,
|
|
11
|
-
|
|
10
|
+
}),
|
|
11
|
+
t.partial({
|
|
12
|
+
senderAddress: t.string,
|
|
12
13
|
}),
|
|
13
14
|
]);
|
|
14
15
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
import { PaymentIntent } from "./paymentIntent";
|
|
3
|
+
import { optionalString } from "../../../utils";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @title CANTON Payment Intent
|
|
7
|
+
*/
|
|
8
|
+
export const CantonPaymentIntent = t.intersection([
|
|
9
|
+
PaymentIntent,
|
|
10
|
+
t.partial({
|
|
11
|
+
memo: optionalString,
|
|
12
|
+
}),
|
|
13
|
+
]);
|
|
14
|
+
|
|
15
|
+
export type CantonPaymentIntent = t.TypeOf<typeof CantonPaymentIntent>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { BaseIntentWithoutNonce } from "./baseIntent";
|
|
3
3
|
import { intentTypes } from "./intentType";
|
|
4
|
-
import { optionalString } from "../../../utils";
|
|
5
4
|
|
|
6
5
|
export const FillNonceIntent = t.intersection([
|
|
7
6
|
BaseIntentWithoutNonce,
|
|
8
7
|
t.type({
|
|
9
8
|
intentType: intentTypes.fillNonce,
|
|
10
9
|
nonce: t.union([t.string, t.number]),
|
|
11
|
-
|
|
10
|
+
}),
|
|
11
|
+
t.partial({
|
|
12
|
+
senderAddress: t.string,
|
|
12
13
|
}),
|
|
13
14
|
]);
|
|
14
15
|
|
|
@@ -33,6 +33,7 @@ export * from "./bscDelegateIntent";
|
|
|
33
33
|
export * from "./bscStakeClaimRewardsIntent";
|
|
34
34
|
export * from "./bscUndelegateIntent";
|
|
35
35
|
export * from "./bscWithdrawUndelegateIntent";
|
|
36
|
+
export * from "./cantonPaymentIntent";
|
|
36
37
|
export * from "./cantonTransferAcceptIntent";
|
|
37
38
|
export * from "./cantonTransferAcknowledgeIntent";
|
|
38
39
|
export * from "./cantonTransferOfferWithdrawnIntent";
|
|
@@ -108,6 +108,7 @@ import { VetIncreaseStakeIntent } from "./vetIncreaseStakeIntent";
|
|
|
108
108
|
import { VetDecreaseStakeIntent } from "./vetDecreaseStakeIntent";
|
|
109
109
|
import { VetSignalExitIntent } from "./vetSignalExitIntent";
|
|
110
110
|
import { VetWithdrawStakeIntent } from "./vetWithdrawStakeIntent";
|
|
111
|
+
import { CantonPaymentIntent } from "./cantonPaymentIntent";
|
|
111
112
|
import { CantonTransferAcceptIntent } from "./cantonTransferAcceptIntent";
|
|
112
113
|
import { CantonTransferAcknowledgeIntent } from "./cantonTransferAcknowledgeIntent";
|
|
113
114
|
import { CantonTransferOfferWithdrawnIntent } from "./cantonTransferOfferWithdrawnIntent";
|
|
@@ -137,6 +138,7 @@ export const TransactionIntent = t.union([
|
|
|
137
138
|
BscDelegateIntent,
|
|
138
139
|
BscUnDelegateIntent,
|
|
139
140
|
BscWithdrawUndelegateIntent,
|
|
141
|
+
CantonPaymentIntent,
|
|
140
142
|
CantonTransferAcceptIntent,
|
|
141
143
|
CantonTransferAcknowledgeIntent,
|
|
142
144
|
CantonTransferOfferWithdrawnIntent,
|