@bitgo/public-types 4.3.1 → 4.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (21) hide show
  1. package/dist/src/schema/transactionRequest/intents/ethLikeClaimIntent.d.ts +71 -0
  2. package/dist/src/schema/transactionRequest/intents/ethLikeClaimIntent.js +41 -0
  3. package/dist/src/schema/transactionRequest/intents/ethLikeClaimIntent.js.map +1 -0
  4. package/dist/src/schema/transactionRequest/intents/ethLikeDelegateIntent.d.ts +76 -0
  5. package/dist/src/schema/transactionRequest/intents/ethLikeDelegateIntent.js +44 -0
  6. package/dist/src/schema/transactionRequest/intents/ethLikeDelegateIntent.js.map +1 -0
  7. package/dist/src/schema/transactionRequest/intents/ethLikeUndelegateIntent.d.ts +76 -0
  8. package/dist/src/schema/transactionRequest/intents/ethLikeUndelegateIntent.js +44 -0
  9. package/dist/src/schema/transactionRequest/intents/ethLikeUndelegateIntent.js.map +1 -0
  10. package/dist/src/schema/transactionRequest/intents/index.d.ts +3 -0
  11. package/dist/src/schema/transactionRequest/intents/index.js +3 -0
  12. package/dist/src/schema/transactionRequest/intents/index.js.map +1 -1
  13. package/dist/src/schema/transactionRequest/intents/intent.d.ts +214 -0
  14. package/dist/src/schema/transactionRequest/intents/intent.js +6 -0
  15. package/dist/src/schema/transactionRequest/intents/intent.js.map +1 -1
  16. package/package.json +1 -1
  17. package/src/schema/transactionRequest/intents/ethLikeClaimIntent.ts +25 -0
  18. package/src/schema/transactionRequest/intents/ethLikeDelegateIntent.ts +30 -0
  19. package/src/schema/transactionRequest/intents/ethLikeUndelegateIntent.ts +30 -0
  20. package/src/schema/transactionRequest/intents/index.ts +3 -0
  21. package/src/schema/transactionRequest/intents/intent.ts +7 -0
@@ -0,0 +1,71 @@
1
+ import * as t from "io-ts";
2
+ export declare const EthLikeClaimIntent: 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
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
33
+ }>;
34
+ }>, t.PartialC<{
35
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
36
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
37
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
38
+ }>]>, t.TypeC<{
39
+ stakingRequestId: t.StringC;
40
+ }>]>, t.TypeC<{
41
+ intentType: t.LiteralC<"stakeClaimRewards">;
42
+ }>, t.PartialC<{
43
+ recipients: t.UnionC<[t.Type<({
44
+ address: {
45
+ address?: string | undefined;
46
+ option?: {
47
+ [x: string]: unknown;
48
+ } | undefined;
49
+ };
50
+ amount: {
51
+ value: string;
52
+ symbol: string;
53
+ };
54
+ } & {
55
+ data?: string | undefined;
56
+ })[], ({
57
+ address: {
58
+ address?: string | undefined;
59
+ option?: {
60
+ [x: string]: unknown;
61
+ } | undefined;
62
+ };
63
+ amount: {
64
+ value: string;
65
+ symbol: string;
66
+ };
67
+ } & {
68
+ data?: string | undefined;
69
+ })[], unknown>, t.UndefinedC]>;
70
+ }>]>;
71
+ export type EthLikeClaimIntent = t.TypeOf<typeof EthLikeClaimIntent>;
@@ -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.EthLikeClaimIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const baseStakeIntent_1 = require("./baseStakeIntent");
29
+ const intentType_1 = require("./intentType");
30
+ const utils_1 = require("../../../utils");
31
+ const recipientEntry_1 = require("./recipientEntry");
32
+ exports.EthLikeClaimIntent = t.intersection([
33
+ baseStakeIntent_1.BaseStakeIntent,
34
+ t.type({
35
+ intentType: intentType_1.intentTypes.stakeClaimRewards,
36
+ }),
37
+ t.partial({
38
+ recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
39
+ }),
40
+ ]);
41
+ //# sourceMappingURL=ethLikeClaimIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethLikeClaimIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethLikeClaimIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,0CAA0C;AAC1C,qDAAkD;AAUrC,QAAA,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,iBAAiB;KAC1C,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,76 @@
1
+ import * as t from "io-ts";
2
+ export declare const EthLikeDelegateIntent: 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
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
33
+ }>;
34
+ }>, t.PartialC<{
35
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
36
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
37
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
38
+ }>]>, t.TypeC<{
39
+ stakingRequestId: t.StringC;
40
+ }>]>, t.TypeC<{
41
+ intentType: t.LiteralC<"delegate">;
42
+ validatorAddress: t.StringC;
43
+ amount: t.TypeC<{
44
+ value: t.StringC;
45
+ symbol: t.StringC;
46
+ }>;
47
+ }>, t.PartialC<{
48
+ recipients: t.UnionC<[t.Type<({
49
+ address: {
50
+ address?: string | undefined;
51
+ option?: {
52
+ [x: string]: unknown;
53
+ } | undefined;
54
+ };
55
+ amount: {
56
+ value: string;
57
+ symbol: string;
58
+ };
59
+ } & {
60
+ data?: string | undefined;
61
+ })[], ({
62
+ address: {
63
+ address?: string | undefined;
64
+ option?: {
65
+ [x: string]: unknown;
66
+ } | undefined;
67
+ };
68
+ amount: {
69
+ value: string;
70
+ symbol: string;
71
+ };
72
+ } & {
73
+ data?: string | undefined;
74
+ })[], unknown>, t.UndefinedC]>;
75
+ }>]>;
76
+ export type EthLikeDelegateIntent = t.TypeOf<typeof EthLikeDelegateIntent>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.EthLikeDelegateIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const baseStakeIntent_1 = require("./baseStakeIntent");
29
+ const intentType_1 = require("./intentType");
30
+ const amount_1 = require("./amount");
31
+ const recipientEntry_1 = require("./recipientEntry");
32
+ const utils_1 = require("../../../utils");
33
+ exports.EthLikeDelegateIntent = t.intersection([
34
+ baseStakeIntent_1.BaseStakeIntent,
35
+ t.type({
36
+ intentType: intentType_1.intentTypes.delegate,
37
+ validatorAddress: t.string,
38
+ amount: amount_1.Amount,
39
+ }),
40
+ t.partial({
41
+ recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
42
+ }),
43
+ ]);
44
+ //# sourceMappingURL=ethLikeDelegateIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethLikeDelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethLikeDelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,6CAA2C;AAC3C,qCAAkC;AAClC,qDAAkD;AAClD,0CAA0C;AAY7B,QAAA,qBAAqB,GAAG,CAAC,CAAC,YAAY,CAAC;IAClD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,QAAQ;QAChC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;KACf,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,76 @@
1
+ import * as t from "io-ts";
2
+ export declare const EthLikeUndelegateIntent: 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
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
33
+ }>;
34
+ }>, t.PartialC<{
35
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
36
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
37
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
38
+ }>]>, t.TypeC<{
39
+ stakingRequestId: t.StringC;
40
+ }>]>, t.TypeC<{
41
+ intentType: t.LiteralC<"undelegate">;
42
+ validatorAddress: t.StringC;
43
+ amount: t.TypeC<{
44
+ value: t.StringC;
45
+ symbol: t.StringC;
46
+ }>;
47
+ }>, t.PartialC<{
48
+ recipients: t.UnionC<[t.Type<({
49
+ address: {
50
+ address?: string | undefined;
51
+ option?: {
52
+ [x: string]: unknown;
53
+ } | undefined;
54
+ };
55
+ amount: {
56
+ value: string;
57
+ symbol: string;
58
+ };
59
+ } & {
60
+ data?: string | undefined;
61
+ })[], ({
62
+ address: {
63
+ address?: string | undefined;
64
+ option?: {
65
+ [x: string]: unknown;
66
+ } | undefined;
67
+ };
68
+ amount: {
69
+ value: string;
70
+ symbol: string;
71
+ };
72
+ } & {
73
+ data?: string | undefined;
74
+ })[], unknown>, t.UndefinedC]>;
75
+ }>]>;
76
+ export type EthLikeUndelegateIntent = t.TypeOf<typeof EthLikeUndelegateIntent>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.EthLikeUndelegateIntent = void 0;
27
+ const t = __importStar(require("io-ts"));
28
+ const baseStakeIntent_1 = require("./baseStakeIntent");
29
+ const amount_1 = require("./amount");
30
+ const intentType_1 = require("./intentType");
31
+ const utils_1 = require("../../../utils");
32
+ const recipientEntry_1 = require("./recipientEntry");
33
+ exports.EthLikeUndelegateIntent = t.intersection([
34
+ baseStakeIntent_1.BaseStakeIntent,
35
+ t.type({
36
+ intentType: intentType_1.intentTypes.undelegate,
37
+ validatorAddress: t.string,
38
+ amount: amount_1.Amount,
39
+ }),
40
+ t.partial({
41
+ recipients: (0, utils_1.Optional)(t.array(recipientEntry_1.RecipientEntry)),
42
+ }),
43
+ ]);
44
+ //# sourceMappingURL=ethLikeUndelegateIntent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethLikeUndelegateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/ethLikeUndelegateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uDAAoD;AACpD,qCAAkC;AAClC,6CAA2C;AAC3C,0CAA0C;AAC1C,qDAAkD;AAYrC,QAAA,uBAAuB,GAAG,CAAC,CAAC,YAAY,CAAC;IACpD,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,UAAU;QAClC,gBAAgB,EAAE,CAAC,CAAC,MAAM;QAC1B,MAAM,EAAE,eAAM;KACf,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,+BAAc,CAAC,CAAC;KAC9C,CAAC;CACH,CAAC,CAAC"}
@@ -52,6 +52,9 @@ export * from "./ethFillNonceIntent";
52
52
  export * from "./ethPaymentIntent";
53
53
  export * from "./ethStakingIntent";
54
54
  export * from "./ethTransferTokenIntent";
55
+ export * from "./ethLikeDelegateIntent";
56
+ export * from "./ethLikeUndelegateIntent";
57
+ export * from "./ethLikeClaimIntent";
55
58
  export * from "./feeOption";
56
59
  export * from "./feeOptionFeeType";
57
60
  export * from "./feeOptionFormula";
@@ -68,6 +68,9 @@ __exportStar(require("./ethFillNonceIntent"), exports);
68
68
  __exportStar(require("./ethPaymentIntent"), exports);
69
69
  __exportStar(require("./ethStakingIntent"), exports);
70
70
  __exportStar(require("./ethTransferTokenIntent"), exports);
71
+ __exportStar(require("./ethLikeDelegateIntent"), exports);
72
+ __exportStar(require("./ethLikeUndelegateIntent"), exports);
73
+ __exportStar(require("./ethLikeClaimIntent"), exports);
71
74
  __exportStar(require("./feeOption"), exports);
72
75
  __exportStar(require("./feeOptionFeeType"), exports);
73
76
  __exportStar(require("./feeOptionFormula"), 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,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,oDAAkC;AAClC,gEAA8C;AAC9C,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,kDAAgC;AAChC,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,wDAAsC;AACtC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,yDAAuC;AACvC,mDAAiC"}
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,gEAA8C;AAC9C,sDAAoC;AACpC,+DAA6C;AAC7C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,wDAAsC;AACtC,yDAAuC;AACvC,+DAA6C;AAC7C,kDAAgC;AAChC,yDAAuC;AACvC,2DAAyC;AACzC,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,6CAA2B;AAC3B,qDAAmC;AACnC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,0DAAwC;AACxC,4DAA0C;AAC1C,uDAAqC;AACrC,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,oDAAkC;AAClC,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,oDAAkC;AAClC,sDAAoC;AACpC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,mDAAiC;AACjC,yEAAuD;AACvD,yDAAuC;AACvC,0EAAwD;AACxD,wDAAsC;AACtC,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,4DAA0C;AAC1C,gDAA8B;AAC9B,+DAA6C;AAC7C,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,qEAAmD;AACnD,8CAA4B;AAC5B,oDAAkC;AAClC,wDAAsC;AACtC,4DAA0C;AAC1C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uEAAqD;AACrD,yDAAuC;AACvC,mDAAiC"}
@@ -3508,6 +3508,220 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
3508
3508
  calldata: t.StringC;
3509
3509
  }>]>, t.TypeC<{
3510
3510
  intentType: t.LiteralC<"stakeClaimRewards">;
3511
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3512
+ intentType: t.KeyofC<{
3513
+ payment: t.LiteralC<"payment">;
3514
+ transferToken: t.LiteralC<"transferToken">;
3515
+ consolidate: t.LiteralC<"consolidate">;
3516
+ consolidateToken: t.LiteralC<"consolidateToken">;
3517
+ fanout: t.LiteralC<"fanout">;
3518
+ stake: t.LiteralC<"stake">;
3519
+ unstake: t.LiteralC<"unstake">;
3520
+ delegate: t.LiteralC<"delegate">;
3521
+ undelegate: t.LiteralC<"undelegate">;
3522
+ switchValidator: t.LiteralC<"switchValidator">;
3523
+ claim: t.LiteralC<"claim">;
3524
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
3525
+ pledge: t.LiteralC<"pledge">;
3526
+ vote: t.LiteralC<"vote">;
3527
+ createAccount: t.LiteralC<"createAccount">;
3528
+ updateAccount: t.LiteralC<"updateAccount">;
3529
+ addTrustLine: t.LiteralC<"addTrustLine">;
3530
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
3531
+ signMessage: t.LiteralC<"signMessage">;
3532
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
3533
+ enableToken: t.LiteralC<"enableToken">;
3534
+ authorize: t.LiteralC<"authorize">;
3535
+ acceleration: t.LiteralC<"acceleration">;
3536
+ fillNonce: t.LiteralC<"fillNonce">;
3537
+ walletRecovery: t.LiteralC<"walletRecovery">;
3538
+ contractCall: t.LiteralC<"contractCall">;
3539
+ deactivate: t.LiteralC<"deactivate">;
3540
+ customTx: t.LiteralC<"customTx">;
3541
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3542
+ }>;
3543
+ }>, t.PartialC<{
3544
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3545
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3546
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3547
+ }>]>, t.TypeC<{
3548
+ stakingRequestId: t.StringC;
3549
+ }>]>, t.TypeC<{
3550
+ intentType: t.LiteralC<"delegate">;
3551
+ validatorAddress: t.StringC;
3552
+ amount: t.TypeC<{
3553
+ value: t.StringC;
3554
+ symbol: t.StringC;
3555
+ }>;
3556
+ }>, t.PartialC<{
3557
+ recipients: t.UnionC<[t.Type<({
3558
+ address: {
3559
+ address?: string | undefined;
3560
+ option?: {
3561
+ [x: string]: unknown;
3562
+ } | undefined;
3563
+ };
3564
+ amount: {
3565
+ value: string;
3566
+ symbol: string;
3567
+ };
3568
+ } & {
3569
+ data?: string | undefined;
3570
+ })[], ({
3571
+ address: {
3572
+ address?: string | undefined;
3573
+ option?: {
3574
+ [x: string]: unknown;
3575
+ } | undefined;
3576
+ };
3577
+ amount: {
3578
+ value: string;
3579
+ symbol: string;
3580
+ };
3581
+ } & {
3582
+ data?: string | undefined;
3583
+ })[], unknown>, t.UndefinedC]>;
3584
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3585
+ intentType: t.KeyofC<{
3586
+ payment: t.LiteralC<"payment">;
3587
+ transferToken: t.LiteralC<"transferToken">;
3588
+ consolidate: t.LiteralC<"consolidate">;
3589
+ consolidateToken: t.LiteralC<"consolidateToken">;
3590
+ fanout: t.LiteralC<"fanout">;
3591
+ stake: t.LiteralC<"stake">;
3592
+ unstake: t.LiteralC<"unstake">;
3593
+ delegate: t.LiteralC<"delegate">;
3594
+ undelegate: t.LiteralC<"undelegate">;
3595
+ switchValidator: t.LiteralC<"switchValidator">;
3596
+ claim: t.LiteralC<"claim">;
3597
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
3598
+ pledge: t.LiteralC<"pledge">;
3599
+ vote: t.LiteralC<"vote">;
3600
+ createAccount: t.LiteralC<"createAccount">;
3601
+ updateAccount: t.LiteralC<"updateAccount">;
3602
+ addTrustLine: t.LiteralC<"addTrustLine">;
3603
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
3604
+ signMessage: t.LiteralC<"signMessage">;
3605
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
3606
+ enableToken: t.LiteralC<"enableToken">;
3607
+ authorize: t.LiteralC<"authorize">;
3608
+ acceleration: t.LiteralC<"acceleration">;
3609
+ fillNonce: t.LiteralC<"fillNonce">;
3610
+ walletRecovery: t.LiteralC<"walletRecovery">;
3611
+ contractCall: t.LiteralC<"contractCall">;
3612
+ deactivate: t.LiteralC<"deactivate">;
3613
+ customTx: t.LiteralC<"customTx">;
3614
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3615
+ }>;
3616
+ }>, t.PartialC<{
3617
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3618
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3619
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3620
+ }>]>, t.TypeC<{
3621
+ stakingRequestId: t.StringC;
3622
+ }>]>, t.TypeC<{
3623
+ intentType: t.LiteralC<"undelegate">;
3624
+ validatorAddress: t.StringC;
3625
+ amount: t.TypeC<{
3626
+ value: t.StringC;
3627
+ symbol: t.StringC;
3628
+ }>;
3629
+ }>, t.PartialC<{
3630
+ recipients: t.UnionC<[t.Type<({
3631
+ address: {
3632
+ address?: string | undefined;
3633
+ option?: {
3634
+ [x: string]: unknown;
3635
+ } | undefined;
3636
+ };
3637
+ amount: {
3638
+ value: string;
3639
+ symbol: string;
3640
+ };
3641
+ } & {
3642
+ data?: string | undefined;
3643
+ })[], ({
3644
+ address: {
3645
+ address?: string | undefined;
3646
+ option?: {
3647
+ [x: string]: unknown;
3648
+ } | undefined;
3649
+ };
3650
+ amount: {
3651
+ value: string;
3652
+ symbol: string;
3653
+ };
3654
+ } & {
3655
+ data?: string | undefined;
3656
+ })[], unknown>, t.UndefinedC]>;
3657
+ }>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
3658
+ intentType: t.KeyofC<{
3659
+ payment: t.LiteralC<"payment">;
3660
+ transferToken: t.LiteralC<"transferToken">;
3661
+ consolidate: t.LiteralC<"consolidate">;
3662
+ consolidateToken: t.LiteralC<"consolidateToken">;
3663
+ fanout: t.LiteralC<"fanout">;
3664
+ stake: t.LiteralC<"stake">;
3665
+ unstake: t.LiteralC<"unstake">;
3666
+ delegate: t.LiteralC<"delegate">;
3667
+ undelegate: t.LiteralC<"undelegate">;
3668
+ switchValidator: t.LiteralC<"switchValidator">;
3669
+ claim: t.LiteralC<"claim">;
3670
+ stakeClaimRewards: t.LiteralC<"stakeClaimRewards">;
3671
+ pledge: t.LiteralC<"pledge">;
3672
+ vote: t.LiteralC<"vote">;
3673
+ createAccount: t.LiteralC<"createAccount">;
3674
+ updateAccount: t.LiteralC<"updateAccount">;
3675
+ addTrustLine: t.LiteralC<"addTrustLine">;
3676
+ removeTrustLine: t.LiteralC<"removeTrustLine">;
3677
+ signMessage: t.LiteralC<"signMessage">;
3678
+ signTypedStructuredData: t.LiteralC<"signTypedStructuredData">;
3679
+ enableToken: t.LiteralC<"enableToken">;
3680
+ authorize: t.LiteralC<"authorize">;
3681
+ acceleration: t.LiteralC<"acceleration">;
3682
+ fillNonce: t.LiteralC<"fillNonce">;
3683
+ walletRecovery: t.LiteralC<"walletRecovery">;
3684
+ contractCall: t.LiteralC<"contractCall">;
3685
+ deactivate: t.LiteralC<"deactivate">;
3686
+ customTx: t.LiteralC<"customTx">;
3687
+ closeAssociatedTokenAccount: t.LiteralC<"closeAssociatedTokenAccount">;
3688
+ }>;
3689
+ }>, t.PartialC<{
3690
+ sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3691
+ comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
3692
+ nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
3693
+ }>]>, t.TypeC<{
3694
+ stakingRequestId: t.StringC;
3695
+ }>]>, t.TypeC<{
3696
+ intentType: t.LiteralC<"stakeClaimRewards">;
3697
+ }>, t.PartialC<{
3698
+ recipients: t.UnionC<[t.Type<({
3699
+ address: {
3700
+ address?: string | undefined;
3701
+ option?: {
3702
+ [x: string]: unknown;
3703
+ } | undefined;
3704
+ };
3705
+ amount: {
3706
+ value: string;
3707
+ symbol: string;
3708
+ };
3709
+ } & {
3710
+ data?: string | undefined;
3711
+ })[], ({
3712
+ address: {
3713
+ address?: string | undefined;
3714
+ option?: {
3715
+ [x: string]: unknown;
3716
+ } | undefined;
3717
+ };
3718
+ amount: {
3719
+ value: string;
3720
+ symbol: string;
3721
+ };
3722
+ } & {
3723
+ data?: string | undefined;
3724
+ })[], unknown>, t.UndefinedC]>;
3511
3725
  }>]>, t.IntersectionC<[t.TypeC<{
3512
3726
  intentType: t.KeyofC<{
3513
3727
  payment: t.LiteralC<"payment">;
@@ -86,6 +86,9 @@ const baseStakeIntentWithCalldata_1 = require("./baseStakeIntentWithCalldata");
86
86
  const coredaoDelegateIntent_1 = require("./coredaoDelegateIntent");
87
87
  const coredaoUndelegateIntent_1 = require("./coredaoUndelegateIntent");
88
88
  const coredaoClaimIntent_1 = require("./coredaoClaimIntent");
89
+ const ethLikeDelegateIntent_1 = require("./ethLikeDelegateIntent");
90
+ const ethLikeUndelegateIntent_1 = require("./ethLikeUndelegateIntent");
91
+ const ethLikeClaimIntent_1 = require("./ethLikeClaimIntent");
89
92
  exports.TransactionIntent = t.union([
90
93
  adaConsolidateIntent_1.AdaConsolidateIntent,
91
94
  adaPaymentIntent_1.AdaPaymentIntent,
@@ -147,6 +150,9 @@ exports.TransactionIntent = t.union([
147
150
  coredaoDelegateIntent_1.CoreDaoDelegateIntent,
148
151
  coredaoUndelegateIntent_1.CoreDaoUndelegateIntent,
149
152
  coredaoClaimIntent_1.CoreDaoClaimIntent,
153
+ ethLikeDelegateIntent_1.EthLikeDelegateIntent,
154
+ ethLikeUndelegateIntent_1.EthLikeUndelegateIntent,
155
+ ethLikeClaimIntent_1.EthLikeClaimIntent,
150
156
  baseIntent_1.BaseIntent,
151
157
  ]);
152
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,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;AAE7C,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC;IACvC,2CAAoB;IACpB,mCAAgB;IAChB,uDAA0B;IAC1B,+BAAc;IACd,mCAAgB;IAChB,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;IAIlB,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,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,mEAAgE;AAChE,uEAAoE;AACpE,6DAA0D;AAE7C,QAAA,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC;IACvC,2CAAoB;IACpB,mCAAgB;IAChB,uDAA0B;IAC1B,+BAAc;IACd,mCAAgB;IAChB,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,6CAAqB;IACrB,iDAAuB;IACvB,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.1",
3
+ "version": "4.4.0",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -0,0 +1,25 @@
1
+ import * as t from "io-ts";
2
+ import { BaseStakeIntent } from "./baseStakeIntent";
3
+ import { intentTypes } from "./intentType";
4
+ import { Optional } from "../../../utils";
5
+ import { RecipientEntry } from "./recipientEntry";
6
+
7
+ /**
8
+ * @title EthLike Claim Rewards Intent
9
+ *
10
+ * @description The intent for claim rewards requests and transactions for EthLike
11
+ *
12
+ * @param {string} intentType The type of intent (always set to stakeClaimRewards)
13
+ * @param {RecipientEntry[]} recipients The recipients of the claimed rewards
14
+ */
15
+ export const EthLikeClaimIntent = t.intersection([
16
+ BaseStakeIntent,
17
+ t.type({
18
+ intentType: intentTypes.stakeClaimRewards,
19
+ }),
20
+ t.partial({
21
+ recipients: Optional(t.array(RecipientEntry)),
22
+ }),
23
+ ]);
24
+
25
+ export type EthLikeClaimIntent = t.TypeOf<typeof EthLikeClaimIntent>;
@@ -0,0 +1,30 @@
1
+ import * as t from "io-ts";
2
+ import { BaseStakeIntent } from "./baseStakeIntent";
3
+ import { intentTypes } from "./intentType";
4
+ import { Amount } from "./amount";
5
+ import { RecipientEntry } from "./recipientEntry";
6
+ import { Optional } from "../../../utils";
7
+
8
+ /**
9
+ * @title EthLike Delegate Intent
10
+ *
11
+ * @description The intent for delegate (stake) requests and transactions for EthLike
12
+ *
13
+ * @param {string} intentType The type of intent (always set to delegate)
14
+ * @param {string} validatorAddress The address of the validator
15
+ * @param {Amount} amount The amount to delegate
16
+ * @param {RecipientEntry[]} recipients The recipients of the delegated amount
17
+ */
18
+ export const EthLikeDelegateIntent = t.intersection([
19
+ BaseStakeIntent,
20
+ t.type({
21
+ intentType: intentTypes.delegate,
22
+ validatorAddress: t.string,
23
+ amount: Amount,
24
+ }),
25
+ t.partial({
26
+ recipients: Optional(t.array(RecipientEntry)),
27
+ }),
28
+ ]);
29
+
30
+ export type EthLikeDelegateIntent = t.TypeOf<typeof EthLikeDelegateIntent>;
@@ -0,0 +1,30 @@
1
+ import * as t from "io-ts";
2
+ import { BaseStakeIntent } from "./baseStakeIntent";
3
+ import { Amount } from "./amount";
4
+ import { intentTypes } from "./intentType";
5
+ import { Optional } from "../../../utils";
6
+ import { RecipientEntry } from "./recipientEntry";
7
+
8
+ /**
9
+ * @title EthLike Undelegate Intent
10
+ *
11
+ * @description The intent for undelegate (unstake) requests and transactions for Eth Like
12
+ *
13
+ * @param {string} intentType The type of intent (always set to undelegate)
14
+ * @param {string} validatorAddress The address of the validator
15
+ * @param {Amonut} amount The amount to undelegate from the validator
16
+ * @param {RecipientEntry[]} recipients The recipients of the undelegated amount
17
+ */
18
+ export const EthLikeUndelegateIntent = t.intersection([
19
+ BaseStakeIntent,
20
+ t.type({
21
+ intentType: intentTypes.undelegate,
22
+ validatorAddress: t.string,
23
+ amount: Amount,
24
+ }),
25
+ t.partial({
26
+ recipients: Optional(t.array(RecipientEntry)),
27
+ }),
28
+ ]);
29
+
30
+ export type EthLikeUndelegateIntent = t.TypeOf<typeof EthLikeUndelegateIntent>;
@@ -52,6 +52,9 @@ export * from "./ethFillNonceIntent";
52
52
  export * from "./ethPaymentIntent";
53
53
  export * from "./ethStakingIntent";
54
54
  export * from "./ethTransferTokenIntent";
55
+ export * from "./ethLikeDelegateIntent";
56
+ export * from "./ethLikeUndelegateIntent";
57
+ export * from "./ethLikeClaimIntent";
55
58
  export * from "./feeOption";
56
59
  export * from "./feeOptionFeeType";
57
60
  export * from "./feeOptionFormula";
@@ -60,6 +60,9 @@ import { BaseStakeIntentWithCalldata } from "./baseStakeIntentWithCalldata";
60
60
  import { CoreDaoDelegateIntent } from "./coredaoDelegateIntent";
61
61
  import { CoreDaoUndelegateIntent } from "./coredaoUndelegateIntent";
62
62
  import { CoreDaoClaimIntent } from "./coredaoClaimIntent";
63
+ import { EthLikeDelegateIntent } from "./ethLikeDelegateIntent";
64
+ import { EthLikeUndelegateIntent } from "./ethLikeUndelegateIntent";
65
+ import { EthLikeClaimIntent } from "./ethLikeClaimIntent";
63
66
 
64
67
  export const TransactionIntent = t.union([
65
68
  AdaConsolidateIntent,
@@ -122,6 +125,10 @@ export const TransactionIntent = t.union([
122
125
  CoreDaoDelegateIntent,
123
126
  CoreDaoUndelegateIntent,
124
127
  CoreDaoClaimIntent,
128
+ EthLikeDelegateIntent,
129
+ EthLikeUndelegateIntent,
130
+ EthLikeClaimIntent,
131
+
125
132
  /**
126
133
  * Catch all for past intents that have not been converted to codecs
127
134
  */