@helium/blockchain-api 0.2.3 → 0.2.4

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/index.d.ts CHANGED
@@ -381,7 +381,7 @@ declare const apiContract: {
381
381
  }, zod_v4_core.$strip>>;
382
382
  rentFee: zod.ZodNumber;
383
383
  recipientFee: zod.ZodNumber;
384
- solFee: zod.ZodNumber;
384
+ operationalSol: zod.ZodNumber;
385
385
  remainingClaims: zod.ZodOptional<zod.ZodNumber>;
386
386
  fundingPeriodInfo: zod.ZodOptional<zod.ZodObject<{
387
387
  periodLength: zod.ZodEnum<{
@@ -461,19 +461,15 @@ declare const apiContract: {
461
461
  walletAddress: zod.ZodString;
462
462
  duration: zod.ZodCoercedNumber<unknown>;
463
463
  }, zod_v4_core.$strip>, zod.ZodObject<{
464
+ rentFee: zod.ZodNumber;
464
465
  cronJobFunding: zod.ZodNumber;
465
466
  pdaWalletFunding: zod.ZodNumber;
466
467
  recipientFee: zod.ZodNumber;
467
- totalFunding: zod.ZodNumber;
468
+ operationalSol: zod.ZodNumber;
469
+ totalSolNeeded: zod.ZodNumber;
468
470
  currentCronJobBalance: zod.ZodString;
469
471
  currentPdaWalletBalance: zod.ZodString;
470
- additionalFundingNeeded: zod.ZodNumber;
471
- }, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
472
- NOT_FOUND: {
473
- readonly status: 404;
474
- readonly message: "The requested resource was not found.";
475
- };
476
- }>>>, Record<never, never>>;
472
+ }, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, Omit<Record<never, never>, keyof U>>>, Record<never, never>>;
477
473
  };
478
474
  swap: {
479
475
  getTokens: _orpc_contract.ContractProcedure<zod.ZodObject<{
@@ -1761,7 +1757,7 @@ declare const fullApiContract: {
1761
1757
  }, zod_v4_core.$strip>>;
1762
1758
  rentFee: zod.ZodNumber;
1763
1759
  recipientFee: zod.ZodNumber;
1764
- solFee: zod.ZodNumber;
1760
+ operationalSol: zod.ZodNumber;
1765
1761
  remainingClaims: zod.ZodOptional<zod.ZodNumber>;
1766
1762
  fundingPeriodInfo: zod.ZodOptional<zod.ZodObject<{
1767
1763
  periodLength: zod.ZodEnum<{
@@ -1841,19 +1837,15 @@ declare const fullApiContract: {
1841
1837
  walletAddress: zod.ZodString;
1842
1838
  duration: zod.ZodCoercedNumber<unknown>;
1843
1839
  }, zod_v4_core.$strip>, zod.ZodObject<{
1840
+ rentFee: zod.ZodNumber;
1844
1841
  cronJobFunding: zod.ZodNumber;
1845
1842
  pdaWalletFunding: zod.ZodNumber;
1846
1843
  recipientFee: zod.ZodNumber;
1847
- totalFunding: zod.ZodNumber;
1844
+ operationalSol: zod.ZodNumber;
1845
+ totalSolNeeded: zod.ZodNumber;
1848
1846
  currentCronJobBalance: zod.ZodString;
1849
1847
  currentPdaWalletBalance: zod.ZodString;
1850
- additionalFundingNeeded: zod.ZodNumber;
1851
- }, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1852
- NOT_FOUND: {
1853
- readonly status: 404;
1854
- readonly message: "The requested resource was not found.";
1855
- };
1856
- }>>>>, Record<never, never>>;
1848
+ }, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, Omit<Record<never, never>, keyof U_1>>>>, Record<never, never>>;
1857
1849
  };
1858
1850
  swap: {
1859
1851
  getTokens: _orpc_contract.ContractProcedure<zod.ZodObject<{
@@ -3006,7 +2998,7 @@ declare const AutomationStatusOutputSchema: z.ZodObject<{
3006
2998
  }, z.core.$strip>>;
3007
2999
  rentFee: z.ZodNumber;
3008
3000
  recipientFee: z.ZodNumber;
3009
- solFee: z.ZodNumber;
3001
+ operationalSol: z.ZodNumber;
3010
3002
  remainingClaims: z.ZodOptional<z.ZodNumber>;
3011
3003
  fundingPeriodInfo: z.ZodOptional<z.ZodObject<{
3012
3004
  periodLength: z.ZodEnum<{
@@ -3061,13 +3053,14 @@ declare const CloseAutomationOutputSchema: z.ZodObject<{
3061
3053
  }, z.core.$strip>;
3062
3054
  }, z.core.$strip>;
3063
3055
  declare const FundingEstimateOutputSchema: z.ZodObject<{
3056
+ rentFee: z.ZodNumber;
3064
3057
  cronJobFunding: z.ZodNumber;
3065
3058
  pdaWalletFunding: z.ZodNumber;
3066
3059
  recipientFee: z.ZodNumber;
3067
- totalFunding: z.ZodNumber;
3060
+ operationalSol: z.ZodNumber;
3061
+ totalSolNeeded: z.ZodNumber;
3068
3062
  currentCronJobBalance: z.ZodString;
3069
3063
  currentPdaWalletBalance: z.ZodString;
3070
- additionalFundingNeeded: z.ZodNumber;
3071
3064
  }, z.core.$strip>;
3072
3065
  declare const ReassertLocationRequestSchema: z.ZodObject<{
3073
3066
  entityPubKey: z.ZodString;
package/dist/index.js CHANGED
@@ -291,8 +291,11 @@ var AutomationStatusOutputSchema = z.object({
291
291
  // ISO date string
292
292
  }).optional(),
293
293
  rentFee: z.number(),
294
+ // Initial setup rent (BASE_AUTOMATION_RENT + TASK_RETURN_ACCOUNT_SIZE) if automation doesn't exist, 0 otherwise
294
295
  recipientFee: z.number(),
295
- solFee: z.number(),
296
+ // SOL needed for recipient accounts (if any)
297
+ operationalSol: z.number(),
298
+ // Total operational SOL needed for automation claims (cronJobFunding + pdaWalletFunding)
296
299
  remainingClaims: z.number().optional(),
297
300
  fundingPeriodInfo: z.object({
298
301
  periodLength: AutomationScheduleSchema,
@@ -316,20 +319,22 @@ var CloseAutomationOutputSchema = z.object({
316
319
  transactionData: TransactionDataSchema
317
320
  });
318
321
  var FundingEstimateOutputSchema = z.object({
322
+ rentFee: z.number(),
323
+ // Initial setup rent (BASE_AUTOMATION_RENT + TASK_RETURN_ACCOUNT_SIZE) if automation doesn't exist, 0 otherwise
319
324
  cronJobFunding: z.number(),
320
- // SOL needed for cron job account
325
+ // SOL needed for cron job account operations
321
326
  pdaWalletFunding: z.number(),
322
- // SOL needed for PDA wallet
327
+ // SOL needed for PDA wallet operations
323
328
  recipientFee: z.number(),
324
329
  // SOL needed for recipient accounts (if any)
325
- totalFunding: z.number(),
326
- // Total SOL needed
330
+ operationalSol: z.number(),
331
+ // Total operational SOL needed for automation claims (cronJobFunding + pdaWalletFunding)
332
+ totalSolNeeded: z.number(),
333
+ // Total SOL needed including all fees (rentFee + operationalSol + recipientFee)
327
334
  currentCronJobBalance: z.string(),
328
335
  // Current balance in cronJob (lamports as string)
329
- currentPdaWalletBalance: z.string(),
336
+ currentPdaWalletBalance: z.string()
330
337
  // Current balance in pdaWallet (lamports as string)
331
- additionalFundingNeeded: z.number()
332
- // Net additional funding required (SOL)
333
338
  });
334
339
  var ReassertLocationRequestSchema = z.object({
335
340
  entityPubKey: HeliumPublicKeySchema,
@@ -678,9 +683,7 @@ var hotspotsContract = oc.tag("Hotspot").prefix("/hotspots").router({
678
683
  INSUFFICIENT_FUNDS
679
684
  }),
680
685
  /** Protected: Get funding estimate */
681
- getFundingEstimate: oc.route({ method: "GET", path: "/hotspots/wallet/{walletAddress}/automation/funding-estimate", summary: "Get funding estimate" }).input(GetFundingEstimateInputSchema).output(FundingEstimateOutputSchema).errors({
682
- NOT_FOUND
683
- })
686
+ getFundingEstimate: oc.route({ method: "GET", path: "/hotspots/wallet/{walletAddress}/automation/funding-estimate", summary: "Get funding estimate" }).input(GetFundingEstimateInputSchema).output(FundingEstimateOutputSchema).errors({})
684
687
  });
685
688
  var swapContract = oc.tag("Swap").router({
686
689
  getTokens: oc.route({ method: "GET", path: "/swap/tokens" }).input(GetTokensInputSchema).output(TokenListOutputSchema).errors({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helium/blockchain-api",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "TypeScript client and schemas for the Helium Blockchain API",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {