@bitgo/public-types 6.28.0 → 6.29.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/baseGoStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/enableTokenIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/goUnstakeIntent.d.ts +1 -3
- package/dist/src/schema/transactionRequest/intents/goUnstakeIntent.js +2 -2
- package/dist/src/schema/transactionRequest/intents/goUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +82 -7
- package/dist/src/schema/transactionRequest/intents/solAuthorizeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solBuildOptions.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solClaimIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solConsolidateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solCustomTxIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/solDeactivateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.d.ts +1 -0
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/solDelegateIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solGoUnstakeIntent.d.ts +4 -4
- package/dist/src/schema/transactionRequest/intents/solGoUnstakeIntent.js +4 -0
- package/dist/src/schema/transactionRequest/intents/solGoUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solPaymentIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solStakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/suiGoUnstakeIntent.d.ts +76 -3
- package/dist/src/schema/transactionRequest/intents/suiGoUnstakeIntent.js +2 -0
- package/dist/src/schema/transactionRequest/intents/suiGoUnstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/unstakeIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/withdrawIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +164 -14
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/baseGoStakeIntent.ts +4 -5
- package/src/schema/transactionRequest/intents/enableTokenIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/goUnstakeIntent.ts +8 -7
- package/src/schema/transactionRequest/intents/solAuthorizeIntent.ts +11 -0
- package/src/schema/transactionRequest/intents/solBuildOptions.ts +1 -0
- package/src/schema/transactionRequest/intents/solClaimIntent.ts +3 -0
- package/src/schema/transactionRequest/intents/solCloseAssociatedTokenAccountIntent.ts +4 -0
- package/src/schema/transactionRequest/intents/solConsolidateIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/solCreateAssociatedTokenAccountIntent.ts +2 -0
- package/src/schema/transactionRequest/intents/solCustomTxIntent.ts +10 -0
- package/src/schema/transactionRequest/intents/solDeactivateIntent.ts +7 -0
- package/src/schema/transactionRequest/intents/solDelegateIntent.ts +8 -0
- package/src/schema/transactionRequest/intents/solGoUnstakeIntent.ts +7 -3
- package/src/schema/transactionRequest/intents/solPaymentIntent.ts +5 -0
- package/src/schema/transactionRequest/intents/solStakeIntent.ts +4 -3
- package/src/schema/transactionRequest/intents/solUnstakeIntent.ts +7 -3
- package/src/schema/transactionRequest/intents/solVersionedCustomTxIntent.ts +18 -0
- package/src/schema/transactionRequest/intents/suiGoUnstakeIntent.ts +4 -1
- package/src/schema/transactionRequest/intents/unstakeIntent.ts +1 -0
- package/src/schema/transactionRequest/intents/withdrawIntent.ts +1 -0
|
@@ -4,37 +4,55 @@ import { BaseIntent } from "./baseIntent";
|
|
|
4
4
|
import { intentTypes } from "./intentType";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
+
* Submit a custom Solana versioned (v0) transaction with optional address lookup tables. Use this intent for versioned transactions; for legacy instruction-based transactions use the customTx intent with solInstructions instead. When recentBlockhash is provided, the platform uses it directly without fetching a durable nonce. Wallets without the enableSolCustomTx flag require a second admin approval before the transaction is processed.
|
|
8
|
+
*
|
|
7
9
|
* @title SOL Versioned Custom Transaction Intent
|
|
8
10
|
*/
|
|
9
11
|
export const SolVersionedCustomTxIntent = t.intersection([
|
|
10
12
|
BaseIntent,
|
|
11
13
|
SolBuildOptions,
|
|
12
14
|
t.type({
|
|
15
|
+
/** Must be "customTx". Presence of solVersionedTransactionData distinguishes this from legacy SolCustomTxIntent at runtime. */
|
|
13
16
|
intentType: intentTypes.customTx,
|
|
17
|
+
/** Versioned transaction data in Solana v0 message format. Presence of this field indicates a versioned transaction. */
|
|
14
18
|
solVersionedTransactionData: t.intersection([
|
|
15
19
|
t.type({
|
|
20
|
+
/** The program instructions for this versioned transaction. */
|
|
16
21
|
versionedInstructions: t.array(
|
|
17
22
|
t.type({
|
|
23
|
+
/** Index into the staticAccountKeys array identifying the program to invoke. */
|
|
18
24
|
programIdIndex: t.number,
|
|
25
|
+
/** Indexes into the combined account keys (static + lookup) for this instruction. */
|
|
19
26
|
accountKeyIndexes: t.array(t.number),
|
|
27
|
+
/** Instruction data encoded as base58 or hex. */
|
|
20
28
|
data: t.string,
|
|
21
29
|
}),
|
|
22
30
|
),
|
|
31
|
+
/** Address lookup tables to extend the number of accounts beyond the static limit. Required when using account lookup tables in a v0 transaction. */
|
|
23
32
|
addressLookupTables: t.array(
|
|
24
33
|
t.type({
|
|
34
|
+
/** The on-chain address of the lookup table account. */
|
|
25
35
|
accountKey: t.string,
|
|
36
|
+
/** Indexes of writable accounts in the lookup table. */
|
|
26
37
|
writableIndexes: t.array(t.number),
|
|
38
|
+
/** Indexes of read-only accounts in the lookup table. */
|
|
27
39
|
readonlyIndexes: t.array(t.number),
|
|
28
40
|
}),
|
|
29
41
|
),
|
|
42
|
+
/** The static account keys referenced by this transaction. */
|
|
30
43
|
staticAccountKeys: t.array(t.string),
|
|
44
|
+
/** Solana message header specifying the number of required signers and read-only accounts. */
|
|
31
45
|
messageHeader: t.type({
|
|
46
|
+
/** Number of signatures required for this transaction. */
|
|
32
47
|
numRequiredSignatures: t.number,
|
|
48
|
+
/** Number of read-only accounts that require signatures. */
|
|
33
49
|
numReadonlySignedAccounts: t.number,
|
|
50
|
+
/** Number of read-only accounts that do not require signatures. */
|
|
34
51
|
numReadonlyUnsignedAccounts: t.number,
|
|
35
52
|
}),
|
|
36
53
|
}),
|
|
37
54
|
t.partial({
|
|
55
|
+
/** Optional recent blockhash; when provided the platform uses it instead of fetching a durable nonce. */
|
|
38
56
|
recentBlockhash: t.string,
|
|
39
57
|
}),
|
|
40
58
|
]),
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import * as t from "io-ts";
|
|
2
2
|
import { SuiBuildOptions } from "./suiBuildOptions";
|
|
3
3
|
import { GoUnstakeIntent } from "./goUnstakeIntent";
|
|
4
|
+
import { BaseGoStakeIntent } from "./baseGoStakeIntent";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* @title SuiGoUnstakeIntent
|
|
7
8
|
*
|
|
8
|
-
* @description Unstake intent for GO wallets for the
|
|
9
|
+
* @description Unstake intent for GO wallets for the Sui blockchain.
|
|
9
10
|
*
|
|
10
11
|
*/
|
|
11
12
|
export const SuiGoUnstakeIntent = t.intersection([
|
|
12
13
|
GoUnstakeIntent,
|
|
14
|
+
// Sui go-unstake is an admin/internal flow that requires goStakingRequestId.
|
|
15
|
+
BaseGoStakeIntent,
|
|
13
16
|
SuiBuildOptions,
|
|
14
17
|
]);
|
|
15
18
|
|