@helium/blockchain-api 0.3.5 → 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 +189 -1
- package/dist/index.js +20 -1
- package/package.json +2 -2
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<{
|
|
@@ -2290,6 +2322,84 @@ declare const apiContract: {
|
|
|
2290
2322
|
}, zod_v4_core.$strip>>;
|
|
2291
2323
|
};
|
|
2292
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>>;
|
|
2293
2403
|
create: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
2294
2404
|
delegateWalletAddress: zod.ZodString;
|
|
2295
2405
|
recipients: zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
@@ -4170,6 +4280,84 @@ declare const fullApiContract: {
|
|
|
4170
4280
|
}, zod_v4_core.$strip>>;
|
|
4171
4281
|
};
|
|
4172
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>>;
|
|
4173
4361
|
create: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
4174
4362
|
delegateWalletAddress: zod.ZodString;
|
|
4175
4363
|
recipients: zod.ZodArray<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
@@ -5011,4 +5199,4 @@ declare const fullApiContract: {
|
|
|
5011
5199
|
};
|
|
5012
5200
|
};
|
|
5013
5201
|
|
|
5014
|
-
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"
|
|
@@ -977,6 +985,17 @@ var rewardContract = oc.tag("Reward Contract").prefix("/hotspots").router({
|
|
|
977
985
|
NOT_FOUND,
|
|
978
986
|
BAD_REQUEST
|
|
979
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
|
+
}),
|
|
980
999
|
create: oc.route({
|
|
981
1000
|
method: "POST",
|
|
982
1001
|
path: "/{entityPubKey}/reward-contract",
|
|
@@ -1192,4 +1211,4 @@ var fullApiContract = oc.router({
|
|
|
1192
1211
|
webhooks: webhooksContract
|
|
1193
1212
|
});
|
|
1194
1213
|
|
|
1195
|
-
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.
|
|
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": {
|
|
@@ -34,4 +34,4 @@
|
|
|
34
34
|
"tsup": "^8.0.0",
|
|
35
35
|
"typescript": "^5.0.0"
|
|
36
36
|
}
|
|
37
|
-
}
|
|
37
|
+
}
|