@helium/blockchain-api 0.19.0 → 0.21.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.
@@ -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().optional().describe(
47
+ "Deprecated. Accepted for compatibility and ignored: the server sets the compute unit limit itself."
48
+ ).meta({ deprecated: true }),
49
+ useSharedAccounts: z.boolean().optional().describe(
50
+ "Deprecated. 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
+ ).meta({ deprecated: true }),
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
+ "Deprecated. Accepted for compatibility and ignored: the server sets the compute unit price itself."
59
+ ).meta({ deprecated: true })
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-ZDMXM537.js';
3
+ import { GetInstructionsInputSchema, GetQuoteInputSchema, QuoteResponseSchema, GetTokensInputSchema, TokenListOutputSchema } from './chunk-7OJSYJA7.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';
@@ -564,6 +564,10 @@ var swapContract = oc.tag("Swap").router({
564
564
  JUPITER_ERROR: {
565
565
  message: "Failed to get swap instructions from Jupiter"
566
566
  },
567
+ TRANSACTION_TOO_LARGE: {
568
+ message: "The swap route does not fit in one transaction; try a smaller amount or a different pair",
569
+ status: 422
570
+ },
567
571
  INSUFFICIENT_FUNDS,
568
572
  RATE_LIMITED
569
573
  })
@@ -1172,9 +1172,9 @@ declare const hotspotsContract: {
1172
1172
  claimRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
1173
1173
  walletAddress: zod.ZodString;
1174
1174
  network: zod.ZodDefault<zod.ZodEnum<{
1175
+ hnt: "hnt";
1175
1176
  iot: "iot";
1176
1177
  mobile: "mobile";
1177
- hnt: "hnt";
1178
1178
  }>>;
1179
1179
  tuktuk: zod.ZodOptional<zod.ZodBoolean>;
1180
1180
  estimatedPendingRewards: zod.ZodOptional<zod.ZodObject<{
@@ -1243,9 +1243,9 @@ declare const hotspotsContract: {
1243
1243
  entityPubKey: zod.ZodString;
1244
1244
  walletAddress: zod.ZodString;
1245
1245
  network: zod.ZodDefault<zod.ZodEnum<{
1246
+ hnt: "hnt";
1246
1247
  iot: "iot";
1247
1248
  mobile: "mobile";
1248
- hnt: "hnt";
1249
1249
  }>>;
1250
1250
  }, zod_v4_core.$strip>, zod.ZodObject<{
1251
1251
  transactionData: zod.ZodObject<{
@@ -1335,9 +1335,9 @@ declare const hotspotsContract: {
1335
1335
  getPendingRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
1336
1336
  walletAddress: zod.ZodString;
1337
1337
  network: zod.ZodDefault<zod.ZodEnum<{
1338
+ hnt: "hnt";
1338
1339
  iot: "iot";
1339
1340
  mobile: "mobile";
1340
- hnt: "hnt";
1341
1341
  }>>;
1342
1342
  }, zod_v4_core.$strip>, zod.ZodObject<{
1343
1343
  pending: zod.ZodObject<{
@@ -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,10 +2724,12 @@ 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>;
2729
- dynamicComputeUnitLimit: zod.ZodDefault<zod.ZodBoolean>;
2731
+ excludeDexes: zod.ZodOptional<zod.ZodString>;
2732
+ dynamicComputeUnitLimit: zod.ZodOptional<zod.ZodBoolean>;
2730
2733
  useSharedAccounts: zod.ZodOptional<zod.ZodBoolean>;
2731
2734
  prioritizationFeeLamports: zod.ZodOptional<zod.ZodObject<{
2732
2735
  priorityLevelWithMaxLamports: zod.ZodObject<{
@@ -2757,6 +2760,10 @@ declare const swapContract: {
2757
2760
  JUPITER_ERROR: {
2758
2761
  message: string;
2759
2762
  };
2763
+ TRANSACTION_TOO_LARGE: {
2764
+ message: string;
2765
+ status: number;
2766
+ };
2760
2767
  INSUFFICIENT_FUNDS: {
2761
2768
  readonly status: 400;
2762
2769
  readonly message: "Insufficient SOL balance to complete this transaction.";
@@ -5106,9 +5113,9 @@ declare const apiContract: {
5106
5113
  claimRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
5107
5114
  walletAddress: zod.ZodString;
5108
5115
  network: zod.ZodDefault<zod.ZodEnum<{
5116
+ hnt: "hnt";
5109
5117
  iot: "iot";
5110
5118
  mobile: "mobile";
5111
- hnt: "hnt";
5112
5119
  }>>;
5113
5120
  tuktuk: zod.ZodOptional<zod.ZodBoolean>;
5114
5121
  estimatedPendingRewards: zod.ZodOptional<zod.ZodObject<{
@@ -5177,9 +5184,9 @@ declare const apiContract: {
5177
5184
  entityPubKey: zod.ZodString;
5178
5185
  walletAddress: zod.ZodString;
5179
5186
  network: zod.ZodDefault<zod.ZodEnum<{
5187
+ hnt: "hnt";
5180
5188
  iot: "iot";
5181
5189
  mobile: "mobile";
5182
- hnt: "hnt";
5183
5190
  }>>;
5184
5191
  }, zod_v4_core.$strip>, zod.ZodObject<{
5185
5192
  transactionData: zod.ZodObject<{
@@ -5269,9 +5276,9 @@ declare const apiContract: {
5269
5276
  getPendingRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
5270
5277
  walletAddress: zod.ZodString;
5271
5278
  network: zod.ZodDefault<zod.ZodEnum<{
5279
+ hnt: "hnt";
5272
5280
  iot: "iot";
5273
5281
  mobile: "mobile";
5274
- hnt: "hnt";
5275
5282
  }>>;
5276
5283
  }, zod_v4_core.$strip>, zod.ZodObject<{
5277
5284
  pending: zod.ZodObject<{
@@ -6628,6 +6635,7 @@ declare const apiContract: {
6628
6635
  routePlan: zod.ZodArray<zod.ZodUnknown>;
6629
6636
  contextSlot: zod.ZodOptional<zod.ZodNumber>;
6630
6637
  timeTaken: zod.ZodOptional<zod.ZodNumber>;
6638
+ excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
6631
6639
  }, zod_v4_core.$loose>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
6632
6640
  BAD_REQUEST: {
6633
6641
  message: string;
@@ -6655,10 +6663,12 @@ declare const apiContract: {
6655
6663
  routePlan: zod.ZodArray<zod.ZodUnknown>;
6656
6664
  contextSlot: zod.ZodOptional<zod.ZodNumber>;
6657
6665
  timeTaken: zod.ZodOptional<zod.ZodNumber>;
6666
+ excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
6658
6667
  }, zod_v4_core.$loose>;
6659
6668
  userPublicKey: zod.ZodString;
6660
6669
  destinationTokenAccount: zod.ZodOptional<zod.ZodString>;
6661
- dynamicComputeUnitLimit: zod.ZodDefault<zod.ZodBoolean>;
6670
+ excludeDexes: zod.ZodOptional<zod.ZodString>;
6671
+ dynamicComputeUnitLimit: zod.ZodOptional<zod.ZodBoolean>;
6662
6672
  useSharedAccounts: zod.ZodOptional<zod.ZodBoolean>;
6663
6673
  prioritizationFeeLamports: zod.ZodOptional<zod.ZodObject<{
6664
6674
  priorityLevelWithMaxLamports: zod.ZodObject<{
@@ -6689,6 +6699,10 @@ declare const apiContract: {
6689
6699
  JUPITER_ERROR: {
6690
6700
  message: string;
6691
6701
  };
6702
+ TRANSACTION_TOO_LARGE: {
6703
+ message: string;
6704
+ status: number;
6705
+ };
6692
6706
  INSUFFICIENT_FUNDS: {
6693
6707
  readonly status: 400;
6694
6708
  readonly message: "Insufficient SOL balance to complete this transaction.";
@@ -9024,9 +9038,9 @@ declare const fullApiContract: {
9024
9038
  claimRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
9025
9039
  walletAddress: zod.ZodString;
9026
9040
  network: zod.ZodDefault<zod.ZodEnum<{
9041
+ hnt: "hnt";
9027
9042
  iot: "iot";
9028
9043
  mobile: "mobile";
9029
- hnt: "hnt";
9030
9044
  }>>;
9031
9045
  tuktuk: zod.ZodOptional<zod.ZodBoolean>;
9032
9046
  estimatedPendingRewards: zod.ZodOptional<zod.ZodObject<{
@@ -9095,9 +9109,9 @@ declare const fullApiContract: {
9095
9109
  entityPubKey: zod.ZodString;
9096
9110
  walletAddress: zod.ZodString;
9097
9111
  network: zod.ZodDefault<zod.ZodEnum<{
9112
+ hnt: "hnt";
9098
9113
  iot: "iot";
9099
9114
  mobile: "mobile";
9100
- hnt: "hnt";
9101
9115
  }>>;
9102
9116
  }, zod_v4_core.$strip>, zod.ZodObject<{
9103
9117
  transactionData: zod.ZodObject<{
@@ -9187,9 +9201,9 @@ declare const fullApiContract: {
9187
9201
  getPendingRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
9188
9202
  walletAddress: zod.ZodString;
9189
9203
  network: zod.ZodDefault<zod.ZodEnum<{
9204
+ hnt: "hnt";
9190
9205
  iot: "iot";
9191
9206
  mobile: "mobile";
9192
- hnt: "hnt";
9193
9207
  }>>;
9194
9208
  }, zod_v4_core.$strip>, zod.ZodObject<{
9195
9209
  pending: zod.ZodObject<{
@@ -10546,6 +10560,7 @@ declare const fullApiContract: {
10546
10560
  routePlan: zod.ZodArray<zod.ZodUnknown>;
10547
10561
  contextSlot: zod.ZodOptional<zod.ZodNumber>;
10548
10562
  timeTaken: zod.ZodOptional<zod.ZodNumber>;
10563
+ excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
10549
10564
  }, 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
10565
  BAD_REQUEST: {
10551
10566
  message: string;
@@ -10573,10 +10588,12 @@ declare const fullApiContract: {
10573
10588
  routePlan: zod.ZodArray<zod.ZodUnknown>;
10574
10589
  contextSlot: zod.ZodOptional<zod.ZodNumber>;
10575
10590
  timeTaken: zod.ZodOptional<zod.ZodNumber>;
10591
+ excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
10576
10592
  }, zod_v4_core.$loose>;
10577
10593
  userPublicKey: zod.ZodString;
10578
10594
  destinationTokenAccount: zod.ZodOptional<zod.ZodString>;
10579
- dynamicComputeUnitLimit: zod.ZodDefault<zod.ZodBoolean>;
10595
+ excludeDexes: zod.ZodOptional<zod.ZodString>;
10596
+ dynamicComputeUnitLimit: zod.ZodOptional<zod.ZodBoolean>;
10580
10597
  useSharedAccounts: zod.ZodOptional<zod.ZodBoolean>;
10581
10598
  prioritizationFeeLamports: zod.ZodOptional<zod.ZodObject<{
10582
10599
  priorityLevelWithMaxLamports: zod.ZodObject<{
@@ -10607,6 +10624,10 @@ declare const fullApiContract: {
10607
10624
  JUPITER_ERROR: {
10608
10625
  message: string;
10609
10626
  };
10627
+ TRANSACTION_TOO_LARGE: {
10628
+ message: string;
10629
+ status: number;
10630
+ };
10610
10631
  INSUFFICIENT_FUNDS: {
10611
10632
  readonly status: 400;
10612
10633
  readonly message: "Insufficient SOL balance to complete this transaction.";
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-I6AEML6E.js';
1
+ export { apiContract, dataCreditsContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, squadsContract, swapContract, tokensContract, transactionsContract, welcomePacksContract } from './chunk-HOAOVAFX.js';
2
2
  import './chunk-XSASLENU.js';
3
3
  import './chunk-KZ3X5E6E.js';
4
- import './chunk-ZDMXM537.js';
4
+ import './chunk-7OJSYJA7.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-I6AEML6E.js';
2
+ export { apiContract, fullApiContract } from './chunk-HOAOVAFX.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-ZDMXM537.js';
6
+ export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-7OJSYJA7.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';
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  declare const RewardNetworkSchema: z.ZodDefault<z.ZodEnum<{
4
+ hnt: "hnt";
4
5
  iot: "iot";
5
6
  mobile: "mobile";
6
- hnt: "hnt";
7
7
  }>>;
8
8
  declare const HotspotTypeSchema: z.ZodEnum<{
9
9
  iot: "iot";
@@ -23,9 +23,9 @@ declare const GetHotspotsInputSchema: z.ZodObject<{
23
23
  declare const ClaimRewardsInputSchema: z.ZodObject<{
24
24
  walletAddress: z.ZodString;
25
25
  network: z.ZodDefault<z.ZodEnum<{
26
+ hnt: "hnt";
26
27
  iot: "iot";
27
28
  mobile: "mobile";
28
- hnt: "hnt";
29
29
  }>>;
30
30
  tuktuk: z.ZodOptional<z.ZodBoolean>;
31
31
  estimatedPendingRewards: z.ZodOptional<z.ZodObject<{
@@ -40,17 +40,17 @@ declare const ClaimHotspotRewardsInputSchema: z.ZodObject<{
40
40
  entityPubKey: z.ZodString;
41
41
  walletAddress: z.ZodString;
42
42
  network: z.ZodDefault<z.ZodEnum<{
43
+ hnt: "hnt";
43
44
  iot: "iot";
44
45
  mobile: "mobile";
45
- hnt: "hnt";
46
46
  }>>;
47
47
  }, z.core.$strip>;
48
48
  declare const GetPendingRewardsInputSchema: z.ZodObject<{
49
49
  walletAddress: z.ZodString;
50
50
  network: z.ZodDefault<z.ZodEnum<{
51
+ hnt: "hnt";
51
52
  iot: "iot";
52
53
  mobile: "mobile";
53
- hnt: "hnt";
54
54
  }>>;
55
55
  }, z.core.$strip>;
56
56
  declare const GetPendingRewardsOutputSchema: z.ZodObject<{
@@ -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,10 +43,12 @@ 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>;
48
- dynamicComputeUnitLimit: z.ZodDefault<z.ZodBoolean>;
50
+ excludeDexes: z.ZodOptional<z.ZodString>;
51
+ dynamicComputeUnitLimit: z.ZodOptional<z.ZodBoolean>;
49
52
  useSharedAccounts: z.ZodOptional<z.ZodBoolean>;
50
53
  prioritizationFeeLamports: z.ZodOptional<z.ZodObject<{
51
54
  priorityLevelWithMaxLamports: z.ZodObject<{
@@ -1,2 +1,2 @@
1
- export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from '../chunk-ZDMXM537.js';
1
+ export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from '../chunk-7OJSYJA7.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-ZDMXM537.js';
3
+ export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-7OJSYJA7.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helium/blockchain-api",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript client and schemas for the Helium Blockchain API",
6
6
  "license": "Apache-2.0",
@@ -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 };