@helium/blockchain-api 0.18.1 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-FIUU5UFI.js +74 -0
- package/dist/{chunk-CRC2WDWU.js → chunk-YTIHOF45.js} +1 -1
- package/dist/contracts.d.ts +24 -9
- package/dist/contracts.js +2 -2
- package/dist/index.js +2 -2
- package/dist/schemas/hotspots.d.ts +4 -4
- package/dist/schemas/swap.d.ts +5 -0
- package/dist/schemas/swap.js +1 -1
- package/dist/schemas.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-V3MNHRVC.js +0 -56
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { TransactionDataSchema } from './chunk-Z4E3I2B4.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
var GetTokensInputSchema = z.object({
|
|
5
|
+
limit: z.coerce.number().int().min(1).max(100).default(50)
|
|
6
|
+
});
|
|
7
|
+
var GetQuoteInputSchema = z.object({
|
|
8
|
+
inputMint: z.string().min(1),
|
|
9
|
+
outputMint: z.string().min(1),
|
|
10
|
+
amount: z.string().min(1),
|
|
11
|
+
swapMode: z.enum(["ExactIn", "ExactOut"]).default("ExactIn").describe(
|
|
12
|
+
"Only ExactIn is supported: getQuote and getInstructions refuse ExactOut with BAD_REQUEST, because Jupiter's Swap V2 /build swaps an exact input only."
|
|
13
|
+
),
|
|
14
|
+
slippageBps: z.coerce.number().min(0).max(1e4).default(50),
|
|
15
|
+
excludeDexes: z.string().optional().describe(
|
|
16
|
+
"Comma-separated Jupiter DEX labels to leave out of the quoted route. JupiterRfqV2 is always left out. The quote returns these labels as excludeDexes, and getInstructions applies them again when it builds the swap."
|
|
17
|
+
)
|
|
18
|
+
}).refine((input) => input.inputMint !== input.outputMint, {
|
|
19
|
+
message: "inputMint and outputMint must be different",
|
|
20
|
+
path: ["outputMint"]
|
|
21
|
+
});
|
|
22
|
+
var QuoteResponseSchema = z.object({
|
|
23
|
+
inputMint: z.string(),
|
|
24
|
+
inAmount: z.string(),
|
|
25
|
+
outputMint: z.string(),
|
|
26
|
+
outAmount: z.string(),
|
|
27
|
+
otherAmountThreshold: z.string(),
|
|
28
|
+
swapMode: z.string(),
|
|
29
|
+
slippageBps: z.number(),
|
|
30
|
+
platformFee: z.unknown().optional(),
|
|
31
|
+
priceImpactPct: z.string(),
|
|
32
|
+
routePlan: z.array(z.unknown()),
|
|
33
|
+
contextSlot: z.number().optional(),
|
|
34
|
+
timeTaken: z.number().optional(),
|
|
35
|
+
excludeDexes: z.array(z.string()).optional()
|
|
36
|
+
}).passthrough();
|
|
37
|
+
var GetInstructionsInputSchema = z.object({
|
|
38
|
+
quoteResponse: QuoteResponseSchema.describe(
|
|
39
|
+
"A getQuote response. The swap is built for its inputMint, outputMint, inAmount and slippageBps; Jupiter quotes the route again, so the output amount can differ from this quote's outAmount. A built swap whose minimum output is below this quote's otherAmountThreshold is built once more at the narrower slippage that keeps that minimum, and otherwise refused with BAD_REQUEST as an expired quote: refresh the quote and try again. Only ExactIn quotes are accepted."
|
|
40
|
+
),
|
|
41
|
+
userPublicKey: z.string().min(1),
|
|
42
|
+
destinationTokenAccount: z.string().optional().describe("SPL token account that receives the output tokens"),
|
|
43
|
+
excludeDexes: z.string().optional().describe(
|
|
44
|
+
"Comma-separated Jupiter DEX labels to leave out of the built route. Merged with the excludeDexes the quote carries. A built route through a listed label (exact, case-sensitive match) is refused with JUPITER_ERROR."
|
|
45
|
+
),
|
|
46
|
+
dynamicComputeUnitLimit: z.boolean().default(true).describe(
|
|
47
|
+
"Accepted for compatibility and ignored: the server sets the compute unit limit itself."
|
|
48
|
+
),
|
|
49
|
+
useSharedAccounts: z.boolean().optional().describe(
|
|
50
|
+
"Accepted for compatibility and ignored: Jupiter's Swap V2 /build chooses whether the route uses shared program accounts and takes no option for it."
|
|
51
|
+
),
|
|
52
|
+
prioritizationFeeLamports: z.object({
|
|
53
|
+
priorityLevelWithMaxLamports: z.object({
|
|
54
|
+
maxLamports: z.number().default(1e6),
|
|
55
|
+
priorityLevel: z.enum(["low", "medium", "high"]).default("medium")
|
|
56
|
+
})
|
|
57
|
+
}).optional().describe(
|
|
58
|
+
"Accepted for compatibility and ignored: the server sets the compute unit price itself."
|
|
59
|
+
)
|
|
60
|
+
});
|
|
61
|
+
var TokenSchema = z.object({
|
|
62
|
+
address: z.string(),
|
|
63
|
+
symbol: z.string(),
|
|
64
|
+
name: z.string(),
|
|
65
|
+
decimals: z.number(),
|
|
66
|
+
logoURI: z.string().optional(),
|
|
67
|
+
tags: z.array(z.string()).optional()
|
|
68
|
+
});
|
|
69
|
+
var TokenListOutputSchema = z.object({
|
|
70
|
+
tokens: z.array(TokenSchema)
|
|
71
|
+
});
|
|
72
|
+
var SwapTransactionDataSchema = TransactionDataSchema;
|
|
73
|
+
|
|
74
|
+
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, BAD_REQUEST, NOT_FOUND, UNAUTHORIZED, CONFLICT, ALL_POSITIONS_SKIPPED, RATE_LIMITED, SIMULATION_FAILED, BLOCKHASH_EXPIRED } from './chunk-XSASLENU.js';
|
|
2
2
|
import { ClaimInviteRequestSchema, ClaimInviteResponseSchema, CreateInviteResponseSchema, DeleteRewardContractTransactionResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, EstimateCostToCreateRewardContractResponseSchema, FindRewardContractResponseSchema } from './chunk-KZ3X5E6E.js';
|
|
3
|
-
import { GetInstructionsInputSchema, GetQuoteInputSchema, QuoteResponseSchema, GetTokensInputSchema, TokenListOutputSchema } from './chunk-
|
|
3
|
+
import { GetInstructionsInputSchema, GetQuoteInputSchema, QuoteResponseSchema, GetTokensInputSchema, TokenListOutputSchema } from './chunk-FIUU5UFI.js';
|
|
4
4
|
import { CreateHntAccountInputSchema, CreateHntAccountOutputSchema, MemoInputSchema, MemoOutputSchema, BurnInputSchema, BurnOutputSchema, MultiTransferInputSchema, MultiTransferOutputSchema, TransferInputSchema, TransferOutputSchema, GetBalancesInputSchema, TokenBalanceDataSchema } from './chunk-7KWTYKKU.js';
|
|
5
5
|
import { GetHistoryInputSchema, HistoryOutputSchema, EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, PayerBatchesOutputSchema, GetByPayerInputSchema, ResubmitInputSchema, ResubmitOutputSchema, GetInputSchema, BatchStatusOutputSchema, SubmitInputSchema, SubmitOutputSchema } from './chunk-TGBSASKU.js';
|
|
6
6
|
import { BurnDataCreditsInputSchema, DelegateDataCreditsInputSchema, MintDataCreditsInputSchema } from './chunk-7GK4VHJM.js';
|
package/dist/contracts.d.ts
CHANGED
|
@@ -1172,9 +1172,9 @@ declare const hotspotsContract: {
|
|
|
1172
1172
|
claimRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
1173
1173
|
walletAddress: zod.ZodString;
|
|
1174
1174
|
network: zod.ZodDefault<zod.ZodEnum<{
|
|
1175
|
-
hnt: "hnt";
|
|
1176
1175
|
iot: "iot";
|
|
1177
1176
|
mobile: "mobile";
|
|
1177
|
+
hnt: "hnt";
|
|
1178
1178
|
}>>;
|
|
1179
1179
|
tuktuk: zod.ZodOptional<zod.ZodBoolean>;
|
|
1180
1180
|
estimatedPendingRewards: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -1243,9 +1243,9 @@ declare const hotspotsContract: {
|
|
|
1243
1243
|
entityPubKey: zod.ZodString;
|
|
1244
1244
|
walletAddress: zod.ZodString;
|
|
1245
1245
|
network: zod.ZodDefault<zod.ZodEnum<{
|
|
1246
|
-
hnt: "hnt";
|
|
1247
1246
|
iot: "iot";
|
|
1248
1247
|
mobile: "mobile";
|
|
1248
|
+
hnt: "hnt";
|
|
1249
1249
|
}>>;
|
|
1250
1250
|
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
1251
1251
|
transactionData: zod.ZodObject<{
|
|
@@ -1335,9 +1335,9 @@ declare const hotspotsContract: {
|
|
|
1335
1335
|
getPendingRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
1336
1336
|
walletAddress: zod.ZodString;
|
|
1337
1337
|
network: zod.ZodDefault<zod.ZodEnum<{
|
|
1338
|
-
hnt: "hnt";
|
|
1339
1338
|
iot: "iot";
|
|
1340
1339
|
mobile: "mobile";
|
|
1340
|
+
hnt: "hnt";
|
|
1341
1341
|
}>>;
|
|
1342
1342
|
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
1343
1343
|
pending: zod.ZodObject<{
|
|
@@ -2682,6 +2682,7 @@ declare const swapContract: {
|
|
|
2682
2682
|
ExactOut: "ExactOut";
|
|
2683
2683
|
}>>;
|
|
2684
2684
|
slippageBps: zod.ZodDefault<zod.ZodCoercedNumber<unknown>>;
|
|
2685
|
+
excludeDexes: zod.ZodOptional<zod.ZodString>;
|
|
2685
2686
|
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
2686
2687
|
inputMint: zod.ZodString;
|
|
2687
2688
|
inAmount: zod.ZodString;
|
|
@@ -2695,6 +2696,7 @@ declare const swapContract: {
|
|
|
2695
2696
|
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
2696
2697
|
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
2697
2698
|
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
2699
|
+
excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
2698
2700
|
}, zod_v4_core.$loose>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2699
2701
|
BAD_REQUEST: {
|
|
2700
2702
|
message: string;
|
|
@@ -2722,10 +2724,13 @@ declare const swapContract: {
|
|
|
2722
2724
|
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
2723
2725
|
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
2724
2726
|
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
2727
|
+
excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
2725
2728
|
}, zod_v4_core.$loose>;
|
|
2726
2729
|
userPublicKey: zod.ZodString;
|
|
2727
2730
|
destinationTokenAccount: zod.ZodOptional<zod.ZodString>;
|
|
2731
|
+
excludeDexes: zod.ZodOptional<zod.ZodString>;
|
|
2728
2732
|
dynamicComputeUnitLimit: zod.ZodDefault<zod.ZodBoolean>;
|
|
2733
|
+
useSharedAccounts: zod.ZodOptional<zod.ZodBoolean>;
|
|
2729
2734
|
prioritizationFeeLamports: zod.ZodOptional<zod.ZodObject<{
|
|
2730
2735
|
priorityLevelWithMaxLamports: zod.ZodObject<{
|
|
2731
2736
|
maxLamports: zod.ZodDefault<zod.ZodNumber>;
|
|
@@ -5104,9 +5109,9 @@ declare const apiContract: {
|
|
|
5104
5109
|
claimRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
5105
5110
|
walletAddress: zod.ZodString;
|
|
5106
5111
|
network: zod.ZodDefault<zod.ZodEnum<{
|
|
5107
|
-
hnt: "hnt";
|
|
5108
5112
|
iot: "iot";
|
|
5109
5113
|
mobile: "mobile";
|
|
5114
|
+
hnt: "hnt";
|
|
5110
5115
|
}>>;
|
|
5111
5116
|
tuktuk: zod.ZodOptional<zod.ZodBoolean>;
|
|
5112
5117
|
estimatedPendingRewards: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -5175,9 +5180,9 @@ declare const apiContract: {
|
|
|
5175
5180
|
entityPubKey: zod.ZodString;
|
|
5176
5181
|
walletAddress: zod.ZodString;
|
|
5177
5182
|
network: zod.ZodDefault<zod.ZodEnum<{
|
|
5178
|
-
hnt: "hnt";
|
|
5179
5183
|
iot: "iot";
|
|
5180
5184
|
mobile: "mobile";
|
|
5185
|
+
hnt: "hnt";
|
|
5181
5186
|
}>>;
|
|
5182
5187
|
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
5183
5188
|
transactionData: zod.ZodObject<{
|
|
@@ -5267,9 +5272,9 @@ declare const apiContract: {
|
|
|
5267
5272
|
getPendingRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
5268
5273
|
walletAddress: zod.ZodString;
|
|
5269
5274
|
network: zod.ZodDefault<zod.ZodEnum<{
|
|
5270
|
-
hnt: "hnt";
|
|
5271
5275
|
iot: "iot";
|
|
5272
5276
|
mobile: "mobile";
|
|
5277
|
+
hnt: "hnt";
|
|
5273
5278
|
}>>;
|
|
5274
5279
|
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
5275
5280
|
pending: zod.ZodObject<{
|
|
@@ -6612,6 +6617,7 @@ declare const apiContract: {
|
|
|
6612
6617
|
ExactOut: "ExactOut";
|
|
6613
6618
|
}>>;
|
|
6614
6619
|
slippageBps: zod.ZodDefault<zod.ZodCoercedNumber<unknown>>;
|
|
6620
|
+
excludeDexes: zod.ZodOptional<zod.ZodString>;
|
|
6615
6621
|
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
6616
6622
|
inputMint: zod.ZodString;
|
|
6617
6623
|
inAmount: zod.ZodString;
|
|
@@ -6625,6 +6631,7 @@ declare const apiContract: {
|
|
|
6625
6631
|
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
6626
6632
|
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
6627
6633
|
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
6634
|
+
excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
6628
6635
|
}, zod_v4_core.$loose>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6629
6636
|
BAD_REQUEST: {
|
|
6630
6637
|
message: string;
|
|
@@ -6652,10 +6659,13 @@ declare const apiContract: {
|
|
|
6652
6659
|
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
6653
6660
|
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
6654
6661
|
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
6662
|
+
excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
6655
6663
|
}, zod_v4_core.$loose>;
|
|
6656
6664
|
userPublicKey: zod.ZodString;
|
|
6657
6665
|
destinationTokenAccount: zod.ZodOptional<zod.ZodString>;
|
|
6666
|
+
excludeDexes: zod.ZodOptional<zod.ZodString>;
|
|
6658
6667
|
dynamicComputeUnitLimit: zod.ZodDefault<zod.ZodBoolean>;
|
|
6668
|
+
useSharedAccounts: zod.ZodOptional<zod.ZodBoolean>;
|
|
6659
6669
|
prioritizationFeeLamports: zod.ZodOptional<zod.ZodObject<{
|
|
6660
6670
|
priorityLevelWithMaxLamports: zod.ZodObject<{
|
|
6661
6671
|
maxLamports: zod.ZodDefault<zod.ZodNumber>;
|
|
@@ -9020,9 +9030,9 @@ declare const fullApiContract: {
|
|
|
9020
9030
|
claimRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
9021
9031
|
walletAddress: zod.ZodString;
|
|
9022
9032
|
network: zod.ZodDefault<zod.ZodEnum<{
|
|
9023
|
-
hnt: "hnt";
|
|
9024
9033
|
iot: "iot";
|
|
9025
9034
|
mobile: "mobile";
|
|
9035
|
+
hnt: "hnt";
|
|
9026
9036
|
}>>;
|
|
9027
9037
|
tuktuk: zod.ZodOptional<zod.ZodBoolean>;
|
|
9028
9038
|
estimatedPendingRewards: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -9091,9 +9101,9 @@ declare const fullApiContract: {
|
|
|
9091
9101
|
entityPubKey: zod.ZodString;
|
|
9092
9102
|
walletAddress: zod.ZodString;
|
|
9093
9103
|
network: zod.ZodDefault<zod.ZodEnum<{
|
|
9094
|
-
hnt: "hnt";
|
|
9095
9104
|
iot: "iot";
|
|
9096
9105
|
mobile: "mobile";
|
|
9106
|
+
hnt: "hnt";
|
|
9097
9107
|
}>>;
|
|
9098
9108
|
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
9099
9109
|
transactionData: zod.ZodObject<{
|
|
@@ -9183,9 +9193,9 @@ declare const fullApiContract: {
|
|
|
9183
9193
|
getPendingRewards: _orpc_contract.ContractProcedure<zod.ZodObject<{
|
|
9184
9194
|
walletAddress: zod.ZodString;
|
|
9185
9195
|
network: zod.ZodDefault<zod.ZodEnum<{
|
|
9186
|
-
hnt: "hnt";
|
|
9187
9196
|
iot: "iot";
|
|
9188
9197
|
mobile: "mobile";
|
|
9198
|
+
hnt: "hnt";
|
|
9189
9199
|
}>>;
|
|
9190
9200
|
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
9191
9201
|
pending: zod.ZodObject<{
|
|
@@ -10528,6 +10538,7 @@ declare const fullApiContract: {
|
|
|
10528
10538
|
ExactOut: "ExactOut";
|
|
10529
10539
|
}>>;
|
|
10530
10540
|
slippageBps: zod.ZodDefault<zod.ZodCoercedNumber<unknown>>;
|
|
10541
|
+
excludeDexes: zod.ZodOptional<zod.ZodString>;
|
|
10531
10542
|
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
10532
10543
|
inputMint: zod.ZodString;
|
|
10533
10544
|
inAmount: zod.ZodString;
|
|
@@ -10541,6 +10552,7 @@ declare const fullApiContract: {
|
|
|
10541
10552
|
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
10542
10553
|
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
10543
10554
|
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
10555
|
+
excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
10544
10556
|
}, zod_v4_core.$loose>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
10545
10557
|
BAD_REQUEST: {
|
|
10546
10558
|
message: string;
|
|
@@ -10568,10 +10580,13 @@ declare const fullApiContract: {
|
|
|
10568
10580
|
routePlan: zod.ZodArray<zod.ZodUnknown>;
|
|
10569
10581
|
contextSlot: zod.ZodOptional<zod.ZodNumber>;
|
|
10570
10582
|
timeTaken: zod.ZodOptional<zod.ZodNumber>;
|
|
10583
|
+
excludeDexes: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
10571
10584
|
}, zod_v4_core.$loose>;
|
|
10572
10585
|
userPublicKey: zod.ZodString;
|
|
10573
10586
|
destinationTokenAccount: zod.ZodOptional<zod.ZodString>;
|
|
10587
|
+
excludeDexes: zod.ZodOptional<zod.ZodString>;
|
|
10574
10588
|
dynamicComputeUnitLimit: zod.ZodDefault<zod.ZodBoolean>;
|
|
10589
|
+
useSharedAccounts: zod.ZodOptional<zod.ZodBoolean>;
|
|
10575
10590
|
prioritizationFeeLamports: zod.ZodOptional<zod.ZodObject<{
|
|
10576
10591
|
priorityLevelWithMaxLamports: zod.ZodObject<{
|
|
10577
10592
|
maxLamports: zod.ZodDefault<zod.ZodNumber>;
|
package/dist/contracts.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { apiContract, dataCreditsContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, squadsContract, swapContract, tokensContract, transactionsContract, welcomePacksContract } from './chunk-
|
|
1
|
+
export { apiContract, dataCreditsContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, squadsContract, swapContract, tokensContract, transactionsContract, welcomePacksContract } from './chunk-YTIHOF45.js';
|
|
2
2
|
import './chunk-XSASLENU.js';
|
|
3
3
|
import './chunk-KZ3X5E6E.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-FIUU5UFI.js';
|
|
5
5
|
import './chunk-7KWTYKKU.js';
|
|
6
6
|
import './chunk-TGBSASKU.js';
|
|
7
7
|
import './chunk-7GK4VHJM.js';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './chunk-DQYAIQQ5.js';
|
|
2
|
-
export { apiContract, fullApiContract } from './chunk-
|
|
2
|
+
export { apiContract, fullApiContract } from './chunk-YTIHOF45.js';
|
|
3
3
|
export { ALL_POSITIONS_SKIPPED, BAD_REQUEST, BLOCKHASH_EXPIRED, CONFLICT, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, NOT_FOUND, RATE_LIMITED, SIMULATION_FAILED, TRANSACTION_FAILED, UNAUTHENTICATED, UNAUTHORIZED } from './chunk-XSASLENU.js';
|
|
4
4
|
import './chunk-TEWZC6CW.js';
|
|
5
5
|
export { ClaimInviteRequestSchema, ClaimInviteResponseSchema, CreateInviteResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, DeleteRewardContractTransactionResponseSchema, EstimateCostToCreateRewardContractResponseSchema, FindRewardContractResponseSchema } from './chunk-KZ3X5E6E.js';
|
|
6
|
-
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-
|
|
6
|
+
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-FIUU5UFI.js';
|
|
7
7
|
export { BurnInputSchema, BurnOutputSchema, CreateHntAccountInputSchema, CreateHntAccountOutputSchema, GetBalancesInputSchema, MemoInputSchema, MemoOutputSchema, MultiTransferInputSchema, MultiTransferOutputSchema, MultiTransferRecipientSchema, TokenAccountSchema, TokenBalanceDataSchema, TransferInputSchema, TransferOutputSchema } from './chunk-7KWTYKKU.js';
|
|
8
8
|
export { BatchStatusOutputSchema, EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetHistoryInputSchema, GetInputSchema, HistoryActionSchema, HistoryOutputSchema, HistoryTransactionSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, ResubmitInputSchema, ResubmitOutputSchema, SubmitInputSchema, SubmitOutputSchema, TransactionStatusSchema } from './chunk-TGBSASKU.js';
|
|
9
9
|
export { BurnDataCreditsInputSchema, DelegateDataCreditsInputSchema, MintDataCreditsInputSchema } from './chunk-7GK4VHJM.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const RewardNetworkSchema: z.ZodDefault<z.ZodEnum<{
|
|
4
|
-
hnt: "hnt";
|
|
5
4
|
iot: "iot";
|
|
6
5
|
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";
|
|
27
26
|
iot: "iot";
|
|
28
27
|
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";
|
|
44
43
|
iot: "iot";
|
|
45
44
|
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";
|
|
52
51
|
iot: "iot";
|
|
53
52
|
mobile: "mobile";
|
|
53
|
+
hnt: "hnt";
|
|
54
54
|
}>>;
|
|
55
55
|
}, z.core.$strip>;
|
|
56
56
|
declare const GetPendingRewardsOutputSchema: z.ZodObject<{
|
package/dist/schemas/swap.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ declare const GetQuoteInputSchema: z.ZodObject<{
|
|
|
12
12
|
ExactOut: "ExactOut";
|
|
13
13
|
}>>;
|
|
14
14
|
slippageBps: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
15
|
+
excludeDexes: z.ZodOptional<z.ZodString>;
|
|
15
16
|
}, z.core.$strip>;
|
|
16
17
|
declare const QuoteResponseSchema: z.ZodObject<{
|
|
17
18
|
inputMint: z.ZodString;
|
|
@@ -26,6 +27,7 @@ declare const QuoteResponseSchema: z.ZodObject<{
|
|
|
26
27
|
routePlan: z.ZodArray<z.ZodUnknown>;
|
|
27
28
|
contextSlot: z.ZodOptional<z.ZodNumber>;
|
|
28
29
|
timeTaken: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
excludeDexes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
31
|
}, z.core.$loose>;
|
|
30
32
|
declare const GetInstructionsInputSchema: z.ZodObject<{
|
|
31
33
|
quoteResponse: z.ZodObject<{
|
|
@@ -41,10 +43,13 @@ declare const GetInstructionsInputSchema: z.ZodObject<{
|
|
|
41
43
|
routePlan: z.ZodArray<z.ZodUnknown>;
|
|
42
44
|
contextSlot: z.ZodOptional<z.ZodNumber>;
|
|
43
45
|
timeTaken: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
excludeDexes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
47
|
}, z.core.$loose>;
|
|
45
48
|
userPublicKey: z.ZodString;
|
|
46
49
|
destinationTokenAccount: z.ZodOptional<z.ZodString>;
|
|
50
|
+
excludeDexes: z.ZodOptional<z.ZodString>;
|
|
47
51
|
dynamicComputeUnitLimit: z.ZodDefault<z.ZodBoolean>;
|
|
52
|
+
useSharedAccounts: z.ZodOptional<z.ZodBoolean>;
|
|
48
53
|
prioritizationFeeLamports: z.ZodOptional<z.ZodObject<{
|
|
49
54
|
priorityLevelWithMaxLamports: z.ZodObject<{
|
|
50
55
|
maxLamports: z.ZodDefault<z.ZodNumber>;
|
package/dist/schemas/swap.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from '../chunk-
|
|
1
|
+
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from '../chunk-FIUU5UFI.js';
|
|
2
2
|
import '../chunk-Z4E3I2B4.js';
|
package/dist/schemas.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './chunk-TEWZC6CW.js';
|
|
2
2
|
export { ClaimInviteRequestSchema, ClaimInviteResponseSchema, CreateInviteResponseSchema, CreateRewardContractTransactionInputSchema, CreateRewardContractTransactionResponseSchema, DeleteRewardContractTransactionResponseSchema, EstimateCostToCreateRewardContractResponseSchema, FindRewardContractResponseSchema } from './chunk-KZ3X5E6E.js';
|
|
3
|
-
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-
|
|
3
|
+
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema } from './chunk-FIUU5UFI.js';
|
|
4
4
|
export { BurnInputSchema, BurnOutputSchema, CreateHntAccountInputSchema, CreateHntAccountOutputSchema, GetBalancesInputSchema, MemoInputSchema, MemoOutputSchema, MultiTransferInputSchema, MultiTransferOutputSchema, MultiTransferRecipientSchema, TokenAccountSchema, TokenBalanceDataSchema, TransferInputSchema, TransferOutputSchema } from './chunk-7KWTYKKU.js';
|
|
5
5
|
export { BatchStatusOutputSchema, EstimateInputSchema, EstimateOutputSchema, GetByPayerAndTagInputSchema, GetByPayerInputSchema, GetHistoryInputSchema, GetInputSchema, HistoryActionSchema, HistoryOutputSchema, HistoryTransactionSchema, PayerBatchSummarySchema, PayerBatchesOutputSchema, ResubmitInputSchema, ResubmitOutputSchema, SubmitInputSchema, SubmitOutputSchema, TransactionStatusSchema } from './chunk-TGBSASKU.js';
|
|
6
6
|
export { BurnDataCreditsInputSchema, DelegateDataCreditsInputSchema, MintDataCreditsInputSchema } from './chunk-7GK4VHJM.js';
|
package/package.json
CHANGED
package/dist/chunk-V3MNHRVC.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { TransactionDataSchema } from './chunk-Z4E3I2B4.js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
var GetTokensInputSchema = z.object({
|
|
5
|
-
limit: z.coerce.number().int().min(1).max(100).default(50)
|
|
6
|
-
});
|
|
7
|
-
var GetQuoteInputSchema = z.object({
|
|
8
|
-
inputMint: z.string().min(1),
|
|
9
|
-
outputMint: z.string().min(1),
|
|
10
|
-
amount: z.string().min(1),
|
|
11
|
-
swapMode: z.enum(["ExactIn", "ExactOut"]).default("ExactIn"),
|
|
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"]
|
|
16
|
-
});
|
|
17
|
-
var QuoteResponseSchema = z.object({
|
|
18
|
-
inputMint: z.string(),
|
|
19
|
-
inAmount: z.string(),
|
|
20
|
-
outputMint: z.string(),
|
|
21
|
-
outAmount: z.string(),
|
|
22
|
-
otherAmountThreshold: z.string(),
|
|
23
|
-
swapMode: z.string(),
|
|
24
|
-
slippageBps: z.number(),
|
|
25
|
-
platformFee: z.unknown().optional(),
|
|
26
|
-
priceImpactPct: z.string(),
|
|
27
|
-
routePlan: z.array(z.unknown()),
|
|
28
|
-
contextSlot: z.number().optional(),
|
|
29
|
-
timeTaken: z.number().optional()
|
|
30
|
-
}).passthrough();
|
|
31
|
-
var GetInstructionsInputSchema = z.object({
|
|
32
|
-
quoteResponse: QuoteResponseSchema,
|
|
33
|
-
userPublicKey: z.string().min(1),
|
|
34
|
-
destinationTokenAccount: z.string().optional(),
|
|
35
|
-
dynamicComputeUnitLimit: z.boolean().default(true),
|
|
36
|
-
prioritizationFeeLamports: z.object({
|
|
37
|
-
priorityLevelWithMaxLamports: z.object({
|
|
38
|
-
maxLamports: z.number().default(1e6),
|
|
39
|
-
priorityLevel: z.enum(["low", "medium", "high"]).default("medium")
|
|
40
|
-
})
|
|
41
|
-
}).optional()
|
|
42
|
-
});
|
|
43
|
-
var TokenSchema = z.object({
|
|
44
|
-
address: z.string(),
|
|
45
|
-
symbol: z.string(),
|
|
46
|
-
name: z.string(),
|
|
47
|
-
decimals: z.number(),
|
|
48
|
-
logoURI: z.string().optional(),
|
|
49
|
-
tags: z.array(z.string()).optional()
|
|
50
|
-
});
|
|
51
|
-
var TokenListOutputSchema = z.object({
|
|
52
|
-
tokens: z.array(TokenSchema)
|
|
53
|
-
});
|
|
54
|
-
var SwapTransactionDataSchema = TransactionDataSchema;
|
|
55
|
-
|
|
56
|
-
export { GetInstructionsInputSchema, GetQuoteInputSchema, GetTokensInputSchema, QuoteResponseSchema, SwapTransactionDataSchema, TokenListOutputSchema, TokenSchema };
|