@helium/blockchain-api 0.3.12 → 0.11.11
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-2SBYC2AH.js +466 -0
- package/dist/chunk-4CY5D37F.js +176 -0
- package/dist/chunk-4RVSLJOU.js +9 -0
- package/dist/chunk-5ZPW3MRC.js +53 -0
- package/dist/chunk-6EPXJJY5.js +60 -0
- package/dist/chunk-6LMSAIIW.js +230 -0
- package/dist/chunk-7CTJX35S.js +16 -0
- package/dist/chunk-7R4XQ5SN.js +116 -0
- package/dist/chunk-KTADG6LO.js +1 -0
- package/dist/chunk-LHKDTWB2.js +177 -0
- package/dist/chunk-MSIA3ZUI.js +36 -0
- package/dist/chunk-NBOSJXWK.js +50 -0
- package/dist/chunk-RD5LUTM5.js +97 -0
- package/dist/chunk-T7OKPHTD.js +68 -0
- package/dist/chunk-TEWZC6CW.js +1 -0
- package/dist/chunk-YVB4ENKX.js +119 -0
- package/dist/contracts.d.ts +8671 -0
- package/dist/contracts.js +14 -0
- package/dist/errors.d.ts +69 -0
- package/dist/errors.js +2 -0
- package/dist/index.d.ts +16 -8124
- package/dist/index.js +16 -1596
- package/dist/schemas/common.d.ts +219 -0
- package/dist/schemas/common.js +1 -0
- package/dist/schemas/fiat.d.ts +175 -0
- package/dist/schemas/fiat.js +3 -0
- package/dist/schemas/governance.d.ts +470 -0
- package/dist/schemas/governance.js +2 -0
- package/dist/schemas/health.d.ts +9 -0
- package/dist/schemas/health.js +1 -0
- package/dist/schemas/hotspots.d.ts +540 -0
- package/dist/schemas/hotspots.js +2 -0
- package/dist/schemas/migration.d.ts +145 -0
- package/dist/schemas/migration.js +3 -0
- package/dist/schemas/reward-contract.d.ts +209 -0
- package/dist/schemas/reward-contract.js +2 -0
- package/dist/schemas/swap.d.ts +95 -0
- package/dist/schemas/swap.js +2 -0
- package/dist/schemas/tokens.d.ts +94 -0
- package/dist/schemas/tokens.js +2 -0
- package/dist/schemas/transactions.d.ts +200 -0
- package/dist/schemas/transactions.js +2 -0
- package/dist/schemas/webhooks.d.ts +17 -0
- package/dist/schemas/webhooks.js +1 -0
- package/dist/schemas/welcome-packs.d.ts +305 -0
- package/dist/schemas/welcome-packs.js +3 -0
- package/dist/schemas.d.ts +12 -0
- package/dist/schemas.js +12 -0
- package/package.json +32 -10
- package/README.md +0 -78
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { apiContract, fiatContract, fullApiContract, governanceContract, healthContract, hotspotsContract, migrationContract, rewardContract, swapContract, tokensContract, transactionsContract, webhooksContract, welcomePacksContract } from './chunk-2SBYC2AH.js';
|
|
2
|
+
import './chunk-7CTJX35S.js';
|
|
3
|
+
import './chunk-6EPXJJY5.js';
|
|
4
|
+
import './chunk-NBOSJXWK.js';
|
|
5
|
+
import './chunk-4CY5D37F.js';
|
|
6
|
+
import './chunk-MSIA3ZUI.js';
|
|
7
|
+
import './chunk-7R4XQ5SN.js';
|
|
8
|
+
import './chunk-T7OKPHTD.js';
|
|
9
|
+
import './chunk-RD5LUTM5.js';
|
|
10
|
+
import './chunk-5ZPW3MRC.js';
|
|
11
|
+
import './chunk-LHKDTWB2.js';
|
|
12
|
+
import './chunk-4RVSLJOU.js';
|
|
13
|
+
import './chunk-6LMSAIIW.js';
|
|
14
|
+
import './chunk-YVB4ENKX.js';
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Authentication required error */
|
|
4
|
+
declare const UNAUTHENTICATED: {
|
|
5
|
+
readonly status: 401;
|
|
6
|
+
readonly message: "Authentication required. Please sign in to continue.";
|
|
7
|
+
};
|
|
8
|
+
/** Insufficient permissions error */
|
|
9
|
+
declare const UNAUTHORIZED: {
|
|
10
|
+
readonly status: 403;
|
|
11
|
+
readonly message: "You do not have permission to access this resource.";
|
|
12
|
+
};
|
|
13
|
+
/** Resource not found error */
|
|
14
|
+
declare const NOT_FOUND: {
|
|
15
|
+
readonly status: 404;
|
|
16
|
+
readonly message: "The requested resource was not found.";
|
|
17
|
+
};
|
|
18
|
+
/** Input validation failed error */
|
|
19
|
+
declare const BAD_REQUEST: {
|
|
20
|
+
readonly status: 400;
|
|
21
|
+
readonly message: "Invalid input data provided.";
|
|
22
|
+
readonly data: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
};
|
|
26
|
+
declare const INVALID_WALLET_ADDRESS: {
|
|
27
|
+
status: number;
|
|
28
|
+
message: string;
|
|
29
|
+
};
|
|
30
|
+
/** Rate limit exceeded error */
|
|
31
|
+
declare const RATE_LIMITED: {
|
|
32
|
+
readonly status: 429;
|
|
33
|
+
readonly message: "Too many requests. Please try again later.";
|
|
34
|
+
};
|
|
35
|
+
/** Duplicate resource error */
|
|
36
|
+
declare const CONFLICT: {
|
|
37
|
+
readonly status: 409;
|
|
38
|
+
readonly message: "A resource with this identifier already exists.";
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** Insufficient Solana balance error */
|
|
42
|
+
declare const INSUFFICIENT_FUNDS: {
|
|
43
|
+
readonly status: 400;
|
|
44
|
+
readonly message: "Insufficient SOL balance to complete this transaction.";
|
|
45
|
+
readonly data: z.ZodObject<{
|
|
46
|
+
required: z.ZodNumber;
|
|
47
|
+
available: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
};
|
|
50
|
+
/** Solana transaction failed error */
|
|
51
|
+
declare const TRANSACTION_FAILED: {
|
|
52
|
+
readonly status: 500;
|
|
53
|
+
readonly message: "Transaction failed to execute.";
|
|
54
|
+
readonly data: z.ZodObject<{
|
|
55
|
+
logs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
56
|
+
signature: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
};
|
|
59
|
+
/** Transaction simulation failed error */
|
|
60
|
+
declare const SIMULATION_FAILED: {
|
|
61
|
+
readonly status: 400;
|
|
62
|
+
readonly message: "Transaction simulation failed.";
|
|
63
|
+
readonly data: z.ZodObject<{
|
|
64
|
+
logs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
|
+
link: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export { BAD_REQUEST, CONFLICT, INSUFFICIENT_FUNDS, INVALID_WALLET_ADDRESS, NOT_FOUND, RATE_LIMITED, SIMULATION_FAILED, TRANSACTION_FAILED, UNAUTHENTICATED, UNAUTHORIZED };
|
package/dist/errors.js
ADDED