@bitgo/public-types 4.30.0 → 5.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/transactionRequest/intents/accountBaseConsolidateIntent.d.ts +24 -0
- package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/adaConsolidateIntent.d.ts +24 -0
- package/dist/src/schema/transactionRequest/intents/consolidateTokenIntent.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/dotConsolidateIntent.d.ts +24 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateIntent.d.ts +24 -0
- package/dist/src/schema/transactionRequest/intents/ethConsolidateTokenIntent.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/ethTransferTokenIntent.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +170 -2
- package/dist/src/schema/transactionRequest/intents/solConsolidateIntent.d.ts +24 -0
- package/dist/src/schema/transactionRequest/intents/substrateConsolidateIntent.d.ts +24 -0
- package/dist/src/schema/transactionRequest/intents/suiConsolidateIntent.d.ts +24 -0
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntry.d.ts +1 -1
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntry.js +1 -1
- package/dist/src/schema/transactionRequest/intents/tokenRecipientEntry.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/tonConsolidateIntent.d.ts +24 -0
- package/dist/src/schema/transactionRequest/intents/transferTokenIntent.d.ts +1 -1
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/accountBaseConsolidateIntent.ts +2 -2
- package/src/schema/transactionRequest/intents/tokenRecipientEntry.ts +1 -1
@@ -20,6 +20,18 @@ export declare const AccountBaseConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
|
20
20
|
};
|
21
21
|
} & {
|
22
22
|
data?: string | undefined;
|
23
|
+
} & {
|
24
|
+
tokenData?: ({
|
25
|
+
tokenQuantity: string;
|
26
|
+
tokenType: string;
|
27
|
+
} & {
|
28
|
+
tokenId?: string | undefined;
|
29
|
+
} & {
|
30
|
+
tokenName: string;
|
31
|
+
} & {
|
32
|
+
tokenContractAddress?: string | undefined;
|
33
|
+
decimals?: number | undefined;
|
34
|
+
}) | undefined;
|
23
35
|
})[], ({
|
24
36
|
address: {
|
25
37
|
address?: string | undefined;
|
@@ -33,6 +45,18 @@ export declare const AccountBaseConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
|
33
45
|
};
|
34
46
|
} & {
|
35
47
|
data?: string | undefined;
|
48
|
+
} & {
|
49
|
+
tokenData?: ({
|
50
|
+
tokenQuantity: string;
|
51
|
+
tokenType: string;
|
52
|
+
} & {
|
53
|
+
tokenId?: string | undefined;
|
54
|
+
} & {
|
55
|
+
tokenName: string;
|
56
|
+
} & {
|
57
|
+
tokenContractAddress?: string | undefined;
|
58
|
+
decimals?: number | undefined;
|
59
|
+
}) | undefined;
|
36
60
|
})[], unknown>, t.UndefinedC]>;
|
37
61
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
38
62
|
}>]>;
|
@@ -28,7 +28,7 @@ const t = __importStar(require("io-ts"));
|
|
28
28
|
const accountBaseBuildOptions_1 = require("./accountBaseBuildOptions");
|
29
29
|
const intentType_1 = require("./intentType");
|
30
30
|
const utils_1 = require("../../../utils");
|
31
|
-
const
|
31
|
+
const tokenRecipientEntry_1 = require("./tokenRecipientEntry");
|
32
32
|
exports.AccountBaseConsolidateIntent = t.intersection([
|
33
33
|
accountBaseBuildOptions_1.AccountBaseBuildOptions,
|
34
34
|
t.type({
|
@@ -38,7 +38,7 @@ exports.AccountBaseConsolidateIntent = t.intersection([
|
|
38
38
|
t.partial({
|
39
39
|
senderAddressIndex: utils_1.optionalNumber,
|
40
40
|
consolidateId: utils_1.optionalString,
|
41
|
-
recipients: (0, utils_1.Optional)(t.array(
|
41
|
+
recipients: (0, utils_1.Optional)(t.array(tokenRecipientEntry_1.TokenRecipientEntry)),
|
42
42
|
keepAlive: utils_1.optionalBoolean,
|
43
43
|
}),
|
44
44
|
]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"accountBaseConsolidateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/accountBaseConsolidateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uEAAoE;AACpE,6CAA2C;AAC3C,0CAKwB;AACxB
|
1
|
+
{"version":3,"file":"accountBaseConsolidateIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/accountBaseConsolidateIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,uEAAoE;AACpE,6CAA2C;AAC3C,0CAKwB;AACxB,+DAA4D;AAE/C,QAAA,4BAA4B,GAAG,CAAC,CAAC,YAAY,CAAC;IACzD,iDAAuB;IACvB,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,WAAW;QACnC,cAAc,EAAE,CAAC,CAAC,MAAM;KACzB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,kBAAkB,EAAE,sBAAc;QAClC,aAAa,EAAE,sBAAc;QAC7B,UAAU,EAAE,IAAA,gBAAQ,EAAC,CAAC,CAAC,KAAK,CAAC,yCAAmB,CAAC,CAAC;QAClD,SAAS,EAAE,uBAAe;KAC3B,CAAC;CACH,CAAC,CAAC"}
|
@@ -20,6 +20,18 @@ export declare const AdaConsolidateIntent: t.IntersectionC<[t.IntersectionC<[t.P
|
|
20
20
|
};
|
21
21
|
} & {
|
22
22
|
data?: string | undefined;
|
23
|
+
} & {
|
24
|
+
tokenData?: ({
|
25
|
+
tokenQuantity: string;
|
26
|
+
tokenType: string;
|
27
|
+
} & {
|
28
|
+
tokenId?: string | undefined;
|
29
|
+
} & {
|
30
|
+
tokenName: string;
|
31
|
+
} & {
|
32
|
+
tokenContractAddress?: string | undefined;
|
33
|
+
decimals?: number | undefined;
|
34
|
+
}) | undefined;
|
23
35
|
})[], ({
|
24
36
|
address: {
|
25
37
|
address?: string | undefined;
|
@@ -33,6 +45,18 @@ export declare const AdaConsolidateIntent: t.IntersectionC<[t.IntersectionC<[t.P
|
|
33
45
|
};
|
34
46
|
} & {
|
35
47
|
data?: string | undefined;
|
48
|
+
} & {
|
49
|
+
tokenData?: ({
|
50
|
+
tokenQuantity: string;
|
51
|
+
tokenType: string;
|
52
|
+
} & {
|
53
|
+
tokenId?: string | undefined;
|
54
|
+
} & {
|
55
|
+
tokenName: string;
|
56
|
+
} & {
|
57
|
+
tokenContractAddress?: string | undefined;
|
58
|
+
decimals?: number | undefined;
|
59
|
+
}) | undefined;
|
36
60
|
})[], unknown>, t.UndefinedC]>;
|
37
61
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
38
62
|
}>]>, t.PartialC<{
|
@@ -91,7 +91,7 @@ export declare const ConsolidateTokenIntent: t.IntersectionC<[t.IntersectionC<[t
|
|
91
91
|
}>;
|
92
92
|
}>, t.PartialC<{
|
93
93
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
94
|
-
}>]>, t.
|
94
|
+
}>]>, t.PartialC<{
|
95
95
|
tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
96
96
|
tokenQuantity: t.StringC;
|
97
97
|
tokenType: t.StringC;
|
@@ -20,6 +20,18 @@ export declare const DotConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
|
20
20
|
};
|
21
21
|
} & {
|
22
22
|
data?: string | undefined;
|
23
|
+
} & {
|
24
|
+
tokenData?: ({
|
25
|
+
tokenQuantity: string;
|
26
|
+
tokenType: string;
|
27
|
+
} & {
|
28
|
+
tokenId?: string | undefined;
|
29
|
+
} & {
|
30
|
+
tokenName: string;
|
31
|
+
} & {
|
32
|
+
tokenContractAddress?: string | undefined;
|
33
|
+
decimals?: number | undefined;
|
34
|
+
}) | undefined;
|
23
35
|
})[], ({
|
24
36
|
address: {
|
25
37
|
address?: string | undefined;
|
@@ -33,6 +45,18 @@ export declare const DotConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
|
33
45
|
};
|
34
46
|
} & {
|
35
47
|
data?: string | undefined;
|
48
|
+
} & {
|
49
|
+
tokenData?: ({
|
50
|
+
tokenQuantity: string;
|
51
|
+
tokenType: string;
|
52
|
+
} & {
|
53
|
+
tokenId?: string | undefined;
|
54
|
+
} & {
|
55
|
+
tokenName: string;
|
56
|
+
} & {
|
57
|
+
tokenContractAddress?: string | undefined;
|
58
|
+
decimals?: number | undefined;
|
59
|
+
}) | undefined;
|
36
60
|
})[], unknown>, t.UndefinedC]>;
|
37
61
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
38
62
|
}>]>;
|
@@ -20,6 +20,18 @@ export declare const EthConsolidateIntent: t.IntersectionC<[t.IntersectionC<[t.P
|
|
20
20
|
};
|
21
21
|
} & {
|
22
22
|
data?: string | undefined;
|
23
|
+
} & {
|
24
|
+
tokenData?: ({
|
25
|
+
tokenQuantity: string;
|
26
|
+
tokenType: string;
|
27
|
+
} & {
|
28
|
+
tokenId?: string | undefined;
|
29
|
+
} & {
|
30
|
+
tokenName: string;
|
31
|
+
} & {
|
32
|
+
tokenContractAddress?: string | undefined;
|
33
|
+
decimals?: number | undefined;
|
34
|
+
}) | undefined;
|
23
35
|
})[], ({
|
24
36
|
address: {
|
25
37
|
address?: string | undefined;
|
@@ -33,6 +45,18 @@ export declare const EthConsolidateIntent: t.IntersectionC<[t.IntersectionC<[t.P
|
|
33
45
|
};
|
34
46
|
} & {
|
35
47
|
data?: string | undefined;
|
48
|
+
} & {
|
49
|
+
tokenData?: ({
|
50
|
+
tokenQuantity: string;
|
51
|
+
tokenType: string;
|
52
|
+
} & {
|
53
|
+
tokenId?: string | undefined;
|
54
|
+
} & {
|
55
|
+
tokenName: string;
|
56
|
+
} & {
|
57
|
+
tokenContractAddress?: string | undefined;
|
58
|
+
decimals?: number | undefined;
|
59
|
+
}) | undefined;
|
36
60
|
})[], unknown>, t.UndefinedC]>;
|
37
61
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
38
62
|
}>]>, t.IntersectionC<[t.PartialC<{
|
@@ -91,7 +91,7 @@ export declare const EthConsolidateTokenIntent: t.IntersectionC<[t.IntersectionC
|
|
91
91
|
}>;
|
92
92
|
}>, t.PartialC<{
|
93
93
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
94
|
-
}>]>, t.
|
94
|
+
}>]>, t.PartialC<{
|
95
95
|
tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
96
96
|
tokenQuantity: t.StringC;
|
97
97
|
tokenType: t.StringC;
|
@@ -56,7 +56,7 @@ export declare const EthTransferTokenIntent: t.IntersectionC<[t.IntersectionC<[t
|
|
56
56
|
}>;
|
57
57
|
}>, t.PartialC<{
|
58
58
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
59
|
-
}>]>, t.
|
59
|
+
}>]>, t.PartialC<{
|
60
60
|
tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
61
61
|
tokenQuantity: t.StringC;
|
62
62
|
tokenType: t.StringC;
|
@@ -20,6 +20,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
20
20
|
};
|
21
21
|
} & {
|
22
22
|
data?: string | undefined;
|
23
|
+
} & {
|
24
|
+
tokenData?: ({
|
25
|
+
tokenQuantity: string;
|
26
|
+
tokenType: string;
|
27
|
+
} & {
|
28
|
+
tokenId?: string | undefined;
|
29
|
+
} & {
|
30
|
+
tokenName: string;
|
31
|
+
} & {
|
32
|
+
tokenContractAddress?: string | undefined;
|
33
|
+
decimals?: number | undefined;
|
34
|
+
}) | undefined;
|
23
35
|
})[], ({
|
24
36
|
address: {
|
25
37
|
address?: string | undefined;
|
@@ -33,6 +45,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
33
45
|
};
|
34
46
|
} & {
|
35
47
|
data?: string | undefined;
|
48
|
+
} & {
|
49
|
+
tokenData?: ({
|
50
|
+
tokenQuantity: string;
|
51
|
+
tokenType: string;
|
52
|
+
} & {
|
53
|
+
tokenId?: string | undefined;
|
54
|
+
} & {
|
55
|
+
tokenName: string;
|
56
|
+
} & {
|
57
|
+
tokenContractAddress?: string | undefined;
|
58
|
+
decimals?: number | undefined;
|
59
|
+
}) | undefined;
|
36
60
|
})[], unknown>, t.UndefinedC]>;
|
37
61
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
38
62
|
}>]>, t.PartialC<{
|
@@ -1161,6 +1185,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
1161
1185
|
};
|
1162
1186
|
} & {
|
1163
1187
|
data?: string | undefined;
|
1188
|
+
} & {
|
1189
|
+
tokenData?: ({
|
1190
|
+
tokenQuantity: string;
|
1191
|
+
tokenType: string;
|
1192
|
+
} & {
|
1193
|
+
tokenId?: string | undefined;
|
1194
|
+
} & {
|
1195
|
+
tokenName: string;
|
1196
|
+
} & {
|
1197
|
+
tokenContractAddress?: string | undefined;
|
1198
|
+
decimals?: number | undefined;
|
1199
|
+
}) | undefined;
|
1164
1200
|
})[], ({
|
1165
1201
|
address: {
|
1166
1202
|
address?: string | undefined;
|
@@ -1174,6 +1210,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
1174
1210
|
};
|
1175
1211
|
} & {
|
1176
1212
|
data?: string | undefined;
|
1213
|
+
} & {
|
1214
|
+
tokenData?: ({
|
1215
|
+
tokenQuantity: string;
|
1216
|
+
tokenType: string;
|
1217
|
+
} & {
|
1218
|
+
tokenId?: string | undefined;
|
1219
|
+
} & {
|
1220
|
+
tokenName: string;
|
1221
|
+
} & {
|
1222
|
+
tokenContractAddress?: string | undefined;
|
1223
|
+
decimals?: number | undefined;
|
1224
|
+
}) | undefined;
|
1177
1225
|
})[], unknown>, t.UndefinedC]>;
|
1178
1226
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
1179
1227
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
@@ -1647,6 +1695,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
1647
1695
|
};
|
1648
1696
|
} & {
|
1649
1697
|
data?: string | undefined;
|
1698
|
+
} & {
|
1699
|
+
tokenData?: ({
|
1700
|
+
tokenQuantity: string;
|
1701
|
+
tokenType: string;
|
1702
|
+
} & {
|
1703
|
+
tokenId?: string | undefined;
|
1704
|
+
} & {
|
1705
|
+
tokenName: string;
|
1706
|
+
} & {
|
1707
|
+
tokenContractAddress?: string | undefined;
|
1708
|
+
decimals?: number | undefined;
|
1709
|
+
}) | undefined;
|
1650
1710
|
})[], ({
|
1651
1711
|
address: {
|
1652
1712
|
address?: string | undefined;
|
@@ -1660,6 +1720,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
1660
1720
|
};
|
1661
1721
|
} & {
|
1662
1722
|
data?: string | undefined;
|
1723
|
+
} & {
|
1724
|
+
tokenData?: ({
|
1725
|
+
tokenQuantity: string;
|
1726
|
+
tokenType: string;
|
1727
|
+
} & {
|
1728
|
+
tokenId?: string | undefined;
|
1729
|
+
} & {
|
1730
|
+
tokenName: string;
|
1731
|
+
} & {
|
1732
|
+
tokenContractAddress?: string | undefined;
|
1733
|
+
decimals?: number | undefined;
|
1734
|
+
}) | undefined;
|
1663
1735
|
})[], unknown>, t.UndefinedC]>;
|
1664
1736
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
1665
1737
|
}>]>, t.IntersectionC<[t.PartialC<{
|
@@ -1789,7 +1861,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
1789
1861
|
}>;
|
1790
1862
|
}>, t.PartialC<{
|
1791
1863
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
1792
|
-
}>]>, t.
|
1864
|
+
}>]>, t.PartialC<{
|
1793
1865
|
tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
1794
1866
|
tokenQuantity: t.StringC;
|
1795
1867
|
tokenType: t.StringC;
|
@@ -2106,7 +2178,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
2106
2178
|
}>;
|
2107
2179
|
}>, t.PartialC<{
|
2108
2180
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
2109
|
-
}>]>, t.
|
2181
|
+
}>]>, t.PartialC<{
|
2110
2182
|
tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
2111
2183
|
tokenQuantity: t.StringC;
|
2112
2184
|
tokenType: t.StringC;
|
@@ -2855,6 +2927,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
2855
2927
|
};
|
2856
2928
|
} & {
|
2857
2929
|
data?: string | undefined;
|
2930
|
+
} & {
|
2931
|
+
tokenData?: ({
|
2932
|
+
tokenQuantity: string;
|
2933
|
+
tokenType: string;
|
2934
|
+
} & {
|
2935
|
+
tokenId?: string | undefined;
|
2936
|
+
} & {
|
2937
|
+
tokenName: string;
|
2938
|
+
} & {
|
2939
|
+
tokenContractAddress?: string | undefined;
|
2940
|
+
decimals?: number | undefined;
|
2941
|
+
}) | undefined;
|
2858
2942
|
})[], ({
|
2859
2943
|
address: {
|
2860
2944
|
address?: string | undefined;
|
@@ -2868,6 +2952,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
2868
2952
|
};
|
2869
2953
|
} & {
|
2870
2954
|
data?: string | undefined;
|
2955
|
+
} & {
|
2956
|
+
tokenData?: ({
|
2957
|
+
tokenQuantity: string;
|
2958
|
+
tokenType: string;
|
2959
|
+
} & {
|
2960
|
+
tokenId?: string | undefined;
|
2961
|
+
} & {
|
2962
|
+
tokenName: string;
|
2963
|
+
} & {
|
2964
|
+
tokenContractAddress?: string | undefined;
|
2965
|
+
decimals?: number | undefined;
|
2966
|
+
}) | undefined;
|
2871
2967
|
})[], unknown>, t.UndefinedC]>;
|
2872
2968
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
2873
2969
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
@@ -3249,6 +3345,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3249
3345
|
};
|
3250
3346
|
} & {
|
3251
3347
|
data?: string | undefined;
|
3348
|
+
} & {
|
3349
|
+
tokenData?: ({
|
3350
|
+
tokenQuantity: string;
|
3351
|
+
tokenType: string;
|
3352
|
+
} & {
|
3353
|
+
tokenId?: string | undefined;
|
3354
|
+
} & {
|
3355
|
+
tokenName: string;
|
3356
|
+
} & {
|
3357
|
+
tokenContractAddress?: string | undefined;
|
3358
|
+
decimals?: number | undefined;
|
3359
|
+
}) | undefined;
|
3252
3360
|
})[], ({
|
3253
3361
|
address: {
|
3254
3362
|
address?: string | undefined;
|
@@ -3262,6 +3370,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3262
3370
|
};
|
3263
3371
|
} & {
|
3264
3372
|
data?: string | undefined;
|
3373
|
+
} & {
|
3374
|
+
tokenData?: ({
|
3375
|
+
tokenQuantity: string;
|
3376
|
+
tokenType: string;
|
3377
|
+
} & {
|
3378
|
+
tokenId?: string | undefined;
|
3379
|
+
} & {
|
3380
|
+
tokenName: string;
|
3381
|
+
} & {
|
3382
|
+
tokenContractAddress?: string | undefined;
|
3383
|
+
decimals?: number | undefined;
|
3384
|
+
}) | undefined;
|
3265
3385
|
})[], unknown>, t.UndefinedC]>;
|
3266
3386
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
3267
3387
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
@@ -3359,6 +3479,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3359
3479
|
};
|
3360
3480
|
} & {
|
3361
3481
|
data?: string | undefined;
|
3482
|
+
} & {
|
3483
|
+
tokenData?: ({
|
3484
|
+
tokenQuantity: string;
|
3485
|
+
tokenType: string;
|
3486
|
+
} & {
|
3487
|
+
tokenId?: string | undefined;
|
3488
|
+
} & {
|
3489
|
+
tokenName: string;
|
3490
|
+
} & {
|
3491
|
+
tokenContractAddress?: string | undefined;
|
3492
|
+
decimals?: number | undefined;
|
3493
|
+
}) | undefined;
|
3362
3494
|
})[], ({
|
3363
3495
|
address: {
|
3364
3496
|
address?: string | undefined;
|
@@ -3372,6 +3504,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3372
3504
|
};
|
3373
3505
|
} & {
|
3374
3506
|
data?: string | undefined;
|
3507
|
+
} & {
|
3508
|
+
tokenData?: ({
|
3509
|
+
tokenQuantity: string;
|
3510
|
+
tokenType: string;
|
3511
|
+
} & {
|
3512
|
+
tokenId?: string | undefined;
|
3513
|
+
} & {
|
3514
|
+
tokenName: string;
|
3515
|
+
} & {
|
3516
|
+
tokenContractAddress?: string | undefined;
|
3517
|
+
decimals?: number | undefined;
|
3518
|
+
}) | undefined;
|
3375
3519
|
})[], unknown>, t.UndefinedC]>;
|
3376
3520
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
3377
3521
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
@@ -3995,6 +4139,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
3995
4139
|
};
|
3996
4140
|
} & {
|
3997
4141
|
data?: string | undefined;
|
4142
|
+
} & {
|
4143
|
+
tokenData?: ({
|
4144
|
+
tokenQuantity: string;
|
4145
|
+
tokenType: string;
|
4146
|
+
} & {
|
4147
|
+
tokenId?: string | undefined;
|
4148
|
+
} & {
|
4149
|
+
tokenName: string;
|
4150
|
+
} & {
|
4151
|
+
tokenContractAddress?: string | undefined;
|
4152
|
+
decimals?: number | undefined;
|
4153
|
+
}) | undefined;
|
3998
4154
|
})[], ({
|
3999
4155
|
address: {
|
4000
4156
|
address?: string | undefined;
|
@@ -4008,6 +4164,18 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
4008
4164
|
};
|
4009
4165
|
} & {
|
4010
4166
|
data?: string | undefined;
|
4167
|
+
} & {
|
4168
|
+
tokenData?: ({
|
4169
|
+
tokenQuantity: string;
|
4170
|
+
tokenType: string;
|
4171
|
+
} & {
|
4172
|
+
tokenId?: string | undefined;
|
4173
|
+
} & {
|
4174
|
+
tokenName: string;
|
4175
|
+
} & {
|
4176
|
+
tokenContractAddress?: string | undefined;
|
4177
|
+
decimals?: number | undefined;
|
4178
|
+
}) | undefined;
|
4011
4179
|
})[], unknown>, t.UndefinedC]>;
|
4012
4180
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
4013
4181
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
@@ -20,6 +20,18 @@ export declare const SolConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
|
20
20
|
};
|
21
21
|
} & {
|
22
22
|
data?: string | undefined;
|
23
|
+
} & {
|
24
|
+
tokenData?: ({
|
25
|
+
tokenQuantity: string;
|
26
|
+
tokenType: string;
|
27
|
+
} & {
|
28
|
+
tokenId?: string | undefined;
|
29
|
+
} & {
|
30
|
+
tokenName: string;
|
31
|
+
} & {
|
32
|
+
tokenContractAddress?: string | undefined;
|
33
|
+
decimals?: number | undefined;
|
34
|
+
}) | undefined;
|
23
35
|
})[], ({
|
24
36
|
address: {
|
25
37
|
address?: string | undefined;
|
@@ -33,6 +45,18 @@ export declare const SolConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
|
33
45
|
};
|
34
46
|
} & {
|
35
47
|
data?: string | undefined;
|
48
|
+
} & {
|
49
|
+
tokenData?: ({
|
50
|
+
tokenQuantity: string;
|
51
|
+
tokenType: string;
|
52
|
+
} & {
|
53
|
+
tokenId?: string | undefined;
|
54
|
+
} & {
|
55
|
+
tokenName: string;
|
56
|
+
} & {
|
57
|
+
tokenContractAddress?: string | undefined;
|
58
|
+
decimals?: number | undefined;
|
59
|
+
}) | undefined;
|
36
60
|
})[], unknown>, t.UndefinedC]>;
|
37
61
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
38
62
|
}>]>;
|
@@ -20,6 +20,18 @@ export declare const SubstrateConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
|
20
20
|
};
|
21
21
|
} & {
|
22
22
|
data?: string | undefined;
|
23
|
+
} & {
|
24
|
+
tokenData?: ({
|
25
|
+
tokenQuantity: string;
|
26
|
+
tokenType: string;
|
27
|
+
} & {
|
28
|
+
tokenId?: string | undefined;
|
29
|
+
} & {
|
30
|
+
tokenName: string;
|
31
|
+
} & {
|
32
|
+
tokenContractAddress?: string | undefined;
|
33
|
+
decimals?: number | undefined;
|
34
|
+
}) | undefined;
|
23
35
|
})[], ({
|
24
36
|
address: {
|
25
37
|
address?: string | undefined;
|
@@ -33,6 +45,18 @@ export declare const SubstrateConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
|
33
45
|
};
|
34
46
|
} & {
|
35
47
|
data?: string | undefined;
|
48
|
+
} & {
|
49
|
+
tokenData?: ({
|
50
|
+
tokenQuantity: string;
|
51
|
+
tokenType: string;
|
52
|
+
} & {
|
53
|
+
tokenId?: string | undefined;
|
54
|
+
} & {
|
55
|
+
tokenName: string;
|
56
|
+
} & {
|
57
|
+
tokenContractAddress?: string | undefined;
|
58
|
+
decimals?: number | undefined;
|
59
|
+
}) | undefined;
|
36
60
|
})[], unknown>, t.UndefinedC]>;
|
37
61
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
38
62
|
}>]>;
|
@@ -20,6 +20,18 @@ export declare const SuiConsolidateIntent: t.IntersectionC<[t.IntersectionC<[t.P
|
|
20
20
|
};
|
21
21
|
} & {
|
22
22
|
data?: string | undefined;
|
23
|
+
} & {
|
24
|
+
tokenData?: ({
|
25
|
+
tokenQuantity: string;
|
26
|
+
tokenType: string;
|
27
|
+
} & {
|
28
|
+
tokenId?: string | undefined;
|
29
|
+
} & {
|
30
|
+
tokenName: string;
|
31
|
+
} & {
|
32
|
+
tokenContractAddress?: string | undefined;
|
33
|
+
decimals?: number | undefined;
|
34
|
+
}) | undefined;
|
23
35
|
})[], ({
|
24
36
|
address: {
|
25
37
|
address?: string | undefined;
|
@@ -33,6 +45,18 @@ export declare const SuiConsolidateIntent: t.IntersectionC<[t.IntersectionC<[t.P
|
|
33
45
|
};
|
34
46
|
} & {
|
35
47
|
data?: string | undefined;
|
48
|
+
} & {
|
49
|
+
tokenData?: ({
|
50
|
+
tokenQuantity: string;
|
51
|
+
tokenType: string;
|
52
|
+
} & {
|
53
|
+
tokenId?: string | undefined;
|
54
|
+
} & {
|
55
|
+
tokenName: string;
|
56
|
+
} & {
|
57
|
+
tokenContractAddress?: string | undefined;
|
58
|
+
decimals?: number | undefined;
|
59
|
+
}) | undefined;
|
36
60
|
})[], unknown>, t.UndefinedC]>;
|
37
61
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
38
62
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
@@ -14,7 +14,7 @@ export declare const TokenRecipientEntry: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
14
14
|
}>;
|
15
15
|
}>, t.PartialC<{
|
16
16
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
17
|
-
}>]>, t.
|
17
|
+
}>]>, t.PartialC<{
|
18
18
|
tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
19
19
|
tokenQuantity: t.StringC;
|
20
20
|
tokenType: t.StringC;
|
@@ -29,7 +29,7 @@ const recipientEntry_1 = require("./recipientEntry");
|
|
29
29
|
const tokenData_1 = require("./tokenData");
|
30
30
|
exports.TokenRecipientEntry = t.intersection([
|
31
31
|
recipientEntry_1.RecipientEntry,
|
32
|
-
t.
|
32
|
+
t.partial({
|
33
33
|
tokenData: tokenData_1.TokenData,
|
34
34
|
}),
|
35
35
|
]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tokenRecipientEntry.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tokenRecipientEntry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qDAAkD;AAClD,2CAAwC;AAE3B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,+BAAc;IACd,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"tokenRecipientEntry.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/tokenRecipientEntry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,qDAAkD;AAClD,2CAAwC;AAE3B,QAAA,mBAAmB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,+BAAc;IACd,CAAC,CAAC,OAAO,CAAC;QACR,SAAS,EAAE,qBAAS;KACrB,CAAC;CACH,CAAC,CAAC"}
|
@@ -20,6 +20,18 @@ export declare const TonConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
|
20
20
|
};
|
21
21
|
} & {
|
22
22
|
data?: string | undefined;
|
23
|
+
} & {
|
24
|
+
tokenData?: ({
|
25
|
+
tokenQuantity: string;
|
26
|
+
tokenType: string;
|
27
|
+
} & {
|
28
|
+
tokenId?: string | undefined;
|
29
|
+
} & {
|
30
|
+
tokenName: string;
|
31
|
+
} & {
|
32
|
+
tokenContractAddress?: string | undefined;
|
33
|
+
decimals?: number | undefined;
|
34
|
+
}) | undefined;
|
23
35
|
})[], ({
|
24
36
|
address: {
|
25
37
|
address?: string | undefined;
|
@@ -33,6 +45,18 @@ export declare const TonConsolidateIntent: t.IntersectionC<[t.PartialC<{
|
|
33
45
|
};
|
34
46
|
} & {
|
35
47
|
data?: string | undefined;
|
48
|
+
} & {
|
49
|
+
tokenData?: ({
|
50
|
+
tokenQuantity: string;
|
51
|
+
tokenType: string;
|
52
|
+
} & {
|
53
|
+
tokenId?: string | undefined;
|
54
|
+
} & {
|
55
|
+
tokenName: string;
|
56
|
+
} & {
|
57
|
+
tokenContractAddress?: string | undefined;
|
58
|
+
decimals?: number | undefined;
|
59
|
+
}) | undefined;
|
36
60
|
})[], unknown>, t.UndefinedC]>;
|
37
61
|
keepAlive: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
38
62
|
}>]>;
|
@@ -56,7 +56,7 @@ export declare const TransferTokenIntent: t.IntersectionC<[t.IntersectionC<[t.Ty
|
|
56
56
|
}>;
|
57
57
|
}>, t.PartialC<{
|
58
58
|
data: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
59
|
-
}>]>, t.
|
59
|
+
}>]>, t.PartialC<{
|
60
60
|
tokenData: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
61
61
|
tokenQuantity: t.StringC;
|
62
62
|
tokenType: t.StringC;
|
package/package.json
CHANGED
@@ -7,7 +7,7 @@ import {
|
|
7
7
|
optionalNumber,
|
8
8
|
optionalString,
|
9
9
|
} from "../../../utils";
|
10
|
-
import {
|
10
|
+
import { TokenRecipientEntry } from "./tokenRecipientEntry";
|
11
11
|
|
12
12
|
export const AccountBaseConsolidateIntent = t.intersection([
|
13
13
|
AccountBaseBuildOptions,
|
@@ -18,7 +18,7 @@ export const AccountBaseConsolidateIntent = t.intersection([
|
|
18
18
|
t.partial({
|
19
19
|
senderAddressIndex: optionalNumber,
|
20
20
|
consolidateId: optionalString,
|
21
|
-
recipients: Optional(t.array(
|
21
|
+
recipients: Optional(t.array(TokenRecipientEntry)),
|
22
22
|
keepAlive: optionalBoolean,
|
23
23
|
}),
|
24
24
|
]);
|