holosphere 2.0.0-alpha0 → 2.0.0-alpha10

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 (418) hide show
  1. package/CHANGELOG.md +473 -0
  2. package/FEATURES.md +431 -0
  3. package/LICENSE +29 -42
  4. package/LICENSE-AGPL.md +180 -0
  5. package/README.md +97 -16
  6. package/dist/2019-D2OG2idw.js +6680 -0
  7. package/dist/2019-D2OG2idw.js.map +1 -0
  8. package/dist/2019-EION3wKo.cjs +8 -0
  9. package/dist/2019-EION3wKo.cjs.map +1 -0
  10. package/dist/_commonjsHelpers-C37NGDzP.cjs +2 -0
  11. package/dist/_commonjsHelpers-C37NGDzP.cjs.map +1 -0
  12. package/dist/_commonjsHelpers-CUmg6egw.js +7 -0
  13. package/dist/_commonjsHelpers-CUmg6egw.js.map +1 -0
  14. package/dist/browser-BSniCNqO.js +3058 -0
  15. package/dist/browser-BSniCNqO.js.map +1 -0
  16. package/dist/browser-Cq59Ij19.cjs +2 -0
  17. package/dist/browser-Cq59Ij19.cjs.map +1 -0
  18. package/dist/cdn/holosphere.min.js +55 -0
  19. package/dist/cdn/holosphere.min.js.map +1 -0
  20. package/dist/cjs/holosphere.cjs +2 -0
  21. package/dist/cjs/holosphere.cjs.map +1 -0
  22. package/dist/esm/holosphere.js +53 -0
  23. package/dist/esm/holosphere.js.map +1 -0
  24. package/dist/index-DDGt_V9o.cjs +12 -0
  25. package/dist/index-DDGt_V9o.cjs.map +1 -0
  26. package/dist/index-DJXftyvB.js +39841 -0
  27. package/dist/index-DJXftyvB.js.map +1 -0
  28. package/dist/index-DMbdcMtK.cjs +18 -0
  29. package/dist/index-DMbdcMtK.cjs.map +1 -0
  30. package/dist/index-DeZ1xz_s.js +15104 -0
  31. package/dist/index-DeZ1xz_s.js.map +1 -0
  32. package/dist/indexeddb-storage-BFt6hMeF.js +176 -0
  33. package/dist/indexeddb-storage-BFt6hMeF.js.map +1 -0
  34. package/dist/indexeddb-storage-BK5tv4Sh.cjs +2 -0
  35. package/dist/indexeddb-storage-BK5tv4Sh.cjs.map +1 -0
  36. package/dist/memory-storage-C9HuoL2E.js +91 -0
  37. package/dist/memory-storage-C9HuoL2E.js.map +1 -0
  38. package/dist/memory-storage-Dao7jfYG.cjs +2 -0
  39. package/dist/memory-storage-Dao7jfYG.cjs.map +1 -0
  40. package/dist/secp256k1-BbKzbLtD.cjs +12 -0
  41. package/dist/secp256k1-BbKzbLtD.cjs.map +1 -0
  42. package/dist/secp256k1-CreY7Pcl.js +1890 -0
  43. package/dist/secp256k1-CreY7Pcl.js.map +1 -0
  44. package/docs/CONTRACTS.md +797 -0
  45. package/docs/FOSDEM_PROPOSAL.md +388 -0
  46. package/docs/LOCALFIRST.md +266 -0
  47. package/docs/api/ai_aggregation.js.html +333 -0
  48. package/docs/api/ai_breakdown.js.html +524 -0
  49. package/docs/api/ai_classifier.js.html +231 -0
  50. package/docs/api/ai_council.js.html +246 -0
  51. package/docs/api/ai_embeddings.js.html +304 -0
  52. package/docs/api/ai_federation-ai.js.html +338 -0
  53. package/docs/api/ai_h3-ai.js.html +970 -0
  54. package/docs/api/ai_index.js.html +124 -0
  55. package/docs/api/ai_json-ops.js.html +241 -0
  56. package/docs/api/ai_llm-service.js.html +239 -0
  57. package/docs/api/ai_nl-query.js.html +236 -0
  58. package/docs/api/ai_relationships.js.html +367 -0
  59. package/docs/api/ai_schema-extractor.js.html +235 -0
  60. package/docs/api/ai_spatial.js.html +307 -0
  61. package/docs/api/ai_tts.js.html +214 -0
  62. package/docs/api/content_social-protocols.js.html +180 -0
  63. package/docs/api/core_holosphere.js.html +757 -0
  64. package/docs/api/crypto_nostr-utils.js.html +306 -0
  65. package/docs/api/crypto_secp256k1.js.html +267 -0
  66. package/docs/api/data/search.json +1 -0
  67. package/docs/api/federation_discovery.js.html +337 -0
  68. package/docs/api/federation_handshake.js.html +478 -0
  69. package/docs/api/federation_hologram.js.html +1053 -0
  70. package/docs/api/federation_registry.js.html +389 -0
  71. package/docs/api/fonts/Inconsolata-Regular.ttf +0 -0
  72. package/docs/api/fonts/OpenSans-Regular.ttf +0 -0
  73. package/docs/api/fonts/WorkSans-Bold.ttf +0 -0
  74. package/docs/api/global.html +3 -0
  75. package/docs/api/hierarchical_upcast.js.html +128 -0
  76. package/docs/api/index.html +265 -0
  77. package/docs/api/index.js.html +1868 -0
  78. package/docs/api/lib_ai-methods.js.html +660 -0
  79. package/docs/api/lib_contract-methods.js.html +445 -0
  80. package/docs/api/lib_errors.js.html +56 -0
  81. package/docs/api/lib_federation-methods.js.html +348 -0
  82. package/docs/api/lib_index.js.html +33 -0
  83. package/docs/api/module-ai.html +5 -0
  84. package/docs/api/module-ai_aggregation-SmartAggregation.html +6 -0
  85. package/docs/api/module-ai_aggregation.SmartAggregation.html +3 -0
  86. package/docs/api/module-ai_aggregation.html +3 -0
  87. package/docs/api/module-ai_breakdown-TaskBreakdown.html +5 -0
  88. package/docs/api/module-ai_breakdown.TaskBreakdown.html +3 -0
  89. package/docs/api/module-ai_breakdown.html +3 -0
  90. package/docs/api/module-ai_classifier-Classifier.html +6 -0
  91. package/docs/api/module-ai_classifier.Classifier.html +3 -0
  92. package/docs/api/module-ai_classifier.html +3 -0
  93. package/docs/api/module-ai_council-Council.html +6 -0
  94. package/docs/api/module-ai_council.Council.html +3 -0
  95. package/docs/api/module-ai_council.html +3 -0
  96. package/docs/api/module-ai_embeddings-Embeddings.html +5 -0
  97. package/docs/api/module-ai_embeddings.Embeddings.html +3 -0
  98. package/docs/api/module-ai_embeddings.html +3 -0
  99. package/docs/api/module-ai_federation-ai-FederationAdvisor.html +6 -0
  100. package/docs/api/module-ai_federation-ai.FederationAdvisor.html +3 -0
  101. package/docs/api/module-ai_federation-ai.html +3 -0
  102. package/docs/api/module-ai_h3-ai-H3AI.html +6 -0
  103. package/docs/api/module-ai_h3-ai.H3AI.html +3 -0
  104. package/docs/api/module-ai_h3-ai.html +3 -0
  105. package/docs/api/module-ai_json-ops-JSONOps.html +5 -0
  106. package/docs/api/module-ai_json-ops.JSONOps.html +3 -0
  107. package/docs/api/module-ai_json-ops.html +3 -0
  108. package/docs/api/module-ai_llm-service-LLMService.html +5 -0
  109. package/docs/api/module-ai_llm-service.LLMService.html +3 -0
  110. package/docs/api/module-ai_llm-service.html +3 -0
  111. package/docs/api/module-ai_nl-query-NLQuery.html +5 -0
  112. package/docs/api/module-ai_nl-query.NLQuery.html +3 -0
  113. package/docs/api/module-ai_nl-query.html +3 -0
  114. package/docs/api/module-ai_relationships-RelationshipDiscovery.html +6 -0
  115. package/docs/api/module-ai_relationships.RelationshipDiscovery.html +3 -0
  116. package/docs/api/module-ai_relationships.html +3 -0
  117. package/docs/api/module-ai_schema-extractor-SchemaExtractor.html +5 -0
  118. package/docs/api/module-ai_schema-extractor.SchemaExtractor.html +3 -0
  119. package/docs/api/module-ai_schema-extractor.html +3 -0
  120. package/docs/api/module-ai_spatial-SpatialAnalysis.html +6 -0
  121. package/docs/api/module-ai_spatial.SpatialAnalysis.html +3 -0
  122. package/docs/api/module-ai_spatial.html +3 -0
  123. package/docs/api/module-ai_tts-TTS.html +5 -0
  124. package/docs/api/module-ai_tts.TTS.html +3 -0
  125. package/docs/api/module-ai_tts.html +3 -0
  126. package/docs/api/module-content_social-protocols.html +3 -0
  127. package/docs/api/module-core_holosphere-HoloSphere.html +6 -0
  128. package/docs/api/module-core_holosphere.HoloSphere.html +3 -0
  129. package/docs/api/module-core_holosphere.html +3 -0
  130. package/docs/api/module-crypto_nostr-utils.html +3 -0
  131. package/docs/api/module-crypto_secp256k1.html +3 -0
  132. package/docs/api/module-federation_hologram.html +3 -0
  133. package/docs/api/module-hierarchical_upcast.html +3 -0
  134. package/docs/api/module-holosphere-HoloSphereBase.html +3 -0
  135. package/docs/api/module-holosphere.html +3 -0
  136. package/docs/api/module-lib_ai-methods.html +3 -0
  137. package/docs/api/module-lib_contract-methods.html +3 -0
  138. package/docs/api/module-lib_errors-AuthorizationError.html +3 -0
  139. package/docs/api/module-lib_errors-ValidationError.html +3 -0
  140. package/docs/api/module-lib_errors.AuthorizationError.html +3 -0
  141. package/docs/api/module-lib_errors.ValidationError.html +3 -0
  142. package/docs/api/module-lib_errors.html +3 -0
  143. package/docs/api/module-lib_federation-methods.html +3 -0
  144. package/docs/api/module-lib_index.html +3 -0
  145. package/docs/api/module-schema_validator-ValidationError.html +3 -0
  146. package/docs/api/module-schema_validator.ValidationError.html +3 -0
  147. package/docs/api/module-schema_validator.html +3 -0
  148. package/docs/api/module-spatial_h3-operations.html +4 -0
  149. package/docs/api/module-storage_backend-factory.BackendFactory.html +3 -0
  150. package/docs/api/module-storage_backend-factory.html +3 -0
  151. package/docs/api/module-storage_backend-interface-StorageBackend.html +3 -0
  152. package/docs/api/module-storage_backend-interface.StorageBackend.html +3 -0
  153. package/docs/api/module-storage_backend-interface.html +3 -0
  154. package/docs/api/module-storage_backends_activitypub-backend-ActivityPubBackend.html +7 -0
  155. package/docs/api/module-storage_backends_activitypub-backend.ActivityPubBackend.html +3 -0
  156. package/docs/api/module-storage_backends_activitypub-backend.html +3 -0
  157. package/docs/api/module-storage_backends_activitypub_server-ActivityPubServer.html +8 -0
  158. package/docs/api/module-storage_backends_activitypub_server.ActivityPubServer.html +3 -0
  159. package/docs/api/module-storage_backends_activitypub_server.html +3 -0
  160. package/docs/api/module-storage_backends_gundb-backend-GunDBBackend.html +7 -0
  161. package/docs/api/module-storage_backends_gundb-backend.GunDBBackend.html +3 -0
  162. package/docs/api/module-storage_backends_gundb-backend.html +3 -0
  163. package/docs/api/module-storage_backends_nostr-backend-NostrBackend.html +8 -0
  164. package/docs/api/module-storage_backends_nostr-backend.NostrBackend.html +3 -0
  165. package/docs/api/module-storage_backends_nostr-backend.html +3 -0
  166. package/docs/api/module-storage_filesystem-storage-FileSystemStorage.html +5 -0
  167. package/docs/api/module-storage_filesystem-storage-browser-FileSystemStorage.html +3 -0
  168. package/docs/api/module-storage_filesystem-storage-browser.FileSystemStorage.html +3 -0
  169. package/docs/api/module-storage_filesystem-storage-browser.html +3 -0
  170. package/docs/api/module-storage_filesystem-storage.FileSystemStorage.html +3 -0
  171. package/docs/api/module-storage_filesystem-storage.html +3 -0
  172. package/docs/api/module-storage_global-tables.html +3 -0
  173. package/docs/api/module-storage_gun-async.html +3 -0
  174. package/docs/api/module-storage_gun-auth-GunAuth.html +5 -0
  175. package/docs/api/module-storage_gun-auth.GunAuth.html +3 -0
  176. package/docs/api/module-storage_gun-auth.html +3 -0
  177. package/docs/api/module-storage_gun-federation.html +3 -0
  178. package/docs/api/module-storage_gun-references-GunReferenceHandler.html +5 -0
  179. package/docs/api/module-storage_gun-references.GunReferenceHandler.html +3 -0
  180. package/docs/api/module-storage_gun-references.html +3 -0
  181. package/docs/api/module-storage_gun-schema-GunSchemaValidator.html +5 -0
  182. package/docs/api/module-storage_gun-schema.GunSchemaValidator.html +3 -0
  183. package/docs/api/module-storage_gun-schema.html +3 -0
  184. package/docs/api/module-storage_gun-wrapper.html +11 -0
  185. package/docs/api/module-storage_indexeddb-storage-IndexedDBStorage.html +5 -0
  186. package/docs/api/module-storage_indexeddb-storage.IndexedDBStorage.html +3 -0
  187. package/docs/api/module-storage_indexeddb-storage.html +3 -0
  188. package/docs/api/module-storage_key-storage-simple.html +3 -0
  189. package/docs/api/module-storage_key-storage.html +4 -0
  190. package/docs/api/module-storage_memory-storage-MemoryStorage.html +5 -0
  191. package/docs/api/module-storage_memory-storage.MemoryStorage.html +3 -0
  192. package/docs/api/module-storage_memory-storage.html +3 -0
  193. package/docs/api/module-storage_migration-MigrationTool.html +6 -0
  194. package/docs/api/module-storage_migration.MigrationTool.html +3 -0
  195. package/docs/api/module-storage_migration.html +3 -0
  196. package/docs/api/module-storage_nostr-async.html +18 -0
  197. package/docs/api/module-storage_nostr-client-LRUCache.html +3 -0
  198. package/docs/api/module-storage_nostr-client-NostrClient.html +7 -0
  199. package/docs/api/module-storage_nostr-client.NostrClient.html +15 -0
  200. package/docs/api/module-storage_nostr-client.html +6 -0
  201. package/docs/api/module-storage_nostr-wrapper.html +3 -0
  202. package/docs/api/module-storage_outbox-queue-OutboxQueue.html +4 -0
  203. package/docs/api/module-storage_outbox-queue.OutboxQueue.html +3 -0
  204. package/docs/api/module-storage_outbox-queue.html +3 -0
  205. package/docs/api/module-storage_persistent-storage-PersistentStorage.html +3 -0
  206. package/docs/api/module-storage_persistent-storage.html +4 -0
  207. package/docs/api/module-storage_sync-service-SyncService.html +5 -0
  208. package/docs/api/module-storage_sync-service.SyncService.html +3 -0
  209. package/docs/api/module-storage_sync-service.html +3 -0
  210. package/docs/api/module-storage_unified-storage.html +3 -0
  211. package/docs/api/module-subscriptions_manager.SubscriptionRegistry.html +3 -0
  212. package/docs/api/module-subscriptions_manager.html +3 -0
  213. package/docs/api/schema_validator.js.html +113 -0
  214. package/docs/api/scripts/core.js +726 -0
  215. package/docs/api/scripts/core.min.js +23 -0
  216. package/docs/api/scripts/resize.js +90 -0
  217. package/docs/api/scripts/search.js +265 -0
  218. package/docs/api/scripts/search.min.js +6 -0
  219. package/docs/api/scripts/third-party/Apache-License-2.0.txt +202 -0
  220. package/docs/api/scripts/third-party/fuse.js +9 -0
  221. package/docs/api/scripts/third-party/hljs-line-num-original.js +369 -0
  222. package/docs/api/scripts/third-party/hljs-line-num.js +1 -0
  223. package/docs/api/scripts/third-party/hljs-original.js +5171 -0
  224. package/docs/api/scripts/third-party/hljs.js +1 -0
  225. package/docs/api/scripts/third-party/popper.js +5 -0
  226. package/docs/api/scripts/third-party/tippy.js +1 -0
  227. package/docs/api/scripts/third-party/tocbot.js +672 -0
  228. package/docs/api/scripts/third-party/tocbot.min.js +1 -0
  229. package/docs/api/spatial_h3-operations.js.html +129 -0
  230. package/docs/api/storage_backend-factory.js.html +133 -0
  231. package/docs/api/storage_backend-interface.js.html +164 -0
  232. package/docs/api/storage_backends_activitypub-backend.js.html +298 -0
  233. package/docs/api/storage_backends_activitypub_server.js.html +678 -0
  234. package/docs/api/storage_backends_gundb-backend.js.html +878 -0
  235. package/docs/api/storage_backends_nostr-backend.js.html +254 -0
  236. package/docs/api/storage_filesystem-storage-browser.js.html +83 -0
  237. package/docs/api/storage_filesystem-storage.js.html +207 -0
  238. package/docs/api/storage_global-tables.js.html +116 -0
  239. package/docs/api/storage_gun-async.js.html +344 -0
  240. package/docs/api/storage_gun-auth.js.html +376 -0
  241. package/docs/api/storage_gun-federation.js.html +788 -0
  242. package/docs/api/storage_gun-references.js.html +212 -0
  243. package/docs/api/storage_gun-schema.js.html +309 -0
  244. package/docs/api/storage_gun-wrapper.js.html +645 -0
  245. package/docs/api/storage_indexeddb-storage.js.html +224 -0
  246. package/docs/api/storage_key-storage-simple.js.html +102 -0
  247. package/docs/api/storage_key-storage.js.html +171 -0
  248. package/docs/api/storage_memory-storage.js.html +128 -0
  249. package/docs/api/storage_migration.js.html +354 -0
  250. package/docs/api/storage_nostr-async.js.html +1076 -0
  251. package/docs/api/storage_nostr-client.js.html +1598 -0
  252. package/docs/api/storage_nostr-wrapper.js.html +218 -0
  253. package/docs/api/storage_outbox-queue.js.html +248 -0
  254. package/docs/api/storage_persistent-storage.js.html +160 -0
  255. package/docs/api/storage_sync-service.js.html +201 -0
  256. package/docs/api/storage_unified-storage.js.html +157 -0
  257. package/docs/api/styles/clean-jsdoc-theme-base.css +1159 -0
  258. package/docs/api/styles/clean-jsdoc-theme-dark.css +412 -0
  259. package/docs/api/styles/clean-jsdoc-theme-light.css +482 -0
  260. package/docs/api/styles/clean-jsdoc-theme-scrollbar.css +30 -0
  261. package/docs/api/styles/clean-jsdoc-theme-without-scrollbar.min.css +1 -0
  262. package/docs/api/styles/clean-jsdoc-theme.min.css +1 -0
  263. package/docs/api/subscriptions_manager.js.html +162 -0
  264. package/docs/contracts/api-interface.md +793 -0
  265. package/docs/data-model.md +476 -0
  266. package/docs/gun-async-usage.md +338 -0
  267. package/docs/plan.md +349 -0
  268. package/docs/quickstart.md +674 -0
  269. package/docs/research.md +362 -0
  270. package/docs/spec.md +244 -0
  271. package/docs/storage-backends.md +326 -0
  272. package/docs/tasks.md +947 -0
  273. package/examples/demo.html +47 -0
  274. package/examples/holosphere-widget.js +1242 -0
  275. package/examples/widget-demo.html +274 -0
  276. package/examples/widget.html +703 -0
  277. package/jsdoc.json +26 -0
  278. package/package.json +25 -7
  279. package/src/ai/aggregation.js +13 -2
  280. package/src/ai/breakdown.js +12 -2
  281. package/src/ai/classifier.js +14 -3
  282. package/src/ai/council.js +22 -7
  283. package/src/ai/embeddings.js +37 -15
  284. package/src/ai/federation-ai.js +13 -2
  285. package/src/ai/h3-ai.js +14 -2
  286. package/src/ai/index.js +16 -7
  287. package/src/ai/json-ops.js +18 -5
  288. package/src/ai/llm-service.js +62 -31
  289. package/src/ai/nl-query.js +12 -2
  290. package/src/ai/relationships.js +13 -2
  291. package/src/ai/schema-extractor.js +24 -10
  292. package/src/ai/spatial.js +13 -2
  293. package/src/ai/tts.js +25 -8
  294. package/src/cdn-entry.js +22 -0
  295. package/src/content/social-protocols.js +34 -25
  296. package/src/contracts/abis/Appreciative.json +1280 -0
  297. package/src/contracts/abis/AppreciativeFactory.json +101 -0
  298. package/src/contracts/abis/Bundle.json +1438 -0
  299. package/src/contracts/abis/BundleFactory.json +106 -0
  300. package/src/contracts/abis/Holon.json +881 -0
  301. package/src/contracts/abis/Holons.json +330 -0
  302. package/src/contracts/abis/Managed.json +1262 -0
  303. package/src/contracts/abis/ManagedFactory.json +149 -0
  304. package/src/contracts/abis/Membrane.json +261 -0
  305. package/src/contracts/abis/Splitter.json +1624 -0
  306. package/src/contracts/abis/SplitterFactory.json +220 -0
  307. package/src/contracts/abis/TestToken.json +321 -0
  308. package/src/contracts/abis/Zoned.json +1461 -0
  309. package/src/contracts/abis/ZonedFactory.json +154 -0
  310. package/src/contracts/chain-manager.js +403 -0
  311. package/src/contracts/deployer.js +500 -0
  312. package/src/contracts/event-listener.js +539 -0
  313. package/src/contracts/holon-contracts.js +359 -0
  314. package/src/contracts/index.js +82 -0
  315. package/src/contracts/networks.js +229 -0
  316. package/src/contracts/operations.js +687 -0
  317. package/src/contracts/queries.js +638 -0
  318. package/src/core/holosphere.js +487 -6
  319. package/src/crypto/nostr-utils.js +303 -0
  320. package/src/crypto/secp256k1.js +7 -2
  321. package/src/federation/handshake.js +475 -0
  322. package/src/federation/hologram.js +117 -3
  323. package/src/hierarchical/upcast.js +40 -25
  324. package/src/index.js +1501 -1909
  325. package/src/lib/ai-methods.js +657 -0
  326. package/src/lib/contract-methods.js +442 -0
  327. package/src/lib/errors.js +53 -0
  328. package/src/lib/federation-methods.js +345 -0
  329. package/src/lib/index.js +30 -0
  330. package/src/schema/validator.js +22 -3
  331. package/src/spatial/h3-operations.js +19 -3
  332. package/src/storage/backend-factory.js +7 -2
  333. package/src/storage/backend-interface.js +21 -2
  334. package/src/storage/backends/activitypub/server.js +25 -3
  335. package/src/storage/backends/activitypub-backend.js +25 -2
  336. package/src/storage/backends/gundb-backend.js +692 -50
  337. package/src/storage/backends/nostr-backend.js +116 -1
  338. package/src/storage/filesystem-storage-browser.js +42 -2
  339. package/src/storage/filesystem-storage.js +72 -5
  340. package/src/storage/global-tables.js +35 -3
  341. package/src/storage/gun-async.js +75 -15
  342. package/src/storage/gun-auth.js +373 -0
  343. package/src/storage/gun-federation.js +785 -0
  344. package/src/storage/gun-references.js +209 -0
  345. package/src/storage/gun-schema.js +306 -0
  346. package/src/storage/gun-wrapper.js +475 -54
  347. package/src/storage/indexeddb-storage.js +112 -13
  348. package/src/storage/key-storage-simple.js +32 -9
  349. package/src/storage/key-storage.js +45 -13
  350. package/src/storage/memory-storage.js +68 -2
  351. package/src/storage/migration.js +20 -7
  352. package/src/storage/nostr-async.js +412 -122
  353. package/src/storage/nostr-client.js +749 -76
  354. package/src/storage/nostr-wrapper.js +6 -2
  355. package/src/storage/outbox-queue.js +55 -18
  356. package/src/storage/persistent-storage.js +62 -14
  357. package/src/storage/sync-service.js +51 -17
  358. package/src/storage/unified-storage.js +154 -0
  359. package/src/subscriptions/manager.js +34 -17
  360. package/types/index.d.ts +133 -0
  361. package/vite.config.cdn.js +60 -0
  362. package/tests/unit/ai/aggregation.test.js +0 -295
  363. package/tests/unit/ai/breakdown.test.js +0 -446
  364. package/tests/unit/ai/classifier.test.js +0 -294
  365. package/tests/unit/ai/council.test.js +0 -262
  366. package/tests/unit/ai/embeddings.test.js +0 -384
  367. package/tests/unit/ai/federation-ai.test.js +0 -344
  368. package/tests/unit/ai/h3-ai.test.js +0 -458
  369. package/tests/unit/ai/index.test.js +0 -304
  370. package/tests/unit/ai/json-ops.test.js +0 -307
  371. package/tests/unit/ai/llm-service.test.js +0 -390
  372. package/tests/unit/ai/nl-query.test.js +0 -383
  373. package/tests/unit/ai/relationships.test.js +0 -311
  374. package/tests/unit/ai/schema-extractor.test.js +0 -384
  375. package/tests/unit/ai/spatial.test.js +0 -279
  376. package/tests/unit/ai/tts.test.js +0 -279
  377. package/tests/unit/content.test.js +0 -332
  378. package/tests/unit/contract/core.test.js +0 -88
  379. package/tests/unit/contract/crypto.test.js +0 -198
  380. package/tests/unit/contract/data.test.js +0 -223
  381. package/tests/unit/contract/federation.test.js +0 -181
  382. package/tests/unit/contract/hierarchical.test.js +0 -113
  383. package/tests/unit/contract/schema.test.js +0 -114
  384. package/tests/unit/contract/social.test.js +0 -217
  385. package/tests/unit/contract/spatial.test.js +0 -110
  386. package/tests/unit/contract/subscriptions.test.js +0 -128
  387. package/tests/unit/contract/utils.test.js +0 -159
  388. package/tests/unit/core.test.js +0 -152
  389. package/tests/unit/crypto.test.js +0 -328
  390. package/tests/unit/federation.test.js +0 -234
  391. package/tests/unit/gun-async.test.js +0 -252
  392. package/tests/unit/hierarchical.test.js +0 -399
  393. package/tests/unit/integration/scenario-01-geographic-storage.test.js +0 -74
  394. package/tests/unit/integration/scenario-02-federation.test.js +0 -76
  395. package/tests/unit/integration/scenario-03-subscriptions.test.js +0 -102
  396. package/tests/unit/integration/scenario-04-validation.test.js +0 -129
  397. package/tests/unit/integration/scenario-05-hierarchy.test.js +0 -125
  398. package/tests/unit/integration/scenario-06-social.test.js +0 -135
  399. package/tests/unit/integration/scenario-07-persistence.test.js +0 -130
  400. package/tests/unit/integration/scenario-08-authorization.test.js +0 -161
  401. package/tests/unit/integration/scenario-09-cross-dimensional.test.js +0 -139
  402. package/tests/unit/integration/scenario-10-cross-holosphere-capabilities.test.js +0 -357
  403. package/tests/unit/integration/scenario-11-cross-holosphere-federation.test.js +0 -410
  404. package/tests/unit/integration/scenario-12-capability-federated-read.test.js +0 -719
  405. package/tests/unit/performance/benchmark.test.js +0 -85
  406. package/tests/unit/schema.test.js +0 -213
  407. package/tests/unit/spatial.test.js +0 -158
  408. package/tests/unit/storage.test.js +0 -195
  409. package/tests/unit/subscriptions.test.js +0 -328
  410. package/tests/unit/test-data-permanence-debug.js +0 -197
  411. package/tests/unit/test-data-permanence.js +0 -340
  412. package/tests/unit/test-key-persistence-fixed.js +0 -148
  413. package/tests/unit/test-key-persistence.js +0 -172
  414. package/tests/unit/test-relay-permanence.js +0 -376
  415. package/tests/unit/test-second-node.js +0 -95
  416. package/tests/unit/test-simple-write.js +0 -89
  417. /package/{cleanup-test-data.js → scripts/cleanup-test-data.js} +0 -0
  418. /package/{test-ai-real-api.js → scripts/test-ai-real-api.js} +0 -0
@@ -0,0 +1,1461 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "creatorUserId",
7
+ "type": "string",
8
+ "internalType": "string"
9
+ },
10
+ {
11
+ "name": "_creator",
12
+ "type": "address",
13
+ "internalType": "address"
14
+ },
15
+ {
16
+ "name": "_name",
17
+ "type": "string",
18
+ "internalType": "string"
19
+ },
20
+ {
21
+ "name": "_nzones",
22
+ "type": "uint256",
23
+ "internalType": "uint256"
24
+ },
25
+ {
26
+ "name": "_botAddress",
27
+ "type": "address",
28
+ "internalType": "address"
29
+ }
30
+ ],
31
+ "stateMutability": "nonpayable"
32
+ },
33
+ {
34
+ "type": "fallback",
35
+ "stateMutability": "payable"
36
+ },
37
+ {
38
+ "type": "receive",
39
+ "stateMutability": "payable"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "a",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "uint256",
49
+ "internalType": "uint256"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "addFederationMember",
57
+ "inputs": [
58
+ {
59
+ "name": "federationId",
60
+ "type": "string",
61
+ "internalType": "string"
62
+ }
63
+ ],
64
+ "outputs": [],
65
+ "stateMutability": "nonpayable"
66
+ },
67
+ {
68
+ "type": "function",
69
+ "name": "addMember",
70
+ "inputs": [
71
+ {
72
+ "name": "_memberaddress",
73
+ "type": "address",
74
+ "internalType": "address"
75
+ },
76
+ {
77
+ "name": "_membername",
78
+ "type": "string",
79
+ "internalType": "string"
80
+ }
81
+ ],
82
+ "outputs": [],
83
+ "stateMutability": "nonpayable"
84
+ },
85
+ {
86
+ "type": "function",
87
+ "name": "addMember",
88
+ "inputs": [
89
+ {
90
+ "name": "senderUserId",
91
+ "type": "string",
92
+ "internalType": "string"
93
+ },
94
+ {
95
+ "name": "_userId",
96
+ "type": "string",
97
+ "internalType": "string"
98
+ }
99
+ ],
100
+ "outputs": [],
101
+ "stateMutability": "nonpayable"
102
+ },
103
+ {
104
+ "type": "function",
105
+ "name": "addMembers",
106
+ "inputs": [
107
+ {
108
+ "name": "senderUserId",
109
+ "type": "string",
110
+ "internalType": "string"
111
+ },
112
+ {
113
+ "name": "_userIds",
114
+ "type": "string[]",
115
+ "internalType": "string[]"
116
+ }
117
+ ],
118
+ "outputs": [],
119
+ "stateMutability": "nonpayable"
120
+ },
121
+ {
122
+ "type": "function",
123
+ "name": "addParent",
124
+ "inputs": [
125
+ {
126
+ "name": "_parentaddress",
127
+ "type": "address",
128
+ "internalType": "address"
129
+ }
130
+ ],
131
+ "outputs": [],
132
+ "stateMutability": "nonpayable"
133
+ },
134
+ {
135
+ "type": "function",
136
+ "name": "addToZone",
137
+ "inputs": [
138
+ {
139
+ "name": "senderUserId",
140
+ "type": "string",
141
+ "internalType": "string"
142
+ },
143
+ {
144
+ "name": "_userId",
145
+ "type": "string",
146
+ "internalType": "string"
147
+ },
148
+ {
149
+ "name": "_zone",
150
+ "type": "uint256",
151
+ "internalType": "uint256"
152
+ }
153
+ ],
154
+ "outputs": [],
155
+ "stateMutability": "nonpayable"
156
+ },
157
+ {
158
+ "type": "function",
159
+ "name": "addressToUserId",
160
+ "inputs": [
161
+ {
162
+ "name": "",
163
+ "type": "address",
164
+ "internalType": "address"
165
+ }
166
+ ],
167
+ "outputs": [
168
+ {
169
+ "name": "",
170
+ "type": "string",
171
+ "internalType": "string"
172
+ }
173
+ ],
174
+ "stateMutability": "view"
175
+ },
176
+ {
177
+ "type": "function",
178
+ "name": "b",
179
+ "inputs": [],
180
+ "outputs": [
181
+ {
182
+ "name": "",
183
+ "type": "uint256",
184
+ "internalType": "uint256"
185
+ }
186
+ ],
187
+ "stateMutability": "view"
188
+ },
189
+ {
190
+ "type": "function",
191
+ "name": "botAddress",
192
+ "inputs": [],
193
+ "outputs": [
194
+ {
195
+ "name": "",
196
+ "type": "address",
197
+ "internalType": "address"
198
+ }
199
+ ],
200
+ "stateMutability": "view"
201
+ },
202
+ {
203
+ "type": "function",
204
+ "name": "c",
205
+ "inputs": [],
206
+ "outputs": [
207
+ {
208
+ "name": "",
209
+ "type": "uint256",
210
+ "internalType": "uint256"
211
+ }
212
+ ],
213
+ "stateMutability": "view"
214
+ },
215
+ {
216
+ "type": "function",
217
+ "name": "calculateRewards",
218
+ "inputs": [],
219
+ "outputs": [
220
+ {
221
+ "name": "",
222
+ "type": "uint256[]",
223
+ "internalType": "uint256[]"
224
+ }
225
+ ],
226
+ "stateMutability": "view"
227
+ },
228
+ {
229
+ "type": "function",
230
+ "name": "changeName",
231
+ "inputs": [
232
+ {
233
+ "name": "_address",
234
+ "type": "address",
235
+ "internalType": "address"
236
+ },
237
+ {
238
+ "name": "_name",
239
+ "type": "string",
240
+ "internalType": "string"
241
+ }
242
+ ],
243
+ "outputs": [],
244
+ "stateMutability": "nonpayable"
245
+ },
246
+ {
247
+ "type": "function",
248
+ "name": "changeOwner",
249
+ "inputs": [
250
+ {
251
+ "name": "_address",
252
+ "type": "address",
253
+ "internalType": "address"
254
+ }
255
+ ],
256
+ "outputs": [],
257
+ "stateMutability": "nonpayable"
258
+ },
259
+ {
260
+ "type": "function",
261
+ "name": "claim",
262
+ "inputs": [
263
+ {
264
+ "name": "_userId",
265
+ "type": "string",
266
+ "internalType": "string"
267
+ },
268
+ {
269
+ "name": "_beneficiary",
270
+ "type": "address",
271
+ "internalType": "address"
272
+ }
273
+ ],
274
+ "outputs": [],
275
+ "stateMutability": "nonpayable"
276
+ },
277
+ {
278
+ "type": "function",
279
+ "name": "creator",
280
+ "inputs": [],
281
+ "outputs": [
282
+ {
283
+ "name": "",
284
+ "type": "address",
285
+ "internalType": "address"
286
+ }
287
+ ],
288
+ "stateMutability": "view"
289
+ },
290
+ {
291
+ "type": "function",
292
+ "name": "depositEtherForUser",
293
+ "inputs": [
294
+ {
295
+ "name": "_userId",
296
+ "type": "string",
297
+ "internalType": "string"
298
+ },
299
+ {
300
+ "name": "amount",
301
+ "type": "uint256",
302
+ "internalType": "uint256"
303
+ }
304
+ ],
305
+ "outputs": [],
306
+ "stateMutability": "payable"
307
+ },
308
+ {
309
+ "type": "function",
310
+ "name": "depositTokenForUser",
311
+ "inputs": [
312
+ {
313
+ "name": "_userId",
314
+ "type": "string",
315
+ "internalType": "string"
316
+ },
317
+ {
318
+ "name": "_tokenAddress",
319
+ "type": "address",
320
+ "internalType": "address"
321
+ },
322
+ {
323
+ "name": "_amount",
324
+ "type": "uint256",
325
+ "internalType": "uint256"
326
+ }
327
+ ],
328
+ "outputs": [],
329
+ "stateMutability": "nonpayable"
330
+ },
331
+ {
332
+ "type": "function",
333
+ "name": "etherBalance",
334
+ "inputs": [
335
+ {
336
+ "name": "",
337
+ "type": "string",
338
+ "internalType": "string"
339
+ }
340
+ ],
341
+ "outputs": [
342
+ {
343
+ "name": "",
344
+ "type": "uint256",
345
+ "internalType": "uint256"
346
+ }
347
+ ],
348
+ "stateMutability": "view"
349
+ },
350
+ {
351
+ "type": "function",
352
+ "name": "factory",
353
+ "inputs": [],
354
+ "outputs": [
355
+ {
356
+ "name": "",
357
+ "type": "address",
358
+ "internalType": "address"
359
+ }
360
+ ],
361
+ "stateMutability": "view"
362
+ },
363
+ {
364
+ "type": "function",
365
+ "name": "flavor",
366
+ "inputs": [],
367
+ "outputs": [
368
+ {
369
+ "name": "",
370
+ "type": "string",
371
+ "internalType": "string"
372
+ }
373
+ ],
374
+ "stateMutability": "view"
375
+ },
376
+ {
377
+ "type": "function",
378
+ "name": "getSize",
379
+ "inputs": [],
380
+ "outputs": [
381
+ {
382
+ "name": "",
383
+ "type": "uint256",
384
+ "internalType": "uint256"
385
+ }
386
+ ],
387
+ "stateMutability": "view"
388
+ },
389
+ {
390
+ "type": "function",
391
+ "name": "getZoneMembers",
392
+ "inputs": [
393
+ {
394
+ "name": "_zone",
395
+ "type": "uint256",
396
+ "internalType": "uint256"
397
+ }
398
+ ],
399
+ "outputs": [
400
+ {
401
+ "name": "",
402
+ "type": "string[]",
403
+ "internalType": "string[]"
404
+ }
405
+ ],
406
+ "stateMutability": "view"
407
+ },
408
+ {
409
+ "type": "function",
410
+ "name": "hasClaimed",
411
+ "inputs": [
412
+ {
413
+ "name": "",
414
+ "type": "string",
415
+ "internalType": "string"
416
+ }
417
+ ],
418
+ "outputs": [
419
+ {
420
+ "name": "",
421
+ "type": "bool",
422
+ "internalType": "bool"
423
+ }
424
+ ],
425
+ "stateMutability": "view"
426
+ },
427
+ {
428
+ "type": "function",
429
+ "name": "isMember",
430
+ "inputs": [
431
+ {
432
+ "name": "",
433
+ "type": "address",
434
+ "internalType": "address"
435
+ }
436
+ ],
437
+ "outputs": [
438
+ {
439
+ "name": "",
440
+ "type": "bool",
441
+ "internalType": "bool"
442
+ }
443
+ ],
444
+ "stateMutability": "view"
445
+ },
446
+ {
447
+ "type": "function",
448
+ "name": "isZonedMember",
449
+ "inputs": [
450
+ {
451
+ "name": "",
452
+ "type": "string",
453
+ "internalType": "string"
454
+ }
455
+ ],
456
+ "outputs": [
457
+ {
458
+ "name": "",
459
+ "type": "bool",
460
+ "internalType": "bool"
461
+ }
462
+ ],
463
+ "stateMutability": "view"
464
+ },
465
+ {
466
+ "type": "function",
467
+ "name": "listMembers",
468
+ "inputs": [],
469
+ "outputs": [
470
+ {
471
+ "name": "",
472
+ "type": "address[]",
473
+ "internalType": "address payable[]"
474
+ }
475
+ ],
476
+ "stateMutability": "view"
477
+ },
478
+ {
479
+ "type": "function",
480
+ "name": "listParents",
481
+ "inputs": [],
482
+ "outputs": [
483
+ {
484
+ "name": "",
485
+ "type": "address[]",
486
+ "internalType": "address[]"
487
+ }
488
+ ],
489
+ "stateMutability": "view"
490
+ },
491
+ {
492
+ "type": "function",
493
+ "name": "manifest",
494
+ "inputs": [],
495
+ "outputs": [
496
+ {
497
+ "name": "",
498
+ "type": "string",
499
+ "internalType": "string"
500
+ }
501
+ ],
502
+ "stateMutability": "view"
503
+ },
504
+ {
505
+ "type": "function",
506
+ "name": "name",
507
+ "inputs": [],
508
+ "outputs": [
509
+ {
510
+ "name": "",
511
+ "type": "string",
512
+ "internalType": "string"
513
+ }
514
+ ],
515
+ "stateMutability": "view"
516
+ },
517
+ {
518
+ "type": "function",
519
+ "name": "newHolon",
520
+ "inputs": [
521
+ {
522
+ "name": "_flavor",
523
+ "type": "string",
524
+ "internalType": "string"
525
+ },
526
+ {
527
+ "name": "_name",
528
+ "type": "string",
529
+ "internalType": "string"
530
+ },
531
+ {
532
+ "name": "_parameter",
533
+ "type": "uint256",
534
+ "internalType": "uint256"
535
+ }
536
+ ],
537
+ "outputs": [
538
+ {
539
+ "name": "",
540
+ "type": "address",
541
+ "internalType": "address"
542
+ }
543
+ ],
544
+ "stateMutability": "nonpayable"
545
+ },
546
+ {
547
+ "type": "function",
548
+ "name": "nzones",
549
+ "inputs": [],
550
+ "outputs": [
551
+ {
552
+ "name": "",
553
+ "type": "uint256",
554
+ "internalType": "uint256"
555
+ }
556
+ ],
557
+ "stateMutability": "view"
558
+ },
559
+ {
560
+ "type": "function",
561
+ "name": "percentages",
562
+ "inputs": [
563
+ {
564
+ "name": "",
565
+ "type": "string",
566
+ "internalType": "string"
567
+ }
568
+ ],
569
+ "outputs": [
570
+ {
571
+ "name": "",
572
+ "type": "uint256",
573
+ "internalType": "uint256"
574
+ }
575
+ ],
576
+ "stateMutability": "view"
577
+ },
578
+ {
579
+ "type": "function",
580
+ "name": "removeFromZone",
581
+ "inputs": [
582
+ {
583
+ "name": "senderUserId",
584
+ "type": "string",
585
+ "internalType": "string"
586
+ },
587
+ {
588
+ "name": "_userId",
589
+ "type": "string",
590
+ "internalType": "string"
591
+ }
592
+ ],
593
+ "outputs": [],
594
+ "stateMutability": "nonpayable"
595
+ },
596
+ {
597
+ "type": "function",
598
+ "name": "removeMember",
599
+ "inputs": [
600
+ {
601
+ "name": "_memberaddress",
602
+ "type": "address",
603
+ "internalType": "address"
604
+ }
605
+ ],
606
+ "outputs": [],
607
+ "stateMutability": "nonpayable"
608
+ },
609
+ {
610
+ "type": "function",
611
+ "name": "reward",
612
+ "inputs": [
613
+ {
614
+ "name": "_tokenaddress",
615
+ "type": "address",
616
+ "internalType": "address"
617
+ },
618
+ {
619
+ "name": "_tokenamount",
620
+ "type": "uint256",
621
+ "internalType": "uint256"
622
+ }
623
+ ],
624
+ "outputs": [],
625
+ "stateMutability": "payable"
626
+ },
627
+ {
628
+ "type": "function",
629
+ "name": "rewards",
630
+ "inputs": [
631
+ {
632
+ "name": "",
633
+ "type": "uint256",
634
+ "internalType": "uint256"
635
+ }
636
+ ],
637
+ "outputs": [
638
+ {
639
+ "name": "",
640
+ "type": "uint256",
641
+ "internalType": "uint256"
642
+ }
643
+ ],
644
+ "stateMutability": "view"
645
+ },
646
+ {
647
+ "type": "function",
648
+ "name": "setManifest",
649
+ "inputs": [
650
+ {
651
+ "name": "_IPFSHash",
652
+ "type": "string",
653
+ "internalType": "string"
654
+ }
655
+ ],
656
+ "outputs": [],
657
+ "stateMutability": "nonpayable"
658
+ },
659
+ {
660
+ "type": "function",
661
+ "name": "setRewardFunction",
662
+ "inputs": [
663
+ {
664
+ "name": "senderUserId",
665
+ "type": "string",
666
+ "internalType": "string"
667
+ },
668
+ {
669
+ "name": "_a",
670
+ "type": "uint256",
671
+ "internalType": "uint256"
672
+ },
673
+ {
674
+ "name": "_b",
675
+ "type": "uint256",
676
+ "internalType": "uint256"
677
+ },
678
+ {
679
+ "name": "_c",
680
+ "type": "uint256",
681
+ "internalType": "uint256"
682
+ }
683
+ ],
684
+ "outputs": [],
685
+ "stateMutability": "nonpayable"
686
+ },
687
+ {
688
+ "type": "function",
689
+ "name": "toAddress",
690
+ "inputs": [
691
+ {
692
+ "name": "",
693
+ "type": "string",
694
+ "internalType": "string"
695
+ }
696
+ ],
697
+ "outputs": [
698
+ {
699
+ "name": "",
700
+ "type": "address",
701
+ "internalType": "address"
702
+ }
703
+ ],
704
+ "stateMutability": "view"
705
+ },
706
+ {
707
+ "type": "function",
708
+ "name": "toName",
709
+ "inputs": [
710
+ {
711
+ "name": "",
712
+ "type": "address",
713
+ "internalType": "address"
714
+ }
715
+ ],
716
+ "outputs": [
717
+ {
718
+ "name": "",
719
+ "type": "string",
720
+ "internalType": "string"
721
+ }
722
+ ],
723
+ "stateMutability": "view"
724
+ },
725
+ {
726
+ "type": "function",
727
+ "name": "tokenBalance",
728
+ "inputs": [
729
+ {
730
+ "name": "",
731
+ "type": "string",
732
+ "internalType": "string"
733
+ },
734
+ {
735
+ "name": "",
736
+ "type": "address",
737
+ "internalType": "address"
738
+ }
739
+ ],
740
+ "outputs": [
741
+ {
742
+ "name": "",
743
+ "type": "uint256",
744
+ "internalType": "uint256"
745
+ }
746
+ ],
747
+ "stateMutability": "view"
748
+ },
749
+ {
750
+ "type": "function",
751
+ "name": "tokensOf",
752
+ "inputs": [
753
+ {
754
+ "name": "",
755
+ "type": "string",
756
+ "internalType": "string"
757
+ },
758
+ {
759
+ "name": "",
760
+ "type": "uint256",
761
+ "internalType": "uint256"
762
+ }
763
+ ],
764
+ "outputs": [
765
+ {
766
+ "name": "",
767
+ "type": "address",
768
+ "internalType": "address"
769
+ }
770
+ ],
771
+ "stateMutability": "view"
772
+ },
773
+ {
774
+ "type": "function",
775
+ "name": "totalDeposited",
776
+ "inputs": [
777
+ {
778
+ "name": "",
779
+ "type": "address",
780
+ "internalType": "address"
781
+ }
782
+ ],
783
+ "outputs": [
784
+ {
785
+ "name": "",
786
+ "type": "uint256",
787
+ "internalType": "uint256"
788
+ }
789
+ ],
790
+ "stateMutability": "view"
791
+ },
792
+ {
793
+ "type": "function",
794
+ "name": "userIdToAddress",
795
+ "inputs": [
796
+ {
797
+ "name": "",
798
+ "type": "string",
799
+ "internalType": "string"
800
+ }
801
+ ],
802
+ "outputs": [
803
+ {
804
+ "name": "",
805
+ "type": "address",
806
+ "internalType": "address"
807
+ }
808
+ ],
809
+ "stateMutability": "view"
810
+ },
811
+ {
812
+ "type": "function",
813
+ "name": "userIds",
814
+ "inputs": [
815
+ {
816
+ "name": "",
817
+ "type": "uint256",
818
+ "internalType": "uint256"
819
+ }
820
+ ],
821
+ "outputs": [
822
+ {
823
+ "name": "",
824
+ "type": "string",
825
+ "internalType": "string"
826
+ }
827
+ ],
828
+ "stateMutability": "view"
829
+ },
830
+ {
831
+ "type": "function",
832
+ "name": "version",
833
+ "inputs": [],
834
+ "outputs": [
835
+ {
836
+ "name": "",
837
+ "type": "string",
838
+ "internalType": "string"
839
+ }
840
+ ],
841
+ "stateMutability": "view"
842
+ },
843
+ {
844
+ "type": "function",
845
+ "name": "zone",
846
+ "inputs": [
847
+ {
848
+ "name": "",
849
+ "type": "string",
850
+ "internalType": "string"
851
+ }
852
+ ],
853
+ "outputs": [
854
+ {
855
+ "name": "",
856
+ "type": "uint256",
857
+ "internalType": "uint256"
858
+ }
859
+ ],
860
+ "stateMutability": "view"
861
+ },
862
+ {
863
+ "type": "function",
864
+ "name": "zonemembers",
865
+ "inputs": [
866
+ {
867
+ "name": "",
868
+ "type": "uint256",
869
+ "internalType": "uint256"
870
+ },
871
+ {
872
+ "name": "",
873
+ "type": "uint256",
874
+ "internalType": "uint256"
875
+ }
876
+ ],
877
+ "outputs": [
878
+ {
879
+ "name": "",
880
+ "type": "string",
881
+ "internalType": "string"
882
+ }
883
+ ],
884
+ "stateMutability": "view"
885
+ },
886
+ {
887
+ "type": "event",
888
+ "name": "AddedMember",
889
+ "inputs": [
890
+ {
891
+ "name": "member",
892
+ "type": "address",
893
+ "indexed": false,
894
+ "internalType": "address"
895
+ },
896
+ {
897
+ "name": "name",
898
+ "type": "string",
899
+ "indexed": false,
900
+ "internalType": "string"
901
+ }
902
+ ],
903
+ "anonymous": false
904
+ },
905
+ {
906
+ "type": "event",
907
+ "name": "AppreciationGiven",
908
+ "inputs": [
909
+ {
910
+ "name": "contractAddress",
911
+ "type": "address",
912
+ "indexed": true,
913
+ "internalType": "address"
914
+ },
915
+ {
916
+ "name": "holonId",
917
+ "type": "string",
918
+ "indexed": false,
919
+ "internalType": "string"
920
+ },
921
+ {
922
+ "name": "fromUserId",
923
+ "type": "string",
924
+ "indexed": false,
925
+ "internalType": "string"
926
+ },
927
+ {
928
+ "name": "toUserId",
929
+ "type": "string",
930
+ "indexed": false,
931
+ "internalType": "string"
932
+ },
933
+ {
934
+ "name": "amount",
935
+ "type": "uint256",
936
+ "indexed": false,
937
+ "internalType": "uint256"
938
+ }
939
+ ],
940
+ "anonymous": false
941
+ },
942
+ {
943
+ "type": "event",
944
+ "name": "ChangedName",
945
+ "inputs": [
946
+ {
947
+ "name": "namefrom",
948
+ "type": "string",
949
+ "indexed": false,
950
+ "internalType": "string"
951
+ },
952
+ {
953
+ "name": "nameto",
954
+ "type": "string",
955
+ "indexed": false,
956
+ "internalType": "string"
957
+ }
958
+ ],
959
+ "anonymous": false
960
+ },
961
+ {
962
+ "type": "event",
963
+ "name": "DistributionCompleted",
964
+ "inputs": [
965
+ {
966
+ "name": "contractAddress",
967
+ "type": "address",
968
+ "indexed": true,
969
+ "internalType": "address"
970
+ },
971
+ {
972
+ "name": "holonId",
973
+ "type": "string",
974
+ "indexed": false,
975
+ "internalType": "string"
976
+ },
977
+ {
978
+ "name": "tokenAddress",
979
+ "type": "address",
980
+ "indexed": false,
981
+ "internalType": "address"
982
+ },
983
+ {
984
+ "name": "totalAmount",
985
+ "type": "uint256",
986
+ "indexed": false,
987
+ "internalType": "uint256"
988
+ },
989
+ {
990
+ "name": "recipientCount",
991
+ "type": "uint256",
992
+ "indexed": false,
993
+ "internalType": "uint256"
994
+ },
995
+ {
996
+ "name": "cascadeCount",
997
+ "type": "uint256",
998
+ "indexed": false,
999
+ "internalType": "uint256"
1000
+ }
1001
+ ],
1002
+ "anonymous": false
1003
+ },
1004
+ {
1005
+ "type": "event",
1006
+ "name": "FundsAllocated",
1007
+ "inputs": [
1008
+ {
1009
+ "name": "contractAddress",
1010
+ "type": "address",
1011
+ "indexed": true,
1012
+ "internalType": "address"
1013
+ },
1014
+ {
1015
+ "name": "holonId",
1016
+ "type": "string",
1017
+ "indexed": false,
1018
+ "internalType": "string"
1019
+ },
1020
+ {
1021
+ "name": "userId",
1022
+ "type": "string",
1023
+ "indexed": false,
1024
+ "internalType": "string"
1025
+ },
1026
+ {
1027
+ "name": "tokenAddress",
1028
+ "type": "address",
1029
+ "indexed": false,
1030
+ "internalType": "address"
1031
+ },
1032
+ {
1033
+ "name": "amount",
1034
+ "type": "uint256",
1035
+ "indexed": false,
1036
+ "internalType": "uint256"
1037
+ },
1038
+ {
1039
+ "name": "distributionType",
1040
+ "type": "string",
1041
+ "indexed": false,
1042
+ "internalType": "string"
1043
+ }
1044
+ ],
1045
+ "anonymous": false
1046
+ },
1047
+ {
1048
+ "type": "event",
1049
+ "name": "FundsCascaded",
1050
+ "inputs": [
1051
+ {
1052
+ "name": "fromContract",
1053
+ "type": "address",
1054
+ "indexed": true,
1055
+ "internalType": "address"
1056
+ },
1057
+ {
1058
+ "name": "toContract",
1059
+ "type": "address",
1060
+ "indexed": true,
1061
+ "internalType": "address"
1062
+ },
1063
+ {
1064
+ "name": "fromHolonId",
1065
+ "type": "string",
1066
+ "indexed": false,
1067
+ "internalType": "string"
1068
+ },
1069
+ {
1070
+ "name": "toHolonId",
1071
+ "type": "string",
1072
+ "indexed": false,
1073
+ "internalType": "string"
1074
+ },
1075
+ {
1076
+ "name": "tokenAddress",
1077
+ "type": "address",
1078
+ "indexed": false,
1079
+ "internalType": "address"
1080
+ },
1081
+ {
1082
+ "name": "amount",
1083
+ "type": "uint256",
1084
+ "indexed": false,
1085
+ "internalType": "uint256"
1086
+ },
1087
+ {
1088
+ "name": "splitType",
1089
+ "type": "string",
1090
+ "indexed": false,
1091
+ "internalType": "string"
1092
+ }
1093
+ ],
1094
+ "anonymous": false
1095
+ },
1096
+ {
1097
+ "type": "event",
1098
+ "name": "FundsClaimed",
1099
+ "inputs": [
1100
+ {
1101
+ "name": "contractAddress",
1102
+ "type": "address",
1103
+ "indexed": true,
1104
+ "internalType": "address"
1105
+ },
1106
+ {
1107
+ "name": "holonId",
1108
+ "type": "string",
1109
+ "indexed": false,
1110
+ "internalType": "string"
1111
+ },
1112
+ {
1113
+ "name": "userId",
1114
+ "type": "string",
1115
+ "indexed": false,
1116
+ "internalType": "string"
1117
+ },
1118
+ {
1119
+ "name": "beneficiary",
1120
+ "type": "address",
1121
+ "indexed": true,
1122
+ "internalType": "address"
1123
+ },
1124
+ {
1125
+ "name": "tokenAddress",
1126
+ "type": "address",
1127
+ "indexed": false,
1128
+ "internalType": "address"
1129
+ },
1130
+ {
1131
+ "name": "amount",
1132
+ "type": "uint256",
1133
+ "indexed": false,
1134
+ "internalType": "uint256"
1135
+ }
1136
+ ],
1137
+ "anonymous": false
1138
+ },
1139
+ {
1140
+ "type": "event",
1141
+ "name": "FundsReceived",
1142
+ "inputs": [
1143
+ {
1144
+ "name": "contractAddress",
1145
+ "type": "address",
1146
+ "indexed": true,
1147
+ "internalType": "address"
1148
+ },
1149
+ {
1150
+ "name": "sender",
1151
+ "type": "address",
1152
+ "indexed": true,
1153
+ "internalType": "address"
1154
+ },
1155
+ {
1156
+ "name": "tokenAddress",
1157
+ "type": "address",
1158
+ "indexed": false,
1159
+ "internalType": "address"
1160
+ },
1161
+ {
1162
+ "name": "amount",
1163
+ "type": "uint256",
1164
+ "indexed": false,
1165
+ "internalType": "uint256"
1166
+ }
1167
+ ],
1168
+ "anonymous": false
1169
+ },
1170
+ {
1171
+ "type": "event",
1172
+ "name": "FundsTransferred",
1173
+ "inputs": [
1174
+ {
1175
+ "name": "contractAddress",
1176
+ "type": "address",
1177
+ "indexed": true,
1178
+ "internalType": "address"
1179
+ },
1180
+ {
1181
+ "name": "holonId",
1182
+ "type": "string",
1183
+ "indexed": false,
1184
+ "internalType": "string"
1185
+ },
1186
+ {
1187
+ "name": "userId",
1188
+ "type": "string",
1189
+ "indexed": false,
1190
+ "internalType": "string"
1191
+ },
1192
+ {
1193
+ "name": "recipient",
1194
+ "type": "address",
1195
+ "indexed": true,
1196
+ "internalType": "address"
1197
+ },
1198
+ {
1199
+ "name": "tokenAddress",
1200
+ "type": "address",
1201
+ "indexed": false,
1202
+ "internalType": "address"
1203
+ },
1204
+ {
1205
+ "name": "amount",
1206
+ "type": "uint256",
1207
+ "indexed": false,
1208
+ "internalType": "uint256"
1209
+ }
1210
+ ],
1211
+ "anonymous": false
1212
+ },
1213
+ {
1214
+ "type": "event",
1215
+ "name": "MemberAdded",
1216
+ "inputs": [
1217
+ {
1218
+ "name": "contractAddress",
1219
+ "type": "address",
1220
+ "indexed": true,
1221
+ "internalType": "address"
1222
+ },
1223
+ {
1224
+ "name": "holonId",
1225
+ "type": "string",
1226
+ "indexed": false,
1227
+ "internalType": "string"
1228
+ },
1229
+ {
1230
+ "name": "userId",
1231
+ "type": "string",
1232
+ "indexed": false,
1233
+ "internalType": "string"
1234
+ },
1235
+ {
1236
+ "name": "addedBy",
1237
+ "type": "address",
1238
+ "indexed": false,
1239
+ "internalType": "address"
1240
+ }
1241
+ ],
1242
+ "anonymous": false
1243
+ },
1244
+ {
1245
+ "type": "event",
1246
+ "name": "MemberRemoved",
1247
+ "inputs": [
1248
+ {
1249
+ "name": "contractAddress",
1250
+ "type": "address",
1251
+ "indexed": true,
1252
+ "internalType": "address"
1253
+ },
1254
+ {
1255
+ "name": "holonId",
1256
+ "type": "string",
1257
+ "indexed": false,
1258
+ "internalType": "string"
1259
+ },
1260
+ {
1261
+ "name": "userId",
1262
+ "type": "string",
1263
+ "indexed": false,
1264
+ "internalType": "string"
1265
+ }
1266
+ ],
1267
+ "anonymous": false
1268
+ },
1269
+ {
1270
+ "type": "event",
1271
+ "name": "MemberRewarded",
1272
+ "inputs": [
1273
+ {
1274
+ "name": "from",
1275
+ "type": "address",
1276
+ "indexed": true,
1277
+ "internalType": "address"
1278
+ },
1279
+ {
1280
+ "name": "to",
1281
+ "type": "address",
1282
+ "indexed": true,
1283
+ "internalType": "address"
1284
+ },
1285
+ {
1286
+ "name": "amount",
1287
+ "type": "uint256",
1288
+ "indexed": false,
1289
+ "internalType": "uint256"
1290
+ },
1291
+ {
1292
+ "name": "isContract",
1293
+ "type": "bool",
1294
+ "indexed": false,
1295
+ "internalType": "bool"
1296
+ },
1297
+ {
1298
+ "name": "rewardType",
1299
+ "type": "string",
1300
+ "indexed": false,
1301
+ "internalType": "string"
1302
+ }
1303
+ ],
1304
+ "anonymous": false
1305
+ },
1306
+ {
1307
+ "type": "event",
1308
+ "name": "RemovedMember",
1309
+ "inputs": [
1310
+ {
1311
+ "name": "member",
1312
+ "type": "address",
1313
+ "indexed": false,
1314
+ "internalType": "address"
1315
+ },
1316
+ {
1317
+ "name": "name",
1318
+ "type": "string",
1319
+ "indexed": false,
1320
+ "internalType": "string"
1321
+ }
1322
+ ],
1323
+ "anonymous": false
1324
+ },
1325
+ {
1326
+ "type": "event",
1327
+ "name": "RewardDistributed",
1328
+ "inputs": [
1329
+ {
1330
+ "name": "contractAddress",
1331
+ "type": "address",
1332
+ "indexed": true,
1333
+ "internalType": "address"
1334
+ },
1335
+ {
1336
+ "name": "amount",
1337
+ "type": "uint256",
1338
+ "indexed": false,
1339
+ "internalType": "uint256"
1340
+ },
1341
+ {
1342
+ "name": "totalMembers",
1343
+ "type": "uint256",
1344
+ "indexed": false,
1345
+ "internalType": "uint256"
1346
+ },
1347
+ {
1348
+ "name": "rewardType",
1349
+ "type": "string",
1350
+ "indexed": false,
1351
+ "internalType": "string"
1352
+ }
1353
+ ],
1354
+ "anonymous": false
1355
+ },
1356
+ {
1357
+ "type": "event",
1358
+ "name": "SplitConfigured",
1359
+ "inputs": [
1360
+ {
1361
+ "name": "contractAddress",
1362
+ "type": "address",
1363
+ "indexed": true,
1364
+ "internalType": "address"
1365
+ },
1366
+ {
1367
+ "name": "holonId",
1368
+ "type": "string",
1369
+ "indexed": false,
1370
+ "internalType": "string"
1371
+ },
1372
+ {
1373
+ "name": "splitType",
1374
+ "type": "string",
1375
+ "indexed": false,
1376
+ "internalType": "string"
1377
+ },
1378
+ {
1379
+ "name": "values",
1380
+ "type": "uint256[]",
1381
+ "indexed": false,
1382
+ "internalType": "uint256[]"
1383
+ }
1384
+ ],
1385
+ "anonymous": false
1386
+ },
1387
+ {
1388
+ "type": "event",
1389
+ "name": "WeightChanged",
1390
+ "inputs": [
1391
+ {
1392
+ "name": "contractAddress",
1393
+ "type": "address",
1394
+ "indexed": true,
1395
+ "internalType": "address"
1396
+ },
1397
+ {
1398
+ "name": "holonId",
1399
+ "type": "string",
1400
+ "indexed": false,
1401
+ "internalType": "string"
1402
+ },
1403
+ {
1404
+ "name": "userId",
1405
+ "type": "string",
1406
+ "indexed": false,
1407
+ "internalType": "string"
1408
+ },
1409
+ {
1410
+ "name": "oldWeight",
1411
+ "type": "uint256",
1412
+ "indexed": false,
1413
+ "internalType": "uint256"
1414
+ },
1415
+ {
1416
+ "name": "newWeight",
1417
+ "type": "uint256",
1418
+ "indexed": false,
1419
+ "internalType": "uint256"
1420
+ }
1421
+ ],
1422
+ "anonymous": false
1423
+ },
1424
+ {
1425
+ "type": "event",
1426
+ "name": "ZoneAssigned",
1427
+ "inputs": [
1428
+ {
1429
+ "name": "contractAddress",
1430
+ "type": "address",
1431
+ "indexed": true,
1432
+ "internalType": "address"
1433
+ },
1434
+ {
1435
+ "name": "holonId",
1436
+ "type": "string",
1437
+ "indexed": false,
1438
+ "internalType": "string"
1439
+ },
1440
+ {
1441
+ "name": "userId",
1442
+ "type": "string",
1443
+ "indexed": false,
1444
+ "internalType": "string"
1445
+ },
1446
+ {
1447
+ "name": "oldZone",
1448
+ "type": "uint256",
1449
+ "indexed": false,
1450
+ "internalType": "uint256"
1451
+ },
1452
+ {
1453
+ "name": "newZone",
1454
+ "type": "uint256",
1455
+ "indexed": false,
1456
+ "internalType": "uint256"
1457
+ }
1458
+ ],
1459
+ "anonymous": false
1460
+ }
1461
+ ]