@opendatalabs/vana-sdk 0.1.0-alpha.d6bebb0 → 0.1.0-alpha.d7fc764

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 (765) hide show
  1. package/README.md +98 -36
  2. package/dist/browser.cjs +29 -0
  3. package/dist/browser.cjs.map +1 -0
  4. package/dist/browser.d.cts +2 -0
  5. package/dist/browser.d.ts +2 -0
  6. package/dist/browser.js +5 -0
  7. package/dist/browser.js.map +1 -0
  8. package/dist/chains/definitions.cjs +92 -0
  9. package/dist/chains/definitions.cjs.map +1 -0
  10. package/dist/chains/definitions.d.cts +53 -0
  11. package/dist/chains/definitions.d.ts +53 -0
  12. package/dist/chains/definitions.js +64 -0
  13. package/dist/chains/definitions.js.map +1 -0
  14. package/dist/chains/index.cjs +37 -0
  15. package/dist/chains/index.cjs.map +1 -0
  16. package/dist/chains/index.d.cts +2 -0
  17. package/dist/chains/index.d.ts +2 -0
  18. package/dist/chains/index.js +15 -0
  19. package/dist/chains/index.js.map +1 -0
  20. package/dist/chains.browser.cjs +6 -65
  21. package/dist/chains.browser.cjs.map +1 -1
  22. package/dist/chains.browser.d.cts +2 -53
  23. package/dist/chains.browser.d.ts +2 -53
  24. package/dist/chains.browser.js +7 -57
  25. package/dist/chains.browser.js.map +1 -1
  26. package/dist/chains.cjs +6 -65
  27. package/dist/chains.cjs.map +1 -1
  28. package/dist/chains.d.cts +1 -1
  29. package/dist/chains.d.ts +1 -1
  30. package/dist/chains.js +7 -57
  31. package/dist/chains.js.map +1 -1
  32. package/dist/chains.node.cjs +6 -65
  33. package/dist/chains.node.cjs.map +1 -1
  34. package/dist/chains.node.d.cts +1 -1
  35. package/dist/chains.node.d.ts +1 -1
  36. package/dist/chains.node.js +7 -57
  37. package/dist/chains.node.js.map +1 -1
  38. package/dist/config/addresses.cjs +325 -0
  39. package/dist/config/addresses.cjs.map +1 -0
  40. package/dist/config/addresses.d.cts +380 -0
  41. package/dist/config/addresses.d.ts +380 -0
  42. package/dist/config/addresses.js +295 -0
  43. package/dist/config/addresses.js.map +1 -0
  44. package/dist/config/chains.cjs +93 -0
  45. package/dist/config/chains.cjs.map +1 -0
  46. package/dist/config/chains.d.cts +85 -0
  47. package/dist/config/chains.d.ts +85 -0
  48. package/dist/config/chains.js +67 -0
  49. package/dist/config/chains.js.map +1 -0
  50. package/dist/config/eventMappings.cjs +114 -0
  51. package/dist/config/eventMappings.cjs.map +1 -0
  52. package/dist/config/eventMappings.d.cts +108 -0
  53. package/dist/config/eventMappings.d.ts +108 -0
  54. package/dist/config/eventMappings.js +90 -0
  55. package/dist/config/eventMappings.js.map +1 -0
  56. package/dist/config/features.cjs +52 -0
  57. package/dist/config/features.cjs.map +1 -0
  58. package/dist/config/features.d.cts +64 -0
  59. package/dist/config/features.d.ts +64 -0
  60. package/dist/config/features.js +28 -0
  61. package/dist/config/features.js.map +1 -0
  62. package/dist/contracts/contractController.cjs +126 -0
  63. package/dist/contracts/contractController.cjs.map +1 -0
  64. package/dist/contracts/contractController.d.cts +96 -0
  65. package/dist/contracts/contractController.d.ts +96 -0
  66. package/dist/contracts/contractController.js +103 -0
  67. package/dist/contracts/contractController.js.map +1 -0
  68. package/dist/controllers/data.cjs +2239 -0
  69. package/dist/controllers/data.cjs.map +1 -0
  70. package/dist/controllers/data.d.cts +941 -0
  71. package/dist/controllers/data.d.ts +941 -0
  72. package/dist/controllers/data.js +2222 -0
  73. package/dist/controllers/data.js.map +1 -0
  74. package/dist/controllers/permissions.cjs +3726 -0
  75. package/dist/controllers/permissions.cjs.map +1 -0
  76. package/dist/controllers/permissions.d.cts +25 -0
  77. package/dist/controllers/permissions.d.ts +25 -0
  78. package/dist/controllers/permissions.js +3702 -0
  79. package/dist/controllers/permissions.js.map +1 -0
  80. package/dist/controllers/protocol.cjs +179 -0
  81. package/dist/controllers/protocol.cjs.map +1 -0
  82. package/dist/controllers/protocol.d.cts +167 -0
  83. package/dist/controllers/protocol.d.ts +167 -0
  84. package/dist/controllers/protocol.js +162 -0
  85. package/dist/controllers/protocol.js.map +1 -0
  86. package/dist/controllers/schemas.cjs +584 -0
  87. package/dist/controllers/schemas.cjs.map +1 -0
  88. package/dist/controllers/schemas.d.cts +272 -0
  89. package/dist/controllers/schemas.d.ts +272 -0
  90. package/dist/controllers/schemas.js +560 -0
  91. package/dist/controllers/schemas.js.map +1 -0
  92. package/dist/controllers/server.cjs +427 -0
  93. package/dist/controllers/server.cjs.map +1 -0
  94. package/dist/controllers/server.d.cts +243 -0
  95. package/dist/controllers/server.d.ts +243 -0
  96. package/dist/controllers/server.js +408 -0
  97. package/dist/controllers/server.js.map +1 -0
  98. package/dist/core/apiClient.cjs +325 -0
  99. package/dist/core/apiClient.cjs.map +1 -0
  100. package/dist/core/apiClient.d.cts +165 -0
  101. package/dist/core/apiClient.d.ts +165 -0
  102. package/dist/core/apiClient.js +309 -0
  103. package/dist/core/apiClient.js.map +1 -0
  104. package/dist/core/client.cjs +70 -0
  105. package/dist/core/client.cjs.map +1 -0
  106. package/dist/core/client.d.cts +92 -0
  107. package/dist/core/client.d.ts +92 -0
  108. package/dist/core/client.js +47 -0
  109. package/dist/core/client.js.map +1 -0
  110. package/dist/core/generics.cjs +388 -0
  111. package/dist/core/generics.cjs.map +1 -0
  112. package/dist/core/generics.d.cts +120 -0
  113. package/dist/core/generics.d.ts +120 -0
  114. package/dist/core/generics.js +366 -0
  115. package/dist/core/generics.js.map +1 -0
  116. package/dist/core.cjs +640 -0
  117. package/dist/core.cjs.map +1 -0
  118. package/dist/core.d.cts +466 -0
  119. package/dist/core.d.ts +466 -0
  120. package/dist/core.js +628 -0
  121. package/dist/core.js.map +1 -0
  122. package/dist/crypto/ecies/__tests__/test-vectors.cjs +102 -0
  123. package/dist/crypto/ecies/__tests__/test-vectors.cjs.map +1 -0
  124. package/dist/crypto/ecies/__tests__/test-vectors.d.cts +40 -0
  125. package/dist/crypto/ecies/__tests__/test-vectors.d.ts +40 -0
  126. package/dist/crypto/ecies/__tests__/test-vectors.js +77 -0
  127. package/dist/crypto/ecies/__tests__/test-vectors.js.map +1 -0
  128. package/dist/crypto/ecies/base.cjs +231 -0
  129. package/dist/crypto/ecies/base.cjs.map +1 -0
  130. package/dist/crypto/ecies/base.d.cts +143 -0
  131. package/dist/crypto/ecies/base.d.ts +143 -0
  132. package/dist/crypto/ecies/base.js +211 -0
  133. package/dist/crypto/ecies/base.js.map +1 -0
  134. package/dist/crypto/ecies/browser.cjs +164 -0
  135. package/dist/crypto/ecies/browser.cjs.map +1 -0
  136. package/dist/crypto/ecies/browser.d.cts +48 -0
  137. package/dist/crypto/ecies/browser.d.ts +48 -0
  138. package/dist/crypto/ecies/browser.js +130 -0
  139. package/dist/crypto/ecies/browser.js.map +1 -0
  140. package/dist/crypto/ecies/constants.cjs +131 -0
  141. package/dist/crypto/ecies/constants.cjs.map +1 -0
  142. package/dist/crypto/ecies/constants.d.cts +122 -0
  143. package/dist/crypto/ecies/constants.d.ts +122 -0
  144. package/dist/crypto/ecies/constants.js +101 -0
  145. package/dist/crypto/ecies/constants.js.map +1 -0
  146. package/dist/crypto/ecies/index.cjs +35 -0
  147. package/dist/crypto/ecies/index.cjs.map +1 -0
  148. package/dist/crypto/ecies/index.d.cts +1 -0
  149. package/dist/crypto/ecies/index.d.ts +1 -0
  150. package/dist/crypto/ecies/index.js +13 -0
  151. package/dist/crypto/ecies/index.js.map +1 -0
  152. package/dist/crypto/ecies/interface.cjs +88 -0
  153. package/dist/crypto/ecies/interface.cjs.map +1 -0
  154. package/dist/crypto/ecies/interface.d.cts +176 -0
  155. package/dist/crypto/ecies/interface.d.ts +176 -0
  156. package/dist/crypto/ecies/interface.js +61 -0
  157. package/dist/crypto/ecies/interface.js.map +1 -0
  158. package/dist/crypto/ecies/node.cjs +166 -0
  159. package/dist/crypto/ecies/node.cjs.map +1 -0
  160. package/dist/crypto/ecies/node.d.cts +50 -0
  161. package/dist/crypto/ecies/node.d.ts +50 -0
  162. package/dist/crypto/ecies/node.js +144 -0
  163. package/dist/crypto/ecies/node.js.map +1 -0
  164. package/dist/crypto/ecies/utils.cjs +91 -0
  165. package/dist/crypto/ecies/utils.cjs.map +1 -0
  166. package/dist/crypto/ecies/utils.d.cts +67 -0
  167. package/dist/crypto/ecies/utils.d.ts +67 -0
  168. package/dist/crypto/ecies/utils.js +60 -0
  169. package/dist/crypto/ecies/utils.js.map +1 -0
  170. package/dist/crypto/services/WalletKeyEncryptionService.cjs +128 -0
  171. package/dist/crypto/services/WalletKeyEncryptionService.cjs.map +1 -0
  172. package/dist/crypto/services/WalletKeyEncryptionService.d.cts +92 -0
  173. package/dist/crypto/services/WalletKeyEncryptionService.d.ts +92 -0
  174. package/dist/crypto/services/WalletKeyEncryptionService.js +112 -0
  175. package/dist/crypto/services/WalletKeyEncryptionService.js.map +1 -0
  176. package/dist/diagnostics.cjs +37 -0
  177. package/dist/diagnostics.cjs.map +1 -0
  178. package/dist/diagnostics.d.cts +26 -0
  179. package/dist/diagnostics.d.ts +26 -0
  180. package/dist/diagnostics.js +13 -0
  181. package/dist/diagnostics.js.map +1 -0
  182. package/dist/errors.cjs +141 -0
  183. package/dist/errors.cjs.map +1 -0
  184. package/dist/errors.d.cts +350 -0
  185. package/dist/errors.d.ts +350 -0
  186. package/dist/errors.js +108 -0
  187. package/dist/errors.js.map +1 -0
  188. package/dist/generated/abi/ComputeEngineImplementation.cjs +1313 -0
  189. package/dist/generated/abi/ComputeEngineImplementation.cjs.map +1 -0
  190. package/dist/generated/abi/ComputeEngineImplementation.d.cts +996 -0
  191. package/dist/generated/abi/ComputeEngineImplementation.d.ts +996 -0
  192. package/dist/generated/abi/ComputeEngineImplementation.js +1289 -0
  193. package/dist/generated/abi/ComputeEngineImplementation.js.map +1 -0
  194. package/dist/generated/abi/ComputeInstructionRegistryImplementation.cjs +734 -0
  195. package/dist/generated/abi/ComputeInstructionRegistryImplementation.cjs.map +1 -0
  196. package/dist/generated/abi/ComputeInstructionRegistryImplementation.d.cts +545 -0
  197. package/dist/generated/abi/ComputeInstructionRegistryImplementation.d.ts +545 -0
  198. package/dist/generated/abi/ComputeInstructionRegistryImplementation.js +710 -0
  199. package/dist/generated/abi/ComputeInstructionRegistryImplementation.js.map +1 -0
  200. package/dist/generated/abi/DATFactoryImplementation.cjs +882 -0
  201. package/dist/generated/abi/DATFactoryImplementation.cjs.map +1 -0
  202. package/dist/generated/abi/DATFactoryImplementation.d.cts +661 -0
  203. package/dist/generated/abi/DATFactoryImplementation.d.ts +661 -0
  204. package/dist/generated/abi/DATFactoryImplementation.js +858 -0
  205. package/dist/generated/abi/DATFactoryImplementation.js.map +1 -0
  206. package/dist/generated/abi/DATImplementation.cjs +934 -0
  207. package/dist/generated/abi/DATImplementation.cjs.map +1 -0
  208. package/dist/generated/abi/DATImplementation.d.cts +693 -0
  209. package/dist/generated/abi/DATImplementation.d.ts +693 -0
  210. package/dist/generated/abi/DATImplementation.js +910 -0
  211. package/dist/generated/abi/DATImplementation.js.map +1 -0
  212. package/dist/generated/abi/DATPausableImplementation.cjs +1523 -0
  213. package/dist/generated/abi/DATPausableImplementation.cjs.map +1 -0
  214. package/dist/generated/abi/DATPausableImplementation.d.cts +1145 -0
  215. package/dist/generated/abi/DATPausableImplementation.d.ts +1145 -0
  216. package/dist/generated/abi/DATPausableImplementation.js +1499 -0
  217. package/dist/generated/abi/DATPausableImplementation.js.map +1 -0
  218. package/dist/generated/abi/DATVotesImplementation.cjs +1460 -0
  219. package/dist/generated/abi/DATVotesImplementation.cjs.map +1 -0
  220. package/dist/generated/abi/DATVotesImplementation.d.cts +1095 -0
  221. package/dist/generated/abi/DATVotesImplementation.d.ts +1095 -0
  222. package/dist/generated/abi/DATVotesImplementation.js +1436 -0
  223. package/dist/generated/abi/DATVotesImplementation.js.map +1 -0
  224. package/dist/generated/abi/DLPPerformanceImplementation.cjs +1160 -0
  225. package/dist/generated/abi/DLPPerformanceImplementation.cjs.map +1 -0
  226. package/dist/generated/abi/DLPPerformanceImplementation.d.cts +883 -0
  227. package/dist/generated/abi/DLPPerformanceImplementation.d.ts +883 -0
  228. package/dist/generated/abi/DLPPerformanceImplementation.js +1136 -0
  229. package/dist/generated/abi/DLPPerformanceImplementation.js.map +1 -0
  230. package/dist/generated/abi/DLPRegistryImplementation.cjs +1469 -0
  231. package/dist/generated/abi/DLPRegistryImplementation.cjs.map +1 -0
  232. package/dist/generated/abi/DLPRegistryImplementation.d.cts +1123 -0
  233. package/dist/generated/abi/DLPRegistryImplementation.d.ts +1123 -0
  234. package/dist/generated/abi/DLPRegistryImplementation.js +1445 -0
  235. package/dist/generated/abi/DLPRegistryImplementation.js.map +1 -0
  236. package/dist/generated/abi/DLPRegistryTreasuryImplementation.cjs +612 -0
  237. package/dist/generated/abi/DLPRegistryTreasuryImplementation.cjs.map +1 -0
  238. package/dist/generated/abi/DLPRegistryTreasuryImplementation.d.cts +452 -0
  239. package/dist/generated/abi/DLPRegistryTreasuryImplementation.d.ts +452 -0
  240. package/dist/generated/abi/DLPRegistryTreasuryImplementation.js +588 -0
  241. package/dist/generated/abi/DLPRegistryTreasuryImplementation.js.map +1 -0
  242. package/dist/generated/abi/DLPRewardDeployerImplementation.cjs +948 -0
  243. package/dist/generated/abi/DLPRewardDeployerImplementation.cjs.map +1 -0
  244. package/dist/generated/abi/DLPRewardDeployerImplementation.d.cts +714 -0
  245. package/dist/generated/abi/DLPRewardDeployerImplementation.d.ts +714 -0
  246. package/dist/generated/abi/DLPRewardDeployerImplementation.js +924 -0
  247. package/dist/generated/abi/DLPRewardDeployerImplementation.js.map +1 -0
  248. package/dist/generated/abi/DLPRewardDeployerTreasuryImplementation.cjs +612 -0
  249. package/dist/generated/abi/DLPRewardDeployerTreasuryImplementation.cjs.map +1 -0
  250. package/dist/generated/abi/DLPRewardDeployerTreasuryImplementation.d.cts +452 -0
  251. package/dist/generated/abi/DLPRewardDeployerTreasuryImplementation.d.ts +452 -0
  252. package/dist/generated/abi/DLPRewardDeployerTreasuryImplementation.js +588 -0
  253. package/dist/generated/abi/DLPRewardDeployerTreasuryImplementation.js.map +1 -0
  254. package/dist/generated/abi/DLPRewardSwapImplementation.cjs +939 -0
  255. package/dist/generated/abi/DLPRewardSwapImplementation.cjs.map +1 -0
  256. package/dist/generated/abi/DLPRewardSwapImplementation.d.cts +706 -0
  257. package/dist/generated/abi/DLPRewardSwapImplementation.d.ts +706 -0
  258. package/dist/generated/abi/DLPRewardSwapImplementation.js +915 -0
  259. package/dist/generated/abi/DLPRewardSwapImplementation.js.map +1 -0
  260. package/dist/generated/abi/DLPRootImplementation.cjs +1644 -0
  261. package/dist/generated/abi/DLPRootImplementation.cjs.map +1 -0
  262. package/dist/generated/abi/DLPRootImplementation.d.cts +1248 -0
  263. package/dist/generated/abi/DLPRootImplementation.d.ts +1248 -0
  264. package/dist/generated/abi/DLPRootImplementation.js +1620 -0
  265. package/dist/generated/abi/DLPRootImplementation.js.map +1 -0
  266. package/dist/generated/abi/DLPTreasuryImplementation.cjs +612 -0
  267. package/dist/generated/abi/DLPTreasuryImplementation.cjs.map +1 -0
  268. package/dist/generated/abi/DLPTreasuryImplementation.d.cts +452 -0
  269. package/dist/generated/abi/DLPTreasuryImplementation.d.ts +452 -0
  270. package/dist/generated/abi/DLPTreasuryImplementation.js +588 -0
  271. package/dist/generated/abi/DLPTreasuryImplementation.js.map +1 -0
  272. package/dist/generated/abi/DataLiquidityPoolImplementation.cjs +985 -0
  273. package/dist/generated/abi/DataLiquidityPoolImplementation.cjs.map +1 -0
  274. package/dist/generated/abi/DataLiquidityPoolImplementation.d.cts +737 -0
  275. package/dist/generated/abi/DataLiquidityPoolImplementation.d.ts +737 -0
  276. package/dist/generated/abi/DataLiquidityPoolImplementation.js +961 -0
  277. package/dist/generated/abi/DataLiquidityPoolImplementation.js.map +1 -0
  278. package/dist/generated/abi/DataPortabilityGranteesImplementation.cjs +888 -0
  279. package/dist/generated/abi/DataPortabilityGranteesImplementation.cjs.map +1 -0
  280. package/dist/generated/abi/DataPortabilityGranteesImplementation.d.cts +661 -0
  281. package/dist/generated/abi/DataPortabilityGranteesImplementation.d.ts +661 -0
  282. package/dist/generated/abi/DataPortabilityGranteesImplementation.js +864 -0
  283. package/dist/generated/abi/DataPortabilityGranteesImplementation.js.map +1 -0
  284. package/dist/generated/abi/DataPortabilityPermissionsImplementation.cjs +1317 -0
  285. package/dist/generated/abi/DataPortabilityPermissionsImplementation.cjs.map +1 -0
  286. package/dist/generated/abi/DataPortabilityPermissionsImplementation.d.cts +989 -0
  287. package/dist/generated/abi/DataPortabilityPermissionsImplementation.d.ts +989 -0
  288. package/dist/generated/abi/DataPortabilityPermissionsImplementation.js +1293 -0
  289. package/dist/generated/abi/DataPortabilityPermissionsImplementation.js.map +1 -0
  290. package/dist/generated/abi/DataPortabilityServersImplementation.cjs +1438 -0
  291. package/dist/generated/abi/DataPortabilityServersImplementation.cjs.map +1 -0
  292. package/dist/generated/abi/DataPortabilityServersImplementation.d.cts +1086 -0
  293. package/dist/generated/abi/DataPortabilityServersImplementation.d.ts +1086 -0
  294. package/dist/generated/abi/DataPortabilityServersImplementation.js +1414 -0
  295. package/dist/generated/abi/DataPortabilityServersImplementation.js.map +1 -0
  296. package/dist/generated/abi/DataRefinerRegistryImplementation.cjs +984 -0
  297. package/dist/generated/abi/DataRefinerRegistryImplementation.cjs.map +1 -0
  298. package/dist/generated/abi/DataRefinerRegistryImplementation.d.cts +737 -0
  299. package/dist/generated/abi/DataRefinerRegistryImplementation.d.ts +737 -0
  300. package/dist/generated/abi/DataRefinerRegistryImplementation.js +960 -0
  301. package/dist/generated/abi/DataRefinerRegistryImplementation.js.map +1 -0
  302. package/dist/generated/abi/DataRegistryImplementation.cjs +1328 -0
  303. package/dist/generated/abi/DataRegistryImplementation.cjs.map +1 -0
  304. package/dist/generated/abi/DataRegistryImplementation.d.cts +1004 -0
  305. package/dist/generated/abi/DataRegistryImplementation.d.ts +1004 -0
  306. package/dist/generated/abi/DataRegistryImplementation.js +1304 -0
  307. package/dist/generated/abi/DataRegistryImplementation.js.map +1 -0
  308. package/dist/generated/abi/QueryEngineImplementation.cjs +1319 -0
  309. package/dist/generated/abi/QueryEngineImplementation.cjs.map +1 -0
  310. package/dist/generated/abi/QueryEngineImplementation.d.cts +1001 -0
  311. package/dist/generated/abi/QueryEngineImplementation.d.ts +1001 -0
  312. package/dist/generated/abi/QueryEngineImplementation.js +1295 -0
  313. package/dist/generated/abi/QueryEngineImplementation.js.map +1 -0
  314. package/dist/generated/abi/SwapHelperImplementation.cjs +1019 -0
  315. package/dist/generated/abi/SwapHelperImplementation.cjs.map +1 -0
  316. package/dist/generated/abi/SwapHelperImplementation.d.cts +764 -0
  317. package/dist/generated/abi/SwapHelperImplementation.d.ts +764 -0
  318. package/dist/generated/abi/SwapHelperImplementation.js +995 -0
  319. package/dist/generated/abi/SwapHelperImplementation.js.map +1 -0
  320. package/dist/generated/abi/TeePoolDedicatedGpuImplementation.cjs +936 -0
  321. package/dist/generated/abi/TeePoolDedicatedGpuImplementation.cjs.map +1 -0
  322. package/dist/generated/abi/TeePoolDedicatedGpuImplementation.d.cts +701 -0
  323. package/dist/generated/abi/TeePoolDedicatedGpuImplementation.d.ts +701 -0
  324. package/dist/generated/abi/TeePoolDedicatedGpuImplementation.js +912 -0
  325. package/dist/generated/abi/TeePoolDedicatedGpuImplementation.js.map +1 -0
  326. package/dist/generated/abi/TeePoolDedicatedStandardImplementation.cjs +936 -0
  327. package/dist/generated/abi/TeePoolDedicatedStandardImplementation.cjs.map +1 -0
  328. package/dist/generated/abi/TeePoolDedicatedStandardImplementation.d.cts +701 -0
  329. package/dist/generated/abi/TeePoolDedicatedStandardImplementation.d.ts +701 -0
  330. package/dist/generated/abi/TeePoolDedicatedStandardImplementation.js +912 -0
  331. package/dist/generated/abi/TeePoolDedicatedStandardImplementation.js.map +1 -0
  332. package/dist/generated/abi/TeePoolEphemeralStandardImplementation.cjs +936 -0
  333. package/dist/generated/abi/TeePoolEphemeralStandardImplementation.cjs.map +1 -0
  334. package/dist/generated/abi/TeePoolEphemeralStandardImplementation.d.cts +701 -0
  335. package/dist/generated/abi/TeePoolEphemeralStandardImplementation.d.ts +701 -0
  336. package/dist/generated/abi/TeePoolEphemeralStandardImplementation.js +912 -0
  337. package/dist/generated/abi/TeePoolEphemeralStandardImplementation.js.map +1 -0
  338. package/dist/generated/abi/TeePoolImplementation.cjs +1313 -0
  339. package/dist/generated/abi/TeePoolImplementation.cjs.map +1 -0
  340. package/dist/generated/abi/TeePoolImplementation.d.cts +993 -0
  341. package/dist/generated/abi/TeePoolImplementation.d.ts +993 -0
  342. package/dist/generated/abi/TeePoolImplementation.js +1289 -0
  343. package/dist/generated/abi/TeePoolImplementation.js.map +1 -0
  344. package/dist/generated/abi/TeePoolPersistentGpuImplementation.cjs +936 -0
  345. package/dist/generated/abi/TeePoolPersistentGpuImplementation.cjs.map +1 -0
  346. package/dist/generated/abi/TeePoolPersistentGpuImplementation.d.cts +701 -0
  347. package/dist/generated/abi/TeePoolPersistentGpuImplementation.d.ts +701 -0
  348. package/dist/generated/abi/TeePoolPersistentGpuImplementation.js +912 -0
  349. package/dist/generated/abi/TeePoolPersistentGpuImplementation.js.map +1 -0
  350. package/dist/generated/abi/TeePoolPersistentStandardImplementation.cjs +936 -0
  351. package/dist/generated/abi/TeePoolPersistentStandardImplementation.cjs.map +1 -0
  352. package/dist/generated/abi/TeePoolPersistentStandardImplementation.d.cts +701 -0
  353. package/dist/generated/abi/TeePoolPersistentStandardImplementation.d.ts +701 -0
  354. package/dist/generated/abi/TeePoolPersistentStandardImplementation.js +912 -0
  355. package/dist/generated/abi/TeePoolPersistentStandardImplementation.js.map +1 -0
  356. package/dist/generated/abi/TeePoolPhalaImplementation.cjs +1313 -0
  357. package/dist/generated/abi/TeePoolPhalaImplementation.cjs.map +1 -0
  358. package/dist/generated/abi/TeePoolPhalaImplementation.d.cts +993 -0
  359. package/dist/generated/abi/TeePoolPhalaImplementation.d.ts +993 -0
  360. package/dist/generated/abi/TeePoolPhalaImplementation.js +1289 -0
  361. package/dist/generated/abi/TeePoolPhalaImplementation.js.map +1 -0
  362. package/dist/generated/abi/VanaEpochImplementation.cjs +1188 -0
  363. package/dist/generated/abi/VanaEpochImplementation.cjs.map +1 -0
  364. package/dist/generated/abi/VanaEpochImplementation.d.cts +900 -0
  365. package/dist/generated/abi/VanaEpochImplementation.d.ts +900 -0
  366. package/dist/generated/abi/VanaEpochImplementation.js +1164 -0
  367. package/dist/generated/abi/VanaEpochImplementation.js.map +1 -0
  368. package/dist/generated/abi/VanaPoolEntityImplementation.cjs +1234 -0
  369. package/dist/generated/abi/VanaPoolEntityImplementation.cjs.map +1 -0
  370. package/dist/generated/abi/VanaPoolEntityImplementation.d.cts +934 -0
  371. package/dist/generated/abi/VanaPoolEntityImplementation.d.ts +934 -0
  372. package/dist/generated/abi/VanaPoolEntityImplementation.js +1210 -0
  373. package/dist/generated/abi/VanaPoolEntityImplementation.js.map +1 -0
  374. package/dist/generated/abi/VanaPoolStakingImplementation.cjs +921 -0
  375. package/dist/generated/abi/VanaPoolStakingImplementation.cjs.map +1 -0
  376. package/dist/generated/abi/VanaPoolStakingImplementation.d.cts +693 -0
  377. package/dist/generated/abi/VanaPoolStakingImplementation.d.ts +693 -0
  378. package/dist/generated/abi/VanaPoolStakingImplementation.js +897 -0
  379. package/dist/generated/abi/VanaPoolStakingImplementation.js.map +1 -0
  380. package/dist/generated/abi/VanaPoolTreasuryImplementation.cjs +538 -0
  381. package/dist/generated/abi/VanaPoolTreasuryImplementation.cjs.map +1 -0
  382. package/dist/generated/abi/VanaPoolTreasuryImplementation.d.cts +394 -0
  383. package/dist/generated/abi/VanaPoolTreasuryImplementation.d.ts +394 -0
  384. package/dist/generated/abi/VanaPoolTreasuryImplementation.js +514 -0
  385. package/dist/generated/abi/VanaPoolTreasuryImplementation.js.map +1 -0
  386. package/dist/generated/abi/index.cjs +135 -0
  387. package/dist/generated/abi/index.cjs.map +1 -0
  388. package/dist/generated/abi/index.d.cts +26516 -0
  389. package/dist/generated/abi/index.d.ts +26516 -0
  390. package/dist/generated/abi/index.js +99 -0
  391. package/dist/generated/abi/index.js.map +1 -0
  392. package/dist/generated/server/server-exports.cjs +23 -0
  393. package/dist/generated/server/server-exports.cjs.map +1 -0
  394. package/dist/generated/server/server-exports.d.cts +21 -0
  395. package/dist/generated/server/server-exports.d.ts +21 -0
  396. package/dist/generated/server/server-exports.js +2 -0
  397. package/dist/generated/server/server-exports.js.map +1 -0
  398. package/dist/generated/server/server.cjs +17 -0
  399. package/dist/generated/server/server.cjs.map +1 -0
  400. package/dist/generated/server/server.d.cts +512 -0
  401. package/dist/generated/server/server.d.ts +512 -0
  402. package/dist/generated/server/server.js +1 -0
  403. package/dist/generated/server/server.js.map +1 -0
  404. package/dist/generated/subgraph.cjs +675 -0
  405. package/dist/generated/subgraph.cjs.map +1 -0
  406. package/dist/generated/subgraph.d.cts +5981 -0
  407. package/dist/generated/subgraph.d.ts +5981 -0
  408. package/dist/generated/subgraph.js +644 -0
  409. package/dist/generated/subgraph.js.map +1 -0
  410. package/dist/index.browser.cjs +151 -0
  411. package/dist/index.browser.cjs.map +1 -0
  412. package/dist/index.browser.d.cts +177 -0
  413. package/dist/index.browser.d.ts +67 -33072
  414. package/dist/index.browser.js +64 -41112
  415. package/dist/index.browser.js.map +1 -1
  416. package/dist/index.cjs +3 -0
  417. package/dist/index.cjs.map +1 -0
  418. package/dist/index.d.ts +2 -0
  419. package/dist/index.js +2 -0
  420. package/dist/index.js.map +1 -0
  421. package/dist/index.node.cjs +87 -41558
  422. package/dist/index.node.cjs.map +1 -1
  423. package/dist/index.node.d.cts +63 -33314
  424. package/dist/index.node.d.ts +63 -33314
  425. package/dist/index.node.js +68 -41448
  426. package/dist/index.node.js.map +1 -1
  427. package/dist/node.cjs +29 -0
  428. package/dist/node.cjs.map +1 -0
  429. package/dist/node.d.cts +2 -0
  430. package/dist/node.d.ts +2 -0
  431. package/dist/node.js +5 -0
  432. package/dist/node.js.map +1 -0
  433. package/dist/permissions-DNKPu_G0.d.cts +1666 -0
  434. package/dist/permissions-eo8YeLGf.d.ts +1666 -0
  435. package/dist/platform/browser-only.cjs +37 -0
  436. package/dist/platform/browser-only.cjs.map +1 -0
  437. package/dist/platform/browser-only.d.cts +25 -0
  438. package/dist/platform/browser-only.d.ts +25 -0
  439. package/dist/platform/browser-only.js +12 -0
  440. package/dist/platform/browser-only.js.map +1 -0
  441. package/dist/platform/browser-safe.cjs +57 -0
  442. package/dist/platform/browser-safe.cjs.map +1 -0
  443. package/dist/platform/browser-safe.d.cts +32 -0
  444. package/dist/platform/browser-safe.d.ts +32 -0
  445. package/dist/platform/browser-safe.js +31 -0
  446. package/dist/platform/browser-safe.js.map +1 -0
  447. package/dist/platform/browser.cjs +329 -0
  448. package/dist/platform/browser.cjs.map +1 -0
  449. package/dist/platform/browser.d.cts +74 -0
  450. package/dist/platform/browser.d.ts +74 -0
  451. package/dist/platform/browser.js +304 -0
  452. package/dist/platform/browser.js.map +1 -0
  453. package/dist/platform/index.cjs +50 -0
  454. package/dist/platform/index.cjs.map +1 -0
  455. package/dist/platform/index.d.cts +5 -0
  456. package/dist/platform/index.d.ts +5 -0
  457. package/dist/platform/index.js +27 -0
  458. package/dist/platform/index.js.map +1 -0
  459. package/dist/platform/interface.cjs +17 -0
  460. package/dist/platform/interface.cjs.map +1 -0
  461. package/dist/platform/interface.d.cts +218 -0
  462. package/dist/platform/interface.d.ts +218 -0
  463. package/dist/platform/interface.js +1 -0
  464. package/dist/platform/interface.js.map +1 -0
  465. package/dist/platform/node.cjs +351 -0
  466. package/dist/platform/node.cjs.map +1 -0
  467. package/dist/platform/node.d.cts +27 -0
  468. package/dist/platform/node.d.ts +27 -0
  469. package/dist/platform/node.js +327 -0
  470. package/dist/platform/node.js.map +1 -0
  471. package/dist/platform/shared/error-utils.cjs +43 -0
  472. package/dist/platform/shared/error-utils.cjs.map +1 -0
  473. package/dist/platform/shared/error-utils.d.cts +25 -0
  474. package/dist/platform/shared/error-utils.d.ts +25 -0
  475. package/dist/platform/shared/error-utils.js +18 -0
  476. package/dist/platform/shared/error-utils.js.map +1 -0
  477. package/dist/platform/shared/pgp-utils.cjs +55 -0
  478. package/dist/platform/shared/pgp-utils.cjs.map +1 -0
  479. package/dist/platform/shared/pgp-utils.d.cts +61 -0
  480. package/dist/platform/shared/pgp-utils.d.ts +61 -0
  481. package/dist/platform/shared/pgp-utils.js +29 -0
  482. package/dist/platform/shared/pgp-utils.js.map +1 -0
  483. package/dist/platform/shared/stream-utils.cjs +49 -0
  484. package/dist/platform/shared/stream-utils.cjs.map +1 -0
  485. package/dist/platform/shared/stream-utils.d.cts +16 -0
  486. package/dist/platform/shared/stream-utils.d.ts +16 -0
  487. package/dist/platform/shared/stream-utils.js +25 -0
  488. package/dist/platform/shared/stream-utils.js.map +1 -0
  489. package/dist/platform/utils.cjs +114 -0
  490. package/dist/platform/utils.cjs.map +1 -0
  491. package/dist/platform/utils.d.cts +53 -0
  492. package/dist/platform/utils.d.ts +53 -0
  493. package/dist/platform/utils.js +76 -0
  494. package/dist/platform/utils.js.map +1 -0
  495. package/dist/platform.browser.cjs +41 -0
  496. package/dist/platform.browser.cjs.map +1 -0
  497. package/dist/platform.browser.d.cts +4 -0
  498. package/dist/platform.browser.d.ts +4 -259
  499. package/dist/platform.browser.js +10 -309
  500. package/dist/platform.browser.js.map +1 -1
  501. package/dist/platform.cjs +14 -623
  502. package/dist/platform.cjs.map +1 -1
  503. package/dist/platform.d.cts +5 -1
  504. package/dist/platform.d.ts +5 -1
  505. package/dist/platform.js +14 -609
  506. package/dist/platform.js.map +1 -1
  507. package/dist/platform.node.cjs +14 -623
  508. package/dist/platform.node.cjs.map +1 -1
  509. package/dist/platform.node.d.cts +5 -299
  510. package/dist/platform.node.d.ts +5 -299
  511. package/dist/platform.node.js +14 -609
  512. package/dist/platform.node.js.map +1 -1
  513. package/dist/server/handler.cjs +101 -0
  514. package/dist/server/handler.cjs.map +1 -0
  515. package/dist/server/handler.d.cts +282 -0
  516. package/dist/server/handler.d.ts +282 -0
  517. package/dist/server/handler.js +77 -0
  518. package/dist/server/handler.js.map +1 -0
  519. package/dist/storage/index.cjs +44 -0
  520. package/dist/storage/index.cjs.map +1 -0
  521. package/dist/storage/index.d.cts +10 -0
  522. package/dist/storage/index.d.ts +10 -0
  523. package/dist/storage/index.js +15 -0
  524. package/dist/storage/index.js.map +1 -0
  525. package/dist/storage/manager.cjs +189 -0
  526. package/dist/storage/manager.cjs.map +1 -0
  527. package/dist/storage/manager.d.cts +150 -0
  528. package/dist/storage/manager.d.ts +150 -0
  529. package/dist/storage/manager.js +172 -0
  530. package/dist/storage/manager.js.map +1 -0
  531. package/dist/storage/providers/callback-storage.cjs +177 -0
  532. package/dist/storage/providers/callback-storage.cjs.map +1 -0
  533. package/dist/storage/providers/callback-storage.d.cts +100 -0
  534. package/dist/storage/providers/callback-storage.d.ts +100 -0
  535. package/dist/storage/providers/callback-storage.js +155 -0
  536. package/dist/storage/providers/callback-storage.js.map +1 -0
  537. package/dist/storage/providers/google-drive.cjs +516 -0
  538. package/dist/storage/providers/google-drive.cjs.map +1 -0
  539. package/dist/storage/providers/google-drive.d.cts +156 -0
  540. package/dist/storage/providers/google-drive.d.ts +156 -0
  541. package/dist/storage/providers/google-drive.js +497 -0
  542. package/dist/storage/providers/google-drive.js.map +1 -0
  543. package/dist/storage/providers/ipfs.cjs +283 -0
  544. package/dist/storage/providers/ipfs.cjs.map +1 -0
  545. package/dist/storage/providers/ipfs.d.cts +163 -0
  546. package/dist/storage/providers/ipfs.d.ts +163 -0
  547. package/dist/storage/providers/ipfs.js +264 -0
  548. package/dist/storage/providers/ipfs.js.map +1 -0
  549. package/dist/storage/providers/pinata.cjs +339 -0
  550. package/dist/storage/providers/pinata.cjs.map +1 -0
  551. package/dist/storage/providers/pinata.d.cts +173 -0
  552. package/dist/storage/providers/pinata.d.ts +173 -0
  553. package/dist/storage/providers/pinata.js +320 -0
  554. package/dist/storage/providers/pinata.js.map +1 -0
  555. package/dist/types/chains.cjs +36 -0
  556. package/dist/types/chains.cjs.map +1 -0
  557. package/dist/types/chains.d.cts +34 -0
  558. package/dist/types/chains.d.ts +34 -0
  559. package/dist/types/chains.js +11 -0
  560. package/dist/types/chains.js.map +1 -0
  561. package/dist/types/config.cjs +41 -0
  562. package/dist/types/config.cjs.map +1 -0
  563. package/dist/types/config.d.cts +726 -0
  564. package/dist/types/config.d.ts +726 -0
  565. package/dist/types/config.js +15 -0
  566. package/dist/types/config.js.map +1 -0
  567. package/dist/types/contracts.cjs +17 -0
  568. package/dist/types/contracts.cjs.map +1 -0
  569. package/dist/types/contracts.d.cts +68 -0
  570. package/dist/types/contracts.d.ts +68 -0
  571. package/dist/types/contracts.js +1 -0
  572. package/dist/types/contracts.js.map +1 -0
  573. package/dist/types/data.cjs +17 -0
  574. package/dist/types/data.cjs.map +1 -0
  575. package/dist/types/data.d.cts +694 -0
  576. package/dist/types/data.d.ts +694 -0
  577. package/dist/types/data.js +1 -0
  578. package/dist/types/data.js.map +1 -0
  579. package/dist/types/eccrypto-js.d.cjs +2 -0
  580. package/dist/types/eccrypto-js.d.cjs.map +1 -0
  581. package/dist/types/eccrypto-js.d.d.cts +13 -0
  582. package/dist/types/eccrypto-js.d.d.ts +13 -0
  583. package/dist/types/eccrypto-js.d.js +1 -0
  584. package/dist/types/eccrypto-js.d.js.map +1 -0
  585. package/dist/types/external-apis.cjs +61 -0
  586. package/dist/types/external-apis.cjs.map +1 -0
  587. package/dist/types/external-apis.d.cts +186 -0
  588. package/dist/types/external-apis.d.ts +186 -0
  589. package/dist/types/external-apis.js +34 -0
  590. package/dist/types/external-apis.js.map +1 -0
  591. package/dist/types/generics.cjs +17 -0
  592. package/dist/types/generics.cjs.map +1 -0
  593. package/dist/types/generics.d.cts +450 -0
  594. package/dist/types/generics.d.ts +450 -0
  595. package/dist/types/generics.js +1 -0
  596. package/dist/types/generics.js.map +1 -0
  597. package/dist/types/index.cjs +64 -0
  598. package/dist/types/index.cjs.map +1 -0
  599. package/dist/types/index.d.cts +34 -0
  600. package/dist/types/index.d.ts +34 -0
  601. package/dist/types/index.js +35 -0
  602. package/dist/types/index.js.map +1 -0
  603. package/dist/types/operations.cjs +65 -0
  604. package/dist/types/operations.cjs.map +1 -0
  605. package/dist/types/operations.d.cts +108 -0
  606. package/dist/types/operations.d.ts +108 -0
  607. package/dist/types/operations.js +37 -0
  608. package/dist/types/operations.js.map +1 -0
  609. package/dist/types/permissions.cjs +17 -0
  610. package/dist/types/permissions.cjs.map +1 -0
  611. package/dist/types/permissions.d.cts +957 -0
  612. package/dist/types/permissions.d.ts +957 -0
  613. package/dist/types/permissions.js +1 -0
  614. package/dist/types/permissions.js.map +1 -0
  615. package/dist/types/personal.cjs +17 -0
  616. package/dist/types/personal.cjs.map +1 -0
  617. package/dist/types/personal.d.cts +40 -0
  618. package/dist/types/personal.d.ts +40 -0
  619. package/dist/types/personal.js +1 -0
  620. package/dist/types/personal.js.map +1 -0
  621. package/dist/types/relayer.cjs +17 -0
  622. package/dist/types/relayer.cjs.map +1 -0
  623. package/dist/types/relayer.d.cts +284 -0
  624. package/dist/types/relayer.d.ts +284 -0
  625. package/dist/types/relayer.js +1 -0
  626. package/dist/types/relayer.js.map +1 -0
  627. package/dist/types/storage.cjs +39 -0
  628. package/dist/types/storage.cjs.map +1 -0
  629. package/dist/types/storage.d.cts +131 -0
  630. package/dist/types/storage.d.ts +131 -0
  631. package/dist/types/storage.js +18 -0
  632. package/dist/types/storage.js.map +1 -0
  633. package/dist/types/transactionResults.cjs +17 -0
  634. package/dist/types/transactionResults.cjs.map +1 -0
  635. package/dist/types/transactionResults.d.cts +25 -0
  636. package/dist/types/transactionResults.d.ts +25 -0
  637. package/dist/types/transactionResults.js +1 -0
  638. package/dist/types/transactionResults.js.map +1 -0
  639. package/dist/types/utils.cjs +17 -0
  640. package/dist/types/utils.cjs.map +1 -0
  641. package/dist/types/utils.d.cts +819 -0
  642. package/dist/types/utils.d.ts +819 -0
  643. package/dist/types/utils.js +1 -0
  644. package/dist/types/utils.js.map +1 -0
  645. package/dist/types.cjs +23 -0
  646. package/dist/types.cjs.map +1 -0
  647. package/dist/types.d.cts +66 -0
  648. package/dist/types.d.ts +66 -0
  649. package/dist/types.js +2 -0
  650. package/dist/types.js.map +1 -0
  651. package/dist/utils/blockchain/registry.cjs +81 -0
  652. package/dist/utils/blockchain/registry.cjs.map +1 -0
  653. package/dist/utils/blockchain/registry.d.cts +34 -0
  654. package/dist/utils/blockchain/registry.d.ts +34 -0
  655. package/dist/utils/blockchain/registry.js +56 -0
  656. package/dist/utils/blockchain/registry.js.map +1 -0
  657. package/dist/utils/crypto-utils.cjs +120 -0
  658. package/dist/utils/crypto-utils.cjs.map +1 -0
  659. package/dist/utils/crypto-utils.d.cts +118 -0
  660. package/dist/utils/crypto-utils.d.ts +118 -0
  661. package/dist/utils/crypto-utils.js +87 -0
  662. package/dist/utils/crypto-utils.js.map +1 -0
  663. package/dist/utils/download.cjs +69 -0
  664. package/dist/utils/download.cjs.map +1 -0
  665. package/dist/utils/download.d.cts +41 -0
  666. package/dist/utils/download.d.ts +41 -0
  667. package/dist/utils/download.js +45 -0
  668. package/dist/utils/download.js.map +1 -0
  669. package/dist/utils/encoding.cjs +66 -0
  670. package/dist/utils/encoding.cjs.map +1 -0
  671. package/dist/utils/encoding.d.cts +54 -0
  672. package/dist/utils/encoding.d.ts +54 -0
  673. package/dist/utils/encoding.js +39 -0
  674. package/dist/utils/encoding.js.map +1 -0
  675. package/dist/utils/encryption.cjs +170 -0
  676. package/dist/utils/encryption.cjs.map +1 -0
  677. package/dist/utils/encryption.d.cts +275 -0
  678. package/dist/utils/encryption.d.ts +275 -0
  679. package/dist/utils/encryption.js +136 -0
  680. package/dist/utils/encryption.js.map +1 -0
  681. package/dist/utils/eventParsing.cjs +111 -0
  682. package/dist/utils/eventParsing.cjs.map +1 -0
  683. package/dist/utils/eventParsing.d.cts +60 -0
  684. package/dist/utils/eventParsing.d.ts +60 -0
  685. package/dist/utils/eventParsing.js +86 -0
  686. package/dist/utils/eventParsing.js.map +1 -0
  687. package/dist/utils/formatters.cjs +53 -0
  688. package/dist/utils/formatters.cjs.map +1 -0
  689. package/dist/utils/formatters.d.cts +120 -0
  690. package/dist/utils/formatters.d.ts +120 -0
  691. package/dist/utils/formatters.js +26 -0
  692. package/dist/utils/formatters.js.map +1 -0
  693. package/dist/utils/grantFiles.cjs +175 -0
  694. package/dist/utils/grantFiles.cjs.map +1 -0
  695. package/dist/utils/grantFiles.d.cts +186 -0
  696. package/dist/utils/grantFiles.d.ts +186 -0
  697. package/dist/utils/grantFiles.js +137 -0
  698. package/dist/utils/grantFiles.js.map +1 -0
  699. package/dist/utils/grantValidation.cjs +243 -0
  700. package/dist/utils/grantValidation.cjs.map +1 -0
  701. package/dist/utils/grantValidation.d.cts +150 -0
  702. package/dist/utils/grantValidation.d.ts +150 -0
  703. package/dist/utils/grantValidation.js +201 -0
  704. package/dist/utils/grantValidation.js.map +1 -0
  705. package/dist/utils/grants.cjs +108 -0
  706. package/dist/utils/grants.cjs.map +1 -0
  707. package/dist/utils/grants.d.cts +70 -0
  708. package/dist/utils/grants.d.ts +70 -0
  709. package/dist/utils/grants.js +82 -0
  710. package/dist/utils/grants.js.map +1 -0
  711. package/dist/utils/ipfs.cjs +130 -0
  712. package/dist/utils/ipfs.cjs.map +1 -0
  713. package/dist/utils/ipfs.d.cts +90 -0
  714. package/dist/utils/ipfs.d.ts +90 -0
  715. package/dist/utils/ipfs.js +99 -0
  716. package/dist/utils/ipfs.js.map +1 -0
  717. package/dist/utils/lazy-import.cjs +40 -0
  718. package/dist/utils/lazy-import.cjs.map +1 -0
  719. package/dist/utils/lazy-import.d.cts +20 -0
  720. package/dist/utils/lazy-import.d.ts +20 -0
  721. package/dist/utils/lazy-import.js +16 -0
  722. package/dist/utils/lazy-import.js.map +1 -0
  723. package/dist/utils/multicall.cjs +231 -0
  724. package/dist/utils/multicall.cjs.map +1 -0
  725. package/dist/utils/multicall.d.cts +129 -0
  726. package/dist/utils/multicall.d.ts +129 -0
  727. package/dist/utils/multicall.js +206 -0
  728. package/dist/utils/multicall.js.map +1 -0
  729. package/dist/utils/schemaValidation.cjs +258 -0
  730. package/dist/utils/schemaValidation.cjs.map +1 -0
  731. package/dist/utils/schemaValidation.d.cts +172 -0
  732. package/dist/utils/schemaValidation.d.ts +172 -0
  733. package/dist/utils/schemaValidation.js +222 -0
  734. package/dist/utils/schemaValidation.js.map +1 -0
  735. package/dist/utils/signatureCache.cjs +187 -0
  736. package/dist/utils/signatureCache.cjs.map +1 -0
  737. package/dist/utils/signatureCache.d.cts +134 -0
  738. package/dist/utils/signatureCache.d.ts +134 -0
  739. package/dist/utils/signatureCache.js +165 -0
  740. package/dist/utils/signatureCache.js.map +1 -0
  741. package/dist/utils/signatureFormatter.cjs +45 -0
  742. package/dist/utils/signatureFormatter.cjs.map +1 -0
  743. package/dist/utils/signatureFormatter.d.cts +39 -0
  744. package/dist/utils/signatureFormatter.d.ts +39 -0
  745. package/dist/utils/signatureFormatter.js +21 -0
  746. package/dist/utils/signatureFormatter.js.map +1 -0
  747. package/dist/utils/transactionParsing.cjs +84 -0
  748. package/dist/utils/transactionParsing.cjs.map +1 -0
  749. package/dist/utils/transactionParsing.d.cts +25 -0
  750. package/dist/utils/transactionParsing.d.ts +25 -0
  751. package/dist/utils/transactionParsing.js +62 -0
  752. package/dist/utils/transactionParsing.js.map +1 -0
  753. package/dist/utils/typedDataConverter.cjs +43 -0
  754. package/dist/utils/typedDataConverter.cjs.map +1 -0
  755. package/dist/utils/typedDataConverter.d.cts +13 -0
  756. package/dist/utils/typedDataConverter.d.ts +13 -0
  757. package/dist/utils/typedDataConverter.js +19 -0
  758. package/dist/utils/typedDataConverter.js.map +1 -0
  759. package/dist/utils/urlResolver.cjs +55 -0
  760. package/dist/utils/urlResolver.cjs.map +1 -0
  761. package/dist/utils/urlResolver.d.cts +40 -0
  762. package/dist/utils/urlResolver.d.ts +40 -0
  763. package/dist/utils/urlResolver.js +30 -0
  764. package/dist/utils/urlResolver.js.map +1 -0
  765. package/package.json +54 -27
@@ -0,0 +1,957 @@
1
+ import { Address, Hash } from 'viem';
2
+
3
+ /**
4
+ * Base interface for types that need to be compatible with Record<string, unknown>
5
+ *
6
+ * @category Permissions
7
+ */
8
+ interface RecordCompatible {
9
+ [key: string]: unknown;
10
+ }
11
+ /**
12
+ * Represents on-chain permission grant data without expensive off-chain resolution.
13
+ *
14
+ * This interface contains only the fast, on-chain data that can be retrieved
15
+ * efficiently from the subgraph without making individual IPFS or contract calls.
16
+ * Use this for fast permission listing in UIs, then call `retrieveGrantFile()`
17
+ * on specific grants when detailed data is needed.
18
+ *
19
+ * @category Permissions
20
+ * @example
21
+ * ```typescript
22
+ * // Fast: Get all on-chain permission data
23
+ * const grants = await vana.permissions.getUserPermissionGrantsOnChain();
24
+ *
25
+ * // Lazy: Resolve detailed data for specific permission when needed
26
+ * const grantFile = await retrieveGrantFile(grants[0].grantUrl);
27
+ * console.log('Operation:', grantFile.operation);
28
+ * ```
29
+ */
30
+ interface OnChainPermissionGrant {
31
+ /** Unique identifier for the permission */
32
+ id: bigint;
33
+ /** The grant URL containing detailed permission parameters (IPFS link) */
34
+ grantUrl: string;
35
+ /** Cryptographic signature that authorized this permission */
36
+ grantSignature: string;
37
+ /** Nonce used when granting the permission */
38
+ nonce: bigint;
39
+ /** Block number when permission started */
40
+ startBlock: bigint;
41
+ /** Block number when permission was granted */
42
+ addedAtBlock: bigint;
43
+ /** Timestamp when permission was added */
44
+ addedAtTimestamp: bigint;
45
+ /** Transaction hash of the grant transaction */
46
+ transactionHash: string;
47
+ /** Address that granted the permission */
48
+ grantor: Address;
49
+ /** Grantee information */
50
+ grantee: {
51
+ /** Grantee ID */
52
+ id: string;
53
+ /** Grantee address */
54
+ address: string;
55
+ };
56
+ /** Whether the permission is still active (not revoked) */
57
+ active: boolean;
58
+ }
59
+ /**
60
+ * Options for retrieving user permissions
61
+ *
62
+ * @category Permissions
63
+ */
64
+ interface GetUserPermissionsOptions {
65
+ /** Maximum number of permissions to retrieve */
66
+ limit?: number;
67
+ /** Custom subgraph URL to use for querying */
68
+ subgraphUrl?: string;
69
+ }
70
+ /**
71
+ * Parameters for granting data access permission to an application.
72
+ *
73
+ * This interface defines the required and optional parameters when granting
74
+ * an application permission to access specific files for a particular operation.
75
+ * Used with `vana.permissions.grant()`.
76
+ *
77
+ * @category Permissions
78
+ * @example
79
+ * ```typescript
80
+ * const params: GrantPermissionParams = {
81
+ * grantee: '0x1234...', // Application address
82
+ * operation: 'llm_inference',
83
+ * files: [1, 2, 3], // File IDs to grant access to
84
+ * parameters: {
85
+ * model: 'gpt-4',
86
+ * maxTokens: 1000,
87
+ * prompt: 'Analyze my data'
88
+ * }
89
+ * };
90
+ * ```
91
+ */
92
+ interface GrantPermissionParams {
93
+ /** The on-chain identity of the application */
94
+ grantee: Address;
95
+ /** The class of computation, e.g., "llm_inference" */
96
+ operation: string;
97
+ /**
98
+ * Array of file IDs to grant permission for.
99
+ * Obtain file IDs from `vana.data.getUserFiles()` or from upload results via `vana.data.upload().fileId`.
100
+ */
101
+ files: number[];
102
+ /** The full, off-chain parameters (e.g., LLM prompt) */
103
+ parameters: Record<string, unknown>;
104
+ /** Optional pre-stored grant URL to avoid duplicate IPFS storage */
105
+ grantUrl?: string;
106
+ /** Optional nonce for the permission */
107
+ nonce?: bigint;
108
+ /** Optional expiration time for the permission */
109
+ expiresAt?: number;
110
+ }
111
+ /**
112
+ * Parameters for revoking a previously granted data access permission.
113
+ *
114
+ * Used with `PermissionsController.revoke()` to remove an application's access
115
+ * to user data. Once revoked, the application can no longer use the permission
116
+ * to access the specified files.
117
+ *
118
+ * @category Permissions
119
+ * @example
120
+ * ```typescript
121
+ * const revokeParams: RevokePermissionParams = {
122
+ * permissionId: 123n // Permission ID to revoke
123
+ * };
124
+ *
125
+ * await vana.permissions.revoke(revokeParams);
126
+ * ```
127
+ */
128
+ interface RevokePermissionParams {
129
+ /** The permission ID to revoke */
130
+ permissionId: bigint;
131
+ }
132
+ /**
133
+ * Parameters for checking if a specific permission exists and is valid.
134
+ *
135
+ * Used to verify whether an application has active permission to access
136
+ * specific user files for a particular operation before attempting to use the data.
137
+ *
138
+ * @category Permissions
139
+ * @example
140
+ * ```typescript
141
+ * const checkParams: CheckPermissionParams = {
142
+ * application: '0x1234...', // App address
143
+ * operation: 'llm_inference',
144
+ * files: [1, 2, 3], // File IDs to check
145
+ * parameters: { model: 'gpt-4' }, // Operation parameters
146
+ * user: '0xabcd...' // Optional specific user
147
+ * };
148
+ *
149
+ * const hasPermission = await vana.permissions.check(checkParams);
150
+ * ```
151
+ */
152
+ interface CheckPermissionParams {
153
+ /** The application address */
154
+ application: Address;
155
+ /** The operation type */
156
+ operation: string;
157
+ /** The file IDs */
158
+ files: number[];
159
+ /** The grant parameters */
160
+ parameters: Record<string, unknown>;
161
+ /** The user address */
162
+ user?: Address;
163
+ }
164
+ /**
165
+ * Permission check result
166
+ *
167
+ * @category Permissions
168
+ */
169
+ interface PermissionCheckResult {
170
+ /** Whether the permission exists and is valid */
171
+ exists: boolean;
172
+ /** The permission details if it exists */
173
+ permission?: GrantedPermission;
174
+ /** Reason why permission is invalid (if applicable) */
175
+ reason?: string;
176
+ }
177
+ /**
178
+ * EIP-712 domain definition for PermissionGrant signatures
179
+ *
180
+ * @category Permissions
181
+ */
182
+ interface PermissionGrantDomain {
183
+ /** Domain name */
184
+ name: string;
185
+ /** Domain version */
186
+ version: string;
187
+ /** Chain ID */
188
+ chainId: number;
189
+ /** Verifying contract address */
190
+ verifyingContract: Address;
191
+ }
192
+ /**
193
+ * EIP-712 Permission message structure (current contract format)
194
+ *
195
+ * @category Permissions
196
+ */
197
+ interface PermissionGrantMessage {
198
+ /** Application address */
199
+ application: Address;
200
+ /** File IDs */
201
+ files: number[];
202
+ /** Operation type */
203
+ operation: string;
204
+ /** Grant URL */
205
+ grant: string;
206
+ /** Parameters as JSON string */
207
+ parameters: string;
208
+ /** Nonce */
209
+ nonce: bigint;
210
+ }
211
+ /**
212
+ * EIP-712 PermissionInput message structure (new simplified format)
213
+ *
214
+ * @category Permissions
215
+ */
216
+ interface PermissionInputMessage extends RecordCompatible {
217
+ /** Nonce */
218
+ nonce: bigint;
219
+ /** Grantee ID */
220
+ granteeId: bigint;
221
+ /** Grant URL */
222
+ grant: string;
223
+ /** File IDs */
224
+ fileIds: bigint[];
225
+ }
226
+ /**
227
+ * Contract PermissionInput structure
228
+ *
229
+ * @category Permissions
230
+ */
231
+ interface PermissionInput {
232
+ /** Nonce */
233
+ nonce: bigint;
234
+ /** Grantee ID */
235
+ granteeId: bigint;
236
+ /** Grant URL */
237
+ grant: string;
238
+ /** File IDs to grant permission for */
239
+ fileIds: bigint[];
240
+ }
241
+ /**
242
+ * Contract RevokePermissionInput structure
243
+ *
244
+ * @category Permissions
245
+ */
246
+ interface RevokePermissionInput extends RecordCompatible {
247
+ /** Nonce */
248
+ nonce: bigint;
249
+ /** Permission ID to revoke */
250
+ permissionId: bigint;
251
+ }
252
+ /**
253
+ * Contract Permission Info structure returned from the contract
254
+ *
255
+ * @category Permissions
256
+ */
257
+ interface PermissionInfo {
258
+ /** Permission ID */
259
+ id: bigint;
260
+ /** Address that granted the permission */
261
+ grantor: Address;
262
+ /** Nonce used when creating */
263
+ nonce: bigint;
264
+ /** Grantee ID */
265
+ granteeId: bigint;
266
+ /** Grant URL */
267
+ grant: string;
268
+ /** Signature bytes (removed in newer contract versions) */
269
+ signature?: `0x${string}`;
270
+ /** Start block */
271
+ startBlock: bigint;
272
+ /** End block */
273
+ endBlock: bigint;
274
+ /** File IDs associated with this permission */
275
+ fileIds: readonly bigint[];
276
+ }
277
+ /**
278
+ * EIP-712 Permission message structure (simplified future format)
279
+ *
280
+ * @category Permissions
281
+ */
282
+ interface SimplifiedPermissionMessage {
283
+ /** Application address */
284
+ application: Address;
285
+ /** Grant URL */
286
+ grant: string;
287
+ /** Nonce */
288
+ nonce: bigint;
289
+ }
290
+ /**
291
+ * Grant file structure containing permission details.
292
+ *
293
+ * Grant files contain the complete specification of what an application is permitted
294
+ * to do with user data, including operation parameters and file access rights.
295
+ *
296
+ * @category Permissions
297
+ * @example
298
+ * ```typescript
299
+ * const grantFile: GrantFile = {
300
+ * grantee: '0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6',
301
+ * operation: 'llm_inference',
302
+ * parameters: {
303
+ * prompt: 'Analyze this data: {{data}}',
304
+ * model: 'gpt-4',
305
+ * maxTokens: 2000,
306
+ * temperature: 0.7
307
+ * },
308
+ * expires: 1736467579
309
+ * };
310
+ * ```
311
+ */
312
+ interface GrantFile {
313
+ /** EVM address of the application authorized to use this grant */
314
+ grantee: Address;
315
+ /** Operation the grantee is authorized to perform */
316
+ operation: string;
317
+ /** Operation-specific parameters */
318
+ parameters: Record<string, unknown>;
319
+ /** Optional Unix timestamp when grant expires (seconds since epoch per POSIX.1-2008) */
320
+ expires?: number;
321
+ }
322
+ /**
323
+ * EIP-712 typed data structure for Permission
324
+ *
325
+ * @category Permissions
326
+ */
327
+ interface PermissionGrantTypedData extends GenericTypedData {
328
+ /** EIP-712 types */
329
+ types: {
330
+ Permission: Array<{
331
+ name: string;
332
+ type: string;
333
+ }>;
334
+ };
335
+ /** Primary type */
336
+ primaryType: "Permission";
337
+ /** Message to sign */
338
+ message: PermissionInputMessage;
339
+ }
340
+ /**
341
+ * Generic EIP-712 typed data structure
342
+ *
343
+ * @category Permissions
344
+ */
345
+ interface GenericTypedData extends RecordCompatible {
346
+ /** EIP-712 domain */
347
+ domain: PermissionGrantDomain;
348
+ /** EIP-712 types */
349
+ types: Record<string, Array<{
350
+ name: string;
351
+ type: string;
352
+ }>>;
353
+ /** Primary type */
354
+ primaryType: string;
355
+ /** Message to sign */
356
+ message: Record<string, unknown>;
357
+ }
358
+ /**
359
+ * Represents EIP-712 typed data for permission revocation.
360
+ *
361
+ * @remarks
362
+ * Used when revoking previously granted permissions through gasless transactions.
363
+ * The message contains a nonce and the permission ID to revoke.
364
+ *
365
+ * @category Permissions
366
+ */
367
+ interface RevokePermissionTypedData extends GenericTypedData {
368
+ /** EIP-712 type definitions for the RevokePermission structure */
369
+ types: {
370
+ RevokePermission: Array<{
371
+ name: string;
372
+ type: string;
373
+ }>;
374
+ };
375
+ /** The primary type identifier for revocation operations */
376
+ primaryType: "RevokePermission";
377
+ /** The structured message containing revocation parameters */
378
+ message: RevokePermissionInput;
379
+ }
380
+ /**
381
+ * Defines all valid primary types for EIP-712 typed data in the Vana SDK.
382
+ *
383
+ * @remarks
384
+ * These literal types ensure compile-time safety when handling typed data operations.
385
+ * Each corresponds to a specific blockchain operation type.
386
+ *
387
+ * @category Permissions
388
+ */
389
+ type TypedDataPrimaryType = "Permission" | "RevokePermission" | "TrustServer" | "UntrustServer" | "AddServer" | "RegisterGrantee" | "ServerFilesAndPermission";
390
+ /**
391
+ * Represents the union of all specific typed data interfaces.
392
+ *
393
+ * @remarks
394
+ * Enables type-safe handling of any typed data structure in the SDK.
395
+ * Used internally by relayer handlers and signature verification.
396
+ *
397
+ * @category Permissions
398
+ */
399
+ type SpecificTypedData = PermissionGrantTypedData | RevokePermissionTypedData | TrustServerTypedData | UntrustServerTypedData | AddAndTrustServerTypedData | RegisterGranteeTypedData | ServerFilesAndPermissionTypedData;
400
+ /**
401
+ * Permission operation types
402
+ *
403
+ * @category Permissions
404
+ */
405
+ type PermissionOperation = "llm_inference" | "data_analysis" | "model_training" | "data_sharing" | "compute_task" | string;
406
+ /**
407
+ * Permission status
408
+ *
409
+ * @category Permissions
410
+ */
411
+ type PermissionStatus = "active" | "revoked" | "expired" | "pending";
412
+ /**
413
+ * Parameters for querying permissions
414
+ *
415
+ * @category Permissions
416
+ */
417
+ interface QueryPermissionsParams {
418
+ /** Filter by grantor address */
419
+ grantor?: Address;
420
+ /** Filter by grantee address */
421
+ grantee?: Address;
422
+ /** Filter by operation type */
423
+ operation?: PermissionOperation;
424
+ /** Filter by file IDs */
425
+ files?: number[];
426
+ /** Filter by status */
427
+ status?: PermissionStatus;
428
+ /** Starting block number */
429
+ fromBlock?: bigint;
430
+ /** Ending block number */
431
+ toBlock?: bigint;
432
+ /** Maximum number of results */
433
+ limit?: number;
434
+ /** Offset for pagination */
435
+ offset?: number;
436
+ }
437
+ /**
438
+ * Granted permission details
439
+ *
440
+ * @category Permissions
441
+ */
442
+ interface GrantedPermission {
443
+ /** Unique identifier for the permission */
444
+ id: bigint;
445
+ /** Array of file IDs that the permission applies to */
446
+ files: number[];
447
+ /** The type of operation being granted permission for */
448
+ operation: string;
449
+ /** Grant file reference (IPFS hash or URL) */
450
+ grant: string;
451
+ /** Address of the application granted permission */
452
+ grantee: Address;
453
+ /** Address of the user who granted permission */
454
+ grantor: Address;
455
+ /** Custom parameters for the operation */
456
+ parameters: Record<string, unknown>;
457
+ /** Whether the permission is still active */
458
+ active: boolean;
459
+ /** Data status for the permission */
460
+ dataStatus?: string;
461
+ /** Nonce used for the permission */
462
+ nonce?: number;
463
+ /** Timestamp when permission was granted */
464
+ grantedAt?: number;
465
+ /** Optional expiration timestamp */
466
+ expiresAt?: number;
467
+ /** Transaction hash of the grant transaction */
468
+ transactionHash?: string;
469
+ /** Block number when permission was granted */
470
+ blockNumber?: bigint;
471
+ }
472
+ /**
473
+ * Permission query result
474
+ *
475
+ * @category Permissions
476
+ */
477
+ interface PermissionQueryResult {
478
+ /** Array of permissions matching the query */
479
+ permissions: GrantedPermission[];
480
+ /** Total number of permissions (for pagination) */
481
+ total: number;
482
+ /** Whether there are more results available */
483
+ hasMore: boolean;
484
+ }
485
+ /**
486
+ * Permission analytics data
487
+ *
488
+ * @category Permissions
489
+ */
490
+ interface PermissionAnalytics {
491
+ /** Total number of permissions granted */
492
+ totalPermissions: number;
493
+ /** Number of active permissions */
494
+ activePermissions: number;
495
+ /** Number of revoked permissions */
496
+ revokedPermissions: number;
497
+ /** Number of expired permissions */
498
+ expiredPermissions: number;
499
+ /** Most common operation types */
500
+ topOperations: Array<{
501
+ operation: PermissionOperation;
502
+ count: number;
503
+ }>;
504
+ /** Most active applications */
505
+ topApplications: Array<{
506
+ application: Address;
507
+ count: number;
508
+ }>;
509
+ }
510
+ /**
511
+ * Server information
512
+ *
513
+ * @category Permissions
514
+ */
515
+ interface Server {
516
+ /** Server ID (numeric) */
517
+ id: number;
518
+ /** Server owner address */
519
+ owner: Address;
520
+ /** Server URL */
521
+ url: string;
522
+ /** Server address */
523
+ serverAddress: Address;
524
+ /** Server public key */
525
+ publicKey: string;
526
+ }
527
+ /**
528
+ * Contract ServerInfo structure returned from the contract
529
+ *
530
+ * @category Permissions
531
+ */
532
+ interface ServerInfo {
533
+ /** Server ID */
534
+ id: bigint;
535
+ /** Server owner address */
536
+ owner: Address;
537
+ /** Server address */
538
+ serverAddress: Address;
539
+ /** Server public key */
540
+ publicKey: string;
541
+ /** Server URL */
542
+ url: string;
543
+ }
544
+ /**
545
+ * Parameters for adding and trusting a server
546
+ *
547
+ * @category Permissions
548
+ */
549
+ interface AddAndTrustServerParams {
550
+ /** Server address */
551
+ serverAddress: Address;
552
+ /** Server URL */
553
+ serverUrl: string;
554
+ /** Server public key */
555
+ publicKey: string;
556
+ }
557
+ /**
558
+ * Parameters for trusting a server (legacy)
559
+ *
560
+ * @category Permissions
561
+ * @deprecated Use AddAndTrustServerParams instead
562
+ */
563
+ interface TrustServerParams {
564
+ /** Server ID (numeric) */
565
+ serverId: number;
566
+ }
567
+ /**
568
+ * Parameters for untrusting a server
569
+ *
570
+ * @category Permissions
571
+ */
572
+ interface UntrustServerParams {
573
+ /** Server ID (numeric) */
574
+ serverId: number;
575
+ }
576
+ /**
577
+ * Input for adding and trusting a server with signature (gasless)
578
+ *
579
+ * @category Permissions
580
+ */
581
+ interface AddAndTrustServerInput extends RecordCompatible {
582
+ /** User nonce */
583
+ nonce: bigint;
584
+ /** Server address */
585
+ serverAddress: Address;
586
+ /** Server URL */
587
+ serverUrl: string;
588
+ /** Server public key */
589
+ publicKey: string;
590
+ }
591
+ /**
592
+ * Input for trusting a server with signature (gasless)
593
+ *
594
+ * @category Permissions
595
+ * @deprecated Use AddAndTrustServerInput instead
596
+ */
597
+ interface TrustServerInput extends RecordCompatible {
598
+ /** User nonce */
599
+ nonce: bigint;
600
+ /** Server ID (numeric) */
601
+ serverId: number;
602
+ }
603
+ /**
604
+ * Input for untrusting a server with signature (gasless)
605
+ *
606
+ * @category Permissions
607
+ */
608
+ interface UntrustServerInput extends RecordCompatible {
609
+ /** User nonce */
610
+ nonce: bigint;
611
+ /** Server ID (numeric) */
612
+ serverId: number;
613
+ }
614
+ /**
615
+ * EIP-712 typed data for AddAndTrustServer
616
+ *
617
+ * @category Permissions
618
+ */
619
+ interface AddAndTrustServerTypedData extends GenericTypedData {
620
+ /** EIP-712 types */
621
+ types: {
622
+ AddServer: Array<{
623
+ name: string;
624
+ type: string;
625
+ }>;
626
+ };
627
+ /** Primary type */
628
+ primaryType: "AddServer";
629
+ /** Message to sign */
630
+ message: AddAndTrustServerInput;
631
+ }
632
+ /**
633
+ * EIP-712 typed data for TrustServer
634
+ *
635
+ * @category Permissions
636
+ * @deprecated Use AddAndTrustServerTypedData instead
637
+ */
638
+ interface TrustServerTypedData extends GenericTypedData {
639
+ /** EIP-712 types */
640
+ types: {
641
+ TrustServer: Array<{
642
+ name: string;
643
+ type: string;
644
+ }>;
645
+ };
646
+ /** Primary type */
647
+ primaryType: "TrustServer";
648
+ /** Message to sign */
649
+ message: TrustServerInput;
650
+ }
651
+ /**
652
+ * EIP-712 typed data for UntrustServer
653
+ *
654
+ * @category Permissions
655
+ */
656
+ interface UntrustServerTypedData extends GenericTypedData {
657
+ /** EIP-712 types */
658
+ types: {
659
+ UntrustServer: Array<{
660
+ name: string;
661
+ type: string;
662
+ }>;
663
+ };
664
+ /** Primary type */
665
+ primaryType: "UntrustServer";
666
+ /** Message to sign */
667
+ message: UntrustServerInput;
668
+ }
669
+ /**
670
+ * Permission event data
671
+ *
672
+ * @category Permissions
673
+ */
674
+ interface PermissionEvent {
675
+ /** Event type */
676
+ type: "granted" | "revoked" | "expired";
677
+ /** Permission details */
678
+ permission: GrantedPermission;
679
+ /** Block number where event occurred */
680
+ blockNumber: bigint;
681
+ /** Transaction hash */
682
+ transactionHash: Hash;
683
+ /** Event timestamp */
684
+ timestamp: number;
685
+ }
686
+ /**
687
+ * Enhanced trusted server information with trust status
688
+ *
689
+ * @category Permissions
690
+ */
691
+ interface TrustedServerInfo {
692
+ /** Server ID */
693
+ id: bigint;
694
+ /** Server owner address */
695
+ owner: Address;
696
+ /** Server address */
697
+ serverAddress: Address;
698
+ /** Server public key */
699
+ publicKey: string;
700
+ /** Server URL */
701
+ url: string;
702
+ /** Start block when trust relationship began */
703
+ startBlock: bigint;
704
+ /** End block when trust relationship ended (0 if still active) */
705
+ endBlock: bigint;
706
+ }
707
+ /**
708
+ * Paginated result for trusted server queries
709
+ *
710
+ * @category Permissions
711
+ */
712
+ interface PaginatedTrustedServers {
713
+ /** Array of server IDs (numeric) */
714
+ servers: number[];
715
+ /** Total number of trusted servers */
716
+ total: number;
717
+ /** Offset used for this query */
718
+ offset: number;
719
+ /** Limit used for this query */
720
+ limit: number;
721
+ /** Whether there are more servers beyond this page */
722
+ hasMore: boolean;
723
+ }
724
+ /**
725
+ * Options for querying trusted servers
726
+ *
727
+ * @category Permissions
728
+ */
729
+ interface TrustedServerQueryOptions {
730
+ /** User address to query (defaults to current user) */
731
+ userAddress?: Address;
732
+ /** Maximum number of servers to return */
733
+ limit?: number;
734
+ /** Offset for pagination */
735
+ offset?: number;
736
+ /** Whether to include full server info or just IDs */
737
+ includeServerInfo?: boolean;
738
+ }
739
+ /**
740
+ * Result of batch server info requests
741
+ *
742
+ * @category Permissions
743
+ */
744
+ interface BatchServerInfoResult {
745
+ /** Successfully retrieved server info */
746
+ servers: Map<number, Server>;
747
+ /** Server IDs that failed to retrieve */
748
+ failed: number[];
749
+ }
750
+ /**
751
+ * Server trust status information
752
+ *
753
+ * @category Permissions
754
+ */
755
+ interface ServerTrustStatus {
756
+ /** Server ID being checked (numeric) */
757
+ serverId: number;
758
+ /** Whether the server is trusted by the user */
759
+ isTrusted: boolean;
760
+ /** Index in user's trusted server list (if trusted) */
761
+ trustIndex?: number;
762
+ }
763
+ /**
764
+ * Grantee information
765
+ *
766
+ * @category Permissions
767
+ */
768
+ interface Grantee {
769
+ /** Grantee ID (numeric) */
770
+ id: number;
771
+ /** Grantee owner address */
772
+ owner: Address;
773
+ /** Grantee address */
774
+ address: Address;
775
+ /** Grantee public key */
776
+ publicKey: string;
777
+ /** Permission IDs associated with this grantee */
778
+ permissionIds: number[];
779
+ }
780
+ /**
781
+ * Contract GranteeInfo structure returned from the contract
782
+ *
783
+ * @category Permissions
784
+ */
785
+ interface GranteeInfo {
786
+ /** Grantee owner address */
787
+ owner: Address;
788
+ /** Grantee address */
789
+ granteeAddress: Address;
790
+ /** Grantee public key */
791
+ publicKey: string;
792
+ /** Permission IDs associated with this grantee */
793
+ permissionIds: readonly bigint[];
794
+ }
795
+ /**
796
+ * Parameters for registering a grantee
797
+ *
798
+ * @category Permissions
799
+ */
800
+ interface RegisterGranteeParams {
801
+ /** Grantee owner address */
802
+ owner: Address;
803
+ /** Grantee address */
804
+ granteeAddress: Address;
805
+ /** Grantee public key */
806
+ publicKey: string;
807
+ }
808
+ /**
809
+ * Input for registering a grantee with signature (gasless)
810
+ *
811
+ * @category Permissions
812
+ */
813
+ interface RegisterGranteeInput extends RecordCompatible {
814
+ /** User nonce */
815
+ nonce: bigint;
816
+ /** Grantee owner address */
817
+ owner: Address;
818
+ /** Grantee address */
819
+ granteeAddress: Address;
820
+ /** Grantee public key */
821
+ publicKey: string;
822
+ }
823
+ /**
824
+ * EIP-712 typed data for RegisterGrantee
825
+ *
826
+ * @category Permissions
827
+ */
828
+ interface RegisterGranteeTypedData extends GenericTypedData {
829
+ /** EIP-712 types */
830
+ types: {
831
+ RegisterGrantee: Array<{
832
+ name: string;
833
+ type: string;
834
+ }>;
835
+ };
836
+ /** Primary type */
837
+ primaryType: "RegisterGrantee";
838
+ /** Message to sign */
839
+ message: RegisterGranteeInput;
840
+ }
841
+ /**
842
+ * Options for querying grantees
843
+ *
844
+ * @category Permissions
845
+ */
846
+ interface GranteeQueryOptions {
847
+ /** Maximum number of grantees to return */
848
+ limit?: number;
849
+ /** Offset for pagination */
850
+ offset?: number;
851
+ /** Whether to include permission info or just basic info */
852
+ includePermissions?: boolean;
853
+ }
854
+ /**
855
+ * Paginated result for grantee queries
856
+ *
857
+ * @category Permissions
858
+ */
859
+ interface PaginatedGrantees {
860
+ /** Array of grantees */
861
+ grantees: Grantee[];
862
+ /** Total number of grantees */
863
+ total: number;
864
+ /** Offset used for this query */
865
+ offset: number;
866
+ /** Limit used for this query */
867
+ limit: number;
868
+ /** Whether there are more grantees beyond this page */
869
+ hasMore: boolean;
870
+ }
871
+ /**
872
+ * Contract Permission structure as used in ServerFilesAndPermissionInput
873
+ *
874
+ * @category Permissions
875
+ */
876
+ interface Permission {
877
+ /** Account address for the permission */
878
+ account: Address;
879
+ /** Permission key */
880
+ key: string;
881
+ }
882
+ /**
883
+ * Contract ServerFilesAndPermissionInput structure
884
+ *
885
+ * @category Permissions
886
+ */
887
+ interface ServerFilesAndPermissionInput {
888
+ /** User nonce */
889
+ nonce: bigint;
890
+ /** Grantee ID */
891
+ granteeId: bigint;
892
+ /** Grant URL */
893
+ grant: string;
894
+ /** File URLs */
895
+ fileUrls: string[];
896
+ /** Server address */
897
+ serverAddress: Address;
898
+ /** Server URL */
899
+ serverUrl: string;
900
+ /** Server public key */
901
+ serverPublicKey: string;
902
+ /** File permissions array - permissions for each file */
903
+ filePermissions: Permission[][];
904
+ }
905
+ /**
906
+ * Parameters for server files and permissions operations
907
+ *
908
+ * @category Permissions
909
+ */
910
+ interface ServerFilesAndPermissionParams {
911
+ /** Grantee ID */
912
+ granteeId: bigint;
913
+ /** Grant URL or grant data */
914
+ grant: string;
915
+ /** File URLs */
916
+ fileUrls: string[];
917
+ /** Schema IDs for each file - use 0 for files without schema validation */
918
+ schemaIds: number[];
919
+ /** Server address */
920
+ serverAddress: Address;
921
+ /** Server URL */
922
+ serverUrl: string;
923
+ /** Server public key */
924
+ serverPublicKey: string;
925
+ /** File permissions array - permissions for each file */
926
+ filePermissions: Permission[][];
927
+ }
928
+ /**
929
+ * EIP-712 typed data for server files and permissions messages
930
+ *
931
+ * @category Permissions
932
+ */
933
+ interface ServerFilesAndPermissionTypedData extends GenericTypedData {
934
+ /** Message data structure */
935
+ message: {
936
+ /** User nonce */
937
+ nonce: bigint;
938
+ /** Grantee ID */
939
+ granteeId: bigint;
940
+ /** Grant URL */
941
+ grant: string;
942
+ /** File URLs */
943
+ fileUrls: string[];
944
+ /** Schema IDs for each file - use 0 for files without schema validation */
945
+ schemaIds: bigint[];
946
+ /** Server address */
947
+ serverAddress: Address;
948
+ /** Server URL */
949
+ serverUrl: string;
950
+ /** Server public key */
951
+ serverPublicKey: string;
952
+ /** File permissions array - permissions for each file */
953
+ filePermissions: Permission[][];
954
+ };
955
+ }
956
+
957
+ export type { AddAndTrustServerInput, AddAndTrustServerParams, AddAndTrustServerTypedData, BatchServerInfoResult, CheckPermissionParams, GenericTypedData, GetUserPermissionsOptions, GrantFile, GrantPermissionParams, GrantedPermission, Grantee, GranteeInfo, GranteeQueryOptions, OnChainPermissionGrant, PaginatedGrantees, PaginatedTrustedServers, Permission, PermissionAnalytics, PermissionCheckResult, PermissionEvent, PermissionGrantDomain, PermissionGrantMessage, PermissionGrantTypedData, PermissionInfo, PermissionInput, PermissionInputMessage, PermissionOperation, PermissionQueryResult, PermissionStatus, QueryPermissionsParams, RecordCompatible, RegisterGranteeInput, RegisterGranteeParams, RegisterGranteeTypedData, RevokePermissionInput, RevokePermissionParams, RevokePermissionTypedData, Server, ServerFilesAndPermissionInput, ServerFilesAndPermissionParams, ServerFilesAndPermissionTypedData, ServerInfo, ServerTrustStatus, SimplifiedPermissionMessage, SpecificTypedData, TrustServerInput, TrustServerParams, TrustServerTypedData, TrustedServerInfo, TrustedServerQueryOptions, TypedDataPrimaryType, UntrustServerInput, UntrustServerParams, UntrustServerTypedData };