@sudobility/heavymath_indexer_client 0.0.3

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 (71) hide show
  1. package/LICENSE.md +80 -0
  2. package/README.md +380 -0
  3. package/dist/business/index.d.ts +2 -0
  4. package/dist/business/index.d.ts.map +1 -0
  5. package/dist/business/index.js +2 -0
  6. package/dist/business/index.js.map +1 -0
  7. package/dist/business/indexer-service.d.ts +40 -0
  8. package/dist/business/indexer-service.d.ts.map +1 -0
  9. package/dist/business/indexer-service.js +201 -0
  10. package/dist/business/indexer-service.js.map +1 -0
  11. package/dist/hooks/index.d.ts +9 -0
  12. package/dist/hooks/index.d.ts.map +1 -0
  13. package/dist/hooks/index.js +9 -0
  14. package/dist/hooks/index.js.map +1 -0
  15. package/dist/hooks/useDealers.d.ts +16 -0
  16. package/dist/hooks/useDealers.d.ts.map +1 -0
  17. package/dist/hooks/useDealers.js +113 -0
  18. package/dist/hooks/useDealers.js.map +1 -0
  19. package/dist/hooks/useFavorites.d.ts +31 -0
  20. package/dist/hooks/useFavorites.d.ts.map +1 -0
  21. package/dist/hooks/useFavorites.js +140 -0
  22. package/dist/hooks/useFavorites.js.map +1 -0
  23. package/dist/hooks/useMarkets.d.ts +16 -0
  24. package/dist/hooks/useMarkets.d.ts.map +1 -0
  25. package/dist/hooks/useMarkets.js +73 -0
  26. package/dist/hooks/useMarkets.js.map +1 -0
  27. package/dist/hooks/useOracle.d.ts +9 -0
  28. package/dist/hooks/useOracle.d.ts.map +1 -0
  29. package/dist/hooks/useOracle.js +45 -0
  30. package/dist/hooks/useOracle.js.map +1 -0
  31. package/dist/hooks/usePredictions.d.ts +15 -0
  32. package/dist/hooks/usePredictions.d.ts.map +1 -0
  33. package/dist/hooks/usePredictions.js +58 -0
  34. package/dist/hooks/usePredictions.js.map +1 -0
  35. package/dist/hooks/useSSE.d.ts +29 -0
  36. package/dist/hooks/useSSE.d.ts.map +1 -0
  37. package/dist/hooks/useSSE.js +217 -0
  38. package/dist/hooks/useSSE.js.map +1 -0
  39. package/dist/hooks/useStats.d.ts +6 -0
  40. package/dist/hooks/useStats.d.ts.map +1 -0
  41. package/dist/hooks/useStats.js +24 -0
  42. package/dist/hooks/useStats.js.map +1 -0
  43. package/dist/hooks/useWithdrawals.d.ts +8 -0
  44. package/dist/hooks/useWithdrawals.d.ts.map +1 -0
  45. package/dist/hooks/useWithdrawals.js +35 -0
  46. package/dist/hooks/useWithdrawals.js.map +1 -0
  47. package/dist/index.d.ts +6 -0
  48. package/dist/index.d.ts.map +1 -0
  49. package/dist/index.js +6 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/network/IndexerClient.d.ts +26 -0
  52. package/dist/network/IndexerClient.d.ts.map +1 -0
  53. package/dist/network/IndexerClient.js +215 -0
  54. package/dist/network/IndexerClient.js.map +1 -0
  55. package/dist/network/index.d.ts +2 -0
  56. package/dist/network/index.d.ts.map +1 -0
  57. package/dist/network/index.js +2 -0
  58. package/dist/network/index.js.map +1 -0
  59. package/dist/stores/favorites-store.d.ts +35 -0
  60. package/dist/stores/favorites-store.d.ts.map +1 -0
  61. package/dist/stores/favorites-store.js +165 -0
  62. package/dist/stores/favorites-store.js.map +1 -0
  63. package/dist/stores/index.d.ts +2 -0
  64. package/dist/stores/index.d.ts.map +1 -0
  65. package/dist/stores/index.js +2 -0
  66. package/dist/stores/index.js.map +1 -0
  67. package/dist/types.d.ts +118 -0
  68. package/dist/types.d.ts.map +1 -0
  69. package/dist/types.js +2 -0
  70. package/dist/types.js.map +1 -0
  71. package/package.json +77 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "@sudobility/heavymath_indexer_client",
3
+ "version": "0.0.3",
4
+ "description": "React and React Native compatible client library for Heavymath prediction market indexer API with TypeScript support",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "publishConfig": {
9
+ "access": "restricted"
10
+ },
11
+ "files": [
12
+ "dist/**/*"
13
+ ],
14
+ "scripts": {
15
+ "build": "tsc -p tsconfig.build.json",
16
+ "build:watch": "tsc --watch",
17
+ "clean": "rm -rf dist",
18
+ "prepublishOnly": "npm run clean && npm run build",
19
+ "test": "vitest",
20
+ "test:run": "vitest run",
21
+ "test:coverage": "vitest run --coverage",
22
+ "test:watch": "vitest --watch",
23
+ "lint": "eslint src --ext .ts,.tsx",
24
+ "lint:fix": "eslint src --ext .ts,.tsx --fix",
25
+ "format": "prettier --write src/**/*.ts",
26
+ "format:check": "prettier --check src/**/*.ts",
27
+ "typecheck": "tsc --noEmit",
28
+ "typecheck:watch": "tsc --noEmit --watch",
29
+ "check-all": "npm run lint && npm run typecheck && npm run test:run"
30
+ },
31
+ "keywords": [
32
+ "indexer",
33
+ "client",
34
+ "react",
35
+ "react-native",
36
+ "typescript",
37
+ "prediction-market",
38
+ "heavymath"
39
+ ],
40
+ "author": "John Huang",
41
+ "license": "MIT",
42
+ "peerDependencies": {
43
+ "@sudobility/heavymath_types": "^0.0.1",
44
+ "@sudobility/types": "^1.9.31",
45
+ "@tanstack/react-query": "^5.90.5",
46
+ "react": "^19.2.0",
47
+ "zustand": "^5.0.0"
48
+ },
49
+ "devDependencies": {
50
+ "@sudobility/heavymath_types": "^0.0.1",
51
+ "@sudobility/types": "^1.9.31",
52
+ "@tanstack/react-query": "^5.90.5",
53
+ "@testing-library/react": "^16.3.0",
54
+ "@types/node": "^24.9.1",
55
+ "@types/react": "^19.2.2",
56
+ "@typescript-eslint/eslint-plugin": "^8.46.2",
57
+ "@typescript-eslint/parser": "^8.46.2",
58
+ "@vitest/coverage-v8": "^4.0.4",
59
+ "dotenv": "^17.2.3",
60
+ "eslint": "^9.38.0",
61
+ "eslint-config-prettier": "^10.1.8",
62
+ "eslint-plugin-prettier": "^5.5.4",
63
+ "eslint-plugin-react": "^7.37.5",
64
+ "eslint-plugin-react-hooks": "^7.0.1",
65
+ "happy-dom": "^20.0.8",
66
+ "prettier": "^3.6.2",
67
+ "react": "^19.2.3",
68
+ "typescript": "^5.9.3",
69
+ "vite": "^7.1.12",
70
+ "vitest": "^4.0.4",
71
+ "zustand": "^5.0.0"
72
+ },
73
+ "repository": {
74
+ "type": "git",
75
+ "url": "https://github.com/johnqh/heavymath_indexer_client.git"
76
+ }
77
+ }