@helium/blockchain-api 0.3.4 → 0.3.6

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
@@ -962,6 +962,38 @@ declare const CreateRewardContractTransactionInputSchema: z.ZodObject<{
962
962
  }, z.core.$strip>], "type">>;
963
963
  rewardSchedule: z.ZodString;
964
964
  }, z.core.$strip>;
965
+ declare const EstimateCostToCreateRewardContractResponseSchema: z.ZodObject<{
966
+ total: z.ZodObject<{
967
+ amount: z.ZodString;
968
+ decimals: z.ZodNumber;
969
+ uiAmount: z.ZodNullable<z.ZodNumber>;
970
+ uiAmountString: z.ZodString;
971
+ mint: z.ZodString;
972
+ }, z.core.$strip>;
973
+ lineItems: z.ZodObject<{
974
+ transactionFees: z.ZodObject<{
975
+ amount: z.ZodString;
976
+ decimals: z.ZodNumber;
977
+ uiAmount: z.ZodNullable<z.ZodNumber>;
978
+ uiAmountString: z.ZodString;
979
+ mint: z.ZodString;
980
+ }, z.core.$strip>;
981
+ rentFee: z.ZodObject<{
982
+ amount: z.ZodString;
983
+ decimals: z.ZodNumber;
984
+ uiAmount: z.ZodNullable<z.ZodNumber>;
985
+ uiAmountString: z.ZodString;
986
+ mint: z.ZodString;
987
+ }, z.core.$strip>;
988
+ recipientGift: z.ZodObject<{
989
+ amount: z.ZodString;
990
+ decimals: z.ZodNumber;
991
+ uiAmount: z.ZodNullable<z.ZodNumber>;
992
+ uiAmountString: z.ZodString;
993
+ mint: z.ZodString;
994
+ }, z.core.$strip>;
995
+ }, z.core.$strip>;
996
+ }, z.core.$strip>;
965
997
  declare const CreateRewardContractTransactionResponseSchema: z.ZodObject<{
966
998
  unsignedTransactionData: z.ZodObject<{
967
999
  transactions: z.ZodArray<z.ZodObject<{
@@ -1662,6 +1694,14 @@ declare const apiContract: {
1662
1694
  status: number;
1663
1695
  message: string;
1664
1696
  };
1697
+ INSUFFICIENT_FUNDS: {
1698
+ readonly status: 400;
1699
+ readonly message: "Insufficient SOL balance to complete this transaction.";
1700
+ readonly data: zod.ZodObject<{
1701
+ required: zod.ZodNumber;
1702
+ available: zod.ZodNumber;
1703
+ }, zod_v4_core.$strip>;
1704
+ };
1665
1705
  }>>>, Record<never, never>>;
1666
1706
  };
1667
1707
  hotspots: {
@@ -1827,6 +1867,18 @@ declare const apiContract: {
1827
1867
  message: string;
1828
1868
  status: number;
1829
1869
  };
1870
+ INSUFFICIENT_FUNDS: {
1871
+ readonly status: 400;
1872
+ readonly message: "Insufficient SOL balance to complete this transaction.";
1873
+ readonly data: zod.ZodObject<{
1874
+ required: zod.ZodNumber;
1875
+ available: zod.ZodNumber;
1876
+ }, zod_v4_core.$strip>;
1877
+ };
1878
+ CONFLICT: {
1879
+ readonly status: 409;
1880
+ readonly message: "A resource with this identifier already exists.";
1881
+ };
1830
1882
  }>>>, Record<never, never>>;
1831
1883
  updateRewardsDestination: _orpc_contract.ContractProcedure<zod.ZodObject<{
1832
1884
  walletAddress: zod.ZodString;
@@ -1854,6 +1906,14 @@ declare const apiContract: {
1854
1906
  readonly status: 404;
1855
1907
  readonly message: "The requested resource was not found.";
1856
1908
  };
1909
+ INSUFFICIENT_FUNDS: {
1910
+ readonly status: 400;
1911
+ readonly message: "Insufficient SOL balance to complete this transaction.";
1912
+ readonly data: zod.ZodObject<{
1913
+ required: zod.ZodNumber;
1914
+ available: zod.ZodNumber;
1915
+ }, zod_v4_core.$strip>;
1916
+ };
1857
1917
  }>>>, Record<never, never>>;
1858
1918
  getSplit: _orpc_contract.ContractProcedure<zod.ZodObject<{
1859
1919
  walletAddress: zod.ZodString;
@@ -1961,6 +2021,14 @@ declare const apiContract: {
1961
2021
  readonly status: 404;
1962
2022
  readonly message: "The requested resource was not found.";
1963
2023
  };
2024
+ INSUFFICIENT_FUNDS: {
2025
+ readonly status: 400;
2026
+ readonly message: "Insufficient SOL balance to complete this transaction.";
2027
+ readonly data: zod.ZodObject<{
2028
+ required: zod.ZodNumber;
2029
+ available: zod.ZodNumber;
2030
+ }, zod_v4_core.$strip>;
2031
+ };
1964
2032
  }>>>, Record<never, never>>;
1965
2033
  closeAutomation: _orpc_contract.ContractProcedure<zod.ZodObject<{
1966
2034
  walletAddress: zod.ZodString;
@@ -1981,6 +2049,14 @@ declare const apiContract: {
1981
2049
  readonly status: 404;
1982
2050
  readonly message: "The requested resource was not found.";
1983
2051
  };
2052
+ INSUFFICIENT_FUNDS: {
2053
+ readonly status: 400;
2054
+ readonly message: "Insufficient SOL balance to complete this transaction.";
2055
+ readonly data: zod.ZodObject<{
2056
+ required: zod.ZodNumber;
2057
+ available: zod.ZodNumber;
2058
+ }, zod_v4_core.$strip>;
2059
+ };
1984
2060
  }>>>, Record<never, never>>;
1985
2061
  getAutomationStatus: _orpc_contract.ContractProcedure<zod.ZodObject<{
1986
2062
  walletAddress: zod.ZodString;
@@ -2044,6 +2120,14 @@ declare const apiContract: {
2044
2120
  readonly status: 404;
2045
2121
  readonly message: "The requested resource was not found.";
2046
2122
  };
2123
+ INSUFFICIENT_FUNDS: {
2124
+ readonly status: 400;
2125
+ readonly message: "Insufficient SOL balance to complete this transaction.";
2126
+ readonly data: zod.ZodObject<{
2127
+ required: zod.ZodNumber;
2128
+ available: zod.ZodNumber;
2129
+ }, zod_v4_core.$strip>;
2130
+ };
2047
2131
  }>>>, Record<never, never>>;
2048
2132
  fundAutomation: _orpc_contract.ContractProcedure<zod.ZodObject<{
2049
2133
  walletAddress: zod.ZodString;
@@ -2238,6 +2322,84 @@ declare const apiContract: {
2238
2322
  }, zod_v4_core.$strip>>;
2239
2323
  };
2240
2324
  }>>>, Record<never, never>>;
2325
+ estimateCreationCost: _orpc_contract.ContractProcedure<zod.ZodObject<{
2326
+ delegateWalletAddress: zod.ZodString;
2327
+ recipients: zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
2328
+ type: zod.ZodLiteral<"PRESET">;
2329
+ walletAddress: zod.ZodString;
2330
+ receives: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
2331
+ type: zod.ZodLiteral<"FIXED">;
2332
+ tokenAmount: zod.ZodObject<{
2333
+ amount: zod.ZodString;
2334
+ mint: zod.ZodString;
2335
+ }, zod_v4_core.$strip>;
2336
+ }, zod_v4_core.$strip>, zod.ZodObject<{
2337
+ type: zod.ZodLiteral<"SHARES">;
2338
+ shares: zod.ZodNumber;
2339
+ }, zod_v4_core.$strip>], "type">;
2340
+ }, zod_v4_core.$strip>, zod.ZodObject<{
2341
+ type: zod.ZodLiteral<"CLAIMABLE">;
2342
+ giftedCurrency: zod.ZodObject<{
2343
+ amount: zod.ZodString;
2344
+ mint: zod.ZodString;
2345
+ }, zod_v4_core.$strip>;
2346
+ receives: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
2347
+ type: zod.ZodLiteral<"FIXED">;
2348
+ tokenAmount: zod.ZodObject<{
2349
+ amount: zod.ZodString;
2350
+ mint: zod.ZodString;
2351
+ }, zod_v4_core.$strip>;
2352
+ }, zod_v4_core.$strip>, zod.ZodObject<{
2353
+ type: zod.ZodLiteral<"SHARES">;
2354
+ shares: zod.ZodNumber;
2355
+ }, zod_v4_core.$strip>], "type">;
2356
+ }, zod_v4_core.$strip>], "type">>;
2357
+ rewardSchedule: zod.ZodString;
2358
+ entityPubKey: zod.ZodString;
2359
+ }, zod_v4_core.$strip>, zod.ZodObject<{
2360
+ total: zod.ZodObject<{
2361
+ amount: zod.ZodString;
2362
+ decimals: zod.ZodNumber;
2363
+ uiAmount: zod.ZodNullable<zod.ZodNumber>;
2364
+ uiAmountString: zod.ZodString;
2365
+ mint: zod.ZodString;
2366
+ }, zod_v4_core.$strip>;
2367
+ lineItems: zod.ZodObject<{
2368
+ transactionFees: zod.ZodObject<{
2369
+ amount: zod.ZodString;
2370
+ decimals: zod.ZodNumber;
2371
+ uiAmount: zod.ZodNullable<zod.ZodNumber>;
2372
+ uiAmountString: zod.ZodString;
2373
+ mint: zod.ZodString;
2374
+ }, zod_v4_core.$strip>;
2375
+ rentFee: zod.ZodObject<{
2376
+ amount: zod.ZodString;
2377
+ decimals: zod.ZodNumber;
2378
+ uiAmount: zod.ZodNullable<zod.ZodNumber>;
2379
+ uiAmountString: zod.ZodString;
2380
+ mint: zod.ZodString;
2381
+ }, zod_v4_core.$strip>;
2382
+ recipientGift: zod.ZodObject<{
2383
+ amount: zod.ZodString;
2384
+ decimals: zod.ZodNumber;
2385
+ uiAmount: zod.ZodNullable<zod.ZodNumber>;
2386
+ uiAmountString: zod.ZodString;
2387
+ mint: zod.ZodString;
2388
+ }, zod_v4_core.$strip>;
2389
+ }, zod_v4_core.$strip>;
2390
+ }, zod_v4_core.$strip>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
2391
+ BAD_REQUEST: {
2392
+ readonly status: 400;
2393
+ readonly message: "Invalid input data provided.";
2394
+ readonly data: zod.ZodOptional<zod.ZodObject<{
2395
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
2396
+ }, zod_v4_core.$strip>>;
2397
+ };
2398
+ NOT_FOUND: {
2399
+ readonly status: 404;
2400
+ readonly message: "The requested resource was not found.";
2401
+ };
2402
+ }>>>, Record<never, never>>;
2241
2403
  create: _orpc_contract.ContractProcedure<zod.ZodObject<{
2242
2404
  delegateWalletAddress: zod.ZodString;
2243
2405
  recipients: zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -2345,6 +2507,14 @@ declare const apiContract: {
2345
2507
  readonly status: 403;
2346
2508
  readonly message: "You do not have permission to access this resource.";
2347
2509
  };
2510
+ INSUFFICIENT_FUNDS: {
2511
+ readonly status: 400;
2512
+ readonly message: "Insufficient SOL balance to complete this transaction.";
2513
+ readonly data: zod.ZodObject<{
2514
+ required: zod.ZodNumber;
2515
+ available: zod.ZodNumber;
2516
+ }, zod_v4_core.$strip>;
2517
+ };
2348
2518
  }>>>, Record<never, never>>;
2349
2519
  invite: _orpc_contract.ContractProcedure<zod.ZodObject<{
2350
2520
  entityPubKey: zod.ZodString;
@@ -2499,6 +2669,14 @@ declare const apiContract: {
2499
2669
  JUPITER_ERROR: {
2500
2670
  message: string;
2501
2671
  };
2672
+ INSUFFICIENT_FUNDS: {
2673
+ readonly status: 400;
2674
+ readonly message: "Insufficient SOL balance to complete this transaction.";
2675
+ readonly data: zod.ZodObject<{
2676
+ required: zod.ZodNumber;
2677
+ available: zod.ZodNumber;
2678
+ }, zod_v4_core.$strip>;
2679
+ };
2502
2680
  }>>>, Record<never, never>>;
2503
2681
  };
2504
2682
  transactions: {
@@ -2836,6 +3014,14 @@ declare const apiContract: {
2836
3014
  readonly status: 409;
2837
3015
  readonly message: "A resource with this identifier already exists.";
2838
3016
  };
3017
+ INSUFFICIENT_FUNDS: {
3018
+ readonly status: 400;
3019
+ readonly message: "Insufficient SOL balance to complete this transaction.";
3020
+ readonly data: zod.ZodObject<{
3021
+ required: zod.ZodNumber;
3022
+ available: zod.ZodNumber;
3023
+ }, zod_v4_core.$strip>;
3024
+ };
2839
3025
  }>>>, Record<never, never>>;
2840
3026
  get: _orpc_contract.ContractProcedure<zod.ZodObject<{
2841
3027
  walletAddress: zod.ZodString;
@@ -2931,6 +3117,14 @@ declare const apiContract: {
2931
3117
  status: number;
2932
3118
  message: string;
2933
3119
  };
3120
+ INSUFFICIENT_FUNDS: {
3121
+ readonly status: 400;
3122
+ readonly message: "Insufficient SOL balance to complete this transaction.";
3123
+ readonly data: zod.ZodObject<{
3124
+ required: zod.ZodNumber;
3125
+ available: zod.ZodNumber;
3126
+ }, zod_v4_core.$strip>;
3127
+ };
2934
3128
  }>>>, Record<never, never>>;
2935
3129
  getByAddress: _orpc_contract.ContractProcedure<zod.ZodObject<{
2936
3130
  packAddress: zod.ZodString;
@@ -3317,6 +3511,14 @@ declare const fullApiContract: {
3317
3511
  message: string;
3318
3512
  status: number;
3319
3513
  };
3514
+ INSUFFICIENT_FUNDS: {
3515
+ readonly status: 400;
3516
+ readonly message: "Insufficient SOL balance to complete this transaction.";
3517
+ readonly data: zod.ZodObject<{
3518
+ required: zod.ZodNumber;
3519
+ available: zod.ZodNumber;
3520
+ }, zod_v4_core.$strip>;
3521
+ };
3320
3522
  }>>>, Record<never, never>>;
3321
3523
  updateTransfer: _orpc_contract.ContractProcedure<zod.ZodObject<{
3322
3524
  id: zod.ZodString;
@@ -3450,6 +3652,14 @@ declare const fullApiContract: {
3450
3652
  status: number;
3451
3653
  message: string;
3452
3654
  };
3655
+ INSUFFICIENT_FUNDS: {
3656
+ readonly status: 400;
3657
+ readonly message: "Insufficient SOL balance to complete this transaction.";
3658
+ readonly data: zod.ZodObject<{
3659
+ required: zod.ZodNumber;
3660
+ available: zod.ZodNumber;
3661
+ }, zod_v4_core.$strip>;
3662
+ };
3453
3663
  }>>>>, Record<never, never>>;
3454
3664
  };
3455
3665
  hotspots: {
@@ -3615,6 +3825,18 @@ declare const fullApiContract: {
3615
3825
  message: string;
3616
3826
  status: number;
3617
3827
  };
3828
+ INSUFFICIENT_FUNDS: {
3829
+ readonly status: 400;
3830
+ readonly message: "Insufficient SOL balance to complete this transaction.";
3831
+ readonly data: zod.ZodObject<{
3832
+ required: zod.ZodNumber;
3833
+ available: zod.ZodNumber;
3834
+ }, zod_v4_core.$strip>;
3835
+ };
3836
+ CONFLICT: {
3837
+ readonly status: 409;
3838
+ readonly message: "A resource with this identifier already exists.";
3839
+ };
3618
3840
  }>>>>, Record<never, never>>;
3619
3841
  updateRewardsDestination: _orpc_contract.ContractProcedure<zod.ZodObject<{
3620
3842
  walletAddress: zod.ZodString;
@@ -3642,6 +3864,14 @@ declare const fullApiContract: {
3642
3864
  readonly status: 404;
3643
3865
  readonly message: "The requested resource was not found.";
3644
3866
  };
3867
+ INSUFFICIENT_FUNDS: {
3868
+ readonly status: 400;
3869
+ readonly message: "Insufficient SOL balance to complete this transaction.";
3870
+ readonly data: zod.ZodObject<{
3871
+ required: zod.ZodNumber;
3872
+ available: zod.ZodNumber;
3873
+ }, zod_v4_core.$strip>;
3874
+ };
3645
3875
  }>>>>, Record<never, never>>;
3646
3876
  getSplit: _orpc_contract.ContractProcedure<zod.ZodObject<{
3647
3877
  walletAddress: zod.ZodString;
@@ -3749,6 +3979,14 @@ declare const fullApiContract: {
3749
3979
  readonly status: 404;
3750
3980
  readonly message: "The requested resource was not found.";
3751
3981
  };
3982
+ INSUFFICIENT_FUNDS: {
3983
+ readonly status: 400;
3984
+ readonly message: "Insufficient SOL balance to complete this transaction.";
3985
+ readonly data: zod.ZodObject<{
3986
+ required: zod.ZodNumber;
3987
+ available: zod.ZodNumber;
3988
+ }, zod_v4_core.$strip>;
3989
+ };
3752
3990
  }>>>>, Record<never, never>>;
3753
3991
  closeAutomation: _orpc_contract.ContractProcedure<zod.ZodObject<{
3754
3992
  walletAddress: zod.ZodString;
@@ -3769,6 +4007,14 @@ declare const fullApiContract: {
3769
4007
  readonly status: 404;
3770
4008
  readonly message: "The requested resource was not found.";
3771
4009
  };
4010
+ INSUFFICIENT_FUNDS: {
4011
+ readonly status: 400;
4012
+ readonly message: "Insufficient SOL balance to complete this transaction.";
4013
+ readonly data: zod.ZodObject<{
4014
+ required: zod.ZodNumber;
4015
+ available: zod.ZodNumber;
4016
+ }, zod_v4_core.$strip>;
4017
+ };
3772
4018
  }>>>>, Record<never, never>>;
3773
4019
  getAutomationStatus: _orpc_contract.ContractProcedure<zod.ZodObject<{
3774
4020
  walletAddress: zod.ZodString;
@@ -3832,6 +4078,14 @@ declare const fullApiContract: {
3832
4078
  readonly status: 404;
3833
4079
  readonly message: "The requested resource was not found.";
3834
4080
  };
4081
+ INSUFFICIENT_FUNDS: {
4082
+ readonly status: 400;
4083
+ readonly message: "Insufficient SOL balance to complete this transaction.";
4084
+ readonly data: zod.ZodObject<{
4085
+ required: zod.ZodNumber;
4086
+ available: zod.ZodNumber;
4087
+ }, zod_v4_core.$strip>;
4088
+ };
3835
4089
  }>>>>, Record<never, never>>;
3836
4090
  fundAutomation: _orpc_contract.ContractProcedure<zod.ZodObject<{
3837
4091
  walletAddress: zod.ZodString;
@@ -4026,6 +4280,84 @@ declare const fullApiContract: {
4026
4280
  }, zod_v4_core.$strip>>;
4027
4281
  };
4028
4282
  }>>>>, Record<never, never>>;
4283
+ estimateCreationCost: _orpc_contract.ContractProcedure<zod.ZodObject<{
4284
+ delegateWalletAddress: zod.ZodString;
4285
+ recipients: zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
4286
+ type: zod.ZodLiteral<"PRESET">;
4287
+ walletAddress: zod.ZodString;
4288
+ receives: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
4289
+ type: zod.ZodLiteral<"FIXED">;
4290
+ tokenAmount: zod.ZodObject<{
4291
+ amount: zod.ZodString;
4292
+ mint: zod.ZodString;
4293
+ }, zod_v4_core.$strip>;
4294
+ }, zod_v4_core.$strip>, zod.ZodObject<{
4295
+ type: zod.ZodLiteral<"SHARES">;
4296
+ shares: zod.ZodNumber;
4297
+ }, zod_v4_core.$strip>], "type">;
4298
+ }, zod_v4_core.$strip>, zod.ZodObject<{
4299
+ type: zod.ZodLiteral<"CLAIMABLE">;
4300
+ giftedCurrency: zod.ZodObject<{
4301
+ amount: zod.ZodString;
4302
+ mint: zod.ZodString;
4303
+ }, zod_v4_core.$strip>;
4304
+ receives: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
4305
+ type: zod.ZodLiteral<"FIXED">;
4306
+ tokenAmount: zod.ZodObject<{
4307
+ amount: zod.ZodString;
4308
+ mint: zod.ZodString;
4309
+ }, zod_v4_core.$strip>;
4310
+ }, zod_v4_core.$strip>, zod.ZodObject<{
4311
+ type: zod.ZodLiteral<"SHARES">;
4312
+ shares: zod.ZodNumber;
4313
+ }, zod_v4_core.$strip>], "type">;
4314
+ }, zod_v4_core.$strip>], "type">>;
4315
+ rewardSchedule: zod.ZodString;
4316
+ entityPubKey: zod.ZodString;
4317
+ }, zod_v4_core.$strip>, zod.ZodObject<{
4318
+ total: zod.ZodObject<{
4319
+ amount: zod.ZodString;
4320
+ decimals: zod.ZodNumber;
4321
+ uiAmount: zod.ZodNullable<zod.ZodNumber>;
4322
+ uiAmountString: zod.ZodString;
4323
+ mint: zod.ZodString;
4324
+ }, zod_v4_core.$strip>;
4325
+ lineItems: zod.ZodObject<{
4326
+ transactionFees: zod.ZodObject<{
4327
+ amount: zod.ZodString;
4328
+ decimals: zod.ZodNumber;
4329
+ uiAmount: zod.ZodNullable<zod.ZodNumber>;
4330
+ uiAmountString: zod.ZodString;
4331
+ mint: zod.ZodString;
4332
+ }, zod_v4_core.$strip>;
4333
+ rentFee: zod.ZodObject<{
4334
+ amount: zod.ZodString;
4335
+ decimals: zod.ZodNumber;
4336
+ uiAmount: zod.ZodNullable<zod.ZodNumber>;
4337
+ uiAmountString: zod.ZodString;
4338
+ mint: zod.ZodString;
4339
+ }, zod_v4_core.$strip>;
4340
+ recipientGift: zod.ZodObject<{
4341
+ amount: zod.ZodString;
4342
+ decimals: zod.ZodNumber;
4343
+ uiAmount: zod.ZodNullable<zod.ZodNumber>;
4344
+ uiAmountString: zod.ZodString;
4345
+ mint: zod.ZodString;
4346
+ }, zod_v4_core.$strip>;
4347
+ }, zod_v4_core.$strip>;
4348
+ }, 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>, {
4349
+ BAD_REQUEST: {
4350
+ readonly status: 400;
4351
+ readonly message: "Invalid input data provided.";
4352
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4353
+ fields: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
4354
+ }, zod_v4_core.$strip>>;
4355
+ };
4356
+ NOT_FOUND: {
4357
+ readonly status: 404;
4358
+ readonly message: "The requested resource was not found.";
4359
+ };
4360
+ }>>>>, Record<never, never>>;
4029
4361
  create: _orpc_contract.ContractProcedure<zod.ZodObject<{
4030
4362
  delegateWalletAddress: zod.ZodString;
4031
4363
  recipients: zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
@@ -4133,6 +4465,14 @@ declare const fullApiContract: {
4133
4465
  readonly status: 403;
4134
4466
  readonly message: "You do not have permission to access this resource.";
4135
4467
  };
4468
+ INSUFFICIENT_FUNDS: {
4469
+ readonly status: 400;
4470
+ readonly message: "Insufficient SOL balance to complete this transaction.";
4471
+ readonly data: zod.ZodObject<{
4472
+ required: zod.ZodNumber;
4473
+ available: zod.ZodNumber;
4474
+ }, zod_v4_core.$strip>;
4475
+ };
4136
4476
  }>>>>, Record<never, never>>;
4137
4477
  invite: _orpc_contract.ContractProcedure<zod.ZodObject<{
4138
4478
  entityPubKey: zod.ZodString;
@@ -4287,6 +4627,14 @@ declare const fullApiContract: {
4287
4627
  JUPITER_ERROR: {
4288
4628
  message: string;
4289
4629
  };
4630
+ INSUFFICIENT_FUNDS: {
4631
+ readonly status: 400;
4632
+ readonly message: "Insufficient SOL balance to complete this transaction.";
4633
+ readonly data: zod.ZodObject<{
4634
+ required: zod.ZodNumber;
4635
+ available: zod.ZodNumber;
4636
+ }, zod_v4_core.$strip>;
4637
+ };
4290
4638
  }>>>>, Record<never, never>>;
4291
4639
  };
4292
4640
  transactions: {
@@ -4624,6 +4972,14 @@ declare const fullApiContract: {
4624
4972
  readonly status: 409;
4625
4973
  readonly message: "A resource with this identifier already exists.";
4626
4974
  };
4975
+ INSUFFICIENT_FUNDS: {
4976
+ readonly status: 400;
4977
+ readonly message: "Insufficient SOL balance to complete this transaction.";
4978
+ readonly data: zod.ZodObject<{
4979
+ required: zod.ZodNumber;
4980
+ available: zod.ZodNumber;
4981
+ }, zod_v4_core.$strip>;
4982
+ };
4627
4983
  }>>>>, Record<never, never>>;
4628
4984
  get: _orpc_contract.ContractProcedure<zod.ZodObject<{
4629
4985
  walletAddress: zod.ZodString;
@@ -4719,6 +5075,14 @@ declare const fullApiContract: {
4719
5075
  status: number;
4720
5076
  message: string;
4721
5077
  };
5078
+ INSUFFICIENT_FUNDS: {
5079
+ readonly status: 400;
5080
+ readonly message: "Insufficient SOL balance to complete this transaction.";
5081
+ readonly data: zod.ZodObject<{
5082
+ required: zod.ZodNumber;
5083
+ available: zod.ZodNumber;
5084
+ }, zod_v4_core.$strip>;
5085
+ };
4722
5086
  }>>>>, Record<never, never>>;
4723
5087
  getByAddress: _orpc_contract.ContractProcedure<zod.ZodObject<{
4724
5088
  packAddress: zod.ZodString;
@@ -4835,4 +5199,4 @@ declare const fullApiContract: {
4835
5199
  };
4836
5200
  };
4837
5201
 
4838
- export { AutomationScheduleSchema, type AutomationStatus, AutomationStatusOutputSchema, BAD_REQUEST, type BankAccount, type BankAccountListOutput, BankAccountListOutputSchema, BankAccountSchema, type BatchStatusOutput, BatchStatusOutputSchema, type BridgeTransfer, BridgeTransferSchema, CONFLICT, ClaimInviteRequestSchema, ClaimInviteResponseSchema, type ClaimRewardsInput, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, type CloseAutomationInput, CloseAutomationInputSchema, CloseAutomationOutputSchema, type CreateBankAccountInput, CreateBankAccountInputSchema, type CreateHntAccountInput, CreateHntAccountInputSchema, type CreateHntAccountOutput, CreateHntAccountOutputSchema, CreateInviteResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, type CreateSplitInput, CreateSplitInputSchema, CreateSplitOutputSchema, type DeleteBankAccountInput, DeleteBankAccountInputSchema, type DeleteBankAccountOutput, DeleteBankAccountOutputSchema, DeleteRewardContractTransactionResponseSchema, type DeleteSplitInput, DeleteSplitInputSchema, DeleteSplitOutputSchema, type DeviceType, DeviceTypeSchema, type ErrorResponse, ErrorResponseSchema, type FeesOutput, FeesOutputSchema, FindRewardContractResponseSchema, type FundAutomationInput, FundAutomationInputSchema, FundAutomationOutputSchema, type FundingEstimate, FundingEstimateOutputSchema, type GetAutomationStatusInput, GetAutomationStatusInputSchema, type GetBalancesInput, GetBalancesInputSchema, type GetBankAccountInput, GetBankAccountInputSchema, type GetByPayerAndTagInput, GetByPayerAndTagInputSchema, type GetByPayerInput, GetByPayerInputSchema, type GetFundingEstimateInput, GetFundingEstimateInputSchema, type GetHotspotsInput, GetHotspotsInputSchema, type GetInput, GetInputSchema, type GetInstructionsInput, GetInstructionsInputSchema, type GetPendingRewardsInput, GetPendingRewardsInputSchema, type GetPendingRewardsOutput, GetPendingRewardsOutputSchema, type GetQuoteInput, GetQuoteInputSchema, type GetSendQuoteInput, GetSendQuoteInputSchema, type GetSplitInput, GetSplitInputSchema, type GetTokensInput, GetTokensInputSchema, type GetTransferInput, GetTransferInputSchema, type HealthResponse, HealthResponseSchema, HeliumPublicKeySchema, type Hotspot, HotspotSchema, HotspotSharesSchema, type HotspotType, HotspotTypeSchema, type HotspotsData, HotspotsDataSchema, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, type InitKycInput, InitKycInputSchema, type KycStatusOutput, KycStatusOutputSchema, NOT_FOUND, type OwnershipType, OwnershipTypeSchema, PaginationInputSchema, PaginationOutputSchema, type PayerBatchSummary, PayerBatchSummarySchema, type PayerBatchesOutput, PayerBatchesOutputSchema, PublicKeySchema, QuoteOutputSchema, type QuoteResponse, QuoteResponseSchema, RATE_LIMITED, type ResubmitInput, ResubmitInputSchema, type ResubmitOutput, ResubmitOutputSchema, type RewardSplitInput, RewardSplitInputSchema, SIMULATION_FAILED, type ScheduleInput, ScheduleInputSchema, type SendFundsInput, SendFundsInputSchema, type SendFundsOutput, SendFundsOutputSchema, type SetupAutomationInput, SetupAutomationInputSchema, SetupAutomationOutputSchema, type SplitResponse, SplitResponseSchema, type SplitShare, SplitShareSchema, type SubmitInput, SubmitInputSchema, type SubmitOutput, SubmitOutputSchema, SwapTransactionDataSchema, TRANSACTION_FAILED, type Token, type TokenAccount, TokenAccountSchema, type TokenAmountInput, TokenAmountInputSchema, type TokenAmountOutput, TokenAmountOutputSchema, type TokenBalanceData, TokenBalanceDataSchema, type TokenListOutput, TokenListOutputSchema, TokenSchema, type TransactionBatchRequest, TransactionBatchRequestSchema, type TransactionBatchResponse, TransactionBatchResponseSchema, type TransactionData, TransactionDataSchema, type TransactionItem, TransactionItemSchema, type TransactionMetadata, TransactionMetadataSchema, type TransactionStatus, TransactionStatusSchema, type TransferHotspotInput, TransferHotspotInputSchema, TransferHotspotOutputSchema, type TransferInput, TransferInputSchema, type TransferOutput, TransferOutputSchema, UNAUTHENTICATED, UNAUTHORIZED, UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, type UpdateRewardsDestinationInput, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema, type UpdateTransferInput, UpdateTransferInputSchema, type UpdateTransferOutput, UpdateTransferOutputSchema, WalletAddressSchema, type WelcomePack, type WelcomePackClaimInput, WelcomePackClaimInputSchema, type WelcomePackClaimOutput, WelcomePackClaimOutputSchema, type WelcomePackCreateInput, WelcomePackCreateInputSchema, type WelcomePackCreateOutput, WelcomePackCreateOutputSchema, type WelcomePackDeleteInput, WelcomePackDeleteInputSchema, type WelcomePackDeleteOutput, WelcomePackDeleteOutputSchema, type WelcomePackGetByAddressInput, WelcomePackGetByAddressInputSchema, type WelcomePackGetInput, WelcomePackGetInputSchema, type WelcomePackInviteInput, WelcomePackInviteInputSchema, type WelcomePackInviteOutput, WelcomePackInviteOutputSchema, type WelcomePackListInput, WelcomePackListInputSchema, type WelcomePackListOutput, WelcomePackListOutputSchema, WelcomePackSchema, apiContract, fullApiContract };
5202
+ export { AutomationScheduleSchema, type AutomationStatus, AutomationStatusOutputSchema, BAD_REQUEST, type BankAccount, type BankAccountListOutput, BankAccountListOutputSchema, BankAccountSchema, type BatchStatusOutput, BatchStatusOutputSchema, type BridgeTransfer, BridgeTransferSchema, CONFLICT, ClaimInviteRequestSchema, ClaimInviteResponseSchema, type ClaimRewardsInput, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, type CloseAutomationInput, CloseAutomationInputSchema, CloseAutomationOutputSchema, type CreateBankAccountInput, CreateBankAccountInputSchema, type CreateHntAccountInput, CreateHntAccountInputSchema, type CreateHntAccountOutput, CreateHntAccountOutputSchema, CreateInviteResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, type CreateSplitInput, CreateSplitInputSchema, CreateSplitOutputSchema, type DeleteBankAccountInput, DeleteBankAccountInputSchema, type DeleteBankAccountOutput, DeleteBankAccountOutputSchema, DeleteRewardContractTransactionResponseSchema, type DeleteSplitInput, DeleteSplitInputSchema, DeleteSplitOutputSchema, type DeviceType, DeviceTypeSchema, type ErrorResponse, ErrorResponseSchema, EstimateCostToCreateRewardContractResponseSchema, type FeesOutput, FeesOutputSchema, FindRewardContractResponseSchema, type FundAutomationInput, FundAutomationInputSchema, FundAutomationOutputSchema, type FundingEstimate, FundingEstimateOutputSchema, type GetAutomationStatusInput, GetAutomationStatusInputSchema, type GetBalancesInput, GetBalancesInputSchema, type GetBankAccountInput, GetBankAccountInputSchema, type GetByPayerAndTagInput, GetByPayerAndTagInputSchema, type GetByPayerInput, GetByPayerInputSchema, type GetFundingEstimateInput, GetFundingEstimateInputSchema, type GetHotspotsInput, GetHotspotsInputSchema, type GetInput, GetInputSchema, type GetInstructionsInput, GetInstructionsInputSchema, type GetPendingRewardsInput, GetPendingRewardsInputSchema, type GetPendingRewardsOutput, GetPendingRewardsOutputSchema, type GetQuoteInput, GetQuoteInputSchema, type GetSendQuoteInput, GetSendQuoteInputSchema, type GetSplitInput, GetSplitInputSchema, type GetTokensInput, GetTokensInputSchema, type GetTransferInput, GetTransferInputSchema, type HealthResponse, HealthResponseSchema, HeliumPublicKeySchema, type Hotspot, HotspotSchema, HotspotSharesSchema, type HotspotType, HotspotTypeSchema, type HotspotsData, HotspotsDataSchema, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, type InitKycInput, InitKycInputSchema, type KycStatusOutput, KycStatusOutputSchema, NOT_FOUND, type OwnershipType, OwnershipTypeSchema, PaginationInputSchema, PaginationOutputSchema, type PayerBatchSummary, PayerBatchSummarySchema, type PayerBatchesOutput, PayerBatchesOutputSchema, PublicKeySchema, QuoteOutputSchema, type QuoteResponse, QuoteResponseSchema, RATE_LIMITED, type ResubmitInput, ResubmitInputSchema, type ResubmitOutput, ResubmitOutputSchema, type RewardSplitInput, RewardSplitInputSchema, SIMULATION_FAILED, type ScheduleInput, ScheduleInputSchema, type SendFundsInput, SendFundsInputSchema, type SendFundsOutput, SendFundsOutputSchema, type SetupAutomationInput, SetupAutomationInputSchema, SetupAutomationOutputSchema, type SplitResponse, SplitResponseSchema, type SplitShare, SplitShareSchema, type SubmitInput, SubmitInputSchema, type SubmitOutput, SubmitOutputSchema, SwapTransactionDataSchema, TRANSACTION_FAILED, type Token, type TokenAccount, TokenAccountSchema, type TokenAmountInput, TokenAmountInputSchema, type TokenAmountOutput, TokenAmountOutputSchema, type TokenBalanceData, TokenBalanceDataSchema, type TokenListOutput, TokenListOutputSchema, TokenSchema, type TransactionBatchRequest, TransactionBatchRequestSchema, type TransactionBatchResponse, TransactionBatchResponseSchema, type TransactionData, TransactionDataSchema, type TransactionItem, TransactionItemSchema, type TransactionMetadata, TransactionMetadataSchema, type TransactionStatus, TransactionStatusSchema, type TransferHotspotInput, TransferHotspotInputSchema, TransferHotspotOutputSchema, type TransferInput, TransferInputSchema, type TransferOutput, TransferOutputSchema, UNAUTHENTICATED, UNAUTHORIZED, UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, type UpdateRewardsDestinationInput, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema, type UpdateTransferInput, UpdateTransferInputSchema, type UpdateTransferOutput, UpdateTransferOutputSchema, WalletAddressSchema, type WelcomePack, type WelcomePackClaimInput, WelcomePackClaimInputSchema, type WelcomePackClaimOutput, WelcomePackClaimOutputSchema, type WelcomePackCreateInput, WelcomePackCreateInputSchema, type WelcomePackCreateOutput, WelcomePackCreateOutputSchema, type WelcomePackDeleteInput, WelcomePackDeleteInputSchema, type WelcomePackDeleteOutput, WelcomePackDeleteOutputSchema, type WelcomePackGetByAddressInput, WelcomePackGetByAddressInputSchema, type WelcomePackGetInput, WelcomePackGetInputSchema, type WelcomePackInviteInput, WelcomePackInviteInputSchema, type WelcomePackInviteOutput, WelcomePackInviteOutputSchema, type WelcomePackListInput, WelcomePackListInputSchema, type WelcomePackListOutput, WelcomePackListOutputSchema, WelcomePackSchema, apiContract, fullApiContract };
package/dist/index.js CHANGED
@@ -632,6 +632,14 @@ var CreateRewardContractTransactionInputSchema = z.object({
632
632
  "The schedule on which rewards would be distributed to recipients"
633
633
  )
634
634
  });
635
+ var EstimateCostToCreateRewardContractResponseSchema = z.object({
636
+ total: TokenAmountOutputSchema.describe("The total cost to create the contract."),
637
+ lineItems: z.object({
638
+ transactionFees: TokenAmountOutputSchema.describe("The cost of transaction fees, including funding for future scheduled transactions."),
639
+ rentFee: TokenAmountOutputSchema.describe("The cost of the rent fee."),
640
+ recipientGift: TokenAmountOutputSchema.describe("The total cost of gifted currency, bundled with the contract.")
641
+ }).describe("A breakdown of the costs invovled. Should sum to the total cost.")
642
+ });
635
643
  var CreateRewardContractTransactionResponseSchema = z.object({
636
644
  unsignedTransactionData: TransactionDataSchema.describe(
637
645
  "The unsigned transaction data which, when signed and submitted will create the pending or finalized reward contract"
@@ -886,7 +894,8 @@ var tokensContract = oc.tag("Tokens").router({
886
894
  }),
887
895
  /** Protected: Create HNT account */
888
896
  createHntAccount: oc.route({ method: "POST", path: "/tokens/hnt-account", summary: "Create HNT account" }).input(CreateHntAccountInputSchema).output(CreateHntAccountOutputSchema).errors({
889
- INVALID_WALLET_ADDRESS
897
+ INVALID_WALLET_ADDRESS,
898
+ INSUFFICIENT_FUNDS
890
899
  })
891
900
  });
892
901
  var hotspotsContract = oc.tag("Hotspot").prefix("/hotspots").router({
@@ -907,12 +916,15 @@ var hotspotsContract = oc.tag("Hotspot").prefix("/hotspots").router({
907
916
  transferHotspot: oc.route({ method: "POST", path: "/transfer", summary: "Transfer ownership" }).input(TransferHotspotInputSchema).output(TransferHotspotOutputSchema).errors({
908
917
  UNAUTHORIZED,
909
918
  NOT_FOUND,
910
- BAD_REQUEST: { message: "Invalid transfer parameters", status: 400 }
919
+ BAD_REQUEST: { message: "Invalid transfer parameters", status: 400 },
920
+ INSUFFICIENT_FUNDS,
921
+ CONFLICT
911
922
  }),
912
923
  /** Protected: Update rewards destination */
913
924
  updateRewardsDestination: oc.route({ method: "POST", path: "/update-rewards-destination", summary: "Update rewards destination" }).input(UpdateRewardsDestinationInputSchema).output(UpdateRewardsDestinationOutputSchema).errors({
914
925
  BAD_REQUEST: { message: "Invalid parameters", status: 400 },
915
- NOT_FOUND
926
+ NOT_FOUND,
927
+ INSUFFICIENT_FUNDS
916
928
  }),
917
929
  /** Public: Get split configuration for a hotspot */
918
930
  getSplit: oc.route({ method: "GET", path: "/split/{walletAddress}/{hotspotPubkey}", summary: "Get reward split" }).input(GetSplitInputSchema).output(SplitResponseSchema).errors({
@@ -927,11 +939,13 @@ var hotspotsContract = oc.tag("Hotspot").prefix("/hotspots").router({
927
939
  }),
928
940
  /** Protected: Delete a split configuration */
929
941
  deleteSplit: oc.route({ method: "DELETE", path: "/split", summary: "Delete a reward split" }).input(DeleteSplitInputSchema).output(DeleteSplitOutputSchema).errors({
930
- NOT_FOUND
942
+ NOT_FOUND,
943
+ INSUFFICIENT_FUNDS
931
944
  }),
932
945
  /** Protected: Close automation */
933
946
  closeAutomation: oc.route({ method: "POST", path: "/wallet/{walletAddress}/automation/close", summary: "Close automation" }).input(CloseAutomationInputSchema).output(CloseAutomationOutputSchema).errors({
934
- NOT_FOUND
947
+ NOT_FOUND,
948
+ INSUFFICIENT_FUNDS
935
949
  }),
936
950
  /** Protected: Get automation status */
937
951
  getAutomationStatus: oc.route({ method: "GET", path: "/wallet/{walletAddress}/automation/status", summary: "Get automation status" }).input(GetAutomationStatusInputSchema).output(AutomationStatusOutputSchema).errors({
@@ -943,7 +957,8 @@ var hotspotsContract = oc.tag("Hotspot").prefix("/hotspots").router({
943
957
  path: "/wallet/{walletAddress}/automation",
944
958
  summary: "Setup automation"
945
959
  }).input(SetupAutomationInputSchema).output(SetupAutomationOutputSchema).errors({
946
- NOT_FOUND
960
+ NOT_FOUND,
961
+ INSUFFICIENT_FUNDS
947
962
  }),
948
963
  /** Protected: Fund automation */
949
964
  fundAutomation: oc.route({ method: "POST", path: "/wallet/{walletAddress}/automation/fund", summary: "Fund automation" }).input(FundAutomationInputSchema).output(FundAutomationOutputSchema).errors({
@@ -970,6 +985,17 @@ var rewardContract = oc.tag("Reward Contract").prefix("/hotspots").router({
970
985
  NOT_FOUND,
971
986
  BAD_REQUEST
972
987
  }).output(FindRewardContractResponseSchema),
988
+ estimateCreationCost: oc.route({
989
+ method: "GET",
990
+ path: "/{entityPubKey}/reward-contract/estimate-creation-cost",
991
+ summary: "Estimate Creation Cost",
992
+ description: "Estimates the cost to create a reward contract for a specific hotspot entity."
993
+ }).input(CreateRewardContractTransactionInputSchema.extend({
994
+ entityPubKey: HeliumPublicKeySchema.describe("The public key of the hotspot entity")
995
+ })).output(EstimateCostToCreateRewardContractResponseSchema).errors({
996
+ BAD_REQUEST,
997
+ NOT_FOUND
998
+ }),
973
999
  create: oc.route({
974
1000
  method: "POST",
975
1001
  path: "/{entityPubKey}/reward-contract",
@@ -1002,7 +1028,8 @@ var rewardContract = oc.tag("Reward Contract").prefix("/hotspots").router({
1002
1028
  BAD_REQUEST,
1003
1029
  NOT_FOUND,
1004
1030
  // if wallet is not the delegate
1005
- UNAUTHORIZED
1031
+ UNAUTHORIZED,
1032
+ INSUFFICIENT_FUNDS
1006
1033
  }).output(DeleteRewardContractTransactionResponseSchema),
1007
1034
  invite: oc.route({
1008
1035
  method: "POST",
@@ -1052,7 +1079,8 @@ var swapContract = oc.tag("Swap").router({
1052
1079
  }),
1053
1080
  getInstructions: oc.route({ method: "POST", path: "/swap/instructions" }).input(GetInstructionsInputSchema).output(TransactionDataSchema).errors({
1054
1081
  BAD_REQUEST: { message: "Invalid instruction parameters", status: 400 },
1055
- JUPITER_ERROR: { message: "Failed to get swap instructions from Jupiter" }
1082
+ JUPITER_ERROR: { message: "Failed to get swap instructions from Jupiter" },
1083
+ INSUFFICIENT_FUNDS
1056
1084
  })
1057
1085
  });
1058
1086
  var transactionsContract = oc.tag("Transactions").router({
@@ -1083,7 +1111,8 @@ var welcomePacksContract = oc.tag("Welcome Packs").router({
1083
1111
  /** Protected: Create a new welcome pack */
1084
1112
  create: oc.route({ method: "POST", path: "/welcome-packs", summary: "Create a new welcome pack" }).input(WelcomePackCreateInputSchema).output(WelcomePackCreateOutputSchema).errors({
1085
1113
  BAD_REQUEST,
1086
- CONFLICT
1114
+ CONFLICT,
1115
+ INSUFFICIENT_FUNDS
1087
1116
  }),
1088
1117
  /** Public: Get a specific welcome pack */
1089
1118
  get: oc.route({ method: "GET", path: "/welcome-packs/{walletAddress}/{packId}", summary: "Get a specific welcome pack" }).input(WelcomePackGetInputSchema).output(WelcomePackSchema).errors({
@@ -1093,7 +1122,8 @@ var welcomePacksContract = oc.tag("Welcome Packs").router({
1093
1122
  /** Protected: Delete a welcome pack */
1094
1123
  delete: oc.route({ method: "DELETE", path: "/welcome-packs/{walletAddress}/{packId}", summary: "Delete a welcome pack" }).input(WelcomePackDeleteInputSchema).output(WelcomePackDeleteOutputSchema).errors({
1095
1124
  BAD_REQUEST,
1096
- INVALID_WALLET_ADDRESS
1125
+ INVALID_WALLET_ADDRESS,
1126
+ INSUFFICIENT_FUNDS
1097
1127
  }),
1098
1128
  /** Public: Get welcome pack by pack address */
1099
1129
  getByAddress: oc.route({ method: "GET", path: "/welcome-packs/address/{packAddress}", summary: "Get welcome pack by pack address" }).input(WelcomePackGetByAddressInputSchema).output(WelcomePackSchema).errors({
@@ -1140,7 +1170,8 @@ var fiatContract = oc.errors({
1140
1170
  sendFunds: oc.route({ method: "POST", path: "/fiat/send" }).input(SendFundsInputSchema).output(SendFundsOutputSchema).errors({
1141
1171
  NOT_FOUND,
1142
1172
  BRIDGE_ERROR: { message: "Failed to create Bridge transfer", status: 500 },
1143
- JUPITER_ERROR: { message: "Failed to get quote from Jupiter", status: 500 }
1173
+ JUPITER_ERROR: { message: "Failed to get quote from Jupiter", status: 500 },
1174
+ INSUFFICIENT_FUNDS
1144
1175
  }),
1145
1176
  updateTransfer: oc.route({ method: "PUT", path: "/fiat/transfer/{id}" }).input(UpdateTransferInputSchema).output(UpdateTransferOutputSchema).errors({
1146
1177
  NOT_FOUND: { message: "Transfer not found", status: 404 }
@@ -1180,4 +1211,4 @@ var fullApiContract = oc.router({
1180
1211
  webhooks: webhooksContract
1181
1212
  });
1182
1213
 
1183
- export { AutomationScheduleSchema, AutomationStatusOutputSchema, BAD_REQUEST, BankAccountListOutputSchema, BankAccountSchema, BatchStatusOutputSchema, BridgeTransferSchema, CONFLICT, ClaimInviteRequestSchema, ClaimInviteResponseSchema, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, CloseAutomationInputSchema, CloseAutomationOutputSchema, CreateBankAccountInputSchema, CreateHntAccountInputSchema, CreateHntAccountOutputSchema, CreateInviteResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, CreateSplitInputSchema, CreateSplitOutputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, DeleteRewardContractTransactionResponseSchema, DeleteSplitInputSchema, DeleteSplitOutputSchema, DeviceTypeSchema, ErrorResponseSchema, FeesOutputSchema, FindRewardContractResponseSchema, FundAutomationInputSchema, FundAutomationOutputSchema, FundingEstimateOutputSchema, GetAutomationStatusInputSchema, GetBalancesInputSchema, GetBankAccountInputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetFundingEstimateInputSchema, GetHotspotsInputSchema, GetInputSchema, GetInstructionsInputSchema, GetPendingRewardsInputSchema, GetPendingRewardsOutputSchema, GetQuoteInputSchema, GetSendQuoteInputSchema, GetSplitInputSchema, GetTokensInputSchema, GetTransferInputSchema, HealthResponseSchema, HeliumPublicKeySchema, HotspotSchema, HotspotSharesSchema, HotspotTypeSchema, HotspotsDataSchema, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, InitKycInputSchema, KycStatusOutputSchema, NOT_FOUND, OwnershipTypeSchema, PaginationInputSchema, PaginationOutputSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, PublicKeySchema, QuoteOutputSchema, QuoteResponseSchema, RATE_LIMITED, ResubmitInputSchema, ResubmitOutputSchema, RewardSplitInputSchema, SIMULATION_FAILED, ScheduleInputSchema, SendFundsInputSchema, SendFundsOutputSchema, SetupAutomationInputSchema, SetupAutomationOutputSchema, SplitResponseSchema, SplitShareSchema, SubmitInputSchema, SubmitOutputSchema, SwapTransactionDataSchema, TRANSACTION_FAILED, TokenAccountSchema, TokenAmountInputSchema, TokenAmountOutputSchema, TokenBalanceDataSchema, TokenListOutputSchema, TokenSchema, TransactionBatchRequestSchema, TransactionBatchResponseSchema, TransactionDataSchema, TransactionItemSchema, TransactionMetadataSchema, TransactionStatusSchema, TransferHotspotInputSchema, TransferHotspotOutputSchema, TransferInputSchema, TransferOutputSchema, UNAUTHENTICATED, UNAUTHORIZED, UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema, UpdateTransferInputSchema, UpdateTransferOutputSchema, WalletAddressSchema, WelcomePackClaimInputSchema, WelcomePackClaimOutputSchema, WelcomePackCreateInputSchema, WelcomePackCreateOutputSchema, WelcomePackDeleteInputSchema, WelcomePackDeleteOutputSchema, WelcomePackGetByAddressInputSchema, WelcomePackGetInputSchema, WelcomePackInviteInputSchema, WelcomePackInviteOutputSchema, WelcomePackListInputSchema, WelcomePackListOutputSchema, WelcomePackSchema, apiContract, fullApiContract };
1214
+ export { AutomationScheduleSchema, AutomationStatusOutputSchema, BAD_REQUEST, BankAccountListOutputSchema, BankAccountSchema, BatchStatusOutputSchema, BridgeTransferSchema, CONFLICT, ClaimInviteRequestSchema, ClaimInviteResponseSchema, ClaimRewardsInputSchema, ClaimRewardsOutputSchema, CloseAutomationInputSchema, CloseAutomationOutputSchema, CreateBankAccountInputSchema, CreateHntAccountInputSchema, CreateHntAccountOutputSchema, CreateInviteResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, CreateSplitInputSchema, CreateSplitOutputSchema, DeleteBankAccountInputSchema, DeleteBankAccountOutputSchema, DeleteRewardContractTransactionResponseSchema, DeleteSplitInputSchema, DeleteSplitOutputSchema, DeviceTypeSchema, ErrorResponseSchema, EstimateCostToCreateRewardContractResponseSchema, FeesOutputSchema, FindRewardContractResponseSchema, FundAutomationInputSchema, FundAutomationOutputSchema, FundingEstimateOutputSchema, GetAutomationStatusInputSchema, GetBalancesInputSchema, GetBankAccountInputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetFundingEstimateInputSchema, GetHotspotsInputSchema, GetInputSchema, GetInstructionsInputSchema, GetPendingRewardsInputSchema, GetPendingRewardsOutputSchema, GetQuoteInputSchema, GetSendQuoteInputSchema, GetSplitInputSchema, GetTokensInputSchema, GetTransferInputSchema, HealthResponseSchema, HeliumPublicKeySchema, HotspotSchema, HotspotSharesSchema, HotspotTypeSchema, HotspotsDataSchema, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, InitKycInputSchema, KycStatusOutputSchema, NOT_FOUND, OwnershipTypeSchema, PaginationInputSchema, PaginationOutputSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, PublicKeySchema, QuoteOutputSchema, QuoteResponseSchema, RATE_LIMITED, ResubmitInputSchema, ResubmitOutputSchema, RewardSplitInputSchema, SIMULATION_FAILED, ScheduleInputSchema, SendFundsInputSchema, SendFundsOutputSchema, SetupAutomationInputSchema, SetupAutomationOutputSchema, SplitResponseSchema, SplitShareSchema, SubmitInputSchema, SubmitOutputSchema, SwapTransactionDataSchema, TRANSACTION_FAILED, TokenAccountSchema, TokenAmountInputSchema, TokenAmountOutputSchema, TokenBalanceDataSchema, TokenListOutputSchema, TokenSchema, TransactionBatchRequestSchema, TransactionBatchResponseSchema, TransactionDataSchema, TransactionItemSchema, TransactionMetadataSchema, TransactionStatusSchema, TransferHotspotInputSchema, TransferHotspotOutputSchema, TransferInputSchema, TransferOutputSchema, UNAUTHENTICATED, UNAUTHORIZED, UpdateHotspotInfoInputSchema, UpdateHotspotInfoOutputSchema, UpdateRewardsDestinationInputSchema, UpdateRewardsDestinationOutputSchema, UpdateTransferInputSchema, UpdateTransferOutputSchema, WalletAddressSchema, WelcomePackClaimInputSchema, WelcomePackClaimOutputSchema, WelcomePackCreateInputSchema, WelcomePackCreateOutputSchema, WelcomePackDeleteInputSchema, WelcomePackDeleteOutputSchema, WelcomePackGetByAddressInputSchema, WelcomePackGetInputSchema, WelcomePackInviteInputSchema, WelcomePackInviteOutputSchema, WelcomePackListInputSchema, WelcomePackListOutputSchema, WelcomePackSchema, apiContract, fullApiContract };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helium/blockchain-api",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "TypeScript client and schemas for the Helium Blockchain API",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {