@helium/blockchain-api 0.20.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.
@@ -43,20 +43,20 @@ var GetInstructionsInputSchema = z.object({
43
43
  excludeDexes: z.string().optional().describe(
44
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
45
  ),
46
- dynamicComputeUnitLimit: z.boolean().default(true).describe(
47
- "Accepted for compatibility and ignored: the server sets the compute unit limit itself."
48
- ),
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
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
- ),
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
52
  prioritizationFeeLamports: z.object({
53
53
  priorityLevelWithMaxLamports: z.object({
54
54
  maxLamports: z.number().default(1e6),
55
55
  priorityLevel: z.enum(["low", "medium", "high"]).default("medium")
56
56
  })
57
57
  }).optional().describe(
58
- "Accepted for compatibility and ignored: the server sets the compute unit price itself."
59
- )
58
+ "Deprecated. Accepted for compatibility and ignored: the server sets the compute unit price itself."
59
+ ).meta({ deprecated: true })
60
60
  });
61
61
  var TokenSchema = z.object({
62
62
  address: z.string(),
@@ -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-FIUU5UFI.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<{
@@ -2729,7 +2729,7 @@ declare const swapContract: {
2729
2729
  userPublicKey: zod.ZodString;
2730
2730
  destinationTokenAccount: zod.ZodOptional<zod.ZodString>;
2731
2731
  excludeDexes: zod.ZodOptional<zod.ZodString>;
2732
- dynamicComputeUnitLimit: zod.ZodDefault<zod.ZodBoolean>;
2732
+ dynamicComputeUnitLimit: zod.ZodOptional<zod.ZodBoolean>;
2733
2733
  useSharedAccounts: zod.ZodOptional<zod.ZodBoolean>;
2734
2734
  prioritizationFeeLamports: zod.ZodOptional<zod.ZodObject<{
2735
2735
  priorityLevelWithMaxLamports: zod.ZodObject<{
@@ -2760,6 +2760,10 @@ declare const swapContract: {
2760
2760
  JUPITER_ERROR: {
2761
2761
  message: string;
2762
2762
  };
2763
+ TRANSACTION_TOO_LARGE: {
2764
+ message: string;
2765
+ status: number;
2766
+ };
2763
2767
  INSUFFICIENT_FUNDS: {
2764
2768
  readonly status: 400;
2765
2769
  readonly message: "Insufficient SOL balance to complete this transaction.";
@@ -5109,9 +5113,9 @@ declare const apiContract: {
5109
5113
  claimRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
5110
5114
  walletAddress: zod.ZodString;
5111
5115
  network: zod.ZodDefault<zod.ZodEnum<{
5116
+ hnt: "hnt";
5112
5117
  iot: "iot";
5113
5118
  mobile: "mobile";
5114
- hnt: "hnt";
5115
5119
  }>>;
5116
5120
  tuktuk: zod.ZodOptional<zod.ZodBoolean>;
5117
5121
  estimatedPendingRewards: zod.ZodOptional<zod.ZodObject<{
@@ -5180,9 +5184,9 @@ declare const apiContract: {
5180
5184
  entityPubKey: zod.ZodString;
5181
5185
  walletAddress: zod.ZodString;
5182
5186
  network: zod.ZodDefault<zod.ZodEnum<{
5187
+ hnt: "hnt";
5183
5188
  iot: "iot";
5184
5189
  mobile: "mobile";
5185
- hnt: "hnt";
5186
5190
  }>>;
5187
5191
  }, zod_v4_core.$strip>, zod.ZodObject<{
5188
5192
  transactionData: zod.ZodObject<{
@@ -5272,9 +5276,9 @@ declare const apiContract: {
5272
5276
  getPendingRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
5273
5277
  walletAddress: zod.ZodString;
5274
5278
  network: zod.ZodDefault<zod.ZodEnum<{
5279
+ hnt: "hnt";
5275
5280
  iot: "iot";
5276
5281
  mobile: "mobile";
5277
- hnt: "hnt";
5278
5282
  }>>;
5279
5283
  }, zod_v4_core.$strip>, zod.ZodObject<{
5280
5284
  pending: zod.ZodObject<{
@@ -6664,7 +6668,7 @@ declare const apiContract: {
6664
6668
  userPublicKey: zod.ZodString;
6665
6669
  destinationTokenAccount: zod.ZodOptional<zod.ZodString>;
6666
6670
  excludeDexes: zod.ZodOptional<zod.ZodString>;
6667
- dynamicComputeUnitLimit: zod.ZodDefault<zod.ZodBoolean>;
6671
+ dynamicComputeUnitLimit: zod.ZodOptional<zod.ZodBoolean>;
6668
6672
  useSharedAccounts: zod.ZodOptional<zod.ZodBoolean>;
6669
6673
  prioritizationFeeLamports: zod.ZodOptional<zod.ZodObject<{
6670
6674
  priorityLevelWithMaxLamports: zod.ZodObject<{
@@ -6695,6 +6699,10 @@ declare const apiContract: {
6695
6699
  JUPITER_ERROR: {
6696
6700
  message: string;
6697
6701
  };
6702
+ TRANSACTION_TOO_LARGE: {
6703
+ message: string;
6704
+ status: number;
6705
+ };
6698
6706
  INSUFFICIENT_FUNDS: {
6699
6707
  readonly status: 400;
6700
6708
  readonly message: "Insufficient SOL balance to complete this transaction.";
@@ -9030,9 +9038,9 @@ declare const fullApiContract: {
9030
9038
  claimRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
9031
9039
  walletAddress: zod.ZodString;
9032
9040
  network: zod.ZodDefault<zod.ZodEnum<{
9041
+ hnt: "hnt";
9033
9042
  iot: "iot";
9034
9043
  mobile: "mobile";
9035
- hnt: "hnt";
9036
9044
  }>>;
9037
9045
  tuktuk: zod.ZodOptional<zod.ZodBoolean>;
9038
9046
  estimatedPendingRewards: zod.ZodOptional<zod.ZodObject<{
@@ -9101,9 +9109,9 @@ declare const fullApiContract: {
9101
9109
  entityPubKey: zod.ZodString;
9102
9110
  walletAddress: zod.ZodString;
9103
9111
  network: zod.ZodDefault<zod.ZodEnum<{
9112
+ hnt: "hnt";
9104
9113
  iot: "iot";
9105
9114
  mobile: "mobile";
9106
- hnt: "hnt";
9107
9115
  }>>;
9108
9116
  }, zod_v4_core.$strip>, zod.ZodObject<{
9109
9117
  transactionData: zod.ZodObject<{
@@ -9193,9 +9201,9 @@ declare const fullApiContract: {
9193
9201
  getPendingRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
9194
9202
  walletAddress: zod.ZodString;
9195
9203
  network: zod.ZodDefault<zod.ZodEnum<{
9204
+ hnt: "hnt";
9196
9205
  iot: "iot";
9197
9206
  mobile: "mobile";
9198
- hnt: "hnt";
9199
9207
  }>>;
9200
9208
  }, zod_v4_core.$strip>, zod.ZodObject<{
9201
9209
  pending: zod.ZodObject<{
@@ -10585,7 +10593,7 @@ declare const fullApiContract: {
10585
10593
  userPublicKey: zod.ZodString;
10586
10594
  destinationTokenAccount: zod.ZodOptional<zod.ZodString>;
10587
10595
  excludeDexes: zod.ZodOptional<zod.ZodString>;
10588
- dynamicComputeUnitLimit: zod.ZodDefault<zod.ZodBoolean>;
10596
+ dynamicComputeUnitLimit: zod.ZodOptional<zod.ZodBoolean>;
10589
10597
  useSharedAccounts: zod.ZodOptional<zod.ZodBoolean>;
10590
10598
  prioritizationFeeLamports: zod.ZodOptional<zod.ZodObject<{
10591
10599
  priorityLevelWithMaxLamports: zod.ZodObject<{
@@ -10616,6 +10624,10 @@ declare const fullApiContract: {
10616
10624
  JUPITER_ERROR: {
10617
10625
  message: string;
10618
10626
  };
10627
+ TRANSACTION_TOO_LARGE: {
10628
+ message: string;
10629
+ status: number;
10630
+ };
10619
10631
  INSUFFICIENT_FUNDS: {
10620
10632
  readonly status: 400;
10621
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-YTIHOF45.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-FIUU5UFI.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-YTIHOF45.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-FIUU5UFI.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<{
@@ -48,7 +48,7 @@ declare const GetInstructionsInputSchema: z.ZodObject<{
48
48
  userPublicKey: z.ZodString;
49
49
  destinationTokenAccount: z.ZodOptional<z.ZodString>;
50
50
  excludeDexes: z.ZodOptional<z.ZodString>;
51
- dynamicComputeUnitLimit: z.ZodDefault<z.ZodBoolean>;
51
+ dynamicComputeUnitLimit: z.ZodOptional<z.ZodBoolean>;
52
52
  useSharedAccounts: z.ZodOptional<z.ZodBoolean>;
53
53
  prioritizationFeeLamports: z.ZodOptional<z.ZodObject<{
54
54
  priorityLevelWithMaxLamports: z.ZodObject<{
@@ -1,2 +1,2 @@
1
- export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from '../chunk-FIUU5UFI.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-FIUU5UFI.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.20.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",