@helium/blockchain-api 0.15.1 → 0.15.2

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.
@@ -1,4 +1,4 @@
1
- import { QuoteResponseSchema } from './chunk-G2CYWEEW.js';
1
+ import { QuoteResponseSchema } from './chunk-V3MNHRVC.js';
2
2
  import { createTransactionResponse } from './chunk-Z4E3I2B4.js';
3
3
  import { z } from 'zod';
4
4
 
@@ -1,4 +1,4 @@
1
- import { INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, BAD_REQUEST, NOT_FOUND, UNAUTHORIZED, CONFLICT, ALL_POSITIONS_SKIPPED, RATE_LIMITED, SIMULATION_FAILED, UNAUTHENTICATED } from './chunk-OYAOUZF2.js';
1
+ import { INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, BAD_REQUEST, NOT_FOUND, UNAUTHORIZED, CONFLICT, ALL_POSITIONS_SKIPPED, RATE_LIMITED, SIMULATION_FAILED, BLOCKHASH_EXPIRED, UNAUTHENTICATED } from './chunk-XLQY6ZFQ.js';
2
2
  import { BridgeWebhookInputSchema, BridgeWebhookOutputSchema } from './chunk-7CTJX35S.js';
3
3
  import { MigrateInputSchema, MigrateOutputSchema, MigratableHotspotsInputSchema, MigratableHotspotsOutputSchema } from './chunk-DDC5A2RH.js';
4
4
  import { ClaimInviteRequestSchema, ClaimInviteResponseSchema, CreateInviteResponseSchema, DeleteRewardContractTransactionResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, EstimateCostToCreateRewardContractResponseSchema, FindRewardContractResponseSchema } from './chunk-KZ3X5E6E.js';
@@ -6,8 +6,8 @@ import { CreateHntAccountInputSchema, CreateHntAccountOutputSchema, MemoInputSch
6
6
  import { GetHistoryInputSchema, HistoryOutputSchema, EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, PayerBatchesOutputSchema, GetByPayerInputSchema, ResubmitInputSchema, ResubmitOutputSchema, GetInputSchema, BatchStatusOutputSchema, SubmitInputSchema, SubmitOutputSchema } from './chunk-TGBSASKU.js';
7
7
  import { BurnDataCreditsInputSchema, DelegateDataCreditsInputSchema, MintDataCreditsInputSchema } from './chunk-7GK4VHJM.js';
8
8
  import { WelcomePackInviteInputSchema, WelcomePackInviteOutputSchema, WelcomePackClaimInputSchema, WelcomePackClaimOutputSchema, WelcomePackGetByAddressInputSchema, WelcomePackSchema, WelcomePackDeleteInputSchema, WelcomePackDeleteOutputSchema, WelcomePackGetInputSchema, WelcomePackCreateInputSchema, WelcomePackCreateOutputSchema, WelcomePackListInputSchema, WelcomePackListOutputSchema } from './chunk-WEDNM6LW.js';
9
- import { UpdateTransferInputSchema, UpdateTransferOutputSchema, SendFundsInputSchema, SendFundsOutputSchema, GetSendQuoteInputSchema, QuoteOutputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, CreateBankAccountInputSchema, BankAccountSchema, BankAccountListOutputSchema, FeesOutputSchema, InitKycInputSchema, KycStatusOutputSchema } from './chunk-4FTDGANR.js';
10
- import { GetInstructionsInputSchema, GetQuoteInputSchema, QuoteResponseSchema, GetTokensInputSchema, TokenListOutputSchema } from './chunk-G2CYWEEW.js';
9
+ import { UpdateTransferInputSchema, UpdateTransferOutputSchema, SendFundsInputSchema, SendFundsOutputSchema, GetSendQuoteInputSchema, QuoteOutputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, CreateBankAccountInputSchema, BankAccountSchema, BankAccountListOutputSchema, FeesOutputSchema, InitKycInputSchema, KycStatusOutputSchema } from './chunk-HHWYMUFM.js';
10
+ import { GetInstructionsInputSchema, GetQuoteInputSchema, QuoteResponseSchema, GetTokensInputSchema, TokenListOutputSchema } from './chunk-V3MNHRVC.js';
11
11
  import { UnassignProxiesInputSchema, UnassignProxiesResponseSchema, AssignProxiesInputSchema, AssignProxiesResponseSchema, RelinquishPositionVotesInputSchema, RelinquishPositionVotesResponseSchema, RelinquishVoteInputSchema, RelinquishVoteResponseSchema, VoteInputSchema, VoteResponseSchema, ExtendDelegationInputSchema, ExtendDelegationResponseSchema, UndelegateInputSchema, UndelegatePositionResponseSchema, ClaimDelegationRewardsInputSchema, ClaimDelegationRewardsResponseSchema, DelegatePositionInputSchema, DelegatePositionsResponseSchema, TransferPositionOwnershipInputSchema, TransferPositionOwnershipResponseSchema, TransferPositionInputSchema, TransferPositionResponseSchema, SplitPositionInputSchema, SplitPositionResponseSchema, ResetLockupInputSchema, ResetLockupResponseSchema, FlipLockupKindInputSchema, FlipLockupKindResponseSchema, ExtendPositionInputSchema, ExtendPositionResponseSchema, ClosePositionInputSchema, ClosePositionResponseSchema, CreatePositionInputSchema, CreatePositionResponseSchema, GetPositionsInputSchema, GetPositionsResponseSchema } from './chunk-4DJQOFI4.js';
12
12
  import { HealthResponseSchema } from './chunk-4RVSLJOU.js';
13
13
  import { UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, TopUpAutomationInputSchema, TopUpAutomationOutputSchema, OnboardDataOnlyHotspotInputSchema, OnboardDataOnlyHotspotOutputSchema, IssueDataOnlyHotspotInputSchema, IssueDataOnlyHotspotOutputSchema, RemoveEntityFromAutomationInputSchema, RemoveEntityFromAutomationOutputSchema, AddEntityToAutomationInputSchema, AddEntityToAutomationOutputSchema, AddWalletToAutomationInputSchema, AddWalletToAutomationOutputSchema, RequeueAutomationInputSchema, RequeueAutomationOutputSchema, GetFundingEstimateInputSchema, FundingEstimateOutputSchema, FundAutomationInputSchema, FundAutomationOutputSchema, SetupAutomationInputSchema, SetupAutomationOutputSchema, GetAutomationStatusInputSchema, AutomationStatusOutputSchema, CloseAutomationInputSchema, CloseAutomationOutputSchema, DeleteSplitInputSchema, DeleteSplitOutputSchema, CreateSplitInputSchema, CreateSplitOutputSchema, GetSplitInputSchema, SplitResponseSchema, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema, TransferHotspotInputSchema, TransferHotspotOutputSchema, GetPendingRewardsInputSchema, GetPendingRewardsOutputSchema, HotspotBurnInputSchema, HotspotBurnOutputSchema, ClaimHotspotRewardsInputSchema, ClaimHotspotRewardsOutputSchema, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, GetHotspotsInputSchema, HotspotsDataSchema } from './chunk-UZGBK5OK.js';
@@ -556,6 +556,7 @@ var transactionsContract = oc.tag("Transactions").router({
556
556
  summary: "Submit a transaction"
557
557
  }).input(SubmitInputSchema).output(SubmitOutputSchema).errors({
558
558
  BAD_REQUEST,
559
+ BLOCKHASH_EXPIRED,
559
560
  CONFLICT,
560
561
  SIMULATION_FAILED
561
562
  }),
@@ -10,6 +10,9 @@ var GetQuoteInputSchema = z.object({
10
10
  amount: z.string().min(1),
11
11
  swapMode: z.enum(["ExactIn", "ExactOut"]).default("ExactIn"),
12
12
  slippageBps: z.coerce.number().min(0).max(1e4).default(50)
13
+ }).refine((input) => input.inputMint !== input.outputMint, {
14
+ message: "inputMint and outputMint must be different",
15
+ path: ["outputMint"]
13
16
  });
14
17
  var QuoteResponseSchema = z.object({
15
18
  inputMint: z.string(),
@@ -55,13 +55,25 @@ var TRANSACTION_FAILED = {
55
55
  signature: z.string().optional()
56
56
  })
57
57
  };
58
+ var BLOCKHASH_EXPIRED = {
59
+ status: 400,
60
+ message: "Transaction blockhash has expired. Rebuild the transaction and sign it again.",
61
+ data: z.object({
62
+ /** The expired blockhash. */
63
+ blockhash: z.string().optional(),
64
+ /** Index in the submitted batch of the transaction that carries it. */
65
+ failedTransactionIndex: z.number().optional()
66
+ })
67
+ };
58
68
  var SIMULATION_FAILED = {
59
69
  status: 400,
60
70
  message: "Transaction simulation failed.",
61
71
  data: z.object({
62
72
  logs: z.array(z.string()).optional(),
63
- link: z.string().optional()
73
+ link: z.string().optional(),
74
+ /** Index in the submitted batch of the transaction that failed to simulate. */
75
+ failedTransactionIndex: z.number().optional()
64
76
  })
65
77
  };
66
78
 
67
- export { ALL_POSITIONS_SKIPPED, BAD_REQUEST, CONFLICT, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, NOT_FOUND, RATE_LIMITED, SIMULATION_FAILED, TRANSACTION_FAILED, UNAUTHENTICATED, UNAUTHORIZED };
79
+ export { ALL_POSITIONS_SKIPPED, BAD_REQUEST, BLOCKHASH_EXPIRED, CONFLICT, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, NOT_FOUND, RATE_LIMITED, SIMULATION_FAILED, TRANSACTION_FAILED, UNAUTHENTICATED, UNAUTHORIZED };
@@ -1164,9 +1164,9 @@ declare const hotspotsContract: {
1164
1164
  claimRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
1165
1165
  walletAddress: zod.ZodString;
1166
1166
  network: zod.ZodDefault<zod.ZodEnum<{
1167
+ hnt: "hnt";
1167
1168
  iot: "iot";
1168
1169
  mobile: "mobile";
1169
- hnt: "hnt";
1170
1170
  }>>;
1171
1171
  tuktuk: zod.ZodOptional<zod.ZodBoolean>;
1172
1172
  estimatedPendingRewards: zod.ZodOptional<zod.ZodObject<{
@@ -1235,9 +1235,9 @@ declare const hotspotsContract: {
1235
1235
  entityPubKey: zod.ZodString;
1236
1236
  walletAddress: zod.ZodString;
1237
1237
  network: zod.ZodDefault<zod.ZodEnum<{
1238
+ hnt: "hnt";
1238
1239
  iot: "iot";
1239
1240
  mobile: "mobile";
1240
- hnt: "hnt";
1241
1241
  }>>;
1242
1242
  }, zod_v4_core.$strip>, zod.ZodObject<{
1243
1243
  transactionData: zod.ZodObject<{
@@ -1327,9 +1327,9 @@ declare const hotspotsContract: {
1327
1327
  getPendingRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
1328
1328
  walletAddress: zod.ZodString;
1329
1329
  network: zod.ZodDefault<zod.ZodEnum<{
1330
+ hnt: "hnt";
1330
1331
  iot: "iot";
1331
1332
  mobile: "mobile";
1332
- hnt: "hnt";
1333
1333
  }>>;
1334
1334
  }, zod_v4_core.$strip>, zod.ZodObject<{
1335
1335
  pending: zod.ZodObject<{
@@ -2673,6 +2673,14 @@ declare const transactionsContract: {
2673
2673
  fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
2674
2674
  }, zod_v4_core.$strip>>;
2675
2675
  };
2676
+ BLOCKHASH_EXPIRED: {
2677
+ readonly status: 400;
2678
+ readonly message: "Transaction blockhash has expired. Rebuild the transaction and sign it again.";
2679
+ readonly data: zod.ZodObject<{
2680
+ blockhash: zod.ZodOptional<zod.ZodString>;
2681
+ failedTransactionIndex: zod.ZodOptional<zod.ZodNumber>;
2682
+ }, zod_v4_core.$strip>;
2683
+ };
2676
2684
  CONFLICT: {
2677
2685
  readonly status: 409;
2678
2686
  readonly message: "A resource with this identifier already exists.";
@@ -2683,6 +2691,7 @@ declare const transactionsContract: {
2683
2691
  readonly data: zod.ZodObject<{
2684
2692
  logs: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
2685
2693
  link: zod.ZodOptional<zod.ZodString>;
2694
+ failedTransactionIndex: zod.ZodOptional<zod.ZodNumber>;
2686
2695
  }, zod_v4_core.$strip>;
2687
2696
  };
2688
2697
  }>>, Record<never, never>>;
@@ -2894,6 +2903,7 @@ declare const transactionsContract: {
2894
2903
  readonly data: zod.ZodObject<{
2895
2904
  logs: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
2896
2905
  link: zod.ZodOptional<zod.ZodString>;
2906
+ failedTransactionIndex: zod.ZodOptional<zod.ZodNumber>;
2897
2907
  }, zod_v4_core.$strip>;
2898
2908
  };
2899
2909
  }>>, Record<never, never>>;
@@ -5296,9 +5306,9 @@ declare const apiContract: {
5296
5306
  claimRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
5297
5307
  walletAddress: zod.ZodString;
5298
5308
  network: zod.ZodDefault<zod.ZodEnum<{
5309
+ hnt: "hnt";
5299
5310
  iot: "iot";
5300
5311
  mobile: "mobile";
5301
- hnt: "hnt";
5302
5312
  }>>;
5303
5313
  tuktuk: zod.ZodOptional<zod.ZodBoolean>;
5304
5314
  estimatedPendingRewards: zod.ZodOptional<zod.ZodObject<{
@@ -5367,9 +5377,9 @@ declare const apiContract: {
5367
5377
  entityPubKey: zod.ZodString;
5368
5378
  walletAddress: zod.ZodString;
5369
5379
  network: zod.ZodDefault<zod.ZodEnum<{
5380
+ hnt: "hnt";
5370
5381
  iot: "iot";
5371
5382
  mobile: "mobile";
5372
- hnt: "hnt";
5373
5383
  }>>;
5374
5384
  }, zod_v4_core.$strip>, zod.ZodObject<{
5375
5385
  transactionData: zod.ZodObject<{
@@ -5459,9 +5469,9 @@ declare const apiContract: {
5459
5469
  getPendingRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
5460
5470
  walletAddress: zod.ZodString;
5461
5471
  network: zod.ZodDefault<zod.ZodEnum<{
5472
+ hnt: "hnt";
5462
5473
  iot: "iot";
5463
5474
  mobile: "mobile";
5464
- hnt: "hnt";
5465
5475
  }>>;
5466
5476
  }, zod_v4_core.$strip>, zod.ZodObject<{
5467
5477
  pending: zod.ZodObject<{
@@ -6802,6 +6812,14 @@ declare const apiContract: {
6802
6812
  fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
6803
6813
  }, zod_v4_core.$strip>>;
6804
6814
  };
6815
+ BLOCKHASH_EXPIRED: {
6816
+ readonly status: 400;
6817
+ readonly message: "Transaction blockhash has expired. Rebuild the transaction and sign it again.";
6818
+ readonly data: zod.ZodObject<{
6819
+ blockhash: zod.ZodOptional<zod.ZodString>;
6820
+ failedTransactionIndex: zod.ZodOptional<zod.ZodNumber>;
6821
+ }, zod_v4_core.$strip>;
6822
+ };
6805
6823
  CONFLICT: {
6806
6824
  readonly status: 409;
6807
6825
  readonly message: "A resource with this identifier already exists.";
@@ -6812,6 +6830,7 @@ declare const apiContract: {
6812
6830
  readonly data: zod.ZodObject<{
6813
6831
  logs: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
6814
6832
  link: zod.ZodOptional<zod.ZodString>;
6833
+ failedTransactionIndex: zod.ZodOptional<zod.ZodNumber>;
6815
6834
  }, zod_v4_core.$strip>;
6816
6835
  };
6817
6836
  }>>>, Record<never, never>>;
@@ -7023,6 +7042,7 @@ declare const apiContract: {
7023
7042
  readonly data: zod.ZodObject<{
7024
7043
  logs: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
7025
7044
  link: zod.ZodOptional<zod.ZodString>;
7045
+ failedTransactionIndex: zod.ZodOptional<zod.ZodNumber>;
7026
7046
  }, zod_v4_core.$strip>;
7027
7047
  };
7028
7048
  }>>>, Record<never, never>>;
@@ -9528,9 +9548,9 @@ declare const fullApiContract: {
9528
9548
  claimRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
9529
9549
  walletAddress: zod.ZodString;
9530
9550
  network: zod.ZodDefault<zod.ZodEnum<{
9551
+ hnt: "hnt";
9531
9552
  iot: "iot";
9532
9553
  mobile: "mobile";
9533
- hnt: "hnt";
9534
9554
  }>>;
9535
9555
  tuktuk: zod.ZodOptional<zod.ZodBoolean>;
9536
9556
  estimatedPendingRewards: zod.ZodOptional<zod.ZodObject<{
@@ -9599,9 +9619,9 @@ declare const fullApiContract: {
9599
9619
  entityPubKey: zod.ZodString;
9600
9620
  walletAddress: zod.ZodString;
9601
9621
  network: zod.ZodDefault<zod.ZodEnum<{
9622
+ hnt: "hnt";
9602
9623
  iot: "iot";
9603
9624
  mobile: "mobile";
9604
- hnt: "hnt";
9605
9625
  }>>;
9606
9626
  }, zod_v4_core.$strip>, zod.ZodObject<{
9607
9627
  transactionData: zod.ZodObject<{
@@ -9691,9 +9711,9 @@ declare const fullApiContract: {
9691
9711
  getPendingRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
9692
9712
  walletAddress: zod.ZodString;
9693
9713
  network: zod.ZodDefault<zod.ZodEnum<{
9714
+ hnt: "hnt";
9694
9715
  iot: "iot";
9695
9716
  mobile: "mobile";
9696
- hnt: "hnt";
9697
9717
  }>>;
9698
9718
  }, zod_v4_core.$strip>, zod.ZodObject<{
9699
9719
  pending: zod.ZodObject<{
@@ -11034,6 +11054,14 @@ declare const fullApiContract: {
11034
11054
  fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
11035
11055
  }, zod_v4_core.$strip>>;
11036
11056
  };
11057
+ BLOCKHASH_EXPIRED: {
11058
+ readonly status: 400;
11059
+ readonly message: "Transaction blockhash has expired. Rebuild the transaction and sign it again.";
11060
+ readonly data: zod.ZodObject<{
11061
+ blockhash: zod.ZodOptional<zod.ZodString>;
11062
+ failedTransactionIndex: zod.ZodOptional<zod.ZodNumber>;
11063
+ }, zod_v4_core.$strip>;
11064
+ };
11037
11065
  CONFLICT: {
11038
11066
  readonly status: 409;
11039
11067
  readonly message: "A resource with this identifier already exists.";
@@ -11044,6 +11072,7 @@ declare const fullApiContract: {
11044
11072
  readonly data: zod.ZodObject<{
11045
11073
  logs: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
11046
11074
  link: zod.ZodOptional<zod.ZodString>;
11075
+ failedTransactionIndex: zod.ZodOptional<zod.ZodNumber>;
11047
11076
  }, zod_v4_core.$strip>;
11048
11077
  };
11049
11078
  }>>>>, Record<never, never>>;
@@ -11255,6 +11284,7 @@ declare const fullApiContract: {
11255
11284
  readonly data: zod.ZodObject<{
11256
11285
  logs: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
11257
11286
  link: zod.ZodOptional<zod.ZodString>;
11287
+ failedTransactionIndex: zod.ZodOptional<zod.ZodNumber>;
11258
11288
  }, zod_v4_core.$strip>;
11259
11289
  };
11260
11290
  }>>>>, Record<never, never>>;
package/dist/contracts.js CHANGED
@@ -1,5 +1,5 @@
1
- export { apiContract, dataCreditsContract, fiatContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, squadsContract, swapContract, tokensContract, transactionsContract, webhooksContract, welcomePacksContract } from './chunk-42YQYRW4.js';
2
- import './chunk-OYAOUZF2.js';
1
+ export { apiContract, dataCreditsContract, fiatContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, squadsContract, swapContract, tokensContract, transactionsContract, webhooksContract, welcomePacksContract } from './chunk-HTHIW3UW.js';
2
+ import './chunk-XLQY6ZFQ.js';
3
3
  import './chunk-7CTJX35S.js';
4
4
  import './chunk-DDC5A2RH.js';
5
5
  import './chunk-KZ3X5E6E.js';
@@ -7,8 +7,8 @@ import './chunk-7KWTYKKU.js';
7
7
  import './chunk-TGBSASKU.js';
8
8
  import './chunk-7GK4VHJM.js';
9
9
  import './chunk-WEDNM6LW.js';
10
- import './chunk-4FTDGANR.js';
11
- import './chunk-G2CYWEEW.js';
10
+ import './chunk-HHWYMUFM.js';
11
+ import './chunk-V3MNHRVC.js';
12
12
  import './chunk-4DJQOFI4.js';
13
13
  import './chunk-4RVSLJOU.js';
14
14
  import './chunk-UZGBK5OK.js';
package/dist/errors.d.ts CHANGED
@@ -75,6 +75,19 @@ declare const TRANSACTION_FAILED: {
75
75
  signature: z.ZodOptional<z.ZodString>;
76
76
  }, z.core.$strip>;
77
77
  };
78
+ /**
79
+ * A submitted transaction carries a blockhash the cluster no longer accepts,
80
+ * so it can never land. Distinct from a generic bad request: the client has to
81
+ * rebuild the transaction on a fresh blockhash and have it signed again.
82
+ */
83
+ declare const BLOCKHASH_EXPIRED: {
84
+ readonly status: 400;
85
+ readonly message: "Transaction blockhash has expired. Rebuild the transaction and sign it again.";
86
+ readonly data: z.ZodObject<{
87
+ blockhash: z.ZodOptional<z.ZodString>;
88
+ failedTransactionIndex: z.ZodOptional<z.ZodNumber>;
89
+ }, z.core.$strip>;
90
+ };
78
91
  /** Transaction simulation failed error */
79
92
  declare const SIMULATION_FAILED: {
80
93
  readonly status: 400;
@@ -82,7 +95,8 @@ declare const SIMULATION_FAILED: {
82
95
  readonly data: z.ZodObject<{
83
96
  logs: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
97
  link: z.ZodOptional<z.ZodString>;
98
+ failedTransactionIndex: z.ZodOptional<z.ZodNumber>;
85
99
  }, z.core.$strip>;
86
100
  };
87
101
 
88
- export { ALL_POSITIONS_SKIPPED, BAD_REQUEST, CONFLICT, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, NOT_FOUND, RATE_LIMITED, SIMULATION_FAILED, TRANSACTION_FAILED, UNAUTHENTICATED, UNAUTHORIZED };
102
+ export { ALL_POSITIONS_SKIPPED, BAD_REQUEST, BLOCKHASH_EXPIRED, CONFLICT, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, NOT_FOUND, RATE_LIMITED, SIMULATION_FAILED, TRANSACTION_FAILED, UNAUTHENTICATED, UNAUTHORIZED };
package/dist/errors.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import './chunk-DQYAIQQ5.js';
2
- export { ALL_POSITIONS_SKIPPED, BAD_REQUEST, CONFLICT, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, NOT_FOUND, RATE_LIMITED, SIMULATION_FAILED, TRANSACTION_FAILED, UNAUTHENTICATED, UNAUTHORIZED } from './chunk-OYAOUZF2.js';
2
+ 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-XLQY6ZFQ.js';
3
3
  import './chunk-4DJQOFI4.js';
4
4
  import './chunk-Z4E3I2B4.js';
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export { BatchStatusOutput, BatchStatusOutputSchema, EstimateInput, EstimateInpu
10
10
  export { WelcomePack, WelcomePackClaimInput, WelcomePackClaimInputSchema, WelcomePackClaimOutput, WelcomePackClaimOutputSchema, WelcomePackCreateInput, WelcomePackCreateInputSchema, WelcomePackCreateOutput, WelcomePackCreateOutputSchema, WelcomePackDeleteInput, WelcomePackDeleteInputSchema, WelcomePackDeleteOutput, WelcomePackDeleteOutputSchema, WelcomePackGetByAddressInput, WelcomePackGetByAddressInputSchema, WelcomePackGetInput, WelcomePackGetInputSchema, WelcomePackInviteInput, WelcomePackInviteInputSchema, WelcomePackInviteOutput, WelcomePackInviteOutputSchema, WelcomePackListInput, WelcomePackListInputSchema, WelcomePackListOutput, WelcomePackListOutputSchema, WelcomePackSchema } from './schemas/welcome-packs.js';
11
11
  export { MigratableHotspotSchema, MigratableHotspotsInput, MigratableHotspotsInputSchema, MigratableHotspotsOutput, MigratableHotspotsOutputSchema, MigrateInput, MigrateInputSchema, MigrateOutput, MigrateOutputSchema, MigrateTransactionDataSchema, MigrateTransactionItemSchema } from './schemas/migration.js';
12
12
  export { BurnDataCreditsInput, BurnDataCreditsInputSchema, DelegateDataCreditsInput, DelegateDataCreditsInputSchema, MintDataCreditsInput, MintDataCreditsInputSchema } from './schemas/data-credits.js';
13
- export { ALL_POSITIONS_SKIPPED, BAD_REQUEST, CONFLICT, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, NOT_FOUND, RATE_LIMITED, SIMULATION_FAILED, TRANSACTION_FAILED, UNAUTHENTICATED, UNAUTHORIZED } from './errors.js';
13
+ 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 './errors.js';
14
14
  export { apiContract, fullApiContract } from './contracts.js';
15
15
  import 'zod';
16
16
  import '@orpc/contract';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import './chunk-DQYAIQQ5.js';
2
- export { apiContract, fullApiContract } from './chunk-42YQYRW4.js';
3
- export { ALL_POSITIONS_SKIPPED, BAD_REQUEST, CONFLICT, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, NOT_FOUND, RATE_LIMITED, SIMULATION_FAILED, TRANSACTION_FAILED, UNAUTHENTICATED, UNAUTHORIZED } from './chunk-OYAOUZF2.js';
2
+ export { apiContract, fullApiContract } from './chunk-HTHIW3UW.js';
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-XLQY6ZFQ.js';
4
4
  import './chunk-7CTJX35S.js';
5
5
  import './chunk-TPPTOJHD.js';
6
6
  export { MigratableHotspotSchema, MigratableHotspotsInputSchema, MigratableHotspotsOutputSchema, MigrateInputSchema, MigrateOutputSchema, MigrateTransactionDataSchema, MigrateTransactionItemSchema } from './chunk-DDC5A2RH.js';
@@ -9,8 +9,8 @@ export { BurnInputSchema, BurnOutputSchema, CreateHntAccountInputSchema, CreateH
9
9
  export { BatchStatusOutputSchema, EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetHistoryInputSchema, GetInputSchema, HistoryActionSchema, HistoryOutputSchema, HistoryTransactionSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, ResubmitInputSchema, ResubmitOutputSchema, SubmitInputSchema, SubmitOutputSchema, TransactionStatusSchema } from './chunk-TGBSASKU.js';
10
10
  export { BurnDataCreditsInputSchema, DelegateDataCreditsInputSchema, MintDataCreditsInputSchema } from './chunk-7GK4VHJM.js';
11
11
  export { WelcomePackClaimInputSchema, WelcomePackClaimOutputSchema, WelcomePackCreateInputSchema, WelcomePackCreateOutputSchema, WelcomePackDeleteInputSchema, WelcomePackDeleteOutputSchema, WelcomePackGetByAddressInputSchema, WelcomePackGetInputSchema, WelcomePackInviteInputSchema, WelcomePackInviteOutputSchema, WelcomePackListInputSchema, WelcomePackListOutputSchema, WelcomePackSchema } from './chunk-WEDNM6LW.js';
12
- export { BankAccountListOutputSchema, BankAccountSchema, BridgeTransferSchema, CreateBankAccountInputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, FeesOutputSchema, GetBankAccountInputSchema, GetSendQuoteInputSchema, GetTransferInputSchema, InitKycInputSchema, KycStatusOutputSchema, QuoteOutputSchema, SendFundsInputSchema, SendFundsOutputSchema, UpdateTransferInputSchema, UpdateTransferOutputSchema } from './chunk-4FTDGANR.js';
13
- export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-G2CYWEEW.js';
12
+ export { BankAccountListOutputSchema, BankAccountSchema, BridgeTransferSchema, CreateBankAccountInputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, FeesOutputSchema, GetBankAccountInputSchema, GetSendQuoteInputSchema, GetTransferInputSchema, InitKycInputSchema, KycStatusOutputSchema, QuoteOutputSchema, SendFundsInputSchema, SendFundsOutputSchema, UpdateTransferInputSchema, UpdateTransferOutputSchema } from './chunk-HHWYMUFM.js';
13
+ export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-V3MNHRVC.js';
14
14
  export { AssignProxiesInputSchema, AssignProxiesResponseSchema, ClaimDelegationRewardsInputSchema, ClaimDelegationRewardsResponseSchema, ClosePositionInputSchema, ClosePositionResponseSchema, CreatePositionInputSchema, CreatePositionResponseSchema, DelegatePositionInputSchema, DelegatePositionsResponseSchema, ExtendDelegationInputSchema, ExtendDelegationResponseSchema, ExtendPositionInputSchema, ExtendPositionResponseSchema, FlipLockupKindInputSchema, FlipLockupKindResponseSchema, GetPositionsInputSchema, GetPositionsResponseSchema, LockupKindSchema, PositionSchema, RelinquishPositionVotesInputSchema, RelinquishPositionVotesResponseSchema, RelinquishVoteInputSchema, RelinquishVoteResponseSchema, ResetLockupInputSchema, ResetLockupResponseSchema, SkipReasonSchema, SkippedPositionSchema, SplitPositionInputSchema, SplitPositionResponseSchema, TransferPositionInputSchema, TransferPositionOwnershipInputSchema, TransferPositionOwnershipResponseSchema, TransferPositionResponseSchema, UnassignProxiesInputSchema, UnassignProxiesResponseSchema, UndelegateInputSchema, UndelegatePositionResponseSchema, VoteInputSchema, VoteResponseSchema } from './chunk-4DJQOFI4.js';
15
15
  export { HealthResponseSchema } from './chunk-4RVSLJOU.js';
16
16
  export { AddEntityToAutomationInputSchema, AddEntityToAutomationOutputSchema, AddWalletToAutomationInputSchema, AddWalletToAutomationOutputSchema, AutomationScheduleSchema, AutomationStatusOutputSchema, ClaimHotspotRewardsInputSchema, ClaimHotspotRewardsOutputSchema, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, CloseAutomationInputSchema, CloseAutomationOutputSchema, CreateSplitInputSchema, CreateSplitOutputSchema, DeleteSplitInputSchema, DeleteSplitOutputSchema, DeviceTypeSchema, FundAutomationInputSchema, FundAutomationOutputSchema, FundingEstimateOutputSchema, GetAutomationStatusInputSchema, GetFundingEstimateInputSchema, GetHotspotsInputSchema, GetPendingRewardsInputSchema, GetPendingRewardsOutputSchema, GetSplitInputSchema, HotspotBurnInputSchema, HotspotBurnOutputSchema, HotspotSchema, HotspotSharesSchema, HotspotTypeSchema, HotspotsDataSchema, IssueDataOnlyHotspotInputSchema, IssueDataOnlyHotspotOutputSchema, OnboardDataOnlyHotspotInputSchema, OnboardDataOnlyHotspotOutputSchema, OwnershipTypeSchema, RemoveEntityFromAutomationInputSchema, RemoveEntityFromAutomationOutputSchema, RequeueAutomationInputSchema, RequeueAutomationOutputSchema, RewardNetworkSchema, SetupAutomationInputSchema, SetupAutomationOutputSchema, SplitResponseSchema, SplitShareSchema, TopUpAutomationInputSchema, TopUpAutomationOutputSchema, TransferHotspotInputSchema, TransferHotspotOutputSchema, UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema } from './chunk-UZGBK5OK.js';
@@ -1,3 +1,3 @@
1
- export { BankAccountListOutputSchema, BankAccountSchema, BridgeTransferSchema, CreateBankAccountInputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, FeesOutputSchema, GetBankAccountInputSchema, GetSendQuoteInputSchema, GetTransferInputSchema, InitKycInputSchema, KycStatusOutputSchema, QuoteOutputSchema, SendFundsInputSchema, SendFundsOutputSchema, UpdateTransferInputSchema, UpdateTransferOutputSchema } from '../chunk-4FTDGANR.js';
2
- import '../chunk-G2CYWEEW.js';
1
+ export { BankAccountListOutputSchema, BankAccountSchema, BridgeTransferSchema, CreateBankAccountInputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, FeesOutputSchema, GetBankAccountInputSchema, GetSendQuoteInputSchema, GetTransferInputSchema, InitKycInputSchema, KycStatusOutputSchema, QuoteOutputSchema, SendFundsInputSchema, SendFundsOutputSchema, UpdateTransferInputSchema, UpdateTransferOutputSchema } from '../chunk-HHWYMUFM.js';
2
+ import '../chunk-V3MNHRVC.js';
3
3
  import '../chunk-Z4E3I2B4.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<{
@@ -1,2 +1,2 @@
1
- export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from '../chunk-G2CYWEEW.js';
1
+ export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from '../chunk-V3MNHRVC.js';
2
2
  import '../chunk-Z4E3I2B4.js';
package/dist/schemas.js CHANGED
@@ -5,8 +5,8 @@ export { BurnInputSchema, BurnOutputSchema, CreateHntAccountInputSchema, CreateH
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';
7
7
  export { WelcomePackClaimInputSchema, WelcomePackClaimOutputSchema, WelcomePackCreateInputSchema, WelcomePackCreateOutputSchema, WelcomePackDeleteInputSchema, WelcomePackDeleteOutputSchema, WelcomePackGetByAddressInputSchema, WelcomePackGetInputSchema, WelcomePackInviteInputSchema, WelcomePackInviteOutputSchema, WelcomePackListInputSchema, WelcomePackListOutputSchema, WelcomePackSchema } from './chunk-WEDNM6LW.js';
8
- export { BankAccountListOutputSchema, BankAccountSchema, BridgeTransferSchema, CreateBankAccountInputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, FeesOutputSchema, GetBankAccountInputSchema, GetSendQuoteInputSchema, GetTransferInputSchema, InitKycInputSchema, KycStatusOutputSchema, QuoteOutputSchema, SendFundsInputSchema, SendFundsOutputSchema, UpdateTransferInputSchema, UpdateTransferOutputSchema } from './chunk-4FTDGANR.js';
9
- export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-G2CYWEEW.js';
8
+ export { BankAccountListOutputSchema, BankAccountSchema, BridgeTransferSchema, CreateBankAccountInputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, FeesOutputSchema, GetBankAccountInputSchema, GetSendQuoteInputSchema, GetTransferInputSchema, InitKycInputSchema, KycStatusOutputSchema, QuoteOutputSchema, SendFundsInputSchema, SendFundsOutputSchema, UpdateTransferInputSchema, UpdateTransferOutputSchema } from './chunk-HHWYMUFM.js';
9
+ export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-V3MNHRVC.js';
10
10
  export { AssignProxiesInputSchema, AssignProxiesResponseSchema, ClaimDelegationRewardsInputSchema, ClaimDelegationRewardsResponseSchema, ClosePositionInputSchema, ClosePositionResponseSchema, CreatePositionInputSchema, CreatePositionResponseSchema, DelegatePositionInputSchema, DelegatePositionsResponseSchema, ExtendDelegationInputSchema, ExtendDelegationResponseSchema, ExtendPositionInputSchema, ExtendPositionResponseSchema, FlipLockupKindInputSchema, FlipLockupKindResponseSchema, GetPositionsInputSchema, GetPositionsResponseSchema, LockupKindSchema, PositionSchema, RelinquishPositionVotesInputSchema, RelinquishPositionVotesResponseSchema, RelinquishVoteInputSchema, RelinquishVoteResponseSchema, ResetLockupInputSchema, ResetLockupResponseSchema, SkipReasonSchema, SkippedPositionSchema, SplitPositionInputSchema, SplitPositionResponseSchema, TransferPositionInputSchema, TransferPositionOwnershipInputSchema, TransferPositionOwnershipResponseSchema, TransferPositionResponseSchema, UnassignProxiesInputSchema, UnassignProxiesResponseSchema, UndelegateInputSchema, UndelegatePositionResponseSchema, VoteInputSchema, VoteResponseSchema } from './chunk-4DJQOFI4.js';
11
11
  export { HealthResponseSchema } from './chunk-4RVSLJOU.js';
12
12
  export { AddEntityToAutomationInputSchema, AddEntityToAutomationOutputSchema, AddWalletToAutomationInputSchema, AddWalletToAutomationOutputSchema, AutomationScheduleSchema, AutomationStatusOutputSchema, ClaimHotspotRewardsInputSchema, ClaimHotspotRewardsOutputSchema, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, CloseAutomationInputSchema, CloseAutomationOutputSchema, CreateSplitInputSchema, CreateSplitOutputSchema, DeleteSplitInputSchema, DeleteSplitOutputSchema, DeviceTypeSchema, FundAutomationInputSchema, FundAutomationOutputSchema, FundingEstimateOutputSchema, GetAutomationStatusInputSchema, GetFundingEstimateInputSchema, GetHotspotsInputSchema, GetPendingRewardsInputSchema, GetPendingRewardsOutputSchema, GetSplitInputSchema, HotspotBurnInputSchema, HotspotBurnOutputSchema, HotspotSchema, HotspotSharesSchema, HotspotTypeSchema, HotspotsDataSchema, IssueDataOnlyHotspotInputSchema, IssueDataOnlyHotspotOutputSchema, OnboardDataOnlyHotspotInputSchema, OnboardDataOnlyHotspotOutputSchema, OwnershipTypeSchema, RemoveEntityFromAutomationInputSchema, RemoveEntityFromAutomationOutputSchema, RequeueAutomationInputSchema, RequeueAutomationOutputSchema, RewardNetworkSchema, SetupAutomationInputSchema, SetupAutomationOutputSchema, SplitResponseSchema, SplitShareSchema, TopUpAutomationInputSchema, TopUpAutomationOutputSchema, TransferHotspotInputSchema, TransferHotspotOutputSchema, UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema } from './chunk-UZGBK5OK.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helium/blockchain-api",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "type": "module",
5
5
  "description": "TypeScript client and schemas for the Helium Blockchain API",
6
6
  "license": "Apache-2.0",