@bitgo/public-types 4.9.1 → 4.10.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/schema/transactionRequest/intents/beraDelegateIntent.d.ts +72 -0
- package/dist/src/schema/transactionRequest/intents/beraDelegateIntent.js +41 -0
- package/dist/src/schema/transactionRequest/intents/beraDelegateIntent.js.map +1 -0
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +69 -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 -2
- package/src/schema/transactionRequest/intents/beraDelegateIntent.ts +26 -0
- package/src/schema/transactionRequest/intents/intent.ts +2 -0
@@ -0,0 +1,72 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
export declare const BeraDelegateIntent: 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
|
+
}>;
|
35
|
+
}>, t.PartialC<{
|
36
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
37
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
38
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
39
|
+
}>]>, t.TypeC<{
|
40
|
+
stakingRequestId: t.StringC;
|
41
|
+
}>]>, t.TypeC<{
|
42
|
+
intentType: t.LiteralC<"delegate">;
|
43
|
+
}>, t.PartialC<{
|
44
|
+
recipients: t.UnionC<[t.Type<({
|
45
|
+
address: {
|
46
|
+
address?: string | undefined;
|
47
|
+
option?: {
|
48
|
+
[x: string]: unknown;
|
49
|
+
} | undefined;
|
50
|
+
};
|
51
|
+
amount: {
|
52
|
+
value: string;
|
53
|
+
symbol: string;
|
54
|
+
};
|
55
|
+
} & {
|
56
|
+
data?: string | undefined;
|
57
|
+
})[], ({
|
58
|
+
address: {
|
59
|
+
address?: string | undefined;
|
60
|
+
option?: {
|
61
|
+
[x: string]: unknown;
|
62
|
+
} | undefined;
|
63
|
+
};
|
64
|
+
amount: {
|
65
|
+
value: string;
|
66
|
+
symbol: string;
|
67
|
+
};
|
68
|
+
} & {
|
69
|
+
data?: string | undefined;
|
70
|
+
})[], unknown>, t.UndefinedC]>;
|
71
|
+
}>]>;
|
72
|
+
export type BeraDelegateIntent = t.TypeOf<typeof BeraDelegateIntent>;
|
@@ -0,0 +1,41 @@
|
|
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.BeraDelegateIntent = void 0;
|
27
|
+
const t = __importStar(require("io-ts"));
|
28
|
+
const baseStakeIntent_1 = require("./baseStakeIntent");
|
29
|
+
const utils_1 = require("../../../utils");
|
30
|
+
const recipientEntry_1 = require("./recipientEntry");
|
31
|
+
const intentType_1 = require("./intentType");
|
32
|
+
exports.BeraDelegateIntent = t.intersection([
|
33
|
+
baseStakeIntent_1.BaseStakeIntent,
|
34
|
+
t.type({
|
35
|
+
intentType: intentType_1.intentTypes.delegate,
|
36
|
+
}),
|
37
|
+
t.partial({
|
38
|
+
recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
|
39
|
+
}),
|
40
|
+
]);
|
41
|
+
//# sourceMappingURL=beraDelegateIntent.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"beraDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/beraDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,0CAA0C;AAC1C,qDAAkD;AAClD,6CAA2C;AAW9B,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;KACjC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
|
@@ -3709,6 +3709,75 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3709
3709
|
} & {
|
3710
3710
|
data?: string | undefined;
|
3711
3711
|
})[], unknown>, t.UndefinedC]>;
|
3712
|
+
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
3713
|
+
intentType: t.KeyofC<{
|
3714
|
+
payment: t.LiteralC<"payment">;
|
3715
|
+
transferToken: t.LiteralC<"transferToken">;
|
3716
|
+
consolidate: t.LiteralC<"consolidate">;
|
3717
|
+
consolidateToken: t.LiteralC<"consolidateToken">;
|
3718
|
+
fanout: t.LiteralC<"fanout">;
|
3719
|
+
stake: t.LiteralC<"stake">;
|
3720
|
+
unstake: t.LiteralC<"unstake">;
|
3721
|
+
delegate: t.LiteralC<"delegate">;
|
3722
|
+
undelegate: t.LiteralC<"undelegate">;
|
3723
|
+
switchValidator: t.LiteralC<"switchValidator">;
|
3724
|
+
claim: t.LiteralC<"claim">;
|
3725
|
+
stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
|
3726
|
+
pledge: t.LiteralC<"pledge">;
|
3727
|
+
voteDelegation: t.LiteralC<"voteDelegation">;
|
3728
|
+
vote: t.LiteralC<"vote">;
|
3729
|
+
createAccount: t.LiteralC<"createAccount">;
|
3730
|
+
updateAccount: t.LiteralC<"updateAccount">;
|
3731
|
+
addTrustLine: t.LiteralC<"addTrustLine">;
|
3732
|
+
removeTrustLine: t.LiteralC<"removeTrustLine">;
|
3733
|
+
signMessage: t.LiteralC<"signMessage">;
|
3734
|
+
signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
|
3735
|
+
enableToken: t.LiteralC<"enableToken">;
|
3736
|
+
authorize: t.LiteralC<"authorize">;
|
3737
|
+
acceleration: t.LiteralC<"acceleration">;
|
3738
|
+
fillNonce: t.LiteralC<"fillNonce">;
|
3739
|
+
walletRecovery: t.LiteralC<"walletRecovery">;
|
3740
|
+
contractCall: t.LiteralC<"contractCall">;
|
3741
|
+
deactivate: t.LiteralC<"deactivate">;
|
3742
|
+
customTx: t.LiteralC<"customTx">;
|
3743
|
+
closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
|
3744
|
+
}>;
|
3745
|
+
}>, t.PartialC<{
|
3746
|
+
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3747
|
+
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
3748
|
+
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
3749
|
+
}>]>, t.TypeC<{
|
3750
|
+
stakingRequestId: t.StringC;
|
3751
|
+
}>]>, t.TypeC<{
|
3752
|
+
intentType: t.LiteralC<"delegate">;
|
3753
|
+
}>, t.PartialC<{
|
3754
|
+
recipients: t.UnionC<[t.Type<({
|
3755
|
+
address: {
|
3756
|
+
address?: string | undefined;
|
3757
|
+
option?: {
|
3758
|
+
[x: string]: unknown;
|
3759
|
+
} | undefined;
|
3760
|
+
};
|
3761
|
+
amount: {
|
3762
|
+
value: string;
|
3763
|
+
symbol: string;
|
3764
|
+
};
|
3765
|
+
} & {
|
3766
|
+
data?: string | undefined;
|
3767
|
+
})[], ({
|
3768
|
+
address: {
|
3769
|
+
address?: string | undefined;
|
3770
|
+
option?: {
|
3771
|
+
[x: string]: unknown;
|
3772
|
+
} | undefined;
|
3773
|
+
};
|
3774
|
+
amount: {
|
3775
|
+
value: string;
|
3776
|
+
symbol: string;
|
3777
|
+
};
|
3778
|
+
} & {
|
3779
|
+
data?: string | undefined;
|
3780
|
+
})[], unknown>, t.UndefinedC]>;
|
3712
3781
|
}>]>, t.IntersectionC<[t.TypeC<{
|
3713
3782
|
intentType: t.KeyofC<{
|
3714
3783
|
payment: t.LiteralC<"payment">;
|
@@ -88,6 +88,7 @@ const coredaoDelegateIntent_1 = require("./coredaoDelegateIntent");
|
|
88
88
|
const coredaoUndelegateIntent_1 = require("./coredaoUndelegateIntent");
|
89
89
|
const coredaoClaimIntent_1 = require("./coredaoClaimIntent");
|
90
90
|
const ethLikeStakeIntent_1 = require("./ethLikeStakeIntent");
|
91
|
+
const beraDelegateIntent_1 = require("./beraDelegateIntent");
|
91
92
|
exports.TransactionIntent = t.union([
|
92
93
|
adaConsolidateIntent_1.AdaConsolidateIntent,
|
93
94
|
adaPaymentIntent_1.AdaPaymentIntent,
|
@@ -151,6 +152,7 @@ exports.TransactionIntent = t.union([
|
|
151
152
|
coredaoUndelegateIntent_1.CoreDaoUndelegateIntent,
|
152
153
|
coredaoClaimIntent_1.CoreDaoClaimIntent,
|
153
154
|
ethLikeStakeIntent_1.EthLikeStakeIntent,
|
155
|
+
beraDelegateIntent_1.BeraDelegateIntent,
|
154
156
|
baseIntent_1.BaseIntent,
|
155
157
|
]);
|
156
158
|
//# sourceMappingURL=intent.js.map
|
@@ -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,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+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,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D;AAC9D,iEAA8D;AAC9D,6EAA0E;AAC1E,yDAAsD;AACtD,yDAAsD;AACtD,iEAA8D;AAC9D,yEAAsE;AACtE,iEAA8D;AAC9D,2EAAwE;AACxE,qEAAkE;AAClE,6CAA0C;AAC1C,iEAA8D;AAC9D,iGAA8F;AAC9F,+EAA4E;AAC5E,mEAAgE;AAChE,uEAAoE;AACpE,6DAA0D;AAC1D,6DAA0D;AAE7C,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC;IACvC,2CAAoB;IACpB,mCAAgB;IAChB,uDAA0B;IAC1B,+BAAc;IACd,mCAAgB;IAChB,iDAAuB;IACvB,qCAAiB;IACjB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,qCAAiB;IACjB,yCAAmB;IACnB,yDAA2B;IAC3B,yCAAmB;IACnB,qCAAiB;IACjB,yDAA2B;IAC3B,yCAAmB;IACnB,2CAAoB;IACpB,2CAAoB;IACpB,+CAAsB;IACtB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+CAAsB;IACtB,6CAAqB;IACrB,2CAAoB;IACpB,qDAAyB;IACzB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,+CAAsB;IACtB,+CAAsB;IACtB,2CAAoB;IACpB,mDAAwB;IACxB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,uCAAkB;IAClB,+BAAc;IACd,2EAAoC;IACpC,2CAAoB;IACpB,6EAAqC;IACrC,yCAAmB;IACnB,qCAAiB;IACjB,mCAAgB;IAChB,+BAAc;IACd,mCAAgB;IAChB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAKlB,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,uDAAoD;AACpD,2DAAwD;AACxD,6DAA0D;AAC1D,2DAAwD;AACxD,+DAA4D;AAC5D,+EAA4E;AAC5E,+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,yDAAsD;AACtD,qDAAkD;AAClD,yDAAsD;AACtD,2DAAwD;AACxD,yDAAsD;AACtD,6DAA0D;AAC1D,2DAAwD;AACxD,yDAAsD;AACtD,+DAA4D;AAC5D,iEAA8D;AAC9D,iEAA8D;AAC9D,iEAA8D;AAC9D,6EAA0E;AAC1E,yDAAsD;AACtD,yDAAsD;AACtD,iEAA8D;AAC9D,yEAAsE;AACtE,iEAA8D;AAC9D,2EAAwE;AACxE,qEAAkE;AAClE,6CAA0C;AAC1C,iEAA8D;AAC9D,iGAA8F;AAC9F,+EAA4E;AAC5E,mEAAgE;AAChE,uEAAoE;AACpE,6DAA0D;AAC1D,6DAA0D;AAC1D,6DAA0D;AAE7C,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC;IACvC,2CAAoB;IACpB,mCAAgB;IAChB,uDAA0B;IAC1B,+BAAc;IACd,mCAAgB;IAChB,iDAAuB;IACvB,qCAAiB;IACjB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,qCAAiB;IACjB,yCAAmB;IACnB,yDAA2B;IAC3B,yCAAmB;IACnB,qCAAiB;IACjB,yDAA2B;IAC3B,yCAAmB;IACnB,2CAAoB;IACpB,2CAAoB;IACpB,+CAAsB;IACtB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,+CAAsB;IACtB,6CAAqB;IACrB,2CAAoB;IACpB,qDAAyB;IACzB,uCAAkB;IAClB,mCAAgB;IAChB,mCAAgB;IAChB,+CAAsB;IACtB,+CAAsB;IACtB,2CAAoB;IACpB,mDAAwB;IACxB,iCAAe;IACf,qCAAiB;IACjB,uCAAkB;IAClB,uCAAkB;IAClB,+BAAc;IACd,2EAAoC;IACpC,2CAAoB;IACpB,6EAAqC;IACrC,yCAAmB;IACnB,qCAAiB;IACjB,mCAAgB;IAChB,+BAAc;IACd,mCAAgB;IAChB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,mCAAgB;IAChB,uCAAkB;IAClB,2CAAoB;IACpB,qCAAiB;IACjB,mCAAgB;IAChB,yCAAmB;IACnB,2CAAoB;IACpB,yDAA2B;IAC3B,6CAAqB;IACrB,iDAAuB;IACvB,uCAAkB;IAClB,uCAAkB;IAClB,uCAAkB;IAKlB,uBAAU;CACX,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bitgo/public-types",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.10.0",
|
4
4
|
"description": "Collection of types exposed externally as part of the BitGo public API",
|
5
5
|
"license": "UNLICENSED",
|
6
6
|
"author": "",
|
@@ -22,7 +22,6 @@
|
|
22
22
|
"prettier-format": "prettier --write ."
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
-
"@api-ts/io-ts-http": "^1.0.0",
|
26
25
|
"fp-ts": "^2.0.0",
|
27
26
|
"io-ts": "npm:@bitgo-forks/io-ts@2.1.4",
|
28
27
|
"io-ts-types": "^0.5.16",
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import * as t from "io-ts";
|
2
|
+
import { BaseStakeIntent } from "./baseStakeIntent";
|
3
|
+
import { Optional } from "../../../utils";
|
4
|
+
import { RecipientEntry } from "./recipientEntry";
|
5
|
+
import { intentTypes } from "./intentType";
|
6
|
+
|
7
|
+
/**
|
8
|
+
* @title Bera Delegate Intent
|
9
|
+
*
|
10
|
+
* @description The intent for delegate (stake) requests and transactions for BERA
|
11
|
+
*
|
12
|
+
* @param {string} intentType The type of intent (always set to delegate)
|
13
|
+
* @param {Amount} amount The amount to delegate
|
14
|
+
* @param {RecipientEntry[]} recipients The recipients of the staking transaction
|
15
|
+
*/
|
16
|
+
export const BeraDelegateIntent = t.intersection([
|
17
|
+
BaseStakeIntent,
|
18
|
+
t.type({
|
19
|
+
intentType: intentTypes.delegate,
|
20
|
+
}),
|
21
|
+
t.partial({
|
22
|
+
recipients: Optional(t.array(RecipientEntry)),
|
23
|
+
}),
|
24
|
+
]);
|
25
|
+
|
26
|
+
export type BeraDelegateIntent = t.TypeOf<typeof BeraDelegateIntent>;
|
@@ -62,6 +62,7 @@ import { CoreDaoDelegateIntent } from "./coredaoDelegateIntent";
|
|
62
62
|
import { CoreDaoUndelegateIntent } from "./coredaoUndelegateIntent";
|
63
63
|
import { CoreDaoClaimIntent } from "./coredaoClaimIntent";
|
64
64
|
import { EthLikeStakeIntent } from "./ethLikeStakeIntent";
|
65
|
+
import { BeraDelegateIntent } from "./beraDelegateIntent";
|
65
66
|
|
66
67
|
export const TransactionIntent = t.union([
|
67
68
|
AdaConsolidateIntent,
|
@@ -126,6 +127,7 @@ export const TransactionIntent = t.union([
|
|
126
127
|
CoreDaoUndelegateIntent,
|
127
128
|
CoreDaoClaimIntent,
|
128
129
|
EthLikeStakeIntent,
|
130
|
+
BeraDelegateIntent,
|
129
131
|
|
130
132
|
/**
|
131
133
|
* Catch all for past intents that have not been converted to codecs
|