@fireballgg/sdk 0.0.1

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.
Files changed (48) hide show
  1. package/README.md +39 -0
  2. package/dist/abis/sparks.abi.json +195 -0
  3. package/dist/chunk-3GG7NNPX.js +2 -0
  4. package/dist/chunk-3GG7NNPX.js.map +1 -0
  5. package/dist/chunk-4C666HHU.js +2 -0
  6. package/dist/chunk-4C666HHU.js.map +1 -0
  7. package/dist/chunk-CAWVA63V.js +10 -0
  8. package/dist/chunk-CAWVA63V.js.map +1 -0
  9. package/dist/chunk-HSPNA3WS.js +40 -0
  10. package/dist/chunk-HSPNA3WS.js.map +1 -0
  11. package/dist/chunk-VFDUHPNG.js +2185 -0
  12. package/dist/chunk-VFDUHPNG.js.map +1 -0
  13. package/dist/chunk-VMT37ZHW.js +2 -0
  14. package/dist/chunk-VMT37ZHW.js.map +1 -0
  15. package/dist/chunk-ZBGOXQP5.js +4 -0
  16. package/dist/chunk-ZBGOXQP5.js.map +1 -0
  17. package/dist/data/checkpoints.json +22 -0
  18. package/dist/data/constants.json +9 -0
  19. package/dist/data/enemies.json +632 -0
  20. package/dist/data/fishing_cards.json +1152 -0
  21. package/dist/data/fishing_exchange_rates.json +236 -0
  22. package/dist/data/gear.json +11617 -0
  23. package/dist/data/hatchery.json +54 -0
  24. package/dist/data/items.json +6073 -0
  25. package/dist/data/recipes.json +9471 -0
  26. package/dist/fireball-api/index.d.ts +5 -0
  27. package/dist/fireball-api/index.js +2 -0
  28. package/dist/fireball-api/index.js.map +1 -0
  29. package/dist/gigaverse-api/index.d.ts +5 -0
  30. package/dist/gigaverse-api/index.js +2 -0
  31. package/dist/gigaverse-api/index.js.map +1 -0
  32. package/dist/index-BPihDahL.d.ts +2514 -0
  33. package/dist/index-D5hv4Edu.d.ts +2474 -0
  34. package/dist/index-DKZ1Igbv.d.ts +88 -0
  35. package/dist/index-DO_0xTs_.d.ts +7499 -0
  36. package/dist/index.d.ts +1691 -0
  37. package/dist/index.js +2 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/juiced-api/index.d.ts +1 -0
  40. package/dist/juiced-api/index.js +2 -0
  41. package/dist/juiced-api/index.js.map +1 -0
  42. package/dist/juiced-subgraph/index.d.ts +3 -0
  43. package/dist/juiced-subgraph/index.js +2 -0
  44. package/dist/juiced-subgraph/index.js.map +1 -0
  45. package/dist/logger/index.d.ts +56 -0
  46. package/dist/logger/index.js +2 -0
  47. package/dist/logger/index.js.map +1 -0
  48. package/package.json +125 -0
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Trade record from the Juiced API
3
+ */
4
+ interface Trade {
5
+ /** Item ID being traded */
6
+ itemId: string;
7
+ /** Transaction hash */
8
+ tx: string;
9
+ /** Timestamp in milliseconds */
10
+ timestamp: number;
11
+ /** Price per item in ETH */
12
+ price: number;
13
+ /** Number of items traded */
14
+ amount: number;
15
+ /** Total ETH spent (price * amount) */
16
+ ethSpent: number;
17
+ /** Buyer wallet address */
18
+ buyer: string;
19
+ /** Seller wallet address */
20
+ seller: string;
21
+ }
22
+ /**
23
+ * Response from GET /api/trades - returns array of trades directly
24
+ */
25
+ type GetTradesResponse = Trade[];
26
+ /**
27
+ * Parameters for fetching trades
28
+ */
29
+ interface GetTradesParams {
30
+ limit?: number;
31
+ }
32
+
33
+ /**
34
+ * Juiced REST API endpoint
35
+ */
36
+ declare const JUICED_API_ENDPOINT = "https://juiced.sh/api";
37
+ /**
38
+ * Options for creating a Juiced API client
39
+ */
40
+ interface JuicedApiOptions {
41
+ /**
42
+ * Request timeout in milliseconds
43
+ * @default 30000
44
+ */
45
+ timeout?: number;
46
+ }
47
+ /**
48
+ * Juiced API client for REST endpoints
49
+ */
50
+ declare class JuicedApi {
51
+ private axiosInstance;
52
+ constructor(options?: JuicedApiOptions);
53
+ /**
54
+ * Get latest trades from the marketplace
55
+ * @param params - Query parameters
56
+ * @returns Latest trades
57
+ */
58
+ getLatestTrades(params?: GetTradesParams): Promise<GetTradesResponse>;
59
+ }
60
+ /**
61
+ * Creates a configured JuicedApi instance.
62
+ *
63
+ * @param options - API configuration options
64
+ * @returns Configured JuicedApi instance
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * import { createJuicedApi } from '@fireballgg/sdk/juiced-api';
69
+ *
70
+ * const api = createJuicedApi();
71
+ * const trades = await api.getLatestTrades({ limit: 50 });
72
+ * ```
73
+ */
74
+ declare function createJuicedApi(options?: JuicedApiOptions): JuicedApi;
75
+
76
+ type index_GetTradesParams = GetTradesParams;
77
+ type index_GetTradesResponse = GetTradesResponse;
78
+ declare const index_JUICED_API_ENDPOINT: typeof JUICED_API_ENDPOINT;
79
+ type index_JuicedApi = JuicedApi;
80
+ declare const index_JuicedApi: typeof JuicedApi;
81
+ type index_JuicedApiOptions = JuicedApiOptions;
82
+ type index_Trade = Trade;
83
+ declare const index_createJuicedApi: typeof createJuicedApi;
84
+ declare namespace index {
85
+ export { type index_GetTradesParams as GetTradesParams, type index_GetTradesResponse as GetTradesResponse, index_JUICED_API_ENDPOINT as JUICED_API_ENDPOINT, index_JuicedApi as JuicedApi, type index_JuicedApiOptions as JuicedApiOptions, type index_Trade as Trade, index_createJuicedApi as createJuicedApi };
86
+ }
87
+
88
+ export { type GetTradesParams as G, JUICED_API_ENDPOINT as J, type Trade as T, type GetTradesResponse as a, JuicedApi as b, type JuicedApiOptions as c, createJuicedApi as d, index as i };