@bitgo/public-types 5.96.2 → 6.0.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/mpcv2/signing/eddsaSigningRound.d.ts +61 -0
- package/dist/src/schema/mpcv2/signing/eddsaSigningRound.js +75 -0
- package/dist/src/schema/mpcv2/signing/eddsaSigningRound.js.map +1 -0
- package/dist/src/schema/mpcv2/signing/index.d.ts +1 -0
- package/dist/src/schema/mpcv2/signing/index.js +1 -0
- package/dist/src/schema/mpcv2/signing/index.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +40 -26
- package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.d.ts +2 -2
- package/dist/src/schema/transactionRequest/intents/solBuildOptions.d.ts +2 -2
- package/dist/src/schema/transactionRequest/intents/solBuildOptions.js +2 -3
- package/dist/src/schema/transactionRequest/intents/solBuildOptions.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.d.ts +2 -2
- package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.d.ts +32 -5
- package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.js +18 -2
- package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +2 -2
- package/dist/src/schema/transactionRequest/intents/solCustomTxIntent.d.ts +2 -2
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +2 -2
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +2 -2
- package/dist/src/schema/transactionRequest/intents/solGoUnstakeIntent.d.ts +2 -2
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.d.ts +2 -2
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.d.ts +4 -4
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.d.ts +4 -4
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.d.ts +2 -2
- package/dist/src/schema/transactionRequest/message.d.ts +3 -0
- package/dist/src/schema/transactionRequest/transaction.d.ts +3 -0
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +92 -52
- package/dist/src/schema/transactionRequest/transactionState.d.ts +3 -0
- package/dist/src/schema/transactionRequest/transactionState.js +3 -0
- package/dist/src/schema/transactionRequest/transactionState.js.map +1 -1
- package/dist/src/schema/webhook/addWalletWebhookRequest.d.ts +2 -2
- package/dist/src/schema/webhook/enterpriseWebhooks.d.ts +3 -0
- package/dist/src/schema/webhook/organizationWebhooks.d.ts +3 -0
- package/dist/src/schema/webhook/webhook.d.ts +3 -0
- package/dist/src/utils/getAssetsFromIntent.js +13 -4
- package/dist/src/utils/getAssetsFromIntent.js.map +1 -1
- package/package.json +1 -1
- package/src/schema/mpcv2/signing/eddsaSigningRound.ts +117 -0
- package/src/schema/mpcv2/signing/index.ts +1 -0
- package/src/schema/transactionRequest/intents/solBuildOptions.ts +20 -3
- package/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.ts +94 -5
- package/src/schema/transactionRequest/transactionState.ts +3 -0
- package/src/utils/getAssetsFromIntent.ts +21 -4
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
export declare const EddsaMPCv2SignatureShareRound1Input: t.IntersectionC<[t.TypeC<{
|
|
3
|
+
type: t.UnionC<[t.LiteralC<"round1Input">, t.LiteralC<"round1Output">, t.LiteralC<"round2Input">, t.LiteralC<"round2Output">, t.LiteralC<"round3Input">]>;
|
|
4
|
+
}>, t.TypeC<{
|
|
5
|
+
type: t.LiteralC<"round1Input">;
|
|
6
|
+
data: t.TypeC<{
|
|
7
|
+
msg1: t.TypeC<{
|
|
8
|
+
message: t.StringC;
|
|
9
|
+
signature: t.StringC;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
12
|
+
}>]>;
|
|
13
|
+
export type EddsaMPCv2SignatureShareRound1Input = t.TypeOf<typeof EddsaMPCv2SignatureShareRound1Input>;
|
|
14
|
+
export declare const EddsaMPCv2SignatureShareRound1Output: t.IntersectionC<[t.TypeC<{
|
|
15
|
+
type: t.UnionC<[t.LiteralC<"round1Input">, t.LiteralC<"round1Output">, t.LiteralC<"round2Input">, t.LiteralC<"round2Output">, t.LiteralC<"round3Input">]>;
|
|
16
|
+
}>, t.TypeC<{
|
|
17
|
+
type: t.LiteralC<"round1Output">;
|
|
18
|
+
data: t.TypeC<{
|
|
19
|
+
msg1: t.TypeC<{
|
|
20
|
+
message: t.StringC;
|
|
21
|
+
signature: t.StringC;
|
|
22
|
+
}>;
|
|
23
|
+
}>;
|
|
24
|
+
}>]>;
|
|
25
|
+
export type EddsaMPCv2SignatureShareRound1Output = t.TypeOf<typeof EddsaMPCv2SignatureShareRound1Output>;
|
|
26
|
+
export declare const EddsaMPCv2SignatureShareRound2Input: t.IntersectionC<[t.TypeC<{
|
|
27
|
+
type: t.UnionC<[t.LiteralC<"round1Input">, t.LiteralC<"round1Output">, t.LiteralC<"round2Input">, t.LiteralC<"round2Output">, t.LiteralC<"round3Input">]>;
|
|
28
|
+
}>, t.TypeC<{
|
|
29
|
+
type: t.LiteralC<"round2Input">;
|
|
30
|
+
data: t.TypeC<{
|
|
31
|
+
msg2: t.TypeC<{
|
|
32
|
+
message: t.StringC;
|
|
33
|
+
signature: t.StringC;
|
|
34
|
+
}>;
|
|
35
|
+
}>;
|
|
36
|
+
}>]>;
|
|
37
|
+
export type EddsaMPCv2SignatureShareRound2Input = t.TypeOf<typeof EddsaMPCv2SignatureShareRound2Input>;
|
|
38
|
+
export declare const EddsaMPCv2SignatureShareRound2Output: t.IntersectionC<[t.TypeC<{
|
|
39
|
+
type: t.UnionC<[t.LiteralC<"round1Input">, t.LiteralC<"round1Output">, t.LiteralC<"round2Input">, t.LiteralC<"round2Output">, t.LiteralC<"round3Input">]>;
|
|
40
|
+
}>, t.TypeC<{
|
|
41
|
+
type: t.LiteralC<"round2Output">;
|
|
42
|
+
data: t.TypeC<{
|
|
43
|
+
msg2: t.TypeC<{
|
|
44
|
+
message: t.StringC;
|
|
45
|
+
signature: t.StringC;
|
|
46
|
+
}>;
|
|
47
|
+
}>;
|
|
48
|
+
}>]>;
|
|
49
|
+
export type EddsaMPCv2SignatureShareRound2Output = t.TypeOf<typeof EddsaMPCv2SignatureShareRound2Output>;
|
|
50
|
+
export declare const EddsaMPCv2SignatureShareRound3Input: t.IntersectionC<[t.TypeC<{
|
|
51
|
+
type: t.UnionC<[t.LiteralC<"round1Input">, t.LiteralC<"round1Output">, t.LiteralC<"round2Input">, t.LiteralC<"round2Output">, t.LiteralC<"round3Input">]>;
|
|
52
|
+
}>, t.TypeC<{
|
|
53
|
+
type: t.LiteralC<"round3Input">;
|
|
54
|
+
data: t.TypeC<{
|
|
55
|
+
msg3: t.TypeC<{
|
|
56
|
+
message: t.StringC;
|
|
57
|
+
signature: t.StringC;
|
|
58
|
+
}>;
|
|
59
|
+
}>;
|
|
60
|
+
}>]>;
|
|
61
|
+
export type EddsaMPCv2SignatureShareRound3Input = t.TypeOf<typeof EddsaMPCv2SignatureShareRound3Input>;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.EddsaMPCv2SignatureShareRound3Input = exports.EddsaMPCv2SignatureShareRound2Output = exports.EddsaMPCv2SignatureShareRound2Input = exports.EddsaMPCv2SignatureShareRound1Output = exports.EddsaMPCv2SignatureShareRound1Input = void 0;
|
|
27
|
+
const t = __importStar(require("io-ts"));
|
|
28
|
+
const common_1 = require("../common");
|
|
29
|
+
const signingRound_1 = require("./signingRound");
|
|
30
|
+
exports.EddsaMPCv2SignatureShareRound1Input = t.intersection([
|
|
31
|
+
signingRound_1.MPCv2SignatureShareBase,
|
|
32
|
+
t.type({
|
|
33
|
+
type: t.literal("round1Input"),
|
|
34
|
+
data: t.type({
|
|
35
|
+
msg1: common_1.EddsaMPCv2SignedMessage,
|
|
36
|
+
}),
|
|
37
|
+
}, "EddsaMPCv2SignatureShareRound1Input"),
|
|
38
|
+
]);
|
|
39
|
+
exports.EddsaMPCv2SignatureShareRound1Output = t.intersection([
|
|
40
|
+
signingRound_1.MPCv2SignatureShareBase,
|
|
41
|
+
t.type({
|
|
42
|
+
type: t.literal("round1Output"),
|
|
43
|
+
data: t.type({
|
|
44
|
+
msg1: common_1.EddsaMPCv2SignedMessage,
|
|
45
|
+
}),
|
|
46
|
+
}, "EddsaMPCv2SignatureShareRound1Output"),
|
|
47
|
+
]);
|
|
48
|
+
exports.EddsaMPCv2SignatureShareRound2Input = t.intersection([
|
|
49
|
+
signingRound_1.MPCv2SignatureShareBase,
|
|
50
|
+
t.type({
|
|
51
|
+
type: t.literal("round2Input"),
|
|
52
|
+
data: t.type({
|
|
53
|
+
msg2: common_1.EddsaMPCv2SignedMessage,
|
|
54
|
+
}),
|
|
55
|
+
}, "EddsaMPCv2SignatureShareRound2Input"),
|
|
56
|
+
]);
|
|
57
|
+
exports.EddsaMPCv2SignatureShareRound2Output = t.intersection([
|
|
58
|
+
signingRound_1.MPCv2SignatureShareBase,
|
|
59
|
+
t.type({
|
|
60
|
+
type: t.literal("round2Output"),
|
|
61
|
+
data: t.type({
|
|
62
|
+
msg2: common_1.EddsaMPCv2SignedMessage,
|
|
63
|
+
}),
|
|
64
|
+
}, "EddsaMPCv2SignatureShareRound2Output"),
|
|
65
|
+
]);
|
|
66
|
+
exports.EddsaMPCv2SignatureShareRound3Input = t.intersection([
|
|
67
|
+
signingRound_1.MPCv2SignatureShareBase,
|
|
68
|
+
t.type({
|
|
69
|
+
type: t.literal("round3Input"),
|
|
70
|
+
data: t.type({
|
|
71
|
+
msg3: common_1.EddsaMPCv2SignedMessage,
|
|
72
|
+
}),
|
|
73
|
+
}, "EddsaMPCv2SignatureShareRound3Input"),
|
|
74
|
+
]);
|
|
75
|
+
//# sourceMappingURL=eddsaSigningRound.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eddsaSigningRound.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/signing/eddsaSigningRound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,sCAAoD;AACpD,iDAAyD;AAQ5C,QAAA,mCAAmC,GAAG,CAAC,CAAC,YAAY,CAAC;IAChE,sCAAuB;IACvB,CAAC,CAAC,IAAI,CACJ;QACE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;QAC9B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,gCAAuB;SAC9B,CAAC;KACH,EACD,qCAAqC,CACtC;CACF,CAAC,CAAC;AAYU,QAAA,oCAAoC,GAAG,CAAC,CAAC,YAAY,CAAC;IACjE,sCAAuB;IACvB,CAAC,CAAC,IAAI,CACJ;QACE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QAC/B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,gCAAuB;SAC9B,CAAC;KACH,EACD,sCAAsC,CACvC;CACF,CAAC,CAAC;AAYU,QAAA,mCAAmC,GAAG,CAAC,CAAC,YAAY,CAAC;IAChE,sCAAuB;IACvB,CAAC,CAAC,IAAI,CACJ;QACE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;QAC9B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,gCAAuB;SAC9B,CAAC;KACH,EACD,qCAAqC,CACtC;CACF,CAAC,CAAC;AAYU,QAAA,oCAAoC,GAAG,CAAC,CAAC,YAAY,CAAC;IACjE,sCAAuB;IACvB,CAAC,CAAC,IAAI,CACJ;QACE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;QAC/B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,gCAAuB;SAC9B,CAAC;KACH,EACD,sCAAsC,CACvC;CACF,CAAC,CAAC;AAWU,QAAA,mCAAmC,GAAG,CAAC,CAAC,YAAY,CAAC;IAChE,sCAAuB;IACvB,CAAC,CAAC,IAAI,CACJ;QACE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;QAC9B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,gCAAuB;SAC9B,CAAC;KACH,EACD,qCAAqC,CACtC;CACF,CAAC,CAAC"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./mpcv2SigningState"), exports);
|
|
18
18
|
__exportStar(require("./signingRound"), exports);
|
|
19
|
+
__exportStar(require("./eddsaSigningRound"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/signing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/schema/mpcv2/signing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iDAA+B;AAC/B,sDAAoC"}
|
|
@@ -5058,8 +5058,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
5058
5058
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5059
5059
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
5060
5060
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5061
|
-
}>, t.
|
|
5062
|
-
memo: t.
|
|
5061
|
+
}>, t.PartialC<{
|
|
5062
|
+
memo: t.StringC;
|
|
5063
5063
|
}>]>, t.TypeC<{
|
|
5064
5064
|
intentType: t.LiteralC<"authorize">;
|
|
5065
5065
|
transactionMessage: t.StringC;
|
|
@@ -5145,8 +5145,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
5145
5145
|
}, unknown>, t.UndefinedC]>;
|
|
5146
5146
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
5147
5147
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5148
|
-
}>, t.
|
|
5149
|
-
memo: t.
|
|
5148
|
+
}>, t.PartialC<{
|
|
5149
|
+
memo: t.StringC;
|
|
5150
5150
|
}>]>, t.TypeC<{
|
|
5151
5151
|
amount: t.TypeC<{
|
|
5152
5152
|
value: t.StringC;
|
|
@@ -5215,12 +5215,26 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
5215
5215
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5216
5216
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
5217
5217
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5218
|
-
}>, t.
|
|
5219
|
-
memo: t.
|
|
5218
|
+
}>, t.PartialC<{
|
|
5219
|
+
memo: t.StringC;
|
|
5220
5220
|
}>]>, t.TypeC<{
|
|
5221
5221
|
intentType: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
5222
|
-
|
|
5223
|
-
|
|
5222
|
+
recipients: t.RefinementC<t.ArrayC<t.RefinementC<t.IntersectionC<[t.TypeC<{
|
|
5223
|
+
address: t.PartialC<{
|
|
5224
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
5225
|
+
option: t.UnionC<[t.Type<{
|
|
5226
|
+
[x: string]: unknown;
|
|
5227
|
+
}, {
|
|
5228
|
+
[x: string]: unknown;
|
|
5229
|
+
}, unknown>, t.UndefinedC]>;
|
|
5230
|
+
}>;
|
|
5231
|
+
amount: t.TypeC<{
|
|
5232
|
+
value: t.StringC;
|
|
5233
|
+
symbol: t.StringC;
|
|
5234
|
+
}>;
|
|
5235
|
+
}>, t.PartialC<{
|
|
5236
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
5237
|
+
}>]>>>>;
|
|
5224
5238
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
5225
5239
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5226
5240
|
}>, t.TypeC<{
|
|
@@ -5349,8 +5363,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
5349
5363
|
}>]>>;
|
|
5350
5364
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
5351
5365
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5352
|
-
}>, t.
|
|
5353
|
-
memo: t.
|
|
5366
|
+
}>, t.PartialC<{
|
|
5367
|
+
memo: t.StringC;
|
|
5354
5368
|
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
5355
5369
|
intentType: t.KeyofC<{
|
|
5356
5370
|
payment: t.LiteralC<"payment">;
|
|
@@ -5412,8 +5426,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
5412
5426
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5413
5427
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
5414
5428
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5415
|
-
}>, t.
|
|
5416
|
-
memo: t.
|
|
5429
|
+
}>, t.PartialC<{
|
|
5430
|
+
memo: t.StringC;
|
|
5417
5431
|
}>]>, t.TypeC<{
|
|
5418
5432
|
intentType: t.LiteralC<"customTx">;
|
|
5419
5433
|
solInstructions: t.ArrayC<t.TypeC<{
|
|
@@ -5486,8 +5500,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
5486
5500
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5487
5501
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
5488
5502
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5489
|
-
}>, t.
|
|
5490
|
-
memo: t.
|
|
5503
|
+
}>, t.PartialC<{
|
|
5504
|
+
memo: t.StringC;
|
|
5491
5505
|
}>]>, t.TypeC<{
|
|
5492
5506
|
intentType: t.LiteralC<"deactivate">;
|
|
5493
5507
|
stakingAddresses: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
|
|
@@ -5553,8 +5567,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
5553
5567
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5554
5568
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
5555
5569
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5556
|
-
}>, t.
|
|
5557
|
-
memo: t.
|
|
5570
|
+
}>, t.PartialC<{
|
|
5571
|
+
memo: t.StringC;
|
|
5558
5572
|
}>]>, t.TypeC<{
|
|
5559
5573
|
intentType: t.LiteralC<"delegate">;
|
|
5560
5574
|
validatorAddress: t.StringC;
|
|
@@ -5641,8 +5655,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
5641
5655
|
}>]>>;
|
|
5642
5656
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
5643
5657
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5644
|
-
}>, t.
|
|
5645
|
-
memo: t.
|
|
5658
|
+
}>, t.PartialC<{
|
|
5659
|
+
memo: t.StringC;
|
|
5646
5660
|
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
5647
5661
|
intentType: t.KeyofC<{
|
|
5648
5662
|
payment: t.LiteralC<"payment">;
|
|
@@ -5726,8 +5740,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
5726
5740
|
isTestTransaction: t.BooleanC;
|
|
5727
5741
|
}>]>]>, t.IntersectionC<[t.PartialC<{
|
|
5728
5742
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5729
|
-
}>, t.
|
|
5730
|
-
memo: t.
|
|
5743
|
+
}>, t.PartialC<{
|
|
5744
|
+
memo: t.StringC;
|
|
5731
5745
|
}>]>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
5732
5746
|
intentType: t.KeyofC<{
|
|
5733
5747
|
payment: t.LiteralC<"payment">;
|
|
@@ -5795,8 +5809,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
5795
5809
|
intentType: t.LiteralC<"stake">;
|
|
5796
5810
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
5797
5811
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5798
|
-
}>, t.
|
|
5799
|
-
memo: t.
|
|
5812
|
+
}>, t.PartialC<{
|
|
5813
|
+
memo: t.StringC;
|
|
5800
5814
|
}>]>, t.TypeC<{
|
|
5801
5815
|
amount: t.TypeC<{
|
|
5802
5816
|
value: t.StringC;
|
|
@@ -5873,8 +5887,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
5873
5887
|
intentType: t.LiteralC<"unstake">;
|
|
5874
5888
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
5875
5889
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5876
|
-
}>, t.
|
|
5877
|
-
memo: t.
|
|
5890
|
+
}>, t.PartialC<{
|
|
5891
|
+
memo: t.StringC;
|
|
5878
5892
|
}>]>, t.TypeC<{
|
|
5879
5893
|
stakingAddress: t.StringC;
|
|
5880
5894
|
}>, t.PartialC<{
|
|
@@ -5982,8 +5996,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
5982
5996
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5983
5997
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
5984
5998
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5985
|
-
}>, t.
|
|
5986
|
-
memo: t.
|
|
5999
|
+
}>, t.PartialC<{
|
|
6000
|
+
memo: t.StringC;
|
|
5987
6001
|
}>]>, t.TypeC<{
|
|
5988
6002
|
intentType: t.LiteralC<"customTx">;
|
|
5989
6003
|
solVersionedTransactionData: t.IntersectionC<[t.TypeC<{
|
|
@@ -60,8 +60,8 @@ export declare const SolAuthorizeIntent: t.IntersectionC<[t.IntersectionC<[t.Typ
|
|
|
60
60
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
61
61
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
62
62
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
63
|
-
}>, t.
|
|
64
|
-
memo: t.
|
|
63
|
+
}>, t.PartialC<{
|
|
64
|
+
memo: t.StringC;
|
|
65
65
|
}>]>, t.TypeC<{
|
|
66
66
|
intentType: t.LiteralC<"authorize">;
|
|
67
67
|
transactionMessage: t.StringC;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
export declare const SolBuildOptions: t.IntersectionC<[t.PartialC<{
|
|
3
3
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
4
|
-
}>, t.
|
|
5
|
-
memo: t.
|
|
4
|
+
}>, t.PartialC<{
|
|
5
|
+
memo: t.StringC;
|
|
6
6
|
}>]>;
|
|
7
7
|
export type SolBuildOptions = t.TypeOf<typeof SolBuildOptions>;
|
|
@@ -25,12 +25,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.SolBuildOptions = void 0;
|
|
27
27
|
const t = __importStar(require("io-ts"));
|
|
28
|
-
const utils_1 = require("../../../utils");
|
|
29
28
|
const accountBaseBuildOptions_1 = require("./accountBaseBuildOptions");
|
|
30
29
|
exports.SolBuildOptions = t.intersection([
|
|
31
30
|
accountBaseBuildOptions_1.AccountBaseBuildOptions,
|
|
32
|
-
t.
|
|
33
|
-
memo:
|
|
31
|
+
t.partial({
|
|
32
|
+
memo: t.string,
|
|
34
33
|
}),
|
|
35
34
|
]);
|
|
36
35
|
//# sourceMappingURL=solBuildOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solBuildOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solBuildOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"solBuildOptions.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solBuildOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uEAAoE;AAoBvD,QAAA,eAAe,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5C,iDAAuB;IACvB,CAAC,CAAC,OAAO,CAAC;QACR,IAAI,EAAE,CAAC,CAAC,MAAM;KACf,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -74,8 +74,8 @@ export declare const SolClaimIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
|
74
74
|
}, unknown>, t.UndefinedC]>;
|
|
75
75
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
76
76
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
77
|
-
}>, t.
|
|
78
|
-
memo: t.
|
|
77
|
+
}>, t.PartialC<{
|
|
78
|
+
memo: t.StringC;
|
|
79
79
|
}>]>, t.TypeC<{
|
|
80
80
|
amount: t.TypeC<{
|
|
81
81
|
value: t.StringC;
|
package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.d.ts
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
|
+
import type { Address } from "./address";
|
|
3
|
+
export type SolCloseAssociatedTokenAccountRecipient = {
|
|
4
|
+
address: Address & {
|
|
5
|
+
address: string;
|
|
6
|
+
};
|
|
7
|
+
amount: {
|
|
8
|
+
value: "0";
|
|
9
|
+
symbol: string;
|
|
10
|
+
};
|
|
11
|
+
data?: string | undefined;
|
|
12
|
+
};
|
|
2
13
|
export declare const SolCloseAssociatedTokenAccountIntent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
3
14
|
intentType: t.KeyofC<{
|
|
4
15
|
payment: t.LiteralC<"payment">;
|
|
@@ -60,11 +71,27 @@ export declare const SolCloseAssociatedTokenAccountIntent: t.IntersectionC<[t.In
|
|
|
60
71
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
61
72
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
62
73
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
63
|
-
}>, t.
|
|
64
|
-
memo: t.
|
|
74
|
+
}>, t.PartialC<{
|
|
75
|
+
memo: t.StringC;
|
|
65
76
|
}>]>, t.TypeC<{
|
|
66
77
|
intentType: t.LiteralC<"closeAssociatedTokenAccount">;
|
|
67
|
-
|
|
68
|
-
|
|
78
|
+
recipients: t.RefinementC<t.ArrayC<t.RefinementC<t.IntersectionC<[t.TypeC<{
|
|
79
|
+
address: t.PartialC<{
|
|
80
|
+
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
81
|
+
option: t.UnionC<[t.Type<{
|
|
82
|
+
[x: string]: unknown;
|
|
83
|
+
}, {
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
}, unknown>, t.UndefinedC]>;
|
|
86
|
+
}>;
|
|
87
|
+
amount: t.TypeC<{
|
|
88
|
+
value: t.StringC;
|
|
89
|
+
symbol: t.StringC;
|
|
90
|
+
}>;
|
|
91
|
+
}>, t.PartialC<{
|
|
92
|
+
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
93
|
+
}>]>>>>;
|
|
69
94
|
}>]>;
|
|
70
|
-
export type SolCloseAssociatedTokenAccountIntent = t.TypeOf<typeof SolCloseAssociatedTokenAccountIntent
|
|
95
|
+
export type SolCloseAssociatedTokenAccountIntent = Omit<t.TypeOf<typeof SolCloseAssociatedTokenAccountIntent>, "recipients"> & {
|
|
96
|
+
recipients: SolCloseAssociatedTokenAccountRecipient[];
|
|
97
|
+
};
|
|
@@ -27,14 +27,30 @@ exports.SolCloseAssociatedTokenAccountIntent = 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 recipientEntry_1 = require("./recipientEntry");
|
|
30
31
|
const solBuildOptions_1 = require("./solBuildOptions");
|
|
32
|
+
function isSolCloseAssociatedTokenAccountRecipient(recipient) {
|
|
33
|
+
if (recipient.amount.value !== "0") {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
const recipientRecord = recipient;
|
|
37
|
+
if ("tokenName" in recipientRecord || "tokenData" in recipientRecord) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
const addressFields = recipient.address;
|
|
41
|
+
if (typeof addressFields?.address !== "string") {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
const solCloseAssociatedTokenAccountRecipientEntry = t.refinement(recipientEntry_1.RecipientEntry, isSolCloseAssociatedTokenAccountRecipient, "SolCloseAssociatedTokenAccountRecipientEntry");
|
|
47
|
+
const solCloseAssociatedTokenAccountRecipients = t.refinement(t.array(solCloseAssociatedTokenAccountRecipientEntry), (recipients) => recipients.length > 0, "SolCloseAssociatedTokenAccountRecipients");
|
|
31
48
|
exports.SolCloseAssociatedTokenAccountIntent = t.intersection([
|
|
32
49
|
baseIntent_1.BaseIntent,
|
|
33
50
|
solBuildOptions_1.SolBuildOptions,
|
|
34
51
|
t.type({
|
|
35
52
|
intentType: intentType_1.intentTypes.closeAssociatedTokenAccount,
|
|
36
|
-
|
|
37
|
-
destinationAddress: t.string,
|
|
53
|
+
recipients: solCloseAssociatedTokenAccountRecipients,
|
|
38
54
|
}),
|
|
39
55
|
]);
|
|
40
56
|
//# sourceMappingURL=solCloseAssociatedTokenAccountIntent.js.map
|
package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solCloseAssociatedTokenAccountIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;
|
|
1
|
+
{"version":3,"file":"solCloseAssociatedTokenAccountIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAE3B,6CAA0C;AAC1C,6CAA2C;AAC3C,qDAAkD;AAClD,uDAAoD;AAoCpD,SAAS,yCAAyC,CAChD,SAAyB;IAEzB,IAAI,SAAS,CAAC,MAAM,CAAC,KAAK,KAAK,GAAG,EAAE,CAAC;QACnC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,eAAe,GAAG,SAAoC,CAAC;IAG7D,IAAI,WAAW,IAAI,eAAe,IAAI,WAAW,IAAI,eAAe,EAAE,CAAC;QACrE,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,aAAa,GAAG,SAAS,CAAC,OAAgC,CAAC;IACjE,IAAI,OAAO,aAAa,EAAE,OAAO,KAAK,QAAQ,EAAE,CAAC;QAC/C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAWD,MAAM,4CAA4C,GAAG,CAAC,CAAC,UAAU,CAC/D,+BAAc,EACd,yCAAyC,EACzC,8CAA8C,CAC/C,CAAC;AAEF,MAAM,wCAAwC,GAAG,CAAC,CAAC,UAAU,CAC3D,CAAC,CAAC,KAAK,CAAC,4CAA4C,CAAC,EACrD,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EACrC,0CAA0C,CAC3C,CAAC;AAWW,QAAA,oCAAoC,GAAG,CAAC,CAAC,YAAY,CAAC;IACjE,uBAAU;IACV,iCAAe;IACf,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,2BAA2B;QACnD,UAAU,EAAE,wCAAwC;KACrD,CAAC;CACH,CAAC,CAAC"}
|
package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export declare const SolCreateAssociatedTokenAccountIntent: t.IntersectionC<[t.I
|
|
|
67
67
|
}>]>>;
|
|
68
68
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
69
69
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
70
|
-
}>, t.
|
|
71
|
-
memo: t.
|
|
70
|
+
}>, t.PartialC<{
|
|
71
|
+
memo: t.StringC;
|
|
72
72
|
}>]>]>;
|
|
73
73
|
export type SolCreateAssociatedTokenAccountIntent = t.TypeOf<typeof SolCreateAssociatedTokenAccountIntent>;
|
|
@@ -60,8 +60,8 @@ export declare const SolCustomTxIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
|
60
60
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
61
61
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
62
62
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
63
|
-
}>, t.
|
|
64
|
-
memo: t.
|
|
63
|
+
}>, t.PartialC<{
|
|
64
|
+
memo: t.StringC;
|
|
65
65
|
}>]>, t.TypeC<{
|
|
66
66
|
intentType: t.LiteralC<"customTx">;
|
|
67
67
|
solInstructions: t.ArrayC<t.TypeC<{
|
|
@@ -60,8 +60,8 @@ export declare const SolDeactivateIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
|
60
60
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
61
61
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
62
62
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
63
|
-
}>, t.
|
|
64
|
-
memo: t.
|
|
63
|
+
}>, t.PartialC<{
|
|
64
|
+
memo: t.StringC;
|
|
65
65
|
}>]>, t.TypeC<{
|
|
66
66
|
intentType: t.LiteralC<"deactivate">;
|
|
67
67
|
stakingAddresses: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
|
|
@@ -60,8 +60,8 @@ export declare const SolDelegateIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
|
60
60
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
61
61
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
62
62
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
63
|
-
}>, t.
|
|
64
|
-
memo: t.
|
|
63
|
+
}>, t.PartialC<{
|
|
64
|
+
memo: t.StringC;
|
|
65
65
|
}>]>, t.TypeC<{
|
|
66
66
|
intentType: t.LiteralC<"delegate">;
|
|
67
67
|
validatorAddress: t.StringC;
|
|
@@ -80,7 +80,7 @@ export declare const SolGoUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
|
80
80
|
}>]>>;
|
|
81
81
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
82
82
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
83
|
-
}>, t.
|
|
84
|
-
memo: t.
|
|
83
|
+
}>, t.PartialC<{
|
|
84
|
+
memo: t.StringC;
|
|
85
85
|
}>]>]>;
|
|
86
86
|
export type SolGoUnstakeIntent = t.TypeOf<typeof SolGoUnstakeIntent>;
|
|
@@ -82,7 +82,7 @@ export declare const SolPaymentIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
|
82
82
|
isTestTransaction: t.BooleanC;
|
|
83
83
|
}>]>]>, t.IntersectionC<[t.PartialC<{
|
|
84
84
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
85
|
-
}>, t.
|
|
86
|
-
memo: t.
|
|
85
|
+
}>, t.PartialC<{
|
|
86
|
+
memo: t.StringC;
|
|
87
87
|
}>]>]>;
|
|
88
88
|
export type SolPaymentIntent = t.TypeOf<typeof SolPaymentIntent>;
|
|
@@ -66,8 +66,8 @@ export declare const SolStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Interse
|
|
|
66
66
|
intentType: t.LiteralC<"stake">;
|
|
67
67
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
68
68
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
69
|
-
}>, t.
|
|
70
|
-
memo: t.
|
|
69
|
+
}>, t.PartialC<{
|
|
70
|
+
memo: t.StringC;
|
|
71
71
|
}>]>, t.TypeC<{
|
|
72
72
|
amount: t.TypeC<{
|
|
73
73
|
value: t.StringC;
|
|
@@ -146,8 +146,8 @@ export declare const SolJitoStakeIntent: t.IntersectionC<[t.IntersectionC<[t.Int
|
|
|
146
146
|
intentType: t.LiteralC<"stake">;
|
|
147
147
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
148
148
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
149
|
-
}>, t.
|
|
150
|
-
memo: t.
|
|
149
|
+
}>, t.PartialC<{
|
|
150
|
+
memo: t.StringC;
|
|
151
151
|
}>]>, t.TypeC<{
|
|
152
152
|
amount: t.TypeC<{
|
|
153
153
|
value: t.StringC;
|
|
@@ -66,8 +66,8 @@ export declare const SolUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.Inter
|
|
|
66
66
|
intentType: t.LiteralC<"unstake">;
|
|
67
67
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
68
68
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
69
|
-
}>, t.
|
|
70
|
-
memo: t.
|
|
69
|
+
}>, t.PartialC<{
|
|
70
|
+
memo: t.StringC;
|
|
71
71
|
}>]>, t.TypeC<{
|
|
72
72
|
stakingAddress: t.StringC;
|
|
73
73
|
}>, t.PartialC<{
|
|
@@ -183,8 +183,8 @@ export declare const SolJitoUnstakeIntent: t.IntersectionC<[t.IntersectionC<[t.I
|
|
|
183
183
|
intentType: t.LiteralC<"unstake">;
|
|
184
184
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
185
185
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
186
|
-
}>, t.
|
|
187
|
-
memo: t.
|
|
186
|
+
}>, t.PartialC<{
|
|
187
|
+
memo: t.StringC;
|
|
188
188
|
}>]>, t.TypeC<{
|
|
189
189
|
stakingAddress: t.StringC;
|
|
190
190
|
}>, t.PartialC<{
|
|
@@ -60,8 +60,8 @@ export declare const SolVersionedCustomTxIntent: t.IntersectionC<[t.Intersection
|
|
|
60
60
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
61
61
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
62
62
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
63
|
-
}>, t.
|
|
64
|
-
memo: t.
|
|
63
|
+
}>, t.PartialC<{
|
|
64
|
+
memo: t.StringC;
|
|
65
65
|
}>]>, t.TypeC<{
|
|
66
66
|
intentType: t.LiteralC<"customTx">;
|
|
67
67
|
solVersionedTransactionData: t.IntersectionC<[t.TypeC<{
|
|
@@ -9,6 +9,9 @@ export declare const Message: t.IntersectionC<[t.TypeC<{
|
|
|
9
9
|
ecdsaMPCv2Round1: number;
|
|
10
10
|
ecdsaMPCv2Round2: number;
|
|
11
11
|
ecdsaMPCv2Round3: number;
|
|
12
|
+
eddsaMPCv2Round1: number;
|
|
13
|
+
eddsaMPCv2Round2: number;
|
|
14
|
+
eddsaMPCv2Round3: number;
|
|
12
15
|
readyToCombineShares: number;
|
|
13
16
|
signed: number;
|
|
14
17
|
held: number;
|
|
@@ -9,6 +9,9 @@ export declare const Transaction: t.IntersectionC<[t.TypeC<{
|
|
|
9
9
|
ecdsaMPCv2Round1: number;
|
|
10
10
|
ecdsaMPCv2Round2: number;
|
|
11
11
|
ecdsaMPCv2Round3: number;
|
|
12
|
+
eddsaMPCv2Round1: number;
|
|
13
|
+
eddsaMPCv2Round2: number;
|
|
14
|
+
eddsaMPCv2Round3: number;
|
|
12
15
|
readyToCombineShares: number;
|
|
13
16
|
signed: number;
|
|
14
17
|
held: number;
|