@bitgo/public-types 6.94.0 → 6.95.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/enableTokenIntent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/enableTokenIntent.js +4 -0
- package/dist/src/schema/transactionRequest/intents/enableTokenIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/intentGroups.d.ts +2 -0
- package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts +2 -0
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/enableTokenIntent.ts +9 -0
- package/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.ts +1 -1
|
@@ -95,5 +95,7 @@ export declare const EnableTokenIntent: t.IntersectionC<[t.IntersectionC<[t.Type
|
|
|
95
95
|
}>, t.PartialC<{
|
|
96
96
|
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
97
97
|
}>]>>;
|
|
98
|
+
}>, t.PartialC<{
|
|
99
|
+
configureAccount: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
98
100
|
}>]>;
|
|
99
101
|
export type EnableTokenIntent = t.TypeOf<typeof EnableTokenIntent>;
|
|
@@ -28,11 +28,15 @@ const t = __importStar(require("io-ts"));
|
|
|
28
28
|
const intentType_1 = require("./intentType");
|
|
29
29
|
const baseIntent_1 = require("./baseIntent");
|
|
30
30
|
const tokenEnablement_1 = require("./tokenEnablement");
|
|
31
|
+
const utils_1 = require("../../../utils");
|
|
31
32
|
exports.EnableTokenIntent = t.intersection([
|
|
32
33
|
baseIntent_1.BaseIntent,
|
|
33
34
|
t.type({
|
|
34
35
|
intentType: intentType_1.intentTypes.enableToken,
|
|
35
36
|
enableTokens: t.array(tokenEnablement_1.TokenEnablement),
|
|
36
37
|
}),
|
|
38
|
+
t.partial({
|
|
39
|
+
configureAccount: utils_1.optionalBoolean,
|
|
40
|
+
}),
|
|
37
41
|
]);
|
|
38
42
|
//# sourceMappingURL=enableTokenIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enableTokenIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/enableTokenIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA2C;AAC3C,6CAA0C;AAC1C,uDAAoD;
|
|
1
|
+
{"version":3,"file":"enableTokenIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/enableTokenIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA2C;AAC3C,6CAA0C;AAC1C,uDAAoD;AACpD,0CAAiD;AAEpC,QAAA,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QAEL,UAAU,EAAE,wBAAW,CAAC,WAAW;QAEnC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,iCAAe,CAAC;KACvC,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QAMR,gBAAgB,EAAE,uBAAe;KAClC,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -10207,6 +10207,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
10207
10207
|
}>, t.PartialC<{
|
|
10208
10208
|
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
10209
10209
|
}>]>>;
|
|
10210
|
+
}>, t.PartialC<{
|
|
10211
|
+
configureAccount: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
10210
10212
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
10211
10213
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
10212
10214
|
}>, t.TypeC<{
|
|
@@ -5855,6 +5855,8 @@ export declare const TransactionIntentCommon: t.UnionC<[t.IntersectionC<[t.Inter
|
|
|
5855
5855
|
}>, t.PartialC<{
|
|
5856
5856
|
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
5857
5857
|
}>]>>;
|
|
5858
|
+
}>, t.PartialC<{
|
|
5859
|
+
configureAccount: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
5858
5860
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
5859
5861
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
5860
5862
|
}>, t.TypeC<{
|
package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.d.ts
CHANGED
|
@@ -95,6 +95,8 @@ export declare const SolCreateAssociatedTokenAccountIntent: t.IntersectionC<[t.I
|
|
|
95
95
|
}>, t.PartialC<{
|
|
96
96
|
address: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
|
|
97
97
|
}>]>>;
|
|
98
|
+
}>, t.PartialC<{
|
|
99
|
+
configureAccount: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
|
|
98
100
|
}>]>, t.IntersectionC<[t.PartialC<{
|
|
99
101
|
nonce: t.UnionC<[t.Type<string | number, string | number, unknown>, t.UndefinedC]>;
|
|
100
102
|
}>, t.TypeC<{
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import * as t from "io-ts";
|
|
|
2
2
|
import { intentTypes } from "./intentType";
|
|
3
3
|
import { BaseIntent } from "./baseIntent";
|
|
4
4
|
import { TokenEnablement } from "./tokenEnablement";
|
|
5
|
+
import { optionalBoolean } from "../../../utils";
|
|
5
6
|
|
|
6
7
|
export const EnableTokenIntent = t.intersection([
|
|
7
8
|
BaseIntent,
|
|
@@ -11,6 +12,14 @@ export const EnableTokenIntent = t.intersection([
|
|
|
11
12
|
/** One or more token entries specifying which tokens to enable. */
|
|
12
13
|
enableTokens: t.array(TokenEnablement),
|
|
13
14
|
}),
|
|
15
|
+
t.partial({
|
|
16
|
+
/**
|
|
17
|
+
* Solana confidential-transfer tokens only: also run ConfigureAccount after ATA creation so
|
|
18
|
+
* the account can hold confidential balances. Defaults to true. Ignored for CMB mints,
|
|
19
|
+
* which are always configured.
|
|
20
|
+
*/
|
|
21
|
+
configureAccount: optionalBoolean,
|
|
22
|
+
}),
|
|
14
23
|
]);
|
|
15
24
|
|
|
16
25
|
export type EnableTokenIntent = t.TypeOf<typeof EnableTokenIntent>;
|
|
@@ -3,7 +3,7 @@ import { SolBuildOptions } from "./solBuildOptions";
|
|
|
3
3
|
import { EnableTokenIntent } from "./enableTokenIntent";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Initialize one or more Associated Token Accounts (ATAs) on Solana so the wallet can receive SPL tokens. All entries in enableTokens must target the same wallet address. Spending policy is not evaluated for this intent.
|
|
6
|
+
* Initialize one or more Associated Token Accounts (ATAs) on Solana so the wallet can receive SPL tokens. All entries in enableTokens must target the same wallet address, unless they are confidential-transfer tokens whose mints carry the ConfidentialTransferMint extension. Those are enabled per address — one ConfigureAccount transaction per address — so entries may target different addresses. Spending policy is not evaluated for this intent.
|
|
7
7
|
*
|
|
8
8
|
* @title SOL Create Associated Token Account Intent
|
|
9
9
|
*/
|