@helium/blockchain-api 0.19.0 → 0.20.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/chunk-FIUU5UFI.js +74 -0
- package/dist/{chunk-I6AEML6E.js → chunk-YTIHOF45.js} +1 -1
- package/dist/contracts.d.ts +9 -0
- package/dist/contracts.js +2 -2
- package/dist/index.js +2 -2
- package/dist/schemas/swap.d.ts +3 -0
- package/dist/schemas/swap.js +1 -1
- package/dist/schemas.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZDMXM537.js +0 -60
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { TransactionDataSchema } from './chunk-Z4E3I2B4.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
var GetTokensInputSchema = z.object({
|
|
5
|
+
limit: z.coerce.number().int().min(1).max(100).default(50)
|
|
6
|
+
});
|
|
7
|
+
var GetQuoteInputSchema = z.object({
|
|
8
|
+
inputMint: z.string().min(1),
|
|
9
|
+
outputMint: z.string().min(1),
|
|
10
|
+
amount: z.string().min(1),
|
|
11
|
+
swapMode: z.enum(["ExactIn", "ExactOut"]).default("ExactIn").describe(
|
|
12
|
+
"Only ExactIn is supported: getQuote and getInstructions refuse ExactOut with BAD_REQUEST, because Jupiter's Swap V2 /build swaps an exact input only."
|
|
13
|
+
),
|
|
14
|
+
slippageBps: z.coerce.number().min(0).max(1e4).default(50),
|
|
15
|
+
excludeDexes: z.string().optional().describe(
|
|
16
|
+
"Comma-separated Jupiter DEX labels to leave out of the quoted route. JupiterRfqV2 is always left out. The quote returns these labels as excludeDexes, and getInstructions applies them again when it builds the swap."
|
|
17
|
+
)
|
|
18
|
+
}).refine((input) => input.inputMint !== input.outputMint, {
|
|
19
|
+
message: "inputMint and outputMint must be different",
|
|
20
|
+
path: ["outputMint"]
|
|
21
|
+
});
|
|
22
|
+
var QuoteResponseSchema = z.object({
|
|
23
|
+
inputMint: z.string(),
|
|
24
|
+
inAmount: z.string(),
|
|
25
|
+
outputMint: z.string(),
|
|
26
|
+
outAmount: z.string(),
|
|
27
|
+
otherAmountThreshold: z.string(),
|
|
28
|
+
swapMode: z.string(),
|
|
29
|
+
slippageBps: z.number(),
|
|
30
|
+
platformFee: z.unknown().optional(),
|
|
31
|
+
priceImpactPct: z.string(),
|
|
32
|
+
routePlan: z.array(z.unknown()),
|
|
33
|
+
contextSlot: z.number().optional(),
|
|
34
|
+
timeTaken: z.number().optional(),
|
|
35
|
+
excludeDexes: z.array(z.string()).optional()
|
|
36
|
+
}).passthrough();
|
|
37
|
+
var GetInstructionsInputSchema = z.object({
|
|
38
|
+
quoteResponse: QuoteResponseSchema.describe(
|
|
39
|
+
"A getQuote response. The swap is built for its inputMint, outputMint, inAmount and slippageBps; Jupiter quotes the route again, so the output amount can differ from this quote's outAmount. A built swap whose minimum output is below this quote's otherAmountThreshold is built once more at the narrower slippage that keeps that minimum, and otherwise refused with BAD_REQUEST as an expired quote: refresh the quote and try again. Only ExactIn quotes are accepted."
|
|
40
|
+
),
|
|
41
|
+
userPublicKey: z.string().min(1),
|
|
42
|
+
destinationTokenAccount: z.string().optional().describe("SPL token account that receives the output tokens"),
|
|
43
|
+
excludeDexes: z.string().optional().describe(
|
|
44
|
+
"Comma-separated Jupiter DEX labels to leave out of the built route. Merged with the excludeDexes the quote carries. A built route through a listed label (exact, case-sensitive match) is refused with JUPITER_ERROR."
|
|
45
|
+
),
|
|
46
|
+
dynamicComputeUnitLimit: z.boolean().default(true).describe(
|
|
47
|
+
"Accepted for compatibility and ignored: the server sets the compute unit limit itself."
|
|
48
|
+
),
|
|
49
|
+
useSharedAccounts: z.boolean().optional().describe(
|
|
50
|
+
"Accepted for compatibility and ignored: Jupiter's Swap V2 /build chooses whether the route uses shared program accounts and takes no option for it."
|
|
51
|
+
),
|
|
52
|
+
prioritizationFeeLamports: z.object({
|
|
53
|
+
priorityLevelWithMaxLamports: z.object({
|
|
54
|
+
maxLamports: z.number().default(1e6),
|
|
55
|
+
priorityLevel: z.enum(["low", "medium", "high"]).default("medium")
|
|
56
|
+
})
|
|
57
|
+
}).optional().describe(
|
|
58
|
+
"Accepted for compatibility and ignored: the server sets the compute unit price itself."
|
|
59
|
+
)
|
|
60
|
+
});
|
|
61
|
+
var TokenSchema = z.object({
|
|
62
|
+
address: z.string(),
|
|
63
|
+
symbol: z.string(),
|
|
64
|
+
name: z.string(),
|
|
65
|
+
decimals: z.number(),
|
|
66
|
+
logoURI: z.string().optional(),
|
|
67
|
+
tags: z.array(z.string()).optional()
|
|
68
|
+
});
|
|
69
|
+
var TokenListOutputSchema = z.object({
|
|
70
|
+
tokens: z.array(TokenSchema)
|
|
71
|
+
});
|
|
72
|
+
var SwapTransactionDataSchema = TransactionDataSchema;
|
|
73
|
+
|
|
74
|
+
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, BAD_REQUEST, NOT_FOUND, UNAUTHORIZED, CONFLICT, ALL_POSITIONS_SKIPPED, RATE_LIMITED, SIMULATION_FAILED, BLOCKHASH_EXPIRED } from './chunk-XSASLENU.js';
|
|
2
2
|
import { ClaimInviteRequestSchema, ClaimInviteResponseSchema, CreateInviteResponseSchema, DeleteRewardContractTransactionResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, EstimateCostToCreateRewardContractResponseSchema, FindRewardContractResponseSchema } from './chunk-KZ3X5E6E.js';
|
|
3
|
-
import { GetInstructionsInputSchema, GetQuoteInputSchema, QuoteResponseSchema, GetTokensInputSchema, TokenListOutputSchema } from './chunk-
|
|
3
|
+
import { GetInstructionsInputSchema, GetQuoteInputSchema, QuoteResponseSchema, GetTokensInputSchema, TokenListOutputSchema } from './chunk-FIUU5UFI.js';
|
|
4
4
|
import { CreateHntAccountInputSchema, CreateHntAccountOutputSchema, MemoInputSchema, MemoOutputSchema, BurnInputSchema, BurnOutputSchema, MultiTransferInputSchema, MultiTransferOutputSchema, TransferInputSchema, TransferOutputSchema, GetBalancesInputSchema, TokenBalanceDataSchema } from './chunk-7KWTYKKU.js';
|
|
5
5
|
import { GetHistoryInputSchema, HistoryOutputSchema, EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, PayerBatchesOutputSchema, GetByPayerInputSchema, ResubmitInputSchema, ResubmitOutputSchema, GetInputSchema, BatchStatusOutputSchema, SubmitInputSchema, SubmitOutputSchema } from './chunk-TGBSASKU.js';
|
|
6
6
|
import { BurnDataCreditsInputSchema, DelegateDataCreditsInputSchema, MintDataCreditsInputSchema } from './chunk-7GK4VHJM.js';
|
package/dist/contracts.d.ts
CHANGED
|
@@ -2696,6 +2696,7 @@ declare const swapContract: {
|
|
|
2696
2696
|
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
2697
2697
|
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
2698
2698
|
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
2699
|
+
excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
2699
2700
|
}, zod_v4_core.$loose>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2700
2701
|
BAD_REQUEST: {
|
|
2701
2702
|
message: string;
|
|
@@ -2723,9 +2724,11 @@ declare const swapContract: {
|
|
|
2723
2724
|
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
2724
2725
|
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
2725
2726
|
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
2727
|
+
excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
2726
2728
|
}, zod_v4_core.$loose>;
|
|
2727
2729
|
userPublicKey: zod.ZodString;
|
|
2728
2730
|
destinationTokenAccount: zod.ZodOptional<zod.ZodString>;
|
|
2731
|
+
excludeDexes: zod.ZodOptional<zod.ZodString>;
|
|
2729
2732
|
dynamicComputeUnitLimit: zod.ZodDefault<zod.ZodBoolean>;
|
|
2730
2733
|
useSharedAccounts: zod.ZodOptional<zod.ZodBoolean>;
|
|
2731
2734
|
prioritizationFeeLamports: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -6628,6 +6631,7 @@ declare const apiContract: {
|
|
|
6628
6631
|
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
6629
6632
|
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
6630
6633
|
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
6634
|
+
excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
6631
6635
|
}, zod_v4_core.$loose>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6632
6636
|
BAD_REQUEST: {
|
|
6633
6637
|
message: string;
|
|
@@ -6655,9 +6659,11 @@ declare const apiContract: {
|
|
|
6655
6659
|
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
6656
6660
|
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
6657
6661
|
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
6662
|
+
excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
6658
6663
|
}, zod_v4_core.$loose>;
|
|
6659
6664
|
userPublicKey: zod.ZodString;
|
|
6660
6665
|
destinationTokenAccount: zod.ZodOptional<zod.ZodString>;
|
|
6666
|
+
excludeDexes: zod.ZodOptional<zod.ZodString>;
|
|
6661
6667
|
dynamicComputeUnitLimit: zod.ZodDefault<zod.ZodBoolean>;
|
|
6662
6668
|
useSharedAccounts: zod.ZodOptional<zod.ZodBoolean>;
|
|
6663
6669
|
prioritizationFeeLamports: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -10546,6 +10552,7 @@ declare const fullApiContract: {
|
|
|
10546
10552
|
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
10547
10553
|
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
10548
10554
|
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
10555
|
+
excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
10549
10556
|
}, zod_v4_core.$loose>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
10550
10557
|
BAD_REQUEST: {
|
|
10551
10558
|
message: string;
|
|
@@ -10573,9 +10580,11 @@ declare const fullApiContract: {
|
|
|
10573
10580
|
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
10574
10581
|
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
10575
10582
|
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
10583
|
+
excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
10576
10584
|
}, zod_v4_core.$loose>;
|
|
10577
10585
|
userPublicKey: zod.ZodString;
|
|
10578
10586
|
destinationTokenAccount: zod.ZodOptional<zod.ZodString>;
|
|
10587
|
+
excludeDexes: zod.ZodOptional<zod.ZodString>;
|
|
10579
10588
|
dynamicComputeUnitLimit: zod.ZodDefault<zod.ZodBoolean>;
|
|
10580
10589
|
useSharedAccounts: zod.ZodOptional<zod.ZodBoolean>;
|
|
10581
10590
|
prioritizationFeeLamports: zod.ZodOptional<zod.ZodObject<{
|
package/dist/contracts.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { apiContract, dataCreditsContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, squadsContract, swapContract, tokensContract, transactionsContract, welcomePacksContract } from './chunk-
|
|
1
|
+
export { apiContract, dataCreditsContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, squadsContract, swapContract, tokensContract, transactionsContract, welcomePacksContract } from './chunk-YTIHOF45.js';
|
|
2
2
|
import './chunk-XSASLENU.js';
|
|
3
3
|
import './chunk-KZ3X5E6E.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-FIUU5UFI.js';
|
|
5
5
|
import './chunk-7KWTYKKU.js';
|
|
6
6
|
import './chunk-TGBSASKU.js';
|
|
7
7
|
import './chunk-7GK4VHJM.js';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './chunk-DQYAIQQ5.js';
|
|
2
|
-
export { apiContract, fullApiContract } from './chunk-
|
|
2
|
+
export { apiContract, fullApiContract } from './chunk-YTIHOF45.js';
|
|
3
3
|
export { ALL_POSITIONS_SKIPPED, BAD_REQUEST, BLOCKHASH_EXPIRED, CONFLICT, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, NOT_FOUND, RATE_LIMITED, SIMULATION_FAILED, TRANSACTION_FAILED, UNAUTHENTICATED, UNAUTHORIZED } from './chunk-XSASLENU.js';
|
|
4
4
|
import './chunk-TEWZC6CW.js';
|
|
5
5
|
export { ClaimInviteRequestSchema, ClaimInviteResponseSchema, CreateInviteResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, DeleteRewardContractTransactionResponseSchema, EstimateCostToCreateRewardContractResponseSchema, FindRewardContractResponseSchema } from './chunk-KZ3X5E6E.js';
|
|
6
|
-
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-
|
|
6
|
+
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-FIUU5UFI.js';
|
|
7
7
|
export { BurnInputSchema, BurnOutputSchema, CreateHntAccountInputSchema, CreateHntAccountOutputSchema, GetBalancesInputSchema, MemoInputSchema, MemoOutputSchema, MultiTransferInputSchema, MultiTransferOutputSchema, MultiTransferRecipientSchema, TokenAccountSchema, TokenBalanceDataSchema, TransferInputSchema, TransferOutputSchema } from './chunk-7KWTYKKU.js';
|
|
8
8
|
export { BatchStatusOutputSchema, EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetHistoryInputSchema, GetInputSchema, HistoryActionSchema, HistoryOutputSchema, HistoryTransactionSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, ResubmitInputSchema, ResubmitOutputSchema, SubmitInputSchema, SubmitOutputSchema, TransactionStatusSchema } from './chunk-TGBSASKU.js';
|
|
9
9
|
export { BurnDataCreditsInputSchema, DelegateDataCreditsInputSchema, MintDataCreditsInputSchema } from './chunk-7GK4VHJM.js';
|
package/dist/schemas/swap.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ declare const QuoteResponseSchema: z.ZodObject<{
|
|
|
27
27
|
routePlan: z.ZodArray<z.ZodUnknown>;
|
|
28
28
|
contextSlot: z.ZodOptional<z.ZodNumber>;
|
|
29
29
|
timeTaken: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
excludeDexes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
31
|
}, z.core.$loose>;
|
|
31
32
|
declare const GetInstructionsInputSchema: z.ZodObject<{
|
|
32
33
|
quoteResponse: z.ZodObject<{
|
|
@@ -42,9 +43,11 @@ declare const GetInstructionsInputSchema: z.ZodObject<{
|
|
|
42
43
|
routePlan: z.ZodArray<z.ZodUnknown>;
|
|
43
44
|
contextSlot: z.ZodOptional<z.ZodNumber>;
|
|
44
45
|
timeTaken: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
excludeDexes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
48
|
userPublicKey: z.ZodString;
|
|
47
49
|
destinationTokenAccount: z.ZodOptional<z.ZodString>;
|
|
50
|
+
excludeDexes: z.ZodOptional<z.ZodString>;
|
|
48
51
|
dynamicComputeUnitLimit: z.ZodDefault<z.ZodBoolean>;
|
|
49
52
|
useSharedAccounts: z.ZodOptional<z.ZodBoolean>;
|
|
50
53
|
prioritizationFeeLamports: z.ZodOptional<z.ZodObject<{
|
package/dist/schemas/swap.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from '../chunk-
|
|
1
|
+
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from '../chunk-FIUU5UFI.js';
|
|
2
2
|
import '../chunk-Z4E3I2B4.js';
|
package/dist/schemas.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './chunk-TEWZC6CW.js';
|
|
2
2
|
export { ClaimInviteRequestSchema, ClaimInviteResponseSchema, CreateInviteResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, DeleteRewardContractTransactionResponseSchema, EstimateCostToCreateRewardContractResponseSchema, FindRewardContractResponseSchema } from './chunk-KZ3X5E6E.js';
|
|
3
|
-
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-
|
|
3
|
+
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-FIUU5UFI.js';
|
|
4
4
|
export { BurnInputSchema, BurnOutputSchema, CreateHntAccountInputSchema, CreateHntAccountOutputSchema, GetBalancesInputSchema, MemoInputSchema, MemoOutputSchema, MultiTransferInputSchema, MultiTransferOutputSchema, MultiTransferRecipientSchema, TokenAccountSchema, TokenBalanceDataSchema, TransferInputSchema, TransferOutputSchema } from './chunk-7KWTYKKU.js';
|
|
5
5
|
export { BatchStatusOutputSchema, EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetHistoryInputSchema, GetInputSchema, HistoryActionSchema, HistoryOutputSchema, HistoryTransactionSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, ResubmitInputSchema, ResubmitOutputSchema, SubmitInputSchema, SubmitOutputSchema, TransactionStatusSchema } from './chunk-TGBSASKU.js';
|
|
6
6
|
export { BurnDataCreditsInputSchema, DelegateDataCreditsInputSchema, MintDataCreditsInputSchema } from './chunk-7GK4VHJM.js';
|
package/package.json
CHANGED
package/dist/chunk-ZDMXM537.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { TransactionDataSchema } from './chunk-Z4E3I2B4.js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
var GetTokensInputSchema = z.object({
|
|
5
|
-
limit: z.coerce.number().int().min(1).max(100).default(50)
|
|
6
|
-
});
|
|
7
|
-
var GetQuoteInputSchema = z.object({
|
|
8
|
-
inputMint: z.string().min(1),
|
|
9
|
-
outputMint: z.string().min(1),
|
|
10
|
-
amount: z.string().min(1),
|
|
11
|
-
swapMode: z.enum(["ExactIn", "ExactOut"]).default("ExactIn"),
|
|
12
|
-
slippageBps: z.coerce.number().min(0).max(1e4).default(50),
|
|
13
|
-
excludeDexes: z.string().optional().describe("Comma-separated Jupiter DEX labels to leave out of the route")
|
|
14
|
-
}).refine((input) => input.inputMint !== input.outputMint, {
|
|
15
|
-
message: "inputMint and outputMint must be different",
|
|
16
|
-
path: ["outputMint"]
|
|
17
|
-
});
|
|
18
|
-
var QuoteResponseSchema = z.object({
|
|
19
|
-
inputMint: z.string(),
|
|
20
|
-
inAmount: z.string(),
|
|
21
|
-
outputMint: z.string(),
|
|
22
|
-
outAmount: z.string(),
|
|
23
|
-
otherAmountThreshold: z.string(),
|
|
24
|
-
swapMode: z.string(),
|
|
25
|
-
slippageBps: z.number(),
|
|
26
|
-
platformFee: z.unknown().optional(),
|
|
27
|
-
priceImpactPct: z.string(),
|
|
28
|
-
routePlan: z.array(z.unknown()),
|
|
29
|
-
contextSlot: z.number().optional(),
|
|
30
|
-
timeTaken: z.number().optional()
|
|
31
|
-
}).passthrough();
|
|
32
|
-
var GetInstructionsInputSchema = z.object({
|
|
33
|
-
quoteResponse: QuoteResponseSchema,
|
|
34
|
-
userPublicKey: z.string().min(1),
|
|
35
|
-
destinationTokenAccount: z.string().optional(),
|
|
36
|
-
dynamicComputeUnitLimit: z.boolean().default(true),
|
|
37
|
-
useSharedAccounts: z.boolean().optional().describe(
|
|
38
|
-
"Build the route through Jupiter's shared program accounts instead of the user's own intermediate token accounts."
|
|
39
|
-
),
|
|
40
|
-
prioritizationFeeLamports: z.object({
|
|
41
|
-
priorityLevelWithMaxLamports: z.object({
|
|
42
|
-
maxLamports: z.number().default(1e6),
|
|
43
|
-
priorityLevel: z.enum(["low", "medium", "high"]).default("medium")
|
|
44
|
-
})
|
|
45
|
-
}).optional()
|
|
46
|
-
});
|
|
47
|
-
var TokenSchema = z.object({
|
|
48
|
-
address: z.string(),
|
|
49
|
-
symbol: z.string(),
|
|
50
|
-
name: z.string(),
|
|
51
|
-
decimals: z.number(),
|
|
52
|
-
logoURI: z.string().optional(),
|
|
53
|
-
tags: z.array(z.string()).optional()
|
|
54
|
-
});
|
|
55
|
-
var TokenListOutputSchema = z.object({
|
|
56
|
-
tokens: z.array(TokenSchema)
|
|
57
|
-
});
|
|
58
|
-
var SwapTransactionDataSchema = TransactionDataSchema;
|
|
59
|
-
|
|
60
|
-
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema };
|